/* Hallmark · component: full-viewport toy-construction battle HUD · genre: playful
 * theme: original navy/gold/coral · states: default hover focus active disabled loading error success
 * pre-emit critique: P5 H5 E4 S5 R4 V5 · viewport and perceptual review: parent QA
 */
body.arcade-game { position: fixed; inset: 0; width: 100%; height: 100dvh; min-height: 0; margin: 0; padding: 0; overflow-x: clip; overflow-y: hidden; background: var(--game-deep); color: var(--game-white); }
.arcade-game .play-layout, .arcade-game .play-area { position: static; display: block; width: 100%; height: 100%; min-height: 0; margin: 0; padding: 0; }
.arcade-game .play-layout, .arcade-game .topbar { user-select: none; -webkit-user-select: none; }
.arcade-game .arena { position: fixed; inset: 0; z-index: 0; width: 100%; height: 100dvh; min-height: 0; border: 0; border-radius: 0; background: var(--game-deep); }
.arcade-game .arena::after { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(var(--game-shadow), transparent 23%, transparent 64%, var(--game-shadow)); }
.arcade-game .arena canvas { width: 100%; height: 100%; outline-offset: -5px; }
.arcade-game button, .arcade-game summary { -webkit-user-select: none; user-select: none; }
.arcade-game button:focus-visible, .arcade-game summary:focus-visible, .arcade-game a:focus-visible { outline: 3px solid var(--game-white); outline-offset: 4px; }
.arcade-game .topbar { position: fixed; z-index: 20; top: 0; left: 0; right: 0; height: calc(78px + env(safe-area-inset-top)); padding: calc(14px + env(safe-area-inset-top)) max(24px, env(safe-area-inset-right)) 12px max(24px, env(safe-area-inset-left)); pointer-events: none; align-items: flex-start; }
.arcade-game .brand, .arcade-game .top-actions { pointer-events: auto; }
.arcade-game .brand { min-height: 48px; padding: 6px 12px 6px 7px; gap: 9px; border: 3px solid var(--game-line); border-radius: 13px; background: var(--game-panel); color: var(--game-white); box-shadow: 0 5px 0 var(--game-line), inset 0 2px 0 var(--game-light); transform: rotate(-2deg); }
.arcade-game .brand img { width: 34px; height: 34px; flex-shrink: 0; border-radius: 22%; }
.arcade-game .brand-wordmark { display: block; min-width: 0; }
.arcade-game .brand-wordmark > b { display: flex; gap: 5px; align-items: baseline; font-size: 23px; line-height: 1; font-weight: 1000; letter-spacing: -1.2px; white-space: nowrap; color: var(--game-gold); text-shadow: 0 2px 0 var(--game-line); }
.arcade-game .brand-wordmark > b > span { color: var(--game-white); font-size: 15px; letter-spacing: -.7px; }
.arcade-game .brand-small { display: block; font-size: 9px; line-height: 1; margin-top: 5px; color: var(--game-dim); letter-spacing: 0; }
.arcade-game .top-actions { display: flex; gap: 9px; align-items: center; }
.arcade-game .wallet, .arcade-game .star-wallet { display: flex; align-items: center; gap: 7px; min-height: 44px; border: 3px solid var(--game-line); border-radius: 12px; padding: 5px 10px; color: var(--game-white); background: var(--game-panel); box-shadow: 0 4px 0 var(--game-line), inset 0 2px 0 var(--game-light); font-size: 16px; font-weight: 900; font-variant-numeric: tabular-nums; }
.arcade-game .star-wallet > span { color: var(--game-gold); font-size: 25px; line-height: 1; text-shadow: 0 2px 0 var(--game-gold-deep); }
.arcade-game .coin-symbol { width: 23px; height: 23px; border: 2px solid var(--game-gold-deep); box-shadow: 0 2px 0 var(--game-line); background: var(--game-gold); color: var(--game-ink); font-size: 12px; }
.arcade-game .icon-button { width: 44px; height: 44px; flex-shrink: 0; border: 3px solid var(--game-line); border-radius: 12px; color: var(--game-white); background: var(--game-light); box-shadow: 0 4px 0 var(--game-line), inset 0 2px 0 var(--game-dim); }
.arcade-game #ranking-open { color: var(--game-gold); }
.arcade-game .mission { position: fixed; z-index: 12; top: calc(94px + env(safe-area-inset-top)); left: max(24px, env(safe-area-inset-left)); width: 300px; height: auto; min-height: 0; display: block; margin: 0; padding: 12px 14px 11px; border: 3px solid var(--game-line); border-radius: 13px; background: var(--game-panel); color: var(--game-white); box-shadow: 0 6px 0 var(--game-line), inset 0 2px 0 var(--game-light); }
.arcade-game .mission::before { content: ''; position: absolute; top: -8px; left: 12px; right: 12px; height: 7px; border: 2px solid var(--game-line); border-radius: 3px; background: repeating-linear-gradient(135deg, var(--game-gold) 0 9px, var(--game-line) 9px 17px); }
.arcade-game .mission-intro { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 5px 10px; min-width: 0; }
.arcade-game .eyebrow { padding: 5px 6px; flex-shrink: 0; border: 2px solid var(--game-line); border-radius: 6px; color: var(--game-ink); background: var(--game-gold); font-size: 10px; font-weight: 950; letter-spacing: 0; white-space: nowrap; }
.arcade-game .mission-copy { min-width: 0; }
.arcade-game .mission h1 { font-size: 19px; line-height: 1.15; font-weight: 1000; letter-spacing: -.8px; color: var(--game-white); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-shadow: 0 2px 0 var(--game-line); }
.arcade-game .mission-intro p { display: block; margin-top: 3px; font-size: 10px; line-height: 1.3; color: var(--game-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.arcade-game .mission-intro .protected-status:not([hidden]) { display: block; grid-column: 1 / -1; max-width: 100%; margin: 0; padding: 3px 7px; border: 1px solid var(--game-mint-deep); border-radius: 5px; color: var(--game-mint); background: var(--game-deep); font-size: 10px; line-height: 1.3; font-weight: 800; }
.arcade-game .mission-intro .protected-status.broken { color: var(--game-danger); border-color: var(--game-danger); }
.arcade-game .goal-card { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; gap: 5px; margin-top: 9px; }
.arcade-game .goal-top { display: flex; grid-column: auto; grid-row: auto; align-items: baseline; justify-content: space-between; gap: 8px; line-height: 1; }
.arcade-game .goal-card .goal-top > .goal-value { display: flex; align-items: baseline; gap: 4px; color: var(--game-dim); font-size: 10px; }
.arcade-game .goal-value b { color: var(--game-white); font-size: 26px; line-height: 1; letter-spacing: -.7px; text-shadow: 0 2px 0 var(--game-line); }
.arcade-game .goal-value span { color: var(--game-dim); font-size: 10px; }
.arcade-game #goal-status { padding: 3px 6px; color: var(--game-dim); background: var(--game-deep); border-radius: 4px; font-size: 10px; font-weight: 900; }
.arcade-game .mission[data-state="failed"] #goal-status { color: var(--game-white); background: var(--game-coral-deep); }
.arcade-game .mission[data-state="complete"] #goal-status { color: var(--game-ink); background: var(--game-mint); }
.arcade-game .progress-track { width: 100%; height: 13px; overflow: visible; border: 2px solid var(--game-line); border-radius: 5px; background: var(--game-deep); }
.arcade-game .progress-track > div { border-radius: 2px; background: linear-gradient(var(--game-mint), var(--game-mint-deep)); box-shadow: inset 0 2px 0 var(--game-white); }
.arcade-game .progress-track i { top: -5px; width: 4px; height: 19px; border: 1px solid var(--game-line); border-radius: 2px; background: var(--game-gold); }
.arcade-game .goal-bottom { display: flex; justify-content: space-between; align-items: center; grid-column: auto; grid-row: auto; gap: 6px; color: var(--game-dim); font-size: 10px; line-height: 1.2; }
.arcade-game .goal-bottom > span:first-child { display: inline; }
.arcade-game #par-caption { color: var(--game-gold); font-weight: 800; }
.arcade-game .arena-top { position: fixed; z-index: 6; top: calc(266px + env(safe-area-inset-top)); left: max(24px, env(safe-area-inset-left)); right: max(24px, env(safe-area-inset-right)); display: block; pointer-events: none; }
.arcade-game .arena-labels { display: flex; align-items: flex-start; max-width: 300px; gap: 8px; }
.arcade-game .arena-labels .live-label { display: flex; gap: 6px; min-height: 44px; padding: 9px 12px; color: var(--game-ink); background: var(--game-gold); border: 3px solid var(--game-line); border-radius: 9px; box-shadow: 0 4px 0 var(--game-line); font-size: 11px; font-weight: 950; }
.arcade-game .live-label i { background: var(--game-coral-deep); }
.arcade-game #gimmick-panel { max-width: 300px; padding: 8px 10px; border: 2px solid var(--game-line); border-radius: 8px; color: var(--game-white); background: var(--game-deep); box-shadow: 0 4px 0 var(--game-line); }
.arcade-game .gimmick-hud-count { color: var(--game-gold); font-size: 10px; }
.arcade-game .gimmick-hud-count.is-complete { color: var(--game-mint); }
.arcade-game .gimmick-hud-next { color: var(--game-white); font-size: 11px; }
.arcade-game .gimmick-hud-tip { color: var(--game-dim); font-size: 10px; }
.arcade-game .score-box { position: fixed; top: calc(14px + env(safe-area-inset-top)); left: 50%; right: auto; transform: translateX(-50%) rotate(2deg); min-width: 150px; padding: 5px 18px 8px; border: 3px solid var(--game-line); border-radius: 12px; color: var(--game-white); background: var(--game-panel); box-shadow: 0 5px 0 var(--game-line), inset 0 2px 0 var(--game-light); text-align: center; }
.arcade-game .score-box > span { color: var(--game-gold); font-size: 9px; font-weight: 1000; letter-spacing: 3px; line-height: 1; }
.arcade-game .score-box b { display: block; color: var(--game-white); font-size: 31px; line-height: 1.1; font-weight: 1000; letter-spacing: -1px; text-shadow: 0 3px 0 var(--game-line); }
.arcade-game .arena-bottom { position: static; display: block; margin: 0; }
.arcade-game .world-hint { position: fixed; left: max(24px, env(safe-area-inset-left)); bottom: calc(260px + env(safe-area-inset-bottom)); display: flex; max-width: 280px; padding: 7px 10px; border: 2px solid var(--game-line); border-radius: 7px; background: var(--game-panel); color: var(--game-white); font-size: 10px; box-shadow: 0 3px 0 var(--game-line); }
.arcade-game .camera-fold { position: fixed; right: max(24px, env(safe-area-inset-right)); top: 42%; z-index: 9; pointer-events: auto; }
.arcade-game summary { list-style: none; cursor: pointer; touch-action: manipulation; }
.arcade-game summary::-webkit-details-marker { display: none; }
.arcade-game .camera-fold > summary, .arcade-game .mission-fold > summary { display: flex; align-items: center; justify-content: center; gap: 5px; min-width: 46px; min-height: 46px; padding: 8px; color: var(--game-white); background: var(--game-light); border: 3px solid var(--game-line); border-radius: 11px; box-shadow: 0 4px 0 var(--game-line), inset 0 2px 0 var(--game-dim); }
.arcade-game .camera-fold > summary svg { width: 24px; height: 24px; }
.arcade-game .camera-actions { position: absolute; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); right: 0; top: calc(100% + 9px); width: 128px; margin: 0; padding: 9px; gap: 7px; background: var(--game-deep); border: 3px solid var(--game-line); border-radius: 12px; box-shadow: 0 5px 0 var(--game-line); }
.arcade-game .camera-fold:not([open]) > .camera-actions { display: none; }
.arcade-game .camera-button, .arcade-game .text-button { width: 44px; height: 44px; min-height: 44px; padding: 0; color: var(--game-ink); background: var(--game-gold); border: 2px solid var(--game-line); border-radius: 8px; box-shadow: 0 3px 0 var(--game-gold-deep); }
.arcade-game .text-button { grid-column: 1 / -1; width: 100%; padding: 0 7px; font-size: 10px; }
.arcade-game .control-panel { position: fixed; z-index: 16; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); transform: translateX(-50%); width: min(1080px, calc(100% - 48px)); max-width: none; min-height: 0; margin: 0; padding: 11px 14px 14px; display: grid; grid-template-columns: minmax(0, 1fr) 100px; grid-template-areas: "heading heading" "tools fire"; gap: 9px 14px; align-items: center; border: 3px solid var(--game-line); border-radius: 17px; background: linear-gradient(var(--game-panel), var(--game-deep)); box-shadow: 0 7px 0 var(--game-line), inset 0 2px 0 var(--game-light); }
.arcade-game .control-panel::before { content: ''; position: absolute; left: 14px; right: 14px; top: -7px; height: 7px; border: 2px solid var(--game-line); border-radius: 3px; background: repeating-linear-gradient(135deg, var(--game-gold) 0 10px, var(--game-line) 10px 18px); }
.arcade-game .control-heading { grid-area: heading; display: flex; flex-direction: row; align-items: center; min-height: 30px; gap: 14px; margin: 0; line-height: 1; }
.arcade-game .loadout-heading { display: flex; align-items: center; gap: 6px; color: var(--game-gold); font-size: 12px; font-weight: 1000; white-space: nowrap; }
.arcade-game .loadout-heading b { padding: 3px 5px; border: 1px solid var(--game-light); color: var(--game-dim); background: var(--game-deep); font-size: 9px; }
.arcade-game .energy-rack { display: flex; flex: 1; align-items: center; gap: 9px; min-width: 0; }
.arcade-game .energy { flex-shrink: 0; display: flex; align-items: center; gap: 4px; color: var(--game-dim); font-size: 10px; font-weight: 800; line-height: 1; white-space: nowrap; }
.arcade-game .energy > span:first-child { color: var(--game-gold); font-size: 22px; }
.arcade-game .energy b { color: var(--game-white); font-size: 17px; font-weight: 1000; }
.arcade-game .energy > span:last-child { color: var(--game-dim); font-size: 10px; }
.arcade-game .energy-cells { display: flex; align-items: stretch; flex: 1; min-width: 0; gap: 3px; height: 17px; padding: 3px; border: 2px solid var(--game-line); border-radius: 5px; background: var(--game-ink); }
.arcade-game .energy-cells > i, .arcade-game .energy-cells > span { display: block; flex: 1; min-width: 0; height: 100%; border-radius: 1px; background: var(--game-light); }
.arcade-game .energy-cells > .filled, .arcade-game .energy-cells > .is-filled { background: linear-gradient(var(--game-gold), var(--game-gold-deep)); box-shadow: inset 0 1px 0 var(--game-white); }
.arcade-game .energy-rack[data-low="true"] .energy b { padding: 2px 3px; color: var(--game-danger); background: var(--game-deep); border-radius: 3px; }
.arcade-game .energy-rack[data-low="true"] .energy-cells > .filled { background: var(--game-danger); }
.arcade-game .combat-stats { display: flex; align-items: center; flex-shrink: 0; gap: 10px; color: var(--game-dim); font-size: 9px; white-space: nowrap; }
.arcade-game .combat-stats > span > b { color: var(--game-white); font-size: 14px; font-weight: 1000; }
.arcade-game #hud-streak { padding: 4px 6px; color: var(--game-mint); background: var(--game-ink); border: 1px solid var(--game-light); border-radius: 4px; font-size: 10px; }
.arcade-game .mission-fold { position: absolute; left: 14px; bottom: calc(100% + 14px); z-index: 2; }
.arcade-game .mission-fold > summary { min-width: 58px; min-height: 58px; flex-direction: column; gap: 1px; color: var(--game-gold); background: var(--game-panel); font-size: 9px; font-weight: 950; }
.arcade-game .mission-fold > summary svg { width: 24px; height: 24px; }
.arcade-game .crew-actions { position: absolute; display: grid; left: 0; bottom: calc(100% + 10px); min-width: 156px; margin: 0; padding: 10px; gap: 9px; border: 3px solid var(--game-line); border-radius: 12px; background: var(--game-deep); box-shadow: 0 5px 0 var(--game-line); }
.arcade-game .mission-fold:not([open]) > .crew-actions { display: none; }
.arcade-game .nav-button, .arcade-game .upgrade-button { display: flex; justify-content: center; align-items: center; min-height: 44px; padding: 10px; color: var(--game-ink); background: var(--game-gold); border: 2px solid var(--game-line); border-radius: 8px; box-shadow: 0 3px 0 var(--game-gold-deep); font-size: 11px; font-weight: 950; }
.arcade-game .daily-button { color: var(--game-ink); background: var(--game-mint); box-shadow: 0 3px 0 var(--game-mint-deep); }
.arcade-game .upgrade-button { gap: 6px; background: var(--game-coral); box-shadow: 0 3px 0 var(--game-coral-deep); }
.arcade-game .upgrade-button .upgrade-icon { font-size: 20px; }
.arcade-game .upgrade-button > span:last-child { display: none; }
.arcade-game .tools { grid-area: tools; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; min-width: 0; }
.arcade-game .tool { position: relative; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 0; height: 100px; min-height: 44px; min-width: 0; padding: 4px 3px 7px; overflow: visible; color: var(--game-white); background: linear-gradient(var(--game-light), var(--game-panel)); border: 3px solid var(--game-line); border-radius: 11px; box-shadow: 0 4px 0 var(--game-line), inset 0 2px 0 var(--game-dim); }
.arcade-game .tool .tool-art { width: 78px; height: 57px; max-width: 100%; flex-shrink: 0; filter: drop-shadow(0 1px 0 var(--game-white)) drop-shadow(0 3px 0 var(--game-line)); }
.arcade-game .tool-text { display: block; width: 100%; min-width: 0; font-size: 12px; line-height: 1.1; font-weight: 1000; color: inherit; text-align: center; }
.arcade-game .tool small { display: block; margin-top: 5px; color: var(--game-dim); font-size: 10px; line-height: 1; font-weight: 800; white-space: nowrap; }
.arcade-game .tool[aria-pressed="true"] { color: var(--game-ink); border-color: var(--game-white); background: linear-gradient(var(--game-gold), var(--game-gold-deep)); box-shadow: 0 4px 0 var(--game-line), 0 0 0 2px var(--game-gold), inset 0 2px 0 var(--game-white); }
.arcade-game .tool[aria-pressed="true"] .tool-text, .arcade-game .tool[aria-pressed="true"] small { color: var(--game-ink); }
.arcade-game .tool.locked, .arcade-game .tool:disabled { opacity: 1; color: var(--game-dim); background: var(--game-deep); border-color: var(--game-line); box-shadow: 0 4px 0 var(--game-line), inset 0 2px 0 var(--game-light); }
.arcade-game .tool.locked .tool-art { opacity: .43; filter: saturate(.15); }
.arcade-game .tool.locked .tool-text { color: var(--game-dim); }
.arcade-game .tool.locked small { color: var(--game-dim); }
.arcade-game .tool.locked small::before { content: 'LOCK '; font-size: 7px; font-weight: 1000; }
.arcade-game .tool:disabled:not(.locked) .tool-art { opacity: .6; }
.arcade-game .tool-key { position: absolute; display: block; top: 5px; left: 6px; right: auto; padding: 1px 3px; border-radius: 3px; font-size: 8px; color: var(--game-dim); background: var(--game-ink); }
.arcade-game .fire-row { grid-area: fire; display: flex; align-items: center; justify-content: center; min-height: 0; margin: 0; padding: 0; }
.arcade-game .selected-equipment { position: absolute; left: 85px; bottom: calc(100% + 14px); display: flex; align-items: center; gap: 8px; min-height: 58px; max-width: 280px; padding: 5px 11px 5px 6px; border: 3px solid var(--game-line); border-radius: 11px; color: var(--game-white); background: var(--game-panel); box-shadow: 0 4px 0 var(--game-line), inset 0 2px 0 var(--game-light); }
.arcade-game .selected-equipment .tool-art { display: block; width: 62px; height: 43px; filter: drop-shadow(0 1px 0 var(--game-white)); }
.arcade-game #selected-tool-name { color: var(--game-white); font-size: 16px; line-height: 1.1; font-weight: 1000; text-shadow: 0 2px 0 var(--game-line); }
.arcade-game #selected-tool-shape { display: block; margin-top: 5px; color: var(--game-gold); font-size: 10px; line-height: 1; }
.arcade-game .fire-row #tool-hint { display: none; }
.arcade-game .fire-button { --cooldown: 0; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; width: 88px; min-width: 88px; height: 88px; min-height: 88px; padding: 10px 4px; color: var(--game-white); border: 4px solid var(--game-line); border-radius: 50%; background: var(--game-coral-deep); box-shadow: 0 7px 0 var(--game-line), inset 0 3px 0 var(--game-coral); text-align: center; }
.arcade-game .fire-button::before { content: ''; position: absolute; inset: -8px; border-radius: 50%; background: conic-gradient(var(--game-gold) calc(360deg - var(--cooldown) * 360deg), var(--game-light) 0); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), var(--game-line) 0); mask: radial-gradient(farthest-side, transparent calc(100% - 4px), var(--game-line) 0); pointer-events: none; }
.arcade-game .fire-button .fire-reticle { display: block; width: 29px; height: 29px; }
.arcade-game #fire-label { font-size: 17px; line-height: 1.1; font-weight: 1000; letter-spacing: -.5px; white-space: nowrap; text-shadow: 0 2px 0 var(--game-coral-deep); }
.arcade-game .fire-button .fire-chevron { display: none; }
.arcade-game .fire-button[data-state="loading"], .arcade-game .fire-button:disabled { opacity: 1; color: var(--game-dim); background: var(--game-panel); box-shadow: 0 5px 0 var(--game-line), inset 0 2px 0 var(--game-light); }
.arcade-game .fire-button[data-state="success"] { color: var(--game-ink); background: var(--game-mint); }
.arcade-game .fire-button[data-state="error"] { color: var(--game-white); background: var(--game-coral-deep); }
.arcade-game .fire-button[data-state="success"] #fire-label { text-shadow: none; }
.arcade-game .pause-overlay, .arcade-game .render-error { z-index: 8; color: var(--game-white); background: var(--game-shadow); backdrop-filter: blur(3px); }
.arcade-game .pause-plate { width: min(300px, calc(100vw - 40px)); padding: 24px 20px; border: 4px solid var(--game-line); border-radius: 20px; color: var(--game-white); background: var(--game-panel); box-shadow: 0 9px 0 var(--game-line), inset 0 3px 0 var(--game-light); text-align: center; }
.arcade-game .pause-eyebrow { color: var(--game-gold); font-size: 12px; letter-spacing: 3px; font-weight: 1000; }
.arcade-game .pause-plate > b { display: block; margin: 7px 0 20px; font-size: 25px; font-weight: 1000; }
.arcade-game .pause-plate .primary-button, .arcade-game .render-error .primary-button { min-height: 48px; width: 100%; justify-content: center; border: 3px solid var(--game-line); border-radius: 10px; color: var(--game-ink); background: var(--game-gold); box-shadow: 0 4px 0 var(--game-gold-deep); font-size: 14px; }
.arcade-game .render-error { padding: 24px; text-align: center; }
.arcade-game .render-error b { font-size: 24px; }
.arcade-game .render-error span { color: var(--game-dim); }
.arcade-game .render-error .primary-button { max-width: 260px; }
.arcade-game .page-footer { display: none; }
.arcade-game .impact-label { display: block; position: absolute; width: 1px; height: 1px; top: 0; left: 0; right: auto; overflow: hidden; clip-path: inset(50%); opacity: 0; transform: none; white-space: nowrap; }
.arcade-game .notice { z-index: 70; bottom: calc(220px + env(safe-area-inset-bottom)); min-height: 44px; padding: 10px 15px; border: 3px solid var(--game-line); border-radius: 10px; color: var(--game-ink); background: var(--game-gold); box-shadow: 0 5px 0 var(--game-line); font-size: 12px; font-weight: 850; max-width: min(500px, calc(100vw - 28px)); }
.arcade-game .battle-bursts { position: fixed; z-index: 35; inset: 0; overflow: clip; pointer-events: none; }
.arcade-game .battle-pop, .arcade-game .battle-ring { position: absolute; pointer-events: none; transform: translate(-50%, -50%); }
.arcade-game .battle-pop { color: var(--game-white); font-size: clamp(24px, 3.5vw, 42px); font-weight: 1000; line-height: 1; letter-spacing: -1.2px; white-space: nowrap; -webkit-text-stroke: 1px var(--game-line); paint-order: stroke fill; text-shadow: 0 3px 0 var(--game-line), 2px 0 0 var(--game-line), -2px 0 0 var(--game-line); }
.arcade-game .battle-pop.score { color: var(--game-gold); }
.arcade-game .battle-pop.chain { color: var(--game-mint); font-size: clamp(21px, 3vw, 34px); }
.arcade-game .battle-pop.objective { color: var(--game-sky); font-size: clamp(21px, 3vw, 34px); }
.arcade-game .battle-ring { border: 4px solid var(--game-gold); border-radius: 50%; box-shadow: 0 0 0 3px var(--game-line), inset 0 0 0 2px var(--game-white); }
.arcade-game .combo-banner { position: fixed; z-index: 36; left: 50%; top: 29%; transform: translateX(-50%) rotate(-4deg); padding: 8px 17px; color: var(--game-gold); background: var(--game-ink); border: 3px solid var(--game-line); border-radius: 10px; box-shadow: 0 5px 0 var(--game-line); font-size: clamp(20px, 3.5vw, 34px); font-weight: 1000; line-height: 1; text-shadow: 0 2px 0 var(--game-line); white-space: nowrap; opacity: 0; visibility: hidden; pointer-events: none; }
.arcade-game .combo-banner.show { opacity: 1; visibility: visible; }
.arcade-game .combo-banner[data-kind="error"] { color: var(--game-white); background: var(--game-coral-deep); }
.arcade-game .boot-splash { position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; color: var(--game-white); background: var(--game-ink); }
.arcade-game .boot-splash img { width: 72px; height: 72px; border: 4px solid var(--game-line); border-radius: 22px; box-shadow: 0 6px 0 var(--game-line); }
.arcade-game .boot-splash b { color: var(--game-gold); font-size: 32px; font-weight: 1000; text-shadow: 0 4px 0 var(--game-line); }
.arcade-game .boot-splash > span { font-size: 13px; color: var(--game-dim); }
.arcade-game .boot-splash i { width: 140px; height: 10px; background: repeating-linear-gradient(135deg, var(--game-gold) 0 10px, var(--game-deep) 10px 20px); border: 2px solid var(--game-line); border-radius: 4px; }
.arcade-game .boot-splash a { min-height: 44px; display: grid; place-items: center; padding: 10px 18px; color: var(--game-dim); font-size: 12px; }
.arcade-game .mission-flash { position: fixed; z-index: 37; left: 50%; top: 34%; transform: translate(-50%, -50%) rotate(-3deg); padding: 13px 30px; max-width: calc(100vw - 28px); color: var(--game-white); background: var(--game-panel); border: 4px solid var(--game-line); border-radius: 12px; box-shadow: 0 7px 0 var(--game-line); font-size: clamp(24px, 4vw, 44px); line-height: 1.2; font-weight: 1000; letter-spacing: -1px; text-align: center; white-space: pre-line; opacity: 0; visibility: hidden; pointer-events: none; }
.arcade-game .mission-flash.show { opacity: 1; visibility: visible; }
@media (hover: hover) {
  .arcade-game .icon-button:hover, .arcade-game .camera-fold > summary:hover, .arcade-game .mission-fold > summary:hover { color: var(--game-ink); background: var(--game-gold); }
  .arcade-game .tool:hover:not(:disabled):not([aria-pressed="true"]) { background: var(--game-light); }
  .arcade-game .tool[aria-pressed="true"]:hover { background: var(--game-gold); }
  .arcade-game .fire-button:hover:not(:disabled) { color: var(--game-white); background: var(--game-coral-deep); box-shadow: 0 7px 0 var(--game-line), inset 0 4px 0 var(--game-coral); }
  .arcade-game .fire-button[data-state="success"]:hover:not(:disabled) { color: var(--game-ink); background: var(--game-mint); }
}
@media (max-width: 1000px) {
  .arcade-game .brand-wordmark > b { font-size: 20px; }
  .arcade-game .brand-wordmark > b > span { font-size: 12px; }
  .arcade-game .control-panel { width: calc(100% - 32px); padding: 9px 11px 12px; gap: 8px 11px; grid-template-columns: minmax(0, 1fr) 90px; }
  .arcade-game .tool { height: 90px; }
  .arcade-game .tool .tool-art { width: 64px; height: 49px; }
  .arcade-game .tool-text { font-size: 11px; }
  .arcade-game .loadout-heading { display: none; }
  .arcade-game .fire-button { width: 78px; min-width: 78px; height: 78px; min-height: 78px; }
}
@media (max-width: 767px) {
  .arcade-game .topbar { height: calc(61px + env(safe-area-inset-top)); padding: calc(8px + env(safe-area-inset-top)) max(8px, env(safe-area-inset-right)) 8px max(8px, env(safe-area-inset-left)); }
  .arcade-game .brand { min-height: 43px; padding: 4px 6px 4px 4px; gap: 5px; border-width: 2px; border-radius: 10px; }
  .arcade-game .brand img { width: 27px; height: 27px; }
  .arcade-game .brand-wordmark > b { display: block; font-size: 19px; line-height: .96; letter-spacing: -.9px; }
  .arcade-game .brand-wordmark > b > span { display: block; margin-top: 3px; font-size: 10px; letter-spacing: -.3px; }
  .arcade-game .brand-small { display: none; }
  .arcade-game .top-actions { gap: 4px; }
  .arcade-game .wallet, .arcade-game .star-wallet { gap: 4px; min-height: 42px; padding: 5px 6px; border-width: 2px; border-radius: 9px; font-size: 12px; }
  .arcade-game .star-wallet > span { font-size: 20px; }
  .arcade-game .coin-symbol { width: 18px; height: 18px; font-size: 9px; }
  .arcade-game .icon-button { width: 44px; height: 44px; border-width: 2px; border-radius: 10px; }
  .arcade-game .icon-button svg { width: 22px; height: 22px; }
  .arcade-game .mission { top: calc(72px + env(safe-area-inset-top)); left: max(8px, env(safe-area-inset-left)); width: calc(100% - max(8px, env(safe-area-inset-left)) - max(8px, env(safe-area-inset-right))); padding: 8px 10px 7px; border-radius: 11px; }
  .arcade-game .mission-intro { grid-template-columns: auto minmax(0, 1fr); gap: 4px 8px; }
  .arcade-game .mission h1 { font-size: 18px; line-height: 1.15; }
  .arcade-game .mission-intro p { display: none; }
  .arcade-game .eyebrow { padding: 4px 5px; font-size: 9px; }
  .arcade-game .mission-intro .protected-status:not([hidden]) { font-size: 9px; padding: 2px 5px; }
  .arcade-game .goal-card { margin-top: 5px; grid-template-columns: minmax(0, 1fr); gap: 3px; }
  .arcade-game .goal-top { display: flex; grid-column: auto; grid-row: auto; align-items: center; }
  .arcade-game .goal-value b { font-size: 22px; }
  .arcade-game .goal-value span { font-size: 9px; }
  .arcade-game #goal-status { font-size: 9px; padding: 2px 5px; }
  .arcade-game .progress-track { height: 11px; }
  .arcade-game .progress-track i { height: 17px; }
  .arcade-game .goal-bottom { font-size: 9px; }
  .arcade-game .arena-top { top: calc(190px + env(safe-area-inset-top)); left: max(10px, env(safe-area-inset-left)); right: max(10px, env(safe-area-inset-right)); }
  .arcade-game:has(#protected-status:not([hidden])) .arena-top { top: calc(213px + env(safe-area-inset-top)); }
  .arcade-game .arena-labels { max-width: calc(100% - 104px); gap: 7px; }
  .arcade-game .arena-labels .live-label { min-height: 44px; padding: 8px 10px; font-size: 10px; }
  .arcade-game #gimmick-panel { max-width: 100%; padding: 7px 8px; gap: 3px 5px; }
  .arcade-game .gimmick-hud-count { font-size: 9px; }
  .arcade-game .gimmick-hud-next { font-size: 10px; }
  .arcade-game .gimmick-hud-tip { font-size: 9px; line-height: 1.3; }
  .arcade-game .score-box { position: absolute; top: 0; right: 0; left: auto; min-width: 91px; padding: 5px 8px 7px; transform: rotate(2deg); border-radius: 10px; }
  .arcade-game .score-box > span { font-size: 8px; letter-spacing: 2px; }
  .arcade-game .score-box b { font-size: 25px; }
  .arcade-game .world-hint { display: none; }
  .arcade-game .camera-fold { top: calc(304px + env(safe-area-inset-top)); right: max(10px, env(safe-area-inset-right)); }
  .arcade-game .camera-fold > summary { min-width: 44px; min-height: 44px; }
  .arcade-game .camera-actions { width: 122px; padding: 7px; gap: 6px; }
  .arcade-game .control-panel { left: 50%; right: auto; bottom: calc(12px + env(safe-area-inset-bottom)); width: calc(100% - 16px); padding: 8px 7px 10px; grid-template-columns: minmax(0, 1fr); grid-template-areas: "heading" "tools"; gap: 7px; border-radius: 13px; }
  .arcade-game .control-heading { min-height: 22px; gap: 7px; }
  .arcade-game .loadout-heading { display: none; }
  .arcade-game .energy-rack { gap: 5px; }
  .arcade-game .energy { gap: 3px; font-size: 9px; }
  .arcade-game .energy-label { display: none; }
  .arcade-game .energy > span:first-child { font-size: 18px; }
  .arcade-game .energy b { font-size: 14px; }
  .arcade-game .energy > span:last-child { font-size: 9px; }
  .arcade-game .energy-cells { height: 15px; gap: 2px; padding: 2px; }
  .arcade-game .combat-stats { gap: 4px; font-size: 8px; }
  .arcade-game .combat-stats > span { display: inline-flex; align-items: baseline; gap: 2px; }
  .arcade-game .combat-stats > span > b { font-size: 11px; }
  .arcade-game #hud-streak { font-size: 8px; padding: 3px 4px; }
  .arcade-game .tools { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; }
  .arcade-game .tool { height: 75px; min-height: 44px; padding: 3px 1px 5px; border-width: 2px; border-radius: 8px; }
  .arcade-game .tool .tool-art { width: 51px; height: 38px; }
  .arcade-game .tool-text { font-size: 10px; line-height: 1.05; }
  .arcade-game .tool small { font-size: 9px; margin-top: 4px; }
  .arcade-game .tool.locked small::before { content: ''; }
  .arcade-game .tool-key { display: none; }
  .arcade-game .fire-row { display: block; height: 0; min-height: 0; padding: 0; margin: 0; grid-area: auto; }
  .arcade-game .selected-equipment { left: 62px; bottom: calc(100% + 13px); min-height: 51px; max-width: calc(100% - 169px); padding: 4px 6px 4px 3px; gap: 4px; border-width: 2px; border-radius: 9px; }
  .arcade-game .selected-equipment .tool-art { display: block; width: 37px; height: 34px; }
  .arcade-game #selected-tool-name { font-size: 13px; }
  .arcade-game #selected-tool-shape { display: block; max-width: 120px; margin-top: 4px; font-size: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .arcade-game .fire-button { position: absolute; right: 5px; bottom: calc(100% + 13px); width: 84px; min-width: 84px; height: 84px; min-height: 84px; margin: 0; padding: 8px 3px; border-width: 3px; }
  .arcade-game .fire-button .fire-reticle { width: 27px; height: 27px; }
  .arcade-game #fire-label { font-size: 16px; }
  .arcade-game .mission-fold { left: 4px; bottom: calc(100% + 13px); }
  .arcade-game .mission-fold > summary { min-width: 49px; min-height: 51px; padding: 6px; border-width: 2px; border-radius: 9px; font-size: 8px; }
  .arcade-game .mission-fold > summary svg { width: 22px; height: 22px; }
  .arcade-game .crew-actions { min-width: 148px; padding: 8px; gap: 8px; }
  .arcade-game .nav-button, .arcade-game .upgrade-button { min-height: 44px; font-size: 11px; padding: 8px; }
  .arcade-game .notice { bottom: calc(238px + env(safe-area-inset-bottom)); font-size: 11px; padding: 9px 12px; }
  .arcade-game .combo-banner { top: 36%; padding: 7px 12px; font-size: 24px; }
  .arcade-game .mission-flash { top: 39%; width: max-content; padding: 10px 18px; font-size: 25px; border-width: 3px; }
}
@media (max-width: 350px) {
  .arcade-game .brand { min-width: 43px; width: 43px; justify-content: center; padding: 4px; }
  .arcade-game .brand-wordmark { display: none; }
  .arcade-game .wallet, .arcade-game .star-wallet { font-size: 11px; padding: 5px; }
  .arcade-game .top-actions { gap: 4px; }
  .arcade-game .tool .tool-art { width: 45px; height: 35px; }
  .arcade-game .tool-text { font-size: 9px; }
  .arcade-game .tool small { font-size: 8px; }
  .arcade-game .selected-equipment .tool-art { display: none; }
  .arcade-game .selected-equipment { min-width: 121px; max-width: calc(100% - 159px); }
  .arcade-game #selected-tool-name { font-size: 12px; }
  .arcade-game .fire-button { width: 76px; min-width: 76px; height: 76px; min-height: 76px; }
  .arcade-game #fire-label { font-size: 15px; }
}
@media (max-height: 540px) and (min-aspect-ratio: 1.3) {
  .arcade-game .topbar { height: calc(54px + env(safe-area-inset-top)); padding: calc(6px + env(safe-area-inset-top)) 12px 6px; }
  .arcade-game .brand { min-height: 40px; padding: 3px 6px; }
  .arcade-game .brand-small { display: none; }
  .arcade-game .brand img { width: 25px; height: 25px; }
  .arcade-game .brand-wordmark { display: block; }
  .arcade-game .brand-wordmark > b { display: flex; font-size: 17px; }
  .arcade-game .brand-wordmark > b > span { display: none; }
  .arcade-game .mission { top: calc(65px + env(safe-area-inset-top)); left: 12px; width: 225px; padding: 7px 9px; }
  .arcade-game .mission h1 { font-size: 16px; }
  .arcade-game .mission-intro p, .arcade-game .mission-intro .protected-status { display: none !important; }
  .arcade-game .goal-card { margin-top: 4px; gap: 3px; }
  .arcade-game .goal-value b { font-size: 20px; }
  .arcade-game .progress-track { height: 10px; }
  .arcade-game .arena-top, .arcade-game:has(#protected-status:not([hidden])) .arena-top { top: calc(184px + env(safe-area-inset-top)); left: 12px; right: 12px; }
  .arcade-game .arena-labels { max-width: 225px; }
  .arcade-game .arena-labels .live-label { display: none; }
  .arcade-game #gimmick-panel { padding: 5px 7px; }
  .arcade-game .score-box { position: fixed; left: 50%; right: auto; top: calc(7px + env(safe-area-inset-top)); min-width: 100px; transform: translateX(-50%) rotate(2deg); padding: 3px 8px; }
  .arcade-game .score-box b { font-size: 24px; }
  .arcade-game .camera-fold { top: calc(72px + env(safe-area-inset-top)); right: 12px; }
  .arcade-game .control-panel { width: 300px; left: auto; right: 12px; bottom: calc(9px + env(safe-area-inset-bottom)); transform: none; padding: 6px 7px 9px; grid-template-columns: minmax(0, 1fr) 74px; grid-template-areas: "heading heading" "tools fire"; gap: 5px 8px; }
  .arcade-game .control-heading { min-height: 21px; }
  .arcade-game .energy-cells { height: 13px; gap: 2px; }
  .arcade-game .tools { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
  .arcade-game .tool { height: 44px; flex-direction: row; gap: 2px; padding: 3px 2px; }
  .arcade-game .tool .tool-art { width: 29px; height: 29px; }
  .arcade-game .tool-text { font-size: 8px; width: auto; }
  .arcade-game .tool small { font-size: 7px; margin-top: 3px; }
  .arcade-game .fire-row { grid-area: fire; display: flex; min-height: 74px; height: auto; }
  .arcade-game .fire-button { position: relative; inset: auto; width: 68px; min-width: 68px; height: 68px; min-height: 68px; padding: 6px 2px; }
  .arcade-game .fire-button .fire-reticle { width: 22px; height: 22px; }
  .arcade-game #fire-label { font-size: 14px; }
  .arcade-game .selected-equipment { left: auto; right: 65px; bottom: calc(100% + 9px); min-width: 140px; max-width: 180px; min-height: 44px; padding: 3px 7px; }
  .arcade-game .selected-equipment .tool-art { display: none; }
  .arcade-game .mission-fold { left: auto; right: 0; bottom: calc(100% + 9px); }
  .arcade-game .mission-fold > summary { min-width: 49px; min-height: 44px; }
  .arcade-game .crew-actions { left: auto; right: calc(100% + 8px); bottom: 0; }
  .arcade-game .camera-actions { top: 0; right: calc(100% + 8px); width: 298px; grid-template-columns: repeat(4, 44px) 78px; }
  .arcade-game .camera-actions .text-button { grid-column: auto; width: 78px; font-size: 9px; }
  .arcade-game .world-hint { display: none; }
  .arcade-game .notice { bottom: 170px; }
  .arcade-game .mission-flash { top: 40%; font-size: 22px; }
}
@media (max-height: 540px) and (min-aspect-ratio: 1.3) and (max-width: 700px) {
  .arcade-game .score-box { top: calc(130px + env(safe-area-inset-top)); left: auto; right: 12px; min-width: 91px; transform: rotate(2deg); }
}
@media (prefers-reduced-motion: reduce) {
  .arcade-game *, .arcade-game *::before, .arcade-game *::after { animation: none !important; transition: none !important; }
}
.arcade-game[data-reduced-motion="true"] *, .arcade-game[data-reduced-motion="true"] *::before, .arcade-game[data-reduced-motion="true"] *::after { animation: none !important; transition: none !important; }
.arcade-game[data-modal="home"] .topbar,
.arcade-game[data-modal="home"] .mission,
.arcade-game[data-modal="home"] .control-panel,
.arcade-game[data-modal="home"] .arena-top,
.arcade-game[data-modal="home"] .arena-bottom,
.arcade-game[data-modal="home"] .pause-overlay,
.arcade-game[data-modal="home"] .battle-bursts,
.arcade-game[data-modal="home"] .combo-banner,
.arcade-game[data-modal="home"] .mission-flash { visibility: hidden; pointer-events: none; }
