/* ChromaClaim — marketing site
   Design tokens: oklch palette, Rajdhani + Inter (local copies, assets/css/fonts.css). */

:root {
  --bg: oklch(0.98 0.004 258);
  --bg-alt: oklch(0.95 0.006 258);
  --surface: oklch(0.92 0.008 258);
  --surface-hover: oklch(0.88 0.01 258);
  --border: oklch(0.82 0.012 258);
  --border-strong: oklch(0.72 0.015 258);
  --text: oklch(0.16 0.01 258);
  --text-dim: oklch(0.42 0.012 258);
  --text-faint: oklch(0.55 0.012 258);
  --accent: oklch(0.52 0.19 250);
  --accent-soft: oklch(0.52 0.19 250 / 0.1);
  --accent-contrast: oklch(0.99 0.004 258);
  --header-bg: oklch(0.98 0.004 258 / 0.85);
  --team-blue: oklch(0.5 0.19 250);
  --team-red: oklch(0.5 0.21 25);
  --team-green: oklch(0.5 0.18 148);
  --team-yellow: oklch(0.58 0.16 95);

  --display: 'Rajdhani', 'Arial Narrow', sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --pad-x: clamp(16px, 4vw, 48px);
  --radius: 8px;
}

html[data-theme="dark"] {
  --bg: oklch(0.15 0.012 258);
  --bg-alt: oklch(0.18 0.014 258);
  --surface: oklch(0.21 0.016 258);
  --surface-hover: oklch(0.25 0.018 258);
  --border: oklch(0.32 0.02 258);
  --border-strong: oklch(0.4 0.02 258);
  --text: oklch(0.96 0.004 258);
  --text-dim: oklch(0.68 0.012 258);
  --text-faint: oklch(0.5 0.012 258);
  --accent: oklch(0.68 0.19 250);
  --accent-soft: oklch(0.68 0.19 250 / 0.15);
  --accent-contrast: oklch(0.12 0.01 258);
  --header-bg: oklch(0.15 0.012 258 / 0.85);
  --team-blue: oklch(0.68 0.19 250);
  --team-red: oklch(0.64 0.21 25);
  --team-green: oklch(0.74 0.19 148);
  --team-yellow: oklch(0.84 0.16 95);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Hide i18n-driven text until the dictionary is applied, to avoid a copy flash. */
html.i18n-pending [data-i18n] { visibility: hidden; }

a { color: var(--accent); }
img { max-width: 100%; display: block; }

@keyframes ccPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.55; } }

/* ---------- layout primitives ---------- */

.container { max-width: 1280px; margin: 0 auto; }
.container-md { max-width: 1100px; margin: 0 auto; }
.container-sm { max-width: 900px; margin: 0 auto; }
.container-xs { max-width: 760px; margin: 0 auto; }

.section { padding: 72px var(--pad-x); }
.section-lg { padding: 88px var(--pad-x); }
.cta-band { padding: 80px var(--pad-x); }
.section-top { padding: 64px var(--pad-x) 24px; }
.section-bottom { padding: 0 var(--pad-x) 88px; }
.section-band {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack-sm { display: flex; flex-direction: column; gap: 10px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; }
.row-between { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.row-end { align-items: flex-end; }

/* ---------- typography ---------- */

h1, h2, h3 { font-family: var(--display); font-weight: 700; text-transform: uppercase; margin: 0; }

.h1 { font-size: clamp(32px, 4.6vw, 50px); line-height: 1.05; letter-spacing: -0.005em; }
.h1-hero { font-size: clamp(40px, 6vw, 68px); line-height: 1.02; letter-spacing: -0.01em; }
.h2 { font-size: clamp(28px, 3.4vw, 38px); }
.h2-cta { font-size: clamp(28px, 4vw, 42px); }
.h2-sm { font-size: 22px; }
.h3 { font-size: 20px; }
.h3-sm { font-size: 17px; }

.lede { font-size: 18px; line-height: 1.6; color: var(--text-dim); max-width: 560px; margin: 0; }
.sub { font-size: 15px; color: var(--text-dim); margin: 0; }
.muted { color: var(--text-dim); }
.faint { color: var(--text-faint); font-size: 12px; }
.center { text-align: center; }
.center .lede, .center .sub { margin-left: auto; margin-right: auto; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--accent); font-family: var(--display); font-weight: 700;
  font-size: 13px; letter-spacing: 0.15em;
}
.eyebrow .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: ccPulse 2s infinite; }

.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  text-decoration: none; cursor: pointer; border: 1.5px solid transparent;
  padding: 14px 22px; border-radius: 5px;
  font-family: var(--display); font-weight: 700; font-size: 15px;
  transition: filter .15s ease, background .15s ease;
}
.btn:hover { filter: brightness(1.08); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn-accent { background: var(--accent); color: var(--accent-contrast); text-transform: uppercase; }
.btn-solid { background: var(--text); color: var(--bg); }
.btn-outline { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-sm { padding: 9px 18px; font-size: 14px; }
.btn-lg { padding: 15px 30px; }
.btn-block { width: 100%; }

/* Store glyph drawn in CSS — no vendor marks shipped. */
.store-glyph {
  width: 16px; height: 16px; border: 2px solid currentColor; border-radius: 3px;
  position: relative; flex-shrink: 0;
}
.store-glyph::before {
  content: ''; position: absolute; left: 50%; top: 2px; bottom: 6px; width: 2px;
  background: currentColor; transform: translateX(-50%);
}
.store-glyph::after {
  content: ''; position: absolute; left: 2px; right: 2px; bottom: 2px; height: 2px; background: currentColor;
}
.store-glyph-lg { width: 22px; height: 22px; border-width: 2.5px; }
.store-glyph-lg::before { bottom: 7px; width: 2.5px; }
.store-glyph-lg::after { height: 2.5px; }

/* ---------- surfaces ---------- */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}
.card-lg { padding: 32px; }
.card-link { text-decoration: none; color: inherit; display: block; transition: border-color .15s ease, background .15s ease; }
.card-link:hover { border-color: var(--border-strong); background: var(--surface-hover); }

.chip {
  background: transparent; color: var(--text-dim); border: 1px solid var(--border);
  padding: 9px 16px; border-radius: 20px; font-size: 13px; font-weight: 600;
  cursor: pointer; font-family: var(--body);
}
.chip:hover { border-color: var(--border-strong); }
.chip[aria-pressed="true"] { background: var(--accent); color: var(--accent-contrast); border-color: var(--accent); }

.badge {
  font-size: 10px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 3px;
  color: currentColor; background: color-mix(in oklab, currentColor 18%, transparent);
}
.tag-outline {
  border: 1px solid var(--border-strong); color: var(--text-dim);
  font-size: 11px; font-weight: 700; padding: 4px 8px; border-radius: 3px; font-family: var(--display);
}

.kv { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.kv:last-child { border-bottom: none; }
.kv .k { color: var(--text-faint); }
.kv .v { color: var(--text); font-weight: 600; text-align: right; }

.team-dot { width: 10px; height: 10px; border-radius: 2px; flex-shrink: 0; display: inline-block; }
.team-blue { background: var(--team-blue); }
.team-red { background: var(--team-red); }
.team-green { background: var(--team-green); }
.team-yellow { background: var(--team-yellow); }
.c-blue { color: var(--team-blue); }
.c-red { color: var(--team-red); }
.c-green { color: var(--team-green); }
.c-yellow { color: var(--team-yellow); }
.c-accent { color: var(--accent); }

.brand-logo { height: 28px; width: auto; display: block; flex-shrink: 0; }
.brand-logo-sm { height: 22px; }

.shot-photo {
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border);
  aspect-ratio: 16 / 9; background: var(--surface);
}
.shot-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shot-rail .shot-photo { flex: 0 0 320px; }

/* ---------- forms ---------- */

.input, .textarea {
  background: var(--bg-alt); border: 1px solid var(--border); border-radius: 5px;
  padding: 12px 14px; color: var(--text); font-size: 14px; font-family: var(--body); width: 100%;
}
.textarea { resize: vertical; }
.input:focus, .textarea:focus { outline: none; border-color: var(--accent); }
.input::placeholder, .textarea::placeholder { color: var(--text-faint); }

.file-drop {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--bg-alt); border: 1px dashed var(--border-strong); border-radius: 5px;
  padding: 14px; cursor: pointer; font-size: 13px; color: var(--text-dim);
}
.file-drop input[type="file"] { display: none; }
.file-drop .file-action { color: var(--accent); font-weight: 600; }

.form-note { margin: 0; font-size: 13px; color: var(--team-green); }
.form-note.is-error { color: var(--team-red); }
.form-note[hidden] { display: none; }

/* Honeypot of the «Write to us» form: off-screen for people, still filled in by bots. */
.trap { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.photo-list { display: flex; flex-wrap: wrap; gap: 10px; }
.photo-list:empty { display: none; }
.photo-item { position: relative; width: 84px; height: 84px; border: 1px solid var(--border); border-radius: 5px; overflow: hidden; }
.photo-item.is-bad { border-color: var(--team-red); }
.photo-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-del {
  position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border: none; border-radius: 50%;
  background: rgba(0, 0, 0, .65); color: #fff; font-size: 16px; line-height: 1; cursor: pointer;
}

/* ---------- header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px var(--pad-x);
  background: var(--header-bg);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }

.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a {
  text-decoration: none; font-size: 14px; font-weight: 600; letter-spacing: 0.02em;
  color: var(--text-dim); border-bottom: 2px solid transparent; padding-bottom: 4px;
}
.site-nav a:hover { color: var(--text); }
.site-nav a[aria-current="page"] { color: var(--accent); border-bottom-color: var(--accent); }

.header-tools { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.icon-btn {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; background: var(--surface); border: 1px solid var(--border);
  color: var(--text); border-radius: 3px; cursor: pointer; font-size: 15px;
}
.icon-btn:hover { background: var(--surface-hover); }

.lang { position: relative; }
.lang-btn {
  display: flex; align-items: center; gap: 5px;
  background: var(--surface); border: 1px solid var(--border); color: var(--text);
  font-size: 12px; font-weight: 700; letter-spacing: 0.03em; padding: 8px 10px;
  border-radius: 3px; cursor: pointer; font-family: var(--display);
}
.lang-btn .caret { font-size: 9px; opacity: .7; }
.lang-menu {
  position: absolute; top: calc(100% + 6px); right: 0;
  background: var(--surface); border: 1px solid var(--border); border-radius: 4px;
  overflow: hidden; min-width: 140px; box-shadow: 0 12px 32px rgba(0, 0, 0, .35);
  padding: 0; margin: 0; list-style: none; z-index: 60;
}
.lang-menu[hidden] { display: none; }
.lang-menu button {
  display: block; width: 100%; text-align: left; background: transparent; border: none;
  color: var(--text); font-size: 13px; padding: 10px 14px; cursor: pointer; font-family: var(--body);
}
.lang-menu button:hover { background: var(--surface-hover); }
.lang-menu button[aria-current="true"] { background: var(--surface-hover); }

.burger { flex-direction: column; gap: 4px; display: none; }
.burger span { width: 16px; height: 2px; background: var(--text); }

.mobile-nav {
  position: sticky; top: 65px; z-index: 49; display: none; flex-direction: column;
  background: var(--bg); border-bottom: 1px solid var(--border);
  padding: 8px var(--pad-x) 20px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  text-decoration: none; padding: 12px 0; border-bottom: 1px solid var(--border);
  font-size: 15px; font-weight: 600; color: var(--text-dim);
}
.mobile-nav a[aria-current="page"] { color: var(--accent); }
.mobile-nav .btn { margin-top: 14px; }

/* ---------- footer ---------- */

.site-footer {
  background: var(--bg-alt); border-top: 1px solid var(--border);
  padding: 56px var(--pad-x) 28px;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; max-width: 1280px; margin: 0 auto; }
.footer-col-title {
  color: var(--text); font-family: var(--display); font-weight: 700; font-size: 13px;
  letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 14px;
}
.footer-col a { display: block; color: var(--text-dim); text-decoration: none; font-size: 13px; margin-bottom: 11px; }
.footer-col a:hover { color: var(--text); }
.footer-tagline { color: var(--text-dim); font-size: 13px; line-height: 1.6; max-width: 220px; margin: 0 0 18px; }
.social { display: flex; gap: 10px; }
.social a {
  display: flex; align-items: center; justify-content: center; width: 32px; height: 32px;
  border-radius: 50%; background: var(--surface); border: 1px solid var(--border);
  color: var(--text-dim); text-decoration: none; font-size: 12px; font-weight: 700; font-family: var(--display);
}
.social a:hover { color: var(--text); border-color: var(--border-strong); }
.footer-bottom {
  max-width: 1280px; margin: 36px auto 0; padding-top: 24px; border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  color: var(--text-faint); font-size: 12px;
}

/* ---------- home ---------- */

.hero {
  position: relative; padding: 88px var(--pad-x) 80px; background: var(--bg-alt); overflow: hidden;
  background-image: repeating-linear-gradient(115deg, var(--border) 0px, var(--border) 1px, transparent 1px, transparent 90px);
  border-bottom: 1px solid var(--border);
}
.hero-grid { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.hero-map {
  position: relative; margin: 0; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border-strong); background: var(--bg);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .25);
}
.hero-map canvas { display: block; width: 100%; aspect-ratio: 16 / 11; }
.hero-map figcaption {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px;
  padding: 12px 16px; border-top: 1px solid var(--border); font-size: 13px; color: var(--text-dim);
}
.hero-map .map-label { font-family: var(--display); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-faint); font-size: 12px; }
.hero-teams { display: flex; gap: 22px; margin-top: 36px; flex-wrap: wrap; }
.hero-teams div { display: flex; align-items: center; gap: 6px; }
.hero-teams .label {
  font-size: 12px; color: var(--text-faint); font-family: var(--display); font-weight: 700; letter-spacing: 0.05em;
}

/* ---------- about ---------- */

.mode-card { border-top: 3px solid currentColor; }
.mode-card h3, .mode-card p { color: var(--text); }
.mode-card p { color: var(--text-dim); }

/* ---------- download ---------- */

.store-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.store-card { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }

/* ---------- tournaments ---------- */

.board { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.board-row {
  display: grid; grid-template-columns: 50px 1fr 100px 90px 80px;
  padding: 13px 20px; font-size: 14px; border-bottom: 1px solid var(--border); align-items: center;
}
.board-row:last-child { border-bottom: none; }
.board-head {
  padding: 12px 20px; font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--text-faint); border-bottom: 1px solid var(--border);
}
.board-rank { font-family: var(--display); font-weight: 700; color: var(--text-faint); }
.board-rank.top1 { color: var(--team-yellow); }
.board-rank.top3 { color: var(--accent); }
.board-name { font-weight: 600; }
.board-team { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; }
.num { text-align: right; }
.num-strong { text-align: right; font-weight: 600; }

/* ---------- news timeline ---------- */

.timeline { position: relative; padding-left: 26px; border-left: 2px solid var(--border); display: flex; flex-direction: column; gap: 22px; }
.timeline-item { position: relative; }
.timeline-item .pin {
  position: absolute; left: -33px; top: 2px; width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid var(--bg); background: currentColor;
}
.rm-shipped { color: var(--team-green); }
.rm-in_progress { color: var(--accent); }
.rm-planned { color: var(--team-yellow); }

/* ---------- faq ---------- */

.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.faq-q {
  width: 100%; text-align: left; background: transparent; border: none; padding: 18px 20px;
  display: flex; justify-content: space-between; align-items: center; gap: 12px; cursor: pointer;
  font-family: var(--display); font-weight: 700; font-size: 15px; color: var(--text);
}
.faq-q .sign { color: var(--accent); font-size: 18px; flex-shrink: 0; }
.faq-a { margin: 0; padding: 0 20px 20px; font-size: 14px; line-height: 1.65; color: var(--text-dim); }
.faq-a[hidden] { display: none; }

/* ---------- legal ---------- */

.legal-section { margin-bottom: 36px; }
.legal-section h2 { font-size: 20px; color: var(--accent); text-transform: none; margin-bottom: 12px; }
.legal-section p { font-size: 15px; line-height: 1.75; color: var(--text-dim); margin: 0; white-space: pre-line; }

/* ---------- responsive ---------- */

@media (max-width: 1100px) {
  .site-nav { display: none; }
  .header-cta { display: none; }
  .burger { display: flex; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .board-row { grid-template-columns: 40px 1fr 90px 70px; }
  .board-wins { display: none; }
}

@media (max-width: 760px) {
  .section { padding: 56px var(--pad-x); }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .shot-grid { grid-template-columns: repeat(2, 1fr); }
  .board-row { grid-template-columns: 34px 1fr 76px; }
  .board-team { display: none; }
  .hero { padding: 56px var(--pad-x); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
}

/* Страница «Лицензии»: уведомления о сторонних компонентах игры и сайта (PROVENANCE 12.10). */
.legal-pre { white-space: pre-wrap; word-break: break-word; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px; line-height: 1.55; margin: 0 0 28px; }

/* ---------- SITE_REDO 13.10: shared pieces ---------- */

/* «Coming to Google Play» — a button that is not a link yet (content.PLAY_URL empty). */
.btn.is-soon { cursor: default; opacity: .75; filter: none; }
.btn.is-soon:hover { filter: none; }

.footer-note { margin: 0; flex: 1 1 320px; text-align: center; }

.legal-note {
  font-size: 14px; color: var(--text-dim); background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 12px 16px; margin: 0 0 32px;
}

.section-head { max-width: 680px; margin: 0 auto 40px; text-align: center; }
.section-head .sub { margin-top: 12px; }

/* gestures */
.gesture { display: flex; flex-direction: column; gap: 10px; }
.gesture svg { width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 6px; background: var(--bg-alt); border: 1px solid var(--border); margin-bottom: 8px; }
.gesture .squad circle { fill: var(--team-blue); }
.gesture .enemy { fill: var(--team-red); }
.gesture .touch { fill: none; stroke: var(--text); stroke-width: 2; }
.gesture .trail { fill: none; stroke: var(--text-dim); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 160; }
.gesture .shot { stroke: var(--team-yellow); stroke-width: 2; stroke-dasharray: 4 6; }

@keyframes ccMove { 0%, 15% { transform: translate(0, 0); } 70%, 100% { transform: translate(150px, 0); } }
@keyframes ccRipple { 0% { r: 4; opacity: 1; } 40% { r: 18; opacity: 0; } 100% { r: 18; opacity: 0; } }
@keyframes ccDraw { 0% { stroke-dashoffset: 160; } 45%, 100% { stroke-dashoffset: 0; } }
@keyframes ccForm { 0%, 45% { opacity: 0; } 65%, 100% { opacity: 1; } }
@keyframes ccShoot { to { stroke-dashoffset: -20; } }
@keyframes ccHit { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }

.g-tap .squad { animation: ccMove 3s ease-in-out infinite; }
.g-tap .touch { animation: ccRipple 3s ease-out infinite; }
.g-shape .trail { animation: ccDraw 3.2s ease-in-out infinite; }
.g-shape .squad { animation: ccForm 3.2s ease-in-out infinite; }
.g-focus .shot { animation: ccShoot .6s linear infinite; }
.g-focus .enemy { animation: ccHit 1.2s ease-in-out infinite; }

/* modes */
.mode { display: flex; flex-direction: column; gap: 10px; border-top: 3px solid var(--accent); }
.mode.is-dev { border-top-color: var(--border-strong); background: transparent; border-style: dashed; border-top-style: solid; }
.mode .badge { align-self: flex-start; }
.mode p { font-size: 14px; line-height: 1.6; }

/* safety */
.safe { display: flex; flex-direction: column; gap: 8px; }
.safe h3 { text-transform: none; font-size: 18px; }
.safe p { font-size: 14px; line-height: 1.6; }
.safe a { font-size: 13px; font-weight: 600; text-decoration: none; }

/* about: units, leagues */
.units { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.unit { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.unit-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.unit-role { font-size: 12px; font-weight: 700; color: var(--accent); }
.unit .sub { font-size: 14px; line-height: 1.6; }
.leagues { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.league { font-family: var(--display); font-weight: 700; font-size: 14px; padding: 6px 12px; border-radius: 4px; border: 1px solid var(--border-strong); }
.league-0 { color: oklch(0.62 0.1 55); }
.league-1 { color: var(--text-dim); }
.league-2 { color: var(--team-yellow); }
.league-3 { color: var(--accent); }

/* news */
.news-dev { display: flex; flex-direction: column; gap: 8px; }
.news-dev .badge { align-self: flex-start; }
.news-dev h3, .news-title { text-transform: none; color: var(--text); }
.news-title { margin: 4px 0; font-size: 18px; }
.timeline-item .sub { font-size: 14px; line-height: 1.6; }

/* tournaments */
.board-empty { padding: 28px 22px; text-align: center; }

/* support */
.contact { display: flex; flex-direction: column; gap: 4px; padding: 16px 20px; }
.contact a { text-decoration: none; font-weight: 600; font-size: 14px; word-break: break-all; }
.channel { display: flex; align-items: center; gap: 12px; padding: 16px 20px; font-weight: 600; }
.channel-mark { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 700; font-size: 13px; color: var(--accent); background: var(--accent-soft); }
.links-list { display: flex; flex-direction: column; gap: 10px; }
.links-list a { text-decoration: none; font-weight: 600; font-size: 14px; }

@media (max-width: 1100px) {
  .units { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .units, .store-cards { grid-template-columns: 1fr; }
  .footer-note { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  .gesture * { animation: none !important; }
  .g-shape .squad { opacity: 1; }
}

/* ---------- home: key art hero, fighters, map, screenshots (session 28.10) ---------- */

.hero-art {
  background: #080b12; background-image: none; border-bottom: 0; isolation: isolate;
  padding: 96px var(--pad-x) 110px; min-height: min(86vh, 760px); display: flex; align-items: center;
  /* The key art is dark in both themes, so the hero keeps light text. */
  --text: #f3f6fb; --text-dim: rgba(226, 233, 245, .84); --text-faint: rgba(210, 220, 235, .6);
  --border-strong: rgba(255, 255, 255, .32); color: var(--text);
}
.hero-art .hero-grid { width: 100%; position: relative; z-index: 2; }
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; animation: ccKenburns 30s ease-in-out infinite alternate; }
.hero-art::before {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(6, 9, 15, .94) 0%, rgba(6, 9, 15, .78) 38%, rgba(6, 9, 15, .2) 70%, rgba(6, 9, 15, .45) 100%),
    linear-gradient(180deg, rgba(6, 9, 15, .2) 0%, rgba(6, 9, 15, 0) 40%, var(--bg) 100%);
}
@keyframes ccKenburns { from { transform: scale(1.02); } to { transform: scale(1.1) translate(-1.5%, 1%); } }
.hero-copy .h1-hero { margin: 18px 0 22px; text-shadow: 0 4px 30px rgba(0, 0, 0, .5); }
.hero-copy .lede { margin-bottom: 34px; }
.btn-glass { background: rgba(255, 255, 255, .06); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.hero-art .hero-teams { gap: 8px; margin-top: 30px; }
.hero-art .team-dot { width: 26px; height: 6px; border-radius: 3px; }

.hero-squad { position: relative; height: clamp(360px, 42vw, 560px); }
.hero-squad img { position: absolute; bottom: 0; height: auto; filter: drop-shadow(0 24px 30px rgba(0, 0, 0, .55)); }
.hs-front { width: 74%; left: 13%; z-index: 3; animation: ccFloat 6s ease-in-out infinite; }
.hero-squad .hs-back { width: 50%; z-index: 1; opacity: .9; filter: brightness(.72) drop-shadow(0 20px 24px rgba(0, 0, 0, .6)); }
.hs-left { left: -6%; bottom: 8%; animation: ccFloat 7s ease-in-out -2s infinite; }
.hs-right { right: -6%; bottom: 10%; animation: ccFloat 8s ease-in-out -4s infinite; }
.hs-glow {
  position: absolute; left: 10%; right: 10%; bottom: -4%; height: 18%; z-index: 0; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(56, 140, 255, .55), transparent); filter: blur(6px);
}
@keyframes ccFloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }

.unit-lineup { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.lineup-unit {
  position: relative; display: flex; flex-direction: column; align-items: center; text-decoration: none; color: var(--text);
  padding: 18px 10px 20px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface);
  overflow: hidden; transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.lineup-stage {
  position: absolute; left: 8%; right: 8%; top: 52%; height: 26%; border-radius: 50%;
  background: radial-gradient(closest-side, var(--accent-soft), transparent); transform: scale(1.6);
}
.lineup-unit img { position: relative; width: 100%; height: auto; aspect-ratio: 1; transition: transform .35s cubic-bezier(.2, .8, .2, 1); animation: ccFloat 6s ease-in-out infinite; animation-delay: calc(var(--i) * -0.9s); }
.lineup-name { position: relative; font-family: var(--display); font-weight: 700; font-size: 18px; text-transform: uppercase; letter-spacing: .04em; margin-top: 6px; }
.lineup-role { position: relative; font-size: 12px; font-weight: 700; color: var(--accent); }
.lineup-unit:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: 0 18px 40px -20px var(--accent); }
.lineup-unit:hover img { transform: scale(1.08); }

.map-split { display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px; align-items: center; }

.shot-rail { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
button.shot-photo { padding: 0; cursor: zoom-in; position: relative; font: inherit; color: inherit; aspect-ratio: 20 / 9; display: block; width: 100%; }
button.shot-photo img { transition: transform .4s ease; }
button.shot-photo:hover img { transform: scale(1.04); }
.shot-cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 14px 10px; text-align: left;
  font-size: 13px; color: #fff; background: linear-gradient(transparent, rgba(0, 0, 0, .75));
  opacity: 0; transition: opacity .25s ease;
}
button.shot-photo:hover .shot-cap, button.shot-photo:focus-visible .shot-cap { opacity: 1; }

.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(4, 6, 10, .94); display: flex; align-items: center; justify-content: center; gap: 12px; padding: 24px; }
.lightbox[hidden] { display: none; }
.lb-figure { margin: 0; max-width: min(1400px, 88vw); }
.lb-figure img { width: 100%; height: auto; max-height: 80vh; object-fit: contain; border-radius: var(--radius); display: block; }
.lb-figure figcaption { color: #c9d3e2; font-size: 14px; margin-top: 12px; text-align: center; }
.lb-btn { background: rgba(255, 255, 255, .08); color: #fff; border: 1px solid rgba(255, 255, 255, .2); border-radius: 50%; width: 48px; height: 48px; font-size: 26px; line-height: 1; cursor: pointer; flex-shrink: 0; }
.lb-btn:hover { background: rgba(255, 255, 255, .18); }
.lb-close { position: absolute; top: 18px; right: 18px; font-size: 20px; }
body.no-scroll { overflow: hidden; }

.join-band {
  display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
  padding: 36px 40px; border-radius: calc(var(--radius) * 2); border: 1px solid var(--border-strong);
  background:
    radial-gradient(60% 140% at 0% 0%, color-mix(in oklch, var(--team-blue) 22%, transparent), transparent 70%),
    radial-gradient(60% 140% at 100% 100%, color-mix(in oklch, var(--team-green) 16%, transparent), transparent 70%),
    var(--surface);
}
.join-band .sub { max-width: 640px; }

/* ---------- about: fighter picture ---------- */

.unit-art { margin: -20px -20px 6px; aspect-ratio: 16 / 11; display: grid; place-items: center; background: radial-gradient(60% 55% at 50% 70%, var(--accent-soft), transparent); border-bottom: 1px solid var(--border); overflow: hidden; }
.unit-art img { width: 78%; height: auto; transition: transform .35s ease; }
.unit:hover .unit-art img { transform: scale(1.06) translateY(-4px); }

/* ---------- join page ---------- */

.join-hero { position: relative; overflow: hidden; padding: 72px var(--pad-x) 48px; background: var(--bg-alt); border-bottom: 1px solid var(--border); }
.join-hero .container-sm { position: relative; z-index: 1; }
.join-hero .lede { max-width: 560px; }
.join-hero-units { position: absolute; right: max(0px, calc((100vw - 1280px) / 2)); bottom: -10px; display: flex; align-items: flex-end; opacity: .95; pointer-events: none; }
.join-hero-units img { width: 200px; height: auto; margin-left: -50px; filter: drop-shadow(0 16px 20px rgba(0, 0, 0, .35)); }
.join-hero-units img:nth-child(2) { width: 230px; z-index: 1; }
.join-card { display: flex; flex-direction: column; gap: 10px; transition: transform .25s ease, border-color .25s ease; }
.join-card:hover { transform: translateY(-3px); border-color: var(--accent); }
.join-card .btn { margin-top: auto; align-self: flex-start; }
.join-ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.join-ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.join-how .sub { margin: 10px 0 16px; }
.join-mail { font-family: var(--display); font-weight: 700; font-size: clamp(18px, 3vw, 26px); text-decoration: none; overflow-wrap: anywhere; }

.footer-studio { white-space: nowrap; }
.footer-studio a { color: inherit; font-weight: 600; }

@media (max-width: 1100px) {
  .unit-lineup { grid-template-columns: repeat(3, 1fr); }
  .hero-squad { height: 380px; max-width: 520px; margin: 0 auto; width: 100%; }
  .map-split { grid-template-columns: 1fr; gap: 28px; }
  .join-hero-units { display: none; }
}
@media (max-width: 760px) {
  .hero-art { padding: 64px var(--pad-x) 56px; min-height: 0; }
  .hero-art::before { background: linear-gradient(180deg, rgba(6, 9, 15, .82) 0%, rgba(6, 9, 15, .7) 55%, var(--bg) 100%); }
  .hero-squad { height: 300px; }
  .unit-lineup { grid-template-columns: repeat(2, 1fr); }
  .shot-rail { grid-template-columns: 1fr; }
  .join-band { padding: 26px 22px; }
  .lb-prev, .lb-next { position: absolute; bottom: 20px; }
  .lb-prev { left: 20px; }
  .lb-next { right: 20px; }
}
.tg-glyph { display: inline-flex; margin-right: 8px; }
.tg-glyph svg { display: block; }
[data-social][hidden] { display: none !important; }
.shot-rail.is-single, .shot-grid.is-single { grid-template-columns: 1fr; max-width: 1100px; margin: 0 auto; }
.is-single .shot-cap { opacity: 1; font-size: 15px; padding: 40px 20px 16px; }

/* hero shooter: sprite of head turns, --c (0-8) and --r (0-2) pick the frame */
.hero-squad .hs-look { position: absolute; bottom: 0; aspect-ratio: 1; filter: drop-shadow(0 24px 30px rgba(0, 0, 0, .55)); background-repeat: no-repeat; background-size: 900% 300%; background-position: calc(var(--c, 4) * 100% / 8) calc(var(--r, 1) * 100% / 2); }
.hero-squad .hs-look img { position: static; width: 100%; height: auto; filter: none; }
.hero-squad .hs-look.is-ready { background-image: url(../units/shooter-look.webp); }
.hero-squad .hs-look.is-ready img { visibility: hidden; }

/* ---------- press kit ---------- */
.press-files .press-file { display: flex; flex-direction: column; gap: 8px; }
.press-file .btn { margin-top: auto; align-self: flex-start; }
.press-thumb { aspect-ratio: 16 / 10; border-radius: var(--radius); background: #0b0f18; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--border); }
.press-thumb img { max-width: 92%; max-height: 92%; object-fit: contain; }
.press-fighters { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.press-fighter { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); text-decoration: none; color: var(--text); font-family: var(--display); font-weight: 700; font-size: 14px; text-transform: uppercase; }
.press-fighter img { width: 100%; height: auto; }
.press-fighter:hover { border-color: var(--accent); }
@media (max-width: 1100px) { .press-fighters { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .press-fighters { grid-template-columns: repeat(2, 1fr); } }
