:root{color-scheme:light;--ink:#172a32;--muted:#53656e;--accent:#087569;--accent-dark:#06574e;--line:#dce5e5;--paper:#fff;--bg:#f3f6f5;--error:#9c3325;--radius:18px}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:16px/1.55 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}button,input{font:inherit}button{border:1px solid transparent;border-radius:9px;background:var(--accent);color:white;padding:.7rem 1.05rem;cursor:pointer;font-weight:650;line-height:1.3}button:hover:not(:disabled){background:var(--accent-dark)}button:disabled{cursor:not-allowed;background:#e7ecec;color:#57656b}button.secondary{background:white;border-color:#a6bcba;color:var(--accent-dark)}button.secondary:hover:not(:disabled){background:#eaf4f1}button.secondary:disabled{color:#687678;background:#e7ecec}button:focus-visible,input:focus-visible,a:focus-visible,main:focus-visible{outline:3px solid #df9600;outline-offset:4px}[hidden]{display:none!important}.page{max-width:1120px;margin:auto;padding:40px 28px}.page-header{padding:12px 0 26px}.eyebrow{font-size:.75rem;font-weight:750;letter-spacing:.15em;color:var(--accent);margin:0 0 12px}h1{font-size:clamp(2rem,5vw,3.3rem);letter-spacing:-.04em;line-height:1.1;margin:0 0 16px}h2{font-size:1.15rem;margin:0 0 7px}h3{font-size:1.2rem;line-height:1.35;margin:18px 0 10px}p{margin:0 0 12px}.intro{max-width:640px;color:var(--muted);font-size:1.1rem}.player-panel{display:grid;grid-template-columns:1fr 1fr;gap:35px;background:var(--paper);padding:24px;border:1px solid var(--line);border-radius:var(--radius);margin-bottom:18px}.player-panel p,.player-panel small{font-size:.86rem;color:var(--muted)}label{display:block;font-size:.9rem;font-weight:700;margin-bottom:6px}.input-row{display:flex;gap:8px;flex-wrap:wrap}input{border:1px solid #8caaaa;border-radius:8px;padding:.6rem .75rem;min-width:0;flex:1;width:100%}small{display:block;margin-top:5px}.notice{padding:16px 19px;border:1px solid var(--line);border-radius:12px;background:#e9f1ef;margin-bottom:20px;font-size:.93rem}.notice button{margin-left:12px;font-size:.86rem}.notice.error,.round-notice.error{background:#fff1eb;color:var(--error);border-color:#edc6b9}.notice ul{padding-left:20px;overflow-wrap:anywhere}.section-heading{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin:30px 0 14px}.section-heading h2{font-size:1.3rem}.section-heading p{font-size:.85rem;color:var(--muted);overflow-wrap:anywhere}.game-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.game-card{display:flex;flex-direction:column;background:var(--paper);border:1px solid var(--line);border-top:4px solid #b1c0c2;border-radius:var(--radius);padding:23px;min-width:0;overflow-wrap:anywhere}.game-card.available{border-top-color:var(--accent)}.game-card.completed{border-top-color:#356ec4}.card-top{display:flex;align-items:center;gap:8px;justify-content:space-between}.step-number{font-size:1.1rem;font-weight:700;color:#647b83}.badge{font-size:.72rem;font-weight:700;border-radius:30px;padding:5px 9px;background:#edf0f1;color:#4a5b63}.available .badge{color:#086357;background:#e2f4ec}.completed .badge{color:#28548a;background:#e9f1ff}.learning-goal{font-size:.9rem;color:var(--muted)}.card-details{font-size:.88rem;flex:1;margin-top:10px;min-height:100px}.score{font-weight:650;color:#28548a}.conditions-label{font-weight:650;margin-bottom:4px}.conditions{padding-left:18px;margin:0 0 20px;color:var(--muted)}.conditions li+li{margin-top:6px}.game-card>button{width:100%;margin-top:16px}footer{color:var(--muted);font-size:.82rem;margin-top:32px;padding:16px 0;border-top:1px solid var(--line)}.skip-link{position:absolute;top:-100px;left:12px;background:white;padding:10px;z-index:20}.skip-link:focus{top:12px}dialog{padding:0;border:0;border-radius:14px;width:min(1180px,96vw);max-width:96vw;max-height:96dvh;box-shadow:0 20px 90px #0005}dialog::backdrop{background:#102930c9}dialog[open]{display:flex;flex-direction:column}.game-toolbar{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:14px 20px;border-bottom:1px solid var(--line)}.game-toolbar h2{margin:0;overflow-wrap:anywhere}.game-toolbar small{color:var(--muted);font-size:.75rem;margin:0}.round-notice{padding:12px 20px;background:#eaf4f1;font-size:.9rem}.round-notice button{margin:6px 0 0 10px;font-size:.85rem}#frame-host{min-height:180px;flex:1;display:flex}iframe{width:100%;height:72dvh;border:0;display:block;background:white}body:has(dialog[open]){overflow:hidden}
@media(max-width:850px){.game-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.player-panel{grid-template-columns:1fr;gap:12px}}
@media(max-width:560px){.page{padding:24px 16px}.game-grid{grid-template-columns:1fr}.player-panel{padding:18px}.input-row{flex-direction:column}.section-heading{display:block}.game-card{padding:20px}.card-details{min-height:0}.notice button{display:block;margin:10px 0 0}.game-toolbar{padding:12px;align-items:flex-start}.game-toolbar button{font-size:.8rem;max-width:130px}.game-toolbar h2{font-size:1rem}.round-notice{padding:10px 12px}.round-notice button{display:block;margin:8px 0 0}iframe{height:68dvh}}
