:root {
  --bg-canvas: #f4f5f7;
  --bg-surface: #ffffff;
  --bg-surface-2: #fafbfc;
  --bg-dark: #1f2630;
  --bg-dark-2: #232b36;
  --fg-1: #14181f;
  --fg-2: #3b4654;
  --fg-3: #6b7785;
  --fg-4: #9aa4b2;
  --fg-on-dark: #e6eaf0;
  --border-1: #e4e7ec;
  --border-2: #d0d5dd;
  --border-dark: #2a323d;
  --accent: #2e6fbf;
  --accent-600: #1f5ca8;
  --accent-300: #6fa3dd;
  --accent-tint: #142e6fbf;
  --easy: #2f7d4f;
  --hard: #b23b3b;
  --font: "Segoe UI", Inter, system-ui, sans-serif;
  --mono: "Cascadia Mono", "Consolas", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--fg-2);
  background: var(--bg-canvas);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-600); }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 32px; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg-dark);
  border-bottom: 1px solid var(--border-dark);
}
.site-header .wrap {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex; align-items: center; gap: 12px; color: var(--fg-on-dark);
  font-size: 15px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
}
.brand img { width: 32px; height: 32px; }
.nav { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.nav a { color: #9aa4b2; font-size: 13px; font-weight: 500; }
.nav a:hover { color: #e6eaf0; }
.nav a.btn-primary { color: #fff; }
.nav a.btn-primary:hover { color: #fff; }
#contact-open { gap: 8px; }
#contact-open svg {
  width: 16px; height: 16px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}
.btn-discord {
  background: #5865F2; color: #fff; gap: 8px;
}
.btn-discord:hover { background: #4752c4; color: #fff; }
.nav a.btn-discord, .nav a.btn-discord:hover { color: #fff; }
.btn-discord svg { width: 16px; height: 16px; fill: currentColor; flex: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 600; padding: 12px 22px; border-radius: 4px;
  border: 0; cursor: pointer;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-600); color: #fff; }
.btn-secondary {
  background: transparent; color: var(--fg-on-dark);
  border: 1px solid #3a4451;
}
.btn-secondary:hover { background: #2a323d; color: #fff; }
.btn-ghost {
  background: var(--bg-surface); color: var(--fg-1);
  border: 1px solid var(--border-2);
}
.btn-ghost:hover { background: var(--bg-canvas); color: var(--fg-1); }

.kicker {
  font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  font-family: var(--mono); color: var(--accent);
}
.kicker-light { color: var(--accent-300); }
h1, h2 { color: var(--fg-1); letter-spacing: -.02em; font-weight: 700; }
h1 { font-size: clamp(16px, 4.6vw, 52px); line-height: 1.12; margin: 0; max-width: none; }
h2 { font-size: clamp(28px, 3.5vw, 40px); line-height: 1.12; margin: 16px 0 0; }
.lede { font-size: 19px; line-height: 1.55; color: #b7c0cc; max-width: 62ch; margin: 28px 0 0; }
.hero { background: var(--bg-dark); border-bottom: 1px solid var(--border-dark); padding: 88px 0 0; }
.hero h1 { color: #f2f5f9; }
.hero .dot { width: 6px; height: 6px; background: var(--accent-300); display: inline-block; }
.hero-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 24px; color: #9aa4b2; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; font-family: var(--mono); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 36px 0 0; }
.hero-tags { margin: 32px 0 0; font-size: 14px; color: #7c8797; font-family: var(--mono); }
.hero-shot {
  margin-top: 64px; transform: translateY(40px);
  background: var(--bg-surface); border: 1px solid var(--border-1); border-radius: 10px;
  overflow: hidden; box-shadow: 0 8px 24px rgba(20,24,31,.16);
}
.hero-shot figcaption, figure figcaption {
  padding: 12px 16px; font-size: 13px; color: var(--fg-3); border-top: 1px solid var(--border-1);
  background: var(--bg-surface-2);
}

.section { padding: 96px 0; border-bottom: 1px solid var(--border-1); }
.section-tight { padding: 72px 0 96px; }
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; margin-top: 40px; align-items: start; }
.split-center { align-items: center; }
.prose { display: flex; flex-direction: column; gap: 18px; font-size: 16px; line-height: 1.6; }
.prose p { margin: 0; }
.prose strong { color: var(--fg-1); font-weight: 600; }
.cards-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mini {
  background: var(--bg-surface); border: 1px solid var(--border-1); border-radius: 6px; padding: 20px;
  display: flex; flex-direction: column; gap: 8px;
}
.mini .lab { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--fg-3); }
.mini .txt { font-size: 14px; line-height: 1.5; }
.theatres {
  background: var(--bg-surface); border: 1px solid var(--border-1); border-radius: 6px; padding: 16px;
}
.theatres .lab { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--fg-3); }
.theatre-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.theatre {
  margin: 0; border: 1px solid var(--border-1); border-radius: 6px; overflow: hidden; background: var(--bg-surface);
}
.theatre img { width: 100%; height: 78px; object-fit: cover; }
.theatre figcaption {
  padding: 6px 8px; font-size: 11px; font-weight: 600; line-height: 1.3; color: var(--fg-1);
  background: var(--bg-surface); border-top: 1px solid var(--border-1);
}

.types { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-top: 44px; }
.type {
  background: var(--bg-surface); border: 1px solid var(--border-1); border-radius: 6px;
  padding: 18px 10px; display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.type img { width: 40px; height: 40px; }
.type span { font-size: 12px; font-weight: 600; color: var(--fg-2); text-align: center; line-height: 1.3; }

.note-card {
  background: var(--bg-surface); border: 1px solid var(--border-1); border-radius: 6px; padding: 28px;
  display: flex; flex-direction: column; gap: 14px;
}
.note-card .lab { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--fg-3); }

.dark-band { background: var(--bg-dark); padding: 96px 0; border-bottom: 0; }
.dark-band h2, .dark-band .strong { color: #f2f5f9; }
.dark-band p { color: #b7c0cc; }
.dark-band .mini {
  background: var(--bg-dark-2);
  border-color: var(--border-dark);
}
.dark-band .mini .lab { color: #7c8797; }
.dark-band .mini .txt { color: #c8d0da; }
.events {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: var(--border-dark); border: 1px solid var(--border-dark); border-radius: 6px; overflow: hidden; margin-top: 14px;
}
.events div { background: var(--bg-dark-2); padding: 16px 18px; font-size: 14px; color: #c8d0da; }

.turn-map {
  background: var(--bg-surface); border: 1px solid var(--border-1); border-radius: 10px;
  overflow: hidden; margin-bottom: 18px; box-shadow: 0 8px 24px rgba(20,24,31,.16);
}
.turn-map-head {
  position: relative; height: 36px; background: var(--bg-dark-2);
  border-bottom: 1px solid var(--border-dark);
}
.turn-map-head .phase {
  position: absolute; inset: 0; display: flex; align-items: center; padding: 0 14px;
  font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; color: #e6eaf0;
}
.phase-before { animation: phase-before 10s linear infinite; }
.phase-after { animation: phase-after 10s linear infinite; color: var(--accent-300); }
.turn-stage { position: relative; aspect-ratio: 480 / 300; }
.turn-svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.turn-flash {
  position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%);
  background: var(--accent); color: #fff; font-size: 11px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; padding: 6px 10px; border-radius: 4px;
  animation: turn-flash 10s linear infinite; opacity: 0;
}
.unit {
  position: absolute; width: 34px; height: 34px; margin: -17px 0 0 -17px;
  filter: drop-shadow(0 1px 1px rgba(20,24,31,.35));
  animation-duration: 10s; animation-timing-function: ease-in-out; animation-iteration-count: infinite;
}
.u-tank { animation-name: u-tank; }
.u-helo { animation-name: u-helo; }
.u-supply { animation-name: u-supply; }
.u-etank { animation-name: u-etank; }
.u-efighter { animation-name: u-efighter; }
.u-earty { animation-name: u-earty; }
@keyframes phase-before {
  0%, 30% { opacity: 1; }
  40%, 100% { opacity: 0; }
}
@keyframes phase-after {
  0%, 38% { opacity: 0; }
  48%, 80% { opacity: 1; }
  90%, 100% { opacity: 0; }
}
@keyframes turn-flash {
  0%, 30% { opacity: 0; }
  36% { opacity: 1; }
  46%, 100% { opacity: 0; }
}
@keyframes u-tank {
  0%, 28% { left: 18%; top: 65%; opacity: 1; }
  46%, 78% { left: 41%; top: 50%; opacity: 1; }
  88% { opacity: 0; }
  90% { left: 18%; top: 65%; opacity: 0; }
  100% { opacity: 1; }
}
@keyframes u-helo {
  0%, 28% { left: 22%; top: 32%; opacity: 1; }
  46%, 78% { left: 44%; top: 36%; opacity: 1; }
  88% { opacity: 0; }
  90% { left: 22%; top: 32%; opacity: 0; }
  100% { opacity: 1; }
}
@keyframes u-supply {
  0%, 28% { left: 15%; top: 77%; opacity: 1; }
  46%, 78% { left: 31%; top: 65%; opacity: 1; }
  88% { opacity: 0; }
  90% { left: 15%; top: 77%; opacity: 0; }
  100% { opacity: 1; }
}
@keyframes u-etank {
  0%, 28% { left: 78%; top: 52%; opacity: 1; }
  46%, 78% { left: 60%; top: 59%; opacity: 1; }
  88% { opacity: 0; }
  90% { left: 78%; top: 52%; opacity: 0; }
  100% { opacity: 1; }
}
@keyframes u-efighter {
  0%, 28% { left: 72%; top: 26%; opacity: 1; }
  46%, 78% { left: 61%; top: 21%; opacity: 1; }
  88% { opacity: 0; }
  90% { left: 72%; top: 26%; opacity: 0; }
  100% { opacity: 1; }
}
@keyframes u-earty {
  0%, 28% { left: 83%; top: 71%; opacity: 1; }
  46%, 78% { left: 90%; top: 82%; opacity: 1; }
  88% { opacity: 0; }
  90% { left: 83%; top: 71%; opacity: 0; }
  100% { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .unit, .phase-before, .phase-after, .turn-flash { animation: none; }
  .phase-after, .turn-flash { opacity: 0; }
}

.shot {
  margin: 0;
  background: var(--bg-surface); border: 1px solid var(--border-1); border-radius: 10px; overflow: hidden;
  box-shadow: 0 8px 24px rgba(20,24,31,.08);
}
.tabs { display: flex; gap: 18px; margin: 20px 0 0; color: var(--fg-4); font-size: 13px; font-weight: 600; }
.tabs span { display: flex; align-items: center; gap: 8px; }
.tabs img { width: 18px; height: 18px; }

.compat-row {
  background: var(--bg-surface); border: 1px solid var(--border-1); border-radius: 6px;
  padding: 24px 26px; display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.compat-row strong { color: var(--fg-1); font-size: 16px; }
.compat-row small { font-family: var(--mono); font-size: 12px; color: var(--fg-3); display: block; margin-top: 5px; }
.dot-ok { width: 8px; height: 8px; border-radius: 999px; background: var(--easy); flex: none; }

.cta { padding: 112px 0; text-align: center; }
.cta-inner { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.cta h2 { margin: 0; font-size: clamp(32px, 4vw, 44px); }
.cta p { margin: 0; max-width: 58ch; font-size: 17px; line-height: 1.6; }

.site-footer { background: var(--bg-dark); padding: 48px 0; }
.site-footer .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.site-footer .tag { font-family: var(--mono); font-size: 12px; color: #7c8797; }
.site-footer a { font-size: 13px; font-weight: 600; color: var(--accent-300); }

.site-footer .copy { font-family: var(--mono); font-size: 12px; color: #7c8797; }

.modal {
  position: fixed; inset: 0; z-index: 80;
  display: none; align-items: center; justify-content: center;
  padding: 24px;
  background: rgba(31, 38, 48, .62);
}
.modal.is-open { display: flex; }
.modal-card {
  width: min(480px, 100%);
  background: var(--bg-surface);
  border: 1px solid var(--border-1);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(20, 24, 31, .28);
}
.modal-head {
  background: var(--bg-dark);
  padding: 18px 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.modal-head h2 { margin: 0; font-size: 18px; color: #f2f5f9; letter-spacing: 0; }
.modal-close {
  background: none; border: 0; color: #9aa4b2; font-size: 22px; line-height: 1; cursor: pointer; padding: 0 4px;
}
.modal-close:hover { color: #e6eaf0; }
.modal-card form, .modal-success { padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.modal-card.is-sent form, .modal-success { display: none; }
.modal-card.is-sent .modal-success { display: flex; }
.modal-card label { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--fg-3); display: flex; flex-direction: column; gap: 6px; }
.modal-card input, .modal-card textarea {
  font: 14px/1.4 var(--font); color: var(--fg-1);
  border: 1px solid var(--border-2); border-radius: 4px; padding: 10px 12px; background: var(--bg-canvas);
}
.modal-card textarea { min-height: 120px; resize: vertical; }
.modal-card .btn { align-self: flex-end; }
.modal-card .hp { display: none !important; }
.form-status { margin: 0; font-size: 13px; line-height: 1.4; }
.form-status.err { color: var(--hard); }
.modal-success p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--fg-2); }

.download-main { padding: 72px 0 96px; }
.download-main h1 { font-size: clamp(32px, 4vw, 44px); }
.download-lead { margin: 16px 0 0; max-width: 68ch; font-size: 17px; line-height: 1.6; }
.download-cards {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 40px; align-items: stretch;
}
.download-card {
  background: var(--bg-surface); border: 1px solid var(--border-1); border-radius: 10px;
  padding: 28px; display: flex; flex-direction: column; gap: 14px;
}
.download-card h2 { margin: 0; font-size: 24px; }
.download-card p { margin: 0; font-size: 15px; line-height: 1.6; }
.download-card .btn { align-self: flex-start; margin-top: auto; }
.btn-optional {
  background: #f6f1e6; color: #7a5410; border: 1px solid #d7c09a;
}
.btn-optional:hover { background: #efe4cc; color: #5c3e0c; }
.smartscreen {
  margin: 4px 0 0; border: 1px solid var(--border-1); border-radius: 8px; overflow: hidden;
  background: #e8eaee;
}
.smartscreen img { width: 100%; }
.smartscreen figcaption { font-size: 13px; }
.store-list { margin-top: 40px; display: flex; flex-direction: column; gap: 16px; max-width: 720px; }
.store-product {
  display: grid; grid-template-columns: 112px 1fr; gap: 24px; align-items: center;
  background: var(--bg-surface); border: 1px solid var(--border-1); border-radius: 10px; padding: 24px;
}
.store-product img { width: 112px; height: 112px; }
.store-product h2 { margin: 0; font-size: 24px; }
.store-product p { margin: 8px 0 0; font-size: 15px; line-height: 1.55; }
.price-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.price-was { color: var(--fg-3); text-decoration: line-through; font-size: 16px; }
.price-now { color: var(--fg-1); font-size: 28px; font-weight: 700; letter-spacing: -.02em; }
.launch-offer {
  font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  color: #7a5410; background: #f6f1e6; border: 1px solid #d7c09a; border-radius: 999px; padding: 4px 10px;
}
.store-product .btn { margin-top: 18px; }
@media (max-width: 640px) {
  .store-product { grid-template-columns: 1fr; }
  .store-product img { width: 80px; height: 80px; }
}

@media (max-width: 960px) {
  .split, .split-center { grid-template-columns: 1fr; gap: 32px; }
  .download-cards { grid-template-columns: 1fr; }
  .types { grid-template-columns: repeat(3, 1fr); }
  .nav .hide-sm { display: none; }
  .hero { padding-top: 56px; }
  .hero-shot { transform: none; margin-top: 40px; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 18px; }
  .types, .cards-2, .events, .theatre-grid { grid-template-columns: 1fr 1fr; }
  .hero-actions { flex-direction: column; align-items: stretch; }
}
