:root {
  --acid: #82f000;
  --red: #ff315c;
  --cyan: #19b7e5;
  --yellow: #f4ff57;
  --pink: #ff5d8f;
  --ink: #080908;
  --panel: rgba(8, 9, 8, .9);
  --line: rgba(255, 255, 255, .2);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
html { background: var(--ink); }
body {
  margin: 0;
  overflow-x: hidden;
  color: #f6f7f3;
  background: var(--ink);
  font-family: Manrope, Inter, Arial, sans-serif;
}
button, input { font: inherit; }
button { border-radius: 0; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }

.game-page {
  min-height: 100vh;
  background:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px),
    var(--ink);
  background-size: 64px 64px;
}

.game-header {
  position: fixed;
  z-index: 50;
  inset: 0 0 auto;
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 22px;
  align-items: center;
  min-height: 86px;
  padding: 8px max(22px, calc((100vw - 1240px) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(7, 8, 7, .88);
  backdrop-filter: blur(18px);
}
.game-logo { display: block; width: 108px; height: 68px; }
.game-logo img { width: 100%; height: 100%; object-fit: contain; transform: scale(1.32); }
.game-title { color: #aeb1ab; font-size: .7rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.game-nav, .overlay-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

.game-button, .tool-button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 1px solid currentColor;
  color: #080908;
  background: var(--acid);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
}
.game-button.secondary { color: #fff; background: transparent; border-color: rgba(255, 255, 255, .55); }
.game-button.red { color: #fff; background: var(--red); border-color: var(--red); }
.game-button:disabled { cursor: wait; opacity: .55; }
.game-button:focus-visible, .tool-button:focus-visible, .character-option:focus-visible, .decision-option:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.game-button.wide { width: 100%; }

.game-stage { position: relative; min-height: 100vh; padding-top: 86px; overflow: hidden; }
.game-canvas { display: block; width: 100%; height: calc(100vh - 86px); min-height: 580px; background: #080b09; touch-action: none; }

.webgl-status {
  position: absolute;
  z-index: 5;
  inset: 50% auto auto 50%;
  translate: -50% -50%;
  padding: 12px 16px;
  color: #080908;
  background: var(--acid);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.game-hud {
  position: absolute;
  z-index: 8;
  inset: 112px 26px auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  align-items: start;
  pointer-events: none;
}
.hud-card { width: max-content; max-width: 360px; padding: 12px 15px; border: 1px solid var(--line); background: rgba(4, 5, 4, .75); backdrop-filter: blur(10px); }
.hud-card.right { justify-self: end; text-align: right; }
.hud-label { display: block; color: #969b93; font-size: .62rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.hud-value { display: block; margin-top: 5px; color: #fff; font: 700 1.5rem/1 Oswald, Impact, sans-serif; text-transform: uppercase; }
.hud-level { text-align: center; }
.hud-level strong { display: block; color: var(--acid); font: 700 2rem/1 Oswald, Impact, sans-serif; }
.hud-level span { color: #c0c4bd; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; }

.stage-badge {
  position: absolute;
  z-index: 8;
  top: 196px;
  left: 50%;
  translate: -50% 0;
  padding: 7px 13px;
  border: 1px solid rgba(244, 255, 87, .46);
  color: #fff;
  background: rgba(5, 7, 5, .78);
  font-size: .64rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  pointer-events: none;
  backdrop-filter: blur(8px);
}
.stage-badge span { color: var(--yellow); text-shadow: 0 0 10px var(--yellow); }

.game-tools { position: absolute; z-index: 10; top: 198px; left: 26px; display: flex; gap: 6px; }
.tool-button { min-height: 34px; padding: 7px 9px; color: #dce0da; border-color: rgba(255, 255, 255, .3); background: rgba(5, 7, 5, .8); font-size: .56rem; }
.tool-button[aria-pressed="true"] { color: #080908; border-color: var(--yellow); background: var(--yellow); }

.desktop-controls {
  display: none;
  position: absolute;
  z-index: 9;
  left: 26px;
  bottom: 49px;
  max-width: 520px;
  padding: 12px 14px;
  border-left: 3px solid var(--acid);
  color: #c8ccc5;
  background: rgba(4, 5, 4, .78);
  font-size: .66rem;
  line-height: 1.45;
  pointer-events: none;
  backdrop-filter: blur(10px);
}
.desktop-controls strong { color: var(--acid); letter-spacing: .13em; text-transform: uppercase; }
.desktop-controls span { margin-left: 12px; }
kbd { padding: 2px 5px; border: 1px solid rgba(255, 255, 255, .4); color: #fff; background: #101210; }

.game-hint {
  position: absolute;
  z-index: 13;
  left: 50%;
  bottom: 74px;
  width: max-content;
  max-width: min(620px, calc(100vw - 32px));
  padding: 12px 18px;
  translate: -50% 0;
  border: 1px solid var(--yellow);
  color: #090a09;
  background: var(--yellow);
  box-shadow: 0 10px 40px rgba(0, 0, 0, .45);
  font-size: .76rem;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
  text-transform: uppercase;
  pointer-events: none;
  animation: hint-in .28s ease both;
}
.game-hint.is-danger { color: #fff; border-color: var(--red); background: rgba(154, 8, 36, .95); }
@keyframes hint-in { from { opacity: 0; translate: -50% 12px; } to { opacity: 1; translate: -50% 0; } }

.damage-flash { position: absolute; z-index: 12; inset: 86px 0 0; background: rgba(255, 16, 54, .22); box-shadow: inset 0 0 120px rgba(255, 0, 42, .6); opacity: 0; pointer-events: none; }
.damage-flash.is-active { animation: damage-flash .58s ease-out; }
@keyframes damage-flash { 0%, 100% { opacity: 0; } 18% { opacity: 1; } 45% { opacity: .16; } 68% { opacity: .55; } }

.signal-meter { position: absolute; z-index: 8; right: 28px; top: 210px; width: 8px; height: 230px; border: 1px solid rgba(255, 255, 255, .35); background: rgba(0, 0, 0, .55); pointer-events: none; }
.signal-meter span { position: absolute; inset: auto 0 0; height: 100%; background: linear-gradient(var(--acid), var(--cyan)); transition: height .18s ease; }
.signal-meter.is-low span { background: linear-gradient(var(--yellow), var(--red)); }

.level-track { position: absolute; z-index: 8; inset: auto 28px 25px; display: grid; grid-template-columns: repeat(15, 1fr); gap: 5px; pointer-events: none; }
.level-track i { height: 5px; background: rgba(255, 255, 255, .15); }
.level-track i.done { background: var(--acid); }
.level-track i.current { background: var(--red); box-shadow: 0 0 16px rgba(255, 49, 92, .8); }
.level-track i.locked { background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .15) 0 3px, transparent 3px 6px); }

.game-overlay {
  position: absolute;
  z-index: 20;
  inset: 86px 0 0;
  display: grid;
  place-items: center;
  padding: 30px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: linear-gradient(90deg, rgba(3, 4, 3, .97), rgba(3, 4, 3, .62) 50%, rgba(3, 4, 3, .87)), url("gameplay-bg.webp") center / cover;
}
.overlay-panel { width: min(100%, 1140px); padding: 46px; border: 1px solid rgba(255, 255, 255, .26); background: var(--panel); backdrop-filter: blur(14px); }
.overlay-kicker { color: var(--acid); font-size: .68rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.overlay-panel h1, .overlay-panel h2 { margin: 18px 0 20px; font: 700 clamp(4rem, 9vw, 8.6rem) / .82 Oswald, Impact, sans-serif; text-transform: uppercase; }
.overlay-panel h2 { font-size: clamp(3rem, 7vw, 6.2rem); }
.overlay-panel h1 span, .overlay-panel h2 span { color: var(--acid); }
.overlay-panel p { color: #c4c8c0; line-height: 1.55; }
.overlay-actions { margin-top: 28px; }

.start-panel { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(360px, .88fr); gap: 46px; align-items: center; }
.start-copy > p { max-width: 680px; font-size: 1.02rem; }
.start-benefits { display: grid; gap: 8px; padding: 0; margin: 22px 0; list-style: none; color: #d9ddd6; font-size: .82rem; }
.start-benefits li::before { content: "●"; margin-right: 9px; color: var(--acid); }
.controls-line { display: flex; flex-wrap: wrap; gap: 12px 18px; margin-top: 26px; color: #969b93; font-size: .72rem; }
.controls-line strong { color: var(--acid); text-transform: uppercase; }
.character-select { padding: 24px; border: 1px solid rgba(130, 240, 0, .42); background: rgba(130, 240, 0, .055); }
.character-preview-wrap { position: relative; }
.character-model-preview { display: block; width: 100%; height: 210px; margin: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, .15); background: radial-gradient(circle at 50% 75%, rgba(130, 240, 0, .16), transparent 55%); }
.model-loading { position: absolute; inset: 50% 12px auto; translate: 0 -50%; color: #aeb4aa; font-size: .62rem; font-weight: 800; letter-spacing: .08em; text-align: center; text-transform: uppercase; }
.model-error { color: var(--yellow) !important; font-size: .7rem; text-align: center; }
.character-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0 16px; }
.character-option { min-width: 0; padding: 11px 8px; border: 1px solid rgba(255, 255, 255, .2); color: #fff; background: #111311; cursor: pointer; text-align: left; }
.character-option.is-selected { border-color: var(--character-accent, var(--acid)); background: color-mix(in srgb, var(--character-accent, var(--acid)) 13%, #111311); box-shadow: inset 0 -3px var(--character-accent, var(--acid)); }
.character-option strong, .character-option small, .character-option em { display: block; }
.character-option strong { font-size: .78rem; }
.character-option em { margin-top: 4px; color: var(--character-accent, var(--acid)); font-size: .58rem; font-style: normal; font-weight: 800; text-transform: uppercase; }
.character-option small { margin-top: 4px; color: #9da29a; font-size: .57rem; line-height: 1.35; }
.text-link { display: block; margin-top: 13px; color: #c7cac4; font-size: .72rem; text-align: center; text-decoration: underline; text-underline-offset: 4px; }
.resume-note { margin: 10px 0 0; color: var(--yellow) !important; font-size: .7rem; text-align: center; }
.access-code-form { display: grid; gap: 7px; margin-top: 13px; padding-top: 13px; border-top: 1px solid rgba(255, 255, 255, .16); }
.access-code-form label { color: #d1d5cd; font-size: .66rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.access-code-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 7px; }
.access-code-row input { width: 100%; min-width: 0; min-height: 46px; padding: 10px 12px; border: 1px solid rgba(255, 255, 255, .3); color: #fff; background: #080908; }
.access-code-row input:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; border-color: var(--yellow); }
.access-code-row .game-button { width: auto; min-width: 108px; }
.access-code-status { min-height: 18px; margin: 0 !important; color: var(--yellow) !important; font-size: .66rem; line-height: 1.4 !important; }
.access-code-form.is-success { border-color: var(--acid); }
.access-code-form.is-success .access-code-status { color: var(--acid) !important; }

.mission-card, .decision-panel {
  position: absolute;
  z-index: 24;
  left: 50%;
  top: 50%;
  width: min(92vw, 660px);
  padding: 34px;
  border: 1px solid var(--acid);
  background: rgba(6, 7, 6, .96);
  transform: translate(-50%, -50%);
  text-align: center;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .58);
}
.mission-card h2, .decision-panel h2 { margin: 8px 0 14px; font: 700 clamp(2.6rem, 7vw, 5rem) / .9 Oswald, Impact, sans-serif; text-transform: uppercase; }
.mission-card p, .decision-panel p { color: #bec3bb; line-height: 1.5; }
.mission-rule { margin: 16px 0 20px; padding: 10px 12px; border-left: 3px solid var(--yellow); color: #fff; background: rgba(244, 255, 87, .08); font-size: .75rem; font-weight: 800; line-height: 1.4; text-align: left; text-transform: uppercase; }
.decision-panel { border-color: var(--yellow); }
.decision-options { display: grid; gap: 9px; margin-top: 20px; }
.decision-option { min-height: 48px; padding: 11px 14px; border: 1px solid rgba(255, 255, 255, .28); color: #fff; background: #121412; cursor: pointer; text-align: left; }
.decision-option:hover { border-color: var(--acid); }

.result-panel { display: grid; grid-template-columns: .85fr 1.15fr; gap: 34px 48px; align-items: start; }
.result-panel h2 { font-size: clamp(3.4rem, 7vw, 6rem); }
.result-grid { display: grid; gap: 12px; }
.result-card { padding: 18px; border: 1px solid var(--line); background: rgba(255, 255, 255, .035); }
.result-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.result-head strong { font: 700 1.25rem Oswald, Impact, sans-serif; text-transform: uppercase; }
.result-head b { color: var(--acid); font: 700 1.5rem Oswald, Impact, sans-serif; }
.result-bar { height: 7px; margin: 10px 0; background: rgba(255, 255, 255, .12); }
.result-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--cyan), var(--acid)); }
.result-card em { color: var(--yellow); font-size: .66rem; font-style: normal; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.result-card p { margin: 7px 0 0; color: #adb2aa; font-size: .75rem; }
.result-next { grid-column: 1 / -1; padding-top: 8px; border-top: 1px solid var(--line); }

.gate-grid { display: grid; grid-template-columns: .72fr 1.28fr; gap: 38px; align-items: center; }
.gate-map { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 24px 0; }
.gate-map span { display: grid; aspect-ratio: 1; place-items: center; border: 1px solid var(--line); color: #737870; font: 700 1rem Oswald, Impact, sans-serif; }
.gate-map span.done { color: #080908; background: var(--acid); border-color: var(--acid); }
.gate-map span.next { color: #fff; border-color: var(--red); box-shadow: inset 0 -4px var(--red); }
.gate-side { padding: 24px; scroll-margin-top: 18px; border: 1px solid var(--line); background: rgba(255, 255, 255, .035); }
.gate-side h3 { margin: 8px 0 12px; font: 700 2rem Oswald, Impact, sans-serif; text-transform: uppercase; }
.gate-side form, .access-step { display: grid; gap: 11px; }
.gate-side .access-code-form { gap: 7px; margin-top: 0; padding-top: 0; border-top: 0; }
.gate-divider { position: relative; margin: 22px 0; border-top: 1px solid rgba(255, 255, 255, .16); text-align: center; }
.gate-divider span { position: relative; top: -9px; padding: 0 9px; color: #858a83; background: #111311; font-size: .62rem; font-weight: 800; text-transform: uppercase; }
.access-step { margin-top: 18px; }
.gate-side label { display: grid; gap: 6px; color: #d1d5cd; font-size: .75rem; }
.gate-side input { width: 100%; min-height: 48px; padding: 11px 13px; border: 1px solid rgba(255, 255, 255, .3); color: #fff; background: #080908; }
.gate-side textarea { width: 100%; min-height: 88px; resize: vertical; padding: 11px 13px; border: 1px solid rgba(255, 255, 255, .3); color: #fff; background: #080908; font: inherit; }
.gate-side input:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; border-color: var(--yellow); }
.access-status { min-height: 22px; margin: 0; color: var(--yellow) !important; font-size: .75rem; }
.form-honeypot { position: fixed !important; left: -10000px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; pointer-events: none !important; }
.gate-side .consent-row { display: flex; align-items: flex-start; gap: 10px; }
.gate-side .consent-row input { width: 18px; height: 18px; min-width: 18px; min-height: 18px; margin: 1px 0 0; accent-color: var(--acid); }
.gate-side .consent-row span { color: #aeb4ae; font-size: .68rem; line-height: 1.4; }
.gate-side .consent-row a { color: var(--acid); text-decoration: underline; text-underline-offset: 3px; }
.manager-picker { min-width: 0; margin: 2px 0; padding: 14px; border: 1px solid rgba(255,255,255,.2); background: rgba(0,0,0,.18); }
.manager-picker legend { padding: 0 6px; color: #eef2ec; font-size: .76rem; font-weight: 850; }
.manager-picker legend span { display: inline-flex; margin-left: 6px; padding: 3px 6px; border-radius: 999px; color: var(--acid); background: rgba(130,240,0,.11); font-size: .53rem; letter-spacing: .06em; text-transform: uppercase; vertical-align: middle; }
.manager-picker-help { margin: 0 0 10px; color: #9fa79f; font-size: .67rem; line-height: 1.45; }
.lead-profile { display: grid; gap: 10px; padding: 14px; border: 1px solid rgba(255,255,255,.2); background: rgba(0,0,0,.18); }
.lead-profile-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.lead-profile-head strong { color: #f4f5f1; font-size: .82rem; letter-spacing: -.015em; }
.lead-profile-head>span,.field-optional { display: inline-flex; padding: 3px 7px; border-radius: 999px; background: #ffd3df; color: #491424!important; font-size: .53rem!important; font-weight: 850!important; }
.lead-profile-help { margin: -3px 0 0; color: #9fa79f; font-size: .65rem; line-height: 1.4; }
.choice-field { min-width: 0; margin: 0; padding: 0; border: 0; }
.choice-field legend { margin-bottom: 7px; color: #eef2ec; font-size: .72rem; font-weight: 800; letter-spacing: -.01em; }
.choice-field legend small { color: #aab2ac; font-weight: 500; }
.choice-buttons,.manager-choice-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 7px; }
.choice-buttons label { display: block; min-width: 0; cursor: pointer; }
.gate-side .choice-buttons input { position: absolute; width: 1px; min-width: 1px; height: 1px; min-height: 1px; opacity: 0; pointer-events: none; }
.choice-buttons span { display: flex; min-height: 48px; height: 100%; align-items: center; justify-content: center; padding: 8px; border: 1px solid #ff9fba; background: #ffd3df; color: #35101b; font-size: .67rem; font-weight: 800; text-align: center; transition: border-color .18s,background .18s,transform .18s,box-shadow .18s; }
.choice-buttons label:hover span { border-color: #ff5f8e; background: #ffc0d2; transform: translateY(-1px); box-shadow: 0 7px 18px rgba(255,95,142,.16); }
.choice-buttons input:focus-visible+span { outline: 3px solid var(--yellow); outline-offset: 2px; }
.choice-buttons input:checked+span { border-color: var(--acid); background: var(--acid); color: #080908; }
.lead-profile-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.lead-profile-about { grid-column: 1/-1; }
.lead-profile-fields label>span { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.manager-choice-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
.gate-side .manager-choice { display: block; min-width: 0; cursor: pointer; }
.manager-choice-auto { grid-column: 1/-1; }
.gate-side .manager-choice input { position: absolute; width: 1px; min-width: 1px; height: 1px; min-height: 1px; opacity: 0; pointer-events: none; }
.manager-choice>span { position: relative; display: flex; min-height: 68px; height: 100%; flex-direction: column; justify-content: center; gap: 4px; padding: 11px 40px 11px 12px; border: 1px solid #ff9fba; background: #ffd3df; color: #35101b; transition: border-color .18s,background .18s,color .18s,transform .18s,box-shadow .18s; }
.manager-choice>span::after { content: ""; position: absolute; right: 12px; top: 50%; width: 20px; height: 20px; border: 2px solid #7a2641; border-radius: 50%; transform: translateY(-50%); }
.manager-choice strong,.manager-choice small { display: block; text-align: left; }
.manager-choice strong { font-size: .74rem; line-height: 1.2; }
.manager-choice small { color: #6a3545; font-size: .61rem; line-height: 1.3; }
.manager-choice:hover>span { border-color: #ff5f8e; background: #ffc0d2; transform: translateY(-1px); box-shadow: 0 7px 18px rgba(255,95,142,.16); }
.manager-choice input:focus-visible+span { outline: 3px solid var(--yellow); outline-offset: 2px; }
.manager-choice input:checked+span { border-color: var(--acid); background: var(--acid); color: #080908; }
.manager-choice input:checked+span::after { border-color: #080908; background: #080908; box-shadow: inset 0 0 0 5px var(--acid); }
.manager-choice input:checked+span small { color: #26321f; }
.manager-picker-status { min-height: 18px; margin: 9px 0 0; color: #929a92; font-size: .61rem; line-height: 1.4; }
.manager-picker.has-error { border-color: var(--red); }
.manager-picker.has-error .manager-picker-status { color: #ff8eaa; }
.lead-success { display: grid; gap: 14px; padding: 26px; border: 1px solid var(--acid); background: rgba(130, 240, 0, .08); }
.lead-success h3, .lead-success p { margin: 0; }
.lead-success:focus { outline: 3px solid var(--yellow); outline-offset: 4px; }

.reward-card { display: grid; gap: 6px; max-width: 520px; margin-top: 22px; padding: 18px; border: 1px solid var(--yellow); background: rgba(244, 255, 87, .08); }
.reward-card strong { color: var(--yellow); text-transform: uppercase; }
.reward-card span { color: #bec3bb; font-size: .75rem; }

.mobile-control {
  display: none;
  position: absolute;
  z-index: 9;
  bottom: 54px;
  width: 112px;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, .26);
  border-radius: 50%;
  background: rgba(0, 0, 0, .32);
  pointer-events: none;
}
.mobile-control i { position: absolute; left: 34px; top: 34px; width: 44px; aspect-ratio: 1; border-radius: 50%; background: rgba(130, 240, 0, .55); transform: translate(0, 0); }
.mobile-control.right i { background: rgba(25, 183, 229, .58); }
.mobile-control span { position: absolute; inset: auto 0 -23px; color: #a4a9a1; font-size: .55rem; font-weight: 800; letter-spacing: .1em; text-align: center; text-transform: uppercase; }
.mobile-control.left { left: max(20px, env(safe-area-inset-left)); }
.mobile-control.right { right: max(20px, env(safe-area-inset-right)); }

.pause-card { position: absolute; z-index: 26; left: 50%; top: 50%; display: grid; gap: 8px; width: min(330px, calc(100vw - 32px)); padding: 28px; transform: translate(-50%, -50%); border: 1px solid var(--yellow); background: rgba(6, 7, 6, .96); text-align: center; }
.pause-card strong { color: var(--yellow); font: 700 2.6rem Oswald, Impact, sans-serif; text-transform: uppercase; }
.pause-card span { color: #b8bdb5; font-size: .76rem; }
.unlock-toast { position: absolute; z-index: 25; right: 26px; bottom: 54px; max-width: 320px; padding: 15px 18px; border: 1px solid var(--yellow); color: #090a09; background: var(--yellow); font-size: .72rem; font-weight: 800; text-transform: uppercase; }

@media (hover: hover) and (pointer: fine) { .desktop-controls { display: flex; align-items: center; } }

@media (max-width: 900px) {
  .game-header { grid-template-columns: 92px 1fr auto; min-height: 74px; padding-inline: 14px; }
  .game-logo { width: 84px; height: 58px; }
  .game-title { display: none; }
  .game-nav .secondary { display: none; }
  .game-stage { padding-top: 74px; }
  .game-canvas { height: calc(100svh - 74px); min-height: 520px; }
  .game-overlay { inset: 74px 0 0; place-items: start center; padding: 14px; }
  .overlay-panel { margin: auto 0; padding: 26px; }
  .start-panel, .gate-grid, .result-panel { grid-template-columns: 1fr; gap: 22px; }
  .result-next { grid-column: auto; }
  .game-hud { inset: 90px 12px auto; grid-template-columns: 1fr 1fr; }
  .hud-level { display: none; }
  .hud-card { max-width: 172px; padding: 9px 11px; }
  .hud-value { font-size: 1.05rem; }
  .signal-meter { right: 13px; top: 168px; height: 150px; }
  .stage-badge { top: 148px; padding: 6px 9px; font-size: .53rem; }
  .game-tools { top: 151px; left: 12px; }
  .tool-button { min-height: 30px; padding: 5px 7px; }
  .desktop-controls { display: none !important; }
  .damage-flash { inset: 74px 0 0; }
  .game-hint { bottom: 178px; font-size: .66rem; }
  .level-track { inset: auto 13px 15px; gap: 3px; }
  .mobile-control { display: block; }
  .start-copy h1 { font-size: clamp(3.4rem, 16vw, 5.2rem); }
  .controls-line { display: none; }
}

@media (max-width: 520px) {
  .game-header { min-height: 66px; }
  .game-logo { width: 76px; height: 50px; }
  .game-stage { padding-top: 66px; }
  .game-canvas { height: calc(100svh - 66px); min-height: 500px; }
  .game-overlay { inset: 66px 0 0; padding: 10px; }
  .overlay-panel { padding: 20px 16px; }
  .overlay-panel h1 { margin: 11px 0 13px; font-size: clamp(3.1rem, 16vw, 4.2rem); }
  .overlay-panel h2 { font-size: clamp(2.6rem, 14vw, 4rem); }
  .start-copy > p { margin: 0; font-size: .84rem; }
  .start-benefits { margin: 14px 0; gap: 5px; font-size: .7rem; }
  .character-select { padding: 14px; }
  .character-model-preview { height: 145px; margin: 4px 0; }
  .character-options { margin: 8px 0 12px; gap: 5px; }
  .character-option { padding: 8px 6px; }
  .character-option small { display: none; }
  .character-option strong { font-size: .68rem; }
  .character-option em { font-size: .5rem; }
  .access-code-row { grid-template-columns: 1fr; }
  .access-code-row .game-button { width: 100%; }
  .game-button { width: 100%; }
  .game-nav .game-button { width: auto; min-height: 40px; padding: 9px 12px; }
  .overlay-actions { display: grid; }
  .gate-map { grid-template-columns: repeat(5, 1fr); }
  .gate-side { padding: 18px 14px; }
  .lead-profile { gap: 8px; padding: 11px 9px; }
  .choice-buttons, .manager-choice-grid, .lead-profile-fields { grid-template-columns: 1fr 1fr; }
  .choice-buttons span { padding-inline: 6px; }
  .mission-card, .decision-panel { top: 52%; padding: 24px 18px; }
  .mission-card h2, .decision-panel h2 { font-size: 2.55rem; }
  .game-tools { top: 139px; }
  .tool-button { font-size: 0; width: 34px; padding: 0; }
  .tool-button::after { font-size: .56rem; letter-spacing: 0; }
  #sound-toggle::after { content: "ЗВ"; }
  #quality-toggle::after { content: "КАЧ"; }
  #pause-game::after { content: "ПАУ"; }
  .game-hud { inset: 80px 10px auto; }
  .stage-badge { top: 137px; }
  .signal-meter { top: 155px; height: 134px; }
  .mobile-control { width: 94px; bottom: 48px; }
  .mobile-control i { left: 28px; top: 28px; width: 38px; }
  .mobile-control.left { left: 16px; }
  .mobile-control.right { right: 16px; }
  .game-hint { bottom: 154px; }
  .result-card { padding: 14px; }
}

@media (max-height: 720px) and (max-width: 900px) {
  .start-panel { gap: 14px; }
  .start-copy h1 { font-size: 3.25rem; }
  .start-benefits li:nth-child(3) { display: none; }
  .character-model-preview { height: 125px; }
  .character-option small { display: none; }
}

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