:root{--ink:#304339;--muted:#738071;--paper:#f7f2e5;--cream:#fffaf0;--orange:#df633a;--green:#48694b;--yellow:#ebc75f}*{box-sizing:border-box}body{margin:0;color:var(--ink);background:#f4eddb;font-family:ui-rounded,"Trebuchet MS",Arial,sans-serif;overscroll-behavior:none}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer}button:focus-visible,a:focus-visible{outline:3px solid #e59d24;outline-offset:3px}.app{max-width:1100px;margin:auto;padding:24px 36px 18px}.topbar{display:flex;align-items:center;justify-content:space-between}.brand{font-size:26px;letter-spacing:-1.5px;font-weight:950;color:var(--ink);text-decoration:none}.brand>span{color:var(--orange)}.brand small{display:block;letter-spacing:1.4px;font-size:8px;margin-top:4px}.tools{display:flex;gap:8px}.icon-button{width:42px;height:42px;border:1px solid #d9decc;border-radius:50%;background:#fffaf080;color:var(--ink);font-weight:bold;position:relative;font-size:21px}.sound-slash{position:absolute;inset:7px;color:var(--orange);font-size:27px}.headline{text-align:center;margin:15px 0 21px}.eyebrow{font-size:10px;font-weight:900;letter-spacing:2px;color:#80906a}h1{font-family:Georgia,serif;font-size:clamp(36px,5vw,60px);letter-spacing:-3px;line-height:1;margin:10px 0}h1 em{color:var(--orange);font-weight:normal}.headline p{font-size:12px;margin:10px 0 0;color:var(--muted)}.machine{max-width:900px;margin:auto;border-radius:24px;background:var(--cream);border:1px solid #e4dcc7;box-shadow:0 16px 50px #66572b13,0 5px 0 #e8dfc9;overflow:hidden}.hud{height:80px;display:flex;align-items:center;justify-content:space-between;padding:12px 32px;position:relative}.stat{min-width:125px}.stat>span{display:block;font-size:9px;letter-spacing:1.7px;color:#87917c;font-weight:bold}.stat strong{display:block;font-size:30px;line-height:1.3;letter-spacing:1px}.health{text-align:right}.health strong{color:#de7955;font-size:23px;letter-spacing:4px}.clock{display:flex;flex-direction:column;align-items:center;justify-content:center;height:60px;width:60px;position:absolute;left:calc(50% - 30px)}.clock svg{position:absolute;inset:0;transform:rotate(-90deg);fill:none;stroke:#eee7d4;stroke-width:2}.clock svg circle+circle{stroke:#83a36c;stroke-dasharray:94.25;stroke-dashoffset:0;stroke-linecap:round}.clock strong{font-size:23px}.clock>span{font-size:7px;letter-spacing:1px}.stage{position:relative;aspect-ratio:900/650;overflow:hidden;background:#bdd7b8;isolation:isolate;touch-action:none}canvas{display:block;width:100%;height:100%;touch-action:none}.stage-label{position:absolute;top:14px;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:7px;background:#fff9e8da;padding:7px 12px;border-radius:30px;color:#5e7656;font-size:8px;font-weight:900;letter-spacing:1.3px;white-space:nowrap;pointer-events:none}.live-dot{width:5px;height:5px;background:#8a9e58;border-radius:50%}.callout{position:absolute;left:50%;bottom:18px;transform:translateX(-50%);background:#fff9e8f0;border:1px solid #f6deb2;color:#835c33;border-radius:12px;padding:9px 15px;font-size:12px;font-weight:bold;pointer-events:none;text-align:center;min-width:180px;max-width:90%;opacity:0;transition:opacity .2s}.callout.show{opacity:1}.overlay{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:#34554225;backdrop-filter:blur(3px);padding:15px}.hidden{display:none!important}.intro-card{width:370px;max-width:100%;padding:29px 30px 20px;background:#fffaf0f7;border-radius:18px;box-shadow:0 18px 48px #3148322b;text-align:center;transform:rotate(-1deg);border:2px solid #fffdf6}.paper-label{font-size:9px;letter-spacing:1.8px;font-weight:900;color:#a58b5e}.intro-card h2,dialog h2{font-family:Georgia,serif;font-size:35px;letter-spacing:-1.7px;margin:13px 0 10px}.intro-card p{font-size:13px;line-height:1.7;color:#74816a;margin:8px 0 16px}.rules{display:flex;justify-content:center;gap:18px;margin:20px 0}.rules span{display:flex;align-items:center;flex-direction:column;font-size:10px;color:#75836d;gap:6px}.rules i{font-style:normal;display:grid;place-items:center;font-weight:bold;font-size:20px;width:36px;height:36px;border-radius:50%;background:#edf0da;color:#66804b}.primary{width:100%;border:0;background:var(--orange);color:#fff9ed;border-radius:11px;font-weight:900;padding:15px 20px;box-shadow:0 4px 0 #b74b2c}.primary span{float:right}.primary:active,.bank:active{transform:translateY(2px);box-shadow:0 1px 0 #b74b2c}.primary:disabled{opacity:.5}.intro-card .tiny{font-size:9px;margin:13px 0 0}.compact{padding:28px}.text-button{border:0;background:none;color:#73816c;font-size:11px;margin-top:16px}.result-score{font-size:58px;color:var(--orange);font-weight:bold;letter-spacing:-3px}.intro-card p.record{color:#aa8743;font-weight:bold;font-size:11px}.controls{display:flex;align-items:center;justify-content:center;gap:24px;padding:17px 27px 22px;background:var(--cream)}.direction-pad{display:grid;grid-template-columns:1fr;gap:9px}.direction-pad button{width:82px;height:43px;border:1px solid #dedfca;background:#eef0e0;border-radius:11px;color:#6a8056;font-size:26px;box-shadow:0 3px 0 #d8ddc4;position:relative;touch-action:none}.direction-pad button.active{background:#8aa568;border-color:#79965b;color:#fff;box-shadow:0 3px 0 #607b47}.direction-pad kbd{font-family:inherit;font-size:8px;position:absolute;bottom:4px;right:7px;opacity:.7}.hat-control{width:280px;max-width:100%}.hat-caption{display:flex;justify-content:space-between;align-items:center;font-size:9px;font-weight:bold;letter-spacing:1px;color:#899178}.hat-caption b{color:#b68b3d;font-size:15px}.slots{display:flex;gap:5px;margin:7px 0 10px}.slots i{display:block;height:8px;flex:1;border-radius:3px;background:#e7e5d5;transition:background .1s}.slots i.filled{background:#b6c37d}.slots.full i{background:#df8452}.bank{border:0;border-radius:9px;width:100%;background:#4b694b;color:#fff8df;padding:12px 8px 10px;box-shadow:0 4px 0 #304f33;font-size:11px;font-weight:900;letter-spacing:.7px;touch-action:none}.bank small{display:block;font-size:8px;color:#bfcbb3;margin-top:5px;font-weight:normal;letter-spacing:0}.bank.busy{background:#a78a56}footer{display:flex;justify-content:space-between;max-width:900px;margin:19px auto 0;font-size:8px;letter-spacing:1px;color:#92977d;align-items:center}footer button{background:none;border:0;text-decoration:underline;color:#6c7e62;font-size:10px}dialog{color:var(--ink);background:var(--cream);border:0;border-radius:20px;max-width:470px;width:calc(100% - 32px);padding:32px;box-shadow:0 20px 100px #0003}dialog::backdrop{background:#263e37a0}dialog h2{font-size:30px}dialog p{font-size:13px;line-height:1.7;color:#64745e}.close{float:right;border:0;background:none;font-size:24px;color:#74816b}
@media(min-width:1000px) and (max-height:950px){.app{max-width:900px;padding-top:15px}.headline{margin:4px 0 12px}.headline h1{font-size:45px}.headline p{display:none}.machine{max-width:700px}.hud{height:65px}.controls{padding:13px 25px 17px}.stage{aspect-ratio:900/600}footer{max-width:700px}}@media(max-width:600px){.app{padding:max(13px,env(safe-area-inset-top)) 10px max(12px,env(safe-area-inset-bottom))}.brand{font-size:21px}.brand small{font-size:6px;letter-spacing:.8px}.icon-button{width:35px;height:35px;font-size:18px}.sound-slash{inset:4px}.headline{margin:14px 0}.eyebrow{font-size:8px;letter-spacing:1.6px}h1{font-size:40px;letter-spacing:-2px}.headline p{font-size:10px;margin-top:8px}.machine{border-radius:18px}.hud{height:65px;padding:8px 18px}.stat{min-width:100px}.stat>span{font-size:7px;letter-spacing:1px}.stat strong{font-size:25px}.health strong{font-size:20px}.clock{width:48px;height:48px;left:calc(50% - 24px)}.clock strong{font-size:20px}.stage{aspect-ratio:900/760}.stage-label{top:10px;font-size:6px;letter-spacing:.8px;padding:5px 9px}.controls{padding:13px 13px 17px;gap:12px}.direction-pad button{width:53px;height:46px}.direction-pad{gap:9px}.direction-pad kbd{display:none}.hat-control{width:100%}.bank{font-size:9px;padding:13px 3px 12px;letter-spacing:.2px}.bank small{font-size:7px}.hat-caption{font-size:8px}.intro-card{width:275px;padding:17px 23px 15px}.intro-card h2{font-size:28px;margin:10px 0 7px}.intro-card p{font-size:11px;margin:7px 0 10px;line-height:1.5}.paper-label{font-size:7px}.rules{margin:11px 0;gap:18px}.rules i{width:28px;height:28px;font-size:17px}.rules span{font-size:8px}.primary{padding:12px 15px;font-size:12px}.intro-card .tiny{font-size:8px;margin-top:10px}.callout{font-size:10px;padding:7px 10px;bottom:10px}.result-score{font-size:42px}footer{font-size:6px;letter-spacing:.6px;margin-top:16px}footer span:last-child{display:none}.compact{padding:21px 25px}}
@media(max-height:520px) and (orientation:landscape){.app{max-width:1050px;padding:6px 12px}.topbar{position:absolute;top:8px;left:12px;right:12px;pointer-events:none}.topbar>*{pointer-events:auto}.brand small,.headline,footer{display:none}.brand{font-size:18px}.machine{max-width:650px;position:relative;margin:auto}.hud{height:48px;padding:4px 80px}.stat>span{font-size:6px}.stat strong{font-size:20px}.clock{width:39px;height:39px;left:calc(50% - 19px)}.clock strong{font-size:17px}.stage{height:calc(100svh - 138px);min-height:190px;aspect-ratio:auto}.controls{padding:6px 20px 10px;gap:18px}.direction-pad{grid-template-columns:1fr 1fr;gap:7px}.direction-pad button{height:41px;width:48px}.hat-control{width:240px}.hat-caption,.slots,.bank small{display:none}.bank{height:42px}.intro-card{width:300px;padding:12px 23px}.intro-card h2{font-size:23px;margin:6px}.intro-card p{font-size:10px;line-height:1.3;margin:6px}.rules{display:none}.primary{padding:9px}.intro-card .tiny{font-size:7px;margin:8px 0 0}.result-score{font-size:30px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
/* Version 2: a screen with two physical-style controls on each side. */
.app{max-width:1200px}.machine{max-width:1060px;border-radius:30px;border:2px solid #d5c8a9;background:linear-gradient(140deg,#fff9e9,#e4dac0);box-shadow:0 18px 50px #66572b20,0 7px 0 #c7b998}.hud{height:76px;padding:12px 125px}.stat strong{font-family:monospace}.game-mode{text-align:center;font-size:12px;font-weight:bold;letter-spacing:2px}.game-mode small{display:block;font-size:7px;letter-spacing:1px;color:#8c9177;margin-top:6px}.game-mode b{font-size:10px;color:#677852}.console-body{display:grid;grid-template-columns:100px minmax(0,1fr) 100px;align-items:center;padding:0 12px;gap:7px}.stage{aspect-ratio:900/650;border:7px solid #4a5140;border-radius:15px}.direction-pad{display:flex;flex-direction:column;align-items:center;gap:25px;user-select:none}.direction-pad>span{font-size:8px;letter-spacing:1.5px;color:#8e8b70;font-weight:bold}.direction-pad button{width:73px;height:73px;border:5px solid #f6e5c9;border-radius:50%;color:#fff1dd;background:radial-gradient(circle at 35% 30%,#e78b63,#c35b3b);box-shadow:0 5px 0 #9f5035,0 0 0 2px #cbbb97,0 7px 12px #6d582a30;font-size:37px;position:relative;touch-action:none}.direction-pad button.active{background:radial-gradient(circle at 35% 30%,#bd603e,#99442f);border-color:#f6e5c9;box-shadow:0 2px 0 #813c29,0 0 0 2px #b7a67d;transform:translateY(3px);color:#fff1dd}.direction-pad kbd{font-size:7px;bottom:6px;left:0;right:0;color:#ffe8cf}.console-caption{display:flex;justify-content:space-between;padding:19px 30px 16px;letter-spacing:2px;font-size:8px;font-weight:bold;color:#939078}.console-caption span:first-child{color:#758162}.console-caption span:nth-child(2){font-weight:normal;letter-spacing:1px}.mode-options{display:flex;gap:8px;margin:17px 0}.mode-options button{flex:1;border:1px solid #d8dbc4;border-radius:9px;padding:11px 4px;font-weight:bold;font-size:12px;background:#edf0df;color:#66795b}.mode-options button small{display:block;font-size:8px;font-weight:normal;margin-top:5px}.mode-options button.selected{background:#4e6a4d;color:#fff9e7;border-color:#4e6a4d}.intro-card{transform:none;padding:24px}.intro-card h2{font-size:31px}footer{max-width:1060px}
@media(min-width:900px) and (max-height:850px){.app{max-width:990px;padding-top:12px}.headline{margin:5px 0 15px}h1{font-size:42px}.headline p{display:none}.hud{height:63px}.console-caption{padding:14px 26px}.console-body{grid-template-columns:85px minmax(0,1fr) 85px}}
@media(max-width:600px) and (orientation:portrait){.app{padding:max(12px,env(safe-area-inset-top)) 8px 15px}.machine{border-radius:23px}.hud{height:63px;padding:8px 17px}.stat{min-width:90px}.stat>span{font-size:6px;letter-spacing:.8px}.stat strong{font-size:25px}.health strong{font-size:21px}.game-mode{font-size:9px;letter-spacing:1px}.game-mode small{font-size:6px}.console-body{grid-template-columns:1fr 1fr;gap:17px 15px;padding:0 8px 12px}.stage{grid-column:1/-1;grid-row:1;border-width:5px;aspect-ratio:900/710;border-radius:12px}.direction-pad{grid-row:2;display:grid;grid-template-columns:1fr;justify-items:center;gap:14px;padding:3px 0}.direction-pad>span{display:none}.direction-pad.left{grid-column:1}.direction-pad.right{grid-column:2}.direction-pad button{width:62px;height:57px;border-width:4px;font-size:31px}.direction-pad kbd{display:none}.console-caption{font-size:6px;letter-spacing:.7px;padding:2px 17px 14px}.console-caption span:nth-child(2){font-size:5px;letter-spacing:.4px}.stage-label{top:8px;font-size:5px;padding:5px 8px;letter-spacing:.6px}.intro-card{width:290px;padding:17px 18px 14px}.intro-card h2{font-size:25px;margin:8px 0}.intro-card p{font-size:10px;margin:6px 0 10px}.paper-label{font-size:6px}.mode-options{margin:10px 0}.mode-options button{font-size:10px;padding:8px 3px}.mode-options button small{font-size:7px}.primary{font-size:12px;padding:11px}.intro-card .tiny{font-size:7px;margin-top:10px}.callout{font-size:9px;padding:6px 10px;bottom:10px}.result-score{font-size:45px}footer{font-size:7px;letter-spacing:.5px;margin-top:19px}footer span:last-child{display:none}}
@media(max-height:520px) and (orientation:landscape){.app{padding:5px 10px;max-width:1000px}.topbar{position:absolute;top:8px;left:12px;right:12px;pointer-events:none;z-index:3}.topbar>*{pointer-events:auto}.brand{font-size:17px}.brand small,.headline,footer{display:none}.tools{gap:5px}.icon-button{width:29px;height:29px;font-size:16px}.sound-slash{inset:2px;font-size:23px}.machine{border-radius:23px;max-width:1060px}.hud{height:48px;padding:4px 130px}.stat{min-width:92px}.stat strong{font-size:24px}.stat>span{font-size:6px}.game-mode{font-size:9px}.game-mode small{font-size:6px;margin-top:3px}.console-body{grid-template-columns:82px minmax(0,1fr) 82px;padding:0 14px;gap:10px}.stage{height:calc(100svh - 96px);min-height:190px;aspect-ratio:auto;border-width:5px}.direction-pad{display:flex;gap:16px}.direction-pad>span{font-size:6px}.direction-pad button{width:62px;height:62px;font-size:31px}.direction-pad kbd{display:none}.console-caption{padding:12px 28px 9px;font-size:6px}.stage-label{top:6px;font-size:5px;padding:4px 7px}.intro-card{width:310px;padding:12px 20px}.intro-card h2{font-size:23px;margin:5px 0}.intro-card p{font-size:9px;margin:5px 0;line-height:1.4}.paper-label{font-size:6px}.mode-options{margin:8px 0}.mode-options button{padding:7px 4px;font-size:9px}.mode-options button small{font-size:7px;margin-top:3px}.primary{padding:9px;font-size:11px}.intro-card .tiny{font-size:7px;margin-top:8px}.result-score{font-size:33px}.compact{padding:18px}.callout{bottom:6px;padding:5px 8px;font-size:8px}}
/* Larger stage, especially in landscape. The game takes over on start. */
.machine{max-width:1180px}.app{max-width:1320px}.console-body{grid-template-columns:76px minmax(0,1fr) 76px;padding:0 6px;gap:5px}.stage{aspect-ratio:900/600;border-width:4px}.direction-pad button{width:63px;height:63px}.hud{padding-left:100px;padding-right:100px}.direction-pad button.hint{outline:3px solid #f4c54e;outline-offset:4px;box-shadow:0 4px 0 #9f5035,0 0 15px #ffdb6e88}
.focus-game{overflow:hidden}.focus-game .app{width:100%;max-width:none;height:100svh;height:100dvh;padding:4px;display:flex;flex-direction:column}.focus-game .headline,.focus-game footer,.focus-game .console-caption,.focus-game .brand{display:none}.focus-game .topbar{height:0;position:fixed;top:max(6px,env(safe-area-inset-top));right:max(8px,env(safe-area-inset-right));z-index:5;pointer-events:none}.focus-game .tools{pointer-events:auto;gap:4px}.focus-game .icon-button{height:30px;width:30px;font-size:18px;background:#fff9eb}.focus-game .sound-slash{inset:2px;font-size:24px}.focus-game .machine{max-width:none;width:100%;flex:1;min-height:0;display:flex;flex-direction:column;border-radius:14px;box-shadow:none}.focus-game .hud{height:46px;min-height:46px;padding:4px 116px 4px 22px;gap:14px}.focus-game .stat{min-width:80px}.focus-game .stat>span{font-size:6px}.focus-game .stat strong{font-size:23px}.focus-game .health strong{font-size:20px}.focus-game .game-mode{font-size:9px}.focus-game .game-mode small{font-size:6px;margin-top:3px}.focus-game .console-body{flex:1;min-height:0;grid-template-columns:66px minmax(0,1fr) 66px;grid-template-rows:minmax(0,1fr);padding:0 4px 4px;gap:5px}.focus-game .stage{height:100%;min-height:0;aspect-ratio:auto;width:100%;border:3px solid #4a5140;border-radius:9px;grid-column:auto;grid-row:auto}.focus-game .direction-pad{display:flex;flex-direction:column;gap:20px;grid-column:auto;grid-row:auto}.focus-game .direction-pad button{height:58px;width:58px;font-size:31px;border-width:4px}.focus-game .direction-pad>span{font-size:6px;letter-spacing:.5px}.focus-game .direction-pad kbd{font-size:6px}.focus-game .stage-label{font-size:6px;padding:4px 8px;top:7px}
@media(max-width:600px) and (orientation:portrait){.console-body{grid-template-columns:1fr 1fr;padding:0 5px 10px}.stage{aspect-ratio:900/650}.hud{padding:8px 16px}.focus-game .hud{padding:5px 112px 5px 10px;gap:6px}.focus-game .stat{min-width:60px}.focus-game .stat strong{font-size:20px}.focus-game .stat>span{font-size:5px;letter-spacing:.4px}.focus-game .health strong{font-size:17px;letter-spacing:1px}.focus-game .game-mode{font-size:7px;letter-spacing:.3px}.focus-game .game-mode small{font-size:5px;letter-spacing:0}.focus-game .console-body{grid-template-columns:1fr 1fr;grid-template-rows:minmax(0,1fr) 122px;gap:9px 15px;padding:0 2px 7px}.focus-game .stage{grid-column:1/-1;grid-row:1}.focus-game .direction-pad{grid-row:2;display:flex;gap:12px}.focus-game .direction-pad.left{grid-column:1}.focus-game .direction-pad.right{grid-column:2}.focus-game .direction-pad button{height:49px;width:62px;font-size:29px}.focus-game .direction-pad>span{display:none}.focus-game .stage-label{font-size:5px}.focus-game .intro-card{padding:20px}.focus-game .intro-card h2{font-size:26px}}
@media(max-height:520px) and (orientation:landscape){.focus-game .app{padding:0 max(4px,env(safe-area-inset-right)) 0 max(4px,env(safe-area-inset-left))}.focus-game .machine{border-radius:0;border-width:0}.focus-game .hud{height:40px;min-height:40px;padding-left:25px;padding-right:122px}.focus-game .console-body{padding-bottom:2px}.focus-game .direction-pad{gap:18px}.focus-game .direction-pad button{width:57px;height:57px}.focus-game .direction-pad>span{display:none}.focus-game .callout{font-size:8px}}
/* Generous finger targets. The full surrounding side panel also responds. */
.console-body{grid-template-columns:108px minmax(0,1fr) 108px}.direction-pad{height:100%;justify-content:space-evenly;gap:18px;touch-action:none}.direction-pad button{width:90px;height:88px;border-radius:23px;border-width:4px;font-size:42px;flex-shrink:0}.direction-pad button::before{content:'';position:absolute;inset:-8px;border-radius:27px}.direction-pad>span{display:none}.direction-pad kbd{font-size:8px;bottom:7px}.focus-game .console-body{grid-template-columns:108px minmax(0,1fr) 108px}.focus-game .direction-pad{height:100%;justify-content:space-evenly;gap:18px}.focus-game .direction-pad button{width:90px;height:88px;border-radius:23px;border-width:4px;font-size:42px}.focus-game .direction-pad>span{display:none}
@media(max-width:600px) and (orientation:portrait){.console-body{grid-template-columns:1fr 1fr;row-gap:14px}.direction-pad{height:194px;display:flex;gap:14px;justify-content:center}.direction-pad button{width:126px;height:80px;font-size:40px}.focus-game .console-body{grid-template-columns:1fr 1fr;grid-template-rows:minmax(0,1fr) 194px;gap:10px 16px}.focus-game .direction-pad{height:194px;justify-content:center;gap:14px}.focus-game .direction-pad button{width:126px;height:80px;font-size:40px}.focus-game .direction-pad kbd{display:none}}
@media(max-height:520px) and (orientation:landscape){.console-body,.focus-game .console-body{grid-template-columns:108px minmax(0,1fr) 108px}.direction-pad,.focus-game .direction-pad{height:100%;gap:18px;justify-content:space-evenly}.direction-pad button,.focus-game .direction-pad button{width:90px;height:84px;font-size:40px}.direction-pad kbd{display:none}}

.level-track{display:flex;align-items:center;gap:12px;padding:5px 24px 8px;background:#fffaf0;color:#667650;font-size:10px;flex-shrink:0}.level-track>span{font-weight:800;letter-spacing:1px}.level-track strong{white-space:nowrap;min-width:42px;text-align:right}.level-track progress{appearance:none;flex:1;min-width:30px;height:7px;border:0;border-radius:9px;background:#e6e7d2;overflow:hidden}.level-track progress::-webkit-progress-bar{background:#e6e7d2}.level-track progress::-webkit-progress-value{background:#79a059;border-radius:9px}.level-track progress::-moz-progress-bar{background:#79a059;border-radius:9px}.focus-game .level-track{padding:2px 24px 5px;font-size:9px}#level-done .intro-card{max-width:420px}#next-detail{font-size:12px;line-height:1.5;color:#647257}@media(max-height:520px) and (orientation:landscape){#level-done .intro-card{padding:14px 24px}#level-done h2{font-size:25px;margin:8px 0}#level-done p{margin:7px 0}#level-done .primary{padding:10px 18px}.level-track{font-size:9px;padding:2px 24px 4px}}

/* V6: one large diagonal cross, centered below the unobstructed playfield. */
.console-body,.focus-game .console-body{grid-template-columns:minmax(0,1fr);grid-template-rows:auto 144px;gap:8px;padding:0 6px max(8px,env(safe-area-inset-bottom));align-items:stretch;position:relative}
.console-body .stage{grid-column:1;grid-row:1;width:100%;height:auto;min-height:0;aspect-ratio:900/600}
.focus-game .console-body{grid-template-rows:minmax(0,1fr) 144px}
.focus-game .console-body .stage{height:100%;aspect-ratio:auto}
.console-body .direction-pad.center-cross{position:relative;grid-column:1;grid-row:2;justify-self:center;align-self:center;width:216px;height:144px;padding:0;display:grid;grid-template-columns:88px 88px;grid-template-rows:64px 64px;gap:16px 40px;justify-content:center;align-items:center;touch-action:none;user-select:none;isolation:isolate}
.center-cross::before,.center-cross::after{content:'';position:absolute;left:24px;top:58px;width:168px;height:28px;border-radius:14px;background:#baab89;box-shadow:inset 0 2px 4px #75674744;z-index:-1;transform:rotate(32deg)}
.center-cross::after{transform:rotate(-32deg)}
.console-body .center-cross .cross-hub{display:grid;place-items:center;position:absolute;left:96px;top:60px;width:24px;height:24px;border-radius:50%;background:#e4d5b7;color:#9b8a66;font-size:18px;pointer-events:none;z-index:1}
.console-body .direction-pad.center-cross button{width:88px;height:64px;border-radius:20px;border-width:4px;font-size:37px;z-index:2}
.console-body .center-cross button::before{inset:-5px;border-radius:23px}
.console-body .center-cross kbd{font-size:7px;bottom:3px}
.console-body .center-cross [data-lane="0"]{grid-column:1;grid-row:1}.console-body .center-cross [data-lane="1"]{grid-column:2;grid-row:1}.console-body .center-cross [data-lane="2"]{grid-column:1;grid-row:2}.console-body .center-cross [data-lane="3"]{grid-column:2;grid-row:2}
.focus-game .stage:has(.overlay:not(.hidden)){isolation:auto;overflow:visible}
.focus-game .stage .overlay{position:fixed;inset:0;z-index:10;padding:20px;background:#34554266;overflow-y:auto}
@media(max-height:520px) and (orientation:landscape){.console-body,.focus-game .console-body{grid-template-rows:minmax(0,1fr) 128px;gap:4px;padding-bottom:max(4px,env(safe-area-inset-bottom))}.console-body .direction-pad.center-cross{height:128px;grid-template-rows:56px 56px}.console-body .direction-pad.center-cross button{height:56px;font-size:32px}.center-cross::before,.center-cross::after{top:50px;transform:rotate(29deg)}.center-cross::after{transform:rotate(-29deg)}.console-body .center-cross .cross-hub{top:52px}.console-body .stage{height:calc(100svh - 215px);min-height:135px}.focus-game .console-body .stage{height:100%;min-height:0}}
