:root{--navy:#10152c;--panel:#171e3b;--panel2:#20284a;--line:#333b60;--cream:#f7edce;--muted:#9ca7c5;--orange:#ffad55;--coral:#ff7c68;--mint:#8ee0b3;--blue:#7799ff;--purple:#bba5ff;--mono:'DM Mono',monospace;--display:'Barlow Condensed',Impact,sans-serif;--body:'Nunito Sans',sans-serif}
*{box-sizing:border-box}html{min-height:100%;background:var(--navy)}body{margin:0;min-height:100vh;color:var(--cream);font-family:var(--body);background:radial-gradient(ellipse at 52% 0%,#222b50 0%,var(--navy) 54%);-webkit-font-smoothing:antialiased}.shell{width:min(1120px,calc(100% - 56px));margin:0 auto}.topbar{height:80px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid rgba(247,237,206,.1)}.brand{display:flex;align-items:center;gap:11px;color:var(--cream);text-decoration:none;font-family:var(--display);font-weight:800;letter-spacing:.07em;font-size:19px}.brand b{color:var(--orange)}.brand-mark{display:grid;place-items:center;width:34px;height:34px;border:1px solid #56537a;background:#252743;color:var(--orange);font-size:22px;border-radius:9px}.top-note,.eyebrow,.cabinet-label,.cabinet-footer,.join-row label,.score-cell>span,.controls-hint,.weapon small,.weapon kbd,.hint-right,.instrument-key>span,.footer,.overlay-eyebrow,.room-chip>span,.room-chip button{font:500 10px var(--mono);letter-spacing:.13em;color:var(--muted)}.top-note{display:flex;align-items:center;gap:9px}.top-note i{width:7px;height:7px;border-radius:50%;background:var(--mint);box-shadow:0 0 9px #8ee0b377}.screen{display:none}.screen.active{display:block}.hero-copy{padding-top:70px;max-width:590px}.eyebrow{color:var(--orange);font-size:11px;font-weight:500}.hero-copy h1{font:800 clamp(58px,8vw,90px)/.89 var(--display);letter-spacing:.01em;text-transform:uppercase;margin:18px 0 18px}.hero-copy h1 span{color:var(--orange)}.hero-copy p{font-size:16px;line-height:1.6;color:#b6bfd5;max-width:460px;margin:0}.home-actions{display:flex;gap:12px;margin-top:28px}.button{border:0;border-radius:8px;min-height:46px;padding:0 19px;font:700 12px var(--mono);letter-spacing:.09em;cursor:pointer;transition:transform .15s,background .15s,border-color .15s;color:var(--cream)}.button:hover{transform:translateY(-2px)}.button-primary{background:var(--orange);color:#25233c;box-shadow:0 5px 0 #ae684b}.button-primary:hover{background:#ffc073}.button-primary span{font-size:14px;margin-right:5px}.button-secondary{background:#262d50;border:1px solid #4c5577}.button-secondary span{color:var(--mint);font-size:16px;margin-right:6px}.button-join{background:#303a60;border:1px solid #4a557c;min-height:42px;padding:0 16px}.join-row{margin-top:37px}.join-row label{display:block;margin-bottom:10px}.join-form{display:flex;gap:8px}.join-form input{width:190px;height:42px;padding:0 13px;border:1px solid #3a4369;background:#141a34;border-radius:7px;color:var(--cream);font:500 12px var(--mono);letter-spacing:.16em;text-transform:uppercase;outline:none}.join-form input:focus{border-color:var(--orange)}.join-form input::placeholder{color:#697493}.error-message{height:17px;padding-top:5px;font-size:12px;color:var(--coral)}.cabinet-wrap{position:absolute;left:calc(50% + 170px);top:133px;width:370px;height:370px}.cabinet-label{display:flex;justify-content:space-between;color:#7480a4;padding:0 4px 10px}.cabinet{height:280px;position:relative;border:1px solid #4b5278;border-radius:12px;overflow:hidden;background:linear-gradient(180deg,#242b50 0%,#303152 67%,#42405b 100%);box-shadow:0 15px 44px #05081755,inset 0 0 0 6px #1a203d}.cabinet-stars{position:absolute;left:26px;top:20px;color:#9ca9d0;letter-spacing:.28em;font-size:15px}.preview-band{position:absolute;top:70px;left:0;width:100%;display:flex;justify-content:center;gap:26px}.pixel-instrument{display:block;font-size:30px;color:var(--mint);text-shadow:3px 3px #36456a;font-family:var(--display);animation:bob 1.6s ease-in-out infinite}.pixel-instrument:nth-child(even){animation-delay:.3s;color:var(--orange)}.pixel-instrument:nth-child(3){animation-delay:.6s;color:#ffa08d}.preview-swoosh{position:absolute;left:54px;top:132px;color:#b4a6ed;opacity:.8;letter-spacing:.05em;transform:rotate(-4deg)}.preview-director{position:absolute;left:47%;bottom:41px;width:60px;height:85px;transform:translateX(-50%)}.preview-director .head{position:absolute;width:20px;height:20px;left:21px;top:0;background:#efb17d;border:4px solid #343854;box-shadow:0 -5px 0 #2b2942}.preview-director .body{position:absolute;left:13px;top:21px;width:35px;height:44px;background:#e9e2cb;border:4px solid #42415d;box-shadow:0 8px 0 #34334d}.preview-director .arm{position:absolute;left:41px;top:30px;width:30px;height:7px;background:#e9e2cb;transform:rotate(-28deg)}.preview-director .baton{position:absolute;left:64px;top:15px;width:4px;height:34px;background:var(--orange);transform:rotate(24deg);box-shadow:0 0 8px #ffad55}.cabinet-floor{position:absolute;bottom:35px;left:0;right:0;height:1px;background:#73708a;opacity:.8}.cabinet-footer{position:absolute;bottom:12px;left:20px;right:20px;display:flex;justify-content:space-between;color:#b8bad0;font-size:9px}.cartridge{position:absolute;right:0;bottom:2px;width:160px;height:58px;border-radius:6px 6px 13px 13px;background:linear-gradient(90deg,#d66d65,#ef9270);box-shadow:0 5px 0 #8c4d5e;display:flex;align-items:center;justify-content:space-around;color:#412e48;font:700 9px var(--mono);letter-spacing:.06em}.cartridge-lines{width:33px;height:25px;border-left:2px solid #a95a63;border-right:2px solid #a95a63;opacity:.7}.cartridge-note{font-size:20px}.how-row{display:grid;grid-template-columns:repeat(3,1fr);gap:28px;border-top:1px solid rgba(247,237,206,.12);margin-top:67px;padding:21px 0 38px}.how-row>div{position:relative;padding-left:40px;min-height:57px}.how-number{position:absolute;left:0;top:1px;color:var(--orange);font:700 13px var(--mono)}.how-row b{display:block;font:700 11px var(--mono);letter-spacing:.07em;margin-bottom:7px}.how-row small{display:block;color:#9ca7c5;font-size:12px;line-height:1.45}.footer{display:flex;justify-content:space-between;border-top:1px solid rgba(247,237,206,.1);padding:17px 0 24px;font-size:9px;letter-spacing:.1em}.game-screen{padding-top:29px}.game-heading{display:flex;align-items:center;gap:15px;margin-bottom:20px}.game-heading>div:first-child{flex:1}.game-heading h2{font:700 32px/.95 var(--display);text-transform:uppercase;letter-spacing:.03em;margin:6px 0 0}.button-quiet{background:transparent;border:1px solid #3d4568;color:#b0bad4;min-height:38px;font-size:10px}.room-chip{display:flex;align-items:center;gap:9px;background:#1a213f;border:1px solid #3b456b;border-radius:7px;padding:7px 8px 7px 12px}.room-chip b{font:700 14px var(--mono);letter-spacing:.12em;color:var(--mint)}.room-chip button{background:#30395c;border:0;border-radius:4px;padding:6px 8px;color:var(--cream);font-size:9px;cursor:pointer}.hidden{display:none!important}.scorebar{display:grid;grid-template-columns:1fr .65fr 1.2fr 1.5fr 1fr;border:1px solid #333d63;border-radius:8px;background:#171e3a;margin-bottom:9px;overflow:hidden}.score-cell{padding:10px 15px;border-right:1px solid #30395d;min-width:0}.score-cell:last-child{border-right:0}.score-cell>span{display:block;font-size:9px;white-space:nowrap}.score-cell>b{font:700 17px var(--mono);display:block;margin-top:3px}.lives-cell b{color:var(--coral);font-size:15px;letter-spacing:.08em}.energy-cell{padding-right:20px}.energy-track{height:7px;background:#2b3455;border-radius:9px;margin-top:9px;overflow:hidden}.energy-track i{display:block;height:100%;width:100%;border-radius:9px;background:linear-gradient(90deg,#62c99a,#b5e595);transition:width .15s}.role-cell b{font-size:12px;color:var(--orange)}.stage-wrap{position:relative;border:1px solid #414a70;border-radius:9px;overflow:hidden;background:#111830;box-shadow:0 12px 30px #05081744;touch-action:none}.stage-wrap canvas{display:block;width:100%;height:auto;aspect-ratio:1000/650;image-rendering:pixelated;touch-action:none}.stage-overlay{position:absolute;inset:0;display:grid;place-items:center;background:#0b102acc;backdrop-filter:blur(3px);z-index:2;transition:opacity .3s}.stage-overlay.hidden{opacity:0;pointer-events:none}.overlay-card{text-align:center;max-width:410px;padding:24px}.overlay-eyebrow{color:var(--mint)}.overlay-card h3{font:700 32px/1 var(--display);text-transform:uppercase;margin:9px 0}.overlay-card p{color:#b6bfd5;font-size:14px;line-height:1.55;margin:0 auto 18px}.thought-bubble{position:absolute;z-index:1;left:50%;top:20%;max-width:255px;transform:translateX(-50%);background:var(--cream);color:#25233c;border:3px solid #383957;border-radius:20px;padding:12px 16px;font:700 13px var(--body);box-shadow:4px 5px 0 #080d20;animation:pop .2s ease-out}.thought-bubble i{position:absolute;width:10px;height:10px;border:2px solid #383957;border-radius:50%;background:var(--cream);left:48%;bottom:-13px}.thought-bubble i+i{width:6px;height:6px;left:44%;bottom:-21px}.control-panel{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:11px 0 13px}.controls-hint{font-size:9px;display:flex;align-items:center;gap:6px;white-space:nowrap}.keycap{display:inline-grid;place-items:center;width:21px;height:21px;border:1px solid #454e73;border-bottom-width:3px;border-radius:4px;color:var(--cream);font:500 11px var(--mono)}.keycap.wide{width:50px;font-size:9px}.dot{color:#687493;margin:0 2px}.weapon-picker{display:flex;align-items:center;gap:8px}.weapon{height:47px;display:flex;align-items:center;gap:8px;text-align:left;padding:4px 9px;border:1px solid #343d62;background:#171e3a;color:var(--cream);border-radius:6px;cursor:pointer}.weapon.selected{border-color:#da9860;background:#292b4a;box-shadow:inset 0 0 0 1px #da986055}.weapon-icon{width:24px;text-align:center;color:var(--orange);font-size:20px}.horn-icon{color:#f38f7b}.piccolo-icon{color:var(--mint)}.trumpet-icon{color:var(--orange)}.tuba-icon{color:#bba5ff}.weapon b{display:block;font:700 9px var(--mono);letter-spacing:.07em}.weapon small{display:block;font-size:7px;letter-spacing:.04em;margin-top:3px}.weapon kbd{margin-left:5px;border:1px solid #414a6e;border-radius:3px;padding:3px 5px;color:#aeb8d2;font-size:9px}.hint-right{font-size:9px;white-space:nowrap}.instrument-key{display:flex;align-items:center;gap:14px;border-top:1px solid rgba(247,237,206,.1);padding:11px 0 14px;color:#9ca7c5;font-size:10px}.instrument-key>span{font-size:8px;color:#6e799d;margin-right:1px;white-space:nowrap}.instrument-key i{font-style:normal}.instrument-key .key-note{margin-left:auto;color:var(--orange);font-size:15px}.game-screen+.footer{margin-top:1px}.waiting-mode .instrument-key{opacity:.8}@keyframes bob{0%,100%{transform:translateY(0)}50%{transform:translateY(-6px)}}@keyframes pop{from{transform:translateX(-50%) scale(.7);opacity:.3}to{transform:translateX(-50%) scale(1);opacity:1}}
@media(max-width:820px){.shell{width:min(100% - 36px,720px)}.cabinet-wrap{position:relative;left:auto;top:auto;margin:35px 0 0 auto;width:min(370px,100%)}.hero-copy{padding-top:47px}.how-row{margin-top:47px}.home-actions{flex-wrap:wrap}.game-heading h2{font-size:27px}.control-panel{flex-wrap:wrap}.controls-hint{order:1}.weapon-picker{order:3;width:100%;justify-content:center}.hint-right{order:2;margin-left:auto}.weapon{flex:1;max-width:180px;justify-content:center}.instrument-key{gap:9px;flex-wrap:wrap}.instrument-key i{font-size:9px}}
@media(max-width:520px){.shell{width:calc(100% - 24px)}.topbar{height:61px}.brand{font-size:15px;gap:8px}.brand-mark{width:29px;height:29px}.top-note{font-size:8px}.hero-copy{padding-top:36px}.hero-copy h1{font-size:62px}.hero-copy p{font-size:14px}.home-actions{gap:8px}.home-actions .button{padding:0 12px;font-size:10px;min-height:43px}.join-row{margin-top:27px}.join-form input{flex:1;min-width:0}.cabinet-wrap{margin-top:28px;width:min(330px,100%);height:330px}.cabinet{height:250px}.preview-band{gap:17px}.pixel-instrument{font-size:25px}.cartridge{width:135px;height:52px}.how-row{grid-template-columns:1fr;gap:14px;margin-top:27px;padding-bottom:25px}.how-row>div{min-height:42px}.footer{font-size:7px;gap:12px}.game-screen{padding-top:18px}.game-heading{gap:8px;flex-wrap:wrap;margin-bottom:12px}.game-heading>div:first-child{min-width:190px}.game-heading h2{font-size:24px}.room-chip{order:3}.button-quiet{margin-left:auto;padding:0 10px;min-height:34px}.scorebar{grid-template-columns:.85fr .6fr 1fr}.score-cell{padding:8px 9px}.score-cell:nth-child(4){grid-column:span 2;border-top:1px solid #30395d;border-right:1px solid #30395d}.score-cell:nth-child(5){border-top:1px solid #30395d}.score-cell>span{font-size:7px}.score-cell>b{font-size:14px}.lives-cell b{font-size:12px}.energy-cell{padding-right:10px}.energy-track{margin-top:6px}.role-cell b{font-size:10px}.control-panel{gap:8px}.controls-hint{font-size:7px}.keycap{width:18px;height:18px;font-size:9px}.keycap.wide{width:40px;font-size:7px}.hint-right{font-size:7px}.weapon{height:43px;gap:5px;padding:3px 5px}.weapon-icon{font-size:17px;width:19px}.weapon b{font-size:8px}.weapon small{font-size:6px}.weapon kbd{display:none}.instrument-key{gap:8px}.instrument-key>span{font-size:7px}.instrument-key i{font-size:8px}.instrument-key .key-note{display:none}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;scroll-behavior:auto!important;transition:none!important}}
.action-button{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:43px;padding:0 15px;border:1px solid #ffd08d;border-radius:7px;background:linear-gradient(180deg,#ffc06e,#f19a51);box-shadow:0 4px 0 #a65c4b;color:#2b2945;font:700 10px var(--mono);letter-spacing:.08em;white-space:nowrap;cursor:pointer;touch-action:manipulation}.action-button:hover{filter:brightness(1.08);transform:translateY(-1px)}.action-button:active{transform:translateY(2px);box-shadow:0 1px 0 #a65c4b}.action-button span{font-size:14px}.action-button:focus-visible{outline:2px solid var(--cream);outline-offset:3px}
@media(max-width:820px){.action-button{order:4;width:100%}}
@media(max-width:520px){.action-button{min-height:40px;font-size:9px}}
@media(min-width:821px) and (max-height:950px){.shell{width:min(calc(100% - 44px),1060px)}.topbar{height:58px}.game-screen{padding-top:14px}.game-heading{margin-bottom:10px}.game-heading h2{font-size:28px}.scorebar{margin-bottom:7px}.score-cell{padding:7px 11px}.score-cell>b{font-size:15px}.stage-wrap{width:min(100%,84vh);margin-inline:auto}.control-panel{margin:8px 0 9px;gap:10px}.weapon{height:40px}.instrument-key{padding:7px 0 8px;gap:11px}.footer{padding:9px 0 12px}}
.field-toggle.active{border-color:#8ee0b3;background:#213b39;color:#a9edbd}.field-toggle:hover{border-color:#8ee0b3;color:#d0f3cb}
.thought-bubble{z-index:3;top:70%;transform:translate(-50%,-50%);width:max-content;max-width:min(255px,35%);padding:6px 8px;border:3px solid #383957;border-radius:2px;background:var(--cream);box-shadow:4px 4px 0 #080d20;animation:pixelPop .16s steps(2,end)}.thought-bubble canvas{display:block;max-width:100%;image-rendering:pixelated;image-rendering:crisp-edges}.thought-bubble i{width:7px;height:7px;left:8%;bottom:-10px;border:2px solid #383957;border-radius:0;background:var(--cream)}.thought-bubble i+i{width:5px;height:5px;left:4%;bottom:-17px}.thought-bubble.bubble-left i{left:auto;right:8%}.thought-bubble.bubble-left i+i{left:auto;right:4%}.thought-bubble.bubble-right i{left:8%;right:auto}.thought-bubble.bubble-right i+i{left:4%;right:auto}.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}@keyframes pixelPop{from{opacity:0;transform:translate(-50%,-50%) scale(.85)}to{opacity:1;transform:translate(-50%,-50%) scale(1)}}
.thought-bubble{top:76%}.thought-bubble canvas{aspect-ratio:auto;touch-action:auto}
.thought-bubble{pointer-events:none}
.thought-bubble i{top:44%;bottom:auto;left:-10px;right:auto;width:7px;height:7px;border-radius:0}.thought-bubble i+i{top:58%;bottom:auto;left:-17px;right:auto;width:5px;height:5px}.thought-bubble.bubble-left i{left:auto;right:-10px}.thought-bubble.bubble-left i+i{left:auto;right:-17px}.thought-bubble.bubble-right i{left:-10px;right:auto}.thought-bubble.bubble-right i+i{left:-17px;right:auto}
.header-meta{display:flex;align-items:center;gap:18px}
.director-lives{display:flex;align-items:center;gap:1px;margin-left:3px;padding-left:5px;border-left:1px solid #414a6e}.director-life{display:grid;place-items:center;width:20px;height:30px;transition:opacity .15s,filter .15s}.director-life svg{display:block;width:17px;height:26px;shape-rendering:crispEdges;filter:drop-shadow(1px 1px 0 #080d20)}.director-life.spent{opacity:.2;filter:grayscale(1)}
.gameover-pixel{display:none;max-width:100%;image-rendering:pixelated;image-rendering:crisp-edges}.stage-overlay.game-over .overlay-card{width:min(100%,480px)}.stage-overlay.game-over .overlay-card h3,.stage-overlay.game-over .overlay-card p{display:none}.stage-overlay.game-over .gameover-pixel{display:block;margin:7px auto}.stage-overlay.game-over #gameover-title-canvas{margin:7px auto 14px}.stage-overlay.game-over #gameover-details-canvas{opacity:1}.stage-overlay.game-over #gameover-quarter-canvas{margin:13px auto 7px}
@media(max-width:520px){.header-meta{gap:8px}.director-lives{gap:0;margin-left:0;padding-left:3px}.director-life{width:17px}.director-life svg{width:15px;height:23px}}
.footer{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:12px}.footer-side-last{text-align:right}.safari-footer-logo{display:grid;justify-items:center;gap:2px;color:var(--cream);font:700 8px var(--mono);letter-spacing:.12em;white-space:nowrap}.safari-footer-logo svg{display:block;width:48px;height:32px;shape-rendering:crispEdges}
@media(max-width:520px){.footer{grid-template-columns:1fr;justify-items:center}.footer-side{display:none}.safari-footer-logo{font-size:8px}}
.stage-overlay.march-call{position:fixed;inset:0;width:100vw;height:100vh;height:100dvh;z-index:1000;place-items:center;border-radius:0;background:#090e24f5;backdrop-filter:none}.stage-overlay.march-call .overlay-card{width:min(1200px,96vw);max-width:none;padding:clamp(18px,5vw,64px)}.stage-overlay.march-call .overlay-card h3,.stage-overlay.march-call .overlay-card p{display:none}.stage-overlay.march-call .overlay-eyebrow{margin-bottom:clamp(20px,4vh,42px);font:700 clamp(14px,2.3vw,24px) var(--mono);letter-spacing:.24em;color:var(--mint)}.march-call-message{display:none}.stage-overlay.march-call .march-call-message{display:block;width:min(1200px,90vw);margin:auto;color:#ffad55;font:900 clamp(40px,9vw,112px)/1.02 "Rockwell Extra Bold",Rockwell,"Courier New",serif;letter-spacing:.01em;text-transform:uppercase;-webkit-text-stroke:3px #f7edce;paint-order:stroke fill;text-shadow:6px 6px 0 #a8558c,11px 11px 0 #292b4a;overflow-wrap:anywhere;text-wrap:balance}.stage-overlay.march-call.march-call-alt .march-call-message{color:#8ee0b3;-webkit-text-stroke:3px #f2ffe9;text-shadow:6px 6px 0 #3478f6,11px 11px 0 #292b4a}
@font-face{font-family:'(S)AFARI Pixel';src:url('/safari-pixel.ttf?v=3') format('truetype');font-style:normal;font-weight:400;font-display:block}
html,body,body *{font-family:'(S)AFARI Pixel',monospace!important;font-synthesis:none;-webkit-font-smoothing:none;font-smooth:never;}
html::selection,body *::selection{background:#ffad55;color:#10152c}
.button,.button-quiet,.button-join,.action-button,.weapon,.room-chip,.room-chip button,.join-form input,.scorebar,.stage-wrap,.cabinet,.thought-bubble,.overlay-card{border-radius:0!important}
.button,.button-quiet,.button-join,.action-button,.weapon,.room-chip button{box-shadow:4px 4px 0 #080d20!important;transition:none!important}
.button:hover,.action-button:hover{transform:none!important;filter:none!important}
.button-primary{border:2px solid #ffe4a1;background:#ffad55;color:#10152c;box-shadow:4px 4px 0 #9b514e!important}
.button-secondary,.button-join,.button-quiet{border:2px solid #6877a8;background:#20294a;color:#f7edce}
.action-button{border:2px solid #fff0c9;background:#ffad55;box-shadow:4px 4px 0 #a65c4b!important}
.weapon{border-width:2px}.weapon.selected{border-radius:0;box-shadow:inset 0 0 0 2px #da986055,4px 4px 0 #080d20!important}
.room-chip{border-radius:0}.join-form input{border-radius:0;box-shadow:3px 3px 0 #080d20}
.hero-copy h1{font-size:clamp(30px,5.4vw,58px)!important;line-height:1.08;letter-spacing:0}
@media(max-width:520px){.top-note{display:none}.hero-copy h1{font-size:clamp(28px,8vw,42px)!important}}
.hint-right{max-width:270px;white-space:normal;font-size:7px;line-height:1.5;text-align:right}@media(max-width:820px){.hint-right{order:2;flex:1 1 100%;max-width:100%;margin-left:0;text-align:center}}
button,.button,.weapon,.action-button,.keycap,kbd{white-space:nowrap}
.weapon{min-width:0}.weapon b,.weapon small{white-space:nowrap}
@media(max-width:520px){.brand{gap:6px;font-size:clamp(8px,3.2vw,12px);white-space:nowrap;min-width:0}.brand>span:last-child{white-space:nowrap;letter-spacing:.02em}.brand-mark{flex:0 0 29px;width:29px;height:29px;line-height:1;overflow:hidden;border-radius:0}.hero-copy h1{font-size:clamp(19px,7vw,32px)!important}.game-heading>div:first-child{flex:1 1 100%;width:100%;min-width:0}.game-heading #role-label{font-size:clamp(6px,3vw,8px);line-height:1.2;letter-spacing:.08em;white-space:nowrap}.game-heading h2{font-size:clamp(12px,5vw,14px);line-height:1.2;white-space:nowrap;overflow:hidden}.keycap{overflow:hidden;white-space:nowrap;line-height:1;border-radius:0}}

/* The bitmap face has a 5x7 cell on an 8px em grid. Use whole-grid font sizes
   and spacing so glyph pixels land cleanly without fractional scaling. */
html,body,body *{letter-spacing:0!important;font-kerning:none;font-variant-ligatures:none}
.brand,.brand b{font-size:16px!important}
.brand{gap:0}
.brand-mark{font-size:24px!important}
.top-note,.eyebrow,.cabinet-label,.cabinet-footer,.join-row label,.score-cell>span,.controls-hint,.weapon small,.weapon kbd,.hint-right,.instrument-key>span,.footer,.overlay-eyebrow,.room-chip>span,.room-chip button{font-size:8px!important}
.hero-copy h1{font-size:48px!important;line-height:1!important}
.hero-copy p,.overlay-card p,.thought-bubble{font-size:16px!important}
.button,.button-quiet,.button-join,.action-button{font-size:16px!important}
.button span,.action-button span{font-size:16px!important}
.join-form input{font-size:16px!important}
.error-message{font-size:8px!important}
.cabinet-stars{font-size:16px!important}
.pixel-instrument{font-size:32px!important}
.preview-swoosh{font-size:16px!important}
.cartridge{font-size:8px!important}
.cartridge-note,.weapon-icon{font-size:24px!important}
.how-number{font-size:16px!important}
.how-row b{font-size:8px!important}
.how-row small{font-size:16px!important}
.footer{font-size:8px!important}
.game-heading h2,.overlay-card h3{font-size:32px!important}
.room-chip b,.score-cell>b,.lives-cell b,.role-cell b{font-size:16px!important}
.keycap{font-size:16px!important}
.keycap.wide{font-size:8px!important}
.weapon b{font-size:8px!important}
.instrument-key{font-size:8px!important}
.instrument-key .key-note{font-size:16px!important}
.safari-footer-logo{font-size:8px!important}
.action-button{min-height:44px}
.keycap{display:grid;place-items:center;padding:0;border:2px solid #6877a8!important;border-bottom-width:4px!important;border-radius:0!important;background:#20294a;box-shadow:3px 3px 0 #080d20!important;line-height:1}
.controls-hint .keycap:not(.wide){padding-top:2px!important}
.cabinet-wrap{height:280px}
@media(max-width:820px){.hero-copy h1{font-size:40px!important}}
@media(max-width:820px){.cabinet-wrap{height:280px}}
@media(max-width:520px){
  .brand,.brand b{font-size:8px!important}
  .brand{gap:0}
  .brand-mark{font-size:16px!important}
  .hero-copy h1{font-size:32px!important}
  .game-heading h2{font-size:16px!important}
  .role-cell b{font-size:8px!important}
  .keycap{font-size:8px!important}
  .keycap.wide{font-size:8px!important}
  .cabinet-wrap{height:250px}
}
.stage-overlay.march-call .overlay-eyebrow{font-size:16px!important}
.stage-overlay.march-call .march-call-message{font-size:40px!important;line-height:1.05;white-space:nowrap;overflow-wrap:normal;text-wrap:nowrap}
@media(max-width:1200px){.stage-overlay.march-call .march-call-message{font-size:24px!important}}
@media(max-width:660px){.stage-overlay.march-call .march-call-message{font-size:16px!important}}
@media(max-width:440px){.stage-overlay.march-call .march-call-message{font-size:8px!important}}
.stage-overlay.march-call .overlay-eyebrow{display:none}
#home-screen .cabinet-wrap{display:none!important}
.action-button{background-color:#ffad55!important;background-image:none!important}
.action-button.horn-mode{background-color:#704273!important;background-image:none!important;border:3px solid #ffd86b!important;color:#fff0c9!important;box-shadow:4px 4px 0 #352342!important}
.stage-overlay.game-over .overlay-eyebrow{display:none}
.energy-track,.energy-track i{border-radius:0!important}
.button-quiet:disabled{opacity:.45;cursor:not-allowed}
.band-instrument-select{display:flex;align-items:center;justify-content:flex-start;gap:8px;min-height:43px;width:286px;flex:0 0 286px;padding:4px 7px;border:2px solid #6877a8;background:#20294a;box-shadow:4px 4px 0 #080d20;color:#f7edce}
.band-instrument-select label{flex:0 0 70px;font-size:9px;letter-spacing:.08em;white-space:nowrap;text-align:left}
.band-instrument-select select{flex:0 0 190px;width:190px;min-width:190px;max-width:190px;height:31px;padding:0 24px 0 8px;border:1px solid #6877a8;appearance:none;background-color:#171e3b;background-image:linear-gradient(45deg,transparent 50%,#ffad55 50%),linear-gradient(135deg,#ffad55 50%,transparent 50%);background-position:calc(100% - 11px) 12px,calc(100% - 6px) 12px;background-size:5px 5px;background-repeat:no-repeat;color:#f7edce;font-size:10px;text-align:left;cursor:default}
.band-instrument-select select:focus-visible{outline:2px solid #ffad55;outline-offset:2px}
.band-instrument-select option{background:#171e3b;color:#f7edce}
.band-instrument-select option:disabled{color:#7480a4}
.band-instrument-select select:disabled{opacity:1;cursor:default}
.action-button:disabled{opacity:.48;cursor:not-allowed}
@media(max-width:820px){.band-instrument-select{order:3;flex:1 1 100%;width:100%;justify-content:flex-start}.band-instrument-select select{flex:0 0 190px;max-width:190px}}
@media(max-width:520px){.band-instrument-select{min-width:0;justify-content:flex-start}.band-instrument-select label{font-size:8px}.band-instrument-select select{min-width:190px;flex:0 0 190px;font-size:9px}}
.home-intro-grid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);gap:32px;align-items:start}
.origin-story{margin:82px 0 0;padding:14px 16px;border:2px solid #6877a8;background:#171e3b;color:#f7edce;box-shadow:4px 4px 0 #080d20;font-size:16px!important;line-height:1.5}
@media(max-width:1100px){.home-intro-grid{grid-template-columns:minmax(0,1fr);gap:22px}.origin-story{margin:0;max-width:680px}}
.hint-right{width:min(270px,100%);max-width:270px;flex:0 1 270px;overflow-x:auto;overflow-y:hidden;white-space:nowrap!important;text-align:left!important;scrollbar-width:thin;scrollbar-color:#6877a8 #171e3b;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain}
@media(max-width:820px){.hint-right{width:min(270px,100%);max-width:270px;flex:0 1 270px;margin-inline:auto;text-align:left!important}}
.hint-right{display:block;min-width:0;overflow:hidden;white-space:nowrap!important;text-align:left!important;scrollbar-width:none;-webkit-overflow-scrolling:auto;overscroll-behavior:initial}
.hint-track{display:flex;width:max-content;transform:translateX(0);transition:none!important;will-change:transform}
.hint-copy{display:flex;flex:0 0 auto}
.hint-char{display:block;flex:0 0 auto;white-space:pre}
.footer-side{display:flex;flex:1 1 0;flex-wrap:wrap;align-content:center;gap:1px 7px;min-width:0;max-width:100%}
.footer-side-left{justify-content:flex-end}
.footer-side-right{justify-content:flex-start}
.instrument-legend-item{display:inline-flex;align-items:center;gap:3px;color:#9ca7c5;font-size:8px!important;line-height:1.2;white-space:nowrap}
.instrument-legend-glyph{display:block;width:36px;height:28px;flex:0 0 36px;image-rendering:pixelated;image-rendering:crisp-edges}
.instrument-legend-name{display:block}
.weapon-icon.horn-icon{display:flex;align-items:center;justify-content:center;width:44px;flex:0 0 44px;line-height:0;overflow:visible}
.bullhorn-glyph{display:block;width:44px;height:40px;overflow:visible;shape-rendering:crispEdges}
@media(max-width:520px){.footer-side{display:none}}
.footer-caption{grid-column:1 / -1;justify-self:stretch;overflow:hidden;color:#9ca7c5;text-align:center;white-space:nowrap;font-size:8px!important;line-height:1.4;letter-spacing:.04em;padding:3px 0 1px}
.stage-overlay.march-call .march-call-message{font-family:'(S)AFARI Pixel',monospace!important;font-weight:400!important;line-height:1.25!important;letter-spacing:0!important;-webkit-text-stroke:0!important;text-shadow:none!important;paint-order:normal!important;transform:none!important}
.stage-overlay.march-call.march-call-alt .march-call-message{color:#8ee0b3!important}
.stage-overlay.march-call .room-chip.room-chip-call{position:fixed;z-index:1001;top:12px;top:max(12px,env(safe-area-inset-top));right:12px;right:max(12px,env(safe-area-inset-right));pointer-events:auto;background:#1a213f}
@media(max-width:520px){.stage-overlay.march-call .room-chip.room-chip-call{top:8px;right:8px;gap:5px;padding:5px}.stage-overlay.march-call .room-chip.room-chip-call>span{font-size:7px!important}}
.room-chip{border:3px solid #6877a8!important;border-radius:0!important;background:#171e3b!important;box-shadow:none!important;padding:5px 7px 5px 9px}
.scorebar{border:3px solid #6877a8!important;border-radius:0!important;background:#171e3b!important;box-shadow:none!important}
.score-cell{border-right:2px solid #4c577f!important}
.score-cell:last-child{border-right:0!important}
@media(max-width:520px){.score-cell:nth-child(4),.score-cell:nth-child(5){border-top:2px solid #4c577f!important}}
.footer-side{row-gap:9px}
.instrument-legend-item{padding:2px 3px;box-shadow:none!important}
body.band-player-mode .instrument-legend-item{appearance:none;border:3px solid #4c577f;background:#171e3b;cursor:pointer;touch-action:manipulation}
body.band-player-mode .instrument-legend-item[aria-pressed="true"]{border-color:#ffad55;background:#252d50;color:#fff0c9}
body.band-player-mode .instrument-legend-item:focus-visible{outline:3px solid #8ee0b3;outline-offset:1px}
body.band-player-mode .instrument-legend-item:disabled{opacity:.38;cursor:not-allowed}
body:not(.band-player-mode) .instrument-legend-item{border:0;background:transparent;cursor:default;outline:none;color:#9ca7c5}
.throw-warning{width:max-content;max-width:calc(100% - 16px);margin:8px auto 10px;padding:7px 12px;border:3px solid #ff6f61;background:#241c39;color:#fff0c9;box-shadow:4px 4px 0 #080d20;text-align:center;font:700 12px '(S)AFARI Pixel',monospace;letter-spacing:.04em;animation:throw-warning-flash .16s steps(2,end) infinite alternate}
@keyframes throw-warning-flash{to{border-color:#ffad55;color:#ffad55;background:#311e37}}
@media(max-width:520px){.throw-warning{font-size:9px;padding:6px 8px}}
.pause-button-call{position:fixed!important;inset:auto!important;left:max(12px,env(safe-area-inset-left))!important;top:max(12px,env(safe-area-inset-top))!important;z-index:1002!important;margin:0!important;pointer-events:auto!important}
#pause-button{display:none!important}
.stage-overlay.game-over #restart-button{position:relative;top:20px}
html.device-blocked,html.device-blocked body{width:100%;height:100%;min-height:100%;overflow:hidden;background:#10152c}
html.device-blocked .shell{display:none!important}
.mobile-block-screen{display:none}
html.device-blocked .mobile-block-screen{position:fixed;inset:0;z-index:2000;display:grid;place-items:center;padding:20px;background:#10152c}
.mobile-block-card{width:min(680px,100%);padding:24px;border:4px solid #6877a8;background:#171e3b;box-shadow:6px 6px 0 #080d20;text-align:center}
.mobile-block-card p{margin:0;color:#f7edce;font:400 18px/1.8 '(S)AFARI Pixel',monospace;letter-spacing:0;overflow-wrap:anywhere}
.stage-overlay.field-clear{position:fixed;inset:0;width:100vw;height:100vh;height:100dvh;z-index:1000;border-radius:0;background:#090e24f5;backdrop-filter:none}
.stage-overlay.field-clear .gameover-pixel,.stage-overlay.field-clear .march-call-message{display:none!important}
.stage-overlay.game-over .field-clear-rewards,.stage-overlay.game-over .march-call-message{display:none!important}
.stage-overlay.field-clear .overlay-card{width:min(760px,94vw);max-width:none;padding:clamp(18px,4vw,38px);border:4px solid #6877a8;background:#171e3b;box-shadow:8px 8px 0 #080d20}
.stage-overlay.field-clear .overlay-eyebrow{display:block;margin-bottom:14px;color:#8ee0b3;font:400 clamp(11px,2vw,16px) '(S)AFARI Pixel',monospace;letter-spacing:.06em}
.stage-overlay.field-clear .overlay-card h3{margin:0 0 12px;color:#ffad55;font:400 clamp(22px,5vw,46px)/1.25 '(S)AFARI Pixel',monospace}
.stage-overlay.field-clear .overlay-card p{margin:0 auto 20px;color:#f7edce;font:400 clamp(10px,1.8vw,15px)/1.7 '(S)AFARI Pixel',monospace}
.field-clear-rewards{display:none}
.stage-overlay.field-clear .field-clear-rewards{display:grid;justify-items:center;gap:10px;padding:18px 14px;border:3px solid #4c577f;background:#111830}
.field-clear-life-reward{display:flex;align-items:center;justify-content:center;gap:16px;min-height:54px}
.field-clear-life-reward b{color:#8ee0b3;font:400 clamp(30px,6vw,52px) '(S)AFARI Pixel',monospace}
.field-clear-life-icon svg{display:block;width:34px;height:51px;image-rendering:pixelated;shape-rendering:crispEdges;filter:drop-shadow(2px 2px 0 #080d20)}
.field-clear-bonus-label{color:#f7edce;font:400 clamp(12px,2.6vw,22px) '(S)AFARI Pixel',monospace;text-align:center}
.field-clear-bonus{color:#ffad55;font:400 clamp(22px,4vw,36px) '(S)AFARI Pixel',monospace;text-align:center}
.field-clear-percent{color:#9ca7c5;font:400 clamp(9px,1.5vw,12px) '(S)AFARI Pixel',monospace;text-align:center}
.field-clear-countdown{width:100%;margin-top:10px;padding-top:12px;border-top:2px solid #4c577f;text-align:center}
.field-clear-countdown-label{color:#8ee0b3;font:400 clamp(10px,2vw,16px) '(S)AFARI Pixel',monospace;white-space:nowrap}
.field-clear-countdown-number{margin-top:6px;color:#ffad55;font:400 clamp(44px,9vw,76px)/1 '(S)AFARI Pixel',monospace;text-shadow:5px 5px 0 #080d20}
@media(max-width:520px){.stage-overlay.field-clear .overlay-card{padding:16px}.stage-overlay.field-clear .overlay-card p{margin-bottom:14px}.stage-overlay.field-clear .field-clear-rewards{gap:7px;padding:13px 8px}}
