:root{color-scheme:light;--ink:#172a32;--muted:#53656e;--accent:#087569;--accent-dark:#06574e;--line:#dce5e5;--paper:#fff;--bg:#edf3f2;--error:#9c3325;--radius:18px}
*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 50% 0,#e0f1eb 0,transparent 42%),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:10px;background:var(--accent);color:white;padding:.75rem 1.05rem;cursor:pointer;font-weight:700;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:800;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:680px;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;box-shadow:0 8px 24px #153d3410}.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:32px 24px;position:relative;isolation:isolate}.game-card{display:flex;flex-direction:column;background:var(--paper);border:1px solid var(--line);border-top:5px solid #aebcbe;border-radius:var(--radius);padding:23px;min-width:0;overflow-wrap:anywhere;position:relative;box-shadow:0 8px 22px #153d3410;transition:transform .18s ease,box-shadow .18s ease}.game-card:after{content:"";position:absolute;z-index:-1;right:-25px;top:50%;width:25px;border-top:3px dashed #b6c8c4}.game-card:nth-child(3n):after,.game-card:last-child:after{display:none}.game-card.available{border-top-color:var(--accent);background:linear-gradient(180deg,#f0fbf7 0,#fff 35%)}.game-card.available:hover{transform:translateY(-3px);box-shadow:0 12px 28px #153d3420}.game-card.completed{border-top-color:#356ec4;background:linear-gradient(180deg,#f2f7ff 0,#fff 38%)}.card-top{display:flex;align-items:center;gap:8px;justify-content:space-between}.step-number{font-size:.75rem;font-weight:800;letter-spacing:.08em;color:#647b83}.badge{font-size:.75rem;font-weight:750;border-radius:30px;padding:6px 10px;background:#edf0f1;color:#4a5b63;white-space:normal}.available .badge{color:#086357;background:#dff3e9}.completed .badge{color:#28548a;background:#e4edff}.locked .badge{color:#45545a;background:#eef1f2}.learning-goal{font-size:.92rem;color:var(--muted)}.card-details{font-size:.9rem;flex:1;margin-top:10px;min-height:100px}.score{font-weight:700;color:#28548a}.conditions-label{font-weight:750;margin-bottom:4px;color:#594418}.conditions{padding-left:19px;margin:0 0 20px;color:#4c5960}.conditions li+li{margin-top:6px}.game-card>button{width:100%;margin-top:16px;min-height:48px}.game-card>button:disabled{background:#e9eded;color:#536168;border:1px solid #ccd5d5}footer{color:var(--muted);font-size:.85rem;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));gap:22px 18px}.game-card:after{right:-19px;width:19px}.game-card:nth-child(3n):after{display:block}.game-card:nth-child(2n):after{display:none}.player-panel{grid-template-columns:1fr;gap:12px}}
@media(max-width:560px){.page{padding:24px 16px}.game-grid{grid-template-columns:1fr;gap:18px}.player-panel{padding:18px}.input-row{flex-direction:column}.section-heading{display:block}.game-card{padding:20px}.game-card:after,.game-card:nth-child(3n):after{display:block;width:0;height:18px;left:50%;right:auto;top:auto;bottom:-19px;border-top:0;border-left:3px dashed #b6c8c4}.game-card:last-child:after{display:none}.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:145px}.game-toolbar h2{font-size:1rem}.round-notice{padding:10px 12px}.round-notice button{display:block;margin:8px 0 0}iframe{height:68dvh}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important}}
