@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;500;600;700;800;900&family=Noto+Sans+KR:wght@400;500;600;700;800;900&display=swap');

:root {
  --orange:#ff873e; --orange-bright:#ffae67; --cream:#fff5df;
  --ink:#0a1013; --line:#f7f0dc26; --muted:#a2afb3; --blue:#8de7fa;
  --font:'Noto Sans KR',system-ui,sans-serif;
  --display:'Barlow Condensed','Arial Narrow',sans-serif;
  --edge:32px; --safe-bottom:env(safe-area-inset-bottom,0px);
}
*{box-sizing:border-box}
html,body{margin:0;width:100%;height:100%;overflow:hidden;background:var(--ink);color:var(--cream);font-family:var(--font);font-size:14px}
body{overscroll-behavior:none;-webkit-tap-highlight-color:transparent}
button,a,input,select{font:inherit}
button{cursor:pointer;color:inherit;border:0;background:none;touch-action:manipulation}
a{color:inherit;text-decoration:none}
button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible{outline:2px solid var(--blue);outline-offset:4px}
button:disabled{opacity:.45;cursor:default}
svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
button svg{pointer-events:none}
.svg-defs{position:absolute;width:0;height:0;overflow:hidden}
.hidden{display:none!important}
kbd{display:inline-flex;align-items:center;justify-content:center;min-width:17px;padding:3px 4px;background:#ffffff08;border:1px solid #f5f5e62b;border-radius:2px;font-family:var(--display);font-size:11px;line-height:1;white-space:nowrap;color:#b8c6cb}
#viewport,#viewport canvas{position:fixed;inset:0;width:100%;height:100%;display:block;touch-action:none}
#vignette{position:fixed;inset:0;pointer-events:none;background:radial-gradient(ellipse at 55% 43%,transparent 45%,#03090c70 100%);z-index:1}
#screen-flash{position:fixed;inset:0;pointer-events:none;background:#fff7d5;opacity:0;z-index:31}
#speed-lines{position:fixed;inset:-10%;pointer-events:none;z-index:2;opacity:0;background:repeating-conic-gradient(from 15deg at 50% 50%,transparent 0deg 9deg,#ffffff40 9.2deg 9.4deg,transparent 9.6deg 21deg);mask-image:radial-gradient(ellipse,transparent 35%,#000 100%)}
#cinema-bars{position:fixed;inset:0;z-index:28;pointer-events:none;--bar-size:0px}
#cinema-bars i{position:absolute;left:0;right:0;height:var(--bar-size);background:#05090b;transition:height .25s ease}
#cinema-bars i:first-child{top:0}#cinema-bars i:last-child{bottom:0}
#impact-vignette{position:fixed;inset:0;z-index:27;pointer-events:none;opacity:0;background:radial-gradient(ellipse,transparent 28%,#080b20aa 100%);mix-blend-mode:multiply}
#loading{position:fixed;inset:0;z-index:100;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:18px;padding:24px 18px max(22px,env(safe-area-inset-bottom));background:#050a11 url(./assets/og-saiyan-unleashed-v42-20261101.jpg) center/contain no-repeat;transition:opacity .5s;isolation:isolate}
.loading-art{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;pointer-events:none;z-index:-1}
.loading-status{display:flex;align-items:center;gap:14px;padding:13px 20px;background:#07121cf2;border:1px solid #9bdfff45;border-radius:8px;box-shadow:0 6px 40px #0008;max-width:calc(100vw - 36px)}
.loading-status strong,.loading-status small{display:block}.loading-status small{margin-top:5px}
.loading-orbit{width:27px;height:27px;flex:none;border:2px solid #81dcff38;border-top-color:#c3f3ff;border-right-color:#ffa843;border-radius:50%;animation:loading-orbit 1.3s linear infinite}
@keyframes loading-orbit{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.loading-orbit{animation:none}}
#loading strong{font-size:15px;letter-spacing:.05em}#loading small{color:var(--muted);font-size:12px}
.dragonball{width:68px;height:68px;border:1px solid #ffce7d;background:radial-gradient(circle at 32% 25%,#ffdaa0,#f79837 45%,#c75d24);border-radius:50%;display:grid;grid-template-columns:1fr 1fr;align-content:center;gap:0;padding:15px;color:#a83a24;text-align:center;font-size:13px;animation:float 2s ease-in-out infinite}

/* Title screen: the scene is the artwork. Chrome frames its open right side. */
#header{height:104px;padding:0 5%;position:fixed;inset:0 0 auto;display:flex;align-items:center;justify-content:space-between;z-index:11;border-bottom:1px solid #fff1db17}
.brand{display:flex;align-items:center;gap:13px;line-height:.94;font-family:var(--display);font-size:25px;font-weight:800;letter-spacing:1px;white-space:nowrap}
.brand-mark{height:44px;width:39px;display:grid;place-items:center;background:var(--orange);color:#10151a;font-size:42px;font-style:italic;font-weight:900;clip-path:polygon(14% 0,100% 0,86% 100%,0 100%)}
.brand-light{font-weight:500}.brand small{display:block;font-size:8px;font-family:var(--display);font-weight:500;letter-spacing:2.3px;margin-top:9px;color:#a7b1b1}
.top-nav{display:flex;gap:30px;align-items:center;height:100%;font-size:12px;color:#a8b5ba}
.top-nav button{padding:0;height:100%;position:relative}.top-nav .nav-active{color:var(--cream)}
.top-nav .nav-active:after{content:'';height:3px;background:var(--orange);position:absolute;bottom:-1px;left:0;right:0}
.top-actions{display:flex;gap:10px;align-items:center}.live-tag{display:flex;align-items:center;gap:8px;font-family:var(--display);letter-spacing:1.7px;font-size:12px;color:#d2dbd9;margin-right:12px}
.live-tag i,.tiny-dot,.performance-indicator i{width:5px;height:5px;display:inline-block;background:var(--orange);border-radius:50%}
.icon-button{height:42px;width:42px;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--line);border-radius:3px;background:#0b151bc9;transition:background .2s,border-color .2s}
.icon-button:hover{background:#26343b;border-color:#d5e3e861}.icon-button svg{width:18px;height:18px}
.music-button{position:relative}.music-button>i{position:absolute;right:7px;bottom:7px;width:4px;height:4px;border-radius:50%;background:#778994}
.music-button[data-status="playing"]{border-color:#99caaf77}.music-button[data-status="playing"]>i{background:#a8e2bd}
.music-button[data-status="blocked"]>i,.music-button[data-status="error"]>i{background:var(--orange-bright);box-shadow:0 0 8px #ffab5266}
#landing{position:absolute;inset:0;z-index:3;pointer-events:none}
.landing-shade{position:absolute;inset:0;background:linear-gradient(90deg,#090f14ee 0%,#090f14b8 28%,#090f143d 48%,transparent 70%),linear-gradient(0deg,#070d12 0%,#070d12de 10%,transparent 38%)}
.hero-copy{position:absolute;left:7%;top:21%;pointer-events:auto}
.eyebrow{font-family:var(--display);display:flex;align-items:center;gap:11px;font-size:12px;font-weight:600;letter-spacing:2.1px;color:#d3d9d6}
.orange-line{width:31px;height:3px;background:var(--orange)}
h1{font-size:clamp(72px,7.4vw,116px);line-height:1.05;letter-spacing:-.085em;margin:24px 0 25px;font-weight:900;color:var(--cream);text-shadow:0 4px 24px #02070b42}
h1 span{color:var(--orange)}
.hero-description{font-size:14px;line-height:1.85;font-weight:400;color:#b5c1c5;margin:0 0 28px;letter-spacing:-.2px}
.hero-buttons{display:flex;gap:9px}
.button-primary,.button-secondary{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:52px;padding:0 23px;font-size:13px;font-weight:800;border-radius:2px;transition:background .2s,border-color .2s}
.button-primary{background:var(--orange);color:#13191c;box-shadow:inset 0 1px #ffd1a4}
.button-primary:hover{background:#ffab68}.button-primary>svg{width:16px;height:16px;stroke-width:2}
.button-primary>svg:first-child{fill:currentColor;stroke-width:1}.button-primary .button-arrow{margin-left:20px;fill:none!important}
.button-secondary{border:1px solid #dfe7df66;background:#0b141be0;color:var(--cream)}.button-secondary:hover{border-color:var(--orange);background:#253039}
.button-secondary svg{width:18px;height:18px;color:var(--orange-bright)}
.hero-note{font-size:10px;display:flex;align-items:center;gap:8px;color:#93a4ab;margin-top:17px}.hero-note .tiny-dot{width:4px;height:4px;background:#a7c1c5}.note-divider{color:#55656b;margin:0 2px}
.hero-character-label{position:absolute;right:13%;top:64%;display:flex;align-items:center;gap:12px}
.label-line{width:58px;height:1px;background:linear-gradient(90deg,transparent,#e9f3e487)}
.hero-character-label small{font-family:var(--display);font-size:12px;letter-spacing:3px;color:#e1e8de}
.hero-character-label strong{display:block;margin-top:4px;font-size:18px}.hero-character-label strong span{font-family:var(--display);font-weight:600;font-size:10px;letter-spacing:1px;padding:3px 6px;border:1px solid #d4e5e545;color:#c7d8da;margin-left:8px}
.hero-power{position:absolute;right:5%;top:21%;text-align:right;border-right:2px solid var(--orange);padding-right:13px}
.hero-power small{font-family:var(--display);font-size:11px;letter-spacing:2.5px;color:#c0cbc8}
.hero-power strong{display:block;font-family:var(--display);font-size:48px;line-height:1.1;margin-top:5px;letter-spacing:1px;font-weight:600}
.hero-power>span{font-family:var(--display);font-size:9px;letter-spacing:1.1px;display:block;margin-top:6px;color:#9bbfb1}
.hero-power i{display:inline-block;width:4px;height:4px;background:#a5e4c0;margin-right:5px}
.world-selector{position:absolute;bottom:73px;left:7%;right:7%;pointer-events:auto}
.section-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}
.section-title>span:first-child{font-family:var(--display);font-size:11px;letter-spacing:2.5px;color:#c7d0ce}
.section-title>span:last-child{font-size:10px;color:#96a7ae;display:flex;gap:7px;align-items:center}.section-title svg{width:11px;height:11px}
.world-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.world-card{height:110px;padding:0;text-align:left;border:1px solid #d3e4e62b;background:#0e1c25;position:relative;overflow:hidden;border-radius:2px;transition:border-color .2s,background .2s}
.world-card:hover{border-color:#f9d7a585}.world-card.selected{border-color:var(--orange);box-shadow:inset 0 -3px var(--orange)}
.world-art{position:absolute;inset:0;overflow:hidden;opacity:.72;transition:opacity .2s}.world-card:hover .world-art,.world-card.selected .world-art{opacity:1}
.world-art>svg{height:100%;width:100%;display:block;stroke:none;fill:none;object-fit:cover}
.world-card .world-art:after{content:'';position:absolute;inset:0;background:linear-gradient(0deg,#071219eb,transparent 110%)}
.world-card-content{position:absolute;inset:auto 14px 15px;display:flex;align-items:center;gap:9px}
.world-number{font-family:var(--display);font-size:11px;color:#c4d2d4;align-self:flex-start;margin-top:2px}
.world-card-content strong{font-size:13px;font-weight:700;text-shadow:0 2px 8px #061015}
.world-card-content small{display:block;font-family:var(--display);font-weight:500;font-size:10px;letter-spacing:1.6px;color:#a9bec5;margin-top:4px}
.world-dot{margin-left:auto;width:7px;height:7px;border:1px solid #dbe7db8a;transform:rotate(45deg)}.selected .world-dot{border-color:var(--orange);background:var(--orange)}
.landing-footer{position:absolute;bottom:22px;left:7%;right:7%;display:flex;justify-content:space-between;align-items:center;font-size:10px;color:#82959d}
.landing-links{display:flex;gap:22px;align-items:center}
.landing-footer button{min-height:44px;font-size:11px;color:#ccd9dc;padding:0}.landing-footer button span{margin-left:10px;color:var(--orange)}
.landing-footer>span:last-child{font-family:var(--display);letter-spacing:1.5px;font-size:9px}

/* Combat HUD: open center, measured edges, persistent controls. */
body.playing #header{height:0;border:0;pointer-events:none}
body.playing #header .brand,body.playing #header .top-nav,body.playing #header .live-tag{display:none}
body.playing #header .top-actions{position:absolute;right:84px;top:24px;pointer-events:auto}
body.playing #header #settings-open{display:none}
#hud{position:absolute;inset:0;pointer-events:none;z-index:5;touch-action:none}
#hud button{pointer-events:auto}
.player-hud{position:absolute;left:var(--edge);top:24px;display:flex;gap:12px;align-items:center;filter:drop-shadow(0 2px 4px #0008)}
.player-emblem{width:46px;height:46px;background:var(--orange);border:3px solid #111e25;outline:1px solid #f6d4a877;border-radius:50%;color:#111b20;display:grid;place-items:center;font-size:26px;font-weight:900}
.player-info{width:205px}.player-name{font-weight:800;font-size:15px;display:flex;align-items:center;gap:10px}
.player-name>span{font-size:9px;font-weight:500;border:1px solid #c4e0e14d;padding:2px 6px;color:#d5e2e7}
.ki-track{height:6px;background:#07141acc;transform:skew(-14deg);margin:7px 0 5px;border:1px solid #b1ecff55}
.ki-track>div{height:100%;background:linear-gradient(90deg,#409dc1,#b4f7ff);width:100%;transition:width .12s}
.player-stats{display:flex;justify-content:space-between;align-items:center;font-family:var(--display);font-size:11px;letter-spacing:.6px;color:#c4d2d9}
.player-stats b{color:#e6faff;font-weight:600}.player-stats small{color:#9cb1bb;font-size:9px}.player-stats>span:last-child{font-family:var(--font);font-size:9px;letter-spacing:0}
#power-readout{position:absolute;left:90px;top:85px;width:205px;color:#bce9dc;text-shadow:0 2px 6px #071c26;pointer-events:none}
#power-readout>div:first-child{display:flex;align-items:center;gap:7px}
#power-readout span{font-family:var(--display);font-size:9px;letter-spacing:2px}
#power-readout>div>i:not(#scouter-bar){width:4px;height:4px;background:currentColor}
#power-readout>strong{font-family:var(--display);font-variant-numeric:tabular-nums;display:block;font-size:32px;font-weight:600;line-height:1.05;letter-spacing:1px;margin-top:3px}
.scouter-track{height:2px;background:#bce9dc29;margin-top:7px;overflow:hidden}.scouter-track>i{display:block;height:100%;width:0;background:currentColor;transition:width .08s linear}
#power-readout.surging{color:#e2fbff}
.battle-top{position:absolute;top:24px;left:50%;transform:translateX(-50%);text-align:center}
.battle-top>button{height:42px;font-size:11px;display:flex;gap:10px;align-items:center;background:#09141ce0;border:1px solid #e6f9ff33;border-radius:3px;padding:0 16px}
.battle-top .tiny-dot{background:#9bd7bd}.chevron{color:#99b4c2;font-size:14px;margin-left:6px}
#challenge-timer{margin-top:10px;display:flex;gap:7px;align-items:center;justify-content:center;font-family:var(--display);font-size:29px;color:#ffd28e;letter-spacing:2px}
#challenge-timer svg{width:17px;height:17px}
.battle-actions{position:absolute;right:var(--edge);top:24px;display:flex;gap:62px;align-items:center}
.mini-button{display:inline-flex;gap:7px;align-items:center;min-height:42px;padding:0 11px;border:1px solid var(--line);background:#0b1820e0;font-size:11px;border-radius:3px}
.mini-button svg{width:16px;height:16px}.mini-button kbd{margin-left:5px}
.mission{position:absolute;left:var(--edge);top:170px;display:flex;flex-direction:column;gap:7px;text-shadow:0 2px 7px #06121a}
.mission>small{font-family:var(--display);font-size:10px;letter-spacing:2.5px;color:#ffe2b0}.mission>strong{font-size:12px;font-weight:600}.mission>span{font-size:10px;color:#b8cbd2}
.destruction{position:absolute;right:var(--edge);top:96px;text-align:right;text-shadow:0 2px 7px #06121a}
.destruction>small{font-family:var(--display);font-size:10px;letter-spacing:2.5px;color:#adc1ca}
.destruction>strong{font-family:var(--display);font-size:40px;font-weight:600;display:block;line-height:1.2}.destruction>span{color:#b6cbd2;font-size:10px}.destruction b{font-weight:500;color:#fff0d4}.destruction i{font-style:normal;color:#8fa4ad;margin:0 5px}
#reticle{position:absolute;left:var(--aim-x,50%);top:var(--aim-y,50%);width:26px;height:26px;transform:translate(-50%,-50%);filter:drop-shadow(0 0 3px #052f57);opacity:.85;transition:width .2s,height .2s,color .2s;color:#e2f6ff}
#reticle i{position:absolute;width:6px;height:6px;border-color:currentColor;border-style:solid;border-width:0}
#reticle i:nth-child(1){left:0;top:0;border-width:1px 0 0 1px}#reticle i:nth-child(2){right:0;top:0;border-width:1px 1px 0 0}#reticle i:nth-child(3){left:0;bottom:0;border-width:0 0 1px 1px}#reticle i:nth-child(4){right:0;bottom:0;border-width:0 1px 1px 0}
#reticle b{position:absolute;left:calc(50% - 1px);top:calc(50% - 1px);width:2px;height:2px;background:currentColor}
#reticle.targeted{color:#ffbd70;width:34px;height:34px}
#target-label{position:absolute;left:var(--aim-x,50%);top:calc(var(--aim-y,50%) + 26px);transform:translateX(-50%);font-size:10px;letter-spacing:.5px;color:#ffcf8d;text-shadow:0 1px 4px #000}
#target-health{position:absolute;left:var(--aim-x,50%);top:calc(var(--aim-y,50%) + 47px);width:72px;height:3px;transform:translateX(-50%);background:#061017c9;opacity:0;transition:opacity .15s}
#target-health.visible{opacity:1}#target-health-fill{display:block;height:100%;width:100%;background:#ffb565;transition:width .15s}
#hit-marker{position:absolute;left:var(--aim-x,50%);top:var(--aim-y,50%);transform:translate(-50%,-50%);color:#ffc770;font-family:var(--display);font-size:47px;opacity:0;text-shadow:0 0 20px #ffbb45}
#reticle.locked{width:38px;height:38px;color:#9df0df;opacity:1}
#target-lock{position:absolute;left:min(calc(var(--aim-x,50%) + 30px),calc(100% - 54px));top:calc(var(--aim-y,50%) - 22px);width:44px;height:44px;padding:4px 5px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:2px;border:1px solid #b1d7e12b;border-radius:5px;background:#071b2785;color:#c5dce3;opacity:.8;touch-action:none}
#target-lock svg{width:17px;height:17px;stroke-width:1.5}#target-lock small{font-family:var(--display);font-size:7px;letter-spacing:1px}
#target-lock:hover,#target-lock:focus-visible,#target-lock.active{color:#a8ffe7;border-color:#a8ffe780;background:#143c3caa;opacity:1}
#damage-feedback{position:absolute;inset:0;pointer-events:none;overflow:hidden}
.damage-label{position:absolute;display:none;transform:translate(-50%,-100%);text-align:center;white-space:nowrap;filter:drop-shadow(0 2px 3px #071019);pointer-events:none}
.damage-label.visible{display:block}.damage-label strong{font-family:var(--display);font-variant-numeric:tabular-nums;font-size:25px;font-weight:700;line-height:1;color:#f4fcff;text-shadow:0 0 9px #b4efff55}
.damage-label small{display:block;font-size:9px;font-weight:700;letter-spacing:1.5px;color:#b0e9f4;margin-top:4px}.damage-label.destructive strong{color:#ffe5a7}.damage-label.destructive small{color:#ffbf74}
@media(pointer:coarse){.damage-label strong{font-size:21px}.damage-label small{font-size:8px}}
#charge-ui{position:absolute;left:50%;top:62%;transform:translateX(-50%);width:190px;text-align:center;text-shadow:0 2px 6px #000}
#charge-ui>span{font-size:11px;letter-spacing:.5px;color:#d1efff}
#charge-ui>div{height:4px;background:#082b46cc;border:1px solid #9bcbdf55;margin:10px 0 6px}
#charge-ui i{display:block;width:0;height:100%;background:#94efff;box-shadow:0 0 12px #44daff}
#charge-ui strong{font-family:var(--display);font-size:25px;letter-spacing:1px}#charge-ui small{display:block;color:#b4c6cc;font-size:10px;margin-top:4px}
#charge-ui{--charge-tint:#94efff;max-width:calc(100vw - 32px);pointer-events:none}
#charge-ui>div{overflow:hidden;position:relative}#charge-ui i{background:linear-gradient(90deg,var(--charge-tint),var(--charge-core,var(--charge-tint)));box-shadow:0 0 12px var(--charge-tint);transition:width .08s linear,background .3s linear}
#charge-ui[data-tier="1"]{--charge-tint:#91f4ff}#charge-ui[data-tier="2"]{--charge-tint:#ffe18b}#charge-ui[data-tier="3"]{--charge-tint:#ffb66f}#charge-ui[data-tier="4"]{--charge-tint:#fff2cb}
#charge-ui:not([data-tier="0"])>div::after{content:"";position:absolute;inset:0;transform:translateX(-100%);background:linear-gradient(90deg,transparent,#fff,transparent);animation:energy-flow 1.1s linear infinite}
#charge-ui:not([data-tier="0"]) strong{color:var(--charge-tint);text-shadow:0 0 18px color-mix(in srgb,var(--charge-tint),transparent 55%)}
#charge-ui #charge-stats{color:var(--charge-tint);font-variant-numeric:tabular-nums;white-space:nowrap;letter-spacing:-.15px;margin-top:3px}
#charge-hint{line-height:1.45;min-height:2.9em;word-break:keep-all}
@keyframes energy-flow{to{transform:translateX(100%)}}
@media(prefers-reduced-motion:reduce){#charge-ui>div::after{animation:none!important}}
#attack-title{position:absolute;top:25%;left:50%;transform:translate(-50%,10px) skew(-7deg);text-align:center;opacity:0;transition:opacity .15s,transform .2s;width:max-content;max-width:calc(100vw - 32px);white-space:normal;word-break:keep-all;filter:drop-shadow(0 2px 3px #06284c);pointer-events:none}
#attack-title small{display:block;color:#aceaff;font-family:var(--display);font-size:13px;font-weight:700;letter-spacing:4px}
#attack-title strong{display:block;color:#fff;font-size:44px;font-weight:900;font-style:italic;letter-spacing:-2px;text-shadow:2px 3px 0 #1b536f}
#attack-title.show{opacity:1;transform:translate(-50%,0) skew(-7deg)}
#combo{position:absolute;right:var(--edge);top:42%;display:flex;align-items:baseline;gap:8px;opacity:0;transform:translateX(20px);transition:opacity .2s,transform .2s}
#combo.show{opacity:1;transform:translateX(0)}#combo strong{font-family:var(--display);font-weight:800;font-style:italic;font-size:46px;color:#ffc866}#combo span{font-family:var(--display);font-size:13px;letter-spacing:2px;color:#ffdca4}
#combo[data-kind="destruction"] strong{transform:scale(var(--smash-scale,1));transform-origin:right center;color:#ffe1a1;text-shadow:0 2px 0 #3a1f10,0 0 22px #ff9a4144}
#combo[data-kind="destruction"] span{font-family:inherit;font-weight:800;font-size:12px;letter-spacing:.04em;color:#fff0d5}
.bottom-hud{position:absolute;bottom:22px;left:50%;transform:translateX(-50%)}
.skill-bar{display:flex;gap:7px;justify-content:center}
.skill{width:94px;height:84px;border:1px solid #c8e6f244;background:#091720ec;border-radius:3px;display:flex;flex-direction:column;justify-content:center;align-items:center;position:relative;padding:8px 4px;transition:background .2s,border-color .2s}
.skill:hover{background:#253d4c;border-color:#e4f5ff80}.skill.selected{border-color:#9be8f6;background:#173440eb;box-shadow:inset 0 -3px #9be8f6}
.skill>svg{width:27px;height:27px;color:#a7c9d7;stroke-width:1.7;margin-bottom:7px}.skill.selected>svg{color:#ddfaff}
.skill>span{font-size:10px;font-weight:600;white-space:nowrap}.skill small{font-family:var(--display);font-size:8px;letter-spacing:.7px;display:block;font-weight:500;margin-top:4px;color:#9bb4bf}
.skill>kbd{position:absolute;top:6px;left:6px;min-width:12px;height:13px;padding:0;border:0;font-size:10px;color:#a1b5bf;background:transparent}
.skill.transform{border-color:#ffcd6866}.skill.transform>svg{color:#ffcb73}.skill.transform small{color:#cfb17d}
.skill.transform.active{background:#503b21e8;border-color:#ffdc7b;box-shadow:inset 0 -3px #ffdb77}
.desktop-help{display:flex;justify-content:center;align-items:center;gap:13px;white-space:nowrap;margin-top:13px;color:#b0c3cc;font-size:9px;text-shadow:0 1px 3px #000}
.desktop-help>span{display:flex;gap:3px;align-items:center}.desktop-help>button{font-size:9px;color:#c6d1d6;padding:0}.desktop-help>button>span{border:1px solid #c6d1d655;border-radius:50%;display:inline-grid;place-items:center;width:15px;height:15px;margin-left:3px}
.quick-actions{position:absolute;right:var(--edge);bottom:30px;display:flex;gap:7px;align-items:flex-end}
.quick-actions>button{display:flex;align-items:center;gap:7px;min-height:42px;padding:0 11px;border:1px solid #b5d1df44;background:#0b1a23e8;border-radius:3px;font-size:10px;color:#d0e0e5}
.quick-actions svg{width:15px;height:15px}.quick-actions>button.active{border-color:#91d6ed;color:#b4edff}
.power-actions{position:absolute;left:var(--edge);bottom:30px;display:flex;gap:7px;pointer-events:auto}
.power-actions button{display:flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:0 12px;border:1px solid #a7dfeb66;border-radius:3px;background:#0c1e28ed;touch-action:none;font-size:11px}
.power-actions button>svg{width:19px;height:19px;color:#c5efff}.power-actions span{display:flex;align-items:center;gap:6px;white-space:nowrap}.power-actions small{font-family:var(--display);font-size:9px;letter-spacing:.5px;color:#a6c8d5}
.power-actions #kaioken-button{border-color:#f3937066}.power-actions #kaioken-button svg{color:#ffab91}
.power-actions #power-button.is-held{background:#24596df0;border-color:#d7faff;box-shadow:inset 0 -3px #c5f4ff}
.power-actions #power-button[data-latched="true"]{background:#214354f0;border-color:#9de4f5;box-shadow:inset 0 -3px #83d8eb}
#viewport:focus{outline:none}
#viewport:focus-visible{outline:2px solid #a7dce8;outline-offset:-3px}
@media(pointer:coarse){.setting-row.desktop-setting{display:none}.power-actions #power-button small{max-width:76px;overflow:hidden;text-overflow:ellipsis}}
.power-actions #kaioken-button.active{background:#732c27ed;border-color:#ff9f78;box-shadow:inset 0 -3px #ffae83}
.power-actions button>*{pointer-events:none}
#touch-controls{display:none}.performance-indicator{position:absolute;left:var(--edge);bottom:87px;display:flex;gap:5px;align-items:center;font-family:var(--display);font-size:9px;color:#99b3bf;letter-spacing:1px}.performance-indicator i{width:3px;height:3px;background:#9bc8ac}
#toast{position:fixed;bottom:164px;left:50%;transform:translate(-50%,8px);max-width:90vw;width:max-content;padding:11px 18px;color:#e4f2f1;background:#0b1b24f2;border:1px solid #aacdd74d;border-left:3px solid var(--orange);border-radius:2px;font-size:11px;opacity:0;transition:opacity .2s,transform .2s;pointer-events:none;z-index:40;text-align:center}
#toast.show{opacity:1;transform:translate(-50%,0)}

/* Field menu and guide use the same sharp, quiet visual language. */
#modal-backdrop,#result-overlay{position:fixed;inset:0;z-index:50;display:flex;align-items:center;justify-content:center;padding:24px;background:#03090edb}
.modal{width:760px;max-width:100%;max-height:88dvh;overflow-y:auto;overscroll-behavior:contain;background:#101c24;border:1px solid #afcbd944;border-top:3px solid var(--orange);border-radius:3px;padding:30px 34px;box-shadow:0 24px 90px #0007;scrollbar-width:thin;scrollbar-color:#5b7889 #101c24}
.modal-heading{display:flex;justify-content:space-between;align-items:center;gap:20px}.modal-heading small{font-family:var(--display);font-size:11px;letter-spacing:2.8px;color:var(--orange-bright)}.modal-heading h2{font-size:27px;letter-spacing:-1px;margin:9px 0 0;font-weight:800}.modal-heading .icon-button{flex-shrink:0}
.modal-tabs{display:flex;gap:26px;margin:27px 0 22px;border-bottom:1px solid #c8dbe624}.modal-tabs>button{position:relative;min-height:43px;padding:0 0 12px;font-size:12px;color:#9eb4c0;white-space:nowrap}.modal-tabs>button.active{color:var(--cream)}.modal-tabs>button.active:after{content:'';position:absolute;bottom:-1px;left:0;right:0;height:2px;background:var(--orange)}
.modal-panel>p{font-size:12px;line-height:1.9;color:#adbfca;margin:0 0 20px}.menu-worlds{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}
.menu-worlds>button{display:flex;flex-direction:column;align-items:flex-start;gap:12px;min-height:128px;text-align:left;padding:18px 13px;background:#142631;border:1px solid #bbd6e529;border-radius:2px}.menu-worlds>button:hover{background:#203a47}.menu-worlds>button.selected{border-color:var(--orange);background:#29322f}.menu-worlds svg{width:28px;height:28px;color:#9fcedb}.menu-worlds>button.selected svg{color:var(--orange-bright)}.menu-worlds strong{font-size:12px}.menu-worlds small{font-size:9px;line-height:1.6;color:#a0b6c3}
.challenge-card{margin-top:22px;padding:21px 18px;border:1px solid #eab7763d;border-left:2px solid var(--orange);background:#f4a15107;display:flex;align-items:center;justify-content:space-between;gap:18px}.challenge-card>div{display:flex;flex-direction:column;gap:8px}.challenge-card small{font-family:var(--display);font-size:10px;letter-spacing:2px;color:var(--orange-bright)}.challenge-card strong{font-size:17px}.challenge-card span{font-size:11px;line-height:1.6;color:#9fb4c1}.challenge-card button{min-height:44px;padding:0 16px;font-size:11px;flex-shrink:0}
.menu-bottom{margin-top:25px;display:flex;align-items:center;gap:22px}.text-button{min-height:44px;padding:0;font-size:11px;color:#b5c7d2}
.controls-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 25px}.controls-grid>div{padding:13px 0;border-bottom:1px solid #abc6d417;display:flex;align-items:center;justify-content:space-between;gap:15px}.controls-grid kbd{font-size:11px;padding:5px 7px;background:#182d3b}.controls-grid span{font-size:10px;color:#b0c4cf;line-height:1.65;text-align:right}
.guide-note{margin-top:23px;padding:17px 19px;background:#182b36;border-left:2px solid #7bbacf}.guide-note strong{font-size:12px;color:#d3eaf1}.guide-note p{font-size:11px;line-height:1.95;color:#acc1cd;margin:8px 0 0}
.setting-row{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:18px 0;border-bottom:1px solid #a8bcc51c}.setting-row strong{font-size:13px;display:block}.setting-row small{display:block;font-size:11px;line-height:1.6;color:#9db3c0;margin-top:6px}
.switch{position:relative;width:44px;height:40px;flex-shrink:0;border-radius:20px;background:none;padding:10px 4px}.switch:before{content:"";position:absolute;inset:7px 0;border-radius:20px;background:#3c515e;transition:background .2s}.switch>span{position:relative;display:block;width:20px;height:20px;border-radius:50%;background:#dce2e4;transition:transform .2s}.switch.on:before{background:#d77d43}.switch.on>span{transform:translateX(16px);background:#fff1dc}
.setting-row select{border:1px solid #8ca5b75c;background:#152733;color:#e4edf2;border-radius:3px;padding:10px;font-size:12px;min-height:42px}.setting-row input{width:120px;min-height:40px;accent-color:var(--orange)}
.music-card{padding:0 14px 14px;margin:12px 0;border:1px solid #edaa6533;border-radius:4px;background:#15222bb3;scroll-margin-top:16px}
.music-card .setting-row{gap:12px}.music-card .setting-row>div{min-width:0;flex:1}.music-card .setting-row input{width:96px;flex:0 0 96px}.music-volume-row{border-bottom:0;padding-top:12px}.music-card output{color:#ffd09b;font-family:var(--display);font-variant-numeric:tabular-nums;margin-left:6px}
.music-caption{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:10px;color:#aebfca;margin:3px 0 10px}.music-caption a{color:#edcda7;white-space:nowrap;text-decoration:underline;text-underline-offset:3px}
#music-player{display:block;border:0;width:100%;min-width:200px;height:270px;border-radius:3px;background:#070e16;color-scheme:dark}
.music-track-label{display:flex;flex-direction:column;gap:8px;margin:8px 0 12px;font-size:11px;color:#b7c9d6}
#music-track{width:100%;min-height:44px;padding:10px;border:1px solid #aac6d63b;border-radius:3px;background:#0c1925;color:#f2f7fa;font:inherit;font-size:12px}
#music-status{font-size:11px;line-height:1.7;color:#b6c8d3;margin:10px 0 0;overflow-wrap:anywhere}#music-retry{margin-top:10px}
.about-emblem{width:64px;height:64px;border:3px solid #17252c;outline:1px solid #ff9c5c;border-radius:50%;margin:28px auto 22px;background:var(--orange);color:#1b2024;font-size:37px;display:grid;place-items:center;font-weight:900}.modal-panel h3{text-align:center;font-size:23px;letter-spacing:-1px}.modal-panel .muted{color:#91a7b6;font-size:10px}.modal-panel details{font-size:11px;color:#a3bac7;margin-top:20px;line-height:1.9}.modal-panel summary{cursor:pointer;color:#c3d2d9;min-height:32px}.modal-panel details a{color:#bbdbed;text-decoration:underline}
.result-card{text-align:center;width:480px;max-width:100%;padding:40px 30px;background:#101e27;border:1px solid #adc9d944;border-top:3px solid var(--orange);border-radius:3px;box-shadow:0 20px 80px #0008}.result-card .eyebrow{justify-content:center;color:#ffc17b}.result-card h2{font-size:32px;letter-spacing:-1.5px;margin:18px 0 30px}.result-card>small{font-family:var(--display);font-size:11px;letter-spacing:3px;color:#a3bac7}.result-card>strong{display:block;font-family:var(--display);font-size:88px;font-weight:600;color:#ffb864;line-height:1.2}.result-card p{color:#adc4d0;font-size:12px;line-height:1.9;white-space:pre-line}.result-card>div{display:flex;justify-content:center;gap:8px;margin-top:30px}.result-card button{padding:0 16px;font-size:12px;min-height:46px}
/* Hidden cinematic controls must not intercept clicks or keyboard focus. */
body.cinematic #hud,body.cinematic #header{opacity:0;visibility:hidden;pointer-events:none}
body.cinematic #hud *,body.cinematic #header *{visibility:hidden!important;pointer-events:none!important}
body.super .player-emblem{background:#ffdf74}body.super .ki-track>div{background:linear-gradient(90deg,#d9aa3e,#fff2ae)}body.super #form-badge{color:#ffe088;border-color:#ffdf7377}body.super #power-readout{color:#ffe19c}
body.kaioken .player-emblem{background:#ff775b}body.kaioken .ki-track>div{background:linear-gradient(90deg,#e56546,#ffd6a6)}body.kaioken #form-badge{color:#ffab8c;border-color:#ff9d6f77}body.kaioken #power-readout{color:#ff9b81}
body.overdrive .player-emblem{background:linear-gradient(135deg,#fff0a1 20%,#ffd05e 58%,#ff477c)}body.overdrive .ki-track>div{background:linear-gradient(90deg,#f23263,#ffb749 48%,#fff4ad)}body.overdrive #form-badge{color:#ffe6a1;border-color:#ff6e9188;background:linear-gradient(110deg,#ffb32116,#f32c5928)}body.overdrive #power-readout{color:#ffe6a1}body.overdrive #scouter-status{font-size:8px;letter-spacing:.6px}body.overdrive #power-value{font-size:8px;letter-spacing:.25px}
body.powering #charge-ui{color:#ccefff}body.kaioken #charge-ui{color:#ffc9b5}body.super.powering #charge-ui{color:#ffe6ae}
@keyframes float{0%,100%{transform:translateY(0)}50%{transform:translateY(-6px)}}

@media(max-width:1150px){
  .top-nav{gap:21px}.top-nav button{font-size:11px}.live-tag{display:none}
  .brand{font-size:23px}.hero-copy{left:6%;top:20%}.hero-description{font-size:13px}
  .hero-power{right:4%;top:20%}.hero-character-label{right:8%}
  .world-selector,.landing-footer{left:6%;right:6%}.world-card{height:98px}
  .quick-actions>button{padding:0 9px}.quick-actions kbd{display:none}
  .power-actions kbd{display:none}.power-actions button{padding:0 10px}
  .skill{width:82px}.desktop-help{gap:8px;font-size:8px}.desktop-help kbd{font-size:9px}.performance-indicator{display:none}
}
/* Keep side actions above the five-skill bar on compact PC windows. */
@media(min-width:701px) and (max-width:1400px) and (pointer:fine){
  .quick-actions,.power-actions{bottom:136px}
}
@media(min-width:701px) and (max-width:1000px) and (pointer:fine){
  .quick-actions{flex-direction:column;align-items:flex-end}
}
@media(min-width:701px) and (max-height:760px){
  #header{height:80px}.hero-copy{top:19%}h1{font-size:78px;margin:18px 0}.hero-description{font-size:12px;margin-bottom:20px}
  .hero-note{font-size:9px;margin-top:12px}.hero-buttons button{min-height:48px}.world-card{height:84px}.world-selector{bottom:62px}
  .hero-character-label{top:62%}.hero-power{top:20%}.landing-footer{bottom:17px}
}

/* Both touch and narrow screens get the same two thumb zones. */
@media(pointer:coarse),(max-width:700px){
  :root{--edge:16px}
  #touch-controls{display:block}.desktop-help,.performance-indicator{display:none}
  #touch-controls button,#joystick{pointer-events:auto}
  .bottom-hud{bottom:calc(16px + var(--safe-bottom));width:calc(100% - 24px);max-width:560px}
  .skill-bar{gap:5px}.skill{flex:1;width:auto;min-width:0;height:68px;padding:6px 2px}
  .skill>kbd{display:none}.skill>svg{width:24px;height:24px;margin-bottom:6px}.skill>span{font-size:10px}.skill small{font-size:7px;letter-spacing:.35px;margin-top:3px}
  .power-actions{left:16px;bottom:calc(258px + var(--safe-bottom));gap:6px}
  .power-actions button{height:42px;min-height:42px;padding:0 9px;gap:6px;font-size:10px}
  .power-actions button>svg{width:17px;height:17px}.power-actions span{gap:5px}.power-actions small{font-size:8px}.power-actions kbd{display:none}
  .quick-actions{right:16px;bottom:calc(248px + var(--safe-bottom));gap:5px}
  .quick-actions>button{width:40px;height:40px;min-height:40px;padding:0;justify-content:center}.quick-actions>button>span,.quick-actions kbd{display:none}.quick-actions svg{width:19px;height:19px}
  #joystick{position:absolute;bottom:calc(146px + var(--safe-bottom));left:24px;width:104px;height:104px;border:1px solid #d4f3ff66;border-radius:50%;background:#0a1d2ae0;touch-action:none;display:grid;place-items:center;box-shadow:inset 0 0 0 10px #adc7d309}
  #joystick:before,#joystick:after{content:'';position:absolute;background:#c4e4ec17;pointer-events:none}#joystick:before{width:1px;height:82%}#joystick:after{height:1px;width:82%}
  #joystick-stick{width:42px;height:42px;border-radius:50%;border:1px solid #e3f5ff99;background:#5a7a8d;pointer-events:none;z-index:1}
  #joystick small{position:absolute;bottom:9px;font-family:var(--display);font-size:8px;letter-spacing:1.7px;color:#bdd2dfb0;pointer-events:none}
  .touch-flight{position:absolute;left:140px;bottom:calc(150px + var(--safe-bottom));display:flex;flex-direction:column;gap:8px;pointer-events:auto}
  .touch-flight button{width:40px;height:40px;border-radius:3px;border:1px solid #d7f1ff55;background:#0e2636ed;font-size:22px;color:#d4f1ff;touch-action:none}
  #fire-button{position:absolute;right:24px;bottom:calc(138px + var(--safe-bottom));width:90px;height:90px;background:#143b4dee;border-radius:50%;border:1px solid #b0e8ffb3;box-shadow:0 0 0 5px #8cc7dc16;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;touch-action:none}
  #fire-button>svg{width:31px;height:31px;color:#dcf7ff}#fire-button>span{font-size:10px;color:#d0f0fc;font-weight:600}
  .touch-look-hint{position:absolute;bottom:calc(107px + var(--safe-bottom));right:23px;color:#b5ced998;font-size:9px;pointer-events:none}
  .battle-actions kbd{display:none}
  #toast{bottom:calc(320px + var(--safe-bottom));font-size:11px;padding:10px 14px}
}
@media(max-width:700px){
  #header{height:82px;padding:0 22px}.brand{font-size:22px;gap:10px;letter-spacing:.5px}.brand-mark{width:30px;height:36px;font-size:34px}.brand small{font-size:7px;letter-spacing:1.6px;margin-top:7px}
  .top-nav,.live-tag{display:none}.top-actions{gap:6px}#header .icon-button{width:36px;height:40px}.icon-button svg{width:17px;height:17px}
  .hero-copy{left:24px;top:15%;max-width:calc(100% - 48px)}
  .eyebrow{font-size:10px;letter-spacing:1.3px;gap:8px}.orange-line{width:22px;height:2px}
  h1{font-size:64px;line-height:1.06;margin:19px 0 20px;letter-spacing:-.08em}
  .hero-description{font-size:12px;line-height:1.8;margin-bottom:21px;color:#c0c9cb}
  .hero-buttons{gap:7px}.hero-buttons .button-primary{padding:0 15px;min-height:48px;font-size:12px;gap:8px}.hero-buttons .button-secondary{padding:0 12px;min-height:48px;font-size:11px;gap:6px}
  .hero-buttons .button-arrow{width:13px;margin-left:7px}.hero-buttons .button-secondary svg{width:15px}
  .hero-note{font-size:9px;gap:6px;margin-top:13px}
  .landing-shade{background:linear-gradient(90deg,#070e14cf 0,#070e1480 40%,transparent 88%),linear-gradient(0deg,#070e14 0,#070e14e3 16%,transparent 43%)}
  .hero-power{display:none}.hero-character-label{top:59%;right:22px;gap:7px}.label-line{width:25px}.hero-character-label small{font-size:10px;letter-spacing:2px}.hero-character-label strong{font-size:13px}.hero-character-label strong span{font-size:8px;margin-left:5px;padding:2px 4px}
  .world-selector{left:22px;right:22px;bottom:64px}.section-title{margin-bottom:10px}.section-title>span:first-child{font-size:10px;letter-spacing:1.7px}.section-title>span:last-child{display:none}
  .world-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.world-card{height:66px}.world-card-content{inset:auto 10px 11px;gap:7px}.world-number{font-size:10px}.world-card-content strong{font-size:11px}.world-card-content small{font-size:8px;letter-spacing:1px;margin-top:3px}.world-dot{width:5px;height:5px}.world-art>svg{width:100%;height:100%}
  .landing-footer{left:22px;right:22px;bottom:17px}.landing-footer>span:first-child{display:none}.landing-footer button{font-size:10px;min-height:32px}.landing-footer>span:last-child{font-size:8px;letter-spacing:.7px;max-width:145px;text-align:right;line-height:1.5}
  .player-hud{top:16px;left:16px;gap:9px}.player-emblem{width:35px;height:35px;font-size:22px;border-width:2px}.player-info{width:148px}.player-name{font-size:13px;gap:7px}.player-name>span{font-size:8px;padding:2px 4px}.ki-track{height:5px;margin:6px 0 4px}.player-stats{font-size:10px}.player-stats small{font-size:8px}.player-stats>span:last-child{display:none}
  #power-readout{left:16px;top:79px;width:155px}#power-readout span{font-size:8px;letter-spacing:1.5px}#power-readout>strong{font-size:29px}.scouter-track{margin-top:5px}
  .battle-actions{right:16px;top:16px;width:88px;height:88px;display:block}.battle-actions #pause-button{position:absolute;right:0;top:0;width:40px;height:40px}.battle-actions #camera-toggle{position:absolute;right:0;top:48px;width:88px;height:40px;min-height:40px;justify-content:center;gap:7px;padding:0 6px;font-size:10px}
  body.playing #header .top-actions{right:64px;top:16px}body.playing #header .icon-button{width:40px;height:40px}
  .battle-top{top:112px;left:auto;right:16px;transform:none}.battle-top>button{height:40px;max-width:165px;padding:0 10px;gap:7px;font-size:10px}.battle-top .tiny-dot{width:4px;height:4px}.chevron{font-size:12px;margin-left:3px}
  #challenge-timer{position:absolute;right:0;top:41px;white-space:nowrap;margin:0;font-size:22px;gap:5px}#challenge-timer svg{width:13px;height:13px}
  .mission{display:none}.destruction{top:148px;left:16px;right:auto;display:flex;align-items:baseline;gap:7px}.destruction>small{font-size:8px;letter-spacing:1.5px}.destruction>strong{font-size:24px}.destruction>span{display:none}
  #attack-title{top:28%}#attack-title strong{font-size:32px}#attack-title small{font-size:10px;letter-spacing:2.8px}
  #charge-ui{top:56%;width:162px}#charge-ui>span{font-size:10px}#charge-ui>div{margin:8px 0 4px}#charge-ui strong{font-size:24px}#charge-ui small{font-size:9px}
  #combo{right:16px;top:37%;gap:5px}#combo strong{font-size:35px}#combo span{font-size:10px;letter-spacing:1px}
  #target-label{font-size:9px;white-space:nowrap}
  .modal{padding:23px 19px;max-height:91dvh}.modal-heading small{font-size:10px;letter-spacing:2px}.modal-heading h2{font-size:23px}.modal-heading .icon-button{width:40px;height:40px}
  #modal-backdrop,#result-overlay{padding:14px}.modal-tabs{gap:0;justify-content:space-between;margin:22px 0 19px}.modal-tabs>button{font-size:11px;min-height:42px}
  .modal-panel>p{font-size:11px}.menu-worlds{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.menu-worlds>button{padding:15px 12px;min-height:115px;gap:10px}.menu-worlds svg{width:25px;height:25px}.menu-worlds strong{font-size:12px}.menu-worlds small{font-size:9px}
  .challenge-card{padding:16px 13px;gap:11px}.challenge-card strong{font-size:14px}.challenge-card span{font-size:10px}.challenge-card button{font-size:10px;padding:0 10px}.menu-bottom{gap:17px}.menu-bottom .button-primary{min-height:46px;font-size:12px;padding:0 16px}.text-button{font-size:10px}
  .controls-grid{gap:0 15px}.controls-grid>div{padding:12px 0;flex-direction:column;align-items:flex-start;gap:7px}.controls-grid span{font-size:10px;text-align:left}.controls-grid kbd{font-size:10px}.guide-note{padding:15px 13px}.guide-note p{font-size:10px}
  .setting-row{gap:14px}.setting-row strong{font-size:12px}.setting-row small{font-size:10px;max-width:170px}.setting-row input{width:98px}.setting-row select{max-width:112px}
  .result-card{padding:30px 20px}.result-card h2{font-size:27px}.result-card>strong{font-size:74px}.result-card button{font-size:11px;padding:0 13px}
}
@media(max-width:380px){
  #header{padding:0 18px}.brand{font-size:20px;gap:8px}.brand small{font-size:6px;letter-spacing:1.4px}.top-actions{gap:4px}#header .icon-button{width:34px}
  .hero-copy{left:22px;top:15%}h1{font-size:57px;margin:17px 0}.hero-description{font-size:11px;margin-bottom:18px}.hero-note{font-size:8px}
  .hero-buttons .button-primary{padding:0 13px}.hero-buttons .button-secondary{padding:0 10px}
  .world-selector{left:18px;right:18px}.world-card{height:61px}.world-card-content{inset:auto 9px 10px}.world-card-content strong{font-size:10px}
  .skill>span{font-size:9px}.skill small{font-size:6.5px}.player-info{width:137px}.player-hud{left:12px}.battle-actions{right:12px}body.playing #header .top-actions{right:60px}.battle-top{right:12px}
  .power-actions{left:12px}.power-actions button{padding:0 7px;font-size:9px;gap:5px}.power-actions small{font-size:7px}.quick-actions{right:12px}
  #joystick{left:22px}.touch-flight{left:136px}#fire-button{right:18px;width:88px;height:88px}.touch-look-hint{font-size:8px;right:16px}
}
@media(max-width:700px) and (max-height:760px){
  .hero-copy{top:15%}h1{font-size:56px;margin:16px 0}.hero-description{font-size:11px;margin-bottom:17px}.hero-buttons .button-primary,.hero-buttons .button-secondary{min-height:46px}.hero-note{margin-top:11px}
  .world-card{height:60px}.hero-character-label{top:58%}.world-selector{bottom:61px}
}
@media(pointer:coarse) and (orientation:landscape) and (max-height:600px){
  #header{height:62px;padding:0 4%}.brand{font-size:20px}.brand-mark{width:28px;height:32px;font-size:31px}.brand small{font-size:6px;letter-spacing:1.5px;margin-top:6px}.top-nav{display:none}.live-tag{display:none}.top-actions .icon-button{width:40px;height:40px}
  .hero-copy{left:5%;top:25%;max-width:45%}.eyebrow{font-size:9px;letter-spacing:1px}.orange-line{width:20px}h1{font-size:50px;line-height:1.03;margin:12px 0 14px}.hero-description{display:none}
  .hero-buttons .button-primary,.hero-buttons .button-secondary{min-height:42px;font-size:11px;padding:0 12px;gap:7px}.hero-buttons .button-arrow{margin-left:5px;width:12px}.hero-note{font-size:8px;margin-top:11px}
  .hero-character-label,.hero-power{display:none}.world-selector{left:58%;right:4%;bottom:61px}.world-cards{grid-template-columns:1fr 1fr;gap:6px}.world-card{height:65px}.world-card-content{inset:auto 9px 10px;gap:6px}.world-card-content strong{font-size:10px}.world-card-content small{font-size:7px;letter-spacing:.6px}.world-number{font-size:9px}.section-title{margin-bottom:8px}.section-title>span:first-child{font-size:9px;letter-spacing:1.4px}.section-title>span:last-child{display:none}.world-dot{width:5px;height:5px}
  .landing-footer{left:5%;right:4%;bottom:14px}.landing-footer>span:first-child{display:none}.landing-footer button{font-size:10px}.landing-footer>span:last-child{font-size:8px;letter-spacing:1px;max-width:none}
  .landing-shade{background:linear-gradient(90deg,#070e14e8 0,#070e1499 32%,transparent 60%),linear-gradient(0deg,#070e14df,transparent 45%)}
  .modal{max-height:93dvh;padding:20px 25px;width:730px}.modal-heading h2{font-size:23px}.modal-tabs{margin:18px 0}.menu-worlds{grid-template-columns:repeat(4,minmax(0,1fr))}.menu-worlds>button{min-height:114px}.controls-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.controls-grid>div{flex-direction:column;align-items:flex-start;gap:7px}.controls-grid span{text-align:left}.challenge-card,.menu-bottom{margin-top:18px}
}
@media(pointer:coarse) and (pointer:coarse) and (orientation:landscape) and (max-height:600px){
  :root{--edge:18px}
  .player-hud{left:18px;top:14px;gap:8px}.player-emblem{width:34px;height:34px;font-size:21px;border-width:2px}.player-info{width:150px}.player-name{font-size:12px;gap:7px}.player-name>span{font-size:8px;padding:1px 4px}.ki-track{height:4px;margin:5px 0 3px}.player-stats{font-size:9px}.player-stats small{font-size:8px}.player-stats>span:last-child{display:none}
  #power-readout{left:60px;top:65px;width:150px}#power-readout span{font-size:7px;letter-spacing:1.3px}#power-readout>strong{font-size:24px}.scouter-track{margin-top:4px}
  .battle-top{top:14px;left:50%;right:auto;transform:translateX(-50%)}.battle-top>button{height:40px;font-size:10px;padding:0 12px}.battle-actions{top:14px;right:18px;width:auto;height:auto;display:flex;gap:55px}
  .battle-actions #camera-toggle{position:static;width:86px;height:40px;min-height:40px;font-size:10px;justify-content:center;padding:0 7px}.battle-actions #pause-button{position:static;width:40px;height:40px}
  body.playing #header .top-actions{top:14px;right:66px}body.playing #header .icon-button{width:40px;height:40px}
  #challenge-timer{position:static;margin-top:7px;font-size:23px}.mission,.destruction{display:none}
  .bottom-hud{bottom:calc(12px + var(--safe-bottom));width:320px;max-width:42vw}.skill-bar{gap:5px}.skill{height:68px;padding:6px 2px}.skill>svg{width:23px;height:23px;margin-bottom:6px}.skill>span{font-size:9px}.skill small{display:none}
  .power-actions{left:22px;bottom:calc(150px + var(--safe-bottom));gap:6px}.power-actions button{height:40px;min-height:40px;padding:0 8px;font-size:10px;gap:6px}.power-actions button>svg{width:16px;height:16px}.power-actions small{font-size:7px}.power-actions span{gap:5px}
  .quick-actions{right:22px;bottom:calc(150px + var(--safe-bottom));gap:5px}.quick-actions>button{width:40px;height:40px;min-height:40px}.quick-actions svg{width:18px;height:18px}
  #joystick{left:26px;bottom:calc(42px + var(--safe-bottom));width:90px;height:90px}#joystick-stick{width:36px;height:36px}#joystick small{font-size:7px;bottom:7px}
  .touch-flight{left:128px;bottom:calc(44px + var(--safe-bottom));gap:8px}.touch-flight button{width:40px;height:40px;font-size:21px}
  #fire-button{right:26px;bottom:calc(54px + var(--safe-bottom));width:84px;height:84px}#fire-button>svg{width:29px;height:29px}#fire-button>span{font-size:9px}.touch-look-hint{display:none}
  #charge-ui{top:54%;width:160px}#charge-ui>span{font-size:10px}#charge-ui>div{margin:7px 0 3px}#charge-ui strong{font-size:22px}#charge-ui small{font-size:9px}
  #attack-title{top:25%}#attack-title strong{font-size:29px}#attack-title small{font-size:10px}#combo{top:32%;right:22px}#combo strong{font-size:30px}#combo span{font-size:10px}
  #toast{bottom:calc(95px + var(--safe-bottom));max-width:43vw;font-size:10px;padding:9px 12px}
}
/* Long presses belong to the game, including each control's text. */
button,button *,#viewport,#viewport *,#hud,#hud *,#header,#header *,#landing,#landing *,#loading,#loading *,#toast{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;-webkit-user-drag:none}
#joystick,#fire-button,#touch-up,#touch-down{touch-action:none}
#hud button>*{pointer-events:none}
#fire-button.is-held{border-color:var(--held-tint,#effcff);background:color-mix(in srgb,var(--held-tint,#276c87) 22%,#142b38);box-shadow:0 0 0 5px color-mix(in srgb,var(--held-tint,#a5dbf0),transparent 80%),0 0 25px color-mix(in srgb,var(--held-tint,#5bc9ff),transparent 72%)}
.touch-flight button.is-held{border-color:#b4ecff;background:#3281a6ed}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
@media(max-width:430px){.brand-light{display:none}.music-caption{font-size:9px;gap:6px}}
@media(max-width:340px){body.playing #header #sound-toggle{display:none}}

/* Planetary output stays readable without intercepting the flight controls. */
.planet-cta{display:flex;align-items:center;gap:12px;margin-top:13px;min-height:48px;padding:9px 15px;border:1px solid #eab77565;border-radius:4px;background:linear-gradient(105deg,#321d14dc,#111d2ddb);color:#ffddb1;font-size:12px;text-align:left;touch-action:manipulation}
.planet-cta>svg{width:25px;height:25px}.planet-cta span{font-weight:700}.planet-cta small{display:block;margin-top:3px;font-size:9px;font-weight:400;letter-spacing:1px;color:#c1ced7}.planet-cta b{margin-left:16px;font-size:19px;font-weight:400}
#planet-readout{position:absolute;top:108px;left:50%;transform:translateX(-50%);width:300px;text-align:center;pointer-events:none;color:#a4e9ff;text-shadow:0 2px 8px #000}
#planet-readout>small{font-family:var(--display);font-size:9px;letter-spacing:2.5px;color:#b5d7e1a6}#planet-readout>strong{display:block;font-size:15px;margin-top:7px;font-weight:650}#planet-readout>span{display:block;font-size:10px;line-height:1.5;color:#d0dce8}
.planet-meter{position:relative;height:3px;margin:10px auto 7px;width:84%;background:#b2c9d630;overflow:hidden}.planet-meter>i{display:block;width:0;height:100%;background:linear-gradient(90deg,#77dfff,#fff4bc);box-shadow:0 0 8px #96e5ff}.planet-meter>b{position:absolute;left:var(--pierce-point,37.5%);top:0;width:2px;height:100%;background:#09121c}
#planet-readout[data-tier="2"],#planet-readout[data-phase="destabilizing"],#planet-readout[data-phase="rupturing"]{color:#ffce9d}#planet-readout[data-phase="destroyed"]{color:#dfc9ff}
#planet-trial{border-color:#b98b5d80;color:#ffdcaa}body.planet-cataclysm .mission,body.planet-cataclysm .destruction{opacity:.15}body.planet-cataclysm #reticle,body.planet-cataclysm #target-label,body.planet-cataclysm #target-health,body.planet-cataclysm #target-lock{opacity:0;pointer-events:none}
@media(max-width:700px){.planet-cta{margin-top:10px;min-height:44px;padding:7px 11px;font-size:11px;gap:9px}.planet-cta>svg{width:22px;height:22px}.planet-cta small{font-size:8px}.planet-cta b{margin-left:10px}#planet-readout{top:188px;width:238px}#planet-readout>strong{font-size:12px;margin-top:5px}#planet-readout>small{font-size:7px;letter-spacing:2px}#planet-readout>span{font-size:9px}.planet-meter{margin-top:7px;margin-bottom:5px}body[data-world="space"] #attack-title{top:34%}}
@media(pointer:coarse) and (orientation:landscape) and (max-height:600px){.planet-cta{margin-top:9px;min-height:40px;padding:6px 11px}.planet-cta small{font-size:8px}.hero-note{display:none}#planet-readout{top:64px;width:250px}#planet-readout>strong{font-size:12px;margin-top:3px}#planet-readout>small{font-size:7px}#planet-readout>span{font-size:9px}.planet-meter{margin:6px auto 4px}body[data-world="space"] #attack-title{top:34%}}

/* Keep personal strength and released technique output visibly distinct. */
#power-readout .output-readout{display:flex;align-items:baseline;justify-content:space-between;gap:8px;margin-top:6px;padding-top:5px;border-top:1px solid #bce9dc24}
#power-readout .output-readout>span{font-family:var(--font);font-size:9px;letter-spacing:.3px;white-space:nowrap;color:#a9c5cc}
#attack-output{font-variant-numeric:tabular-nums;font-size:13px;font-weight:600;white-space:nowrap}
#external-output{display:block;font-size:9px;letter-spacing:.1px;line-height:1.6;color:#aadfff;margin-top:2px}
#charge-ui{width:246px}#charge-ui #charge-stats{white-space:normal;line-height:1.5;word-break:keep-all}
#charge-ui[data-tier="5"]{--charge-tint:#ffcc94}
#planet-readout #planet-threshold{color:#8ca5b4;font-size:9px;margin-bottom:3px;font-variant-numeric:tabular-nums}
@media(max-width:700px){#power-readout{width:170px}#power-readout .output-readout{margin-top:5px;padding-top:4px}#attack-output{font-size:12px}#external-output{font-size:8px}#charge-ui{width:226px}#planet-readout{top:190px;width:256px}#planet-readout #planet-threshold{font-size:8px}}
@media(pointer:coarse) and (orientation:landscape) and (max-height:600px){#power-readout{width:162px}#attack-output{font-size:11px}#external-output{font-size:8px}#planet-readout{top:64px}#charge-ui{width:228px}}


/* Observer controls retain the same combat inputs and leave the action center open. */
.camera-buttons{display:flex;align-items:center;gap:6px}
#observer-toggle{color:#b9eafa;border-color:#9ad9f44d}
#observer-toggle[aria-pressed="true"]{background:#174354ed;border-color:#a6edff;color:#e4fbff;box-shadow:0 0 0 1px #a6edff22 inset}
#observer-controls{position:absolute;top:210px;right:var(--edge);width:336px;padding:10px;background:#091925ed;border:1px solid #a9d8e34d;border-radius:4px;pointer-events:auto;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:5px;box-shadow:0 6px 20px #0003}
.observer-heading{grid-column:1/-1;display:flex;flex-direction:column;gap:4px;margin-bottom:5px}
.observer-heading strong{font-size:11px;font-weight:600;color:#d7f5ff}.observer-heading small{font-size:9px;color:#a0bccb}
.observer-angle-buttons,.observer-tools{display:contents}
#observer-controls button{min-width:0;min-height:40px;padding:0 3px;font-size:10px;white-space:nowrap;border:1px solid #b7dae535;border-radius:3px;background:#162b39;color:#d4e5ed}
#observer-controls button[aria-pressed="true"]{background:#24556a;border-color:#a6edff;color:#f0fbff}
#observer-controls button:active{background:#326b80}
body[data-camera="observer"] #attack-title{display:none}
body[data-camera="observer"] #combo{top:365px}
body[data-camera="observer"] #charge-ui{left:var(--edge);top:250px;transform:none;width:220px;text-align:left;padding:9px 11px;background:#071722dc;border:1px solid #9acbdf38;border-radius:3px}
body[data-camera="observer"] #charge-ui>span{font-size:10px}
body[data-camera="observer"] #charge-ui>div{margin:6px 0 4px;height:3px}
body[data-camera="observer"] #charge-ui strong{font-size:20px;line-height:1}
body[data-camera="observer"] #charge-ui small{font-size:9px;line-height:1.45;margin-top:3px}
@media(min-width:701px) and (max-width:1100px){
 .battle-actions{top:24px;right:var(--edge);width:220px;height:94px;display:block}
 .battle-actions .camera-buttons{position:absolute;right:0;top:52px}
 .battle-actions #pause-button{position:absolute;right:0;top:0}
 #observer-controls{top:248px;width:290px}
 .destruction{top:132px}
}
@media(max-width:700px){
 .battle-actions{right:16px;top:16px;width:168px;height:92px}
 .battle-actions .camera-buttons{position:absolute;right:0;top:52px;gap:4px;width:168px}
 .battle-actions #camera-toggle,.battle-actions #observer-toggle{position:static;min-width:0;width:82px;height:40px;min-height:40px;justify-content:center;gap:5px;padding:0 4px;font-size:10px}
 .battle-actions .mini-button svg{width:14px;height:14px}
 .battle-top{top:116px}
 #observer-controls{top:auto;right:auto;left:50%;bottom:calc(90px + var(--safe-bottom));transform:translateX(-50%);width:calc(100% - 32px);max-width:450px;height:44px;padding:1px;gap:3px;border-radius:4px}
 .observer-heading{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 #observer-controls button{min-height:40px;height:40px;font-size:10px;padding:0 2px}
 body[data-camera="observer"] #charge-ui{left:16px;top:179px;width:min(170px,calc(50vw - 24px));padding:7px 8px}
 body[data-camera="observer"] #charge-ui>span{font-size:9px}
 body[data-camera="observer"] #charge-ui strong{font-size:18px}
 body[data-camera="observer"] #charge-ui small{font-size:8px;line-height:1.4}
 body[data-camera="observer"] #planet-readout{top:190px;left:auto;right:16px;transform:none;width:min(170px,calc(50vw - 24px));text-align:left;padding:7px 8px;background:#071722b8;border-radius:3px}
 body[data-camera="observer"] #planet-readout>small{font-size:7px;letter-spacing:.8px}
 body[data-camera="observer"] #planet-readout>strong{font-size:10px;line-height:1.5}
 body[data-camera="observer"] #planet-readout>span,body[data-camera="observer"] #planet-readout #planet-threshold{font-size:8px}
 body[data-camera="observer"] #planet-readout .planet-meter{width:100%}
 body[data-camera="observer"] #combo{top:300px}
 body[data-camera="observer"] .touch-look-hint{top:160px;bottom:auto;right:16px;width:168px;font-size:8px;line-height:1.4;text-align:right}
}
@media(max-width:380px){
 .battle-actions{right:12px;width:160px}
 .battle-actions .camera-buttons{width:160px}
 .battle-actions #camera-toggle,.battle-actions #observer-toggle{width:78px}
 #power-readout{width:min(166px,calc(100vw - 196px))}
 body[data-camera="observer"] #charge-ui,body[data-camera="observer"] #planet-readout{width:calc(50vw - 24px)}
 #power-readout>strong{font-size:27px}
 body[data-camera="observer"] #charge-ui #charge-stats{font-size:7px}
}
@media(pointer:coarse) and (orientation:landscape) and (max-height:600px){
 .battle-actions{top:14px;right:18px;width:168px;height:92px;display:block}
 .battle-actions .camera-buttons{position:absolute;top:48px;right:0;gap:4px;width:168px}
 .battle-actions #camera-toggle,.battle-actions #observer-toggle{position:static;width:82px;height:40px;min-height:40px;padding:0 4px;justify-content:center;font-size:10px;gap:5px}
 .battle-actions #pause-button{position:absolute;right:0;top:0;width:40px;height:40px}
 .battle-actions kbd{display:none}
 body.playing #header .top-actions{top:14px;right:66px}
 .battle-top{top:14px;left:50%;right:auto;transform:translateX(-50%)}
 #observer-controls{top:auto;right:auto;left:50%;bottom:calc(86px + var(--safe-bottom));transform:translateX(-50%);width:min(340px,44vw);height:44px;padding:1px;gap:3px}
 .observer-heading{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 #observer-controls button{height:40px;min-height:40px;padding:0 1px;font-size:9px}
 body[data-camera="observer"] #charge-ui{top:auto;bottom:calc(142px + var(--safe-bottom));left:50%;transform:translateX(-50%);width:224px;padding:6px 8px}
 body[data-camera="observer"] #charge-ui>span{font-size:9px}
 body[data-camera="observer"] #charge-ui strong{font-size:17px}
 body[data-camera="observer"] #charge-ui small{font-size:8px;line-height:1.3}
 body[data-camera="observer"] #charge-ui #charge-hint{display:none}
 body[data-camera="observer"] #combo{top:112px;right:18px}
 body[data-camera="observer"] #planet-readout{top:64px;left:50%;right:auto;transform:translateX(-50%);width:220px;text-align:center;padding:0;background:transparent}
 .destruction{top:132px}
}

@media(pointer:coarse) and (orientation:landscape) and (max-height:600px) and (max-width:620px){body[data-camera="observer"] #planet-readout{width:190px}}

/* Six arenas, with direct entry into the three cosmic trials. */
.world-cards,.menu-worlds{grid-template-columns:repeat(3,minmax(0,1fr))}
.world-card{height:82px}
.world-card-content{inset:auto 13px 12px}
.cosmic-entry{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin-top:13px;width:430px;max-width:100%}
.cosmic-entry .planet-cta{min-width:0;margin:0;padding:9px 10px;gap:7px;min-height:56px}
.cosmic-entry .planet-cta>svg{width:21px;height:21px}
.cosmic-entry .planet-cta span{font-size:11px;white-space:nowrap}
.cosmic-entry .planet-cta small{font-size:8px;letter-spacing:0;color:#c6c8cb}
.cosmic-entry .star-cta{border-color:#ed9a666b;background:linear-gradient(110deg,#45221cdc,#211527dc);color:#ffcb94}
.cosmic-entry .fleet-cta{border-color:#a8b6ee62;background:linear-gradient(110deg,#252640dc,#121e2edb);color:#d1d9ff}
.cosmic-entry button:hover{border-color:#ffe1b7;background:#3c3036}
.menu-worlds [data-world="star"] svg{color:#ffc48d}.menu-worlds [data-world="fleet"] svg{color:#c6d3ff}
#cosmic-readout{position:absolute;top:108px;left:50%;transform:translateX(-50%);width:310px;max-width:calc(100vw - 32px);text-align:center;pointer-events:none;color:#ffce96;text-shadow:0 2px 8px #000;font-variant-numeric:tabular-nums}
#cosmic-readout>small{font-family:var(--display);font-size:9px;letter-spacing:2.3px;color:#dfc1a6}
#cosmic-readout>strong{display:block;font-size:14px;margin-top:6px;font-weight:650;line-height:1.5;overflow-wrap:anywhere}
#cosmic-readout>span{display:block;font-size:10px;line-height:1.55;color:#d6dce8;overflow-wrap:anywhere}
#cosmic-readout #cosmic-threshold{font-size:9px;color:#c3b3ad;margin-bottom:3px}
.cosmic-meter{height:3px;margin:9px auto 6px;width:90%;background:#b2c9d630;overflow:hidden}
#cosmic-meter{display:block;width:0;height:100%;max-width:100%;background:linear-gradient(90deg,#ff9e51,#fff3b9);box-shadow:0 0 8px #ffb371}
#cosmic-readout[data-mode="fleet"]{color:#c8dcff}#cosmic-readout[data-mode="fleet"]>small{color:#adbedb}
#cosmic-readout[data-mode="fleet"] #cosmic-meter{background:linear-gradient(90deg,#789cf4,#b5efff);box-shadow:0 0 8px #96c5ff}
#cosmic-readout[data-mode="ground"]{color:#b7e7cd}#cosmic-readout[data-mode="ground"] #cosmic-meter{background:linear-gradient(90deg,#5daaab,#b9f0ca);box-shadow:0 0 8px #83d5bc}
#cosmic-readout[data-mode="ground"][data-integrity="damaged"]{color:#ffd197}#cosmic-readout[data-mode="ground"][data-integrity="damaged"] #cosmic-meter{background:linear-gradient(90deg,#da974c,#ffe0a1);box-shadow:0 0 8px #e4ae62}
#cosmic-readout[data-mode="ground"][data-integrity="critical"]{color:#ffaaa0}#cosmic-readout[data-mode="ground"][data-integrity="critical"] #cosmic-meter{background:linear-gradient(90deg,#e26749,#ffc08d);box-shadow:0 0 8px #ed7852}
body[data-world="star"] #attack-title,body[data-world="fleet"] #attack-title{top:34%}
@media(min-width:701px) and (max-height:850px){
 .hero-copy{top:17%}h1{font-size:76px;margin:16px 0 18px}.hero-description{font-size:12px;margin-bottom:17px}
 .world-card{height:68px}.world-selector{bottom:62px}.cosmic-entry{margin-top:10px}.hero-note{margin-top:10px}
 .hero-character-label{top:57%}
}
@media(max-width:700px){
 .world-cards,.menu-worlds{grid-template-columns:repeat(2,minmax(0,1fr))}.world-card{height:60px}
 .cosmic-entry{width:346px;gap:5px;margin-top:10px}.cosmic-entry .planet-cta{min-height:50px;padding:7px 6px;gap:5px}
 .cosmic-entry .planet-cta>svg{width:17px;height:17px}.cosmic-entry .planet-cta span{font-size:10px}.cosmic-entry .planet-cta small{font-size:7px}
 .hero-description{font-size:11px;letter-spacing:-.35px}.hero-character-label{display:none}
 #cosmic-readout{top:185px;width:268px;padding:7px 10px;background:#091622ba;border:1px solid #a9b6ce22;border-radius:4px}
 #cosmic-readout>small{font-size:7px;letter-spacing:1.5px}#cosmic-readout>strong{font-size:12px;margin-top:3px}
 #cosmic-readout>span{font-size:9px}#cosmic-readout #cosmic-threshold{font-size:8px}.cosmic-meter{margin:6px auto 5px;width:100%}
 body[data-camera="observer"] #cosmic-readout{top:179px;left:auto;right:16px;transform:none;width:min(170px,calc(50vw - 24px));padding:7px 8px;text-align:left}
 body[data-camera="observer"] #cosmic-readout>small{font-size:7px;letter-spacing:.5px}body[data-camera="observer"] #cosmic-readout>strong{font-size:10px}
 body[data-camera="observer"] #cosmic-readout>span,body[data-camera="observer"] #cosmic-readout #cosmic-threshold{font-size:8px;line-height:1.55}
}
/* Portrait screens keep every arena reachable without squeezing the hero. */
@media(max-width:700px) and (orientation:portrait){
 #landing{overflow-y:auto;overscroll-behavior:contain;pointer-events:auto;padding:104px 22px 24px;display:flex;flex-direction:column;gap:25px}
 .landing-shade{position:fixed;pointer-events:none}.hero-copy{position:relative;inset:auto;max-width:100%;flex:none}
 h1{font-size:54px;margin:13px 0 16px}.hero-description{margin-bottom:16px}.hero-note{margin-top:10px}
 .world-selector{position:relative;inset:auto;flex:none}.world-card{height:62px}
 .landing-footer{position:relative;inset:auto;flex:none;gap:12px}.landing-footer>span:last-child{max-width:145px}
}
@media(max-width:380px){
 .cosmic-entry{width:100%;gap:4px}.cosmic-entry .planet-cta{gap:4px;padding:7px 5px}.cosmic-entry .planet-cta>svg{width:15px;height:15px}.cosmic-entry .planet-cta span{font-size:9px}.cosmic-entry .planet-cta small{font-size:6.5px}
 body[data-camera="observer"] #cosmic-readout{right:12px;width:calc(50vw - 24px)}
}
@media(pointer:coarse) and (orientation:landscape) and (max-height:600px){
 .world-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.world-card{height:55px}.world-selector{bottom:55px}
 .menu-worlds{grid-template-columns:repeat(3,minmax(0,1fr))}.menu-worlds>button{min-height:100px}
 .hero-copy{top:24%;max-width:46%}h1{font-size:48px;margin:10px 0 12px}.hero-description{display:none}
 .cosmic-entry{width:340px;gap:4px;margin-top:8px}.cosmic-entry .planet-cta{min-height:43px;padding:6px;gap:5px}.cosmic-entry .planet-cta>svg{width:16px;height:16px}.cosmic-entry .planet-cta span{font-size:9px}.cosmic-entry .planet-cta small{font-size:6.5px}.hero-note{display:none}
 #cosmic-readout,body[data-camera="observer"] #cosmic-readout{top:64px;left:50%;right:auto;transform:translateX(-50%);width:220px;text-align:center;padding:5px 7px;background:#09162299;border:0}
 #cosmic-readout>small{font-size:7px;letter-spacing:1px}#cosmic-readout>strong{font-size:11px;margin-top:2px}#cosmic-readout>span{font-size:8px;line-height:1.45}#cosmic-readout #cosmic-threshold{font-size:8px}.cosmic-meter{margin:5px auto 4px}
}
@media(pointer:coarse) and (orientation:landscape) and (max-height:600px) and (max-width:620px){
 .cosmic-entry{grid-template-columns:repeat(3,minmax(0,1fr));width:100%}.cosmic-entry .planet-cta{justify-content:center;padding:5px 3px}.cosmic-entry .planet-cta>svg,.cosmic-entry .planet-cta small{display:none}.cosmic-entry .planet-cta span{font-size:9px}
 #cosmic-readout,body[data-camera="observer"] #cosmic-readout{width:190px}
}

@media(min-width:1001px) and (max-height:1100px) and (min-height:601px){
 .world-selector{left:53%;right:5%;bottom:76px}.world-cards{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.world-card{height:82px}
 .world-card-content{inset:auto 8px 11px;gap:5px}.world-card-content strong{font-size:11px}.world-card-content small{font-size:8px;letter-spacing:.6px}.world-number{font-size:9px}.world-dot{width:5px;height:5px}.section-title>span:last-child{display:none}
 .hero-character-label{display:none}
}
@media(min-width:701px) and (max-width:1000px) and (min-height:601px){
 #landing{overflow-y:auto;overscroll-behavior:contain;pointer-events:auto;padding:112px 6% 24px;display:flex;flex-direction:column;gap:28px}
 .landing-shade{position:fixed;pointer-events:none}.hero-copy{position:relative;inset:auto;max-width:100%;flex:none}.hero-character-label{display:none}
 .world-selector{position:relative;inset:auto;flex:none}.landing-footer{position:relative;inset:auto;flex:none}
 h1{font-size:64px;margin:16px 0}.hero-description{margin-bottom:18px}.world-card{height:70px}
}

@media(max-width:700px) and (orientation:portrait){body[data-world="star"] #attack-title,body[data-world="fleet"] #attack-title{top:max(300px,38%)}}

/* Optional fleet tracking stays beside fleet status, including touch layouts. */
#fleet-auto-lock,.fleet-lock-setting{display:none}
body[data-world="fleet"] .fleet-lock-setting{display:flex}
body[data-world="fleet"] #fleet-auto-lock{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:40px;margin-top:7px;padding:0 11px;border:1px solid #9bb7df65;border-radius:4px;background:#111f34e8;color:#d7e7ff;font-size:10px;font-weight:650;white-space:nowrap;touch-action:manipulation;pointer-events:auto}
#fleet-auto-lock .fleet-lock-indicator{width:6px;height:6px;border-radius:50%;background:#78889c}
#fleet-auto-lock[aria-pressed="true"]{border-color:#a2ecc8a0;background:#12353be8;color:#d1ffe7}
#fleet-auto-lock[aria-pressed="true"] .fleet-lock-indicator{background:#b0ffdb;box-shadow:0 0 7px #9dffcd70}
#fleet-auto-lock:focus-visible{outline:2px solid #d8f9ff;outline-offset:3px}
#fleet-auto-lock kbd{margin-left:2px;font-size:9px;min-width:17px;height:17px;line-height:15px;color:inherit;border-color:#d4e5ed45}
@media(pointer:coarse){#fleet-auto-lock kbd{display:none}}
@media(max-width:700px){body[data-world="fleet"] #fleet-auto-lock{min-height:40px;font-size:10px;margin-top:5px;padding:0 9px}}
@media(pointer:coarse) and (orientation:landscape) and (max-height:600px){body[data-world="fleet"] #fleet-auto-lock{margin-top:4px;min-height:36px}}

/* V33: a measured touch HUD. The status strip and thumb dock leave the scene open. */
.hud-upper,.hud-top,.hud-status,.hud-command,.hud-context,.touch-dock,.touch-movement,.touch-attack{display:contents}
#charge-stage{display:block;font-size:10px;font-weight:650;line-height:1.4;color:var(--charge-tint);margin-top:4px}
#charge-ui>.charge-stage-meter{height:2px;margin:5px 0 0;border:0;background:#d5edff24}
#charge-stage-progress{max-width:100%;background:var(--charge-tint)}

@media(pointer:coarse),(max-width:700px),(pointer:coarse) and (orientation:landscape) and (max-height:600px){
 :root{--hud-left:max(12px,env(safe-area-inset-left,0px));--hud-right:max(12px,env(safe-area-inset-right,0px));--hud-top:max(8px,env(safe-area-inset-top,0px));--dock-bottom:max(8px,var(--safe-bottom));--dock-height:228px}
 body.playing #header .top-actions{top:var(--hud-top);right:calc(var(--hud-right) + 50px);gap:6px}
 body.playing #header .icon-button{width:44px;height:44px;min-height:44px}
 #hud .hud-upper{position:absolute;top:var(--hud-top);left:var(--hud-left);right:var(--hud-right);display:grid;gap:8px;min-width:0}
 #hud .hud-top{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;min-width:0}
 #hud .hud-status{display:flex;flex-direction:column;gap:8px;min-width:0}
 #hud .player-hud{position:static;gap:7px;min-height:44px;min-width:0;filter:drop-shadow(0 1px 3px #000)}
 #hud .player-emblem{width:32px;height:32px;flex:none;font-size:21px;border-width:2px}
 #hud .player-info{width:auto;flex:1;min-width:0}
 #hud .player-name{font-size:12px;gap:6px;flex-wrap:wrap;line-height:1.4}
 #hud .player-name>span{font-size:9px;padding:1px 4px}
 #hud .ki-track{height:5px;margin:4px 0 3px}
 #hud .player-stats{font-size:10px;line-height:1.2;letter-spacing:0}
 #hud .player-stats small{font-size:8px}
 #hud .player-stats>span:last-child{display:none}
 #hud #power-readout{position:static;width:auto;min-width:0;padding:7px 9px;background:#081721d9;border:1px solid #c3e9e72b;border-radius:4px;text-shadow:none}
 #hud #power-readout>div:first-child{min-height:10px}
 #hud #scouter-status{font-size:8px;letter-spacing:.7px}
 #hud #power-readout>strong{font-size:clamp(24px,7vw,30px);line-height:1.05;letter-spacing:.5px;margin-top:2px;overflow-wrap:anywhere}
 #hud .scouter-track{margin-top:5px}
 #hud #power-readout .output-readout{gap:4px;margin-top:5px;padding-top:4px}
 #hud #power-readout .output-readout>span{font-size:9px;letter-spacing:0}
 #hud #attack-output{font-size:12px;line-height:1.25}
 #hud #external-output{font-size:9px;line-height:1.4;margin-top:3px}
 #hud .hud-command{display:grid;grid-template-rows:44px 44px 44px;gap:6px;min-width:0}
 #hud .battle-top{position:static;transform:none;grid-row:2;min-width:0;display:flex;align-items:center;gap:5px}
 #hud .battle-top>button{height:44px;min-height:44px;width:100%;flex:1;max-width:none;min-width:0;justify-content:center;padding:0 7px;gap:6px;font-size:11px}
 #hud #world-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 #hud .battle-top .chevron{margin:0}
 #hud .battle-top .tiny-dot{display:none}
 #hud #challenge-timer{position:static;right:auto;top:auto;flex:none;font-size:21px;line-height:36px;margin:0;padding:0 4px;background:#0c1c29e8;border-radius:3px;white-space:nowrap;gap:4px}
 #hud .battle-actions{display:contents}
 #hud .battle-actions .camera-buttons{position:static;display:grid;grid-template-columns:1fr 1fr;grid-row:3;gap:6px;width:auto;min-width:0}
 #hud .battle-actions #camera-toggle,#hud .battle-actions #observer-toggle{position:static;width:auto;min-width:0;height:44px;min-height:44px;padding:0 3px;justify-content:center;gap:3px;font-size:11px}
 #hud .battle-actions .mini-button svg{display:none}
 #hud .battle-actions #pause-button{position:absolute;top:0;right:0;width:44px;height:44px}
 #hud .hud-context{display:grid;grid-template-columns:minmax(0,1fr);gap:5px;min-width:0}
 #hud .mission,#hud .destruction{display:none}
 #hud #planet-readout,#hud #cosmic-readout,body[data-camera="observer"] #hud #planet-readout,body[data-camera="observer"] #hud #cosmic-readout{position:static;transform:none;width:auto;max-width:none;min-width:0;padding:7px 10px;text-align:left;background:#091722cf;border:1px solid #a9c8dc2b;border-radius:4px;text-shadow:0 1px 3px #000}
 #hud #planet-readout>small,#hud #cosmic-readout>small{display:none}
 #hud #planet-readout>strong,#hud #cosmic-readout>strong{font-size:11px;line-height:1.5;margin:0;color:inherit;overflow-wrap:anywhere}
 #hud #planet-readout>span,#hud #cosmic-readout>span{font-size:10px;line-height:1.5}
 #hud #planet-readout #planet-threshold,#hud #cosmic-readout #cosmic-threshold{font-size:9px;line-height:1.5;margin:0;color:#c4d3db}
 #hud #planet-detail,#hud #cosmic-detail{display:none}
 #hud .planet-meter,#hud .cosmic-meter{width:100%;height:3px;margin:5px 0}
 body[data-world="fleet"] #hud #cosmic-readout{display:grid;grid-template-columns:minmax(0,1fr) 112px;column-gap:9px;align-items:center}
 body[data-world="fleet"] #hud #cosmic-readout>strong{grid-column:1;grid-row:1}
 body[data-world="fleet"] #hud .cosmic-meter{grid-column:1;grid-row:2}
 body[data-world="fleet"] #hud #cosmic-threshold{grid-column:1;grid-row:3}
 body[data-world="fleet"] #hud #fleet-auto-lock{grid-column:2;grid-row:1/4;min-height:44px;height:44px;margin:0;padding:0 5px;font-size:10px;gap:5px}
 #hud #fleet-auto-lock kbd{display:none}
 #hud #observer-controls{position:static;transform:none;display:grid;grid-template-columns:repeat(6,minmax(44px,1fr));width:auto;max-width:none;height:46px;padding:0;gap:4px;background:none;border:0;box-shadow:none;min-width:0}
 #hud #observer-controls button{height:44px;min-height:44px;padding:0 2px;font-size:10px;background:#102635ed}
 #hud .observer-heading{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 #hud .touch-dock{position:absolute;left:var(--hud-left);right:var(--hud-right);bottom:var(--dock-bottom);display:grid;grid-template-columns:repeat(6,minmax(0,1fr));grid-template-rows:44px 108px 60px;gap:8px 6px;min-width:0}
 #hud .power-actions,#hud .quick-actions,#hud #touch-controls{display:contents}
 #hud .power-actions button,#hud .quick-actions>button{position:static;grid-row:1;width:auto;min-width:0;height:44px;min-height:44px;padding:0 3px;gap:0;justify-content:center;font-size:10px;border-radius:4px}
 #hud #power-button{grid-column:1}#hud #kaioken-button{grid-column:2}
 #hud #planet-trial{grid-column:3}#hud #fly-button{grid-column:4}#hud #teleport-button{grid-column:5}#hud #reset-button{grid-column:6}
 #hud .power-actions button>svg,#hud .power-actions small,#hud .power-actions kbd,#hud .quick-actions kbd{display:none}
 #hud .power-actions span{white-space:normal;line-height:1.35;text-align:center;gap:0;font-size:10px}
 #hud .quick-actions svg{width:21px;height:21px}
 #hud .touch-movement{display:grid;grid-template-columns:104px 48px;gap:8px;grid-column:1/4;grid-row:2;align-items:center;min-width:0}
 #hud #joystick{position:relative;inset:auto;width:104px;height:104px;box-shadow:inset 0 0 0 9px #adc7d309;background:#0a1d2abf}
 #hud #joystick-stick{width:44px;height:44px;box-shadow:0 3px 12px #0006;transition:background .12s,box-shadow .12s}
 #hud #joystick.is-held #joystick-stick{background:#85a9bd;box-shadow:0 0 18px #7fd8ff42}
 #hud #joystick small{font-family:var(--font);font-size:9px;letter-spacing:0;bottom:8px}
 #hud .touch-flight{position:static;display:grid;gap:8px;min-width:0}
 #hud .touch-flight button{width:48px;height:48px;min-height:44px;font-size:23px;background:#0e2636dc}
 #hud .touch-attack{display:flex;align-items:center;justify-content:flex-end;grid-column:5/7;grid-row:2;min-width:0}
 #hud #fire-button{position:static;width:104px;height:104px;min-height:104px;flex:none;gap:5px;box-shadow:0 0 0 4px #8cc7dc16}
 #hud #fire-button.is-aiming{border-color:#e4fcff;box-shadow:0 0 0 5px #90e7ff35,0 0 25px #4fb7ff28}
 #hud #fire-button::after{content:'밀어서 조준';font-size:8px;color:#bbd9e5;letter-spacing:-.2px}
 #hud #fire-button>svg{width:30px;height:30px}
 #hud #fire-button>span{font-size:10px}
 #hud .touch-look-hint{display:none}
 #hud .bottom-hud{position:static;transform:none;width:auto;max-width:none;min-width:0;grid-column:1/-1;grid-row:3}
 #hud .skill-bar{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;height:100%}
 #hud .skill{width:auto;min-width:0;height:60px;padding:4px 1px;border-radius:4px}
 #hud .skill>svg{width:23px;height:23px;margin-bottom:4px}
 #hud .skill>span{font-size:10px;line-height:1.25;white-space:nowrap;letter-spacing:-.3px}
 #hud .skill small,#hud .skill>kbd{display:none}
 #hud #charge-ui,body[data-camera="observer"] #hud #charge-ui{position:absolute;left:50%;top:auto;bottom:calc(var(--dock-height) + var(--dock-bottom) + 10px);transform:translateX(-50%);width:min(268px,calc(100% - 32px));padding:8px 11px;text-align:left;background:#081a25ed;border:1px solid #9bcbdc4d;border-radius:4px;display:grid;grid-template-columns:auto minmax(0,1fr);gap:3px 9px;text-shadow:none}
 #hud #charge-ui>#charge-label{grid-column:1/-1;font-size:10px;line-height:1.4;letter-spacing:0;color:#d8ecf3}
 #hud #charge-ui>.charge-main-meter{grid-column:1/-1;height:3px;margin:1px 0 2px}
 #hud #charge-ui>#charge-percent{grid-column:1;grid-row:3;font-size:23px;line-height:1;margin:0;letter-spacing:.3px}
 #hud #charge-ui>#charge-stage{grid-column:2;grid-row:3;align-self:center;font-size:11px;line-height:1.4;margin:0}
 #hud #charge-ui>.charge-stage-meter{grid-column:1/-1;height:2px;margin:2px 0}
 #hud #charge-ui>#charge-stats{grid-column:1/-1;font-size:10px;line-height:1.4;margin:0;letter-spacing:-.1px;white-space:normal;overflow-wrap:anywhere}
 #hud #charge-ui>#charge-hint{display:none}
 #hud #attack-title{top:36%;max-width:80%;pointer-events:none}
 #hud #attack-title strong{font-size:28px}#hud #attack-title small{display:none}
 #hud #combo,body[data-camera="observer"] #hud #combo{top:31%;right:var(--hud-right)}
 #hud #combo strong{font-size:28px}#hud #combo span{font-size:9px}
 #hud #target-label{max-width:calc(100vw - 40px);font-size:10px;text-align:center;white-space:normal;line-height:1.4}
 #hud #target-lock small{font-size:7px;letter-spacing:0}
 body[data-energizing="true"] #hud .hud-context{opacity:.65}
 #toast{bottom:calc(var(--dock-height) + var(--dock-bottom) + 124px);max-width:calc(100vw - 32px);font-size:11px;line-height:1.5}
 #modal-backdrop,#result-overlay{padding:max(12px,env(safe-area-inset-top,0px)) var(--hud-right) max(12px,var(--safe-bottom)) var(--hud-left)}
 .modal-heading .icon-button,.modal-tabs>button,.switch{min-height:44px}
 .modal{max-height:calc(100dvh - max(24px,env(safe-area-inset-top,0px)) - max(12px,var(--safe-bottom)));overscroll-behavior:contain}
}

@media(pointer:coarse) and (orientation:landscape) and (max-height:600px){
 :root{--dock-height:144px}
 #hud .hud-upper{grid-template-columns:164px minmax(0,1fr) 188px;align-items:start;gap:10px}
 #hud .hud-top{display:contents}
 #hud .hud-status{grid-column:1;grid-row:1;gap:6px}
 #hud .hud-command{grid-column:3;grid-row:1;grid-template-rows:44px 44px 44px;gap:5px}
 #hud .hud-context{grid-column:2;grid-row:1;gap:4px}
 #hud #power-readout{padding:6px 8px}
 #hud #power-readout>strong{font-size:24px}
 #hud #power-readout #external-output{font-size:8px}
 #hud #scouter-status{font-size:7px;letter-spacing:.5px}
 #hud #attack-output{font-size:11px}
 #hud #planet-readout,#hud #cosmic-readout,body[data-camera="observer"] #hud #planet-readout,body[data-camera="observer"] #hud #cosmic-readout{padding:6px 7px}
 #hud #planet-readout>strong,#hud #cosmic-readout>strong{font-size:10px;line-height:1.4}
 #hud #planet-readout #planet-threshold,#hud #cosmic-readout #cosmic-threshold{font-size:9px;line-height:1.4}
 body[data-world="fleet"] #hud #cosmic-readout{grid-template-columns:minmax(0,1fr) 104px;column-gap:7px}
 body[data-world="fleet"] #hud #fleet-auto-lock{grid-column:2;grid-row:1/4;height:44px;min-height:44px;width:100%;margin:0}
 #hud #observer-controls{position:absolute;top:96px;left:174px;right:198px;grid-template-columns:repeat(6,minmax(44px,1fr));gap:3px;height:44px}
 body[data-world="fleet"] #hud #observer-controls{top:96px}
 #hud #observer-controls button{font-size:9px}
 #hud #challenge-timer{right:auto;top:auto;font-size:20px}
 #hud .touch-dock{grid-template-columns:152px minmax(0,1fr) 188px;grid-template-rows:44px 92px;gap:8px 12px}
 #hud .power-actions{display:grid;grid-template-columns:repeat(2,minmax(44px,1fr));gap:6px;grid-column:1;grid-row:1}
 #hud .quick-actions{display:grid;grid-template-columns:repeat(4,minmax(44px,1fr));gap:4px;grid-column:3;grid-row:1}
 #hud .power-actions button,#hud .quick-actions>button{grid-column:auto;grid-row:auto}
 #hud .touch-movement{grid-column:1;grid-row:2;grid-template-columns:92px 44px;gap:8px}
 #hud #joystick{width:90px;height:90px}
 #hud #joystick-stick{width:36px;height:36px}
 #hud .touch-flight{gap:4px}
 #hud .touch-flight button{width:44px;height:44px}
 #hud .touch-attack{grid-column:3;grid-row:2}
 #hud #fire-button{width:90px;height:90px;min-height:90px;margin-right:4px}
 #hud .bottom-hud{grid-column:2;grid-row:2;align-self:end}
 #hud .skill-bar{gap:4px}
 #hud .skill{height:60px;padding:4px 0}
 #hud .skill>span{font-size:9px;letter-spacing:-.6px}
 #hud .skill>svg{width:22px;height:22px;margin-bottom:5px}
 #hud #charge-ui,body[data-camera="observer"] #hud #charge-ui{left:calc(50% - 18px);bottom:calc(76px + var(--dock-bottom));width:min(280px,calc(100vw - 396px));padding:6px 8px;gap:2px 7px}
 #hud #charge-ui>#charge-label{font-size:9px}
 #hud #charge-ui>#charge-percent{font-size:20px}
 #hud #charge-ui>#charge-stage{font-size:10px}
 #hud #charge-ui>#charge-stats{font-size:9px;line-height:1.3}
 #hud #attack-title{top:43%}
 #hud #combo,body[data-camera="observer"] #hud #combo{top:145px;right:var(--hud-right)}
 #toast{bottom:calc(150px + var(--dock-bottom));max-width:40vw;font-size:10px;padding:7px 10px}
}
@media(pointer:coarse) and (orientation:landscape) and (max-height:600px) and (max-width:740px){
 #hud .hud-upper{grid-template-columns:146px minmax(0,1fr) 148px;gap:8px}
 #hud .player-emblem{width:27px;height:27px;font-size:18px}
 #hud .player-name{font-size:11px;gap:4px}
 #hud .player-name>span{font-size:8px}
 #hud .battle-top>button{font-size:10px}
 #hud .battle-actions #camera-toggle,#hud .battle-actions #observer-toggle{font-size:10px}
 #hud #observer-controls{left:154px;right:156px}
 #hud .touch-dock{grid-template-columns:144px minmax(0,1fr) 188px;column-gap:10px}
 #hud .touch-movement{grid-template-columns:90px 44px;gap:6px}
 #hud #charge-ui,body[data-camera="observer"] #hud #charge-ui{left:calc(50% - 22px);width:calc(100vw - 376px)}
}
/* Keep hold and selection feedback above the responsive control surfaces. */
#hud #power-button.is-held,#hud #power-button[aria-pressed="true"]{background:#24596df0;border-color:#d7faff;box-shadow:inset 0 -3px #c5f4ff}
#hud #fire-button.is-held{border-color:var(--held-tint,#effcff);background:color-mix(in srgb,var(--held-tint,#276c87) 22%,#142b38);box-shadow:0 0 0 5px color-mix(in srgb,var(--held-tint,#a5dbf0),transparent 80%),0 0 25px color-mix(in srgb,var(--held-tint,#5bc9ff),transparent 72%)}
#hud .touch-flight button.is-held{border-color:#b4ecff;background:#3281a6ed}
#hud #observer-controls button[aria-pressed="true"]{background:#24556a;border-color:#a6edff;color:#f0fbff}
@media(pointer:coarse),(max-width:700px),(pointer:coarse) and (orientation:landscape) and (max-height:600px){
 #hud:has(#challenge-timer:not(.hidden)) .destruction{position:static;display:flex;align-items:baseline;justify-content:flex-end;gap:6px;text-shadow:0 1px 4px #000}
 #hud:has(#challenge-timer:not(.hidden)) .destruction>small{font-size:8px;letter-spacing:.5px}
 #hud:has(#challenge-timer:not(.hidden)) .destruction>strong{font-size:20px;line-height:1.2}
 #hud:has(#challenge-timer:not(.hidden)) .destruction>span{display:none}
}

/* V36: a stable accent identifies the held two-input acceleration. */
#charge-ui[data-linked="true"] #charge-label{color:var(--charge-tint);text-shadow:0 0 10px color-mix(in srgb,var(--charge-tint),transparent 55%)}

/* V42: the very long hold has a readable goal on touch screens too. */
#charge-ui[data-extreme="ready"]{border-color:#d6f4ff;box-shadow:0 0 24px #9adaff24}
#charge-ui[data-extreme="ready"] #charge-hint{color:#f4e3ae}
@media(pointer:coarse),(max-width:700px),(pointer:coarse) and (orientation:landscape) and (max-height:600px){
 #hud #charge-ui[data-extreme="charging"]>#charge-hint,#hud #charge-ui[data-extreme="ready"]>#charge-hint{display:block;grid-column:1/-1;margin-top:3px;font-size:9px;line-height:1.4;color:#d2e9f1}
 .landing-links{gap:18px}.landing-footer .landing-links button{min-height:44px;white-space:nowrap}
}
@media(pointer:coarse) and (orientation:landscape) and (max-height:600px) and (max-width:640px){
 #hud #observer-controls{grid-template-columns:repeat(3,minmax(44px,1fr));height:91px;row-gap:3px}
}

/* V43: a clear playfield is the touch default. Extra information is opt-in. */
.hud-utilities{position:absolute;top:128px;right:var(--edge);display:flex;gap:6px;pointer-events:auto}
#hud-details-toggle{display:none}
#fullscreen-header,#fullscreen-play{width:44px;height:44px;min-height:44px}
#online-count{position:absolute;left:var(--edge);bottom:22px;font-size:10px;line-height:16px;color:#c1d2d9;text-shadow:0 1px 4px #000;pointer-events:none}
@media(pointer:coarse),(max-width:700px),(pointer:coarse) and (orientation:landscape) and (max-height:600px){
 :root{--dock-height:196px;--hud-toolbar-width:188px;--mobile-top-band:68px}
 body.playing #header{display:none}
 #hud .hud-utilities{position:fixed;top:var(--hud-top);right:calc(var(--hud-right) + 48px);gap:4px;z-index:8}
 #hud #hud-details-toggle{display:inline-flex;width:44px;height:44px;min-height:44px;padding:0;justify-content:center;font-size:11px}
 #hud #hud-details-toggle[aria-expanded="true"]{background:#24556a;border-color:#a6edff}
 #hud .hud-upper{top:calc(var(--hud-top) + 62px);display:grid;grid-template-columns:minmax(0,1fr);gap:8px;max-height:calc(100dvh - var(--dock-height) - var(--dock-bottom) - var(--hud-top) - 80px);overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;padding:10px;background:#071721f2;border:1px solid #a9c8dc40;border-radius:5px;pointer-events:auto;z-index:7}
 #hud .hud-top{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px}
 #hud .hud-status{grid-column:auto;grid-row:auto;gap:0}
 #hud .player-hud{position:fixed;top:var(--hud-top);left:var(--hud-left);width:calc(100vw - var(--hud-left) - var(--hud-right) - var(--hud-toolbar-width) - 4px);min-height:44px;gap:0;z-index:8;pointer-events:none}
 #hud .player-emblem{display:none}
 #hud .player-info{width:100%;min-width:0}
 #hud .player-name{font-size:11px;gap:4px;flex-wrap:nowrap;white-space:nowrap}
 #hud .player-name>span{max-width:50px;overflow:hidden;text-overflow:ellipsis;font-size:8px}
 #hud .player-stats{font-size:10px}
 #hud .hud-command{grid-column:auto;grid-row:auto;display:flex;flex-direction:column;gap:6px}
 #hud .battle-actions,#hud .battle-actions .camera-buttons{display:contents}
 #hud .battle-actions #camera-toggle,#hud .battle-actions #pause-button{position:fixed;top:var(--hud-top);width:44px;min-width:44px;height:44px;min-height:44px;padding:0;z-index:8}
 #hud .battle-actions #camera-toggle{right:calc(var(--hud-right) + 144px);font-size:10px;gap:0}
 #hud .battle-actions #camera-toggle kbd,#hud .battle-actions #camera-toggle svg{display:none}
 #hud .battle-actions #pause-button{right:var(--hud-right)}
 #hud .battle-actions #observer-toggle{position:static;width:100%;height:44px;min-height:44px;min-width:44px;font-size:11px}
 #hud .battle-top{grid-row:auto;min-height:44px}
 #hud #observer-controls{position:static;left:auto;right:auto;top:auto;grid-template-columns:repeat(3,minmax(44px,1fr));height:auto;gap:4px}
 #hud .observer-angle-buttons,#hud .observer-tools{display:contents}
 #hud .hud-context{grid-column:auto;grid-row:auto;display:grid;gap:6px}
 #hud .touch-dock{grid-template-columns:repeat(6,minmax(0,1fr));grid-template-rows:44px 96px 44px;gap:6px;z-index:6}
 #hud .touch-movement{grid-template-columns:92px 44px;gap:6px;grid-column:1/4;grid-row:2}
 #hud #joystick{width:92px;height:92px}
 #hud #joystick-stick{width:40px;height:40px}
 #hud .touch-flight{gap:4px}
 #hud .touch-flight button{width:44px;height:44px;min-height:44px}
 #hud .touch-attack{grid-column:5/7;grid-row:2}
 #hud #fire-button{width:92px;height:92px;min-height:92px;margin:0;gap:3px}
 #hud #fire-button>svg{width:25px;height:25px}
 #hud #fire-button>span{font-size:10px}
 #hud .bottom-hud{grid-column:1/-1;grid-row:3}
 #hud .skill{height:44px;min-height:44px;padding:3px 1px}
 #hud .skill>svg{width:17px;height:17px;margin-bottom:2px}
 #hud .skill>span{font-size:9px;letter-spacing:-.4px}
 #hud #power-button{grid-column:1/3}#hud #kaioken-button{grid-column:3}#hud #fly-button{grid-column:4}#hud #teleport-button{grid-column:5/7}
 #hud #planet-trial,#hud #reset-button{display:none}
 #hud[data-details="true"] #planet-trial,#hud[data-details="true"] #reset-button{display:flex;position:fixed;top:calc(var(--hud-top) + 52px);height:44px;min-height:44px;width:44px;z-index:8;font-size:9px}
 #hud[data-details="true"] #planet-trial{left:var(--hud-left)}#hud[data-details="true"] #reset-button{left:calc(var(--hud-left) + 50px)}
 #hud[data-details="true"] .hud-upper{top:calc(var(--hud-top) + 104px);max-height:calc(100dvh - var(--dock-height) - var(--dock-bottom) - var(--hud-top) - 116px)}
 #hud #charge-ui,body[data-camera="observer"] #hud #charge-ui{left:50%;bottom:calc(var(--dock-height) + var(--dock-bottom) + 6px);width:min(250px,calc(100vw - 36px));padding:5px 8px;gap:2px 7px;z-index:5}
 #hud #charge-ui>#charge-label{font-size:9px}#hud #charge-ui>#charge-percent{font-size:20px}#hud #charge-ui>#charge-stage{font-size:10px}
 #hud #charge-ui>#charge-stats{font-size:9px;line-height:1.25}
 #hud #charge-ui>#charge-hint,#hud #charge-ui[data-extreme="charging"]>#charge-hint,#hud #charge-ui[data-extreme="ready"]>#charge-hint{display:none}
 #hud #online-count{position:fixed;top:calc(var(--hud-top) + 45px);left:var(--hud-left);bottom:auto;font-size:9px;line-height:15px;z-index:8}
 #hud[data-details="false"] .hud-upper{display:contents}
 #hud[data-details="false"] .hud-top,#hud[data-details="false"] .hud-status,#hud[data-details="false"] .hud-command,#hud[data-details="false"] .hud-context{display:contents}
 #hud[data-details="false"] #power-readout,#hud[data-details="false"] .battle-top,#hud[data-details="false"] #observer-toggle,#hud[data-details="false"] #observer-controls,#hud[data-details="false"] .mission,#hud[data-details="false"] .destruction{display:none}
 #hud[data-details="false"] #planet-readout,#hud[data-details="false"] #cosmic-readout{display:contents;padding:0;border:0;background:none}
 #hud[data-details="false"] #planet-readout>*,#hud[data-details="false"] #cosmic-readout>*{display:none}
 body[data-world="fleet"] #hud[data-details="false"] #cosmic-readout>#fleet-auto-lock{position:fixed;top:calc(var(--hud-top) + 50px);right:var(--hud-right);display:flex;align-items:center;justify-content:center;width:130px;height:44px;min-height:44px;margin:0;font-size:10px;pointer-events:auto;z-index:6}
 #hud[data-details="false"] #combo,#hud[data-details="false"] #attack-title{display:none}
 #toast{bottom:calc(var(--dock-height) + var(--dock-bottom) + 90px);max-width:calc(100vw - 32px)}
}
@media(pointer:coarse) and (orientation:landscape) and (max-height:600px){
 :root{--dock-height:96px}
 #hud .touch-dock{grid-template-columns:142px minmax(0,1fr) 92px;grid-template-rows:44px 44px;column-gap:5px;row-gap:8px}
 #hud .touch-movement{grid-column:1;grid-row:1/3;grid-template-columns:92px 44px;gap:6px}
 #hud .touch-attack{grid-column:3;grid-row:1/3}
 #hud .power-actions,#hud .quick-actions{display:contents}
 #hud #power-button,#hud #kaioken-button,#hud #fly-button,#hud #teleport-button{position:static;grid-row:1;width:auto;min-width:44px}
 #hud #power-button{grid-column:2;justify-self:start;width:calc((100% - 12px)/4)}
 #hud #kaioken-button{grid-column:2;justify-self:start;margin-left:calc((100% + 4px)/4);width:calc((100% - 12px)/4)}
 #hud #fly-button{grid-column:2;justify-self:start;margin-left:calc((100% + 4px)/2);width:calc((100% - 12px)/4)}
 #hud #teleport-button{grid-column:2;justify-self:end;width:calc((100% - 12px)/4)}
 #hud .bottom-hud{grid-column:2;grid-row:2}
 #hud .skill-bar{gap:4px}#hud .skill{height:44px;min-width:44px}#hud .skill>span{font-size:8px;letter-spacing:-.6px}
 #hud .hud-upper{max-width:500px;margin-left:auto;max-height:calc(100dvh - 190px)}
 #hud[data-details="true"] .hud-upper{max-height:calc(100dvh - 220px)}
 #hud #charge-ui,body[data-camera="observer"] #hud #charge-ui{bottom:calc(var(--dock-height) + var(--dock-bottom) + 6px);width:min(250px,calc(100vw - 290px));padding:4px 7px}
 #hud #charge-ui>#charge-label{font-size:9px}#hud #charge-ui>#charge-stats{font-size:8px}
}
@media(pointer:coarse) and (orientation:landscape) and (max-height:600px){
 #hud #charge-ui,body[data-camera="observer"] #hud #charge-ui{grid-template-columns:52px minmax(0,1fr);gap:2px 6px;padding:4px 7px}
 #hud #charge-ui>#charge-label,#hud #charge-ui>.charge-stage-meter{display:none}
 #hud #charge-ui>#charge-percent{grid-row:1;grid-column:1;font-size:19px}
 #hud #charge-ui>#charge-stage{grid-row:1;grid-column:2;font-size:9px}
 #hud #charge-ui>.charge-main-meter{grid-row:2;margin:1px 0;height:2px}
 #hud #charge-ui>#charge-stats{grid-row:3;line-height:1.2;font-size:8px}
}

:root{--safe-top:env(safe-area-inset-top,0px);--safe-left:env(safe-area-inset-left,0px);--safe-right:env(safe-area-inset-right,0px)}
/* Target position is geometric; only the separate direction arrow hugs an edge. */
#aim-edge-indicator{position:absolute;left:var(--aim-edge-x,50%);top:var(--aim-edge-y,50%);transform:translate(-50%,-50%);display:flex;align-items:center;gap:4px;flex-direction:column;color:#a9f3e4;pointer-events:none;z-index:8;text-shadow:0 1px 4px #000}
#aim-edge-indicator[hidden]{display:none}
#aim-edge-indicator b{display:block;font-size:18px;line-height:1;transform:rotate(var(--edge-angle,0rad))}
#aim-edge-indicator span{font-size:9px;white-space:nowrap;background:#071b27b8;padding:2px 4px;border-radius:3px}
#hud[data-aim-offscreen="true"] #reticle,#hud[data-aim-offscreen="true"] #target-label,#hud[data-aim-offscreen="true"] #target-health,#hud[data-aim-offscreen="true"] #hit-marker{visibility:hidden}

/* Sound activation stays visible and points to the control that owns it. */
.sound-control{position:relative;flex:none;pointer-events:auto}
.sound-control .sound-switch{flex-direction:column;gap:2px;padding:3px 0;min-height:44px}
.sound-switch svg{width:17px;height:17px}
.sound-switch [data-sound-label]{font-size:8px;line-height:11px;white-space:nowrap;letter-spacing:-.3px}
.sound-switch[aria-pressed="true"]{color:#c2f3dd;border-color:#83cfac88;background:#15352dc9}
.sound-switch.sound-attention{color:#ffe3b3;border-color:#ffc576;box-shadow:0 0 0 3px #ffb34c24,0 0 18px #ffb34c24}
.sound-switch[aria-busy="true"]{opacity:.8;cursor:wait}
.sound-hint{position:absolute;top:calc(100% + 12px);right:-8px;display:flex;width:244px;max-width:calc(100vw - 24px);border:1px solid #f4b96e;border-radius:7px;background:#13232ff5;box-shadow:0 10px 30px #0007;isolation:isolate;z-index:12}
.sound-hint[hidden]{display:none}
.sound-hint:before{content:"";position:absolute;top:-7px;right:23px;width:12px;height:12px;background:#13232f;border-left:1px solid #f4b96e;border-top:1px solid #f4b96e;transform:rotate(45deg);z-index:-1}
.sound-hint-action{flex:1;min-width:0;min-height:64px;padding:12px 0 12px 13px;text-align:left;color:#f9e1b7;background:none}
.sound-hint-action strong{display:block;font-size:12px;line-height:1.5;letter-spacing:-.3px}
.sound-hint-action span{display:block;margin-top:3px;font-size:10px;line-height:1.5;color:#c1d0dc;letter-spacing:-.3px}
.sound-hint-dismiss{flex:0 0 40px;min-height:44px;align-self:stretch;padding:0;color:#c1d0dc;background:none;font-size:22px}
.sound-hint-action:hover strong,.sound-hint-dismiss:hover{color:#fff}
.sound-hint-action:focus-visible,.sound-hint-dismiss:focus-visible,.sound-switch:focus-visible{outline:2px solid #fff0b6;outline-offset:3px}
#sound-control-play{display:none}
@media(max-width:360px){#header .brand small{display:none}}
@media(pointer:coarse),(max-width:700px),(pointer:coarse) and (orientation:landscape) and (max-height:600px){
 #hud #sound-control-play{display:block;position:fixed;top:calc(var(--hud-top) + 50px);right:var(--hud-right);z-index:9}
 #hud #sound-toggle-play{width:44px;height:44px;min-height:44px;pointer-events:auto}
 #hud #sound-control-play .sound-hint{right:50px;max-width:calc(100vw - var(--hud-left) - var(--hud-right) - 50px)}
 #hud #sound-control-play .sound-hint:before{display:none}
 body[data-world="fleet"] #hud[data-details="false"] #sound-control-play{right:calc(var(--hud-right) + 144px)}
 body[data-world="fleet"] #hud[data-details="false"] #sound-control-play .sound-hint{right:-94px}
}
/* Unlock stays beside the real forward sight, without chasing a target. */
#hud #target-lock{left:min(calc(var(--aim-home-x,50%) + 30px),calc(100% - 54px));top:calc(var(--aim-home-y,50%) - 22px)}
#hud[data-target-above="true"] #target-label{top:calc(var(--aim-y,50%) - 47px)}
#hud[data-target-above="true"] #target-health{top:calc(var(--aim-y,50%) - 21px)}

@media(pointer:coarse),(max-width:700px),(pointer:coarse) and (orientation:landscape) and (max-height:600px){
 #hud[data-details="false"] #combo{display:block;left:var(--hud-left);right:auto;top:calc(var(--hud-top) + 65px);max-width:110px;text-align:left;pointer-events:none}
 #hud[data-details="false"] #combo strong{font-size:20px;line-height:1.05}#hud[data-details="false"] #combo span{font-size:8px;letter-spacing:.5px}
}

/* Planetary expedition: a separate navigation instrument, away from the aim. */
.world-card.expedition{grid-column:1/-1;height:74px;border-color:#91c9e54a;background:#0b172d}
.expedition-art{background:radial-gradient(ellipse at 68% 70%,#274f6b80,transparent 50%),radial-gradient(ellipse at 25% 0%,#7158a259,transparent 60%),#091224}
.expedition-art:before{content:"";position:absolute;inset:0;background-image:radial-gradient(circle,#d7eeff 1px,transparent 1.5px),radial-gradient(circle,#d7eeff77 .6px,transparent 1.2px);background-size:101px 71px,73px 47px;background-position:7px 11px,39px 5px;opacity:.8}
.expedition-art .expedition-orbit{position:absolute;left:50%;top:50%;width:53%;height:145%;border:1px solid #b0dfff38;border-radius:50%;transform:translate(-50%,-50%) rotate(-20deg)}
.expedition-art .orbit-two{left:71%;width:44%;height:116%;transform:translate(-50%,-50%) rotate(24deg)}
.expedition-art .orbit-three{left:82%;width:26%;height:80%;border-color:#d4b7ff30;transform:translate(-50%,-50%) rotate(-14deg)}
.expedition-planet{position:absolute;display:block;border-radius:50%;box-shadow:inset -12px -7px 17px #030b27b3,0 0 12px #87d8ff2a}
.expedition-planet.planet-one{width:84px;height:84px;right:29%;top:-9px;background:radial-gradient(circle at 27% 25%,#daedd1,#83bdb0 27%,#4e8da7 48%,#183d63 80%);border:1px solid #aae6ef80}
.expedition-planet.planet-two{width:46px;height:46px;right:13%;top:24px;background:radial-gradient(circle at 28% 24%,#ffe5ae,#db9669 42%,#763f49 78%);border:1px solid #f3cf9777}
.expedition-planet.planet-three{width:30px;height:30px;right:5%;top:7px;background:radial-gradient(circle at 28% 24%,#e4d4ff,#9c80d9 37%,#3e3b77 80%)}
.expedition-planet.planet-four{width:22px;height:22px;right:47%;top:9px;background:radial-gradient(circle at 25% 24%,#e1f4ff,#8fbad9 40%,#355a7d 80%)}
.expedition-planet.planet-five{width:15px;height:15px;right:58%;top:49px;background:radial-gradient(circle at 25% 24%,#ffdaa3,#e97752 40%,#793d55 80%)}
.expedition-planet.planet-six{width:11px;height:11px;right:69%;top:13px;background:radial-gradient(circle at 25% 24%,#d4d0c6,#827a72 48%,#36343b 80%)}
.expedition-planet.planet-seven{width:25px;height:25px;right:59%;top:2px;background:radial-gradient(circle at 25% 24%,#d2e8bb,#4b9278 45%,#123f46 80%)}
.expedition-planet.planet-eight{width:19px;height:19px;right:75%;top:43px;background:radial-gradient(circle at 25% 24%,#e9c69b,#b37555 45%,#5a3334 80%)}
.expedition-planet.planet-nine{width:33px;height:33px;right:43%;top:44px;background:radial-gradient(circle at 25% 24%,#d6edf6,#5486a1 43%,#223b60 80%)}
.expedition-sun{position:absolute;width:146px;height:146px;right:-110px;top:-37px;border-radius:50%;background:radial-gradient(circle at 36% 40%,#fff4bb,#ffbf55 47%,#e77627 72%,#ab3d1a 93%);box-shadow:0 0 12px #ffd37ba8,0 0 40px #ffac493f,0 0 80px #e96c2924}
.world-card.expedition .world-art:after{background:linear-gradient(90deg,#071219e8,transparent 75%),linear-gradient(0deg,#07121988,transparent)}
.world-card.expedition .world-card-content{align-items:center;inset:0 14px}
.world-card.expedition .world-number{align-self:auto;margin:0}
.world-card.expedition .world-dot{flex:none}
.expedition-card-copy{margin-left:auto;max-width:200px;font-size:10px;line-height:1.6;color:#c5deeb;text-shadow:0 1px 6px #071219}
.cosmic-entry .expedition-cta{grid-column:1/-1;min-height:48px;justify-content:flex-start;padding:8px 11px;border-color:#91c9e54d;color:#d2eeff;background:linear-gradient(100deg,#142d3fce,#17253ab3)}
.cosmic-entry .expedition-cta>svg{width:23px;height:23px;color:#a8d9f8}
.cosmic-entry .expedition-cta span{font-size:12px}.cosmic-entry .expedition-cta small{font-size:8px;letter-spacing:.2px;color:#b7cddf}
.expedition-cta>b{margin-left:auto;font-size:19px;font-weight:400;color:#a8d9f8}
.menu-worlds .expedition-menu-card{grid-column:1/-1;min-height:86px;background:linear-gradient(115deg,#102b3c,#25283c);border-color:#91c9e54a}
.menu-worlds .expedition-menu-card svg{color:#b4ddff}
.recommend-badge{display:inline-block;margin-left:6px;padding:2px 5px;border:1px solid #ffe0a0;border-radius:3px;background:#ffd187;color:#182a36;font:700 9px/1.3 var(--font);letter-spacing:0;vertical-align:middle;white-space:nowrap}
.expedition-guide{border-left:2px solid #90c9e9;padding-left:14px;margin-bottom:20px}.expedition-guide>strong{color:#c7e7fb}
#expedition-readout{position:absolute;top:208px;right:var(--edge);width:270px;padding:12px 13px 10px;border:1px solid #96c9df3d;border-radius:5px;background:linear-gradient(130deg,#0a2131ed,#101a2ce8);box-shadow:0 8px 28px #0002;color:#e3f0f6;font-variant-numeric:tabular-nums;pointer-events:auto;z-index:4}
body:not([data-world="expedition"]):not([data-world="space"]) #expedition-readout,body:not([data-world="expedition"]):not([data-world="space"]) #expedition-marker{display:none}
.expedition-heading{display:flex;align-items:center;justify-content:space-between;gap:8px}.expedition-heading>small{font-family:var(--display);font-size:9px;letter-spacing:1.7px;color:#99b9cc}.expedition-heading>span{font-size:9px;color:#c3dce8;white-space:nowrap}
.expedition-destination-row{display:flex;align-items:center;justify-content:space-between;gap:7px;margin-top:6px}.expedition-picker{position:relative;display:block;flex:1;min-width:0}.expedition-picker>strong{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.expedition-picker:after{content:'⌄';position:absolute;right:10px;top:50%;transform:translateY(-60%);color:#9edaf5;font-size:17px;pointer-events:none}#expedition-select{display:block;width:100%;min-width:0;min-height:36px;padding:6px 27px 6px 8px;border:1px solid #a8d9f15c;border-radius:4px;background:#173449;color:#e2f2fc;color-scheme:dark;font:600 13px/1.4 var(--font);appearance:none;cursor:pointer;text-overflow:ellipsis}#expedition-select:hover{border-color:#c2eaffaa;background:#214359}#expedition-select:focus-visible{outline:2px solid #c1ecff;outline-offset:2px}.expedition-destination-row>span{flex:none;max-width:43%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border:1px solid #b8e7ff36;background:#8bc9ee0e;padding:2px 6px;border-radius:3px;font-size:9px;color:#b7e1f4}
#expedition-body-meta{margin:3px 0 0;font-size:9px;line-height:1.5;color:#a6c8da;letter-spacing:.2px}
#expedition-readout[data-final="true"]{border-color:#efbe775b;background:linear-gradient(130deg,#2a2018ed,#1d1b2be8)}
#expedition-readout[data-final="true"] #expedition-select{color:#ffe0a6;border-color:#efbe7766;background:#453124}
#expedition-readout[data-zone="corona"] .expedition-destination-row>span{color:#ffd1a0;border-color:#e7a45b65;background:#c46e2d1a}
.expedition-telemetry{display:flex;gap:14px;margin-top:8px;font-size:9px;color:#91aabd}.expedition-telemetry b{margin-left:4px;font-family:var(--display);font-size:13px;font-weight:500;color:#ccebf8;white-space:nowrap}
#expedition-route{margin:7px 0 8px;min-height:14px;font-size:10px;line-height:1.5;color:#b5c9d7;overflow-wrap:anywhere}
.expedition-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.expedition-actions>button{display:flex;align-items:center;justify-content:center;gap:7px;min-height:38px;padding:5px;border:1px solid #a2c5db47;border-radius:3px;font-size:10px;font-weight:600;background:#142b3d;color:#d9ebf6;white-space:nowrap}.expedition-actions>button:hover{background:#23445a;border-color:#b5e8ff99}.expedition-actions>button:nth-child(2){background:#214659;border-color:#9edcf16b}.expedition-actions>button.active{background:#36586b;border-color:#c7ecffad}.expedition-actions>button:last-child{background:#3a2a20;border-color:#dca46b5c;color:#f5d7b3}.expedition-actions>button:last-child.active{background:#64442b;border-color:#f3c584}.expedition-actions svg{width:11px;height:11px}.expedition-actions kbd{display:none}
body[data-world="space"] .expedition-picker:after{display:none}
body[data-world="space"] #expedition-select:disabled{opacity:1;cursor:default;padding-right:8px}
body[data-world="space"] .expedition-actions{grid-template-columns:repeat(2,minmax(0,1fr))}
.expedition-flight-help{display:block;margin-top:7px;font-size:8px;line-height:1.7;color:#8da8bb;letter-spacing:-.2px}.expedition-touch-help{display:none}
#expedition-marker{position:absolute;left:var(--expedition-marker-x,50%);top:var(--expedition-marker-y,40%);transform:translate(-50%,-100%) translateY(-26px);display:flex;align-items:center;gap:5px;max-width:160px;padding:4px 7px;border:1px solid #b2d8ec50;border-radius:3px;background:#0a2034b8;color:#c6e9ff;font-size:10px;line-height:1.4;text-shadow:0 1px 3px #000;pointer-events:none;z-index:3}
#expedition-marker[data-site="true"]{border-color:#f0b67b99;color:#ffe2bf;background:#302017d6}
#expedition-marker-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.expedition-marker-arrow{font-size:11px;font-style:normal;line-height:1;transform:rotate(var(--expedition-marker-angle,0rad));display:none}
#expedition-marker[data-offscreen="true"]{transform:translate(-50%,-50%);border-color:#bbdfff6b;background:#0c263ddd}#expedition-marker[data-offscreen="true"] .expedition-marker-arrow{display:block}
#expedition-labels{position:absolute;inset:0;pointer-events:none;z-index:2;overflow:hidden}
#expedition-labels[hidden],#expedition-labels [hidden]{display:none}
.expedition-body-label{position:absolute;left:0;top:0;color:#d8eaf3;font-family:var(--display);text-shadow:0 1px 3px #000,0 0 7px #000;pointer-events:none}
.expedition-body-label__copy{position:relative;display:flex;flex-direction:column;justify-content:center;box-sizing:border-box;width:100%;height:100%;padding:3px 5px;border-radius:3px;background:linear-gradient(110deg,#07131dc4,#07131d30)}
.expedition-body-label__name{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:11px;line-height:13px;letter-spacing:.07em}
.expedition-body-label__distance{display:block;white-space:nowrap;font-size:9px;line-height:11px;font-variant-numeric:tabular-nums;color:#a9c3d2}
.expedition-body-label__line{position:absolute;left:0;top:0;height:1px;transform-origin:0 50%;background:#badced73}
.expedition-body-label__dot{position:absolute;left:0;top:0;width:3px;height:3px;margin:-1px;border-radius:50%;background:#dbf2ff;box-shadow:0 0 4px #000}
.expedition-body-label[data-star="true"]{color:#ffe6b4}.expedition-body-label[data-star="true"] .expedition-body-label__dot{background:#ffe3a1}.expedition-body-label[data-star="true"] .expedition-body-label__line{background:#edcc8c80}
@media (pointer:coarse){.expedition-body-label__name{font-size:9px;line-height:12px;letter-spacing:.05em}.expedition-body-label__copy{padding:3px 5px}}
@media(max-width:700px){
 .world-card.expedition{height:65px}.expedition-card-copy{max-width:135px;font-size:9px}.world-card.expedition .world-card-content{inset:0 10px;gap:7px}.world-card.expedition .world-card-content small{font-size:7px;letter-spacing:.8px}.expedition-art .planet-one{right:28%;width:70px;height:70px}
 .cosmic-entry .expedition-cta{min-height:44px;padding:6px 9px;gap:8px}.cosmic-entry .expedition-cta>svg{width:20px;height:20px}.cosmic-entry .expedition-cta span{font-size:11px}.cosmic-entry .expedition-cta small{font-size:8px}
}
@media(pointer:coarse),(max-width:700px),(pointer:coarse) and (orientation:landscape) and (max-height:600px){
 #hud #expedition-readout{position:fixed;top:calc(var(--hud-top) + 65px);left:var(--hud-left);right:auto;width:min(270px,calc(100vw - var(--hud-left) - var(--hud-right) - 56px));padding:8px 9px 7px;z-index:6}
 .expedition-heading>small{font-size:8px;letter-spacing:.4px}.expedition-heading>span{font-size:9px}.expedition-destination-row{margin-top:5px;gap:5px}#expedition-select{min-height:44px;font-size:12px;padding-left:7px}.expedition-destination-row>span{font-size:8px;padding:1px 5px}.expedition-telemetry{margin-top:5px;font-size:9px;gap:12px}.expedition-telemetry b{font-size:12px}
 #expedition-route{font-size:9px;margin:5px 0;min-height:13px}.expedition-actions>button{min-height:44px;font-size:10px}.expedition-actions kbd{display:none}.expedition-flight-help{margin-top:5px;font-size:8px}.expedition-desktop-help{display:none}.expedition-touch-help{display:block}
 #hud[data-details="true"] #expedition-readout{display:none}body:is([data-world="expedition"],[data-world="space"]) #hud[data-details="false"] #combo{top:calc(var(--hud-top) + 290px)}
 #hud:has(#sound-control-play .sound-hint:not([hidden])) #expedition-readout{visibility:hidden}
 #expedition-marker{font-size:9px;max-width:130px;padding:3px 5px}
}
@media(pointer:coarse) and (orientation:landscape) and (max-height:600px){
 .cosmic-entry{grid-template-columns:repeat(4,minmax(0,1fr));width:370px}.cosmic-entry .expedition-cta{grid-column:auto;min-height:43px;padding:5px;justify-content:center}.cosmic-entry .expedition-cta small,.cosmic-entry .expedition-cta b{display:none}.cosmic-entry .expedition-cta span{font-size:9px}.cosmic-entry .expedition-cta>svg{width:16px;height:16px}
 .world-card.expedition{height:55px}.world-card.expedition .expedition-card-copy{display:none}.world-card.expedition .world-card-content{inset:0 9px}
 #hud #expedition-readout{width:188px;padding:6px 7px}.expedition-heading>small{letter-spacing:0;font-size:7px}.expedition-heading>span{font-size:8px}#expedition-select{font-size:11px}.expedition-destination-row>span{max-width:35%}.expedition-telemetry{gap:9px;font-size:8px}.expedition-telemetry b{font-size:11px}.expedition-actions{gap:4px}.expedition-actions>button{gap:2px;font-size:9px}.expedition-actions svg{display:none}.expedition-flight-help{display:none}
 body:is([data-world="expedition"],[data-world="space"]) #hud[data-details="false"] #combo{display:none}
}

/* Two quiet training worlds share the ordinary free-roam controls. */
.training-entry{display:grid;grid-template-columns:1fr 1fr;gap:7px;width:430px;max-width:100%;margin-top:8px}
.training-entry>button{display:flex;align-items:center;gap:8px;min-height:48px;padding:8px 10px;text-align:left;border:1px solid #cabde457;border-radius:3px;background:linear-gradient(110deg,#30293fdc,#17232ede);color:#eee4ff}
.training-entry>button:last-child{border-color:#e7d8b554;background:linear-gradient(110deg,#393629dc,#192a31dc);color:#ffedc6}
.training-entry>button:hover{border-color:#e8d8ff;background:#3b3546}.training-entry svg{width:21px;height:21px;flex:none}.training-entry span{font-size:11px;line-height:1.5;font-weight:700}.training-entry small{display:block;color:#bdbfca;font-size:8px;font-weight:400}.training-entry b{margin-left:auto;font-size:14px;font-weight:400}
.world-card.kingkai{border-color:#c1b0e34a}.world-card.timechamber{border-color:#e2d4b34a}
.menu-worlds [data-world="kingkai"] svg{color:#c7b8ef}.menu-worlds [data-world="timechamber"] svg{color:#e8d6a8}
#training-readout{position:absolute;left:var(--edge);top:235px;width:320px;color:#f2edf8;border:1px solid #c5b2e748;border-radius:5px;background:#15212be8;pointer-events:auto;z-index:7;overflow:hidden;box-shadow:0 5px 24px #0002}
.training-summary{display:flex;align-items:stretch;min-width:0}
#training-toggle{position:relative;display:flex;flex:1;min-width:0;min-height:67px;flex-direction:column;align-items:flex-start;justify-content:center;gap:3px;padding:9px 24px 9px 11px;text-align:left;background:none;border:0;color:inherit}
#training-eyebrow{font-size:8px;letter-spacing:.5px;color:#c0acd9}#training-title{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;font-weight:700}#training-metric{font-size:9px;line-height:1.4;color:#c7d5dd}
#training-toggle>b{position:absolute;right:9px;top:50%;font-size:13px;font-weight:400;transform:translateY(-50%);color:#b8c2cc}
#training-action{flex:0 0 82px;min-height:48px;padding:7px 9px;border:0;border-left:1px solid #c5b2e72c;background:#75618b2e;color:#efe0ff;font-size:11px;font-weight:700;line-height:1.6;word-break:keep-all}
#training-action:hover,#training-action:focus-visible{background:#7c67914a;color:white}#training-toggle:focus-visible,#training-action:focus-visible{outline:2px solid #d7bbf5;outline-offset:-3px}
.training-meter{height:2px;background:#a3b3c621}.training-meter>i{display:block;width:0;height:100%;background:linear-gradient(90deg,#bda2e9,#ffdda0);transition:width .2s}
#training-details{display:none;padding:11px;background:#11202bf0;border-top:1px solid #c5b2e71c}#training-readout[data-open="true"] #training-details{display:block}#training-readout[data-open="true"] #training-toggle>b{transform:translateY(-50%) rotate(180deg)}
#training-details>p{margin:0 0 8px;font-size:11px;line-height:1.8;color:#e0e4ed;word-break:keep-all}#training-details>small{font-size:9px;line-height:1.5;color:#a5b7c6}#training-details kbd{font:inherit;color:#e0d4ee}
#training-readout[data-world="timechamber"]{border-color:#e6cf9c50}#training-readout[data-world="timechamber"] #training-eyebrow{color:#e5d09f}#training-readout[data-world="timechamber"] #training-action{background:#b49b6326;color:#f9e7bd;border-color:#e6cf9c26}
body[data-world="timechamber"] #reticle{color:#163d50;opacity:1;filter:drop-shadow(0 0 1px #fff) drop-shadow(0 0 3px #fffc)}
body[data-world="timechamber"] #reticle.targeted{color:#87451c}body[data-world="timechamber"] #reticle.locked{color:#125e54}
body[data-world="timechamber"] #target-label:not(:empty){padding:2px 6px;background:#142633e8;border-radius:3px;color:#ffdfac;text-shadow:none}
body.cinematic #training-readout{opacity:0;pointer-events:none}
@media(min-width:1001px) and (min-height:601px){
 .world-card.expedition{grid-column:auto;height:82px}.world-card.expedition .world-card-content{inset:auto 8px 11px}.world-card.expedition .expedition-card-copy{display:none}.world-card.expedition .world-number{font-size:9px}.world-card.expedition .world-card-content small{letter-spacing:.5px;font-size:8px}
}
@media(pointer:coarse),(max-width:700px),(pointer:coarse) and (orientation:landscape) and (max-height:600px){
 #hud #training-readout{position:fixed;top:calc(var(--hud-top) + 61px);left:var(--hud-left);width:min(310px,calc(100vw - var(--hud-left) - var(--hud-right) - 54px));border-radius:4px}
 #training-toggle{min-height:60px;padding:7px 21px 7px 9px;gap:2px}#training-title{font-size:11px}#training-eyebrow{font-size:7px;letter-spacing:.1px}#training-metric{font-size:8px}#training-action{flex-basis:70px;font-size:10px;padding:6px}
 #training-details{max-height:calc(100dvh - var(--dock-height) - var(--dock-bottom) - var(--hud-top) - 140px);overflow:auto;overscroll-behavior:contain}#training-details>small{font-size:8px}
 #hud[data-details="true"] #training-readout{display:none}body:is([data-world="kingkai"],[data-world="timechamber"]) #hud[data-details="false"] #combo{display:none}
 #hud:has(#sound-control-play .sound-hint:not([hidden])) #training-readout{visibility:hidden}
 .training-entry{width:100%;gap:5px}.training-entry>button{padding:7px 8px;min-height:47px;gap:6px}.training-entry svg{width:17px;height:17px}.training-entry span{font-size:10px}.training-entry small{font-size:7px}
}
@media(pointer:coarse) and (orientation:landscape) and (max-height:600px){
 .world-cards{grid-template-columns:repeat(3,minmax(0,1fr))}.world-card,.world-card.expedition{height:55px;grid-column:auto}.world-card.expedition .world-card-content{inset:auto 9px 10px}.world-card-content strong{font-size:9px}.world-card-content small{font-size:6px;letter-spacing:.1px}.world-selector{bottom:48px}
 .training-entry{width:370px;max-width:100%;margin-top:5px}.training-entry>button{min-height:40px;padding:5px 7px}.training-entry small{display:none}.training-entry span{font-size:9px}.training-entry svg{width:15px;height:15px}
 #hud #training-readout{width:min(300px,calc(50vw - 24px))}#training-toggle{min-height:51px}#training-eyebrow{display:none}#training-details{padding:7px 9px}#training-details>p{font-size:10px;line-height:1.6}
}
@media(max-width:380px){.expedition-card-copy{max-width:115px;font-size:8px}.cosmic-entry .expedition-cta small{font-size:7px}}

/* Desktop camera buttons leave room for fullscreen, music and sound. */
@media(min-width:1101px) and (min-height:601px) and (pointer:fine){
 body.playing .battle-actions{gap:172px}
 /* The desktop header already owns fullscreen; its touch duplicate used to
    cover the destruction counter at the upper right. */
 body.playing #hud .hud-utilities{display:none}
}

/* V66: navigation is a deliberate disclosure; the default view is one instrument. */
#hud #expedition-readout{padding:0;overflow:visible}
#expedition-nav-toggle{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;min-height:52px;padding:6px 10px;text-align:left;border-radius:5px;color:#dceefa;background:#0a1b27b8}
.expedition-compact-state{display:flex;flex:1;min-width:0;flex-direction:column;gap:3px}
#expedition-nav-toggle #expedition-destination{position:static;display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;line-height:17px;font-weight:650}
#expedition-nav-toggle .expedition-telemetry{display:flex;gap:10px;margin:0;font-size:9px;line-height:14px;white-space:nowrap}
#expedition-nav-toggle .expedition-telemetry b{margin-left:3px;font-family:var(--font);font-size:10px;font-weight:500}
#expedition-nav-label{flex:none;font-size:10px;color:#a8d9f2;white-space:nowrap}
#expedition-nav-details{padding:9px 10px 10px;border-top:1px solid #a8c9dd30;max-height:calc(100dvh - 330px);overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;background:#0a1b29f2;border-radius:0 0 5px 5px}
#expedition-readout[data-navigation="false"] #expedition-nav-details{display:none}
#expedition-readout[data-navigation="true"] #expedition-nav-toggle{background:#173449e8}
#expedition-readout[data-navigation="true"] #expedition-nav-label{color:#effbff}
#expedition-readout[data-final="true"] #expedition-nav-toggle{background:#2d241bb8}
#expedition-readout[data-final="true"] #expedition-nav-label{color:#ffdca7}
#expedition-select,.expedition-actions>button{min-height:44px}
@media(pointer:coarse),(max-width:700px),(pointer:coarse) and (orientation:landscape) and (max-height:600px){
 #hud #expedition-readout{top:calc(var(--hud-top) + 50px);left:var(--hud-left);right:auto;width:min(270px,calc(100vw - var(--hud-left) - var(--hud-right) - 56px));padding:0;background:none;box-shadow:none;border-color:#96c9df30;z-index:7}
 #hud #expedition-nav-toggle{min-height:52px;padding:5px 8px}
 #hud #expedition-nav-details{max-height:calc(100dvh - var(--hud-top) - var(--dock-height) - var(--dock-bottom) - 118px);padding:9px 8px 10px}
 #hud[data-details="true"] #expedition-readout{display:none}
 #hud:has(#sound-control-play .sound-hint:not([hidden])) #expedition-readout{visibility:visible}
 #hud[data-details="false"] #combo,body:is([data-world="expedition"],[data-world="space"]) #hud[data-details="false"] #combo{display:none}
 /* During combat the meter owns one strip, not a solid card above the actor. */
 #hud #charge-ui,body[data-camera="observer"] #hud #charge-ui{display:grid;grid-template-columns:64px minmax(0,1fr);grid-template-rows:18px 3px 11px;gap:2px 7px;left:50%;top:auto;bottom:calc(var(--dock-height) + var(--dock-bottom) + 6px);transform:translateX(-50%);width:min(270px,calc(100vw - 44px));padding:3px 8px;border:1px solid #a8d7eb30;border-radius:4px;background:linear-gradient(100deg,#0a1a2580,#0b1b2870);box-shadow:none;text-align:left;pointer-events:none;text-shadow:0 1px 3px #000}
 #hud #charge-ui>#charge-label,#hud #charge-ui>.charge-stage-meter{display:none}
 #hud #charge-ui>#charge-percent{grid-column:1;grid-row:1;font-size:18px;line-height:18px;margin:0}
 #hud #charge-ui>#charge-stage{grid-column:2;grid-row:1;font-size:10px;line-height:18px;margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 #hud #charge-ui>.charge-main-meter{grid-column:1/-1;grid-row:2;height:3px;margin:0}
 #hud #charge-ui>#charge-stats{grid-column:1/-1;grid-row:3;font-size:9px;line-height:11px;margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 #hud #charge-ui>#charge-hint,#hud #charge-ui[data-extreme="charging"]>#charge-hint,#hud #charge-ui[data-extreme="ready"]>#charge-hint{display:none}
 #hud #charge-ui[data-extreme="ready"]{border-color:#d6f4ff88;background:#152632b3;box-shadow:none}
 #hud #online-count{font-size:8px;line-height:12px;top:calc(var(--hud-top) + 45px)}
 body:is([data-world="expedition"],[data-world="space"]) #hud #online-count{display:none}
 /* A hint is transient. It clears the navigation strip while the user opts in. */
 #hud:has(#sound-control-play .sound-hint:not([hidden])) #expedition-nav-toggle{opacity:.55}
 #hud:has(#sound-control-play .sound-hint:not([hidden])) #expedition-readout[data-navigation="true"] #expedition-nav-details{visibility:hidden}
}
@media(pointer:coarse) and (orientation:landscape) and (max-height:600px){
 #hud #expedition-readout{width:min(242px,calc(100vw - var(--hud-left) - var(--hud-right) - 56px))}
 #hud #expedition-nav-toggle{min-height:48px;padding:3px 8px}
 #hud #expedition-nav-toggle #expedition-destination{font-size:11px;line-height:16px}
 #hud #expedition-nav-toggle .expedition-telemetry{font-size:8px;gap:8px;line-height:13px}
 #hud #expedition-nav-toggle .expedition-telemetry b{font-size:9px}
 #hud #charge-ui,body[data-camera="observer"] #hud #charge-ui{width:min(270px,calc(100vw - 290px))}
}

/* Final entry composition. Flow layout keeps nine worlds and optional quick
   starts reachable at every height, while the 3D scene remains the backdrop. */
#landing{--landing-edge:clamp(22px,5vw,88px);position:fixed;inset:0;display:grid;grid-template-columns:minmax(320px,.88fr) minmax(0,1.12fr);grid-template-rows:1fr auto;align-items:center;column-gap:clamp(32px,7vw,128px);row-gap:28px;padding:132px var(--landing-edge) max(20px,env(safe-area-inset-bottom,0px));overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;scroll-padding-top:128px;pointer-events:auto;scrollbar-width:thin;scrollbar-color:#48616c #09121a}
#landing .landing-shade{position:fixed;inset:0;z-index:-1;pointer-events:none;background:linear-gradient(90deg,#080e14ee 0%,#080e14b0 34%,#080e142c 66%),linear-gradient(0deg,#071019f2,transparent 80%)}
#landing .hero-copy{position:relative;inset:auto;width:100%;max-width:480px;min-width:0;align-self:center}
#landing .eyebrow{font-size:11px;letter-spacing:1.65px;line-height:1.5}
#landing h1{font-size:clamp(66px,6.7vw,104px);line-height:1.04;letter-spacing:-.075em;margin:19px 0 22px}
#landing .hero-description{display:block;margin:0 0 23px;font-size:13px;line-height:1.85;color:#c1cdd2;word-break:keep-all}
#landing .selected-world{display:flex;align-items:center;flex-wrap:wrap;gap:7px;margin-bottom:10px;font-size:10px;color:#99adb7;line-height:1.7}
#landing .selected-world .tiny-dot{width:4px;height:4px;background:#ffd293}
#landing .selected-world strong{font-size:11px;font-weight:600;color:#f4e7cf}
#landing .hero-buttons{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:8px}
#landing .hero-buttons button{min-width:0;min-height:52px;padding:0 13px;gap:8px;font-size:12px;white-space:nowrap}
#landing .hero-buttons .button-arrow{width:14px;margin-left:auto}
#landing .expedition-spotlight{display:flex;align-items:center;width:100%;min-height:64px;padding:11px 14px;gap:11px;margin:12px 0 0;text-align:left;border:1px solid #a6d8ee69;border-radius:3px;background:linear-gradient(110deg,#183d50e8,#172638d9);color:#e3f6ff;box-shadow:inset 0 1px #dbf5ff0a;transition:background .18s,border-color .18s}
#landing .expedition-spotlight:hover{border-color:#c2ecff;background:linear-gradient(110deg,#27536be8,#24354bd9)}
#landing .expedition-spotlight>svg{width:27px;height:27px;color:#9edcf7}
#landing .expedition-spotlight>span{min-width:0;font-size:13px;font-weight:700;line-height:1.5}
#landing .expedition-spotlight small{display:block;margin-top:3px;color:#b7cfdd;font-size:10px;font-weight:400;line-height:1.5;white-space:normal;word-break:keep-all}
#landing .expedition-spotlight>b{display:block;margin-left:auto;font-size:21px;font-weight:400;color:#a7ddf7}
#landing .recommend-badge{font-size:9px;padding:2px 5px}
#landing .quick-entry{margin-top:8px;width:100%;border-bottom:1px solid #afc7d42b}
#landing .quick-entry>summary{display:flex;align-items:center;gap:8px;min-height:44px;padding:8px 2px;list-style:none;color:#d8e3e9;font-size:11px;font-weight:500;cursor:pointer}
#landing .quick-entry>summary::-webkit-details-marker{display:none}
#landing .quick-entry>summary:after{content:'＋';margin-left:auto;color:#ffbd7d;font-size:16px;font-weight:400}
#landing .quick-entry[open]>summary:after{content:'−'}
#landing .quick-entry>summary>span{margin-left:auto;font-size:9px;color:#8fa7b4;font-weight:400}
#landing .quick-entry>summary:focus-visible,.guide-topic>summary:focus-visible{outline:2px solid #8de7fa;outline-offset:2px}
#landing .quick-entry-content{padding:0 0 12px}
#landing .cosmic-entry{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:100%;gap:6px;margin:0}
#landing .cosmic-entry .planet-cta{display:flex;align-items:center;justify-content:flex-start;min-width:0;min-height:56px;gap:7px;padding:8px}
#landing .cosmic-entry .planet-cta>svg{display:block;width:19px;height:19px}
#landing .cosmic-entry .planet-cta span{font-size:11px;line-height:1.5;white-space:normal}
#landing .cosmic-entry .planet-cta small{display:block;font-size:9px;line-height:1.5;letter-spacing:-.4px;white-space:normal;word-break:keep-all}
#landing .training-entry{width:100%;gap:6px;margin-top:6px}
#landing .training-entry>button{min-height:56px;padding:8px;gap:8px}
#landing .training-entry svg{width:20px;height:20px}
#landing .training-entry span{font-size:11px;line-height:1.5}
#landing .training-entry small{display:block;font-size:9px;line-height:1.5;color:#c0c8d4}
#landing .hero-note{display:flex;font-size:10px;margin-top:14px;gap:7px;color:#9eb1ba}
#landing .hero-character-label,#landing .hero-power{display:none}
#landing .world-selector{position:relative;inset:auto;min-width:0;width:100%;align-self:center}
#landing .section-title{display:flex;align-items:flex-end;justify-content:space-between;gap:10px;margin-bottom:7px}
#landing .section-eyebrow{display:block;font:500 10px/1.5 var(--display);letter-spacing:2px;color:#a5bbc6}
#landing .section-title h2{margin:7px 0 0;font-size:clamp(17px,1.8vw,23px);font-weight:700;letter-spacing:-.6px;line-height:1.4;word-break:keep-all}
#landing .section-title>.world-count{display:block;flex:none;padding:4px 7px;border:1px solid #b8d0da33;border-radius:3px;background:#10202cc7;font-size:9px;letter-spacing:0;color:#bdd1db}
#landing .world-selection-hint{margin:0 0 16px;font-size:10px;line-height:1.7;color:#97aebc;word-break:keep-all}
#landing .world-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
#landing .world-card,#landing .world-card.expedition{height:112px;min-height:72px;grid-column:auto;border-radius:4px;border-color:#c1d7e53d;transition:border-color .18s,box-shadow .18s}
#landing .world-card:hover{border-color:#e0ecf7ab}
#landing .world-card.selected{border-color:#ffc27e;box-shadow:inset 0 -3px #ffac60,0 0 0 1px #ffac601c}
#landing .world-card .world-art:after{background:linear-gradient(0deg,#07131af5 0%,#07131aba 42%,#07131a12 100%)}
#landing .world-card .world-card-content,#landing .world-card.expedition .world-card-content{inset:auto 11px 13px;display:flex;align-items:center;gap:7px}
#landing .world-number,#landing .world-card.expedition .world-number{font-size:10px;align-self:flex-start;margin-top:2px;color:#b3c6d1}
#landing .world-card-content strong{min-width:0;font-size:12px;line-height:1.4;font-weight:700;color:#f4f8f7;word-break:keep-all}
#landing .world-card .world-card-content small,#landing .world-card.expedition .world-card-content small{display:block;font-size:9px;line-height:1.3;letter-spacing:.4px;margin-top:5px;color:#acc4d1;font-weight:500}
#landing .world-dot{width:6px;height:6px;margin-left:auto;flex:none}
#landing .world-card .recommend-badge{font-size:8px;padding:1px 4px;margin-left:4px}
#landing .expedition-card-copy{display:none}
#landing .landing-footer{grid-column:1/-1;position:relative;inset:auto;width:100%;min-height:44px;gap:16px;display:flex;align-items:center;justify-content:space-between;border-top:1px solid #bfd3df1e;padding-top:12px;color:#91a7b4}
#landing .landing-footer>span:first-child{display:block;font-size:10px}
#landing .landing-links{display:flex;gap:22px}
#landing .landing-footer button{min-height:44px;font-size:11px}
#landing .landing-footer>span:last-child{font-size:9px;max-width:none;line-height:1.6;letter-spacing:1px;text-align:right}
body:not(.playing) #header{background:linear-gradient(180deg,#09121bf2,#09121bd9);backdrop-filter:blur(12px)}
#pause-button{flex-direction:column;gap:2px}
#pause-button svg{width:16px;height:16px}
#pause-button>span{font-size:9px;line-height:12px;font-weight:600}

/* Menus put common choices first and retain reference mechanics as disclosures. */
.modal{scroll-padding-top:24px}
.modal-heading{padding-bottom:6px}
.modal-tabs{position:sticky;top:0;z-index:2;padding-top:12px;margin-top:15px;background:#101c24;box-shadow:0 9px 10px #101c24}
.menu-worlds>button{min-height:118px;gap:9px;border-radius:4px}
.menu-worlds small{font-size:10px;line-height:1.65;color:#b4c9d5}
.menu-worlds .expedition-menu-card{grid-column:auto;min-height:118px}
.menu-bottom{position:sticky;bottom:0;padding:14px 0 4px;background:linear-gradient(180deg,#101c24ec,#101c24 20%);z-index:1;border-top:1px solid #b6d3e226;flex-wrap:wrap;gap:12px 22px}
.guide-intro{padding:15px 16px;margin-bottom:8px;border-left:2px solid #ffb26d;background:#192c37;border-radius:0 4px 4px 0}
.guide-intro>strong{font-size:13px;font-weight:700;line-height:1.6;color:#fff0d8}
.guide-intro>p{margin:7px 0 0;font-size:11px;line-height:1.85;color:#c1d3dc;word-break:keep-all}
.landing-power-recipe{margin-top:12px;padding:12px 14px;border-left:2px solid #ffc180;background:#17242de0;border-radius:0 4px 4px 0;word-break:keep-all}
.landing-power-recipe>strong{font-size:11px;color:#ffce99}
.landing-power-recipe>p{font-size:11px;line-height:1.8;color:#d1dfe6;margin:5px 0}
.landing-power-recipe>button{min-height:36px;padding:5px 0;font-size:10px;color:#b9e9f7;display:flex;align-items:center;gap:10px}
.landing-power-recipe>button:focus-visible{outline:2px solid #8de7fa;outline-offset:3px}
.power-recipe{padding:16px 18px;border:1px solid #d5a66766;border-radius:5px;background:linear-gradient(135deg,#2e2924,#142a36);word-break:keep-all}
.power-recipe>small{font-size:10px;color:#ffd09c;letter-spacing:.5px}
.modal-panel .power-recipe>h3{margin:7px 0 8px;text-align:left;font-size:19px;line-height:1.5;letter-spacing:-.5px;color:#fff0d8}
.power-recipe .recipe-lead{font-size:12px;line-height:1.8;color:#d9e8ed;margin:0 0 13px}
.recipe-steps{list-style:none;counter-reset:recipe-step;padding:0;margin:0;display:grid;gap:12px}
.recipe-steps>li{counter-increment:recipe-step;position:relative;padding-left:31px;min-width:0}
.recipe-steps>li:before{content:counter(recipe-step);position:absolute;left:0;top:0;width:22px;height:22px;display:grid;place-items:center;border:1px solid #f2bc7c77;border-radius:50%;font-size:11px;color:#ffd6a7;background:#ba874014}
.recipe-steps strong{display:block;font-size:12px;line-height:1.75;color:#f4e8d8}
.recipe-steps span{display:block;margin-top:3px;font-size:11px;line-height:1.85;color:#bfced7;overflow-wrap:anywhere}
.recipe-steps b{font-weight:600;color:#e3edf2}
.power-recipe kbd,.power-tips kbd{font-size:10px;line-height:1.8;padding:1px 5px;color:#ecf7fc;border-color:#9bb9c259;background:#12303f}
.recipe-steps .recipe-touch{display:none}
.power-tips{display:grid;gap:10px;list-style:none;margin:14px 0 22px;padding:0;word-break:keep-all}
.power-tips>li{font-size:11px;line-height:1.85;color:#b5cad6;padding-left:12px;border-left:2px solid #79bdd35c}
.power-tips strong{display:block;color:#e3eff5;font-size:11px}
.charge-table-wrap{overflow-x:auto;margin:8px 0 14px}
.charge-guide-table{width:100%;border-collapse:collapse;font-size:11px;text-align:left}
.charge-guide-table th,.charge-guide-table td{padding:8px;border-bottom:1px solid #abc6d426;line-height:1.7}
.charge-guide-table thead th{color:#e9d2b2;font-weight:600;background:#ffffff06}
.charge-guide-table tbody th{font-weight:400;color:#cfdee5}
#hud-guide-open,#hud-power-advice{display:none}
@media(pointer:coarse),(max-width:700px),(pointer:coarse) and (orientation:landscape) and (max-height:600px){
 .recipe-steps .recipe-touch{display:block}.recipe-steps .recipe-pc{display:none}
 #hud[data-details="true"] #hud-power-advice{display:block;margin:0;padding:10px 12px;color:#edddc5;background:#b88e3c12;border-left:2px solid #ffc18077;font-size:11px;line-height:1.8;word-break:keep-all}
 #hud[data-details="true"] #hud-guide-open{display:flex;justify-content:space-between;gap:8px;min-height:44px;width:100%;padding:9px 12px;color:#d0eff8;background:#173c4f;border:1px solid #9acfe759;pointer-events:auto}
 #hud[data-details="false"] #hud-guide-open,#hud[data-details="false"] #hud-power-advice{display:none}
 #hud[data-details="true"] #planet-detail,#hud[data-details="true"] #cosmic-detail{display:block;font-size:10px;line-height:1.7;margin-top:6px;color:#c8dee8;word-break:keep-all;overflow-wrap:anywhere}
 body[data-world="fleet"] #hud[data-details="true"] #cosmic-detail{grid-column:1/-1;grid-row:4}
}
@media(max-width:520px){
 .power-recipe{padding:14px 12px}.modal-panel .power-recipe>h3{font-size:17px}
 .recipe-steps>li{padding-left:29px}.recipe-steps{gap:11px}
 .landing-power-recipe>button{min-height:44px}.charge-guide-table th,.charge-guide-table td{padding:7px 5px}
}
.modal-panel .controls-grid{gap:0 22px;margin-bottom:22px;grid-template-columns:1fr 1fr}
.controls-grid>div{padding:12px 0;min-width:0}
.controls-grid kbd{flex:none;color:#e5f4f8;border-color:#95b9ca4a}
.controls-grid span{font-size:11px;color:#b6cbd7;word-break:keep-all}
.modal-panel .guide-disclosure-hint{font-size:11px;color:#9db7c7;margin:18px 0 12px;line-height:1.7}
.modal-panel .guide-topic{margin:0;border-top:1px solid #a8cbd52a;color:#bcd0dc}
.modal-panel .guide-topic:last-child{border-bottom:1px solid #a8cbd52a}
.modal-panel .guide-topic>summary{display:flex;align-items:center;gap:12px;list-style:none;min-height:50px;padding:12px 3px;color:#e0ecf2;font-size:12px;font-weight:600;line-height:1.6;cursor:pointer}
.guide-topic>summary::-webkit-details-marker{display:none}
.guide-topic>summary:after{content:'＋';margin-left:auto;flex:none;font-size:17px;font-weight:400;color:#9ccce3}
.guide-topic[open]>summary:after{content:'−'}
.guide-topic[open]>summary{color:#ffc78c}
.guide-topic>div{padding:0 3px 10px}
.guide-topic p{margin:0 0 13px;font-size:12px;line-height:1.95;word-break:keep-all;overflow-wrap:anywhere;color:#b6cbd7}
.modal-panel h3.settings-section{font-size:11px;letter-spacing:.5px;text-align:left;color:#ffd09c;padding:18px 0 7px;margin:14px 0 0;border-bottom:1px solid #d6a66c44}
.modal-panel h3.settings-section:first-child{margin-top:0;padding-top:0}
.setting-row>div{min-width:0;flex:1}
.setting-row small{color:#adc3d0}
.setting-row input{min-width:80px;flex:none}
.setting-row select{max-width:46%;color-scheme:dark}

@media(max-width:1100px){
 #landing{--landing-edge:clamp(22px,4vw,44px);column-gap:30px;grid-template-columns:minmax(310px,.9fr) minmax(0,1.1fr);padding-top:122px}
 #landing h1{font-size:72px}
 #landing .world-card,#landing .world-card.expedition{height:106px}
 #landing .world-card-content strong{font-size:11px}
 #landing .world-card .world-card-content,#landing .world-card.expedition .world-card-content{inset:auto 8px 12px;gap:5px}
 #landing .world-number{display:none}
 #landing .world-card .world-card-content small{font-size:9px;letter-spacing:.1px}
 #landing .landing-footer>span:first-child{display:none}
}
@media(max-width:850px){
 #landing{grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto auto;align-content:start;gap:30px;padding:106px var(--landing-edge) max(20px,env(safe-area-inset-bottom,0px))}
 #landing .hero-copy{max-width:560px;align-self:start}
 #landing h1{font-size:72px;margin:16px 0 18px}
 #landing .world-selector{max-width:none}
 #landing .world-card,#landing .world-card.expedition{height:100px}
 #landing .world-card-content strong{font-size:13px}
 #landing .world-number{display:block}
 #landing .world-selection-hint{margin-bottom:12px;font-size:11px}
 #landing .section-title h2{font-size:22px}
 #landing .hero-description{font-size:13px}
 body:not(.playing) #header{height:82px;padding:0 var(--landing-header-edge,22px)}
 body:not(.playing) #header .top-nav,body:not(.playing) #header .live-tag{display:none}
 body:not(.playing) #header .icon-button{width:44px;min-width:44px;height:44px}
 body:not(.playing) #header .brand{font-size:23px}
 body:not(.playing) #header .top-actions{gap:6px}
}
@media(max-width:520px){
 #landing{--landing-edge:max(18px,env(safe-area-inset-left,0px));gap:26px;padding-top:104px;scroll-padding-top:100px}
 #landing h1{font-size:66px;margin:14px 0 18px}
 #landing .eyebrow{font-size:10px;letter-spacing:1px}
 #landing .hero-description{font-size:12px;margin-bottom:18px}
 #landing .hero-buttons button{font-size:12px;min-height:52px;padding:0 12px;gap:7px}
 #landing .world-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 #landing .world-card,#landing .world-card.expedition{height:92px}
 #landing .world-card .world-card-content,#landing .world-card.expedition .world-card-content{inset:auto 10px 12px;gap:6px}
 #landing .world-card-content strong{font-size:12px}
 #landing .world-number{display:none}
 #landing .world-card .world-card-content small,#landing .world-card.expedition .world-card-content small{font-size:9px;letter-spacing:.1px}
 #landing .section-title h2{font-size:19px}
 #landing .world-selection-hint{font-size:10px}
 #landing .world-card.expedition{grid-column:1/-1;height:86px}
 #landing .world-card.expedition .world-card-content{inset:0 13px;gap:10px}
 #landing .world-card.expedition .world-number{display:block;align-self:center;margin:0;font-size:11px}
 #landing .world-card.expedition .expedition-card-copy{display:block;max-width:120px;font-size:10px}
 #landing .landing-footer{gap:10px;flex-wrap:wrap;padding-top:8px}
 #landing .landing-footer>span:last-child{max-width:150px;font-size:8px;letter-spacing:.7px}
 .modal-tabs{top:0;padding-top:8px}
 .menu-bottom{bottom:0}
 .menu-worlds{grid-template-columns:repeat(2,minmax(0,1fr))}
 .menu-worlds .expedition-menu-card{grid-column:1/-1;min-height:100px}
 .modal-panel .controls-grid{grid-template-columns:1fr;gap:0}
 .controls-grid>div{flex-direction:row;align-items:center;gap:12px}
 .controls-grid span{text-align:right}
 .modal{border-radius:6px}
 .setting-row{gap:14px}
 .setting-row input{width:95px}
 .guide-topic p{font-size:11px}
}
@media(max-width:420px){
 body:not(.playing) #header{padding:0 14px}
 body:not(.playing) #header #music-open{display:none}
 body:not(.playing) #header .brand{font-size:21px;gap:8px}
 body:not(.playing) #header .brand small{font-size:6px;letter-spacing:1.1px}
 body:not(.playing) #header .brand-mark{width:29px;height:34px;font-size:34px}
 body:not(.playing) #header .top-actions{gap:4px}
 #landing .expedition-spotlight{padding:10px 12px}
 #landing .cosmic-entry .planet-cta{padding:7px 6px;gap:5px}
 #landing .cosmic-entry .planet-cta>svg{width:16px;height:16px}
 #landing .cosmic-entry .planet-cta span{font-size:10px}
 #landing .cosmic-entry .planet-cta small{font-size:9px}
}
@media(pointer:coarse) and (orientation:landscape) and (max-height:600px) and (min-width:651px){
 #landing{--landing-edge:max(22px,env(safe-area-inset-left,0px));grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);grid-template-rows:auto auto;gap:24px;padding-top:84px;padding-bottom:max(12px,env(safe-area-inset-bottom,0px));align-content:start;scroll-padding-top:80px}
 body:not(.playing) #header{height:64px;padding:0 max(22px,env(safe-area-inset-left,0px))}
 body:not(.playing) #header .brand{font-size:21px}
 body:not(.playing) #header .brand-mark{height:32px;width:28px;font-size:31px}
 body:not(.playing) #header .icon-button{height:44px;width:44px}
 #landing .hero-copy{max-width:none;align-self:start}
 #landing .eyebrow{font-size:9px;letter-spacing:.8px}
 #landing h1{font-size:52px;margin:12px 0 14px}
 #landing .hero-description{font-size:11px;margin-bottom:15px;line-height:1.7}
 #landing .hero-buttons button{min-height:46px;font-size:11px;padding:0 9px;gap:5px}
 #landing .hero-buttons .button-arrow{display:none}
 #landing .selected-world{margin-bottom:7px}
 #landing .expedition-spotlight{min-height:60px;margin-top:10px;padding:8px 10px;gap:8px}
 #landing .expedition-spotlight small{font-size:9px}
 #landing .hero-note{font-size:9px;margin-top:10px}
 #landing .section-title h2{font-size:18px}
 #landing .section-eyebrow{font-size:9px;letter-spacing:1px}
 #landing .section-title>.world-count{font-size:8px;padding:3px 5px}
 #landing .world-selection-hint{font-size:9px;margin-bottom:10px}
 #landing .world-cards{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
 #landing .world-card,#landing .world-card.expedition{height:85px;grid-column:auto}
 #landing .world-card-content strong{font-size:11px}
 #landing .world-card .world-card-content,#landing .world-card.expedition .world-card-content{inset:auto 7px 10px;gap:4px}
 #landing .world-number,#landing .world-card.expedition .world-number,#landing .expedition-card-copy{display:none}
 #landing .world-card .world-card-content small,#landing .world-card.expedition .world-card-content small{font-size:8px;letter-spacing:0}
 #landing .world-card .recommend-badge{font-size:7px;padding:1px 3px;margin-left:2px}
 #landing .landing-footer{padding-top:8px;min-height:44px;flex-wrap:nowrap}
 .modal-tabs{top:0}
 .menu-bottom{bottom:0}
}
@media(prefers-reduced-motion:reduce){
 #landing button,#landing .world-art,.modal .switch:before,.modal .switch>span{transition:none}
}
@media(max-width:360px){
 body:not(.playing) #header .brand{font-size:18px;line-height:.9}
 body:not(.playing) #header .brand-light{display:block;font-size:17px;margin-top:4px;letter-spacing:.7px}
 body:not(.playing) #header .brand small{display:none}
 #landing h1{font-size:60px}
 #landing .hero-buttons button{font-size:11px;padding:0 10px;gap:6px}
 #landing .hero-buttons .button-arrow{display:none}
}

/* Keep mouse look beside the PC key hints and free a thumb for touch charging. */
#power-latch-button{display:none}
#mouse-look-button{display:inline-flex;align-items:center;gap:6px;min-height:28px;padding:3px 8px;border:1px solid #9ac5d65c;border-radius:3px;background:#102a37e8;color:#d8edf6}
.desktop-help>#mouse-look-button>span{display:inline;width:auto;height:auto;margin:0;border:0;border-radius:0;font-size:10px}
#mouse-look-button.active{border-color:#b5f0ff;background:#245367;color:#effcff}
#hud #power-latch-button[aria-pressed="true"]{background:#24596df0;border-color:#d7faff;box-shadow:inset 0 -3px #c5f4ff}
@media(pointer:coarse),(max-width:700px){
 #hud #power-latch-button{display:flex;grid-column:2;grid-row:1;min-width:44px;min-height:44px;padding:0 2px;font-size:10px;line-height:1.3;border-color:#90d9ed99}
 #hud #power-button{grid-column:1}
}
@media(pointer:coarse) and (orientation:landscape) and (max-height:600px){
 #hud #power-button,#hud #power-latch-button,#hud #kaioken-button,#hud #fly-button,#hud #teleport-button{grid-column:2;grid-row:1;justify-self:start;width:calc((100% - 16px)/5);min-width:44px}
 #hud #power-button{margin-left:0}
 #hud #power-latch-button{margin-left:calc((100% + 4px)/5)}
 #hud #kaioken-button{margin-left:calc((100% + 4px)*2/5)}
 #hud #fly-button{margin-left:calc((100% + 4px)*3/5)}
 #hud #teleport-button{margin-left:calc((100% + 4px)*4/5)}
}

/* Desktop uses the available width before asking the player to scroll. */
.settings-group{min-width:0}
.settings-key-hint{display:none;font-size:11px;line-height:2;color:#a9c5d5;margin:14px 0 0}
.guide-core,.guide-power,.guide-topics{min-width:0}
@media(min-width:960px) and (pointer:fine){
 body:not(.playing) #header{height:72px;padding-inline:clamp(24px,4vw,72px)}
 #landing{--landing-edge:clamp(24px,4vw,72px);padding:90px var(--landing-edge) 16px;column-gap:clamp(30px,5vw,80px);row-gap:12px;grid-template-columns:minmax(360px,.9fr) minmax(0,1.1fr);scroll-padding-top:82px}
 #landing h1{font-size:clamp(48px,4.1vw,70px);line-height:1.1;margin:12px 0 14px;white-space:nowrap}
 #landing h1 br{display:none}#landing h1 span{margin-left:.15em}
 #landing .hero-description{margin-bottom:14px;font-size:12px;line-height:1.7}
 #landing .hero-buttons button{min-height:46px}
 #landing .selected-world{margin-bottom:7px}
 #landing .landing-power-recipe{padding:8px 12px;margin-top:10px}
 #landing .landing-power-recipe>p{line-height:1.6;margin:3px 0}
 #landing .landing-power-recipe>button{min-height:28px;padding:3px 0}
 #landing .expedition-spotlight{min-height:58px;margin-top:10px;padding:8px 12px}
 #landing .quick-entry>summary{min-height:36px;padding:6px 2px}
 #landing .hero-note{margin-top:8px}
 #landing .world-card,#landing .world-card.expedition{height:clamp(88px,14dvh,128px)}
 #landing .world-selection-hint{margin-bottom:10px}
 #landing .landing-footer{min-height:34px;padding-top:5px}
 #landing .landing-footer button{min-height:34px}
 #modal-backdrop{padding:16px 20px}
 #menu-modal{width:min(1240px,calc(100vw - 40px));max-height:calc(100dvh - 32px);padding:18px 22px;scroll-padding-top:100px}
 #menu-modal .modal-heading{padding-bottom:0;gap:14px}
 #menu-modal .modal-heading small{font-size:10px;letter-spacing:2px}
 #menu-modal .modal-heading h2{font-size:22px;margin:4px 0 0}
 #menu-modal .modal-heading .icon-button{width:40px;height:40px}
 #menu-modal .modal-tabs{position:sticky;top:-18px;margin:10px 0 16px;padding-top:8px;gap:8px;box-shadow:0 7px 8px #101c24}
 #menu-modal .modal-tabs>button{min-height:38px;padding:0 18px 8px;font-size:12px}
 #menu-modal .modal-tabs>button.active{background:#ffffff05}
 #menu-modal .modal-panel>p{margin-bottom:12px}
 .menu-worlds{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
 .menu-worlds>button,.menu-worlds .expedition-menu-card{display:grid;grid-template-columns:26px minmax(0,1fr);column-gap:12px;row-gap:4px;min-height:78px;padding:12px 15px;align-content:center}
 .menu-worlds>button>svg{grid-row:1/3;align-self:center;width:25px;height:25px}
 .menu-worlds>button strong{font-size:13px}.menu-worlds>button small{grid-column:2;font-size:11px;line-height:1.5}
 .challenge-card{margin-top:14px;padding:12px 16px}.challenge-card>div{gap:5px}.challenge-card strong{font-size:16px}
 .menu-bottom{margin-top:14px;padding-top:12px;gap:18px}.menu-bottom .button-primary{min-height:44px}
 .settings-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;align-items:start}
 .settings-group{padding:0 14px 12px;background:#15232c;border:1px solid #94bbce25;border-radius:5px}
 #menu-modal h3.settings-section{font-size:12px;text-align:left;letter-spacing:.2px;padding:12px 0 8px;margin:0;border-color:#aacbdd30}
 #menu-modal h3.settings-section:not(:first-child){margin-top:8px}
 .settings-grid .setting-row{flex-wrap:wrap;gap:5px 10px;padding:10px 0;min-height:54px}
 .settings-grid .setting-row>div{flex-basis:calc(100% - 58px)}
 .settings-grid .setting-row strong{font-size:12px;line-height:1.5}
 .settings-grid .setting-row small{font-size:10px;line-height:1.55;margin-top:3px}
 .settings-grid .setting-row:has(input)>div{flex-basis:100%}
 .settings-grid .setting-row input,.settings-grid .music-card .setting-row input{width:100%;min-width:0;min-height:28px;flex:1 1 100%;margin:0}
 .settings-grid .setting-row:has(select)>div{flex-basis:100%}
 .settings-grid .setting-row select{width:100%;max-width:100%;min-height:36px;padding:7px 9px}
 .settings-grid .switch{height:36px}
 .settings-grid .mini-button{min-height:36px}
 .settings-grid .setting-row.touch-sensitivity-setting{display:none}
 .settings-grid .music-card{margin:0;padding:0;border:0;background:none}
 .settings-grid .music-track-label{display:flex;flex-direction:row;align-items:center;gap:8px;margin:8px 0;font-size:10px;white-space:nowrap}
 .settings-grid #music-track{width:0;min-width:0;flex:1;min-height:36px;padding:7px;font-size:11px}
 .settings-grid .music-card .setting-row:has(input)>div{flex:1 1 0}
 .settings-grid .music-card .setting-row input{width:110px;min-width:90px;flex:0 0 110px}
 .settings-grid .music-caption{font-size:9px;gap:6px;margin:6px 0 8px;flex-wrap:wrap}
 .settings-grid #music-player{height:200px;min-height:200px}
 .settings-grid #music-status{font-size:10px;line-height:1.5;margin-top:8px}
 .settings-grid .music-status-row{display:flex;align-items:center;gap:8px}
 .settings-grid .music-status-row>p{flex:1;min-width:0}
 .settings-grid #music-retry{flex:none;min-height:30px;margin-top:8px;font-size:10px;padding:0 7px}
 .settings-key-hint{display:block;font-size:10px;line-height:1.9;margin-top:10px}
 .guide-core{display:grid;grid-template-columns:minmax(310px,.85fr) minmax(0,1.45fr);gap:20px;align-items:start}
 #menu-modal .power-recipe{padding:12px 14px}
 #menu-modal .power-recipe>h3{font-size:17px;margin:5px 0 7px;line-height:1.45}
 .power-recipe .recipe-lead{font-size:11px;line-height:1.6;margin-bottom:10px}
 .recipe-steps{gap:9px}.recipe-steps>li{padding-left:28px}
 .recipe-steps strong{font-size:11px;line-height:1.55}.recipe-steps span{font-size:10px;line-height:1.7;margin-top:2px}
 .power-tips{margin:10px 0 0;gap:7px}.power-tips>li,.power-tips strong{font-size:10px;line-height:1.65}
 #menu-modal .guide-pc{border:1px solid #abc6d430;background:#15232c;border-radius:5px;margin:0;padding:0 12px}
 #menu-modal .guide-pc>summary{min-height:36px;padding:9px 0;font-size:12px}
 #menu-modal .guide-pc .controls-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:0 16px;margin-bottom:8px}
 #menu-modal .guide-pc .controls-grid>div{min-height:35px;padding:6px 0;gap:7px;flex-direction:row;align-items:center}
 #menu-modal .guide-pc .controls-grid kbd{font-size:10px;padding:4px 5px}
 #menu-modal .guide-pc .controls-grid span{font-size:10px;line-height:1.5;text-align:right}
 #menu-modal .guide-pc p{font-size:10px;line-height:1.6;margin:7px 0 0}
 .guide-topics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0 18px;margin-top:10px;align-items:start}
 #menu-modal .guide-topics .guide-topic{margin:0}
 #menu-modal .guide-topics summary{min-height:36px;font-size:11px;padding:8px 0;gap:6px}
 #menu-modal .guide-topics .guide-topic[open]{grid-column:1/-1}
 #menu-modal [data-panel="about"] .about-emblem{margin:12px auto 14px;width:52px;height:52px;font-size:30px}
 #menu-modal [data-panel="about"] h3{margin:10px 0 16px;font-size:21px}
 #menu-modal [data-panel="about"]>p{max-width:940px;margin:0 auto 12px;font-size:12px;line-height:1.85}
 #menu-modal [data-panel="about"]>details{margin-top:12px}
}
@media(min-width:960px) and (max-height:740px) and (pointer:fine){
 #landing{padding-top:82px;row-gap:8px}#landing h1{font-size:48px;margin:8px 0 10px}
 #landing .hero-description{font-size:11px;margin-bottom:10px}#landing .hero-note{display:none}
 #landing .world-card,#landing .world-card.expedition{height:90px}
 #menu-modal{padding:12px 18px;max-height:calc(100dvh - 24px)}
 #menu-modal .modal-heading h2{font-size:20px}.modal-heading small{letter-spacing:1.5px}
 #menu-modal .modal-tabs{top:-12px;margin:5px 0 12px;padding-top:6px}
 .settings-grid{gap:12px}.settings-group{padding:0 11px 10px}
 .settings-grid .setting-row{padding:7px 0;min-height:48px}
 .settings-grid .setting-row small{font-size:10px}.settings-grid .setting-row input{min-height:24px}
 .guide-core{gap:14px;grid-template-columns:minmax(300px,.85fr) minmax(0,1.45fr)}
 #menu-modal .power-recipe{padding:10px 12px}.recipe-steps{gap:7px}
 #menu-modal .guide-pc .controls-grid>div{min-height:32px;padding:5px 0}
 #menu-modal .guide-topics summary{min-height:33px;padding:6px 0}
}

/* Keep the nearby combat keys visible without stretching the PC HUD. */
.pc-nearby-keys{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;margin:7px 0 9px}
.pc-nearby-keys>span{display:flex;align-items:center;gap:6px;min-width:0;min-height:31px;padding:5px 7px;border:1px solid #91bfce30;border-radius:3px;background:#0d2734;color:#d4e8ed;font-size:10px;line-height:1.4}
.pc-nearby-keys kbd{flex:none;color:#fff0d6;border-color:#e7af7266}
.desktop-help .pc-key-cluster{display:flex;gap:8px;align-items:center}
.desktop-help .pc-key-cluster>span{display:inline-flex;align-items:center;gap:3px;white-space:nowrap}
@media(min-width:701px) and (pointer:fine){
 .desktop-help{width:min(620px,calc(100vw - 48px));flex-wrap:wrap;gap:6px 11px;white-space:normal}
 .desktop-help>span{white-space:nowrap}
}
@media(min-width:960px) and (pointer:fine){
 .pc-nearby-keys{grid-template-columns:repeat(4,minmax(0,1fr))}
}

/* Readable desktop menus keep the three-column layout; touch sizes stay as-is. */
@media(min-width:960px) and (pointer:fine){
 #landing .hero-description{font-size:14px;line-height:1.65}
 #landing .selected-world,#landing .selected-world strong{font-size:13px}
 #landing .hero-buttons button{font-size:15px}
 #landing .landing-power-recipe>p{font-size:13px;line-height:1.6}
 #landing .landing-power-recipe>button,#landing .quick-entry>summary{font-size:13px}
 #landing .expedition-spotlight strong{font-size:15px}
 #landing .expedition-spotlight small,#landing .world-selection-hint,#landing .hero-note{font-size:12px}
 #landing .world-card strong{font-size:15px}
 #landing .world-card strong small{font-size:11px;letter-spacing:.6px}
 #landing .landing-footer,#landing .landing-footer button{font-size:12px}
 #header .top-nav,#header .top-nav button{font-size:14px}
 #menu-modal{width:min(1320px,calc(100vw - 40px));font-size:14px}
 #menu-modal .modal-heading small{font-size:12px}
 #menu-modal .modal-heading h2{font-size:25px}
 #menu-modal .modal-tabs>button{font-size:15px}
 #menu-modal .modal-panel>p{font-size:14px;line-height:1.65}
 #menu-modal .menu-worlds>button strong{font-size:15px}
 #menu-modal .menu-worlds>button small{font-size:13px;line-height:1.5}
 #menu-modal .challenge-card small{font-size:12px}
 #menu-modal .challenge-card span,#menu-modal .challenge-card button{font-size:13px}
 #menu-modal .menu-bottom button{font-size:14px}
 #menu-modal h3.settings-section{font-size:15px}
 #menu-modal .settings-grid .setting-row strong{font-size:15px;line-height:1.4}
 #menu-modal .settings-grid .setting-row small{font-size:12px;line-height:1.5}
 #menu-modal .settings-grid .setting-row select,#menu-modal .settings-grid .mini-button{font-size:13px}
 #menu-modal .settings-grid .music-track-label{font-size:12px}
 #menu-modal .settings-grid #music-track{font-size:12px}
 #menu-modal .settings-grid .music-caption{font-size:11px;line-height:1.5}
 #menu-modal .settings-grid #music-status,#menu-modal .settings-grid #music-retry{font-size:12px}
 #menu-modal .settings-key-hint{font-size:12px;line-height:1.8}
 #menu-modal .settings-grid .muted{font-size:12px}
 #menu-modal .power-recipe>h3{font-size:20px}
 #menu-modal .recipe-lead,#menu-modal .recipe-steps strong{font-size:14px}
 #menu-modal .recipe-steps span,#menu-modal .power-tips>li,#menu-modal .power-tips strong{font-size:12px;line-height:1.6}
 #menu-modal .guide-pc>summary{font-size:15px}
 #menu-modal .pc-nearby-keys>span{font-size:12px}
 #menu-modal .guide-pc .controls-grid kbd{font-size:12px}
 #menu-modal .guide-pc .controls-grid span,#menu-modal .guide-pc p{font-size:12px}
 #menu-modal .guide-topics summary{font-size:13px}
 #menu-modal .guide-topic p,#menu-modal .guide-topic li,#menu-modal [data-panel="about"]>details{font-size:13px}
 #menu-modal [data-panel="about"]>p{font-size:14px;line-height:1.75}
}

/* Direct battlefield controls stay available while the detail HUD is closed. */
.quick-world-picker{display:none}
#hud #quick-reset{position:fixed;display:flex;align-items:center;justify-content:center;gap:5px;min-height:42px;height:42px;padding:0 11px;border:1px solid #a9d8e34d;border-radius:3px;background:#09141ce0;color:#d4e5ed;font:600 12px var(--font);pointer-events:auto;z-index:9}
#quick-reset svg{width:16px;height:16px}
#quick-reset:focus-visible,#quick-world-select:focus-visible{outline:2px solid #fff0b6;outline-offset:3px}
@media(min-width:701px) and (pointer:fine){
 #hud .battle-top{top:24px;left:50%;right:auto;transform:translateX(-50%)}
 #hud .battle-top #world-menu{display:none}
 #hud .quick-world-picker{display:block;width:180px;pointer-events:auto}
 #hud #quick-world-select{display:block;width:100%;height:42px;padding:0 10px;color:#e8f7fa;background:#09141ceF;border:1px solid #a9d8e34d;border-radius:3px;font:600 12px var(--font);pointer-events:auto;cursor:pointer}
 #hud #quick-reset{top:24px;left:calc(50% + 98px);right:auto}
}
@media(pointer:coarse),(max-width:700px){
 #hud .quick-world-picker{display:none}
 #hud #quick-reset{top:calc(var(--hud-top) + 100px);right:var(--hud-right);left:auto;width:44px;min-width:44px;height:44px;min-height:44px;padding:0;flex-direction:column;gap:1px;font-size:10px;line-height:12px}
 #hud #quick-reset svg{width:15px;height:15px}
 #hud[data-details="true"] #reset-button{display:none}
 #hud[data-details="true"] .hud-upper{right:calc(var(--hud-right) + 50px)}
 /* The reserved utility rail stays clear of detail and navigation panels. */
 #hud #target-lock{position:fixed;left:auto;right:var(--hud-right);top:calc(var(--hud-top) + 150px);z-index:8}
}
@media (orientation:landscape) and (pointer:coarse),(orientation:landscape) and (max-width:700px){
 /* Use horizontal room when browser bars or safe areas reduce the height. */
 :root{--hud-toolbar-width:236px}
 #hud #target-lock{top:var(--hud-top);right:calc(var(--hud-right) + 192px)}
}
@media(min-width:701px) and (max-width:800px) and (pointer:fine){
 #hud #quick-reset{top:76px;left:calc(50% + 65px)}
}

/* The flight latch has its own thumb target beside altitude controls. */
#touch-boost{display:none}
@media(pointer:coarse){
 #hud #touch-boost{display:flex;align-items:center;justify-content:center;grid-column:4;grid-row:2;align-self:center;justify-self:center;width:44px;height:44px;min-width:44px;min-height:44px;padding:0 2px;border:1px solid #d7f1ff66;border-radius:4px;background:#0e2636ed;color:#d4f1ff;font-size:10px;font-weight:700;line-height:1.25;touch-action:manipulation;pointer-events:auto}
 #hud #touch-boost.active{border-color:#b9f2ff;background:#22678aed;color:#f2fcff;box-shadow:0 0 12px #7fd8ff45}
 #hud #touch-boost:focus-visible{outline:2px solid #fff0b6;outline-offset:3px}
}
@media(pointer:coarse) and (orientation:landscape) and (max-height:600px){
 #hud .touch-dock{grid-template-columns:192px minmax(0,1fr) 92px}
 #hud #touch-boost{grid-column:1;grid-row:1/3;justify-self:end;align-self:center}
}
@media(pointer:coarse) and (orientation:landscape) and (max-height:600px) and (max-width:650px){
 :root{--dock-height:146px}
 #hud .touch-dock{grid-template-columns:142px minmax(0,1fr) 92px}
 #hud #touch-boost{position:absolute;left:0;bottom:104px}
}


/* Same-world automatic demo: one quiet caption, a persistent exit, and the
   existing sound/fullscreen controls. Removing data-demo restores normal HUD. */
#landing .hero-buttons .demo-entry-button{grid-column:1/-1;min-height:44px;justify-content:flex-start;padding:8px 13px;border-color:#f6bf7966;background:#17232be8;color:var(--cream)}
#landing .hero-buttons .demo-entry-button:hover{background:#29343c;border-color:var(--orange-bright)}
.demo-entry-button>span{display:flex;align-items:center;gap:10px;font-weight:700}
.demo-entry-button small{font-size:11px;font-weight:400;color:#becdd4}
.demo-entry-button>b{margin-left:auto;color:var(--orange-bright);font-size:18px;font-weight:400}
#demo-menu-button{min-height:44px}
#demo-overlay{position:fixed;left:max(12px,env(safe-area-inset-left,0px));right:max(12px,env(safe-area-inset-right,0px));bottom:max(12px,env(safe-area-inset-bottom,0px));z-index:35;display:flex;align-items:center;justify-content:space-between;gap:16px;width:auto;max-width:720px;margin:0 auto;padding:8px 10px 8px 16px;border:1px solid #d5e4e337;border-radius:5px;background:#08131bee;box-shadow:0 3px 20px #0004;pointer-events:none}
.demo-caption{min-width:0;display:flex;flex-direction:column;gap:4px;padding:2px 0;line-height:1.35}
.demo-state{display:flex;align-items:center;gap:7px;color:#ffc68f;font-size:10px;font-weight:700;letter-spacing:.8px}
.demo-state>i{width:5px;height:5px;border-radius:50%;background:var(--orange-bright);flex:none}
#demo-scene-label{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#e8f0ef;font-size:13px;font-weight:500}
#demo-stop-button{display:grid;grid-template-columns:1fr auto;column-gap:10px;align-items:center;flex:none;min-width:144px;min-height:48px;padding:7px 12px;border:1px solid #ffd0a06b;border-radius:3px;background:#263039;color:#fff2de;text-align:left;line-height:1.4;pointer-events:auto;touch-action:manipulation}
#demo-stop-button>span{font-size:12px;font-weight:800}
#demo-stop-button>small{grid-column:1;font-size:10px;font-weight:400;color:#ccd9df}
#demo-stop-button>svg{grid-column:2;grid-row:1/3;width:16px;height:16px;color:#ffc78d}
#demo-stop-button:hover{background:#38434b;border-color:#ffe0ba}
#demo-start-button:focus-visible,#demo-menu-button:focus-visible,#demo-stop-button:focus-visible{outline:2px solid #fff0b6;outline-offset:3px}
body[data-demo="true"] #header,body[data-demo="true"] #landing,body[data-demo="true"] #toast,body[data-demo="true"] #cinema-bars{display:none!important}
body[data-demo="true"]::after{content:"";position:fixed;inset:0;z-index:29;background:#02060b;opacity:var(--demo-reveal,0);pointer-events:none}
body[data-demo="true"] #hud{display:block!important;pointer-events:none}
body[data-demo="true"] #hud>:not(#sound-control-play):not(.hud-utilities){display:none!important}
body[data-demo="true"] #hud .hud-utilities{position:fixed;display:flex!important;top:max(12px,env(safe-area-inset-top,0px));right:max(12px,env(safe-area-inset-right,0px));gap:8px;z-index:36;pointer-events:auto}
body[data-demo="true"] #hud-details-toggle{display:none!important}
body[data-demo="true"] #hud #sound-control-play{display:block;position:fixed;top:max(12px,env(safe-area-inset-top,0px));right:calc(max(12px,env(safe-area-inset-right,0px)) + 52px)!important;z-index:36}
body[data-demo="true"] #sound-control-play .sound-hint{display:none!important}
body[data-demo="true"] #sound-toggle-play,body[data-demo="true"] #fullscreen-play{width:44px;min-width:44px;height:44px;min-height:44px;pointer-events:auto}
@media(max-width:520px){
 .demo-entry-button>span{gap:8px}
 .demo-entry-button small{font-size:10px}
}
@media(orientation:landscape) and (max-height:500px){
 #demo-overlay{max-width:600px;bottom:max(8px,env(safe-area-inset-bottom,0px));padding-top:5px;padding-bottom:5px}
 #demo-stop-button{min-height:44px}
 .demo-caption{gap:2px}
}
@media(pointer:coarse),(max-width:700px){
 /* Separate, compact chips leave the scene visible between the caption and exit. */
 #demo-overlay{left:max(10px,env(safe-area-inset-left,0px));right:max(10px,env(safe-area-inset-right,0px));bottom:max(10px,env(safe-area-inset-bottom,0px));max-width:none;gap:8px;padding:0;border:0;background:transparent;box-shadow:none}
 #demo-overlay .demo-caption{flex:0 1 auto;flex-direction:row;align-items:center;gap:6px;max-width:420px;min-height:32px;padding:0 10px;border:1px solid #d5e4e32b;border-radius:18px;background:#08131ba6;line-height:1.35}
 #demo-overlay .demo-state{flex:none;gap:4px;white-space:nowrap;font-size:9px;letter-spacing:0}
 #demo-overlay .demo-state>i{width:4px;height:4px}
 #demo-scene-label{font-size:11px}
 #demo-stop-button{display:flex;justify-content:center;gap:6px;width:96px;min-width:96px;height:44px;min-height:44px;padding:0 10px;border-radius:24px;background:#10202bc9;line-height:1.35}
 #demo-stop-button>span{font-size:11px;white-space:nowrap}
 #demo-stop-button>small{display:none}
 #demo-stop-button>svg{width:14px;height:14px}
 body[data-demo="true"] #sound-toggle-play,body[data-demo="true"] #fullscreen-play{border-radius:22px}
}
