@font-face{font-family:Frontier;src:url('/arcade/assets/Rye-Regular.ttf') format('truetype');font-display:swap}
:root{color-scheme:dark;font-family:"Yu Gothic UI","Hiragino Kaku Gothic ProN",system-ui,sans-serif;color:#f7e9cc;background:#130e0b;--gold:#edc275;--edge:#987143;--accent:#e7b95f;--display:Frontier,Georgia,serif}
*{box-sizing:border-box}body{margin:0;min-width:320px;overflow-wrap:break-word}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer;user-select:none;touch-action:manipulation}button:disabled{cursor:default;opacity:.48}button,input,select{min-height:44px}button{border:1px solid var(--edge);color:#f8e7c7;padding:10px 20px;background:#302116;border-radius:3px;font-weight:800;transition:filter .16s,transform .16s,box-shadow .16s}button:hover:enabled{filter:brightness(1.18);box-shadow:0 0 24px #e1ac4725}button:active:enabled{transform:translateY(2px)}:focus-visible{outline:3px solid #fff1be;outline-offset:4px}a{color:inherit;text-decoration:none}input,select{width:100%;background:#150e0beb;color:#fff2d6;border:1px solid #947246;border-radius:3px;padding:10px 14px;box-shadow:inset 0 2px 6px #0008}input::placeholder{color:#b7a384}label{display:flex;flex-direction:column;gap:7px;font-size:12px;font-weight:700;letter-spacing:.04em}h1,h2,p{margin:0}h1,h2{text-wrap:balance}p{line-height:1.7;text-wrap:pretty}small{font-weight:500}[hidden]{display:none!important}
.world{position:fixed;inset:0;pointer-events:none;background:#26170e}.world-image{position:absolute;inset:0;background:linear-gradient(0deg,#1b100d66,#1c110533),url('/arcade/assets/frontier-town.png') center / cover}.vignette{position:absolute;inset:0;background:radial-gradient(ellipse at 50% 40%,transparent 15%,#120c0980 90%),linear-gradient(#0b080780,transparent 22%,transparent 80%,#130b09b3)}.dust{position:absolute;inset:0;background-image:radial-gradient(#ffdc9e66 1px,transparent 2px),radial-gradient(#ffe6b933 1px,transparent 2px);background-size:193px 137px,281px 211px;animation:dust-drift 22s linear infinite;opacity:.4}.game-frame{position:relative;isolation:isolate;width:100%;height:100dvh;min-height:600px;display:grid;grid-template-rows:64px minmax(0,1fr) 26px;padding:0 max(24px,env(safe-area-inset-right)) 0 max(24px,env(safe-area-inset-left));border:1px solid #bb8c4370}.game-frame::after{content:"";position:absolute;inset:8px;pointer-events:none;border:1px solid #bc8b4340;z-index:-1}.topbar{display:flex;align-items:center;justify-content:space-between;gap:15px;z-index:8;border-bottom:1px solid #c9944733}.back-link,.quiet{font-size:12px;color:#ebd2ab;background:#1a130dc9;border-color:#97734580;letter-spacing:.03em}.back-link{min-height:40px;display:flex;align-items:center;padding:8px 14px;border:1px solid #97734580}.top-tools{display:flex;gap:10px;align-items:center}.quiet{padding:8px 13px}.mini-brand{font-family:var(--display);font-size:20px;letter-spacing:.07em;color:var(--gold)}#connection{font-size:10px;color:#cfba98;letter-spacing:.03em}#connection::before{content:"";display:inline-block;width:5px;height:5px;border-radius:50%;background:#abd58f;margin-right:6px;box-shadow:0 0 7px #b4dc91}.bottom-line{display:flex;justify-content:space-between;align-items:center;color:#c4ae8980;font-size:9px;letter-spacing:.16em;z-index:5}.eyebrow{font-family:Georgia,serif;font-weight:800;font-size:11px;letter-spacing:.24em;color:var(--gold)}main{min-height:0;position:relative}.home-screen{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:20px}.title-lockup{text-align:center;filter:drop-shadow(0 5px 6px #170b09)}.title-ornament{color:#deb260;font-size:16px;letter-spacing:.2em;margin-bottom:10px}.title-lockup h1{font-family:var(--display);font-weight:400;color:#f4d590;font-size:clamp(60px,8.7vw,142px);line-height:1.25;letter-spacing:-.045em;text-shadow:0 2px #fff0b8,0 6px #8a542d,0 10px 2px #29150e;transform:rotate(-2deg)}.title-lockup .eyebrow{margin-bottom:4px}.subtitle{display:inline-block;margin-top:18px;padding:7px 28px;border-block:1px solid #b6884f;background:linear-gradient(90deg,transparent,#481f17dd 15%,#481f17dd 85%,transparent);font-family:Georgia,"Yu Mincho",serif;letter-spacing:.12em;font-size:clamp(14px,1.8vw,22px);font-weight:800;color:#fff2c9}.home-caption{margin-top:20px;font:10px Georgia,serif;letter-spacing:.24em;color:#e6ca9f}.entry-console{width:min(660px,100%);padding:18px 28px 16px;background:linear-gradient(115deg,#301c10f5,#3b2516ef 55%,#21150ff5);border:1px solid #bc914d;outline:1px solid #bc914d55;outline-offset:5px;box-shadow:inset 0 0 0 4px #110c08aa,0 18px 45px #0008;position:relative}.entry-console::before,.entry-console::after{content:"✦";position:absolute;top:9px;color:#ad824a;font-size:11px}.entry-console::before{left:10px}.entry-console::after{right:10px}.console-heading{display:flex;justify-content:space-between;color:#bd9866;font:9px Georgia,serif;letter-spacing:.15em;margin-bottom:12px}.entry-console form{display:grid;grid-template-columns:1fr 180px;gap:14px 20px}.name-field{grid-column:1/-1;flex-direction:row;align-items:center;gap:24px;white-space:nowrap}.name-field input{flex:1;min-width:0}.entry-actions{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:14px}.primary{color:#2c1a0e;background:linear-gradient(#ffe0a0,#d8a34c);border:1px solid #ffdfa5;box-shadow:inset 0 0 0 3px #bf8d4244,0 4px 0 #53321b,0 7px 22px #0005;text-shadow:0 1px #fff6c955;font-size:18px;letter-spacing:.04em;position:relative}.primary small,.secondary small{display:block;font-size:10px;letter-spacing:.12em;opacity:.7;margin-top:3px}.secondary{font-size:17px;background:linear-gradient(#403a33,#24201e);box-shadow:inset 0 0 0 3px #aa8b6130,0 4px 0 #100c09}.code-field{grid-column:1/-1;flex-direction:row;align-items:center;justify-content:flex-end;gap:14px;color:#ceb589}.code-field input{width:180px;text-transform:uppercase;letter-spacing:.12em;min-height:38px;padding:6px 12px}.entry-hint{font-size:10px;color:#c4ac89;margin-top:10px;text-align:center}.home-footer{font:9px Georgia,serif;letter-spacing:.3em;color:#c6aa81}.notification{position:absolute;z-index:30;top:8px;left:50%;transform:translateX(-50%);max-width:90%;color:#ffe4c5;background:#702e20ed;border:1px solid #dc9861;padding:10px 20px;font-size:13px}.notification:empty{display:none}
/* A saloon waiting room with two facing portraits. */
body:not([data-screen=home]) .world-image{background-image:linear-gradient(#150d0877,#150d0877),url('/arcade/assets/saloon-lobby.png')}body[data-screen=play] .world-image,body[data-screen=result] .world-image{background-image:linear-gradient(#140e0944,#140e0966),url('/arcade/assets/frontier-town.png')}.room-screen{height:100%;min-height:0;position:relative;display:grid;grid-template-rows:62px minmax(0,1fr) auto;gap:14px;max-width:1150px;margin:auto}.room-bar{display:flex;justify-content:center;align-items:center;position:relative}.room-bar>#leave{position:absolute;right:0}.room-ticket{display:flex;align-items:center;gap:20px;padding:6px 18px;background:linear-gradient(100deg,#291b10f2,#48301bf2,#291b10f2);border:1px solid #ac7f41;box-shadow:inset 0 0 0 3px #0d080733,0 4px 20px #0006}.room-ticket>span{font:9px Georgia,serif;letter-spacing:.12em;color:#d7b17d}.room-ticket strong{font:30px var(--display);color:#ffdda0;letter-spacing:.12em}.copy-button{font-size:10px;min-height:30px;padding:4px 10px;background:#2c1b10}.players{display:grid;grid-template-columns:1fr 100px 1fr;align-items:center;gap:20px;min-height:0;width:min(790px,100%);margin:auto;height:100%;max-height:360px}.versus{font:italic 62px Georgia,serif;color:#f3cd81;text-align:center;text-shadow:0 0 30px #e8a947,0 3px #4e2715}.player{height:100%;min-height:180px;max-height:330px;position:relative;border:1px solid #b8894c;background:#160f0b;box-shadow:0 0 0 4px #1d130b,inset 0 0 0 5px #bc8b4955,0 20px 40px #0007;display:flex;flex-direction:column;justify-content:flex-end;overflow:hidden}.player::after{content:"";position:absolute;inset:7px;border:1px solid #d9a85a66;pointer-events:none}.portrait{position:absolute;inset:0;background:url('/arcade/assets/gunslingers.png') left center / 200% 100%;filter:sepia(.12)}.player:last-child .portrait{background-position:right center}.player.empty .portrait{filter:brightness(0) sepia(1);opacity:.65}.player.empty{background:linear-gradient(120deg,#715535,#b29463);border-style:dashed}.player .ribbon{position:absolute;z-index:2;top:12px;left:12px;right:12px;font:10px Georgia,serif;letter-spacing:.15em;text-align:center;padding:7px;background:#24323fd9;color:#e1d3ae;border-bottom:1px solid #ac8b55}.player:last-child .ribbon{background:#5c2b1ed9}.player-info{z-index:2;text-align:center;padding:20px 12px 15px;background:linear-gradient(transparent,#140d09 25%)}.player-name{font-size:20px;font-weight:800;letter-spacing:.05em;display:block;margin-bottom:8px;color:#fff1d1}.player-meta{font-size:11px;color:#d5b27d;display:block}.waiting-label{font-size:12px;color:#f3d9a5}.waiting-dots{display:block;width:30px;height:3px;margin:12px auto 0;background:linear-gradient(90deg,transparent,#e6c486,transparent);animation:waiting 1.8s ease-in-out infinite}.lobby-controls{width:min(790px,100%);margin:0 auto 14px;display:grid;gap:18px}.settings-panel{border:1px solid #b58b4c80;padding:13px 24px 10px;background:#1e140ee8;box-shadow:inset 0 0 0 4px #b88b3f12}.section-kicker{font:10px Georgia,serif;letter-spacing:.16em;color:#be975f;margin-bottom:10px}.section-kicker span{font:10px system-ui;letter-spacing:.05em;margin-left:9px}#settings{display:flex;gap:22px}#settings>label{flex:1;min-width:0}#settings select{padding:7px 10px;min-height:38px;font-size:12px}#host-note{font-size:9px;color:#ab9476;margin-top:9px}.start-button{width:min(460px,100%);justify-self:center;min-height:54px;background:linear-gradient(#8d4329,#542417);border:1px solid #edbd70;color:#ffe3a7;box-shadow:inset 0 0 0 4px #260f0b66,0 0 25px #dd7d2425;font-family:"Yu Mincho",serif;letter-spacing:.18em;font-size:22px}
/* Compact HUD and central game surface. */
body[data-screen=play] .room-screen,body[data-screen=result] .room-screen{grid-template-rows:56px minmax(0,1fr);gap:0;max-width:1600px}body[data-screen=play] .room-bar,body[data-screen=result] .room-bar{display:none}body[data-screen=play] .players,body[data-screen=result] .players{display:grid;grid-template-columns:1fr 64px 1fr;max-height:none;height:56px;width:min(960px,100%);gap:10px;margin:0 auto}body[data-screen=play] .player,body[data-screen=result] .player{height:48px;min-height:0;max-height:none;border:0;border-block:1px solid #cf9c4466;box-shadow:none;background:linear-gradient(90deg,#1d2734d9,#1b1712d9)}body[data-screen=play] .player:last-child,body[data-screen=result] .player:last-child{background:linear-gradient(270deg,#48251dd9,#1b1712d9)}body[data-screen=play] .portrait,body[data-screen=result] .portrait,body[data-screen=play] .ribbon,body[data-screen=result] .ribbon,body[data-screen=play] .player::after,body[data-screen=result] .player::after{display:none}body[data-screen=play] .player-info,body[data-screen=result] .player-info{display:flex;align-items:center;justify-content:space-between;padding:7px 16px;background:none;gap:10px}body[data-screen=play] .player-name,body[data-screen=result] .player-name{font-size:13px;margin:0}body[data-screen=play] .player-meta,body[data-screen=result] .player-meta{font:18px Georgia,serif;color:#f9d99f}body[data-screen=play] .versus,body[data-screen=result] .versus{font-size:24px}.arena{position:relative;min-height:0;display:grid;grid-template-rows:32px minmax(0,1fr) auto;gap:8px}.arena-top{display:flex;justify-content:space-between;align-items:center;max-width:960px;width:100%;margin:auto;font:10px Georgia,serif;letter-spacing:.12em;color:#d9bb86}.arena-top strong{font-size:20px;letter-spacing:.07em}.duel-stage{position:relative;display:flex;align-items:center;justify-content:center;min-height:0;isolation:isolate}.duel-figure{position:absolute;bottom:0;width:clamp(100px,20vw,300px);height:90%;background:url('/arcade/assets/gunslingers.png') left center/200% 100%;mask-image:linear-gradient(#000 60%,transparent);opacity:.7;z-index:-1}.duel-figure.left{left:3%}.duel-figure.right{right:3%;background-position:right center}.cue{font:clamp(48px,8vw,130px)/1.1 var(--display);color:#f7dfa3;text-align:center;text-shadow:0 4px #66321c,0 10px 28px #000c;max-width:85%;letter-spacing:.01em}.cue small{display:block;font:14px system-ui;letter-spacing:.15em;margin-top:16px;color:#efdfbd}.cue.real{color:#e1ffc6;text-shadow:0 0 28px #a0d972,0 5px #2f5326}.cue.real::before{content:"";position:absolute;inset:-20%;background:radial-gradient(ellipse,#dcfdaa26,transparent 65%);z-index:-1;pointer-events:none;animation:cue-flare .35s ease-out both}.cue.fake{color:#ffc271;text-shadow:0 3px #7f3320,0 0 28px #de733633}.arena-controls{text-align:center;padding-bottom:12px}.action{width:min(440px,100%);min-height:64px;font:26px var(--display);touch-action:none;letter-spacing:.1em}.action span{font:9px system-ui;display:block;letter-spacing:.18em;margin-top:5px}.controls-help{font-size:9px;color:#d6bf98;margin-top:10px}.tank-stage,.mash-stage{position:relative;min-height:0;display:flex;align-items:center;justify-content:center}canvas{max-width:100%;display:block}#tank{height:100%;width:auto;max-width:100%;aspect-ratio:15/11;object-fit:contain;border:1px solid #65747a;box-shadow:0 12px 65px #0009}.field-caption{position:absolute;bottom:8px;left:50%;transform:translateX(-50%);font:8px monospace;color:#99b0ae88;pointer-events:none}.tank-controls{display:flex;justify-content:space-between;align-items:center;max-width:960px;margin:auto}.dpad{display:grid;grid-template-columns:repeat(3,42px);gap:3px}.dpad button{min-height:35px;padding:2px;background:#11232ee8;color:#99d9f9;border-color:#55889980;touch-action:none}.dpad [data-dir=up]{grid-column:2}.dpad [data-dir=left]{grid-column:1;grid-row:2}.dpad [data-dir=down]{grid-column:2;grid-row:2}.dpad [data-dir=right]{grid-column:3;grid-row:2}.fire-button{border-radius:50%;width:80px;height:80px;background:radial-gradient(#9e581c,#3f2315);border:2px solid #ffc576;color:#ffe3b4;box-shadow:0 0 25px #ed9a3440;touch-action:none;letter-spacing:.05em}.fire-button span{display:block;font-size:10px;margin-top:3px}.result-overlay{position:absolute;inset:0;z-index:15;display:grid;place-items:center;background:radial-gradient(ellipse,#160e0988,#100b09e8);backdrop-filter:blur(5px);overflow:hidden}.result-content{position:relative;text-align:center;width:min(760px,94%);padding:24px;z-index:1;animation:result-arrive .6s cubic-bezier(.2,.8,.2,1) both}.victory-emblem{font:70px Georgia,serif;color:#f3ca76;text-shadow:0 0 45px #efb55488;line-height:1}.result-content h2{font:clamp(30px,5vw,70px) var(--display);color:#f5d389;line-height:1.4;margin:10px 0;text-shadow:0 4px #7f4926,0 0 35px #e5ae4c33}.result-content #reason{font-size:14px;color:#e3cc9f;margin:12px 0}.result-burst{position:absolute;inset:-50%;background:repeating-conic-gradient(from 0deg,#ddad4d0c 0deg 8deg,transparent 8deg 20deg);animation:celebrate 50s linear infinite}.result-content .eyebrow{margin:12px 0}#result-detail{display:flex;justify-content:center;gap:18px;margin:20px 0}#result-detail>div{flex:1;max-width:270px;padding:13px;border-block:1px solid #b9955c55;background:#1b140e99}#result-detail strong{display:block;font-size:22px;color:#fae6b6;margin:6px}#result-detail span,#result-detail small{font-size:11px;color:#ceb98f;display:block}.result-actions{display:flex;justify-content:center;gap:12px}.result-actions .primary{min-width:220px;min-height:54px}.muted{color:#bba789;font-size:11px}.result-content>.muted{margin-top:15px}.result-content[data-outcome=loss] h2{color:#d3c5a9;text-shadow:0 3px #4b3428}
/* Fuel-race and tactical-arena treatments. */
body[data-kind=tank-battle],body[data-kind=button-mash]{--display:Impact,"Arial Black",sans-serif;--gold:#f2cb83;--edge:#6e7774}body[data-kind=tank-battle] .world-image{background:radial-gradient(ellipse at 50% 35%,#354c50,#101a20 75%)}body[data-kind=button-mash] .world-image{background:radial-gradient(ellipse at 50% 100%,#1e5770,#101d2c 55%,#070e1b)}body:not([data-kind=quick-draw]) .title-lockup h1{text-shadow:0 4px #423721,0 0 70px #d8b16b33;transform:none;letter-spacing:.01em}body:not([data-kind=quick-draw]) .entry-console{background:linear-gradient(120deg,#172936f5,#16202bf5);border-color:#799196;outline-color:#79919644}body:not([data-kind=quick-draw]) .subtitle{background:none;border-color:#a5b5b755}body:not([data-kind=quick-draw]) .portrait{background:none;display:grid;place-items:center}body:not([data-kind=quick-draw]) .portrait::before{content:"A";font:140px Impact;color:#74c5e180;text-shadow:0 0 50px #74c5e133}body:not([data-kind=quick-draw]) .player:last-child .portrait::before{content:"B";color:#e9a46880}body:not([data-kind=quick-draw]) .player{background:radial-gradient(ellipse at center,#304c59,#10202c)}body:not([data-kind=quick-draw]) .player:last-child{background:radial-gradient(ellipse at center,#62472d,#241b16)}body:not([data-kind=quick-draw]) .player.empty .portrait{opacity:.2;filter:none}body[data-kind=tank-battle] .arena{grid-template-rows:26px minmax(0,1fr) 105px;gap:4px}body[data-kind=tank-battle] .arena-controls{padding:0 0 8px}body[data-kind=tank-battle] .controls-help{position:absolute;left:50%;bottom:20px;transform:translateX(-50%);width:50%;pointer-events:none}.mash-stage{isolation:isolate;overflow:hidden}#rockets{width:100%;height:100%;object-fit:contain}.mash-gauges{position:absolute;inset:5px 6% auto;display:flex;justify-content:space-between;pointer-events:none;gap:20px}.gauge{width:190px;padding:12px;background:#071323c9;border-top:2px solid #6edcff;box-shadow:0 8px 25px #0003;transform:skew(-4deg)}.gauge:last-child{border-color:#ffc169}.gauge>span{font-size:10px;color:#bce9f6;display:block}.gauge:last-child>span{color:#f9d4a2}.gauge strong{display:block;font:34px Impact;color:#e3f8ff;margin:3px 0}.gauge strong small{font:10px system-ui;color:#bad9dd}.gauge progress{display:block;width:100%;height:9px;accent-color:#64d4f1}.gauge:last-child progress{accent-color:#f6b768}.gauge>small{display:block;color:#95bdc9;font:9px monospace;margin-top:5px}.cinema-title{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;pointer-events:none;text-align:center;font:italic clamp(34px,7vw,96px) Impact;color:#fff0b7;text-shadow:0 0 25px #f8b754,0 5px #423325;letter-spacing:.05em}.cinema-title small{font:12px system-ui;color:#d8ecf4;letter-spacing:.15em;margin-top:12px;text-shadow:0 2px 10px #000}.cinema-title:empty{display:none}#skip-cinema{position:absolute;bottom:10px;right:10px;z-index:5}body[data-cinema=true] .arena-controls{visibility:hidden}body[data-kind=button-mash] .action{background:linear-gradient(#91e4ef,#49abc4);border-color:#c8faff;box-shadow:inset 0 0 0 3px #7dccdd66,0 4px #183d4c,0 0 30px #6ed2ea33;color:#102b3a;font-family:system-ui;font-size:20px;letter-spacing:.08em}body[data-kind=button-mash] .action:active:enabled{box-shadow:inset 0 0 0 3px #b8faff88,0 1px #183d4c,0 0 45px #6ed2ea66;transform:translateY(3px)}dialog{color:#efe1c4;background:linear-gradient(120deg,#2d2118,#1c1712);border:1px solid #c5a16c;width:min(600px,calc(100% - 28px));max-height:85dvh;padding:26px;box-shadow:0 20px 80px #000a}dialog:modal{overscroll-behavior:contain}dialog::backdrop{background:#080706c9;backdrop-filter:blur(6px);overflow:hidden;overscroll-behavior:contain}.dialog-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}dialog h2{margin-bottom:18px;font-family:"Yu Mincho",serif;font-size:28px}dialog p{font-size:13px}#local-options{display:flex;align-items:center;gap:24px;margin:20px 0}#local-options .check-label{flex-direction:row;align-items:center;min-height:44px}input[type=checkbox]{width:20px;min-height:20px;accent-color:var(--accent)}#local-options select{width:auto}.game-frame:fullscreen{background:#160e09}.game-frame:fullscreen::before{content:"";position:absolute;inset:0;z-index:-3;background:linear-gradient(#10090533,#10090566),url('/arcade/assets/frontier-town.png') center/cover}.game-frame:fullscreen:has(.room-screen:not([hidden]))::before{background-image:linear-gradient(#10090588,#10090588),url('/arcade/assets/saloon-lobby.png')}
@keyframes dust-drift{to{background-position:193px -137px,-281px -211px}}@keyframes waiting{50%{opacity:.25;transform:scaleX(.6)}}@keyframes cue-flare{from{opacity:1;transform:scale(.8)}to{opacity:.2;transform:scale(1.1)}}@keyframes result-arrive{from{opacity:0;transform:translateY(15px) scale(.94)}to{opacity:1;transform:none}}@keyframes celebrate{to{transform:rotate(360deg)}}
@media(min-height:900px){.home-screen{gap:35px}.entry-console{padding:24px 32px}.title-lockup h1{font-size:clamp(90px,9vw,170px)}.room-screen{grid-template-rows:90px minmax(0,1fr) auto;gap:28px}.players{max-height:450px}.player{max-height:420px}.lobby-controls{margin-bottom:35px;gap:28px}.settings-panel{padding:18px 28px}.start-button{min-height:64px}}
@media(max-height:740px) and (min-width:761px){.game-frame{grid-template-rows:52px minmax(0,1fr) 22px;min-height:560px}.home-screen{gap:14px}.title-lockup h1{font-size:80px}.title-ornament{margin:0}.subtitle{margin-top:10px;font-size:16px}.home-caption{margin-top:10px}.entry-console{padding:12px 24px}.entry-console form{gap:9px}.entry-actions button{min-height:55px}.home-footer{display:none}.room-screen{grid-template-rows:52px minmax(0,1fr) auto;gap:9px}.lobby-controls{gap:12px}.players{max-height:260px}.player{max-height:260px}.settings-panel{padding:10px 18px}.start-button{min-height:48px}.controls-help{margin-top:5px}.action{min-height:58px}}
@media(max-width:760px){.game-frame{padding-inline:14px;grid-template-rows:56px minmax(0,1fr) 22px;min-height:650px}.topbar{gap:8px}.mini-brand{display:none}.top-tools{gap:6px}.top-tools #connection{display:none}.quiet,.back-link{font-size:10px;padding:7px 10px}.top-tools #fullscreen span{display:none}.home-screen{gap:22px}.title-lockup h1{font-size:clamp(43px,11.5vw,82px);letter-spacing:-.055em}.title-ornament{font-size:12px}.title-lockup .eyebrow{font-size:8px}.subtitle{font-size:14px;margin-top:18px;padding-inline:12px}.home-caption{font-size:8px;letter-spacing:.12em}.entry-console{padding:17px 17px 14px}.name-field{gap:12px;font-size:10px}.name-field input{width:50%;font-size:12px}.entry-actions{gap:9px}.entry-actions button{font-size:14px;padding:12px 7px}.entry-actions small{font-size:8px}.entry-console form{gap:13px}.code-field{font-size:10px}.code-field input{width:140px}.entry-hint{font-size:9px}.bottom-line{font-size:7px;letter-spacing:.05em}.home-footer{font-size:7px;letter-spacing:.18em}.room-screen{grid-template-rows:62px minmax(0,1fr) auto;gap:12px}.room-ticket{gap:8px;padding:8px 10px}.room-ticket>span{font-size:7px}.room-ticket strong{font-size:23px}.room-bar{justify-content:flex-start}.room-bar>#leave{right:0;font-size:10px}.players{grid-template-columns:1fr 36px 1fr;gap:9px;max-height:310px}.versus{font-size:30px}.player{min-height:180px;max-height:310px}.player .ribbon{left:8px;right:8px;font-size:8px;padding:5px 2px;letter-spacing:.03em}.player-name{font-size:14px}.player-meta{font-size:9px}.player-info{padding:22px 10px 16px}.waiting-label{font-size:10px}.lobby-controls{gap:14px;margin-bottom:10px}.settings-panel{padding:12px}#settings{gap:9px}#settings label{font-size:9px;letter-spacing:0}#settings select{font-size:10px;padding:6px;min-height:44px}#host-note{font-size:8px}.section-kicker{font-size:8px}.start-button{min-height:50px;font-size:18px}.room-ticket .copy-button{font-size:9px;padding:4px 7px}body[data-screen=play] .players,body[data-screen=result] .players{grid-template-columns:1fr 28px 1fr;height:48px;gap:5px}body[data-screen=play] .player-info,body[data-screen=result] .player-info{padding:6px 8px;gap:5px}body[data-screen=play] .player-name,body[data-screen=result] .player-name{font-size:10px}body[data-screen=play] .player-meta,body[data-screen=result] .player-meta{font-size:15px}body[data-screen=play] .room-screen,body[data-screen=result] .room-screen{grid-template-rows:48px minmax(0,1fr)}.arena-top{font-size:8px;letter-spacing:.03em}.arena-top strong{font-size:18px}.cue{font-size:clamp(34px,10vw,68px);max-width:100%}.cue small{font-size:10px;letter-spacing:.07em}.duel-figure{height:85%;width:44%;opacity:.45}.duel-figure.left{left:0}.duel-figure.right{right:0}.action{min-height:78px;font-size:25px}.controls-help{font-size:8px;max-width:90%;margin:9px auto 0}.arena-controls{padding-bottom:14px}.result-content{padding:18px 8px}.result-content h2{font-size:34px}.result-content #reason{font-size:12px}.victory-emblem{font-size:52px}#result-detail{gap:8px;margin:18px 0}#result-detail>div{padding:12px 6px}#result-detail strong{font-size:20px}#result-detail span,#result-detail small{font-size:9px}.result-actions .primary{min-width:200px;font-size:16px}.mash-gauges{inset:8px 0 auto;gap:12px}.gauge{padding:8px;width:140px}.gauge strong{font-size:26px}.gauge>span{font-size:8px}.gauge>small{font-size:8px}.cinema-title{font-size:45px}.cinema-title small{font-size:10px}body[data-kind=tank-battle] .arena{grid-template-rows:28px minmax(0,1fr) 140px}.tank-controls{align-items:center;height:125px}.dpad{grid-template-columns:repeat(3,46px);gap:4px}.dpad button{min-height:44px}.fire-button{width:80px;height:80px}.tank-stage #tank{width:100%;height:auto;max-height:100%}body[data-kind=tank-battle] .controls-help{bottom:0;font-size:8px;width:90%}.bottom-line span:last-child{display:none}dialog{padding:20px}dialog h2{font-size:23px}}
@media(max-height:680px) and (max-width:760px){.game-frame{min-height:600px}.home-screen{gap:14px}.home-caption,.home-footer{display:none}.title-lockup h1{font-size:48px}.subtitle{margin-top:10px}.players{max-height:240px}.player{max-height:240px}.room-screen{gap:8px}.lobby-controls{gap:10px}.section-kicker{margin-bottom:8px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}.dust{opacity:.15}}
.player.empty .portrait{background:url('/arcade/assets/waiting.svg') center bottom / auto 95% no-repeat;filter:none;opacity:.85}.world{overflow:hidden}.cue.real::before{inset:0}body[data-screen=home] .mini-brand{visibility:hidden}body[data-kind=quick-draw] .player-name{font-family:"Yu Mincho",serif}
.gauge strong{font-size:15px;letter-spacing:.08em;margin:10px 0}.gauge progress{height:12px}.gauge{position:relative}.gauge::after{content:"TELEMETRY LOCKED / 燃料非表示";position:absolute;inset:30px 8px 8px;display:grid;place-items:center;font-size:9px;color:#dec391;background:#10202deb;border:1px dashed #b4945d;opacity:0;pointer-events:none}body[data-fuel-hidden=true] .gauge::after{opacity:1}body[data-fuel-hidden=true] .gauge progress,body[data-fuel-hidden=true] .gauge>small{visibility:hidden}
body[data-race-stage=launch] .cinema-title,body[data-race-stage=separate] .cinema-title,body[data-race-stage=formation] .cinema-title,body[data-race-stage=orbit] .cinema-title{inset:auto 0 16px;font-size:clamp(20px,3vw,38px)}body[data-race-stage=launch] .cinema-title small,body[data-race-stage=separate] .cinema-title small,body[data-race-stage=formation] .cinema-title small,body[data-race-stage=orbit] .cinema-title small{margin-top:6px;font-size:10px}.home-screen{position:relative}.home-screen::before,.home-screen::after{content:"";position:absolute;bottom:0;width:160px;height:235px;background:url('/arcade/assets/waiting.svg') center bottom / contain no-repeat;opacity:.5;pointer-events:none;z-index:-1;filter:brightness(.35)}.home-screen::before{left:8%}.home-screen::after{right:8%;transform:scaleX(-1)}body:not([data-kind=quick-draw]) .home-screen::before,body:not([data-kind=quick-draw]) .home-screen::after{display:none}@media(max-width:900px){.home-screen::before,.home-screen::after{display:none}}
body[data-race-stage=catchup] .cinema-title,body[data-race-stage=duel] .cinema-title{inset:auto 0 16px;font-size:clamp(20px,3vw,38px)}body[data-race-stage=catchup] .cinema-title small,body[data-race-stage=duel] .cinema-title small{margin-top:6px;font-size:10px}
/* The two 768×1024 portraits share a 1536×1024 atlas. Scale the image
   uniformly to cover one portrait, then crop at the subject's quarter center.
   Keeping height:auto prevents the old 200% 100% background distortion. */
body[data-kind=quick-draw] .portrait:not(.empty .portrait),.duel-figure{background:none;container-type:size;overflow:hidden}.portrait img,.duel-figure img{position:absolute;max-width:none;width:max(200cqw,150cqh);height:auto;left:calc(50cqw - max(200cqw,150cqh) / 4);top:50%;transform:translateY(-50%)}.player:last-child .portrait img,.duel-figure.right img{left:calc(50cqw - max(200cqw,150cqh) * 3 / 4)}.player.empty .portrait{background:url('/arcade/assets/waiting.svg') center bottom / auto 95% no-repeat}.versus{white-space:nowrap}body[data-kind=quick-draw] .duel-figure{opacity:.48}
body[data-screen=play] .portrait,body[data-screen=result] .portrait{display:none!important}
.audio-controls{display:flex;flex-wrap:wrap;align-items:center;gap:15px;margin:15px 0}.audio-controls label{flex:1;min-width:140px}.audio-controls input[type=range]{padding:0;box-shadow:none;accent-color:var(--gold);min-height:44px}.audio-credit{font-size:9px!important;color:#b7a489;margin-top:18px;border-top:1px solid #9d7f4b55;padding-top:12px}.audio-credit a{text-decoration:underline}.top-tools #audio-open{white-space:nowrap}#audio-status{margin:8px 0}#local-options{flex-wrap:wrap}
@media(pointer:coarse){button,.back-link{min-block-size:44px;min-inline-size:44px}.copy-button{min-height:44px;min-width:44px}#settings select{min-height:44px}.dpad{grid-template-columns:repeat(3,46px)}.dpad button{min-height:44px;min-width:44px}}
.gauge::after{visibility:hidden}body[data-fuel-hidden=true] .gauge::after{visibility:visible}
