@font-face{font-family:Barlow;src:url('/fonts/barlow-condensed-latin-700-normal.woff2') format('woff2');font-weight:700;font-display:swap}@font-face{font-family:Barlow;src:url('/fonts/barlow-condensed-latin-800-normal.woff2') format('woff2');font-weight:800;font-display:swap}@font-face{font-family:Plex;src:url('/fonts/ibm-plex-sans-latin-400-normal.woff2') format('woff2');font-weight:400;font-display:swap}@font-face{font-family:Plex;src:url('/fonts/ibm-plex-sans-latin-600-normal.woff2') format('woff2');font-weight:600;font-display:swap}
*{box-sizing:border-box}html{scroll-behavior:smooth} :root{font-family:Plex,Arial,sans-serif;color:#171916;background:#f4f1e8;line-height:1.5;--ink:#171916;--muted:#595b53;--line:#d7d3c8;--surface:#fffdf7;--accent:#f5cb45;--display:Barlow,'Arial Narrow',Impact,sans-serif}body{margin:0;min-height:100vh}a{color:inherit}header{background:#171916;color:#fffdf7;display:flex;align-items:center;justify-content:space-between;gap:26px;padding:16px max(24px,calc((100vw - 1180px)/2));border-bottom:4px solid var(--accent)}.brand{font-family:var(--display);font-size:40px;font-weight:800;line-height:.9;text-decoration:none;letter-spacing:-1px;white-space:nowrap}.brand span{color:var(--accent)}.brand i{font-style:normal;color:#fff}nav{display:flex;gap:26px;align-items:center}nav a{text-decoration:none;font-size:14px;font-weight:600;white-space:nowrap}nav a:hover{color:var(--accent)}main{max-width:1228px;margin:auto;padding:26px 24px 52px;min-height:65vh}h1,h2,h3,p{margin:0 0 12px}h1,h2{font-family:var(--display);font-weight:800;line-height:.99;letter-spacing:0}h1{font-size:clamp(44px,7vw,80px)}h2{font-size:clamp(30px,4vw,43px)}p{font-size:16px}.muted,small{color:var(--muted)}.eyebrow{font-size:11px;line-height:1.4;letter-spacing:1.25px;font-weight:600;text-transform:uppercase}.hero{display:grid;grid-template-columns:minmax(0,1fr) 260px;align-items:end;gap:32px;border-bottom:2px solid var(--ink);padding:20px 0 28px;margin-bottom:28px}.hero h1{white-space:pre-line;margin:12px 0 14px}.hero-copy p{max-width:570px;color:var(--muted)}.hero-copy>a{display:inline-block;background:var(--accent);border:1px solid var(--ink);padding:10px 16px;font-weight:600;text-decoration:none;box-shadow:3px 3px 0 var(--ink);margin-top:4px}.hero-aside{border:1px solid var(--ink);background:#e8e2d3;padding:18px;display:grid;gap:8px;box-shadow:4px 4px 0 #171916}.hero-aside strong{font-family:var(--display);font-size:37px;line-height:1}.hero-aside a{font-weight:600;font-size:13px}.section-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:14px}.section-head h2{margin:0}.section-head .eyebrow{color:var(--muted);text-align:right}.grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}.game-card{display:flex;flex-direction:column;background:var(--surface);border:1px solid var(--ink);text-decoration:none;min-width:0;overflow:hidden;transition:transform .15s,box-shadow .15s}.game-card:hover{transform:translate(-2px,-2px);box-shadow:4px 4px 0 var(--ink)}.card-art{aspect-ratio:16/9;overflow:hidden;border-bottom:1px solid var(--ink);background:#ddd}.card-art img,.lobby-cover img{width:100%;height:100%;object-fit:cover;display:block}.card-body{display:flex;flex-direction:column;padding:13px;gap:3px;flex:1}.card-body .eyebrow{color:var(--muted)}.card-body strong{font-family:var(--display);font-weight:700;font-size:30px;line-height:1}.card-desc{font-size:13px;color:var(--muted);margin-top:3px}.card-action{font-weight:600;font-size:14px;padding-top:10px;margin-top:auto}.availability{font-size:13px;background:#e8e2d3;border-left:3px solid var(--ink);padding:12px 14px;margin:22px 0 0}.crumbs{font-size:13px;margin-bottom:20px;color:var(--muted)}.lobby{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);background:var(--surface);border:1px solid var(--ink);box-shadow:5px 5px 0 var(--ink)}.lobby-cover{min-height:280px;background:#e8e2d3}.lobby-body{padding:clamp(20px,4vw,44px);display:flex;flex-direction:column;gap:12px}.lobby-body h1{margin:0}.lobby-body h2{font-size:30px;margin:6px 0 0}.lobby-body p{margin:0}.lobby-body>a{font-size:13px;margin-top:8px}.difficulty{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.difficulty button{background:var(--accent);color:var(--ink);border:1px solid var(--ink);box-shadow:2px 2px 0 var(--ink)}.difficulty button:hover{background:#ffdc72}button,input,select,textarea{font:inherit}button{border:1px solid var(--ink);border-radius:3px;padding:11px 15px;background:var(--ink);color:#fffdf7;font-weight:600;cursor:pointer;min-height:44px}button:disabled{opacity:.58;cursor:default}button.secondary{background:#e8e2d3;color:var(--ink)}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #1767ad;outline-offset:3px}input,select,textarea{border:1px solid var(--ink);border-radius:3px;padding:12px;color:var(--ink);background:#fff;max-width:100%}textarea{width:100%;min-height:220px}.panel{max-width:760px;margin:14px auto;background:var(--surface);border:1px solid var(--ink);padding:clamp(16px,4vw,32px);box-shadow:4px 4px 0 var(--ink)}.panel h1{font-size:60px}.panel>button{margin:6px 6px 0 0}.game-stage .question{font-family:Plex,Arial,sans-serif;font-size:clamp(22px,4vw,32px);font-weight:600;line-height:1.3;letter-spacing:-.4px;margin:22px 0}.controls{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin:12px 0}.answers{display:grid;gap:9px;margin:18px 0}.answers button{background:#f4f1e8;color:var(--ink);text-align:left;border:1px solid var(--ink);font-size:16px;padding:13px 16px}.answers button:hover:not(:disabled){background:#f5cb45}.feedback{background:#dcebd4;border:1px solid #62785b;padding:16px;margin:16px 0}.feedback.bad{background:#f5d9ca;border-color:#9b5b42}.feedback a{display:block;margin:8px 0}.memory{display:grid;gap:7px;max-width:360px;margin:20px auto}.memory button{aspect-ratio:1;padding:0;background:#e6e0d2;border:1px solid var(--ink);min-height:0;color:var(--ink)}.memory button.active{background:#306450;color:#fff;border:2px solid #173b28}.memory button:disabled{opacity:1}.memory.size-3{grid-template-columns:repeat(3,minmax(0,1fr))}.memory.size-4{grid-template-columns:repeat(4,minmax(0,1fr))}.memory.size-5{grid-template-columns:repeat(5,minmax(0,1fr))}progress{width:100%;height:12px;accent-color:#316450}.letters{font-family:var(--display);font-size:clamp(30px,8vw,54px);font-weight:800;letter-spacing:.12em;overflow-wrap:anywhere}.row{display:flex;justify-content:space-between;gap:12px;align-items:center}.row>strong:first-child{font-family:var(--display);font-size:32px}.archive a{display:block;border-bottom:1px solid var(--line);padding:13px}.statline{padding:12px 0;border-bottom:1px solid var(--line)}footer{border-top:2px solid var(--ink);max-width:1180px;margin:0 auto;padding:24px;display:flex;flex-wrap:wrap;gap:16px;font-size:13px}footer small{width:100%}.error{color:#8e2727}details{margin:18px 0}summary{cursor:pointer;font-weight:600}.sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@media(max-width:900px){.grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:650px){header{display:block;padding:13px 16px 10px}.brand{font-size:35px}nav{margin-top:13px;justify-content:space-between;gap:8px}nav a{font-size:13px}main{padding:16px 14px 38px}.hero{grid-template-columns:1fr;gap:16px;padding:10px 0 20px;margin-bottom:22px}.hero h1{font-size:48px;white-space:normal}.hero-copy p{font-size:15px;margin-bottom:8px}.hero-aside{grid-template-columns:1fr 1fr;align-items:center;gap:3px 10px;padding:12px;box-shadow:2px 2px 0 var(--ink)}.hero-aside .eyebrow{grid-column:1/-1}.hero-aside strong{font-size:28px}.hero-aside span:not(.eyebrow){font-size:12px}.hero-aside a{grid-column:1/-1;font-size:12px}.hero-copy>a{display:none}.grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.card-body{padding:10px}.card-body strong{font-size:26px}.card-desc{font-size:12px}.card-action{padding-top:5px;font-size:13px}.lobby{grid-template-columns:1fr;box-shadow:3px 3px 0 var(--ink)}.lobby-cover{min-height:0;aspect-ratio:16/9}.lobby-body{padding:18px}.lobby-body h1{font-size:48px}.difficulty button{padding:10px 5px}.panel{box-shadow:2px 2px 0 var(--ink)}.panel input{width:100%;margin-bottom:8px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

.board-grid{display:grid;gap:5px;margin:16px auto;max-width:450px}.board-grid.cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.board-grid.cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.board-grid.cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.board-grid.cols-6{grid-template-columns:repeat(6,minmax(0,1fr))}.board-grid.cols-7{grid-template-columns:repeat(7,minmax(0,1fr))}.board-grid.cols-9{grid-template-columns:repeat(9,minmax(0,1fr))}.board-cell{min-width:0;min-height:0;aspect-ratio:1;padding:0;font-size:clamp(15px,4vw,30px);background:#fffdf7;color:#171916;border:1px solid #a5a398;display:grid;place-items:center}.board-cell.given{background:#e0ddce;font-weight:bold}.board-cell.selected,.peg.selected{outline:3px solid #d28b28;outline-offset:-3px}.board-cell.box-right{border-right:3px solid #171916}.board-cell.box-bottom{border-bottom:3px solid #171916}.board-cell.slide-tile{background:#e9ba52;border-color:#171916;box-shadow:1px 2px #171916}.board-cell.blank{background:#e5e1d5;border:1px dashed #777}.board-cell.lit{background:#f5cb45;color:#171916}.board-cell.dark{background:#27332c;color:#fff}.board-cell.hidden-card{background:#213b53;color:#fff}.board-cell.flipped{background:#d9e7d7;color:#171916}.board-cell.flipped:disabled{opacity:1}.board-status{font-weight:600;min-height:1.5em}.number-pad,.board-controls{display:flex;flex-wrap:wrap;gap:6px;justify-content:center;margin:12px 0}.number-pad button{min-width:36px;padding:8px 10px}.maze-grid{gap:0;background:#faf8ed;border:2px solid #171916}.maze-grid .board-cell{border:0;border-radius:0;font-size:clamp(11px,3vw,22px);box-shadow:none;background:transparent}.maze-grid .wall-top{border-top:2px solid #171916}.maze-grid .wall-right{border-right:2px solid #171916}.maze-grid .wall-bottom{border-bottom:2px solid #171916}.maze-grid .wall-left{border-left:2px solid #171916}.maze-grid .player{background:#bdd8b3;color:#184b30}.maze-grid .goal{background:#f5cb45}.hanoi{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:20px 0}.peg{display:flex;flex-direction:column;align-items:center;justify-content:end;background:#e9e4d5;color:#171916;padding:5px;min-height:200px}.tower{display:flex;flex-direction:column;justify-content:flex-end;align-items:center;width:100%;height:155px;background:linear-gradient(90deg,transparent 48%,#34382d 48%,#34382d 52%,transparent 52%);border-bottom:3px solid #34382d}.disc{display:block;text-align:center;border:1px solid #171916;border-radius:5px;background:#e9ba52;color:#171916;height:26px;font-size:13px;line-height:24px}.disc-1{width:34%}.disc-2{width:49%;background:#b8d3b6}.disc-3{width:64%;background:#d9a9c4}.disc-4{width:79%;background:#a9b7ee}.disc-5{width:94%;background:#e7a76e}@media(max-width:420px){.board-grid{gap:3px}.maze-grid{gap:0}.number-pad button{min-width:30px;padding:6px 8px}.peg{min-height:180px}}

.extra-games{margin-top:32px}

.sudoku-grid{gap:0;border:2px solid #171916}.sudoku-grid .board-cell{border-radius:0;border:1px solid #c8c4b7}.sudoku-grid .box-right{border-right:2px solid #171916}.sudoku-grid .box-bottom{border-bottom:2px solid #171916}.sudoku-pad{display:grid;grid-template-columns:repeat(9,minmax(0,1fr));gap:4px;max-width:450px;margin:14px auto}.sudoku-pad button{min-width:0;padding:8px 0}.sudoku-pad button:last-child{grid-column:4/7}.sudoku-pad .digit-complete{background:#e2dfd3;color:#777;border-color:#b8b4a7;text-decoration:line-through;opacity:.7}.board-grid.cols-8{grid-template-columns:repeat(8,minmax(0,1fr))}.board-grid.cols-11{grid-template-columns:repeat(11,minmax(0,1fr))}.board-grid.cols-13{grid-template-columns:repeat(13,minmax(0,1fr))}.board-grid.cols-15{grid-template-columns:repeat(15,minmax(0,1fr))}.board-grid.cols-17{grid-template-columns:repeat(17,minmax(0,1fr))}.maze-scroll{overflow-x:auto}.maze-grid.cols-13{min-width:310px}.maze-grid.cols-15{min-width:350px}.maze-grid.cols-17{min-width:390px}.hanoi .tower{height:245px}.hanoi .disc{height:23px;line-height:21px;flex-shrink:0}.disc-1{width:19%}.disc-2{width:27%}.disc-3{width:35%}.disc-4{width:43%}.disc-5{width:51%}.disc-6{width:60%;background:#b9c9ea}.disc-7{width:68%;background:#e1d584}.disc-8{width:76%;background:#a7cbbd}.disc-9{width:84%;background:#c4a7d5}.disc-10{width:94%;background:#e3a36e}.hanoi .tower.discs-4,.hanoi .tower.discs-5,.hanoi .tower.discs-6{height:155px}

.memory.size-6{grid-template-columns:repeat(6,minmax(0,1fr))}.memory.size-7{grid-template-columns:repeat(7,minmax(0,1fr))}.level-ladder{display:grid;gap:7px;border-top:1px solid var(--line);padding-top:14px;margin-top:5px}.level-ladder h3{margin:0;font-family:var(--display);font-size:24px}.level-ladder p{font-size:13px;color:var(--muted)}.level-ladder button{text-align:left}.level-ladder button:disabled{opacity:.48}.level-pass{margin:18px 0 4px;background:#dcebd4;border-left:4px solid #306450;padding:10px 12px;font-weight:600}.game-stage .question{overflow-wrap:anywhere}

/* Featured challenge: actual homepage layout, based on approved mobile reference. */
.daily-dashboard{max-width:680px;margin:0 auto 30px;padding:24px 20px 22px;background:#f4f1e8;border:1px solid #d7d3c8;border-radius:18px}.featured-label{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 15px;font-family:Plex,Arial,sans-serif;font-size:12px;font-weight:600;color:#595b53}.featured-label svg{width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:1.7}.featured-card{background:#171916;color:#fffdf7;border-radius:8px;padding:20px;display:flex;flex-direction:column;gap:13px}.featured-card .feature-no{font-size:12px;font-weight:600;color:#f5cb45}.featured-card h1{font-family:Plex,Arial,sans-serif;font-weight:600;font-size:clamp(26px,5vw,39px);line-height:1.15;letter-spacing:-.7px;margin:5px 0}.featured-card p{margin:0;color:#e7e7e2;font-size:15px}.featured-meta{display:flex;justify-content:space-between;gap:8px;font-size:14px;margin-top:4px}.feature-cta{display:block;text-align:center;text-decoration:none;border:0;border-radius:8px;background:#f5cb45;color:#171916;font-size:17px;font-weight:600;padding:17px 10px;margin-top:1px}.feature-cta:hover{background:#ffdc72}.player-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:18px 0 20px;border-bottom:1px solid #d7d3c8}.metric{text-decoration:none;display:flex;flex-direction:column;align-items:center;text-align:center;gap:10px;padding:4px 0}.metric svg{width:27px;height:27px;stroke:#b76b26;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.metric:last-child svg{stroke:#171916}.metric strong{font-size:25px;line-height:1;color:#34372e}.metric span{font-size:12px;color:#595b53}.continue-section{padding-top:20px}.continue-section h2{font-family:Plex,Arial,sans-serif;font-size:18px;font-weight:600;line-height:1.3;margin:0 0 15px;color:#34372e}.resume-row{display:flex;align-items:center;gap:10px;margin-top:12px}.resume-row img{width:73px;height:73px;object-fit:cover;border-radius:8px}.resume-info{flex:1;min-width:0;display:grid;gap:3px}.resume-info strong{font-size:16px;line-height:1.2}.resume-info span{font-size:13px;color:#595b53}.resume-link{background:#171916;color:white;text-decoration:none;border-radius:6px;padding:12px;font-size:14px;white-space:nowrap}.week-summary{padding-top:16px;font-size:13px;color:#595b53}.achievement-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:12px 0}.achievement{border:1px solid #d7d3c8;padding:12px;background:#f4f1e8}.achievement.earned{background:#f5e4a2;border-color:#b99237}.achievement strong{display:block}.achievement span{font-size:13px;color:#595b53}.record-line{border-bottom:1px solid var(--line);padding:10px 0}.record-line small{display:block}.resume-notice{font-size:13px;color:#595b53;margin:8px 0}.featured-unavailable{font-size:13px;color:#e7e7e2}.daily-dashboard .feature-cta[aria-disabled=true]{opacity:.6}.daily-dashboard+.hero{margin-top:0}@media(max-width:650px){.daily-dashboard{padding:18px 16px;margin:0 0 22px;border-radius:14px}.featured-card{padding:18px;gap:13px}.featured-card h1{font-size:28px}.featured-card p{font-size:14px}.feature-cta{padding:15px 8px;font-size:15px}.player-metrics{padding:18px 0 22px}.metric{gap:12px}.metric strong{font-size:24px}.metric span{font-size:12px}.resume-row img{width:64px;height:64px}.resume-link{padding:10px}.featured-meta{font-size:13px}}

/* Discovery features supplement the approved dashboard, without replacing it. */
.brand-row{display:flex;align-items:center;justify-content:space-between;gap:12px}.site-tools{display:flex;gap:6px}.tool-btn{border:1px solid #66685f;background:transparent;color:#fffdf7;border-radius:5px;padding:5px 9px;min-height:32px;font-size:12px}.tool-btn:hover{border-color:var(--accent);color:var(--accent)}.reset-clock{font-size:12px;color:#d2d2c9;text-align:center;font-variant-numeric:tabular-nums}.reset-refresh{color:#f5cb45;font-size:13px;text-align:center}.catalog-tools{display:flex;gap:8px;flex-wrap:wrap;align-items:stretch;margin:12px 0 8px}.catalog-tools input{flex:2 1 190px;min-width:0}.catalog-tools select{flex:1 1 130px;min-width:0}.catalog-tools button{flex:0 0 auto}.catalog-tools button[aria-pressed=true]{background:var(--accent);color:#171916}.catalog-count{font-size:13px;color:var(--muted);margin:0 0 12px}.game-tile{position:relative;min-width:0;display:flex}.game-tile .game-card{width:100%}.favorite-star{position:absolute;right:8px;top:8px;width:38px;height:38px;min-height:38px;padding:0;display:grid;place-items:center;background:#fffdf7;color:#171916;border:1px solid #171916;font-size:25px;line-height:1;border-radius:5px;box-shadow:1px 1px 0 #171916}.favorite-star[aria-pressed=true]{background:#f5cb45}.favorite-star:hover{background:#ffe293}.recent-section{margin:22px 0}.recent-section h2{font-size:30px}.recent-list{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(105px,145px);overflow-x:auto;gap:10px;padding:3px 0 8px}.recent-game{background:var(--surface);border:1px solid var(--line);text-decoration:none;display:grid;gap:6px;align-content:start}.recent-game img{width:100%;height:auto;aspect-ratio:16/9;object-fit:cover}.recent-game span{font-size:13px;font-weight:600;padding:0 8px 8px}.week-feature{display:grid;grid-template-columns:minmax(100px,180px) 1fr;max-width:680px;margin:0 auto 28px;border:1px solid var(--ink);background:var(--surface);gap:16px;align-items:center;overflow:hidden}.week-feature img{width:100%;height:100%;object-fit:cover}.week-feature>div{padding:14px 14px 14px 0}.week-feature h2{font-size:32px;margin:3px 0 5px}.week-feature p{font-size:13px;margin:0 0 5px;color:var(--muted)}.week-link{font-size:13px;font-weight:600}.game-guide{max-width:760px;margin:30px auto;padding:20px 0;border-top:1px solid var(--line);line-height:1.65}.game-guide h2{font-size:32px}.game-guide h3{font-size:19px;margin-top:16px}.game-guide li{margin-bottom:5px}.stage-actions{display:flex;align-items:center;gap:10px}.focus-toggle{font-size:12px;min-height:34px;padding:6px 9px}.focus-play>header,.focus-play>footer{display:none}.focus-play main{max-width:900px;padding-top:12px}.focus-play .game-stage{margin-top:0;box-shadow:none;max-width:850px}.install-dialog{max-width:420px;width:calc(100% - 36px);padding:22px;border:1px solid var(--ink);background:var(--surface);color:var(--ink)}.install-dialog::backdrop{background:#0008}
@media(max-width:650px){.brand-row{width:100%}.catalog-tools input{flex:1 0 100%}.catalog-tools select{flex:1 1 110px}.catalog-tools button{flex:0 1 auto}.week-feature{grid-template-columns:100px 1fr;gap:12px;margin:0 0 22px}.week-feature h2{font-size:27px}.week-feature p{font-size:12px}.week-feature>div{padding:10px 10px 10px 0}.favorite-star{width:33px;height:33px;min-height:33px;font-size:22px;right:5px;top:5px}.stage-actions{gap:5px}}
/* Dark theme explicitly styles game controls as well as the catalogue. */
:root[data-theme=dark]{color-scheme:dark;color:#eee9dc;background:#191c1a;--ink:#eee9dc;--muted:#b8b8aa;--line:#464941;--surface:#252923;--accent:#f5cb45}
[data-theme=dark] header{background:#111410;color:#fffdf7}
[data-theme=dark] .game-card:hover,[data-theme=dark] .lobby,[data-theme=dark] .panel{box-shadow:3px 3px 0 #080a08}
[data-theme=dark] .daily-dashboard{background:#252923;border-color:#484c43}
[data-theme=dark] .featured-card{background:#111410}
[data-theme=dark] .featured-label,[data-theme=dark] .metric span,[data-theme=dark] .resume-info span,[data-theme=dark] .resume-notice,[data-theme=dark] .week-summary{color:#b8b8aa}
[data-theme=dark] .metric strong,[data-theme=dark] .continue-section h2{color:#eee9dc}
[data-theme=dark] .metric:last-child svg{stroke:#eee9dc}
[data-theme=dark] .player-metrics{border-color:#484c43}
[data-theme=dark] .hero-aside,[data-theme=dark] .availability,[data-theme=dark] button.secondary,[data-theme=dark] .answers button,[data-theme=dark] .achievement,[data-theme=dark] .peg{background:#343a31;color:#eee9dc}
[data-theme=dark] button:where(:not(.secondary):not(.tool-btn):not(.favorite-star):not(.board-cell):not(.peg)){background:#f5cb45;color:#171916;border-color:#b8993c}
[data-theme=dark] .difficulty button,[data-theme=dark] .favorite-star{color:#171916}
[data-theme=dark] .answers button:hover:not(:disabled){background:#f5cb45;color:#171916}
[data-theme=dark] input,[data-theme=dark] select,[data-theme=dark] textarea{background:#20241f;color:#eee9dc;border-color:#697065}
[data-theme=dark] .feedback,[data-theme=dark] .level-pass{background:#304b37;color:#e5f3df;border-color:#68936d}
[data-theme=dark] .feedback.bad{background:#55382e;color:#fae9e1;border-color:#b87a64}
[data-theme=dark] .achievement.earned{background:#5b4a25;border-color:#b99237}
[data-theme=dark] .achievement span{color:#d1cbb9}
[data-theme=dark] .board-cell{background:#282d27;color:#eee9dc;border-color:#61665a}
[data-theme=dark] .board-cell.given{background:#3b4136;color:#f5d57a}
[data-theme=dark] .sudoku-grid{border-color:#bdbfae}
[data-theme=dark] .sudoku-grid .box-right,[data-theme=dark] .sudoku-grid .box-bottom{border-color:#bdbfae}
[data-theme=dark] .board-cell.slide-tile,[data-theme=dark] .board-cell.lit{background:#f5cb45;color:#171916}
[data-theme=dark] .board-cell.blank,[data-theme=dark] .board-cell.dark{background:#141815}
[data-theme=dark] .board-cell.hidden-card{background:#294d68;color:#fff}
[data-theme=dark] .board-cell.flipped{background:#c4dfc0;color:#171916}
[data-theme=dark] .maze-grid{background:#252923;border-color:#c3c4b8}
[data-theme=dark] .maze-grid .board-cell{background:transparent}
[data-theme=dark] .maze-grid .wall-top,[data-theme=dark] .maze-grid .wall-right,[data-theme=dark] .maze-grid .wall-bottom,[data-theme=dark] .maze-grid .wall-left{border-color:#c3c4b8}
[data-theme=dark] .maze-grid .player{background:#739d74;color:#121b13}
[data-theme=dark] .maze-grid .goal{background:#f5cb45;color:#171916}
[data-theme=dark] .memory button{background:#424a3e;color:#fff}
[data-theme=dark] .memory button.active{background:#7caf85;color:#171916}
[data-theme=dark] .sudoku-pad .digit-complete{background:#424a3e;color:#b8b8aa;border-color:#666}
[data-theme=dark] .resume-link{background:#e8e4d8;color:#171916}

[data-theme=dark] .memory button.active{background:#7caf85;color:#171916}[data-theme=dark] .memory button:not(.active){background:#424a3e;color:#fff}[data-theme=dark] .catalog-tools button[aria-pressed=true]{background:#f5cb45;color:#171916}.game-guide .feature-cta{max-width:380px;margin:18px 0}.recent-game:focus-visible{outline-offset:2px}.brand-row .tool-btn[hidden]{display:none}

.extra-grid{display:grid;gap:3px;max-width:560px;margin:16px auto}.extra-cell{font-size:clamp(10px,3vw,22px);min-width:0;min-height:0}.extra-clue{display:grid;place-items:center;font-size:clamp(9px,2.6vw,13px);font-weight:600;text-align:center;overflow-wrap:anywhere}.extra-cell.marked{background:#b6d6a5;color:#1b3823}.extra-cell.revealed{background:#e9e4d6;color:#171916}.extra-cell.covered{background:#607389;color:white}.extra-cell.flagged{background:#e8b44e;color:#171916}.extra-cell.blocked{background:#595b53;color:#fff}.extra-cell.reachable{background:#f5cb45;color:#171916}.extra-cell.given{opacity:1;border:2px solid #627d50}.extra-cell.selected,.tube.selected{outline:3px solid #e6a734;outline-offset:-3px}.extra-area .number-pad{flex-wrap:wrap}.code-guess{padding:15px;border:1px solid var(--line);font-size:30px;font-weight:bold;text-align:center;letter-spacing:4px}.code-history{border-bottom:1px solid var(--line);padding:8px;font-size:14px}.tube-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(53px,1fr));gap:8px;margin:16px 0}.tube{min-height:146px;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:3px;padding:5px;border:2px solid var(--ink);border-radius:0 0 18px 18px;background:var(--surface)}.tube span{width:28px;height:28px;display:grid;place-items:center;border-radius:50%;font-size:16px}.word-list{display:flex;flex-wrap:wrap;gap:10px;margin:10px 0}.word-list .found{text-decoration:line-through;color:var(--muted)}
.extra-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.extra-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.extra-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.extra-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.extra-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.extra-cols-6{grid-template-columns:repeat(6,minmax(0,1fr))}.extra-cols-7{grid-template-columns:repeat(7,minmax(0,1fr))}.extra-cols-8{grid-template-columns:repeat(8,minmax(0,1fr))}.extra-cols-9{grid-template-columns:repeat(9,minmax(0,1fr))}.extra-cols-10{grid-template-columns:repeat(10,minmax(0,1fr))}.extra-cols-11{grid-template-columns:repeat(11,minmax(0,1fr))}.extra-cols-12{grid-template-columns:repeat(12,minmax(0,1fr))}.extra-cols-13{grid-template-columns:repeat(13,minmax(0,1fr))}.extra-cell.colour-0,.tube .colour-0{background:#f5cb45;color:#171916}.extra-cell.colour-1,.tube .colour-1{background:#9ac4de;color:#171916}.extra-cell.colour-2,.tube .colour-2{background:#dda6c2;color:#171916}.extra-cell.colour-3,.tube .colour-3{background:#b6d6a5;color:#171916}.extra-cell.colour-4,.tube .colour-4{background:#e59c6b;color:#171916}.extra-cell.colour-5,.tube .colour-5{background:#bfb2e9;color:#171916}.extra-cell.colour-6,.tube .colour-6{background:#81c9c0;color:#171916}.extra-cell.colour-7,.tube .colour-7{background:#ece4d3;color:#171916}.extra-cell.colour-8,.tube .colour-8{background:#d4a8a2;color:#171916}

.site-dialog{width:min(430px,calc(100% - 36px));padding:22px;border:1px solid var(--line);border-radius:16px;background:var(--surface);color:var(--ink);box-shadow:0 18px 80px #0005}.site-dialog::backdrop{background:#101410b8;backdrop-filter:blur(2px)}.dialog-top{display:flex;gap:12px;align-items:center;margin-bottom:14px}.dialog-top h2{font-family:Plex,Arial,sans-serif;font-size:23px;line-height:1.2;margin:0}.dialog-icon{background:#f5cb45;color:#171916;border-radius:10px;display:grid;place-items:center;min-width:42px;height:42px;font-size:23px;font-weight:bold}.site-dialog p{color:var(--muted);font-size:15px}.dialog-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:20px}.dialog-actions .primary-action{background:#f5cb45;color:#171916;border-color:#c59b2d}.dialog-actions .danger-action{background:#a93932;color:white;border-color:#a93932}.site-toast{position:fixed;bottom:20px;left:50%;transform:translateX(-50%);z-index:30;background:#171916;color:white;border:1px solid #666;border-radius:9px;padding:12px 18px;max-width:90vw}.feedback{border-radius:10px;padding:18px;display:grid;gap:8px}.feedback strong{font-size:18px}.feedback p{margin:0}.feedback button{justify-self:start}.final-feedback{border:2px solid #68936d}.final-feedback button{width:100%;background:#f5cb45;color:#171916;border-color:#c59b2d}.stats-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:20px 0}.stats-metric{padding:18px;border:1px solid var(--line);background:var(--surface);border-radius:10px;display:grid;gap:5px}.stats-metric span,.stats-game-metrics span{font-size:13px;color:var(--muted)}.stats-metric strong{font-size:32px;line-height:1.1}.stats-week{padding:18px;border:1px solid var(--line);border-radius:10px;background:var(--surface);margin:18px 0}.stats-week h2,.stats-content h2{font-size:27px}.stats-week-days{display:grid;grid-template-columns:repeat(7,1fr);gap:5px;margin-top:12px}.stats-week-days div{text-align:center;display:grid;gap:5px;font-size:13px}.stats-week-days strong{display:grid;place-items:center;background:var(--surface);border:1px solid var(--line);height:32px;border-radius:6px}.stats-week-days .active strong{background:#b6d6a5;color:#1b3823}.stats-tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:5px;margin:22px 0 15px}.stats-tabs button{border-radius:7px;border-color:var(--line)}.stats-tabs button[aria-pressed=true]{background:#f5cb45;color:#171916;border-color:#c59b2d}.stats-filters{display:flex;gap:8px;margin:12px 0}.stats-filters input{flex:1;min-width:0}.stats-filters select{max-width:48%}.stats-game-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.stats-game-card{border:1px solid var(--line);border-radius:10px;background:var(--surface);padding:14px}.stats-game-head{display:flex;gap:10px;align-items:center}.stats-game-head img{width:64px;height:48px;object-fit:cover;border-radius:5px}.stats-game-head>div{flex:1;min-width:0;display:grid}.stats-game-head>div span{font-size:12px}.stats-game-head a{font-size:13px;font-weight:600}.stats-game-metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin:15px 0 8px}.stats-game-metrics div{display:grid;gap:3px}.stats-game-metrics strong{font-size:17px}.stat-record,.history-row{display:flex;justify-content:space-between;gap:10px;border-top:1px solid var(--line);padding:9px 0;font-size:13px}.history-row{padding:12px;background:var(--surface)}.stats-actions{display:flex;gap:10px;flex-wrap:wrap;margin:24px 0}.stats-content .achievement-grid{grid-template-columns:repeat(3,minmax(0,1fr))}@media(max-width:650px){.stats-summary{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.stats-metric{padding:14px}.stats-metric strong{font-size:27px}.stats-game-list{grid-template-columns:1fr}.stats-content .achievement-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.stats-tabs button{padding:10px 5px;font-size:14px}.stat-record{flex-wrap:wrap}}[data-theme=dark] .dialog-actions .danger-action{background:#a93932;color:white}[data-theme=dark] .extra-cell.marked{background:#b6d6a5;color:#1b3823}[data-theme=dark] .extra-cell.revealed{background:#e9e4d6;color:#171916}[data-theme=dark] .extra-cell.covered{background:#607389;color:white}[data-theme=dark] .extra-cell.flagged,[data-theme=dark] .extra-cell.reachable{background:#f5cb45;color:#171916}

.analytics-consent{position:fixed;z-index:25;bottom:12px;left:50%;transform:translateX(-50%);width:min(680px,calc(100% - 24px));background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:12px;padding:16px;box-shadow:0 6px 30px #0004;display:grid;gap:10px}.analytics-consent strong{font-size:17px}.analytics-consent p{font-size:13px;color:var(--muted);margin:5px 0}.analytics-consent a{font-size:12px;text-decoration:underline}.analytics-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}.analytics-actions button,.analytics-settings{font-size:13px}.analytics-actions button{background:#f5cb45!important;color:#171916!important;border:1px solid #b8973a!important;border-radius:6px;min-height:44px;padding:8px}.analytics-settings{color:inherit!important;background:transparent!important;padding:0!important;border:0!important;text-decoration:underline;min-height:0;font-weight:400}.analytics-consent:focus-within{outline:2px solid var(--accent)}

/* First-paint stability: do not display the temporary SEO catalogue over the dashboard. */
html.app-pending main[data-interactive=true]>:not(noscript){display:none}
html.app-pending main[data-interactive=true]::before{content:"";display:block;max-width:680px;height:440px;margin:0 auto 28px;border:1px solid var(--line);border-radius:14px;background:var(--surface)}
html.app-pending main[data-home=true]::before{background:linear-gradient(#171916,#171916) center 44px / calc(100% - 36px) 245px no-repeat,var(--surface);height:510px}
.featured-card .feature-cta{min-height:54px;display:grid;place-items:center}
.featured-card .feature-cta[aria-disabled=true]{cursor:wait;opacity:1}
.featured-card .reset-clock{min-height:18px}
.site-tools{min-width:93px;min-height:32px;justify-content:flex-end}
.featured-card .featured-meta{min-height:21px}
@media(max-width:650px){html.app-pending main[data-home=true]::before{height:490px;background-size:calc(100% - 32px) 237px}.featured-card .feature-cta{min-height:50px}.featured-card .featured-meta{min-height:19.5px}}

.arcade-spotlight{margin:24px 0}.arcade-spotlight .section-head a{font-size:13px}.arcade-spotlight-row{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(130px,180px);gap:10px;overflow-x:auto;padding-bottom:8px}.arcade-panel{max-width:760px;margin:16px auto;background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:16px}.arcade-head{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}.arcade-head h1{font-size:clamp(34px,6vw,52px);margin:0}.arcade-tools{display:flex;gap:5px;flex-wrap:wrap}.arcade-tools button{font-size:12px;padding:7px;min-height:36px}.arcade-hud{display:grid;grid-template-columns:repeat(3,1fr);gap:5px;margin:10px auto;max-width:420px}.arcade-hud>div{border:1px solid var(--line);border-radius:6px;padding:8px;display:grid;text-align:center}.arcade-hud span{font-size:12px;color:var(--muted)}.arcade-hud strong{font-size:22px}.arcade-canvas-wrap{max-width:420px;width:100%;margin:auto;position:relative;background:#192622;overflow:hidden;border-radius:8px;aspect-ratio:320/420}.arcade-canvas{width:100%;height:100%;display:block;touch-action:none;outline:0}.arcade-overlay{position:absolute;inset:0;background:#101b18df;color:#fff8e2;display:flex;align-items:center;justify-content:center;flex-direction:column;padding:22px;gap:9px;text-align:center}.arcade-overlay[hidden]{display:none}.arcade-overlay h2{font-size:36px}.arcade-overlay p{font-size:15px;max-width:260px}.arcade-overlay button{width:min(240px,100%);min-height:42px}.arcade-pad{display:flex;justify-content:center;gap:7px;flex-wrap:wrap;max-width:420px;margin:12px auto;touch-action:none}.arcade-key{min-height:48px;min-width:48px;font-size:24px;user-select:none;touch-action:none;border-radius:7px}.arcade-key.arcade-action{font-size:16px;min-width:80px}.arcade-key.pressed{transform:translateY(2px);opacity:.7}.arcade-status{text-align:center;font-size:13px;color:var(--muted)}.arcade-bottom{display:flex;justify-content:space-between;gap:8px;align-items:center;flex-wrap:wrap}.arcade-bottom p{font-size:13px;margin:0}.focus-play .arcade-panel{margin:0 auto}.arcade-panel button:focus-visible{outline:2px solid #b7a447;outline-offset:2px}@media(max-width:650px){.arcade-panel{padding:10px}.arcade-head h1{font-size:32px}.arcade-hud>div{padding:5px}.arcade-hud strong{font-size:20px}.arcade-canvas-wrap{max-width:min(100%,calc(55svh * 320 / 420))}.arcade-key{min-width:45px;min-height:46px;padding:6px 10px}.arcade-overlay{padding:12px}.arcade-overlay h2{font-size:27px}.arcade-overlay p{font-size:13px}.arcade-overlay button{font-size:14px;padding:7px}.arcade-spotlight .section-head{align-items:center}.arcade-spotlight-row{grid-auto-columns:135px}}

.category-launchers{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}.category-launcher{display:flex;flex-direction:column;gap:5px;text-decoration:none;border:1px solid var(--line);border-radius:10px;padding:10px;background:var(--surface)}.category-launcher img{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;border-radius:6px;flex:none}.category-launcher strong{font-size:17px}.category-launcher span,.category-launcher small{font-size:12px;color:var(--muted)}.arcade-typing{display:block;width:min(100%,420px);margin:10px auto;padding:12px;border:1px solid var(--line);border-radius:7px;font-size:18px;background:var(--surface);color:var(--ink)}.arcade-key.arcade-tool,.arcade-key.arcade-p2left,.arcade-key.arcade-p2right,.arcade-key.arcade-p2action{font-size:14px;min-width:62px}.arcade-key.arcade-p2left,.arcade-key.arcade-p2right,.arcade-key.arcade-p2action{background:#9dc6df;color:#1c313c}.arcade-hud:has(>div:nth-child(2):last-child){grid-template-columns:repeat(2,1fr)}.arcade-overlay{overflow:auto;min-height:0}.arcade-overlay h2{line-height:1.05}.arcade-overlay p{line-height:1.35}@media(max-width:650px){.category-launchers{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.category-launcher{padding:8px}.category-launcher strong{font-size:15px}.arcade-overlay p{font-size:12px}.arcade-overlay{gap:6px}.arcade-key.arcade-tool,.arcade-key.arcade-p2left,.arcade-key.arcade-p2right,.arcade-key.arcade-p2action{min-width:55px}}

.arcade-overlay{justify-content:safe center}.arcade-overlay button{flex-shrink:0}.stats-game-metrics:has(>div:nth-child(4)){grid-template-columns:repeat(2,1fr)}.stats-game-metrics:has(>div:nth-child(2):last-child){grid-template-columns:repeat(2,1fr)}

.continue-heading,.catalog-navigation,.game-breadcrumb{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}.continue-heading h2{margin:0}.continue-heading>span{font-size:12px}.resume-actions{display:flex;flex-direction:column;align-items:stretch;gap:4px}.resume-actions .resume-link{text-align:center}.resume-remove{font-size:11px!important;background:transparent!important;color:var(--muted)!important;border:0!important;box-shadow:none!important;padding:6px!important;min-height:30px; text-decoration:underline}.resume-expand{width:100%;margin-top:10px}.game-breadcrumb{justify-content:flex-start;padding:8px 0;font-size:13px}.game-breadcrumb a:not(:last-child){border-right:1px solid var(--line);padding-right:10px}.catalog-navigation{margin:10px 0}.catalog-reset[hidden],.arcade-discard[hidden]{display:none}.catalog-reset{font-size:13px}.arcade-discard{font-size:13px}.resume-row{min-width:0}.resume-info{min-width:0}.resume-info strong{overflow-wrap:anywhere}

.category-launchers{grid-template-columns:repeat(auto-fit,minmax(140px,1fr))}@media(max-width:650px){.category-launchers{grid-template-columns:repeat(2,minmax(0,1fr))}}

.catalog-shortcuts{display:flex;flex-wrap:wrap;gap:7px;margin:8px 0}.catalog-shortcut{font-size:13px;padding:8px 12px;min-height:40px}.catalog-shortcut[aria-pressed=true]{background:var(--accent);color:#171916;border-color:#171916}@media(max-width:650px){.catalog-shortcuts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}.catalog-shortcut{padding:8px 4px;font-size:12px}}

.arcade-pad{display:block;margin:10px auto;max-width:420px;touch-action:auto}.arcade-pad:empty{display:none}.game-primary-controls{display:flex;align-items:center;justify-content:center;gap:10px;min-width:0}.game-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;flex:1}.game-actions .arcade-key{font-size:15px;min-height:48px;flex:1 1 85px;max-width:180px;padding:8px 12px}.game-stick{flex:0 0 108px;width:108px;height:108px;border:2px solid var(--line);border-radius:50%;background:var(--surface);display:grid;place-items:center;position:relative;touch-action:none;user-select:none;box-shadow:inset 0 2px 6px #0002}.game-stick:before{content:'';position:absolute;inset:10px;border:1px dashed var(--line);border-radius:50%;pointer-events:none}.game-stick-knob{height:46px;width:46px;border-radius:50%;background:#f5cb45;border:2px solid #9f7c24;box-shadow:0 3px 5px #0003;pointer-events:none}.game-power{min-width:0;flex:2;display:grid;gap:8px}.game-power>span{display:flex;justify-content:space-between;gap:8px;font-size:13px}.game-power input{width:100%;min-height:44px;accent-color:#d5ad2d;touch-action:pan-y}.game-control-hint{font-size:13px;color:var(--muted);text-align:center;margin:6px auto;max-width:420px}.game-access-controls{margin:8px 0;color:var(--muted);font-size:12px;touch-action:auto}.game-access-controls summary{cursor:pointer;padding:8px 0}.game-access-controls p{font-size:12px;line-height:1.5}.game-fallback-buttons{display:flex;flex-wrap:wrap;gap:5px;justify-content:center}.game-fallback-buttons .arcade-key{font-size:12px;min-height:44px}.maze-grid .maze-available{box-shadow:inset 0 0 0 2px #b89942;background:#e2c86e;color:#222}.arcade-panel[data-control-mode=direct] .arcade-canvas-wrap,.arcade-panel[data-control-mode=swipe] .arcade-canvas-wrap,.arcade-panel[data-control-mode=two-drag] .arcade-canvas-wrap{max-width:min(100%,460px)}@media(max-width:650px){.arcade-panel[data-control-mode=direct] .arcade-canvas-wrap,.arcade-panel[data-control-mode=swipe] .arcade-canvas-wrap,.arcade-panel[data-control-mode=two-drag] .arcade-canvas-wrap{max-width:min(100%,calc(64svh * 320 / 420))}.game-stick{flex-basis:96px;width:96px;height:96px}.game-stick-knob{width:40px;height:40px}.game-actions .arcade-key{font-size:13px;min-height:46px;padding:6px 8px}.game-control-hint{font-size:12px}}

/* Discovery hub: local personalisation and editorial recommendations. */.discovery-hub{margin:24px 0;display:grid;grid-template-columns:minmax(0,1fr);gap:14px;min-width:0;width:100%;max-width:100%}.discovery-hub>*{min-width:0;max-width:100%}.discovery-shelf{min-width:0;width:100%;max-width:100%}.discovery-hub h2{margin:0}.discovery-hero{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:20px;border-radius:12px;background:#25362c;color:#fff2d7;border:1px solid #475b46}.discovery-hero h2{font-size:clamp(29px,5vw,44px);line-height:1.05;margin:7px 0}.discovery-hero p{font-size:14px;color:#e3e0cb;margin:8px 0}.discovery-hero .eyebrow{color:#f5cb45}.discovery-search{display:flex;gap:6px;margin-top:12px}.discovery-search input{min-width:0;flex:1;font-size:16px;padding:10px;border:1px solid #71816a;border-radius:6px;background:#fff7e4;color:#24362a}.discovery-search button,.discovery-surprise{background:#f5cb45!important;color:#171916!important;font-size:14px!important;white-space:nowrap;min-height:44px}.discovery-surprise{padding:12px 18px}.mood-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.mood-link{display:grid;gap:5px;padding:14px;border-radius:8px;background:#bcb8d8;color:#25352d;text-decoration:none}.mood-link[data-mood=relax]{background:#a8c9a1}.mood-link[data-mood=quick]{background:#e5c57d}.mood-link[data-mood=together]{background:#d6aec9}.mood-link strong{font-size:17px}.mood-link small{font-size:12px;color:#344239}.discovery-caption{color:var(--muted);font-size:13px;margin:5px 0 10px}.discovery-row{display:grid;grid-auto-flow:column;grid-auto-columns:clamp(145px,calc((100% - 45px)/6),210px);gap:9px;width:100%;max-width:100%;min-width:0;overflow-x:auto;overscroll-behavior-x:contain;padding-bottom:8px;scroll-snap-type:x proximity}.discovery-game{display:flex;flex-direction:column;gap:6px;border:1px solid var(--line);border-radius:9px;overflow:hidden;background:var(--surface);text-decoration:none;scroll-snap-align:start}.discovery-game img{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;flex:none}.discovery-game strong,.discovery-game small{padding:0 9px}.discovery-game strong{font-size:14px}.discovery-game small{font-size:11px;color:var(--muted);padding-bottom:8px}.discovery-shelf .section-head a{font-size:13px}@media(max-width:650px){.discovery-hero{display:grid;grid-template-columns:minmax(0,1fr);padding:15px;gap:10px}.discovery-surprise{width:100%}.mood-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.mood-link{padding:11px}.mood-link strong{font-size:16px}.discovery-row{grid-auto-columns:clamp(124px,42%,176px)}.discovery-hub{gap:10px}}

/* Keep discovery tracks and their intrinsic image dimensions within the viewport. Horizontal scrolling belongs to the shelf, not the document. */
.discovery-hero>div,.discovery-search,.discovery-game,.mood-link,.category-launcher,.recent-game{min-width:0;max-width:100%}.discovery-search{width:100%}.discovery-search input{width:0;min-width:0}.discovery-search button{flex-shrink:0}.discovery-game strong,.category-launcher strong,.mood-link strong{overflow-wrap:anywhere}.discovery-shelf .section-head{flex-wrap:wrap;gap:5px 12px}.discovery-shelf .section-head h2{min-width:0}.discovery-shelf .section-head a{flex-shrink:0}.category-launchers,.recent-list{min-width:0;max-width:100%;width:100%}.daily-dashboard{width:100%}.resume-row img{flex-shrink:0}.resume-actions{flex-shrink:0}.resume-info{overflow-wrap:anywhere}@media(max-width:650px){main{width:100%;min-width:0}.discovery-shelf .section-head h2{font-size:28px}.discovery-shelf .section-head a{font-size:12px}.discovery-hero h2{font-size:32px}.discovery-hero>div{width:100%}.mood-grid{min-width:0;max-width:100%}.mood-link{overflow-wrap:anywhere}.discovery-row{scroll-padding-inline:0}.daily-dashboard{max-width:100%}}@media(max-width:360px){.daily-dashboard{padding:14px 12px}.resume-row{gap:7px}.resume-row img{width:48px;height:48px}.resume-link{padding:9px 8px}.resume-info strong{font-size:14px}.resume-info span{font-size:12px}.discovery-search button{padding-inline:10px}}

/* Stage 8: compact, mobile-first daily arcade and retention cards. */.retention-hub{width:100%;max-width:680px;min-width:0;margin:0 auto 24px;display:grid;grid-template-columns:minmax(0,1fr);gap:10px}.retention-top,.retention-daily,.retention-missions,.retention-mastery{border:1px solid var(--line);border-radius:12px;background:var(--surface);padding:15px;min-width:0}.retention-top{display:flex;align-items:center;gap:15px;justify-content:space-between}.retention-top>div{flex:1;min-width:0;display:grid;gap:4px}.retention-top strong{font-size:22px}.retention-top a{font-size:13px;white-space:nowrap}.retention-top progress,.retention-mission progress{height:8px;width:100%;accent-color:#a4bc87}.retention-daily{display:grid;grid-template-columns:110px minmax(0,1fr);align-items:center;gap:12px}.retention-daily img{width:100%;height:auto;aspect-ratio:1;object-fit:cover;border-radius:8px}.retention-daily h2{font-size:30px;margin:5px 0}.retention-daily p{font-size:14px;margin:0 0 5px}.retention-daily small{display:block;font-size:12px}.retention-cta{display:block;text-decoration:none;text-align:center;background:#f5cb45;color:#171916;font-weight:600;border-radius:6px;padding:10px;margin-top:9px;min-height:44px}.retention-missions h2,.retention-mastery h2{font-size:28px;margin:0 0 6px}.retention-missions p,.retention-mastery p{font-size:13px}.retention-mission{padding:9px 0;border-top:1px solid var(--line);display:grid;gap:4px}.retention-mission>div{display:flex;justify-content:space-between;gap:8px;align-items:center}.retention-mission strong{font-size:14px}.retention-mission small{font-size:12px}.retention-mastery{max-width:100%;margin:18px 0}.retention-mastery-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(132px,1fr));gap:9px}.retention-mastery-card{min-width:0;text-decoration:none;display:grid;gap:4px;border:1px solid var(--line);border-radius:7px;padding:8px}.retention-mastery-card img{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;border-radius:5px}.retention-mastery-card span{font-size:12px;color:var(--muted)}.retention-game-banner{font-size:13px;color:var(--muted);padding:7px 0;margin:0;text-align:center}.popularity-holder{width:100%;min-width:0;max-width:100%;margin:16px 0}.popularity-holder:empty{display:none}@media(max-width:650px){.retention-hub{max-width:100%;margin:0 0 22px}.retention-daily{grid-template-columns:88px minmax(0,1fr);padding:12px;gap:10px}.retention-daily h2{font-size:26px}.retention-missions,.retention-top{padding:12px}.retention-mission strong{font-size:13px}.retention-mastery-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

.seo-category-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,170px),1fr));gap:8px 18px;padding-left:20px}.seo-related{max-width:680px;margin:20px auto}.seo-related li,.seo-category-list li{padding:4px 0}

/* Stage 11A: trust pages and shared responsive footer. */
.trust-copy{max-width:760px;margin:24px 0 0;min-width:0}.trust-copy section{padding:18px 0;border-top:1px solid var(--line)}.trust-copy h2{font-size:clamp(25px,4vw,34px);margin-bottom:10px}.trust-copy p{line-height:1.65;overflow-wrap:anywhere}.trust-copy .trust-date{font-size:13px;color:var(--muted)}.trust-copy .contact-card{padding:22px;border:1px solid var(--line);background:var(--surface);border-radius:12px;margin-bottom:14px}.contact-card h2{font-family:Plex,Arial,sans-serif;font-size:clamp(19px,5vw,28px);overflow-wrap:anywhere;line-height:1.25;margin:8px 0 12px}.trust-cta{display:inline-flex;align-items:center;justify-content:center;min-height:44px;border-radius:6px;padding:10px 16px;background:#f5cb45;color:#171916;font-weight:600;text-decoration:none}.site-footer{display:block;width:100%;max-width:none;margin:0;padding:0;background:#171916;color:#f4f1e8;border-top:3px solid #f5cb45;font-size:14px}.footer-inner,.footer-bottom{width:100%;max-width:1228px;margin:0 auto;padding:30px 24px}.footer-inner{display:grid;grid-template-columns:minmax(0,1.6fr) repeat(4,minmax(0,1fr));gap:24px}.footer-inner>*{min-width:0}.footer-brand .brand{display:inline-block;font-size:40px;margin-bottom:10px}.footer-brand p{font-size:16px;font-weight:600;margin:0 0 8px}.site-footer small{color:#c1c4b7;width:auto;display:block;line-height:1.6}.footer-group{display:flex;flex-direction:column;align-items:flex-start;gap:4px}.footer-group h2{font-family:Plex,Arial,sans-serif;font-size:14px;line-height:1.4;color:#f5cb45;margin:0 0 5px;font-weight:600}.footer-group a,.footer-group .analytics-settings{color:#e3e4db;text-decoration:none;display:inline-flex;align-items:center;min-height:32px;overflow-wrap:anywhere;max-width:100%;font-size:14px}.footer-group a:hover,.footer-group .analytics-settings:hover,.footer-bottom a:hover{text-decoration:underline;color:#f5cb45}.footer-group .analytics-settings{background:transparent;border:0;padding:0;min-height:32px;font-weight:400;text-align:left;box-shadow:none}.footer-bottom{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px;padding-top:16px;padding-bottom:18px;border-top:1px solid #44483d}.footer-bottom a{color:#e3e4db;text-decoration:none;font-size:13px}.site-footer a:focus-visible,.site-footer button:focus-visible{outline:2px solid #f5cb45;outline-offset:3px}.footer-contact a{overflow-wrap:anywhere;word-break:break-word}@media(max-width:850px){.footer-inner{grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 14px}.footer-brand{grid-column:1/-1}.footer-brand small{max-width:340px}}@media(max-width:650px){.footer-inner{padding:24px 16px;gap:18px 12px}.footer-bottom{padding:14px 16px}.footer-group a,.footer-group .analytics-settings{min-height:44px}.footer-brand .brand{font-size:36px}.trust-copy section{padding:14px 0}.trust-copy .contact-card{padding:16px}}

/* Automatic focus: the document never scrolls while a game is active.
   Opt-in scrolling is confined to the game content, never the outer page. */
html.game-focus,html.game-focus body{overflow:hidden;overscroll-behavior:none;width:100%;height:100%;height:100svh}
body.focus-play{position:fixed;inset:0;margin:0;min-height:0;touch-action:none}
body.focus-play #app{position:absolute;inset:0;width:100%;height:100%;max-width:none;min-height:0;margin:0;padding:max(8px,env(safe-area-inset-top)) max(10px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(10px,env(safe-area-inset-left));overflow:hidden;overscroll-behavior:contain;touch-action:none}
body.focus-play .game-breadcrumb,body.focus-play .game-guide,body.focus-play #app>.crumbs,body.focus-play .analytics-consent{display:none}
body.focus-play #app>.arcade-panel,body.focus-play #app>div:has(>.arcade-panel){height:100%;min-height:0}
body.focus-play .arcade-panel{height:100%;min-height:0;display:flex;flex-direction:column;gap:3px;padding:8px;overflow:hidden;border-radius:8px;max-width:850px}
body.focus-play .arcade-head{gap:4px}
body.focus-play .arcade-head h1{font-size:clamp(24px,5vw,36px)}
body.focus-play .arcade-tools{gap:4px}
body.focus-play .arcade-tools button{min-height:34px;padding:4px 7px;font-size:12px}
body.focus-play .arcade-hud{margin:2px auto;width:100%;flex-shrink:0}
body.focus-play .arcade-hud>div{padding:3px}
body.focus-play .arcade-hud strong{font-size:19px;font-variant-numeric:tabular-nums}
body.focus-play .arcade-tools .pause-control{min-inline-size:8ch}
body.focus-play .board-status{min-height:1.5em}
body.focus-play .retention-game-banner{margin:0;font-size:12px;padding:3px 6px}
body.focus-play .arcade-play-area{flex:1 1 0;min-height:0;min-width:0;width:100%;display:grid;place-items:center;container-type:size}
body.focus-play .arcade-canvas-wrap{width:min(100%,calc(100cqh * 320 / 420));height:auto;max-width:460px;max-height:100%;aspect-ratio:320/420;margin:0}
body.focus-play .arcade-pad{margin:2px auto;flex-shrink:0;width:100%}
body.focus-play .game-control-hint{display:none}
body.focus-play .game-access-controls{margin:0}
body.focus-play .game-access-controls summary{padding:3px 0}
body.focus-play .arcade-bottom{gap:4px;flex-shrink:0}
body.focus-play .arcade-bottom button{min-height:38px;font-size:12px;padding:5px 8px}
body.focus-play .arcade-bottom p{font-size:11px}
body.focus-play .arcade-status{margin:0;font-size:12px}
body.focus-play .arcade-typing{margin:2px auto;padding:7px;min-height:38px}
body.focus-play .game-power{gap:0}
body.focus-play .game-power input{touch-action:none;min-height:36px;margin:0}
body.focus-play .game-stick{width:78px;height:78px;flex-basis:78px}
body.focus-play .game-stick-knob{width:35px;height:35px}
body.focus-play .game-actions .arcade-key{min-height:40px}
body.focus-play .game-stage{margin:0 auto;padding:12px;max-width:850px;min-height:0}
body.focus-play .game-stage .row{gap:6px;flex-wrap:wrap}
body.focus-play .game-stage .question{font-size:clamp(18px,3.5vw,26px);margin:10px 0}
body.focus-play .game-stage progress{display:block;margin:8px 0}
body.focus-play .game-stage .board-grid{max-width:min(450px,100%,44svh);margin:8px auto}
body.focus-play .game-stage .maze-scroll{overflow:hidden}
body.focus-play .game-stage .maze-grid{min-width:0}
body.focus-play .game-stage .memory{max-width:min(360px,100%,42svh);margin:8px auto}
body.focus-play .game-stage .number-pad,body.focus-play .game-stage .sudoku-pad{margin:8px auto;gap:4px}
body.focus-play .game-stage .sudoku-pad button{min-height:36px;padding:4px 0}
body.focus-play .game-stage .answers{margin:8px 0;gap:6px}
body.focus-play .game-stage .answers button{padding:8px 12px}
body.focus-play .game-stage .round-exit{font-size:13px;min-height:40px;padding:6px 9px}
body.focus-play .site-dialog{touch-action:auto;overscroll-behavior:contain;max-height:90dvh;overflow:auto}
/* Allow deliberate scrolling via the button, including large puzzles and accessibility controls. */
body.focus-play.game-scroll-enabled{touch-action:auto}
body.focus-play.game-scroll-enabled #app{overflow:auto;touch-action:pan-y}
body.focus-play.game-scroll-enabled .arcade-panel{height:auto;min-height:100%;overflow:visible}
body.focus-play.game-scroll-enabled #app>div:has(>.arcade-panel){height:auto}
body.focus-play.game-scroll-enabled .arcade-play-area{container-type:normal;flex:none;display:block}
body.focus-play.game-scroll-enabled .arcade-canvas-wrap{width:min(100%,calc(52dvh * 320 / 420));max-height:none;margin:auto}
body.focus-play.game-scroll-enabled .game-stage .maze-scroll{overflow-x:auto;touch-action:pan-x pan-y}
body.focus-play.game-scroll-enabled .game-stage .maze-grid.cols-17{min-width:390px}
body.focus-play.game-scroll-enabled .game-stage .maze-grid.cols-15{min-width:350px}
body.focus-play.game-scroll-enabled .game-stage .maze-grid.cols-13{min-width:310px}
body.focus-play.game-scroll-enabled .game-control-hint{display:block}
@media(max-height:480px) and (orientation:landscape){body.focus-play .arcade-panel{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:auto auto minmax(0,1fr) auto;align-items:center;gap:4px 10px}body.focus-play .arcade-head{grid-column:1/-1}body.focus-play .retention-game-banner{display:none}body.focus-play .arcade-hud{grid-column:2;grid-row:2}body.focus-play .arcade-play-area{grid-column:1;grid-row:2/5;height:100%}body.focus-play .arcade-pad{grid-column:2;grid-row:3}body.focus-play .arcade-bottom{grid-column:2;grid-row:4}body.focus-play .arcade-status{display:none}body.focus-play.game-scroll-enabled .arcade-panel{display:flex}body.focus-play.game-scroll-enabled .arcade-play-area{height:auto}}

/* Two-thumb targeting controls: relative movement on the left, separate fire on the right. */
.arcade-panel[data-control-mode=crosshair] .game-primary-controls{justify-content:flex-end;gap:16px;padding:2px 12px;max-width:380px;margin:auto;touch-action:none}
.arcade-panel[data-control-mode=crosshair] .game-actions{flex:0 0 auto}
.arcade-panel[data-control-mode=crosshair] .game-primary-controls .arcade-action{width:80px;height:80px;min-height:80px;min-width:80px;max-width:80px;flex:0 0 80px;border-radius:50%;background:#e98c68;color:#241c18;border:3px solid #a35f45;box-shadow:0 3px 0 #6d4635;font-weight:800;text-transform:uppercase;letter-spacing:1px;touch-action:none;user-select:none}
.arcade-panel[data-control-mode=crosshair] .game-primary-controls .arcade-action.pressed{background:#f5cb45;box-shadow:none;transform:translateY(3px);opacity:1}
@media(max-height:560px){.arcade-panel[data-control-mode=crosshair] .game-primary-controls .arcade-action{width:66px;height:66px;min-width:66px;max-width:66px;min-height:66px;flex-basis:66px}}

@media(max-height:480px) and (orientation:landscape){
  body.focus-play:not(.game-scroll-enabled) .sudoku-stage{
    display:grid;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr);
    column-gap:12px;
    align-content:start;
  }
  body.focus-play .sudoku-stage > *{grid-column:2}
  body.focus-play .sudoku-stage > div[tabindex]{
    grid-column:1;
    grid-row:1 / span 8;
  }
  body.focus-play .sudoku-stage .board-status{margin:0}
  body.focus-play .sudoku-stage .sudoku-pad{margin:4px auto}
}
