/* Games share a playful palette while keeping each activity easy to recognise. */
.games-page{background:#fffdf7;color:#1c354b}
.games-page .download-header{border-bottom:1px solid #e5e0d2}
.games-page .worksheet-entry a{border-radius:999px}
.games-index .worksheet-intro{position:relative;isolation:isolate;overflow:hidden;margin:26px 0 30px;padding:clamp(26px,4vw,48px);border:1px solid #f1dcab;border-radius:26px;background:linear-gradient(125deg,#fff4cb 0%,#fff9e8 65%,#eef8ef 100%)}
.games-index .worksheet-intro::after{content:'';position:absolute;right:5%;top:15%;width:100px;height:100px;border:14px solid #f1d68b;border-radius:50%;opacity:.4;pointer-events:none}
.games-index .worksheet-intro>*{position:relative;z-index:1}
.games-index .worksheet-kicker{color:#875b13}
.games-index .worksheet-intro h1{max-width:16ch;margin-bottom:15px;color:#193650}
.games-index .worksheet-intro>p:not(.worksheet-kicker){max-width:52ch;color:#495f67}
.games-index .games-grid{gap:18px}
.games-index .game-card{position:relative;overflow:hidden;grid-template-columns:minmax(160px,215px) minmax(0,1fr);gap:32px;padding:clamp(24px,3vw,34px);border-radius:23px;background:#fff;border:1px solid #e4e7e2;box-shadow:0 8px 24px #2744540a}
.games-index .game-card::before{content:'';position:absolute;inset:0 auto 0 0;width:7px;background:#e4ad3b}
.games-index .game-card:nth-child(2)::before{background:#3b9a82}
.games-index .game-card:nth-child(3)::before{background:#9473bd}
.games-index .game-card .worksheet-kicker{margin-bottom:6px;color:#865911}
.games-index .game-card:nth-child(2) .worksheet-kicker{color:#276a59}
.games-index .game-card:nth-child(3) .worksheet-kicker{color:#694587}
.games-index .game-card h2{margin:0 0 8px;letter-spacing:-.03em}
.games-index .game-card p{margin:0 0 10px;color:#425a6b;line-height:1.55}
.games-index .game-card .game-card-detail{font-size:.85rem;font-weight:700;color:#516779;margin-bottom:16px}
.games-index .game-card .game-primary{min-height:48px;border-radius:12px}
.games-index .game-card:nth-child(2) .game-primary{background:#216d55;border-color:#216d55}
.games-index .game-card:nth-child(3) .game-primary{background:#69479b;border-color:#69479b}
.games-index .bingo-mini{background:#fff8e6;border-color:#efd9aa;box-shadow:0 7px 0 #efdfb6}
.games-index .bingo-mini span{background:#fff;border-color:#e7d8b9}
.games-index .bingo-mini .marked{background:#d6f1df;border-color:#99cfad}
.games-index .game-card .domino-preview div{border-color:#a8d5c6;box-shadow:0 5px 0 #d8eee4}
.games-index .game-card .domino-preview div:nth-child(2){background:#e9f8f1}
.games-index .game-card .memory-preview span{border-color:#cfbde5;box-shadow:0 5px 0 #e9ddf5}
.games-index .game-card .memory-preview span:nth-child(2n){background:#fff1c7;border-color:#ead39a;box-shadow:0 5px 0 #f6e8c8}
.bingo-page #bingo>.worksheet-intro{position:relative;overflow:hidden;margin:26px 0 26px;padding:30px 34px;border:1px solid #efd9a2;border-radius:24px;background:#fff6d9}
.bingo-page #bingo>.worksheet-intro::after{content:'';position:absolute;right:5%;top:15%;width:90px;height:90px;border:14px solid #edce7d;border-radius:50%;opacity:.35;pointer-events:none}
.bingo-page #bingo>.worksheet-intro>*{position:relative;z-index:1}
.bingo-page .worksheet-intro .worksheet-kicker{color:#875b13}
.bingo-page .game-settings{background:#fff;border-color:#e7decc;border-radius:22px;box-shadow:0 10px 28px #4b42280a}
.bingo-page .bingo-explainer{padding:24px;background:#edf8f1;border:1px solid #cae6d4;border-radius:22px}
.bingo-page .bingo-explainer h2{margin-top:22px}
.bingo-page .local-note{background:#dff2e6;color:#244e3b}
.bingo-page .bingo-mini{max-width:200px;border-color:#d4e7db;box-shadow:0 6px 0 #cde5d5}
.games-page .bingo-row-options span{min-height:44px}
.games-page .game-settings select,.games-page .game-settings input[type=number]{min-height:44px;padding:9px}
.games-page :is(button,a,input,select,summary):focus-visible{outline:3px solid #087c89;outline-offset:3px}
@media(max-width:680px){.games-index .worksheet-intro{margin:18px 0 24px;padding:25px 22px;border-radius:20px}.games-index .worksheet-intro::after{right:-30px;top:-24px;width:65px;height:65px;opacity:.25}.games-index .game-card{grid-template-columns:1fr;gap:22px;padding:24px}.games-index .game-card .game-preview,.games-index .game-card .bingo-mini{max-width:170px;margin:0}.bingo-page #bingo>.worksheet-intro{margin:18px 0;padding:24px 22px}.bingo-page .bingo-explainer{padding:22px}}
@media(max-width:360px){.games-page .bingo-row-options{grid-template-columns:repeat(4,minmax(0,1fr))}.games-index .worksheet-intro::after{display:none}}
