:root {
  color-scheme: dark;
  --ink: #edf7ff;
  --muted: #90a5bb;
  --cyan: #49f6e8;
  --blue: #5a8cff;
  --violet: #a969ff;
  --pink: #ff5eaa;
  --danger: #ff4e70;
  --panel: rgba(8, 15, 34, 0.76);
  --line: rgba(139, 219, 255, 0.16);
}

* { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; overscroll-behavior: none; }

body {
  min-height: 100vh;
  min-height: 100svh;
  overflow-x: hidden;
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  background:
    radial-gradient(circle at 15% 5%, rgba(49, 102, 197, .2), transparent 34%),
    radial-gradient(circle at 88% 78%, rgba(142, 57, 195, .16), transparent 32%),
    #050813;
}

button, a, select { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { font: inherit; color: inherit; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

.game-shell { width: min(1280px, 100%); margin: 0 auto; padding: 14px clamp(10px, 2.2vw, 28px) 18px; }

.brand-bar, .footer-note { display: flex; align-items: center; justify-content: space-between; }
.brand-bar { height: 46px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 900; letter-spacing: .16em; }
.brand-mark { width: 24px; height: 24px; transform: rotate(45deg); border: 1px solid rgba(73,246,232,.65); border-radius: 7px 2px; box-shadow: inset 0 0 12px rgba(73,246,232,.28), 0 0 18px rgba(73,246,232,.14); position: relative; }
.brand-mark::after { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 9px var(--cyan); }
.brand-actions { display: flex; gap: 7px; }
.icon-button, .hud-button, .close-button { border: 1px solid var(--line); background: rgba(10,19,41,.72); cursor: pointer; backdrop-filter: blur(12px); }
.icon-button { width: 34px; height: 34px; border-radius: 10px; color: #b8cbe0; }
.icon-button:hover, .hud-button:hover { color: white; border-color: rgba(73,246,232,.46); }

.game-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: calc(100vh - 108px);
  max-height: calc(100svh - 108px);
  min-height: 340px;
  overflow: hidden;
  border: 1px solid rgba(121, 202, 255, .2);
  border-radius: clamp(14px, 2vw, 24px);
  background: #071022;
  box-shadow: 0 30px 80px rgba(0,0,0,.48), inset 0 0 0 1px rgba(255,255,255,.02);
  isolation: isolate;
}

.game-frame, .game-frame * { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-user-drag: none; }

.game-frame::before { content: ""; position: absolute; z-index: 4; inset: 0; pointer-events: none; background: repeating-linear-gradient(to bottom, transparent 0 3px, rgba(118,228,255,.023) 4px); mix-blend-mode: screen; }
#gameCanvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
.vignette { position: absolute; z-index: 3; inset: 0; pointer-events: none; box-shadow: inset 0 0 100px rgba(1,5,15,.72); }
.language-control { position: absolute; z-index: 22; top: 16px; right: 18px; display: flex; align-items: center; gap: 8px; padding: 6px 8px 6px 11px; border: 1px solid rgba(139,219,255,.16); border-radius: 10px; color: #7f99b2; background: rgba(8,15,34,.72); backdrop-filter: blur(12px); font-size: 9px; letter-spacing: .08em; }
.language-control select { min-width: 88px; border: 0; outline: 0; color: #d8edf5; background: transparent; font: 700 10px/1.2 inherit; cursor: pointer; }
.language-control option { color: #e7f6ff; background: #0b1730; }
body[data-state="playing"] .language-control,
body[data-state="paused"] .language-control,
body[data-state="complete"] .language-control { display: none; }

.screen { position: absolute; z-index: 10; inset: 0; display: none; }
.screen.is-active { display: flex; animation: screen-in .4s cubic-bezier(.2,.8,.2,1) both; }
@keyframes screen-in { from { opacity: 0; transform: scale(1.015); } }

.menu-screen { align-items: center; justify-content: space-between; gap: 7%; padding: clamp(32px, 6vw, 86px) clamp(28px, 7vw, 96px); background: linear-gradient(90deg, rgba(4,9,23,.88) 0%, rgba(4,9,23,.56) 45%, rgba(4,9,23,.1) 100%); }
.menu-copy { width: min(54%, 560px); }
.eyebrow { display: flex; align-items: center; gap: 9px; margin: 0 0 10px; color: #8ffcf2; font-size: clamp(10px, 1.15vw, 13px); font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.eyebrow > span { width: 23px; height: 1px; background: currentColor; box-shadow: 0 0 7px currentColor; }
.menu-copy h1 { margin: 0; font-family: "Microsoft JhengHei UI", "Microsoft YaHei", sans-serif; font-size: clamp(58px, 8.5vw, 112px); line-height: .82; letter-spacing: -.08em; font-weight: 950; text-shadow: 0 10px 45px rgba(0,0,0,.45); }
.menu-copy h1 em { color: transparent; font-style: normal; -webkit-text-stroke: 1.5px rgba(143,252,242,.86); filter: drop-shadow(0 0 11px rgba(73,246,232,.25)); }
.menu-copy > p { width: min(100%, 500px); margin: clamp(18px, 3vw, 34px) 0 24px; color: #9bafc4; font-size: clamp(12px, 1.35vw, 16px); line-height: 1.85; }
.menu-actions { display: flex; align-items: stretch; gap: 12px; }

.primary-button, .secondary-button { position: relative; min-height: 56px; border-radius: 13px; cursor: pointer; font-weight: 900; letter-spacing: .08em; transition: transform .18s, border-color .18s, filter .18s; }
.primary-button { min-width: 210px; padding: 11px 25px; border: 1px solid rgba(128,255,245,.85); overflow: hidden; color: #061216; background: linear-gradient(115deg, #82fff4, #45dfd7 45%, #7fffd2); box-shadow: 0 10px 30px rgba(37,224,205,.18), inset 0 1px rgba(255,255,255,.8); }
.primary-button::after { content: ""; position: absolute; width: 50px; top: -20px; bottom: -20px; left: -70px; background: rgba(255,255,255,.45); transform: skewX(-22deg); transition: left .5s; }
.primary-button:hover::after { left: calc(100% + 30px); }
.primary-button:hover, .secondary-button:hover { transform: translateY(-2px); }
.primary-button small { display: block; margin-top: 2px; opacity: .58; font-size: 9px; letter-spacing: .04em; }
.button-orbit { position: absolute; width: 62px; height: 62px; left: -28px; top: -19px; border: 1px solid rgba(5,48,49,.22); border-radius: 50%; }
.secondary-button { min-width: 130px; padding: 0 18px; border: 1px solid rgba(149,192,230,.2); background: rgba(12,24,48,.72); backdrop-filter: blur(14px); }
.secondary-button:hover { border-color: rgba(73,246,232,.48); }
.secondary-button i { color: var(--cyan); margin-left: 8px; font-style: normal; }

.menu-side { width: min(33%, 340px); align-self: flex-end; display: grid; gap: 12px; }
.signal-card { padding: clamp(15px, 2vw, 22px); border: 1px solid rgba(136,214,255,.15); border-radius: 17px; background: linear-gradient(145deg, rgba(13,27,54,.78), rgba(8,13,30,.78)); backdrop-filter: blur(15px); box-shadow: 0 16px 45px rgba(0,0,0,.24); }
.signal-top { display: flex; justify-content: space-between; font-size: 10px; color: #9db4cb; letter-spacing: .12em; }
.signal-top b { color: var(--cyan); font-size: 9px; }
.signal-top b::before { content: ""; display: inline-block; width: 5px; height: 5px; margin-right: 5px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.signal-line { height: 30px; margin: 9px 0 5px; opacity: .55; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='30'%3E%3Cpath d='M0 17h27l7-11 9 20 10-13 7 4h29l8-9 8 17 8-11 7 3h34l6-8 8 16 8-9h28' fill='none' stroke='%2349f6e8' stroke-width='1'/%3E%3C/svg%3E") center/100% 100% no-repeat; }
.signal-card dl { margin: 0; }
.signal-card dl div { display: flex; align-items: center; justify-content: space-between; min-height: 34px; border-bottom: 1px solid rgba(128,181,220,.09); }
.signal-card dt { color: #7e96ae; font-size: 10px; }
.signal-card dd { margin: 0; color: #c8d9e9; font-size: 10px; }
.signal-card > p { margin: 12px 0 0; color: #5f7891; font-size: 9px; }
.best-chip { display: flex; justify-content: space-between; align-items: center; padding: 13px 17px; border-radius: 12px; background: rgba(8,16,35,.7); border: 1px solid rgba(138,199,238,.1); }
.best-chip span { color: #7891a8; font-size: 10px; }
.best-chip strong { color: var(--cyan); font: 800 13px/1 monospace; }

.hud { position: absolute; z-index: 8; top: 0; left: 0; right: 0; display: none; align-items: center; justify-content: space-between; min-height: 76px; padding: 12px clamp(14px, 2.5vw, 30px); background: linear-gradient(to bottom, rgba(3,8,20,.87), rgba(3,8,20,.04)); pointer-events: none; }
body[data-state="playing"] .hud { display: flex; }
.hud-level, .hud-stats, .hud-actions { pointer-events: auto; }
.hud-level { display: grid; }
.hud-kicker { color: var(--cyan); font: 700 clamp(8px, .85vw, 10px)/1.4 monospace; letter-spacing: .12em; }
.hud-level strong { font-size: clamp(13px, 1.4vw, 18px); }
.hud-stats { display: flex; gap: clamp(12px, 3vw, 42px); }
.hud-stats div { display: grid; text-align: center; }
.hud-stats span { color: #7189a2; font-size: 8px; letter-spacing: .15em; }
.hud-stats strong { margin-top: 3px; font: 700 clamp(11px, 1.4vw, 16px)/1 monospace; }
.hud-actions { display: flex; gap: 6px; }
.hud-button { min-height: 32px; padding: 0 10px; border-radius: 9px; color: #8ea5bb; font-size: 10px; }

.panel-screen { flex-direction: column; padding: clamp(24px, 4vw, 55px) clamp(24px, 6vw, 80px); background: rgba(4,9,22,.9); backdrop-filter: blur(10px); }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; }
.panel-heading h2, .dialog-card h2 { margin: 0; font-size: clamp(30px, 4vw, 54px); letter-spacing: -.05em; }
.panel-heading .eyebrow { margin-bottom: 5px; }
.close-button { width: 40px; height: 40px; border-radius: 50%; font-size: 25px; color: #91a7bd; }
.level-grid { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); align-content: center; gap: clamp(10px, 1.4vw, 18px); }
.level-card { position: relative; min-height: clamp(88px, 14vh, 130px); overflow: hidden; padding: 16px; text-align: left; cursor: pointer; border: 1px solid rgba(135,202,242,.13); border-radius: 15px; color: var(--ink); background: linear-gradient(135deg, rgba(16,33,61,.9), rgba(7,13,30,.92)); transition: transform .2s, border-color .2s; }
.level-card::after { content: ""; position: absolute; inset: auto -20% -70% 25%; height: 100%; border-radius: 50%; background: var(--card-glow, #49f6e8); opacity: .11; filter: blur(20px); }
.level-card:not(:disabled):hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--card-glow), transparent 44%); }
.level-card:disabled { cursor: not-allowed; filter: grayscale(.8); opacity: .38; }
.level-card .number { color: var(--card-glow); font: 700 11px/1 monospace; }
.level-card strong { display: block; margin-top: 13px; font-size: clamp(14px, 1.6vw, 19px); }
.level-card small { color: #70879e; font: 10px/1 monospace; }
.level-card .lock { position: absolute; right: 15px; top: 14px; color: #668096; font-size: 12px; }

.compact-screen { align-items: center; justify-content: center; background: rgba(3,7,17,.68); backdrop-filter: blur(8px); }
.dialog-card { width: min(440px, 84%); padding: clamp(24px, 4vw, 42px); text-align: center; border: 1px solid rgba(132,214,243,.18); border-radius: 22px; background: linear-gradient(145deg, rgba(14,28,52,.96), rgba(7,12,28,.96)); box-shadow: 0 30px 80px rgba(0,0,0,.48); }
.dialog-card .eyebrow { justify-content: center; margin-top: 10px; }
.dialog-symbol { display: inline-grid; place-items: center; width: 58px; height: 58px; border: 1px solid rgba(73,246,232,.38); border-radius: 50%; color: var(--cyan); font: 800 20px/1 monospace; box-shadow: inset 0 0 20px rgba(73,246,232,.1); }
.dialog-actions { display: flex; justify-content: center; gap: 10px; margin-top: 26px; }
.dialog-actions .slim { min-width: 135px; }
.complete-card { width: min(510px, 88%); }
.rank-badge { display: grid; place-items: center; width: 72px; height: 72px; margin: -73px auto 8px; clip-path: polygon(50% 0, 94% 25%, 94% 75%, 50% 100%, 6% 75%, 6% 25%); color: #06161c; background: linear-gradient(135deg, #fff5ad, #5effec 55%, #68a5ff); font: 950 32px/1 monospace; filter: drop-shadow(0 8px 18px rgba(66,240,222,.28)); }
.complete-name { margin: 8px 0 20px; color: #88a0b7; }
.result-row { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.result-row div { display: grid; gap: 5px; padding: 15px 6px; }
.result-row div + div { border-left: 1px solid var(--line); }
.result-row span { color: #7189a1; font-size: 9px; }
.result-row strong { font: 700 14px/1 monospace; }
.new-record { height: 12px; margin: 10px 0 -3px; color: #ffe779; font: 800 10px/1 monospace; letter-spacing: .16em; opacity: 0; }
.new-record.is-visible { opacity: 1; animation: record-pulse .7s infinite alternate; }
@keyframes record-pulse { to { text-shadow: 0 0 13px #ffe779; } }

.toast { position: absolute; z-index: 20; left: 50%; bottom: 15%; padding: 9px 15px; transform: translate(-50%, 16px); opacity: 0; border: 1px solid rgba(255,255,255,.15); border-radius: 99px; color: #dcecff; background: rgba(7,14,30,.88); font-size: 11px; pointer-events: none; transition: .25s; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

.touch-controls { position: absolute; z-index: 9; inset: 0; display: none; pointer-events: none; }
.touch-controls button { pointer-events: auto; touch-action: none; user-select: none; border: 1px solid rgba(150,222,255,.24); color: #dffeff; background: rgba(8,19,40,.58); backdrop-filter: blur(8px); box-shadow: inset 0 0 17px rgba(73,246,232,.05); }
.joystick-wrap { --joystick-x: 78px; --joystick-y: calc(100% - 78px); position: absolute; z-index: 1; inset: max(72px, calc(env(safe-area-inset-top) + 58px)) 42% 0 0; color: rgba(150,196,218,.34); font-size: 8px; letter-spacing: .15em; pointer-events: auto; touch-action: none; user-select: none; overflow: visible; }
.joystick-wrap > small { position: absolute; left: max(26px, env(safe-area-inset-left)); bottom: max(17px, env(safe-area-inset-bottom)); pointer-events: none; opacity: .62; transition: opacity .12s; }
.joystick { position: absolute; left: 0; top: 0; width: clamp(92px, 14vw, 122px); height: clamp(92px, 14vw, 122px); transform: translate3d(var(--joystick-x), var(--joystick-y), 0) translate(-50%, -50%) scale(.86); opacity: 0; pointer-events: none; border: 1px solid rgba(129,221,238,.13); border-radius: 50%; touch-action: none; user-select: none; background: radial-gradient(circle, rgba(20,49,73,.22) 0 42%, rgba(8,19,40,.1) 43% 100%); box-shadow: inset 0 0 24px rgba(73,246,232,.035), 0 6px 18px rgba(0,0,0,.1); backdrop-filter: blur(2px); transition: opacity .12s, border-color .12s; will-change: transform; }
.joystick::before, .joystick::after { content: ""; position: absolute; inset: 50% 14px auto; height: 1px; background: rgba(117,205,224,.07); }
.joystick::after { transform: rotate(90deg); }
.joystick-knob { position: absolute; left: 50%; top: 50%; width: 43%; height: 43%; transform: translate(-50%, -50%); border: 1px solid rgba(163,255,246,.4); border-radius: 50%; background: radial-gradient(circle at 38% 30%, rgba(178,255,248,.54), rgba(43,181,185,.42) 34%, rgba(11,47,70,.64) 72%); box-shadow: 0 0 13px rgba(73,246,232,.14), inset 0 0 9px rgba(255,255,255,.09); transition: box-shadow .15s; }
.joystick-wrap.is-active > small { opacity: 0; }
.joystick-wrap.is-active .joystick { opacity: .82; border-color: rgba(129,221,238,.25); transform: translate3d(var(--joystick-x), var(--joystick-y), 0) translate(-50%, -50%) scale(1); }
.joystick-wrap.is-active .joystick-knob { box-shadow: 0 0 24px rgba(73,246,232,.42), inset 0 0 11px rgba(255,255,255,.17); }
.jump-button { position: absolute; right: max(22px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); display: grid; place-items: center; width: clamp(76px, 12vw, 98px); height: clamp(76px, 12vw, 98px); border-radius: 50%; }
.jump-button span { font-size: 25px; line-height: 1; color: var(--cyan); text-shadow: 0 0 13px currentColor; }.jump-button small { color: #8fb3c3; font-size: 8px; letter-spacing: .14em; }
.touch-controls button.is-pressed { color: #07161a; background: rgba(96,255,239,.9); transform: scale(.95); }
body[data-state="playing"] .touch-controls { display: block; }

.footer-note { min-height: 36px; color: #526a81; font-size: 9px; letter-spacing: .05em; }
.footer-note i { display: inline-block; width: 5px; height: 5px; margin-right: 6px; border-radius: 50%; background: #4ef4c5; box-shadow: 0 0 7px #4ef4c5; }
@media (max-width: 760px) {
  html, body { height: 100%; overflow: hidden; }
  .game-shell { padding: 6px; }
  .brand-bar, .footer-note { display: none; }
  .game-frame { min-height: 0; height: calc(100vh - 12px); height: calc(100svh - 12px); max-height: none; border-radius: 13px; }
  .menu-screen { padding: 30px; }
  .menu-copy { width: 63%; }
  .menu-side { width: 32%; }
  .signal-card { display: none; }
  .level-grid { grid-template-columns: repeat(3, 1fr); }
  .hud { min-height: 55px; }
}

@media (max-width: 540px) {
  .menu-screen { align-items: flex-start; justify-content: center; padding: 25px 24px; background: rgba(4,9,23,.68); }
  .menu-copy { width: 100%; }
  .menu-copy h1 { font-size: 58px; }
  .menu-copy > p { font-size: 12px; line-height: 1.55; margin: 18px 0; }
  .menu-side { display: none; }
  .menu-actions { align-items: stretch; }
  .primary-button { min-width: 175px; }
  .secondary-button { min-width: 110px; }
  .hud-button:first-child { display: none; }
  .panel-screen { padding: 20px; }
  .level-grid { grid-template-columns: repeat(2, 1fr); }
  .level-card { min-height: 78px; padding: 12px; }
}

@media (orientation: portrait) and (max-width: 900px) {
  html, body { height: 100%; overflow: hidden; }
  .game-shell { width: 100%; height: 100vh; height: 100svh; padding: 0; }
  .brand-bar, .footer-note { display: none; }
  .game-frame { width: 100%; height: 100vh; height: 100svh; min-height: 0; max-height: none; aspect-ratio: auto; border: 0; border-radius: 0; }
  .language-control { top: max(12px, env(safe-area-inset-top)); right: max(12px, env(safe-area-inset-right)); }
  .menu-screen { align-items: flex-start; justify-content: flex-start; flex-direction: column; gap: 20px; padding: max(68px, calc(env(safe-area-inset-top) + 56px)) clamp(22px, 7vw, 56px) max(24px, env(safe-area-inset-bottom)); background: linear-gradient(to bottom, rgba(4,9,23,.84), rgba(4,9,23,.45)); overflow-y: auto; }
  .menu-copy { width: 100%; }
  .menu-copy h1 { font-size: clamp(68px, 18vw, 124px); }
  .menu-copy > p { width: 100%; max-width: 580px; font-size: clamp(13px, 2.3vw, 18px); }
  .menu-side { display: grid; width: 100%; max-width: 540px; align-self: auto; }
  .signal-card { display: block; }
  .signal-card dl div { min-height: 39px; }
  .signal-card > p { display: block; }
  .level-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; overflow-y: auto; padding: 18px 2px max(18px, env(safe-area-inset-bottom)); }
  .level-card { min-height: 104px; }
  .hud { align-items: flex-start; min-height: 70px; padding-top: max(12px, env(safe-area-inset-top)); }
  .hud-level { max-width: 36%; }
  .hud-stats { gap: 13px; }
  .hud-actions { gap: 5px; }
  .hud-button { min-height: 36px; padding-inline: 11px; }
  .joystick-wrap { inset: max(72px, calc(env(safe-area-inset-top) + 58px)) 40% 0 0; }
  .joystick { width: clamp(108px, 25vw, 142px); height: clamp(108px, 25vw, 142px); }
  .jump-button { right: max(24px, env(safe-area-inset-right)); bottom: max(24px, calc(env(safe-area-inset-bottom) + 14px)); width: clamp(88px, 20vw, 116px); height: clamp(88px, 20vw, 116px); }
}

@media (orientation: landscape) and (max-width: 1366px) and (max-height: 900px) {
  html, body { height: 100%; overflow: hidden; }
  .game-shell { width: 100%; height: 100vh; height: 100svh; padding: 0; }
  .brand-bar, .footer-note { display: none; }
  .game-frame { width: 100%; height: 100vh; height: 100svh; min-height: 0; max-height: none; aspect-ratio: auto; border: 0; border-radius: 0; }
  .menu-screen { padding: max(24px, env(safe-area-inset-top)) max(34px, calc(env(safe-area-inset-right) + 24px)) max(18px, env(safe-area-inset-bottom)) max(34px, calc(env(safe-area-inset-left) + 24px)); }
  .menu-copy h1 { font-size: clamp(58px, 14vh, 90px); }
  .menu-copy > p { margin: 14px 0; line-height: 1.55; }
  .signal-card { padding: 13px; }
  .signal-line { height: 20px; }
  .signal-card dl div { min-height: 27px; }
  .joystick-wrap { inset: max(68px, calc(env(safe-area-inset-top) + 54px)) 48% 0 0; }
  .jump-button { bottom: max(12px, env(safe-area-inset-bottom)); }
}

body.performance-mode .game-frame { box-shadow: none; }
body.performance-mode .game-frame::before { display: none; background: none; mix-blend-mode: normal; }
body.performance-mode .vignette {
    box-shadow: none;
    background: radial-gradient(ellipse at center, transparent 64%, rgba(1,5,15,.4) 100%);
}

body.performance-mode .icon-button,
body.performance-mode .hud-button,
body.performance-mode .close-button,
body.performance-mode .language-control,
body.performance-mode .secondary-button,
body.performance-mode .signal-card,
body.performance-mode .panel-screen,
body.performance-mode .compact-screen,
body.performance-mode .touch-controls button,
body.performance-mode .joystick {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

body.performance-mode .icon-button, body.performance-mode .hud-button, body.performance-mode .close-button { background: rgba(10,19,41,.9); }
body.performance-mode .language-control { background: rgba(8,15,34,.9); }
body.performance-mode .secondary-button { background: rgba(12,24,48,.9); }
body.performance-mode .signal-card { background: linear-gradient(145deg, rgba(13,27,54,.94), rgba(8,13,30,.94)); }
body.performance-mode .panel-screen { background: rgba(4,9,22,.97); }
body.performance-mode .compact-screen { background: rgba(3,7,17,.88); }
body.performance-mode .touch-controls button { background: rgba(8,19,40,.76); box-shadow: none; }
body.performance-mode .joystick {
    background: radial-gradient(circle, rgba(20,49,73,.38) 0 42%, rgba(8,19,40,.22) 43% 100%);
    box-shadow: none;
}
body.performance-mode .joystick-knob,
body.performance-mode .joystick-wrap.is-active .joystick-knob { box-shadow: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}
