.retro-main{max-width:1240px;margin:24px auto 64px;padding:0 24px;color:#24334e}.retro-main h1{font-size:clamp(32px,5vw,58px);letter-spacing:-1.8px}.retro-intro{background:linear-gradient(120deg,#19294e,#31235f);padding:32px;border-radius:24px;color:#fff;border:1px solid #6876a5;box-shadow:0 18px 50px #27324d18}.retro-kicker{font-size:12px;letter-spacing:2px;color:#a8d6ff}.retro-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.retro-section{margin-top:30px}.retro-card{display:flex;gap:12px;align-items:center;padding:22px;border-radius:22px;min-height:180px;color:#fff;background:linear-gradient(140deg,#19304d,#394381);box-shadow:0 10px 25px #23335118;transition:transform .2s;border:1px solid #ffffff24}.retro-card:hover{transform:translateY(-3px)}.retro-card h3{font-size:23px;margin:0 0 8px}.retro-card p{font-size:14px;line-height:1.6;color:#e2ebff}.retro-card strong{font-size:13px}.retro-snake{--accent:#bcff6b;background:linear-gradient(140deg,#123735,#285947)}.retro-maze-chase{--accent:#e8d376;background:linear-gradient(140deg,#202754,#523174)}.retro-solitaire{--accent:#ade9c4;background:linear-gradient(130deg,#0d5040,#246747)}.retro-block-puzzle{--accent:#ffbf63;background:linear-gradient(130deg,#523049,#80504c)}.retro-falling-blocks{--accent:#baa0ff;background:linear-gradient(130deg,#322050,#414676)}.retro-brick-breaker{--accent:#88e4ff;background:linear-gradient(130deg,#28334f,#4d2858)}.retro-word-puzzle{--accent:#83d8ff;background:linear-gradient(130deg,#23466c,#37508e)}.retro-art{width:86px;height:86px;flex:0 0 86px;filter:drop-shadow(0 5px 8px #0003)}.retro-title{display:flex;align-items:center;gap:16px}.retro-title .retro-art{background:#213456;border-radius:20px}.retro-play-layout{display:grid;grid-template-columns:minmax(0,800px) minmax(210px,1fr);gap:24px;align-items:start}.retro-machine{padding:20px;border-radius:22px;color:#fff;border:1px solid #ffffff24;box-shadow:0 16px 40px #192d451c;min-width:0}.retro-stats{display:flex;flex-wrap:wrap;gap:18px;font-size:13px;color:#dceaff}.retro-stats strong{display:block;font-size:25px;color:var(--accent,#fff);font-variant-numeric:tabular-nums}.retro-toolbar,.retro-controls{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0;align-items:center}.retro-machine button,.retro-key{color:#172a41;background:#e3edff;border:0;border-radius:9px;padding:11px 14px;min-height:44px;font-weight:700}.retro-machine button:disabled{opacity:.45}.retro-machine input{color:#1d2a42}.retro-toolbar label{margin-left:auto;font-size:13px}.retro-stage{position:relative;overflow:hidden;background:radial-gradient(ellipse at top,#172b42,#101b30);border:1px solid #95aacf45;border-radius:16px;outline-offset:4px;touch-action:pan-y;min-height:320px}.retro-stage canvas{display:block;width:100%;max-width:480px;height:auto;margin:auto;touch-action:none}.retro-stage #game-canvas[height="660"]{max-height:620px;width:auto;max-width:100%}.retro-leaderboard{border:1px solid #d7e2f1;background:#f5f8fe;border-radius:18px;padding:22px;min-width:0}.retro-leaderboard ol{padding-left:24px}.retro-leaderboard li{padding:10px 0;border-bottom:1px solid #dfe6f2;overflow-wrap:anywhere}.retro-leaderboard p{font-size:13px;line-height:1.7}.retro-community{padding:24px;border:1px solid #dce5f1;border-radius:18px;margin:24px 0;background:#f8faff}.retro-community form{max-width:560px;display:grid;gap:12px}.retro-community input:not([type=checkbox]){width:100%;padding:12px;border:1px solid #b7c8df;border-radius:8px;min-width:0}.retro-community p{line-height:1.7;font-size:14px}.retro-check{display:flex;gap:10px;align-items:flex-start;font-size:13px;line-height:1.6;margin:16px 0}.retro-check input{flex:0 0 auto;margin-top:4px}.local-community{color:#657084;font-size:12px}.retro-machine .local-community{color:#dbe7fd}.word-board{display:grid;gap:8px;max-width:340px;margin:24px auto}.word-row{display:grid;grid-template-columns:repeat(5,1fr);gap:8px}.word-tile{aspect-ratio:1;display:grid;place-items:center;background:#354960;border:2px solid #6d839d;border-radius:12px;font-size:26px;font-weight:800}.word-tile[data-mark="2"]{background:#7fdbff;border-color:#b8ecff;color:#17374a}.word-tile[data-mark="1"]{background:#ffd16a;border-color:#fff0b6;color:#422f14}.word-tile[data-mark="0"]{background:#465064;border-color:#6c768a;color:#fff}.word-form{padding:10px 20px;display:flex;gap:8px}.word-form input{width:100%;min-width:0;padding:12px;border-radius:8px;border:1px solid #9aaec9;text-transform:uppercase;font-size:20px}.word-keyboard{display:flex;flex-wrap:wrap;justify-content:center;gap:4px;padding:12px}.word-keyboard button{padding:7px;min-width:30px;font-size:12px}.retro-pieces{display:flex;gap:12px;justify-content:center}.retro-pieces button{display:grid;grid-template-columns:repeat(4,12px);grid-template-rows:repeat(4,12px);padding:10px}.retro-pieces button[aria-pressed="true"]{outline:3px solid #ffcf79}.mini-cell{width:10px;height:10px;border-radius:2px;background:#67d7ff}.sol-board{padding:14px;background:radial-gradient(ellipse,#216b52,#104635);min-height:460px}.sol-top,.sol-columns{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px}.sol-columns{margin-top:22px;align-items:start}.sol-pile{min-height:78px;position:relative;border:1px dashed #ffffff60;border-radius:7px}.sol-card{width:100%;height:78px;padding:4px!important;border:1px solid #becbda!important;background:#fff!important;color:#24344e!important;border-radius:7px!important;text-align:left;font-size:13px;box-shadow:0 2px 4px #0003;position:relative;display:block;touch-action:pan-y}.sol-card.red{color:#b72949!important}.sol-card.back{background:repeating-linear-gradient(45deg,#25488b,#25488b 4px,#526dbc 4px,#526dbc 8px)!important;border:3px solid #c5d5f5!important}.sol-card+.sol-card{margin-top:-49px}.sol-card[aria-pressed="true"]{outline:3px solid #ffe26c;z-index:2}.sol-pile:empty::before{content:'â—‡';display:grid;place-items:center;color:#d9f7e3;height:76px;font-size:30px}.sol-top .sol-card{margin-top:0}.sol-card svg{width:22px;height:22px;display:block;margin:3px auto}.sol-flying{position:absolute;pointer-events:none;z-index:8;width:50px;height:70px;background:white;border-radius:8px;color:#9b2951;display:grid;place-items:center;font-size:25px}.retro-celebrate{color:#ffe0a0;font-weight:800}.retro-main details{margin:24px 0;padding:12px 18px;border:1px solid #dce5f1;border-radius:12px}.retro-main details p{line-height:1.8}.retro-main button:focus-visible,.retro-card:focus-visible,.retro-main input:focus-visible{outline:3px solid #f3b54c;outline-offset:3px}@media(max-width:1000px){.retro-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.retro-play-layout{grid-template-columns:1fr}.retro-leaderboard{max-width:800px}}@media(max-width:550px){.retro-main{padding:0 12px}.retro-grid{grid-template-columns:1fr}.retro-card{min-height:140px;padding:18px}.retro-intro{padding:22px}.retro-machine{padding:12px}.retro-art{width:64px;height:64px;flex-basis:64px}.retro-title{gap:10px}.retro-stats{gap:12px;font-size:11px}.retro-stats strong{font-size:21px}.retro-toolbar label{margin-left:0}.retro-toolbar button{padding:10px}.sol-board{padding:7px}.sol-top,.sol-columns{gap:3px}.sol-card{font-size:11px;height:65px}.sol-card+.sol-card{margin-top:-42px}.sol-pile{min-height:65px}.sol-pile:empty::before{height:64px}.sol-card svg{width:15px;height:15px}.retro-community{padding:18px}.retro-stage{min-height:260px}}@media(prefers-reduced-motion:reduce){.retro-card{transition:none}.retro-card:hover{transform:none}}
.retro-pieces button{touch-action:none}

.retro-main{color:#e2ebff}.retro-leaderboard,.retro-community{color:#e2ebff;background:#142238;border-color:#415778}.retro-community input:not([type=checkbox]){background:#0b1728;color:#fff}.retro-community a,.retro-main .breadcrumbs a{color:#9ddcff}.retro-main details{border-color:#415778}.retro-leaderboard li{border-color:#415778}.local-community{color:#b4c7df}

.retro-maze-chase{--accent:#ffd13d;background:linear-gradient(130deg,#132d54,#1b1d35)}.retro-maze-chase .retro-stage{background:#000}.retro-maze-chase #game-canvas{max-width:500px}

.maze-start{position:absolute;bottom:16%;left:0;right:0;display:flex;justify-content:center;align-items:center;gap:16px}.maze-start[hidden]{display:none}.maze-start a{color:#adf8ec;text-decoration:underline;font-size:14px}.maze-start button{background:#79f0ff;color:#112c43}

/* Readable guess entry; feedback tiles and keyboard keep their existing colors. */
.retro-word-puzzle .word-form input{background:#fff0b3;color:#000;caret-color:#000;border-color:#95711f}.retro-word-puzzle .word-form input::placeholder{color:#4d4737;opacity:1}.retro-word-puzzle .word-form input:focus-visible{outline:3px solid #ffcf6d;outline-offset:3px}


/* Loose colored Block Puzzle pieces, with empty slots retained for three-piece planning. */
.retro-block-puzzle .retro-controls{display:block}.block-tray{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;min-height:118px;align-items:center}.block-slot{display:flex;justify-content:center;align-items:center;min-width:0;min-height:110px}.retro-block-puzzle button.block-piece{display:grid;grid-template-columns:repeat(var(--cols),var(--unit));grid-template-rows:repeat(var(--rows),var(--unit));--unit:19px;gap:3px;padding:9px;background:transparent;border:0;box-shadow:none;border-radius:0;touch-action:none;cursor:grab;min-height:44px;outline-offset:3px}.block-mini{width:var(--unit);height:var(--unit);border-radius:4px;background:var(--piece-color);box-shadow:inset 0 3px 0 #ffffff55,inset 0 -3px 0 #0002}.block-piece[aria-pressed="true"] .block-mini{box-shadow:inset 0 3px 0 #fff7,0 0 8px var(--piece-color);outline:1px solid #fff9}.block-feedback{font-size:14px;line-height:1.5;min-height:42px;margin:8px 0;color:#d4f5ff;font-weight:700}.block-feedback.block-best{color:#ffe6a1}.block-review{border:1px dashed #e6c46a;padding:14px;margin-top:20px}.block-review button{margin:4px;font-size:13px}.retro-block-puzzle .retro-stage{min-height:0}@media(max-width:390px){.retro-block-puzzle button.block-piece{--unit:12px;gap:2px;padding:5px}.block-tray{gap:4px}.block-slot{min-height:90px}}

.retro-block-puzzle button.block-piece.block-held{position:fixed;z-index:1000;margin:0;cursor:grabbing;pointer-events:none;filter:drop-shadow(0 7px 5px #0008);opacity:1;transition:none;box-sizing:border-box}

/* Block Puzzle-only theater/fullscreen: no global game layout changes. */
.block-size-controls{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0 14px}
.retro-block-puzzle canvas{aspect-ratio:1;height:auto!important}
.retro-block-puzzle.block-theater{grid-column:1/-1}
.retro-play-layout:has(>.block-theater){grid-template-columns:minmax(0,1fr)}
.retro-block-puzzle.block-theater .retro-stage canvas,.retro-block-puzzle:fullscreen .retro-stage canvas{max-width:min(1120px,calc(100vh - 270px));width:100%}
.retro-block-puzzle:fullscreen{overflow:auto;width:100%;box-sizing:border-box;border-radius:0;padding:20px;background:linear-gradient(130deg,#523049,#80504c)}
@media(min-width:1000px){.retro-main:has(.block-theater){max-width:1800px}.retro-block-puzzle.block-theater button.block-piece,.retro-block-puzzle:fullscreen button.block-piece{--unit:30px;gap:5px}.block-theater .block-slot,.retro-block-puzzle:fullscreen .block-slot{min-height:110px}.block-theater .retro-stats strong,.retro-block-puzzle:fullscreen .retro-stats strong{font-size:32px}}
@media(max-width:600px){.retro-block-puzzle.block-theater .retro-stage canvas,.retro-block-puzzle:fullscreen .retro-stage canvas{max-width:100%}.retro-block-puzzle:fullscreen{padding:12px}}

.retro-block-puzzle .block-end-overlay{position:absolute;inset:0;z-index:10;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:10px;text-align:center;padding:clamp(14px,4vw,34px);background:#101d31e8;color:#edf4ff;overflow:auto}
.retro-block-puzzle .block-end-overlay[hidden]{display:none}
.retro-block-puzzle .block-end-overlay h2{font-size:clamp(27px,4vw,48px);line-height:1.1;color:#ffe19b;margin:0 0 10px;letter-spacing:.02em}
.retro-block-puzzle .block-end-overlay p{margin:0;font-size:clamp(14px,2vw,22px);line-height:1.4}
.retro-block-puzzle .block-end-overlay strong{color:#ffe19b;font-size:clamp(15px,2vw,23px)}
.retro-block-puzzle .block-end-overlay button{margin-top:8px;background:#ffe19b;color:#172a41}

/* Block Puzzle gem treatment: matching saturated board/tray material. */
.retro-block-puzzle .block-mini{position:relative;overflow:hidden;background:linear-gradient(145deg,#ffffff55 0%,transparent 34%,#00000016 72%,#00000050 100%),var(--piece-color);border:1px solid #00000045;box-shadow:inset 0 2px 0 #ffffff8a,inset 0 -2px 0 #00000048,0 1px 2px #00000045}
.retro-block-puzzle .block-mini::after{content:'';position:absolute;left:14%;top:18%;width:52%;height:17%;border-radius:5px;background:#ffffff30;transform:rotate(-18deg);pointer-events:none}
.retro-block-puzzle .block-piece[aria-pressed="true"] .block-mini{box-shadow:inset 0 2px 0 #ffffffa0,inset 0 -2px 0 #00000050,0 0 5px var(--piece-color);outline:1px solid #fff9}
.retro-block-puzzle.block-revealing .block-tray{visibility:hidden;pointer-events:none}
