:root{--cream:#f6eedb;--paper:#fff9e9;--navy:#082c46;--coral:#ff755a;--turquoise:#4bd9cb;--ink:#103249;--gold:#f5bd75;font-family:Arial,Helvetica,sans-serif;color:var(--navy);background:#082c46;color-scheme:light}
*{box-sizing:border-box}body{margin:0;background:repeating-linear-gradient(0deg,transparent 0 3px,#061c2d20 3px 4px),radial-gradient(ellipse at 45% 15%,#1c6c7c,#082c46 72%);min-height:100vh}button,input{font:inherit}button{cursor:pointer;touch-action:manipulation}button:focus-visible,input:focus-visible{outline:3px solid #ecab44;outline-offset:3px}[hidden]{display:none!important}.arcade{max-width:1140px;padding:22px 28px 16px;margin:0 auto}.masthead{display:flex;justify-content:center;align-items:center;gap:46px;position:relative;z-index:2}.brand{background:var(--cream);border:5px solid var(--coral);outline:6px solid var(--turquoise);border-radius:22px;padding:10px 24px;color:var(--navy);text-align:center;box-shadow:0 8px 0 #061b2e;font:900 21px/.94 Georgia,serif;letter-spacing:2px;transform:rotate(-1deg);min-width:206px}.brand strong{display:block;font-size:76px;letter-spacing:-4px;text-shadow:3px 4px var(--coral)}.shop-strip{display:flex;flex-direction:column;gap:8px;transform:rotate(-5deg);width:195px}.shop-strip.right{transform:rotate(5deg)}.shop-strip span{background:var(--paper);padding:6px 12px;border-left:9px solid var(--turquoise);box-shadow:0 5px 0 #051b2b;border-radius:3px;font:800 italic 13px Georgia,serif}.shop-strip span:nth-child(2){border-color:var(--coral)}.shop-strip span:nth-child(3){border-color:var(--gold)}
.music-scene{position:relative;display:flex;justify-content:space-around;align-items:center;height:148px;margin:0 0 -10px;overflow:hidden;isolation:isolate}.music-scene:before{content:'';position:absolute;z-index:-1;left:-30px;right:-30px;top:42px;height:12px;background:var(--turquoise);box-shadow:0 14px var(--cream),0 28px var(--coral);transform:rotate(-2deg)}.vinyl{width:139px;height:139px;border:5px solid #051d2e;border-radius:50%;background:repeating-radial-gradient(circle,#102334 0 3px,#284351 3px 5px);position:relative;box-shadow:4px 8px 0 #05283bb0;transform:rotate(-16deg)}.vinyl:before{content:'SIDE A';position:absolute;inset:39px;background:var(--coral);border:6px solid var(--cream);border-radius:50%;display:flex;justify-content:center;align-items:center;font-weight:900;font-size:11px}.cassette{width:189px;height:108px;background:#102c40;border:4px solid #051a29;border-radius:9px;padding:10px;transform:rotate(7deg);box-shadow:4px 6px #05243890}.cassette span{display:block;background:repeating-linear-gradient(0deg,#f6eedb 0 11px,#dacfb5 11px 12px);padding:5px;border-left:9px solid var(--coral);font:800 italic 15px Georgia,serif;text-align:center}.reels{background:var(--turquoise);margin:9px 13px 0;text-align:center;border-radius:8px;font-size:19px;font-weight:900;white-space:nowrap}.scene-note{padding:13px;background:var(--cream);border:3px solid var(--coral);color:var(--navy);transform:rotate(-9deg);box-shadow:4px 5px #05243890;font:900 italic 19px/1.05 Georgia,serif;text-align:center}.cd{width:125px;height:125px;border-radius:50%;border:3px solid #d7e7de;background:conic-gradient(#dde4dd,#7bccbd,#bbb0d7,#eadbbb,#e59274,#8fddd0,#dde4dd);position:relative;box-shadow:4px 6px #05243890}.cd:before{content:'';position:absolute;inset:46px;background:var(--navy);border:8px solid #d7dfd4;border-radius:50%}.player{width:88px;height:125px;background:#eee9dc;border:4px solid #c4cdc4;border-radius:12px;padding:9px 7px;transform:rotate(10deg);box-shadow:4px 6px #05243890}.player span{display:block;background:#aad0c3;border:2px solid #789489;text-align:center;font:800 9px Arial;padding:7px 0}.player div{width:45px;height:45px;border-radius:50%;border:11px solid #dfddd1;background:#faf7ec;margin:9px auto 0;font-size:12px;display:flex;justify-content:center;align-items:center}.arcade[data-era="1980s"] .cd,.arcade[data-era="1980s"] .player{display:none}.arcade[data-era="1990s"] .player{display:none}.arcade[data-era="2000s"] .cassette{display:none}
.puzzle-cabinet{position:relative;z-index:1;background:var(--cream);border:7px solid var(--coral);border-radius:35px;outline:4px solid var(--cream);box-shadow:0 -7px 0 5px var(--turquoise),0 12px 28px #00132360;overflow:hidden}.title-panel{text-align:center;padding:23px 16px 10px}.eyebrow{font-size:12px;font-weight:900;letter-spacing:3px;margin-bottom:9px}h1{font:900 clamp(30px,4.5vw,53px)/1.03 Georgia,serif;letter-spacing:-1.5px;margin:0;text-shadow:2px 3px var(--coral)}.title-panel p{font-size:15px;margin:12px 0 8px}.selectors{display:flex;justify-content:center;gap:30px;padding:8px 16px 18px;flex-wrap:wrap}.selector-label{display:block;font-size:10px;font-weight:900;letter-spacing:2px;margin:0 0 8px;text-align:center}.pill-group{display:flex;gap:7px;flex-wrap:wrap;justify-content:center}.pill{background:var(--paper);color:var(--navy);border:2px solid var(--navy);border-radius:24px;padding:9px 16px;font-size:14px;font-weight:800;min-height:42px;box-shadow:0 3px 0 #143b4928;position:relative}.pill[aria-pressed="true"]{background:var(--navy);color:var(--cream)}.pill.completed:after{content:' ✓';color:inherit}.pill small{font-size:11px;opacity:.85;margin-left:4px}.session-heading{margin:0 24px 16px;padding:12px 0;border-top:3px solid var(--coral);border-bottom:1px solid #082c4640;display:flex;justify-content:space-between;gap:8px;font-weight:800;font-size:12px}.workbench{display:grid;grid-template-columns:minmax(0,1.23fr) minmax(255px,.9fr);gap:25px;padding:0 24px 10px;align-items:start}.grid-panel{min-width:0}.board{display:grid;gap:2px;background:var(--navy);padding:9px;border:3px solid var(--navy);border-radius:13px;max-width:565px;margin:0 auto}.cell{aspect-ratio:1;min-width:0;position:relative;border-radius:1px}.cell.open{background:var(--paper)}.cell.active{background:#a3efe3}.cell.focused{box-shadow:inset 0 0 0 3px #f38750}.cell.helped{background:#f9d38e}.cell.wrong{box-shadow:inset 0 0 0 2px #c24031}.cell input{width:100%;height:100%;padding:2px 0 0;border:0;text-align:center;background:transparent;color:var(--navy);font:800 clamp(14px,2vw,21px) Arial;text-transform:uppercase;caret-color:var(--navy);border-radius:0}.cell .number{position:absolute;left:2px;top:1px;font:700 10px/1 Arial;pointer-events:none}.entry-guide{display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:13px;font-weight:800;margin:13px 0 6px}.small-button{background:transparent;border:1px solid var(--navy);color:var(--navy);border-radius:18px;padding:6px 10px;font-size:11px;min-height:34px}.instruction{font-size:12px;margin:8px 0;opacity:.9}.clue-panel{display:flex;flex-direction:column;gap:17px}.clue-panel h2{font:900 17px Georgia,serif;letter-spacing:1px;border-bottom:3px solid var(--coral);padding:0 0 7px;margin:0 0 7px}.clue{display:flex;gap:8px;width:100%;text-align:left;color:var(--navy);background:transparent;border:0;border-bottom:1px solid #082c4625;border-radius:5px;padding:9px 7px;font-size:14px;line-height:1.4;min-height:44px}.clue .clue-number{font-weight:900;min-width:17px}.clue[aria-pressed="true"]{background:#b5eae0}.clue.correct .clue-number:after{content:'✓';display:block;color:#176446;font-size:14px}.clue.correct{color:#176446}.help-desk{display:flex;justify-content:center;gap:12px;padding:15px 20px 0;margin:10px 24px 0;border-top:3px solid var(--coral);flex-wrap:wrap}.button{border:2px solid var(--navy);border-radius:15px;padding:12px 20px;min-height:48px;font-size:15px;font-weight:900;box-shadow:0 3px 0 #0a304225;color:var(--navy)}.turquoise{background:var(--turquoise)}.cream{background:var(--paper)}.navy{background:var(--navy);color:var(--cream)}.coral{background:var(--coral)}.button span{margin-left:8px}.feedback{margin:14px 24px;min-height:24px;text-align:center;font-size:14px;line-height:1.5}.completion{margin:15px 24px;background:#b5eae0;border-radius:15px;padding:18px;display:flex;align-items:center;justify-content:center;gap:15px;flex-wrap:wrap;text-align:center}.completion strong{font:900 25px Georgia,serif}.completion span{font-size:14px}.bottom-bar{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:0 24px 18px;font-size:12px}.text-button{border:0;background:transparent;text-decoration:underline;color:var(--navy);padding:8px 0;font-size:13px;min-height:40px}.arcade-footer{display:flex;flex-wrap:wrap;gap:12px;justify-content:space-between;color:var(--cream);font-size:11px;letter-spacing:.5px;padding:20px 0 0}.arcade-footer>span:first-child{font-weight:900}.loading,.error{padding:24px;text-align:center}.error p{font-size:14px}dialog{background:var(--cream);color:var(--navy);border:5px solid var(--coral);border-radius:20px;max-width:min(440px,92vw);padding:24px}dialog::backdrop{background:#051c32aa}dialog h2{font:900 27px Georgia,serif;margin-top:0}dialog p{line-height:1.5}.dialog-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:center}.noscript{background:var(--cream);padding:20px;text-align:center}
@media(min-width:1000px){.arcade[data-level="Challenge"] .workbench{grid-template-columns:minmax(0,1.17fr) minmax(290px,1fr)}.arcade[data-level="Challenge"] .clue-panel{display:grid;grid-template-columns:1fr 1fr;gap:15px}.arcade[data-level="Challenge"] .clue{font-size:13px}}
@media(max-width:760px){.arcade{padding:20px 14px 14px}.masthead{gap:25px}.shop-strip{width:150px}.shop-strip span{font-size:10px}.brand{min-width:165px;font-size:17px;padding:9px 18px}.brand strong{font-size:58px}.music-scene{height:125px}.vinyl{width:112px;height:112px}.vinyl:before{inset:29px}.cassette{width:150px;height:96px}.cassette span{font-size:12px}.reels{font-size:16px;margin-left:6px;margin-right:6px}.scene-note{font-size:15px;padding:10px}.cd{width:100px;height:100px}.cd:before{inset:35px}.workbench{grid-template-columns:1fr;gap:20px;padding:0 18px 8px}.board{max-width:520px}.clue-panel{display:grid;grid-template-columns:1fr 1fr;gap:16px}.selectors{gap:14px}.session-heading{margin-left:18px;margin-right:18px;flex-wrap:wrap}.help-desk{margin-left:18px;margin-right:18px;padding-left:0;padding-right:0;gap:8px}.button{font-size:14px;padding:10px 14px}.feedback{margin-left:18px;margin-right:18px}}
@media(max-width:440px){.arcade{padding:17px 10px 12px}.shop-strip{display:none}.brand{padding:8px 25px;min-width:170px}.music-scene{height:118px;gap:12px;justify-content:center}.music-scene .scene-note{display:none}.player{width:76px;height:111px}.player div{margin-top:6px;width:40px;height:40px;border-width:10px}.puzzle-cabinet{border-width:5px;border-radius:25px}.title-panel{padding:19px 10px 7px}.eyebrow{font-size:10px;letter-spacing:1.5px}h1{font-size:32px;letter-spacing:-1px}.title-panel p{font-size:13px}.selectors{padding:8px 8px 15px;gap:14px}.pill{padding:8px 11px;font-size:13px;min-height:44px}.pill small{font-size:10px}.workbench{padding:0 10px 4px;gap:15px}.board{padding:4px;border-width:2px;gap:1px}.cell .number{font-size:8px;left:1px;top:0}.cell input{font-size:16px;padding-top:2px}.arcade[data-level="Challenge"] .cell input{font-size:13px}.cell.focused{box-shadow:inset 0 0 0 2px #f38750}.clue-panel{grid-template-columns:1fr;gap:16px}.clue{font-size:14px}.session-heading{margin:0 11px 12px;font-size:11px}.session-heading span:last-child{flex-basis:100%;text-align:center}.entry-guide{font-size:12px}.help-desk{margin:10px 11px 0;gap:7px}.button{padding:10px 11px;font-size:13px;min-height:44px}.feedback{margin:12px 11px;font-size:13px}.bottom-bar{margin:0 11px 12px;font-size:10px}.completion{margin:12px 11px}.arcade-footer{justify-content:center;text-align:center;font-size:10px}.music-scene:before{top:37px}.brand strong{font-size:61px}}
@media(prefers-reduced-motion:no-preference){.clue,.pill,.button{transition:background .15s,box-shadow .15s}.button:hover{box-shadow:0 5px 0 #0a304235}.pill:hover{box-shadow:0 5px 0 #143b4935}}

.rotation-picker{display:flex;justify-content:center;align-items:center;gap:24px;flex-wrap:wrap;padding:0 16px 18px}.rotation-picker .pill{min-width:44px;padding:8px 13px}.rotation-action{display:flex;flex-direction:column;align-items:center;gap:8px;font-size:12px;font-weight:800}.rotation-action .small-button{min-height:42px;padding:8px 14px}@media(max-width:440px){.rotation-picker{gap:12px;padding:0 8px 15px}.rotation-action{width:100%}}

.rotation-picker #sets{flex-wrap:wrap;gap:7px}.rotation-picker #sets .pill{width:auto;min-width:82px;padding:8px 12px;white-space:nowrap}

/* Landscape game frames keep entry controls and clues in the same viewport. */
body{-webkit-user-select:none;user-select:none}input{-webkit-user-select:text;user-select:text}.arcade{padding-bottom:max(16px,env(safe-area-inset-bottom));padding-left:max(10px,env(safe-area-inset-left));padding-right:max(10px,env(safe-area-inset-right))}
@media(pointer:coarse) and (min-width:780px) and (min-aspect-ratio:6/5){
 body{height:100dvh;overflow:hidden}.arcade{height:100dvh;max-width:1500px;padding:6px 12px;display:flex;flex-direction:column;gap:6px}.masthead{height:28px;flex:none}.shop-strip,.music-scene,.arcade-footer{display:none}.brand{display:flex;align-items:center;gap:6px;min-width:0;border-width:2px;outline-width:2px;border-radius:9px;padding:2px 12px;font-size:10px;box-shadow:none;letter-spacing:1px;transform:none}.brand strong{display:inline;font-size:22px;letter-spacing:-1px;text-shadow:1px 1px var(--coral)}.puzzle-cabinet{flex:1;min-height:0;border-width:4px;border-radius:16px;outline-width:2px;display:flex;flex-direction:column;box-shadow:none}.title-panel{padding:5px 10px 3px}.title-panel .eyebrow,.title-panel p{display:none}h1{font-size:23px;letter-spacing:-.5px;text-shadow:1px 1px var(--coral)}.selectors{padding:3px 10px 6px;gap:22px;flex-wrap:nowrap}.selectors .selector-label,.rotation-picker .selector-label{display:none}.pill{min-height:30px;padding:4px 13px;font-size:12px}.pill small{font-size:10px}.rotation-picker{padding:0 10px 5px;gap:18px;flex-wrap:nowrap}.rotation-picker .pill{min-height:30px;padding:4px}.rotation-action{flex-direction:row;gap:10px;font-size:11px}.rotation-action .small-button{min-height:30px;padding:4px 10px}.session-heading{margin:0 12px 5px;padding:4px 0;border-top-width:2px;font-size:11px;flex-wrap:nowrap}.session-heading span:last-child{flex-basis:auto}.workbench{min-height:0;padding:0 12px;gap:18px;grid-template-columns:minmax(220px,.85fr) minmax(0,1.2fr)}.arcade[data-level="Challenge"] .workbench{grid-template-columns:minmax(220px,.85fr) minmax(0,1.2fr)}#play-area{flex:1;min-height:0;display:grid;grid-template-rows:auto auto minmax(0,1fr) auto auto auto auto}.grid-panel{min-height:0;display:flex;flex-direction:column;justify-content:center}.board{width:100%;padding:3px;border-width:2px;gap:1px;border-radius:8px;flex:none}.cell input{font-size:13px}.cell .number{font-size:7px}.entry-guide{flex:none;margin:4px 0;font-size:11px}.entry-guide .small-button{min-height:26px;padding:3px 8px}.instruction{display:none}.clue-panel,.arcade[data-level="Challenge"] .clue-panel{display:block;min-height:0;overflow:auto;overscroll-behavior:contain;padding-right:5px;scrollbar-width:thin}.clue-panel h2{font-size:14px;margin:0 0 3px;padding:3px 0;border-bottom-width:2px}.clue{font-size:13px!important;min-height:36px;padding:6px;line-height:1.3}.clue-panel>div+div{margin-top:8px}.help-desk{margin:5px 12px 0;padding:5px 0 0;border-top-width:2px;gap:10px}.button{min-height:32px;padding:5px 14px;border-radius:10px;font-size:12px;box-shadow:none}.feedback{min-height:16px;margin:4px 12px;font-size:12px;line-height:1.3}.bottom-bar{margin:0 12px 3px;font-size:10px}.text-button{padding:2px 0;min-height:22px;font-size:11px}.completion{margin:3px 12px;padding:5px;gap:10px;min-height:36px}.completion strong{font-size:18px}.completion span{font-size:11px}
}

.game-label{display:none}@media(pointer:coarse) and (min-width:780px) and (min-aspect-ratio:6/5){.game-label{display:block;position:absolute;left:5px;font:800 12px Arial;color:var(--cream);letter-spacing:.5px}}

@media(pointer:coarse) and (min-width:780px) and (min-aspect-ratio:6/5){.workbench{align-items:stretch}.cell{min-height:0;aspect-ratio:auto}.cell input{min-height:0}.arcade{padding-left:max(12px,env(safe-area-inset-left));padding-right:max(12px,env(safe-area-inset-right))}}

.board-viewport{display:contents}
@media(pointer:coarse) and (min-width:780px) and (min-aspect-ratio:6/5){.grid-panel{justify-content:flex-start}.board-viewport{display:block;flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin}.board{margin:0 auto}.cell input{font-size:14px}}

/* Touch layouts keep letters and targets readable at every difficulty. */
.active-clue{display:none}
@media(pointer:coarse){
 .active-clue{display:block;position:sticky;top:0;z-index:3;background:var(--cream);border-left:4px solid var(--turquoise);padding:8px 10px;margin:0 0 8px;font-size:14px;line-height:1.35;font-weight:700}
 .board-viewport{display:block;width:100%;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;max-height:clamp(140px,calc(var(--visible-height,100svh)*.48),460px)}
 .cell input,.arcade[data-level="Challenge"] .cell input{font-size:18px!important;padding-top:3px}
 .cell .number{font-size:9px}
 .pill,.rotation-picker .pill,.small-button,.text-button,.button,.clue{min-height:44px}
 .board{gap:1px;padding:4px;border-width:2px;margin:0}
 .workbench,.arcade[data-level="Challenge"] .workbench{grid-template-columns:1fr}
 .clue-panel{grid-template-columns:1fr}
}
@media(pointer:coarse) and (max-width:760px){
 .arcade{padding-top:10px}.brand{padding:6px 20px;font-size:12px;min-width:145px;outline-width:4px;border-width:3px}.brand strong{font-size:42px}.shop-strip{display:none}.music-scene{height:70px;gap:12px}.vinyl,.cd{height:59px;width:59px}.vinyl:before{inset:17px}.cd:before{inset:22px}.cassette{width:98px;height:59px}.cassette span{font-size:9px;padding:3px}.reels{font-size:10px;margin:3px}.player{width:50px;height:63px;padding:5px}.player span{font-size:7px}.player div{width:26px;height:26px;border-width:6px;margin-top:3px}.scene-note{display:none}.title-panel{padding-top:12px}h1{font-size:27px}.title-panel p{font-size:12px;margin-top:7px}.eyebrow{font-size:9px;margin-bottom:5px}.selectors{gap:8px;padding-bottom:10px}.selector-label{margin-bottom:4px}.rotation-picker{padding-bottom:10px;gap:8px}.session-heading{margin-bottom:8px}
}
@media(pointer:coarse) and (min-width:780px) and (min-aspect-ratio:6/5){
 body{height:auto;overflow:auto}.arcade{height:auto;min-height:100dvh}.puzzle-cabinet{flex:none}#play-area{display:block}.workbench{display:grid;grid-template-columns:1fr 1fr!important;align-items:start}.grid-panel{display:block}.board-viewport{height:clamp(140px,calc(var(--visible-height,100svh)*.48),460px)}.clue-panel{max-height:clamp(140px,calc(var(--visible-height,100svh)*.65),600px)}.selectors,.rotation-picker{flex-wrap:wrap}.session-heading{flex-wrap:wrap}.game-label{font-size:10px}.help-desk{padding-top:8px}.bottom-bar{margin-top:8px}
}

@media(pointer:coarse){.grid-panel .help-desk{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;margin:8px 0 0;padding:6px 0 0}.grid-panel .help-desk .button{font-size:12px;padding:5px 2px;min-height:44px}.grid-panel .help-desk .button span{display:none}}

/* Jonathan's supplied original arcade badge. */
.brand{padding:0!important;min-width:0!important;border:0!important;outline:0!important;background:transparent;box-shadow:none;border-radius:0;transform:none;flex-shrink:0;width:300px}
.brand img{display:block;width:100%;height:auto}
@media(max-width:760px){.brand{width:240px}}
@media(max-width:440px){.brand{width:230px}}
@media(pointer:coarse) and (min-width:780px) and (min-aspect-ratio:6/5){.masthead{height:76px}.brand{width:114px}.brand img{height:76px;object-fit:contain}}
/* Four original theme scenes share the arcade's navigation and palette. */
.theme-selector{padding:8px 18px 0;text-align:center}.theme-selector .pill-group{justify-content:center}.theme-selector .pill{font-size:14px;min-height:44px}.theme-props{display:none;align-items:center;justify-content:center;gap:24px;width:100%;height:100%}.theme-prop{position:relative;color:var(--navy);font:bold 14px Georgia,serif}.theme-prop span{position:relative;z-index:1}.arcade[data-theme="Movies"]{--turquoise:#e8ae49}.arcade[data-theme="Skating"]{--turquoise:#68c0a5}.arcade[data-theme="Cars"]{--turquoise:#8ec8df}
.arcade:not([data-theme="Music"]) .music-scene>div:not(.theme-props){display:none}.arcade:not([data-theme="Music"]) .theme-props{display:flex}
.arcade[data-theme="Movies"] .theme-prop{width:180px;height:80px;border:7px solid #092c45;border-radius:8px;background:#061c2d;box-shadow:5px 6px 0 #062136;transform:rotate(-5deg);padding:10px}.arcade[data-theme="Movies"] .theme-prop span{display:block;background:var(--paper);padding:8px;border-left:10px solid var(--coral);font-style:italic}.arcade[data-theme="Movies"] .theme-prop:nth-child(2){transform:rotate(4deg)}.arcade[data-theme="Movies"] .theme-prop:nth-child(3){transform:rotate(-2deg)}
.arcade[data-theme="Skating"] .theme-prop{width:190px;height:67px;background:var(--coral);border:5px solid var(--navy);border-radius:50px;transform:rotate(-12deg);text-align:center;line-height:55px;box-shadow:inset 0 0 0 5px var(--paper)}.arcade[data-theme="Skating"] .theme-prop:before,.arcade[data-theme="Skating"] .theme-prop:after{content:'';position:absolute;bottom:-14px;height:18px;width:18px;border-radius:50%;background:var(--paper);border:4px solid var(--navy)}.arcade[data-theme="Skating"] .theme-prop:before{left:28px}.arcade[data-theme="Skating"] .theme-prop:after{right:28px}.arcade[data-theme="Skating"] .theme-prop:nth-child(2){background:var(--turquoise);transform:rotate(7deg)}.arcade[data-theme="Skating"] .theme-prop:nth-child(3){background:var(--gold);transform:rotate(-5deg)}
.arcade[data-theme="Cars"] .theme-prop{width:190px;height:55px;margin-top:32px;background:var(--coral);border:5px solid var(--navy);border-radius:12px 25px 8px 8px;text-align:center;padding-top:8px}.arcade[data-theme="Cars"] .theme-prop:before{content:'';position:absolute;left:36px;right:34px;top:-34px;height:30px;background:var(--turquoise);border:5px solid var(--navy);border-radius:22px 28px 0 0;transform:skewX(15deg)}.arcade[data-theme="Cars"] .theme-prop:after{content:'';position:absolute;left:20px;bottom:-15px;width:26px;height:26px;border-radius:50%;background:var(--paper);border:7px solid var(--navy);box-shadow:108px 0 0 -1px var(--navy)}.arcade[data-theme="Cars"] .theme-prop:nth-child(2){background:var(--gold)}.arcade[data-theme="Cars"] .theme-prop:nth-child(3){background:var(--turquoise)}.arcade[data-theme="Cars"][data-era="1980s"] .theme-prop{border-radius:2px 18px 4px 4px}.arcade[data-theme="Cars"][data-era="2000s"] .theme-prop:before{border-radius:40px 40px 0 0}
@media(max-width:760px){.theme-props{gap:15px}.theme-prop{font-size:11px!important}.arcade[data-theme="Movies"] .theme-prop{width:125px;height:65px;padding:5px}.arcade[data-theme="Movies"] .theme-prop span{padding:7px 3px;border-left-width:5px}.arcade[data-theme="Skating"] .theme-prop{width:135px;height:55px;line-height:44px}.arcade[data-theme="Cars"] .theme-prop{width:135px}.arcade[data-theme="Cars"] .theme-prop:before{left:20px;right:20px}.arcade[data-theme="Cars"] .theme-prop:after{box-shadow:68px 0 0 -1px var(--navy)}}
@media(max-width:440px){.theme-selector{padding:6px 8px 0}.theme-selector .pill-group{gap:5px}.theme-selector .pill{font-size:12px;padding:6px 9px}.theme-props{gap:12px}.theme-prop:last-child{display:none}.arcade[data-theme="Movies"] .theme-prop{width:118px}.arcade[data-theme="Skating"] .theme-prop{width:120px}.arcade[data-theme="Cars"] .theme-prop{width:118px}.arcade[data-theme="Cars"] .theme-prop:after{box-shadow:51px 0 0 -1px var(--navy)}}
@media(pointer:coarse) and (max-width:760px){.arcade[data-theme="Movies"] .theme-prop{height:50px}.arcade[data-theme="Movies"] .theme-prop span{padding:3px}.arcade[data-theme="Skating"] .theme-prop{height:42px;line-height:30px}.arcade[data-theme="Cars"] .theme-prop{height:34px;margin-top:22px;padding-top:3px}.arcade[data-theme="Cars"] .theme-prop:before{top:-24px;height:20px}}
@media(pointer:coarse) and (min-width:780px) and (min-aspect-ratio:6/5){.theme-selector{padding:2px 12px;display:flex;justify-content:center;align-items:center;gap:10px}.theme-selector>.selector-label{font-size:9px;margin:0}.theme-selector .pill{min-height:26px;font-size:11px;padding:3px 12px}.theme-selector .pill-group{gap:6px}}
@media(pointer:coarse) and (min-width:780px) and (min-aspect-ratio:6/5){.theme-selector .pill{min-height:44px}}

/* Phone entry keeps the clue, hint, grid and game keyboard in one view. */
.active-hint{background:#fff3cc;border-left:4px solid var(--gold);padding:6px 10px;margin:0 0 6px;font-size:13px;line-height:1.3}
.letter-keyboard{padding:5px 0 max(5px,env(safe-area-inset-bottom));flex:none}
.key-row{display:flex;justify-content:center;gap:3px;margin:3px 0}
.key-row button{flex:1;max-width:44px;min-width:0;min-height:42px;padding:0;border:1px solid var(--navy);border-radius:6px;background:var(--paper);color:var(--navy);font-weight:800;font-size:15px}
.key-row:last-child button:nth-last-child(-n+2){max-width:58px;font-size:11px;background:var(--navy);color:var(--cream)}
@media(pointer:coarse){.grid-panel>.feedback{text-align:left;margin:0 0 6px;min-height:0;font-size:12px}.active-hint{display:block}}
@media(pointer:coarse) and (max-width:760px), (pointer:coarse) and (max-height:500px){
 .grid-panel{display:flex;flex-direction:column;position:static}
 .active-clue{position:static;margin:0 0 5px;padding:6px 8px;font-size:13px}
 .active-hint{margin-bottom:5px}
 .board-viewport{height:clamp(96px,calc(var(--visible-height,100svh) - 480px),280px);max-height:none;overflow:auto}
 .entry-guide{order:4;margin:4px 0;font-size:11px}
 .entry-guide button{min-height:36px}
 .grid-panel>.help-desk{order:5;margin:0;padding:3px 0;border-top:0;flex-wrap:nowrap;gap:5px}
 .help-desk button{flex:1;min-height:36px;font-size:12px;padding:5px}
 .letter-keyboard{order:6}
 .instruction{order:7}
 .grid-panel>.feedback{max-height:32px;overflow:auto;margin-bottom:4px}
}

@media(pointer:coarse) and (max-width:760px), (pointer:coarse) and (max-height:500px){
 .brand{width:155px}.music-scene{height:45px}.title-panel{padding-top:8px}h1{font-size:25px}
 .title-panel p{margin:5px 0;font-size:13px;font-weight:700}
 .board-viewport{height:auto!important;max-height:none!important;overflow:visible!important}
 .board{margin:0 auto}
 .cell{aspect-ratio:auto;min-height:0}
 .cell input,.arcade[data-level="Challenge"] .cell input{font-size:var(--overview-letter,14px)!important;padding-top:1px}
 .cell .number{font-size:6px}
}

@media(pointer:coarse) and (max-width:760px), (pointer:coarse) and (max-height:500px){
 .music-scene{height:86px;margin:4px 0 12px;overflow:visible}
 .music-scene .vinyl,.music-scene .cd{width:59px;height:59px;flex-shrink:0}
 .music-scene .cassette{flex-shrink:0}
 .music-scene .player{display:none}
 .theme-props{height:100%;align-items:center}
 .puzzle-chooser{margin:8px 10px 10px;border:1px solid var(--navy);border-radius:12px;background:var(--paper);overflow:hidden}
 .puzzle-chooser summary{cursor:pointer;min-height:56px;padding:10px 12px;list-style:none;display:flex;flex-direction:column;gap:5px;position:relative}
 .puzzle-chooser summary::-webkit-details-marker{display:none}
 .puzzle-chooser summary:after{content:'⌄';position:absolute;right:12px;top:12px;font-size:22px}
 .puzzle-chooser[open] summary:after{content:'⌃'}
 .puzzle-chooser summary span{font-size:11px;font-weight:700}
 .puzzle-chooser summary strong{font-size:12px;padding-right:18px}
 .puzzle-chooser[open] summary{border-bottom:1px solid #082c4630}
 .puzzle-chooser .theme-selector{padding-top:10px}
 .puzzle-chooser .rotation-picker{padding:8px 8px 12px}
 .session-heading{font-size:10px;margin-bottom:8px}
 .session-heading #puzzle-count{display:none}
 .session-heading #catalog-progress{flex-basis:auto!important;text-align:right;margin-left:auto}
 .title-panel .eyebrow{display:none}
 .title-panel p{font-size:12px;font-weight:400}
}
@media(pointer:coarse) and (max-width:760px), (pointer:coarse) and (max-height:500px){
 .music-scene{margin-bottom:22px}
 .music-scene:before{left:0;right:0;transform:none;top:28px;height:8px;box-shadow:0 10px var(--cream),0 20px var(--coral)}
}

@media(pointer:coarse) and (max-width:760px), (pointer:coarse) and (max-height:500px){.music-scene{display:flex}}
@media(pointer:coarse) and (max-width:760px), (pointer:coarse) and (max-height:500px){
 .theme-props{gap:12px}
 .arcade[data-theme="Movies"] .theme-prop{width:118px;height:50px;padding:5px}
 .arcade[data-theme="Movies"] .theme-prop span{padding:3px;border-left-width:5px}
 .arcade[data-theme="Skating"] .theme-prop{width:120px;height:42px;line-height:30px}
 .arcade[data-theme="Cars"] .theme-prop{width:118px;height:34px;margin-top:22px;padding-top:3px}
 .arcade[data-theme="Cars"] .theme-prop:before{left:20px;right:20px;top:-24px;height:20px}
 .arcade[data-theme="Cars"] .theme-prop:after{box-shadow:51px 0 0 -1px var(--navy)}
}

/* ISS-0024: compact selection drawer and fully visible game boards. */
@media(pointer:coarse) and (min-width:780px) and (min-aspect-ratio:6/5){
 .masthead{height:40px}.brand{width:70px}.brand img{height:40px}
 .puzzle-chooser{display:block;position:relative;margin:3px 12px 5px;border:1px solid var(--navy);border-radius:9px;background:var(--paper);flex:none}
 .puzzle-chooser summary{min-height:36px;padding:6px 10px;cursor:pointer;display:flex;justify-content:space-between;gap:10px;font-size:12px;font-weight:700;list-style:none}
 .puzzle-chooser[open]{position:absolute;top:32px;left:0;right:0;z-index:8;max-height:calc(100dvh - 48px);overflow:auto}
 .puzzle-chooser[open] summary{border-bottom:1px solid #082c4640}
 .puzzle-chooser .selectors{padding:6px}.puzzle-chooser .theme-selector{padding:8px}.puzzle-chooser .rotation-picker{padding:8px;flex-wrap:wrap}
 .board-viewport{overflow:visible}.cell input{font-size:var(--overview-letter,14px)}
 .saving-notice{font-size:11px}.saving-notice summary{min-height:20px;padding:3px 12px;cursor:pointer}.saving-notice[open]{position:absolute;inset:35px 12px 12px;background:var(--paper);z-index:9;overflow:auto;padding:12px;border:2px solid var(--navy);border-radius:12px}
}
@media(pointer:coarse) and (min-width:780px) and (min-aspect-ratio:6/5){
 body{height:100dvh;overflow:hidden}.arcade{height:100dvh;min-height:0}.puzzle-cabinet{flex:1;min-height:0}
 #play-area{display:grid;grid-template-rows:auto minmax(0,1fr) auto auto auto auto}
 .workbench{min-height:0;align-items:stretch}.grid-panel{display:flex;min-height:0}.board-viewport{flex:1;height:auto;max-height:none;overflow:visible}
 .clue-panel{height:100%;max-height:none;overflow:auto}.active-clue{position:static;font-size:12px;padding:4px;margin:0 0 4px}
 .pill,.small-button,.button,.text-button{min-height:32px}.cell input{font-size:var(--overview-letter,14px)!important}
}
@media(pointer:coarse) and (min-width:600px) and (max-height:500px){
 .arcade{height:100dvh;padding:4px 8px}.masthead{height:32px}.brand{width:56px}.brand img{height:32px}.music-scene,.arcade-footer{display:none}
 .puzzle-cabinet{border-radius:12px}.title-panel{padding:3px}.title-panel h1{font-size:18px}.title-panel p{display:none}
 .puzzle-chooser{margin:2px 8px}.puzzle-chooser summary{min-height:30px;padding:5px 8px;flex-direction:row;font-size:11px}.puzzle-chooser summary strong{font-size:11px}.puzzle-chooser summary:after{display:none}
 .session-heading{margin:2px 8px;padding:2px;font-size:10px}.session-heading span{flex-basis:auto}
 .workbench{padding:0 8px;gap:10px}.grid-panel{display:grid!important;grid-template-columns:1fr 1fr;gap:4px 12px;grid-column:1/-1;align-content:start}
 .grid-panel>.board-viewport{grid-column:1;grid-row:1/6;width:100%;height:auto!important}
 .grid-panel>.active-clue{grid-column:2;grid-row:1;font-size:13px;margin:0;padding:4px 6px;min-height:34px}
 .grid-panel>.active-hint{grid-column:2;grid-row:2;font-size:11px;padding:3px;margin:0}
 .grid-panel>.feedback{grid-column:2;grid-row:3;font-size:11px;margin:0;min-height:0;max-height:30px}
 .grid-panel>.help-desk{grid-column:2;grid-row:4;margin:0!important;padding:0!important;border:0!important;display:flex!important}
 .grid-panel>.help-desk button{min-height:32px!important;font-size:11px!important}
 .grid-panel>.letter-keyboard{grid-column:2;grid-row:5;padding:0}.key-row{margin:2px 0}.key-row button{min-height:38px;font-size:14px}
 .grid-panel>.entry-guide{grid-column:1;grid-row:6;margin:0;font-size:11px}.entry-guide button{min-height:30px}
 .instruction,.clue-panel{display:none!important}.bottom-bar{margin:0 8px;font-size:9px}.text-button{min-height:22px}.saving-notice summary{font-size:11px}
}

@media(pointer:coarse) and (min-width:780px) and (min-aspect-ratio:6/5){#play-area{grid-template-rows:auto minmax(0,1fr) auto auto auto auto}.feedback{order:initial}.board-viewport{min-height:0}.clue-panel{height:100%;overflow:auto}}

@media(pointer:coarse) and (min-width:780px) and (min-aspect-ratio:6/5){
 #play-area{display:flex;flex-direction:column}.workbench{flex:1;min-height:0}.session-heading,.help-desk,.feedback,.completion,.bottom-bar{flex:none}
 .arcade[data-level="Challenge"] .cell input{font-size:var(--overview-letter,14px)!important}
}
@media(pointer:coarse) and (min-width:780px) and (min-aspect-ratio:6/5) and (max-height:550px){
 .masthead{height:28px}.brand{width:48px}.brand img{height:28px}.title-panel{padding:2px 8px}h1{font-size:19px}
 .puzzle-chooser summary{min-height:28px;padding:4px 8px}.session-heading{padding:2px 0;margin-bottom:3px}.help-desk{margin-top:3px;padding-top:3px}.feedback{margin:2px 12px}.bottom-bar{margin-bottom:0}
}

@media(pointer:fine) and (pointer:coarse) and (min-width:780px) and (min-aspect-ratio:6/5){
 .workbench{grid-template-rows:minmax(0,1fr) auto auto;gap:4px 18px}.grid-panel{grid-column:1;grid-row:1/4}.clue-panel{grid-column:2;grid-row:1}
 .workbench>.help-desk{grid-column:2;grid-row:2;margin:0;padding:4px 0 0;gap:5px;flex-wrap:nowrap}.workbench>.help-desk button{padding:5px 8px;font-size:11px;flex:1}
 .workbench>.feedback{grid-column:2;grid-row:3;margin:2px 0;text-align:left}
}

@media(pointer:fine) and (pointer:coarse) and (min-width:780px) and (min-aspect-ratio:6/5) and (min-height:850px){.arcade{justify-content:center}.puzzle-cabinet{max-height:720px}.board-viewport{display:flex;align-items:center;justify-content:center}}

.web-offer{padding:12px 18px;background:var(--cream);color:var(--navy);text-align:center;border-block:1px solid var(--navy)}.web-offer p{margin:5px 0;font-size:13px}.web-offer span{display:block;margin:7px 0;font-size:12px}.web-offer a{display:inline-block}.web-offer[hidden]{display:none}

#puzzle-chooser{display:block;position:relative;margin:12px 18px;background:var(--paper);border:1px solid #082d4440;border-radius:10px;overflow:hidden}#puzzle-chooser summary{display:flex;justify-content:space-between;align-items:center;gap:12px;min-height:48px;padding:12px 16px;cursor:pointer;list-style:none;font-size:13px}#puzzle-chooser summary::-webkit-details-marker{display:none}#puzzle-chooser summary span:after{content:' ▾'}#puzzle-chooser[open] summary span:after{content:' ▴'}#puzzle-chooser[open]{position:relative;inset:auto;max-height:none}#puzzle-chooser .rotation-picker{padding:12px;display:block}#puzzle-chooser #sets{justify-content:flex-start}#puzzle-chooser #sets .puzzle-choice{white-space:normal;text-align:left;max-width:100%;min-width:0;padding:10px 14px}.rotation-action{margin-top:12px}.chooser-note{display:flex;align-items:center;justify-content:center;gap:12px;flex-wrap:wrap;padding:12px 16px;border-top:1px solid #082d4426;font-size:12px}.chooser-note[hidden]{display:none}.chooser-note a{text-decoration:underline}#collection-offer{max-width:min(520px,92vw)}#collection-offer a{color:var(--navy)}#collection-offer a.button{text-decoration:none;display:inline-block}#collection-offer h2{font-size:25px}@media(max-width:650px){#puzzle-chooser summary{align-items:flex-start;flex-direction:column;gap:4px}#puzzle-chooser{margin:8px}.chooser-note{font-size:11px}}

@media(pointer:coarse){body:has(#puzzle-chooser[open]){overflow:auto;height:auto}.arcade:has(#puzzle-chooser[open]){height:auto;min-height:100dvh}#puzzle-chooser[open]{max-height:65dvh;overflow:auto}#puzzle-chooser[open] summary{position:sticky;top:0;background:var(--paper);z-index:2}}
