@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=VT323&display=swap');
:root{color-scheme:dark;--ink:#101029;--gold:#ffda4c;--cream:#fff9dc;--red:#e14b35}*{box-sizing:border-box}body{margin:0;background:var(--ink);color:var(--cream);font-family:'Press Start 2P',monospace;overscroll-behavior:none}button,a{font:inherit}button{cursor:pointer;color:inherit}#root{min-height:100svh;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:16px;gap:16px}#stage{width:min(1120px,calc((100svh - 80px)*16/9));max-width:100%;aspect-ratio:16/9;position:relative;border:4px solid var(--gold);box-shadow:0 0 0 3px #171721,inset 0 0 0 3px #fff;overflow:hidden;background:#101029}canvas{width:100%;height:100%;display:block;image-rendering:pixelated}#overlay{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;text-align:center;padding:4%;background:transparent}#overlay:empty{pointer-events:none}.screen{width:100%;display:flex;flex-direction:column;align-items:center;gap:20px}.logo{display:flex;flex-direction:column;text-shadow:4px 4px #030811;align-items:center;gap:9px}.logo small{font-size:clamp(14px,2vw,23px)}.logo strong{display:flex;font-style:normal;font-size:clamp(35px,6vw,66px);letter-spacing:2px}.logo i{font-style:normal;color:#e5513e}.logo i:nth-child(2){color:var(--gold)}.logo i:nth-child(3){color:#66b84e}.logo i:nth-child(4){color:#6899ea}.logo em{font-size:clamp(20px,3vw,31px);font-style:normal;color:#64b455}.prompt{border:0;background:none;color:var(--gold);line-height:1.8;font-size:clamp(10px,1.5vw,15px);padding:12px;animation:blink 1.6s steps(2) infinite}.fine{font-family:'VT323',monospace;font-size:20px;line-height:1.25;color:#c7c6dd;max-width:440px;margin:0}.sprite-preview{height:110px;width:110px;object-fit:contain;image-rendering:pixelated}.panel{background:#232c85;border:5px solid #fff9df;box-shadow:0 0 0 5px #1d1729,0 0 0 9px #947548;padding:24px;width:94%;text-align:left}.panel h2{color:var(--gold);font-size:clamp(12px,2vw,22px);line-height:1.8;margin:10px 0 16px}.panel p{font-family:'VT323',monospace;font-size:clamp(18px,2.7vw,29px);line-height:1.15;margin:10px 0}.panel a{color:#ffe373;font-size:12px;line-height:1.8;display:inline-block;margin:7px}.panel .prompt{display:block;margin:8px auto 0}h2{font-size:20px;line-height:1.7}.tag{display:inline-block;background:var(--gold);color:#1a1c3d;padding:8px;font-size:12px}#hud{position:absolute;top:4%;left:3%;right:3%;display:flex;justify-content:space-between;gap:10px;font-size:clamp(8px,1.35vw,15px);text-shadow:2px 2px #1d253a;pointer-events:none}#hud[hidden]{display:none}footer{font-size:12px;color:#b3b1c8;line-height:1.8;text-align:center}footer b{color:#d4b54c}#touch{position:absolute;inset:0;pointer-events:none;display:none;align-items:flex-end;justify-content:space-between;padding:15px 22px}.dpad,.actions{display:flex;gap:14px;align-items:flex-end}.actions{gap:20px}#touch button{pointer-events:auto;touch-action:none;user-select:none;width:58px;height:58px;border:3px solid #fff9dc80;background:#14152999;border-radius:8px;box-shadow:0 4px #05081580;font-size:23px}#touch button[data-key=ArrowUp]{width:66px;height:66px;border-radius:50%;background:#d23d398f}#touch button[data-key=KeyX]{border-radius:50%}#touch button:active,#touch button.held{background:#f4cc4b9c;transform:translateY(3px)}#utilities{position:absolute;right:15px;bottom:12px;display:flex;gap:8px}#utilities button{border:1px solid #ffffff42;background:#10102999;width:32px;height:30px;font-family:monospace;font-size:20px}#rotate{display:none}.mapbar{position:absolute;bottom:6%;left:4%;right:4%;padding:17px;background:#102028;border:4px solid #fff9dc;text-align:left;display:flex;justify-content:space-between;align-items:center;gap:20px}.mapbar h2{font-size:clamp(12px,1.8vw,20px);margin:10px 0 0}.mapbar small{color:var(--gold);font-size:11px}.mapbar button{max-width:40%;font-size:11px}.stats{font-family:'VT323',monospace;font-size:24px;line-height:1.2;display:flex;gap:25px}.big{font-size:clamp(26px,5vw,52px);color:var(--red);text-shadow:4px 4px #311b20;margin:0}.shade{background:#101029d9!important}.screen .portrait{width:78px;height:98px;background:url(lula.png) 0 0/400% 100%;image-rendering:pixelated}.unblink{animation:none}.credits{font-family:'VT323',monospace;font-size:22px}button:focus-visible,a:focus-visible{outline:3px solid var(--gold);outline-offset:4px}@keyframes blink{50%{opacity:.4}}@media(pointer:coarse),(max-height:500px){#touch{display:flex}#utilities{top:10px;bottom:auto;right:12px}#root{padding:0;gap:0}#stage{width:100%;max-height:100svh;border:0;aspect-ratio:16/9}footer{display:none}.screen{gap:12px}.panel{padding:12px}.panel p{font-size:20px}.fine{font-size:17px}.logo strong{font-size:44px}.stats{font-size:20px}#hud{right:100px;font-size:10px}.mapbar{bottom:23%;padding:10px}.mapbar h2{font-size:13px}.mapbar button{font-size:9px}.screen .portrait{width:55px;height:72px}.panel{margin-bottom:45px}.prompt{padding:8px}}@media(max-width:900px) and (orientation:portrait){#root{visibility:hidden;height:100svh;overflow:hidden}#rotate{position:fixed;inset:0;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;padding:30px;gap:25px}#rotate h2{font-size:14px;color:var(--gold)}#rotate p,#rotate>small{font-family:'VT323',monospace;font-size:24px;line-height:1.3}#rotate>small{font-size:19px;color:#b8b6d6}.phone{font-family:monospace;font-size:90px;transform:rotate(90deg);line-height:1}#rotate .logo strong{font-size:44px}}
/* Super Brasil: elenco e mundos */
.logo i:nth-child(5){color:#f4d45a}.logo i:nth-child(6){color:#62b876}.logo strong{font-size:clamp(32px,5.3vw,60px)}.cast-strip{display:flex;gap:4px;justify-content:center}.portrait{display:inline-block;flex-shrink:0;width:77px;height:96px;background-repeat:no-repeat;background-size:400% 100%;image-rendering:pixelated}.screen .cast-strip .portrait{width:77px;height:96px}.title-screen{gap:14px}.character-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;width:100%}.character-card{background:#1a203c;border:3px solid #424962;display:flex;flex-direction:column;align-items:center;justify-content:space-between;gap:8px;min-height:172px;padding:10px 5px;color:#b9c0d7}.character-card.selected{border-color:var(--character-color);background:#29304d;box-shadow:0 4px 0 var(--character-color);color:#fff8d9}.character-card span:last-child{font-size:11px;line-height:1.6;min-height:37px;max-width:155px}.character-card .portrait{height:106px;width:83px}.selection-screen{gap:13px}.selection-screen h2{margin:0 0 9px}.character-subtitle{font-family:'VT323',monospace;font-size:25px;color:var(--gold);margin:0}.selection-screen .fine{font-size:21px}.menu-hint{font-size:10px;color:#b6b6d3}.world-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;width:100%}.world-card{display:flex;flex-direction:column;align-items:flex-start;text-align:left;gap:14px;padding:20px 15px;border:3px solid #444967;background:#1a203c;min-height:224px;color:#c8cee4}.world-card.selected{border-color:var(--world-color);box-shadow:0 5px 0 var(--world-color);background:#29304d;color:#fff9dc}.world-number{font-size:30px;color:var(--world-color)}.world-card small{font-size:8px;line-height:1.6}.world-card strong{font-size:14px;line-height:1.5}.world-desc{font-family:'VT323',monospace;font-size:23px;line-height:1.1}.world-progress{font-size:9px;color:var(--world-color);margin-top:auto}.world-screen{gap:15px}.world-screen h2{margin:0 0 10px}.world-screen .fine{font-size:20px}.text-button{background:none;border:0;color:#d9d3b5;font-size:10px;padding:8px;line-height:1.7;text-decoration:underline;text-underline-offset:5px}.map-top{position:absolute;right:3%;top:3%;display:flex;flex-direction:column;align-items:flex-end;background:#10102980;padding:4px}.mapbar{bottom:7%;padding:16px}.mapbar .text-button{padding:10px 0 0;font-size:9px;color:#c6c0e1}.mapbar h2{font-size:clamp(12px,1.65vw,18px)}.status-label{font-size:10px;color:#e8d275;line-height:1.6}.fact-panel p{font-size:24px}.fact-panel .editorial{font-size:18px;max-width:100%;color:#bcbede}.source-links a{font-size:10px;margin-left:0;margin-right:20px}.hud-name{max-width:34%;line-height:1.5}.panel{max-height:94%;overflow:auto}#overlay{padding:4%}#hud{font-size:clamp(8px,1.05vw,12px)}#touch.menu-touch{display:none}.fact-panel .prompt{animation:none}.world-screen .prompt,.selection-screen .prompt{margin:0}#rotate .logo strong{font-size:34px}@media(max-height:500px) and (orientation:landscape){#stage{width:min(100vw,calc(100svh * 16/9));height:100svh;max-width:100%;flex-shrink:0}#root{height:100svh;min-height:100svh}#overlay{padding:3%}.logo strong{font-size:36px}.logo small{font-size:13px}.logo em{font-size:20px}.title-screen{gap:8px}.screen .cast-strip .portrait{width:52px;height:65px}.title-screen .fine{font-size:15px;max-width:430px}.character-grid{gap:7px}.character-card{min-height:136px;padding:5px 2px}.character-card .portrait{width:61px;height:78px}.character-card span:last-child{font-size:8px;line-height:1.5;min-height:32px}.selection-screen{gap:5px}.selection-screen h2,.world-screen h2{font-size:13px;margin:0 0 8px}.selection-screen .fine{font-size:17px}.character-subtitle{font-size:21px}.selection-screen .prompt,.world-screen .prompt{font-size:11px;padding:7px}.world-grid{gap:10px}.world-card{min-height:180px;padding:10px;gap:9px}.world-number{font-size:24px}.world-card strong{font-size:11px}.world-desc{font-size:20px}.world-card small{font-size:7px}.world-progress{font-size:8px}.world-screen{gap:7px}.world-screen .fine{font-size:16px}.world-screen .text-button{font-size:8px;padding:5px}.map-top .text-button{font-size:7px;padding:6px}.mapbar{bottom:24%;padding:11px}.mapbar h2{font-size:10px}.mapbar small{font-size:8px}.mapbar .text-button{font-size:7px}.mapbar .prompt{font-size:8px}.panel{margin-bottom:55px;padding:12px;max-height:80%}.panel h2{font-size:12px;margin:8px 0}.panel p{font-size:19px}.panel .fine{font-size:16px}.panel .tag{font-size:9px}.fact-panel{margin-bottom:0;max-height:95%}.fact-panel .editorial{font-size:15px}.fact-panel .source-links a{font-size:8px;margin:4px 12px 4px 0}.status-label{font-size:8px}.fact-panel .prompt{font-size:10px}#touch{padding:12px 15px}#touch button{width:52px;height:52px}#touch button[data-key=ArrowUp]{width:60px;height:60px}#hud{font-size:8px;gap:8px;right:95px}.hud-name{max-width:33%}#utilities{right:9px;top:8px}.menu-hint{font-size:8px}}
#voice-caption{position:absolute;bottom:10px;left:50%;transform:translateX(-50%);background:#101029ed;color:#d8d0ed;border:1px solid #ffffff30;padding:8px 10px;font-family:'VT323',monospace;font-size:17px;pointer-events:none;white-space:nowrap}.audio-panel{max-height:96%;padding:20px}.audio-panel h2{font-size:18px}.audio-panel>.fine{font-size:19px;max-width:100%}.audio-panel .fine a{font-size:inherit;font-family:inherit}.audio-list{margin:16px 0;display:grid;grid-template-columns:1fr 1fr;gap:16px}.audio-row{display:flex;gap:10px;background:#171b5277;padding:12px}.audio-row button{border:2px solid #e5d779;background:#101b4b;color:#ffe569;width:40px;height:40px;flex-shrink:0}.audio-row strong{display:block;font-size:11px;line-height:1.5;color:#ffe292}.audio-row span,.audio-row small{display:block;font-family:'VT323',monospace;font-size:19px;line-height:1.1;margin:6px 0}.audio-row small{color:#c0c6e2;font-size:16px}.audio-row a{font-family:'VT323',monospace;font-size:17px!important;margin:0}.audio-panel .prompt{animation:none}@media(max-height:500px) and (orientation:landscape){.audio-panel{margin:0;padding:12px}.audio-panel h2{font-size:12px;margin:6px 0}.audio-panel>.fine{font-size:15px}.audio-list{gap:7px;margin:8px 0}.audio-row{padding:7px;gap:7px}.audio-row button{width:30px;height:30px;font-size:12px}.audio-row strong{font-size:8px}.audio-row span{font-size:16px}.audio-row small,.audio-row a{font-size:13px!important}.audio-row small{margin:3px 0}.audio-panel .prompt{font-size:9px;padding:5px}#voice-caption{font-size:14px;bottom:8px}.selection-screen .text-button{font-size:8px;padding:4px}}

/* A game surface: no text selection, callouts, dragging or page gestures. */
html,body{height:100%;overflow:hidden;overscroll-behavior:none}
*{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;-webkit-tap-highlight-color:transparent}
img,canvas{-webkit-user-drag:none}
#root,#stage{touch-action:manipulation}
canvas,#rotate{touch-action:none}
.panel{touch-action:pan-y;overscroll-behavior:contain}
button,a{touch-action:manipulation}
#touch button{touch-action:none}

.case-map{font-family:"VT323",monospace;font-size:19px;margin:8px 0 0;color:#cfccdc}.panel strong{font-family:"Press Start 2P",monospace;font-size:10px;color:var(--gold)}@media(max-height:500px) and (orientation:landscape){.case-map{font-size:15px;margin:4px 0 0}}

canvas.portrait,.screen canvas.portrait{background:none;object-fit:contain;image-rendering:pixelated}

/* Campaigns keep the title screen intact and disclose chapter details on the map. */
.campaign-summary{max-width:660px!important}.campaign-progress{font-size:10px;color:#ffdc67}.mechanic-instruction{border-left:3px solid #ffdc67;padding-left:12px}.mechanic-instruction strong{font-size:9px}.mapbar .case-map{color:#ffdc67}.world-screen .fine{max-width:760px}.world-screen .fine small{font-size:15px}.selection-screen .character-subtitle{font-size:23px}.mapbar>div{min-width:0;flex:1}.mapbar>.prompt{flex-shrink:0;max-width:32%}.mapbar small{line-height:1.8}.mapbar h2{line-height:1.5}
@media(max-height:500px) and (orientation:landscape){.selection-screen{gap:4px}.selection-screen .character-subtitle{font-size:18px}.selection-screen .campaign-summary{font-size:15px;max-width:580px!important}.campaign-progress{font-size:8px}.selection-screen .character-card{min-height:114px}.selection-screen .character-card .portrait{height:66px;width:55px}.selection-screen .prompt{font-size:9px}.world-desc{font-size:17px}.world-card{min-height:165px}.world-screen .fine small{font-size:12px}.mapbar{bottom:22%;padding:9px}.mapbar h2{font-size:10px}.mapbar .case-map{font-size:14px}.mechanic-instruction strong{font-size:8px}}
.chapter-intro{max-width:870px}.chapter-intro .tag{font-size:10px}.chapter-intro h2{font-size:19px;margin:14px 0}.chapter-intro p{font-size:24px;margin:14px 0;line-height:1.2}.chapter-intro .mechanic-instruction{font-size:22px}.chapter-intro .status-label{font-size:9px;margin-top:14px}.chapter-actions{display:flex;align-items:center;justify-content:space-between;gap:15px;background:#232c85;position:sticky;bottom:-24px}.chapter-actions .prompt{margin:0}.chapter-actions .text-button{text-align:left}.chapter-intro .chapter-narrative{color:#fff8df}
@media(max-height:500px) and (orientation:landscape){.chapter-intro .tag{font-size:8px}.chapter-intro h2{font-size:12px;margin:8px 0}.chapter-intro p{font-size:18px;margin:9px 0}.chapter-intro .mechanic-instruction{font-size:17px}.chapter-intro .status-label{font-size:7px;margin-top:8px}.chapter-actions{bottom:-12px}.chapter-actions .text-button{font-size:8px}.chapter-actions .prompt{font-size:10px}}
@media(max-height:500px) and (orientation:landscape){.map-top{top:42px;right:2%}}
.ending-screen .big{font-size:clamp(18px,3vw,32px)}.ending-screen .fine{max-width:700px}
/* A second cartridge in the same arcade, with the original title preserved. */
.mode-grid{display:grid;grid-template-columns:1fr 1fr;width:90%;gap:22px}.mode-card{background:#1b2240;border:3px solid #414b6c;padding:25px 18px;color:#c8cfe0}.mode-card.selected{border-color:#ffda4c;background:#2c3553;box-shadow:0 5px #d4a445}.mode-card>strong{font-size:40px;color:#ffda4c}.mode-card h2{font-size:16px;line-height:1.8}.mode-card p{font-family:VT323,monospace;font-size:23px;line-height:1.2}.fighter-selection{gap:10px}.fighter-selection h2{font-size:17px;margin:5px}.fighter-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:10px;width:95%}.fighter-grid .character-card{min-height:125px;padding:6px}.fighter-grid .portrait{height:76px;width:65px}.fighter-grid .character-card span:last-child{font-size:8px;min-height:26px}.fighter-move,.ability-copy{font-family:VT323,monospace;font-size:20px;line-height:1.2;margin:0;color:#dedad1}.fighter-move strong,.ability-copy strong{color:#ffda4c}.selection-screen{gap:8px}.selection-screen .ability-copy{max-width:770px;font-size:19px}.fight-result .big{font-size:25px;color:#ffda4c}.guard-button{display:block}#touch.fighting .guard-button{display:block}#touch button[data-key=KeyC]{border-radius:50%;border-color:#e7c867;background:#544225aa}#stage[data-mode=fight] #utilities{top:132px;bottom:auto}#stage[data-mode=fight] #touch{padding-bottom:12px}
@media(max-height:500px) and (orientation:landscape){.mode-screen{gap:7px}.mode-screen h2{font-size:14px}.mode-card{padding:14px}.mode-card>strong{font-size:27px}.mode-card h2{font-size:12px}.mode-card p{font-size:18px}.fighter-selection{gap:4px}.fighter-selection h2{font-size:12px}.fighter-selection .tag{font-size:8px;padding:5px}.fighter-grid{gap:5px;width:94%}.fighter-grid .character-card{min-height:84px;padding:3px}.fighter-grid .portrait{height:53px;width:46px}.fighter-grid .character-card span:last-child{font-size:6px;min-height:19px}.fighter-move{font-size:16px}.fighter-selection .prompt{font-size:10px;padding:6px}.selection-screen .ability-copy{font-size:14px;max-width:600px}.selection-screen{gap:3px}.selection-screen .character-card{min-height:104px}.selection-screen .character-card .portrait{height:55px}.chapter-intro .ability-copy{font-size:16px}.fight-result .big{font-size:19px}.actions,.dpad{gap:9px}#touch button{width:46px;height:46px;font-size:19px}#touch button[data-key=ArrowUp]{width:52px;height:52px}#stage[data-mode=fight] #utilities{top:92px}#stage[data-mode=fight] #utilities button{width:27px;height:25px}.fight-result .screen{gap:8px}}

/* Four worlds and twelve fighters retain two-row touch selection. */
.world-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.world-card{padding:15px 12px;min-height:230px}.world-card strong{font-size:12px}.world-desc{font-size:21px}.fighter-grid{grid-template-columns:repeat(6,minmax(0,1fr))}
@media(max-height:500px) and (orientation:landscape){.world-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;width:92%}.world-card{position:relative;min-height:108px;padding:8px 10px;gap:5px}.world-number{position:absolute;right:10px;top:10px;font-size:18px}.world-card small{font-size:6px;max-width:85%}.world-card strong{font-size:10px;padding-right:25px}.world-desc{font-size:15px;max-width:94%}.world-progress{font-size:7px}.world-screen h2{margin:0 0 3px}.world-screen{gap:5px}.world-screen .prompt{padding:4px}.world-screen .fine{font-size:14px}.fighter-grid{gap:5px}.fighter-grid .character-card span:last-child{font-size:6px}.fighter-grid .portrait{height:53px;width:46px}}

/* Meme meters are flavor; the separate life row reflects the saved adventure. */
.selection-details{display:grid;grid-template-columns:1fr 1fr;gap:24px;width:100%;align-items:center;text-align:left}.selection-story{display:flex;flex-direction:column;gap:12px;min-width:0}.character-sheet{background:#1c2b47;border:2px solid #3a4964;padding:16px 18px}.character-sheet h3{font-size:12px;line-height:1.7;margin:0 0 12px;color:var(--cream)}.character-sheet dl{margin:0;display:grid;gap:9px}.character-sheet dl>div{display:flex;align-items:center;justify-content:space-between;gap:8px}.character-sheet dt{font-size:8px;line-height:1.6}.character-sheet dd{margin:0;color:var(--gold);font-size:15px;display:flex;gap:10px;align-items:center}.stat-blocks{display:flex;gap:3px}.stat-blocks i{display:block;width:11px;height:11px;border:1px solid var(--gold)}.stat-blocks .filled{background:var(--gold)}.life-stat{border-top:1px solid #ffffff25;padding-top:9px}.life-blocks{font-family:monospace;font-size:16px;letter-spacing:2px}.character-sheet p{font-family:VT323,monospace;color:#adb9d2;font-size:16px;line-height:1.15;margin:12px 0 0}.selection-screen{gap:10px}.selection-screen .character-card{min-height:142px}.selection-screen .character-card .portrait{height:84px}.selection-screen .campaign-summary{font-size:19px}.selection-screen .ability-copy{font-size:17px}.selection-screen .prompt{padding:6px}.selection-screen h2{margin:0}.selection-screen .menu-hint{font-size:8px}
@media(max-height:500px) and (orientation:landscape){.selection-details{gap:12px;grid-template-columns:1fr 1.05fr}.selection-story{gap:5px}.character-sheet{padding:8px 10px}.character-sheet h3{font-size:8px;margin-bottom:7px}.character-sheet dl{gap:5px}.character-sheet dt{font-size:6px}.character-sheet dd{font-size:11px}.stat-blocks i{width:8px;height:8px}.stat-blocks{gap:2px}.life-stat{padding-top:5px}.life-blocks{font-size:12px}.character-sheet p{font-size:13px;margin:6px 0 0}.selection-screen{gap:4px}.selection-screen h2{font-size:11px;margin:0}.selection-screen .character-card{min-height:73px;padding:3px}.selection-screen .character-card .portrait{height:40px;width:40px}.selection-screen .character-card span:last-child{font-size:6px;min-height:18px;max-width:180px}.selection-screen .character-subtitle{font-size:16px}.selection-screen .campaign-summary{font-size:13px}.selection-screen .ability-copy{font-size:13px}.selection-screen .prompt{padding:3px;font-size:9px}.selection-screen .menu-hint{font-size:6px}.selection-screen .text-button{font-size:7px;padding:3px}.mapbar{bottom:19%;padding:8px}.mapbar>.prompt{max-width:35%}.mapbar .prompt{font-size:7px}}
@media(prefers-reduced-motion:reduce){.prompt{animation:none}}
#touch.mounted .guard-button{display:block}.chapter-intro .ride-instruction{border-left:3px solid #82d9d5;padding-left:12px;font-size:20px}.ride-instruction strong{color:#82d9d5}@media(max-height:500px) and (orientation:landscape){.chapter-intro .ride-instruction{font-size:16px}}
/* The finale keeps its briefing readable on short landscape screens. */
.boss-intro{max-width:800px;max-height:96%;overflow:auto;padding:24px 32px;text-align:center}
.boss-versus{display:flex;align-items:center;justify-content:center;gap:32px;margin:12px 0}.boss-versus>div{display:flex;flex-direction:column;align-items:center;gap:6px;flex:1}.boss-versus .portrait{width:84px;height:96px}.boss-versus strong{font:11px/1.5 var(--pixel,'Press Start 2P'),monospace}.boss-versus>b{color:var(--gold);font-size:24px}.boss-pattern{font-size:18px;line-height:1.25;margin:12px 0}.boss-pattern strong{color:var(--gold)}.boss-equipment{display:flex;align-items:center;gap:14px;text-align:left;background:#1d2541;padding:8px 14px}.boss-equipment canvas{flex:0 0 64px;width:64px;height:64px;image-rendering:pixelated}.boss-equipment p{font-size:17px;line-height:1.2;margin:0}.boss-equipment small{font-size:15px;color:#c6c8de}.boss-intro .fine{font-size:15px;margin:10px 0}.boss-intro .prompt{font-size:13px}.boss-intro .chapter-actions{position:sticky;bottom:-24px;background:#101029;padding:10px 0}.boss-intro .text-button{font-size:9px}
#touch [hidden]{display:none!important}
@media(max-height:500px){.boss-intro{padding:12px 24px}.boss-versus{margin:8px 0;gap:14px}.boss-versus .portrait{width:56px;height:64px}.boss-versus strong{font-size:9px}.boss-pattern{font-size:16px}.boss-intro .chapter-actions{bottom:-12px}.boss-equipment p{font-size:15px}.boss-equipment small{font-size:14px}}

.chapter-intro .movement-instruction{font-size:18px;line-height:1.3;border-left:3px solid #ffe16c;padding-left:12px}@media(max-height:500px){.chapter-intro .movement-instruction{font-size:16px}}

.mission-dialog{display:flex;align-items:flex-start;gap:16px;padding:16px;background:#111b32;border:2px solid #708a99;box-shadow:inset 0 -4px #080f21;text-align:left;margin:14px 0}.mission-dialog .portrait{width:66px;height:78px;flex:0 0 66px}.mission-copy{min-width:0;flex:1}.mission-copy>small{color:#ffe16c;font-size:10px}.mission-text{position:relative;font-family:'VT323',monospace!important;font-size:23px!important;line-height:1.2!important;margin:10px 0!important;color:#f4f1d6}.mission-reserve{visibility:hidden}.mission-text [data-mission-text]{position:absolute;inset:0}.mission-text .typing:after{content:'▌';color:#ffe16c}.mission-dialog .mission-reveal{font-size:8px;padding:3px 0;color:#badfda}.mission-reveal:disabled{opacity:.6;text-decoration:none;cursor:default}.sr-only{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-height:500px){.mission-dialog{padding:10px;gap:10px;margin:10px 0}.mission-dialog .portrait{width:46px;height:56px;flex-basis:46px}.mission-copy>small{font-size:8px}.mission-text{font-size:18px!important;line-height:1.15!important;margin:6px 0!important}.mission-dialog .mission-reveal{font-size:7px}}

/* Mission first; reference material is opened explicitly through the i buttons. */
.mission-intro{max-width:870px;margin-bottom:0}.mission-info{display:flex;gap:12px;justify-content:center;margin:18px 0}.info-button{display:flex;align-items:center;justify-content:center;gap:9px;min-height:44px;padding:8px 12px;border:2px solid #6674b0;background:#172447;color:#e3e7ff;font-size:10px;line-height:1.4}.info-button:hover,.info-button:focus-visible{background:#30406c;border-color:#ffe16c}.info-icon{display:inline-flex;align-items:center;justify-content:center;width:23px;height:23px;flex-shrink:0;border:2px solid currentColor;border-radius:50%;font:700 18px/1 monospace;color:#ffe16c}.mission-intro .chapter-actions{position:static;background:transparent;padding:0;margin-top:14px}.mission-intro .mission-dialog{margin:14px 0}.help-panel{max-width:820px;max-height:94%;margin:0;text-align:left}.help-panel h2{display:flex;align-items:center;gap:10px;font-size:18px}.help-section{margin:18px 0}.help-section h3{font-size:11px;line-height:1.5;color:#ffe16c;margin:0 0 7px}.help-section p{font:23px/1.3 'VT323',monospace;margin:0;color:#e5e8ef}.help-panel .chapter-actions{justify-content:flex-end;padding:12px 0 0}.help-panel .prompt{font-size:11px}.help-panel:focus,.fact-panel:focus{outline:none}
@media(max-height:500px) and (orientation:landscape){.mission-intro{max-height:96%;padding:12px 18px;margin-bottom:0}.mission-intro .mission-dialog{margin:8px 0}.mission-info{gap:7px;margin:9px 0}.info-button{font-size:8px;padding:6px 9px;min-height:44px}.info-icon{width:20px;height:20px;font-size:16px}.mission-intro .chapter-actions{margin-top:6px;gap:10px}.mission-intro .chapter-actions .prompt{font-size:9px;min-height:38px}.mission-intro .chapter-actions .text-button{font-size:8px;min-height:38px}.mission-intro .mission-text{font-size:19px!important}.boss-intro.mission-intro .boss-versus{margin:5px 0}.boss-intro.mission-intro .boss-versus .portrait{width:37px;height:42px}.boss-intro.mission-intro .boss-versus strong{font-size:8px}.help-panel{max-height:96%;margin:0;padding:12px 18px}.help-panel h2{font-size:12px}.help-section{margin:12px 0}.help-section h3{font-size:9px}.help-section p{font-size:19px}.help-panel .chapter-actions{padding-top:8px}.help-panel .prompt{font-size:9px;min-height:44px}}
@media(max-height:500px) and (orientation:landscape){.boss-intro.mission-intro .boss-versus>div{flex-direction:row;gap:5px}.boss-intro.mission-intro .boss-versus strong{max-width:120px;text-align:left}.boss-intro.mission-intro .mission-dialog>.portrait{display:none}.boss-intro.mission-intro .mission-dialog{padding:8px}.boss-intro.mission-intro .mission-info{margin:7px 0}}

/* Map introductions pair each chapter with its documented satirical context. */
.mapbar .case-map{font-size:clamp(17px,2vw,23px);line-height:1.15;color:#e4dfc9;max-width:66ch;margin:9px 0 0}.mapbar>.prompt{max-width:29%}
@media(max-height:500px) and (orientation:landscape){.mapbar{bottom:7%;gap:12px}.mapbar .case-map{font-size:17px;line-height:1.08;margin-top:6px}.mapbar>.prompt{max-width:28%}.mapbar .text-button{padding-top:7px}}

/* Pre-mission equipment shop. */
.shop-panel{width:100%;max-width:840px;max-height:96%;margin:0;padding:22px;text-align:center;background:#18223d;border-color:#ffe16c}.shop-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:18px}.shop-heading h2{font-size:18px;line-height:1.5;margin:0}.shop-heading>strong{font-size:11px;white-space:nowrap}.shop-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.shop-card{display:flex;flex-direction:column;gap:12px;min-width:0;padding:20px 16px;text-align:left;color:#fff8db;background:#242e4b;border:3px solid #63708e}.shop-card.selected,.shop-card:focus-visible{border-color:#ffe16c;outline:none}.shop-card h3{font-size:12px;line-height:1.6;margin:0}.shop-card p{font:23px/1.15 VT323,monospace;margin:0;flex:1;color:#d2daee}.shop-card strong{font-size:11px;line-height:1.6}.shop-card small{font:20px VT323,monospace;color:#ffccab}.shop-card:disabled{cursor:default;background:#141e35}.shop-card:disabled strong{color:#b8c2d6}.shop-panel .shop-notice{font:21px/1.2 VT323,monospace;min-height:25px;margin:16px 0 8px!important}.shop-panel>.prompt{font-size:12px;min-height:44px;margin:0}.shop-panel:focus{outline:none}
@media(max-height:500px) and (orientation:landscape){.shop-panel{padding:14px;max-height:96%;margin:0}.shop-heading{margin-bottom:10px;gap:10px}.shop-heading h2{font-size:12px}.shop-heading>strong{font-size:8px}.shop-grid{gap:10px}.shop-card{padding:12px;gap:8px}.shop-card h3,.shop-card strong{font-size:9px}.shop-card p{font-size:19px}.shop-card small{font-size:17px}.shop-panel .shop-notice{font-size:18px!important;margin:10px 0 4px!important}.shop-panel>.prompt{font-size:9px}}

/* Five worlds; the judiciary has a separate roster without shrinking touch targets. */
.world-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.world-card{min-height:160px;padding:12px;gap:8px}.world-number{font-size:24px}.world-card strong{font-size:11px}.world-desc{font-size:19px}.world-screen{gap:9px}.world-screen .fine{margin:3px 0}
@media(max-height:500px) and (orientation:landscape){.world-grid{grid-template-columns:repeat(3,minmax(0,1fr));width:96%;gap:6px}.world-card{min-height:112px;padding:8px;gap:6px}.world-number{font-size:16px;top:8px;right:8px}.world-card strong{font-size:8px;line-height:1.6;padding-right:0}.world-card small{font-size:5px;max-width:80%}.world-desc{font-size:16px}.world-progress{font-size:6px}.world-screen .prompt{font-size:9px}.world-screen .fine{font-size:13px}}

/* Fit the current viewport after native fullscreen/browser chrome changes. */
#fullscreen-tip{position:absolute;z-index:15;top:12%;left:50%;transform:translateX(-50%);width:min(440px,88%);padding:12px 42px 12px 14px;background:#18223df5;border:2px solid var(--gold);font:20px/1.15 VT323,monospace;text-align:left;box-shadow:0 4px 20px #0008}#fullscreen-tip[hidden]{display:none}#fullscreen-tip button{position:absolute;right:0;top:0;width:40px;height:40px;border:0;background:none;font:26px monospace}#utilities button[hidden]{display:none}
.game-fullscreen #root{height:100dvh;min-height:100dvh;padding:env(safe-area-inset-top,0px) env(safe-area-inset-right,0px) env(safe-area-inset-bottom,0px) env(safe-area-inset-left,0px);gap:0;overflow:hidden}.game-fullscreen #stage{width:min(100%,calc((100dvh - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px))*16/9));height:auto;max-height:100dvh;flex-shrink:0;border:0;box-shadow:none}.game-fullscreen footer{display:none}html::backdrop{background:#101029}
@media(pointer:coarse),(max-height:500px){#root{height:100dvh;min-height:100dvh;overflow:hidden;padding:env(safe-area-inset-top,0px) env(safe-area-inset-right,0px) env(safe-area-inset-bottom,0px) env(safe-area-inset-left,0px)}#stage{width:min(100%,calc((100dvh - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px))*16/9));height:auto;max-height:100dvh;flex-shrink:0}#hud{right:150px}#utilities button{width:40px;height:36px}#fullscreen-tip{font-size:18px;top:15%}}

/* Mission overview: the artwork stays clear, with details available on demand. */
#stage[data-mode=map] #overlay{padding:0}
#stage[data-mode=map] #utilities{top:3%;right:3%;bottom:auto}
#stage[data-mode=map] .map-top{top:3%;left:3%;right:160px;flex-direction:row;align-items:center;gap:12px;width:fit-content;max-width:calc(94% - 150px);padding:4px 8px;background:#101b29e8}
.map-stops{position:absolute;inset:0;pointer-events:none}
.map-stop{position:absolute;transform:translate(-50%,-50%);width:7%;aspect-ratio:1;min-width:44px;min-height:44px;max-width:84px;border:0;border-radius:50%;background:transparent;pointer-events:auto}
.map-stop:disabled{cursor:not-allowed}
.map-stop:focus-visible{outline:3px solid #ffe16c;outline-offset:4px;background:#fff2}
.mapbar.map-compact{left:4%;right:4%;bottom:7%;padding:14px 18px;gap:20px;border-width:3px;background:#101b29ed;align-items:center}
.map-compact .map-mission{min-width:0;flex:1}
.map-compact .map-mission small{font-size:clamp(7px,1vw,10px);line-height:1.5}
.map-compact .map-mission h2{font-size:clamp(11px,1.5vw,17px);line-height:1.6;margin:7px 0 0}
.map-compact .map-actions{display:flex;align-items:center;justify-content:flex-end;gap:20px;flex:0 0 auto}
.map-compact .info-button{font-size:0;width:46px;height:46px;padding:0;min-height:44px;gap:0}
.map-compact .info-button>span:last-child{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.map-compact .map-start{display:flex;flex-direction:column;align-items:center;gap:4px}
.map-compact .map-start small{font-size:9px;white-space:nowrap}
.map-compact .prompt{min-height:44px;max-width:none;margin:0;padding:10px 14px;font-size:12px;background:#ffe16c;color:#142039;border:2px solid #ffeeb5;line-height:1.2}
@media(max-height:500px) and (orientation:landscape){
 #stage[data-mode=map] .map-top{top:3%;padding:2px 5px;gap:8px}
 #stage[data-mode=map] .map-top .text-button{min-height:32px;padding:5px;font-size:7px}
 .mapbar.map-compact{bottom:5%;padding:7px 10px;gap:10px;border-width:2px}
 .map-compact .map-mission small{font-size:6px}
 .map-compact .map-mission h2{font-size:9px;line-height:1.5;margin-top:4px}
 .map-compact .map-actions{gap:10px}
 .map-compact .map-start{gap:2px}
 .map-compact .map-start small{font-size:6px}
 .map-compact .prompt{font-size:8px;padding:8px 10px}
}
/* Pre-mission cart: navigation stays outside its scrolling inventory. */
.shop-panel{display:flex;flex-direction:column;max-width:1000px;overflow:hidden;max-height:96%;gap:10px}.shop-heading{margin:0}.shop-actions{display:flex;justify-content:space-between;align-items:center;gap:16px}.shop-panel .shop-actions button{min-height:44px;margin:0;font-size:10px}.shop-panel .shop-stage{font:20px VT323,monospace;margin:0!important;color:#ffdf6b}.shop-grid{min-height:80px;flex:1;overflow-y:auto;overscroll-behavior:contain;touch-action:pan-y;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.shop-card{gap:10px;padding:12px}.shop-card p{font-size:20px}.shop-card button{font:9px/1.5 'Press Start 2P',monospace;min-height:44px;padding:8px;color:#fff8db;background:#35415e;border:2px solid #697696}.shop-card button:disabled{opacity:.55;cursor:default}.shop-card button:focus-visible,.shop-card .equipped{border-color:#ffe16c;background:#4b471d;outline:2px solid #ffe16c}.shop-card small{font:18px VT323,monospace;color:#ffe16c}.shop-panel .shop-rule{flex-shrink:0;font:17px/1.1 VT323,monospace;margin:0!important;color:#bec9dc}.shop-panel .shop-notice{flex-shrink:0;margin:0!important;min-height:0;font:18px/1.2 VT323,monospace}.cart-button{min-height:44px}.completion-reward{display:block;color:#ffe16c;font:22px VT323,monospace}
@media(max-height:500px) and (orientation:landscape){.shop-panel{padding:10px;gap:5px}.shop-heading h2{font-size:10px}.shop-heading>strong{font-size:8px}.shop-panel .shop-actions button{font-size:8px}.shop-panel .shop-stage{font-size:17px}.shop-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.shop-card h3{font-size:9px}.shop-card p{font-size:18px}.shop-panel .shop-rule{max-height:36px;overflow:auto;touch-action:pan-y;font-size:16px}.shop-panel .shop-notice{font-size:16px!important}.map-actions{gap:8px}.cart-button{font-size:8px}}
.shop-rules{flex-shrink:0;text-align:left}.shop-rules summary{cursor:pointer;font-size:9px;min-height:26px;padding:8px;color:#ffd94b}.shop-panel .shop-rule{max-height:80px;overflow-y:auto;touch-action:pan-y;padding:5px}.shop-panel .shop-notice{font-size:16px;line-height:1.2}#stage[data-mode=shop] #utilities{display:none}
@media(max-height:500px) and (orientation:landscape){.shop-panel .shop-card p{display:none}.shop-card{gap:5px;padding:8px}.shop-panel .shop-stage{font-size:15px}.shop-panel .shop-notice{font-size:14px!important;line-height:1.15}.shop-rules summary{font-size:8px;min-height:20px;padding:4px}.shop-panel .shop-rule{max-height:50px}.shop-card h3{font-size:8px}.shop-panel .shop-heading h2{margin:0;font-size:9px;line-height:1.6}.shop-card button{font-size:8px}.shop-card small{font-size:15px}.shop-grid{min-height:110px}}
@media(max-height:500px) and (orientation:landscape){.shop-card{display:grid;grid-template-columns:1fr 1fr;align-content:start}.shop-card h3,.shop-card small,.shop-card button:only-of-type{grid-column:1/-1}.shop-card button{padding:4px;line-height:1.4}.shop-card .shop-equip{font-size:7px}}
