/* PrimeXSport — military gaming showcase
   Palette: Tactical Amber + Steel
   Type: Oswald (display) + Inter (body)
*/

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --c-bg:        #0A0C0F;
  --c-bg-2:      #11161B;
  --c-panel:     #131A21;
  --c-panel-2:   #1B242D;
  --c-teal:      #0F2A2E;
  --c-teal-2:    #16383E;
  --c-line:      rgba(184, 194, 204, 0.10);
  --c-line-2:    rgba(184, 194, 204, 0.18);
  --c-text:      #E6ECF2;
  --c-text-dim:  #B8C2CC;
  --c-text-mute: #8A95A1;
  --c-amber:     #FFB347;
  --c-amber-2:   #FFD27A;
  --c-amber-dim: rgba(255, 179, 71, 0.16);
  --c-grad:      linear-gradient(135deg, #FFB347 0%, #FFD27A 100%);
  --c-grad-rev:  linear-gradient(135deg, #FFD27A 0%, #FFB347 100%);
  --c-danger:    #FF6B57;
  --c-ok:        #4ED4A5;
  --ease:        cubic-bezier(.22, 1, .36, 1);
  --ease-in:     cubic-bezier(.6, .04, .98, .34);
  --shadow-glow: 0 0 36px rgba(255, 179, 71, .35);
  --header-offset: 64px;
}

/* Reset + base */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
  overflow-x: clip;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 88px;
}

body {
  overflow-x: clip;
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--c-text);
  background: var(--c-bg);
  background-image:
    radial-gradient(1200px 800px at 8% -10%, rgba(255, 179, 71, .07), transparent 60%),
    radial-gradient(1000px 700px at 110% 30%, rgba(22, 56, 62, .55), transparent 65%);
  background-attachment: fixed;
}

main { flex: 1; display: block; }

img, svg, video { display: block; max-width: 100%; height: auto; }
svg { fill: currentColor; width: 1em; height: 1em; flex-shrink: 0; }
.brand__icon, .boot__logo { width: auto; height: auto; }

a {
  color: inherit;
  text-decoration: none;
  overflow-wrap: break-word;
  word-break: break-word;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Oswald', 'Inter', system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: .01em;
  text-transform: uppercase;
  overflow-wrap: break-word;
  word-break: break-word;
  color: #fff;
}

h1 { font-size: clamp(40px, 6.4vw, 88px); letter-spacing: -.005em; }
h2 { font-size: clamp(30px, 4.2vw, 56px); }
h3 { font-size: clamp(22px, 2.4vw, 32px); font-weight: 600; }
h4 { font-size: clamp(18px, 1.6vw, 22px); font-weight: 600; }
h5 { font-size: 16px; font-weight: 600; letter-spacing: .14em; }
h6 { font-size: 14px; font-weight: 600; letter-spacing: .18em; }

p { line-height: 1.7; color: var(--c-text-dim); }
strong { color: #fff; font-weight: 600; }

button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

input, textarea, select {
  font: inherit;
  color: var(--c-text);
  background: transparent;
  border: 0;
  outline: 0;
}

::selection { background: var(--c-amber); color: #0A0C0F; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

/* Container — single source of width cap */
.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px;
}
@media (max-width: 820px) { .container { padding: 0 20px; } }
@media (max-width: 430px) { .container { padding: 0 16px; } }

section { position: relative; padding: clamp(72px, 9vw, 128px) 0; }

/* ============= LOADING SPLASH ============= */
.boot {
  position: fixed; inset: 0;
  z-index: 9999;
  background: var(--c-bg);
  display: grid; place-items: center;
  transition: opacity .6s var(--ease), visibility 0s linear .6s;
}
.boot.is-done {
  opacity: 0; visibility: hidden; pointer-events: none;
}
.boot__inner {
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 22px;
}
.boot__logo {
  width: 92px; height: 92px;
  color: var(--c-amber);
  animation: spin 4s linear infinite;
}
.boot__txt {
  font-family: 'Oswald'; text-transform: uppercase;
  letter-spacing: .42em; font-size: 13px; color: var(--c-amber-2);
}
.boot__bar {
  width: 220px; height: 2px;
  background: var(--c-line);
  border-radius: 4px; overflow: hidden;
}
.boot__bar::after {
  content: ''; display: block; width: 40%; height: 100%;
  background: var(--c-grad);
  animation: boot-scan 1.2s infinite linear;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes boot-scan { 0% { transform: translateX(-100%);} 100%{transform: translateX(350%);} }

/* ============= HEADER ============= */
.site-header {
  position: sticky; top: 0; z-index: 60;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(10, 12, 15, 0.72);
  border-bottom: 1px solid var(--c-line);
  overflow: visible;
  transition: background .35s var(--ease), border-color .35s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(10, 12, 15, 0.92);
  border-bottom-color: var(--c-line-2);
}
.site-header__row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  padding-block: 16px;
}

.brand {
  display: flex; align-items: center; gap: 12px;
  flex-shrink: 0;
}
.brand__icon {
  width: 42px; height: 42px;
  color: var(--c-amber);
  filter: drop-shadow(0 0 8px rgba(255, 179, 71, .35));
  transition: transform .4s var(--ease);
}
.brand__name {
  font-family: 'Oswald'; text-transform: uppercase;
  font-size: 22px; font-weight: 700; letter-spacing: .04em;
  color: #fff;
}
.brand__name b { color: var(--c-amber); font-weight: 700; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav .nav__cta { display: none; }
.nav a {
  font-family: 'Oswald'; text-transform: uppercase;
  font-size: 14px; font-weight: 500; letter-spacing: .14em;
  color: var(--c-text-dim);
  padding: 10px 16px;
  border-radius: 999px;
  position: relative;
  transition: color .25s var(--ease), background .25s var(--ease);
}
.nav a::before {
  content: '';
  position: absolute; left: 50%; bottom: 4px;
  width: 4px; height: 4px;
  background: var(--c-amber);
  border-radius: 50%;
  transform: translateX(-50%) scale(0);
  transition: transform .3s var(--ease);
  box-shadow: 0 0 10px var(--c-amber);
}
.nav a:hover, .nav a.is-active {
  color: #fff;
  background: rgba(255, 179, 71, .06);
}
.nav a:hover::before, .nav a.is-active::before { transform: translateX(-50%) scale(1); }

.header__cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px; border-radius: 999px;
  background: var(--c-grad);
  color: #0A0C0F !important;
  font-family: 'Oswald'; text-transform: uppercase;
  font-size: 13px; font-weight: 700; letter-spacing: .14em;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), filter .25s var(--ease);
  box-shadow: 0 6px 24px rgba(255, 179, 71, .25);
}
.header__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(255, 179, 71, .42);
  filter: saturate(1.15);
}
.header__cta svg { width: 14px; height: 14px; }

/* Burger */
.burger {
  display: none;
  width: 46px; height: 46px;
  position: relative;
  z-index: 110;
  flex-shrink: 0;
  border-radius: 12px;
  background: rgba(255, 179, 71, .06);
  border: 1px solid var(--c-line-2);
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none; user-select: none;
}
.burger span {
  position: absolute; left: 13px; right: 13px;
  height: 2px; background: var(--c-amber);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s var(--ease), top .3s var(--ease);
}
.burger span:nth-child(1) { top: 16px; }
.burger span:nth-child(2) { top: 22px; }
.burger span:nth-child(3) { top: 28px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { top: 22px; transform: rotate(-45deg); }

@media (max-width: 1220px) {
  .burger { display: block; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    width: 100%; max-width: 100vw;
    max-height: calc(100dvh - var(--header-offset, 64px));
    z-index: 100;
    box-sizing: border-box;
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    padding: 20px 28px 32px;
    background: linear-gradient(160deg, #0A0C0F 0%, #131A21 100%);
    border-top: 1px solid var(--c-line-2);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .65);
    overflow-y: auto; overscroll-behavior: contain;
    transform: translateY(-12px); opacity: 0;
    visibility: hidden; pointer-events: none;
    transition: transform .3s var(--ease), opacity .25s var(--ease), visibility 0s linear .3s;
  }
  .nav[data-open="true"] {
    transform: translateY(0); opacity: 1;
    visibility: visible; pointer-events: auto;
    transition: transform .3s var(--ease), opacity .25s var(--ease), visibility 0s linear 0s;
  }
  .nav a {
    width: 100%; padding: 18px 0; font-size: 20px;
    text-align: left; letter-spacing: .12em;
    border-bottom: 1px solid var(--c-line); border-radius: 0;
  }
  .nav a::before { left: 0; transform: scale(0); bottom: 50%; margin-bottom: -2px; }
  .nav a:hover::before, .nav a.is-active::before { transform: scale(1); }
  .header__cta { display: none; }
  .nav .nav__cta {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 10px;
    width: 100%; margin-top: 18px;
    padding: 16px 20px; border-radius: 14px;
    background: var(--c-grad);
    color: #0A0C0F !important;
    font-family: 'Oswald'; text-transform: uppercase;
    font-weight: 700; letter-spacing: .14em; font-size: 14px;
    border-bottom: 0;
  }
  .nav .nav__cta::before { display: none; }
  .nav .nav__cta svg { width: 16px; height: 16px; flex-shrink: 0; }
}

/* ============= HERO ============= */
.hero {
  position: relative;
  height: calc(100vh - var(--header-offset, 64px));
  height: calc(100dvh - var(--header-offset, 64px));
  display: flex; align-items: stretch;
  padding: 0;
  overflow: hidden;
  isolation: isolate;
}
.hero__media {
  position: absolute; inset: 0;
  z-index: -2;
  overflow: hidden;
  background: #0A0C0F url('/assets/img/hero/scene-tanks.avif') center/cover no-repeat;
}
.hero__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.05);
  pointer-events: none;
}

/* Glitch / light-leak overlay */
.hero__glitch {
  position: absolute; inset: 0;
  z-index: -1;
  pointer-events: none;
  mix-blend-mode: screen;
  background:
    repeating-linear-gradient(0deg, rgba(255,179,71,0) 0, rgba(255,179,71,0) 2px, rgba(255,179,71,.05) 3px, rgba(255,179,71,0) 4px),
    radial-gradient(80% 60% at 80% 20%, rgba(255,179,71,.18), transparent 60%),
    radial-gradient(60% 50% at 10% 80%, rgba(78, 212, 165, .07), transparent 60%);
  animation: glitch-flicker 7s infinite var(--ease);
}
@keyframes glitch-flicker {
  0%,100% { opacity: 1; transform: translateX(0); }
  20%     { opacity: .85; transform: translateX(-1px); }
  20.2%   { opacity: 1;   transform: translateX(2px); }
  20.5%   { opacity: 1;   transform: translateX(0); }
  60%     { opacity: .92; }
  60.2%   { opacity: 1;   transform: translateY(-1px); }
  60.5%   { transform: translateY(0); }
}
.hero__veil {
  position: absolute; inset: 0;
  z-index: -1;
  background:
    radial-gradient(120% 80% at 50% 100%, rgba(10,12,15,.92), rgba(10,12,15,.3) 60%, transparent 100%),
    linear-gradient(180deg, rgba(10,12,15,.55) 0%, rgba(10,12,15,.35) 30%, rgba(10,12,15,.85) 100%);
}

.hero__content {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex; align-items: center;
  padding-block: 24px 56px;
  min-height: 0;
}
.hero__grid {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
  max-height: 100%;
}
@media (max-width: 1100px) {
  .hero__content { padding-block: 10px 32px; align-items: stretch; }
  .hero__grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 16px;
    height: 100%;
    align-items: stretch;
  }
  .hero__head { align-self: end; }
}
@media (max-width: 820px) {
  .hero {
    height: auto;
    min-height: 0;
  }
  .hero__content {
    height: auto;
    padding-block: 16px 20px;
    align-items: stretch;
  }
  .hero__grid {
    grid-template-rows: auto auto;
    height: auto;
    gap: 18px;
  }
  .hero__head { align-self: auto; }
}

.hero__head { max-width: 820px; }
.hero__title {
  font-family: 'Oswald'; font-weight: 700;
  font-size: clamp(36px, 5.4vw, 96px);
  line-height: .92; letter-spacing: -.01em;
  text-transform: uppercase;
  color: #fff;
}
.hero__title span {
  display: block;
  background: var(--c-grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  filter: drop-shadow(0 6px 28px rgba(255, 179, 71, .35));
}
.hero__lede {
  margin-top: 22px;
  font-size: clamp(15px, 1.4vw, 19px);
  color: var(--c-text-dim);
  line-height: 1.6;
}
.hero__cta-row { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 14px; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 17px 30px; border-radius: 999px;
  font-family: 'Oswald'; text-transform: uppercase;
  font-size: 14px; font-weight: 700; letter-spacing: .16em;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease), color .3s var(--ease);
}
.btn svg { width: 16px; height: 16px; }
.btn--primary {
  background: var(--c-grad);
  color: #0A0C0F;
  box-shadow: 0 12px 32px rgba(255, 179, 71, .35), inset 0 0 0 0 rgba(255, 179, 71, 0);
}
.btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 44px rgba(255, 179, 71, .5);
  filter: saturate(1.15);
}
.btn--ghost {
  background: rgba(255, 255, 255, .04);
  color: #fff;
  border: 1px solid var(--c-line-2);
}
.btn--ghost:hover {
  background: rgba(255, 179, 71, .08);
  border-color: var(--c-amber);
  transform: translateY(-3px);
}

/* Hero side panel — telemetry HUD */
.hero__panel {
  position: relative;
  padding: 26px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(15, 22, 30, .8), rgba(11, 14, 18, .55));
  border: 1px solid var(--c-line-2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
@media (max-width: 1100px) {
  .hero__panel {
    padding: 16px;
    min-height: 0;
    max-height: 100%;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .hero__panel h2 { font-size: 11px; }
  .hero__panel::-webkit-scrollbar { width: 0; }
}
@media (max-width: 820px) {
  .hero__panel {
    max-height: none;
    overflow-y: visible;
  }
}
.hero__panel::before {
  content: ''; position: absolute; inset: 0;
  border-radius: 22px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 179, 71, .35), transparent 30%, transparent 70%, rgba(78, 212, 165, .2));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
}
.hero__panel h2 {
  font-size: 13px; letter-spacing: .3em;
  font-weight: 600; color: var(--c-amber-2);
}
.hero__roster { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.hero__roster-row {
  display: flex; align-items: center; gap: 14px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .025);
  border: 1px solid var(--c-line);
  transition: background .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
  cursor: pointer;
}
@media (max-width: 1100px) {
  .hero__roster { gap: 5px; margin-top: 12px; }
  .hero__roster-row { padding: 5px 11px; gap: 10px; }
  .hero__roster-icon { width: 28px; height: 28px; }
  .hero__roster-icon svg { width: 16px; height: 16px; }
  .hero__roster-name { font-size: 13px; line-height: 1.2; }
  .hero__roster-tag { font-size: 9px; line-height: 1.2; }
  .hero__roster-rating { font-size: 11px; padding: 3px 7px; }
  .hero__roster-rating svg { width: 10px; height: 10px; }
}
.hero__roster-row:hover {
  background: rgba(255, 179, 71, .08);
  border-color: var(--c-amber);
  transform: translateX(6px);
}
.hero__roster-icon {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(255, 179, 71, .18), rgba(255, 179, 71, .05));
  color: var(--c-amber);
}
.hero__roster-icon svg { width: 22px; height: 22px; }
.hero__roster-name {
  font-family: 'Oswald'; text-transform: uppercase;
  font-size: 15px; font-weight: 600; letter-spacing: .06em;
  color: #fff;
}
.hero__roster-tag {
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--c-text-mute);
}
.hero__roster-text { flex: 1 1 0; min-width: 0; }
.hero__roster-rating {
  display: inline-flex; align-items: center; gap: 5px;
  flex-shrink: 0;
  font-family: 'Oswald'; font-weight: 600;
  font-size: 12px; letter-spacing: .04em;
  color: var(--c-amber-2);
  padding: 4px 9px; border-radius: 999px;
  background: rgba(255, 179, 71, .1);
  border: 1px solid rgba(255, 179, 71, .22);
}
.hero__roster-rating svg { width: 11px; height: 11px; color: var(--c-amber); flex-shrink: 0; }
.hero__roster-arrow { flex-shrink: 0; width: 18px; height: 18px; color: var(--c-text-mute); transition: transform .25s var(--ease), color .25s var(--ease); }
.hero__roster-row:hover .hero__roster-arrow { color: var(--c-amber); transform: translateX(3px); }

/* Hero scroll cue — anchored to first viewport, never below the fold */
.hero__cue {
  position: absolute; left: 50%;
  bottom: 18px; top: auto;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  color: var(--c-text-mute);
  font-size: 11px; letter-spacing: .3em; text-transform: uppercase;
  animation: cue-bob 2.4s infinite var(--ease);
  z-index: 3;
  pointer-events: none;
}
.hero__cue svg { width: 18px; height: 18px; color: var(--c-amber); }
@keyframes cue-bob { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }

/* ============= SECTION HEAD ============= */
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 32px;
  margin-bottom: 56px;
}
.section-head__left h2 {
  background: linear-gradient(180deg, #fff 30%, rgba(255, 255, 255, .55));
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.page-hero__meta {
  margin-top: 10px;
  font-family: 'Oswald'; text-transform: uppercase;
  font-size: 12px; letter-spacing: .26em;
  color: var(--c-text-mute);
}
.section-head__right { max-width: 460px; }
.section-head__right p { color: var(--c-text-dim); font-size: 16px; }
@media (max-width: 820px) {
  .section-head { flex-direction: column; align-items: flex-start; gap: 16px; margin-bottom: 36px; }
}

/* ============= GAMES (BENTO) ============= */
.games { background: var(--c-bg); }
.games-bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 200px;
  gap: 18px;
}
.gcard {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: var(--c-panel);
  border: 1px solid var(--c-line);
  isolation: isolate;
  transition: transform .5s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease);
}
.gcard__bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transform: scale(1.05);
  transition: transform 1s var(--ease), filter .6s var(--ease);
  filter: saturate(1.05) brightness(.65);
  z-index: -2;
}
.gcard::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10, 12, 15, .1) 0%, rgba(10, 12, 15, .35) 45%, rgba(10, 12, 15, .92) 100%);
  z-index: -1;
}
.gcard::before {
  content: ''; position: absolute; inset: 0;
  border-radius: 22px;
  padding: 1px;
  background: linear-gradient(135deg, transparent 0%, transparent 50%, rgba(255, 179, 71, 0) 60%, rgba(255, 179, 71, 0) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
  transition: background .4s var(--ease);
  z-index: 1;
}
.gcard:hover {
  transform: translateY(-6px);
  border-color: var(--c-amber);
  box-shadow: 0 24px 60px rgba(255, 179, 71, .28), 0 0 0 1px rgba(255, 179, 71, .35);
}
.gcard:hover .gcard__bg { transform: scale(1.12); filter: saturate(1.15) brightness(.75); }
.gcard:hover::before {
  background: linear-gradient(135deg, rgba(255, 179, 71, .6) 0%, transparent 40%, transparent 60%, rgba(255, 179, 71, .35) 100%);
}

.gcard__body {
  position: relative;
  height: 100%;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 26px 26px 24px;
  z-index: 2;
}
.gcard__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.gcard__genre {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(10, 12, 15, .72);
  border: 1px solid var(--c-line-2);
  font-family: 'Oswald'; text-transform: uppercase;
  font-size: 11px; letter-spacing: .22em; font-weight: 500;
  color: var(--c-amber-2);
  backdrop-filter: blur(6px);
}
.gcard__genre svg { width: 14px; height: 14px; }
.gcard__rating {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(255, 179, 71, .1);
  border: 1px solid rgba(255, 179, 71, .25);
  font-family: 'Oswald'; font-weight: 600;
  font-size: 13px; color: var(--c-amber);
}
.gcard__rating svg { width: 14px; height: 14px; color: var(--c-amber); }

.gcard__title {
  font-family: 'Oswald'; font-weight: 700;
  font-size: clamp(24px, 2.4vw, 36px);
  text-transform: uppercase;
  color: #fff;
  letter-spacing: -.005em;
}
.gcard__desc {
  margin-top: 8px;
  color: var(--c-text-dim);
  font-size: 14px; line-height: 1.55;
}
.gcard__bottom { margin-top: 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.gcard__meta {
  display: inline-flex; gap: 14px;
  font-family: 'Oswald'; text-transform: uppercase;
  font-size: 11px; letter-spacing: .2em; color: var(--c-text-mute);
}
.gcard__meta b { color: #fff; font-weight: 600; }
.gcard__play {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 18px; border-radius: 999px;
  background: var(--c-grad); color: #0A0C0F;
  font-family: 'Oswald'; text-transform: uppercase;
  font-size: 12px; font-weight: 700; letter-spacing: .14em;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
  box-shadow: 0 8px 22px rgba(255, 179, 71, .25);
}
.gcard__play svg { width: 12px; height: 12px; }
.gcard__play:hover { transform: translateX(3px); box-shadow: 0 12px 30px rgba(255, 179, 71, .5); }

/* Scan line on hover */
.gcard__scan {
  position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--c-amber), transparent);
  opacity: 0; z-index: 3;
  transition: opacity .3s var(--ease);
}
.gcard:hover .gcard__scan { opacity: 1; animation: scan 1.8s var(--ease) infinite; }
@keyframes scan { 0% { transform: translateY(0); } 100% { transform: translateY(100%); } }

/* Bento layout: 5 cards across 12 cols × 4 rows */
.gcard--tanks      { grid-column: span 7; grid-row: span 2; }
.gcard--warships   { grid-column: span 5; grid-row: span 2; }
.gcard--enlisted   { grid-column: span 4; grid-row: span 2; }
.gcard--warthunder { grid-column: span 4; grid-row: span 2; }
.gcard--crossout   { grid-column: span 4; grid-row: span 2; }

@media (max-width: 1100px) {
  .games-bento { grid-auto-rows: 180px; }
  .gcard--tanks      { grid-column: span 7; }
  .gcard--warships   { grid-column: span 5; }
  .gcard--enlisted   { grid-column: span 6; }
  .gcard--warthunder { grid-column: span 6; }
  .gcard--crossout   { grid-column: span 12; }
}
@media (max-width: 820px) {
  .games-bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 220px; gap: 14px; }
  .gcard--tanks, .gcard--warships, .gcard--enlisted, .gcard--warthunder { grid-column: span 1; }
  .gcard--crossout { grid-column: span 2; }
}
@media (max-width: 520px) {
  .games-bento { grid-template-columns: 1fr; grid-auto-rows: 280px; }
  .gcard--tanks, .gcard--warships, .gcard--enlisted, .gcard--warthunder, .gcard--crossout { grid-column: span 1; }
  .gcard__body { padding: 22px; }
  .gcard__bottom {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .gcard__meta {
    flex-wrap: wrap;
    gap: 10px;
  }
  .gcard__play {
    justify-content: center;
    width: 100%;
  }
}

/* ============= ABOUT ============= */
.about {
  position: relative;
  background: var(--c-bg-2);
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
  overflow: hidden;
}
.about::before {
  content: ''; position: absolute; inset: 0;
  background-image: url('/assets/img/sections/about-hud.avif');
  background-size: cover; background-position: center;
  opacity: .12; filter: hue-rotate(-10deg);
  z-index: 0;
}
.about__inner { position: relative; z-index: 1; }
.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}
@media (max-width: 1100px) { .about__grid { grid-template-columns: 1fr; gap: 48px; } }

.about__lead p { font-size: 17px; line-height: 1.75; }
.about__lead p + p { margin-top: 18px; }
.about__lead h3 {
  margin-top: 32px; margin-bottom: 10px;
  font-size: 22px; letter-spacing: 0;
}

.about__list {
  list-style: none;
  display: flex; flex-direction: column; gap: 14px;
  margin-top: 18px;
}
.about__list li {
  position: relative;
  padding: 14px 18px 14px 52px;
  border-radius: 14px;
  background: rgba(15, 22, 30, .55);
  border: 1px solid var(--c-line);
  color: var(--c-text-dim);
  transition: transform .25s var(--ease), border-color .25s var(--ease);
}
.about__list li::before {
  content: '';
  position: absolute; left: 18px; top: 50%; transform: translateY(-50%);
  width: 20px; height: 20px; border-radius: 4px;
  background: linear-gradient(135deg, var(--c-amber), var(--c-amber-2));
  box-shadow: 0 0 12px rgba(255, 179, 71, .45);
  clip-path: polygon(20% 0, 100% 0, 80% 100%, 0 100%);
}
.about__list li:hover { transform: translateX(4px); border-color: rgba(255, 179, 71, .35); }
.about__list li b { color: #fff; }

.about__side {
  position: sticky; top: calc(var(--header-offset, 64px) + 24px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 1100px) { .about__side { position: relative; top: auto; } }

.about-tile {
  position: relative;
  padding: 24px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(15, 22, 30, .85), rgba(11, 14, 18, .65));
  border: 1px solid var(--c-line-2);
  display: flex; flex-direction: column; gap: 12px;
  min-height: 160px;
  transition: transform .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease);
}
.about-tile:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 179, 71, .35);
  box-shadow: 0 16px 40px rgba(255, 179, 71, .14);
}
.about-tile__icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255, 179, 71, .18), rgba(255, 179, 71, .04));
  color: var(--c-amber);
}
.about-tile__icon svg { width: 24px; height: 24px; }
.about-tile__num {
  font-family: 'Oswald'; font-weight: 700;
  font-size: 38px; line-height: 1;
  color: #fff;
}
.about-tile__num span { color: var(--c-amber); }
.about-tile__label {
  font-family: 'Oswald'; text-transform: uppercase;
  font-size: 12px; letter-spacing: .22em; color: var(--c-text-mute);
}
.about-tile--wide { grid-column: span 2; }

.about__video {
  grid-column: span 2;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--c-line-2);
  background: #0b0e12;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .35);
  aspect-ratio: 16 / 9;
}
.about__video-el {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============= QUIZ ============= */
.quiz {
  position: relative;
  background: var(--c-bg);
  overflow: hidden;
}
.quiz::before {
  content: ''; position: absolute; inset: 0;
  background-image: url('/assets/img/sections/quiz-radar.avif');
  background-size: cover; background-position: center;
  opacity: .18; mix-blend-mode: screen;
}
.quiz__inner { position: relative; z-index: 1; }
.quiz__stage {
  position: relative;
  padding: clamp(36px, 5vw, 72px);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(15, 22, 30, .9), rgba(11, 14, 18, .85));
  border: 1px solid var(--c-line-2);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  overflow: hidden;
  min-height: 460px;
}
.quiz__stage::before {
  content: ''; position: absolute; inset: 0;
  border-radius: 28px; padding: 1px;
  background: linear-gradient(135deg, rgba(255, 179, 71, .35), transparent 40%, transparent 60%, rgba(78, 212, 165, .2));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
}

.quiz__progress {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 26px; gap: 16px;
}
.quiz__steps {
  display: flex; gap: 6px; flex: 1;
}
.quiz__step {
  height: 4px; flex: 1; border-radius: 4px;
  background: rgba(184, 194, 204, .12);
  position: relative; overflow: hidden;
}
.quiz__step.is-active { background: var(--c-amber); box-shadow: 0 0 12px rgba(255, 179, 71, .5); }
.quiz__step.is-done { background: rgba(255, 179, 71, .55); }
.quiz__counter {
  font-family: 'Oswald'; text-transform: uppercase;
  font-size: 12px; letter-spacing: .26em; color: var(--c-amber-2);
}

.quiz__panel { position: relative; min-height: 360px; }
.quiz__question { display: none; opacity: 0; transform: translateY(12px); transition: opacity .4s var(--ease), transform .4s var(--ease); }
.quiz__question.is-current { display: block; }
.quiz__question.is-visible { opacity: 1; transform: translateY(0); }
.quiz__prompt {
  font-family: 'Oswald'; font-weight: 700; text-transform: uppercase;
  font-size: clamp(22px, 3vw, 34px);
  color: #fff; max-width: 720px;
}
.quiz__hint {
  margin-top: 8px;
  font-family: 'Oswald'; text-transform: uppercase;
  font-size: 12px; letter-spacing: .26em; color: var(--c-text-mute);
}
.quiz__options {
  margin-top: 32px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.quiz__opt {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 20px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--c-line);
  color: var(--c-text);
  text-align: left;
  font-size: 15px;
  transition: transform .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease);
}
.quiz__opt:hover { transform: translateY(-2px); border-color: var(--c-amber); background: rgba(255, 179, 71, .07); }
.quiz__opt::before {
  content: ''; width: 14px; height: 14px;
  border-radius: 4px; flex-shrink: 0;
  border: 2px solid var(--c-amber-2);
  transition: background .25s var(--ease);
}
.quiz__opt.is-picked { border-color: var(--c-amber); background: rgba(255, 179, 71, .12); }
.quiz__opt.is-picked::before { background: var(--c-amber); box-shadow: 0 0 10px var(--c-amber); }

.quiz__nav {
  margin-top: 30px; display: flex; gap: 12px; justify-content: space-between;
}
.quiz__btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px; border-radius: 999px;
  font-family: 'Oswald'; text-transform: uppercase;
  font-size: 13px; font-weight: 600; letter-spacing: .14em;
  transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease);
}
.quiz__btn--prev {
  background: rgba(255, 255, 255, .04);
  color: var(--c-text-dim);
  border: 1px solid var(--c-line);
}
.quiz__btn--prev:hover { color: #fff; }
.quiz__btn--next {
  background: var(--c-grad); color: #0A0C0F;
  box-shadow: 0 10px 24px rgba(255, 179, 71, .3);
}
.quiz__btn--next:hover { transform: translateY(-2px); }
.quiz__btn[disabled] { opacity: .35; pointer-events: none; }

/* Quiz result */
.quiz__result {
  display: none; opacity: 0; transform: translateY(12px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.quiz__result.is-visible {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 36px; align-items: center;
  opacity: 1; transform: translateY(0);
}
@media (max-width: 820px) { .quiz__result.is-visible { grid-template-columns: 1fr; gap: 24px; } }
.quiz__result-art {
  position: relative;
  aspect-ratio: 16 / 11;
  border-radius: 20px;
  background-size: cover; background-position: center;
  overflow: hidden;
  border: 1px solid var(--c-line-2);
}
.quiz__result-art::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(10, 12, 15, .85) 100%);
}
.quiz__result-label {
  font-family: 'Oswald'; text-transform: uppercase;
  font-size: 12px; letter-spacing: .3em; color: var(--c-amber);
}
.quiz__result-title {
  margin-top: 10px;
  font-family: 'Oswald'; font-weight: 700; text-transform: uppercase;
  font-size: clamp(28px, 4vw, 44px); line-height: 1;
  color: #fff;
}
.quiz__result-desc { margin-top: 14px; font-size: 16px; color: var(--c-text-dim); }
.quiz__result-cta { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 10px; }

/* ============= CONTACT ============= */
.contact { background: var(--c-bg-2); border-top: 1px solid var(--c-line); }
.contact__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 1100px) { .contact__grid { grid-template-columns: 1fr; gap: 32px; } }

.form {
  display: flex; flex-direction: column; gap: 16px;
  padding: 32px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(15, 22, 30, .82), rgba(11, 14, 18, .55));
  border: 1px solid var(--c-line-2);
}
.field { display: block; }
.field__label {
  display: block;
  font-family: 'Oswald'; text-transform: uppercase;
  font-size: 11px; letter-spacing: .26em;
  color: var(--c-amber-2);
  margin-bottom: 8px;
}
.field__input,
.field__textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(10, 12, 15, .55);
  border: 1px solid var(--c-line-2);
  color: #fff;
  font-size: 15px;
  transition: border-color .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease);
}
.field__input::placeholder, .field__textarea::placeholder { color: var(--c-text-mute); }
.field__input:focus, .field__textarea:focus {
  border-color: var(--c-amber);
  background: rgba(10, 12, 15, .8);
  box-shadow: 0 0 0 4px rgba(255, 179, 71, .12);
}
.field__textarea { resize: none; min-height: 140px; }
.field.has-error .field__input,
.field.has-error .field__textarea { border-color: var(--c-danger); box-shadow: 0 0 0 4px rgba(255, 107, 87, .14); }
.field__error {
  display: none; margin-top: 6px;
  color: var(--c-danger);
  font-size: 12px; letter-spacing: .04em;
}
.field.has-error .field__error { display: block; }

.form__submit {
  margin-top: 6px;
  align-self: flex-start;
}

.contact__info {
  display: flex; flex-direction: column; gap: 18px;
}
.info-card {
  padding: 22px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(15, 22, 30, .8), rgba(11, 14, 18, .55));
  border: 1px solid var(--c-line);
  display: flex; gap: 16px;
  align-items: flex-start;
  transition: border-color .25s var(--ease), transform .25s var(--ease);
}
.info-card:hover { border-color: rgba(255, 179, 71, .35); transform: translateY(-2px); }
.info-card__icon {
  width: 46px; height: 46px;
  flex-shrink: 0;
  border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(255, 179, 71, .2), rgba(255, 179, 71, .05));
  color: var(--c-amber);
}
.info-card__icon svg { width: 22px; height: 22px; }
.info-card__label {
  font-family: 'Oswald'; text-transform: uppercase;
  font-size: 11px; letter-spacing: .26em; color: var(--c-text-mute);
}
.info-card__value {
  margin-top: 4px;
  font-size: 16px; color: #fff;
  line-height: 1.5;
}
.info-card__value a { color: var(--c-amber-2); transition: color .25s var(--ease); }
.info-card__value a:hover { color: var(--c-amber); }

.map-frame {
  margin-top: 8px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--c-line-2);
  aspect-ratio: 16 / 9;
  background: var(--c-panel);
}
.map-frame iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.4) invert(.92) hue-rotate(180deg); }

/* ============= FOOTER ============= */
.site-footer {
  background: var(--c-bg);
  border-top: 1px solid var(--c-line);
  padding: 56px 0 36px;
  position: relative;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}
@media (max-width: 820px) { .footer__grid { grid-template-columns: 1fr; gap: 36px; } }

.footer__brand { display: flex; flex-direction: column; gap: 14px; }
.footer__tag {
  color: var(--c-text-dim);
  font-size: 14px; line-height: 1.6;
}
.footer__social {
  display: flex; align-items: center; gap: 10px;
  margin-top: 6px;
  flex-wrap: wrap;
}
.footer__social a {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: rgba(255, 179, 71, .06);
  border: 1px solid var(--c-line);
  color: var(--c-text-dim);
  transition: color .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.footer__social a svg {
  width: 18px; height: 18px;
}
.footer__social a:hover {
  color: var(--c-amber);
  background: rgba(255, 179, 71, .12);
  border-color: rgba(255, 179, 71, .35);
  transform: translateY(-2px);
}
.footer__col h3 {
  font-family: 'Oswald'; text-transform: uppercase;
  font-size: 13px; letter-spacing: .26em; color: var(--c-amber-2);
  margin-bottom: 16px;
}
.footer__col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer__col a {
  font-size: 14px; color: var(--c-text-dim);
  transition: color .2s var(--ease);
}
.footer__col a:hover { color: var(--c-amber); }

.footer__rule {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--c-line-2), transparent);
}
.footer__bottom {
  margin-top: 28px;
  display: flex; justify-content: space-between; gap: 20px; align-items: center; flex-wrap: wrap;
  font-size: 12px; color: var(--c-text-mute);
  letter-spacing: .08em;
}
.footer__disclaim {
  margin-top: 24px;
  padding: 14px 18px;
  border-radius: 12px;
  background: rgba(255, 179, 71, .04);
  border: 1px solid var(--c-line);
  font-size: 12px; color: var(--c-text-mute);
  line-height: 1.65;
}

/* ============= CHAT ============= */
.chat-toggle {
  position: fixed; right: 22px; bottom: 22px;
  z-index: 80;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--c-grad); color: #0A0C0F;
  display: grid; place-items: center;
  box-shadow: 0 14px 32px rgba(255, 179, 71, .45);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.chat-toggle svg { width: 28px; height: 28px; }
.chat-toggle:hover { transform: translateY(-4px) scale(1.05); box-shadow: 0 20px 44px rgba(255, 179, 71, .6); }
.chat-toggle::after {
  content: '';
  position: absolute; inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(255, 179, 71, .35);
  animation: pulse 2s infinite var(--ease);
}
@keyframes pulse { 0% { transform: scale(.95); opacity: .9; } 100% { transform: scale(1.3); opacity: 0; } }

.chat-panel {
  position: fixed; right: 22px; bottom: 96px;
  z-index: 81;
  width: 360px; height: 460px;
  border-radius: 22px;
  background: linear-gradient(180deg, #131A21 0%, #0A0C0F 100%);
  border: 1px solid var(--c-line-2);
  box-shadow: 0 30px 60px rgba(0, 0, 0, .55);
  display: flex; flex-direction: column;
  transform: translateY(20px) scale(.92);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s linear .3s;
  overflow: hidden;
}
.chat-panel[data-open="true"] {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateY(0) scale(1);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s linear 0s;
}
.chat__head {
  padding: 14px 16px;
  display: flex; align-items: center; gap: 12px;
  border-bottom: 1px solid var(--c-line);
  background: linear-gradient(180deg, rgba(255, 179, 71, .08), transparent);
}
.chat__avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background-image: url('/assets/img/chat/avatar-operator.avif');
  background-size: cover; background-position: center;
  border: 2px solid var(--c-amber);
  flex-shrink: 0;
}
.chat__who {
  font-family: 'Oswald'; text-transform: uppercase;
  font-size: 14px; font-weight: 600; letter-spacing: .04em; color: #fff;
}
.chat__status {
  font-size: 11px; color: var(--c-ok);
  display: inline-flex; align-items: center; gap: 6px;
}
.chat__status::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%;
  background: var(--c-ok); box-shadow: 0 0 8px var(--c-ok);
  animation: pulse-dot 1.6s infinite;
}
@keyframes pulse-dot { 50% { opacity: .35; } }
.chat__close {
  margin-left: auto;
  width: 32px; height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .05);
  display: grid; place-items: center;
  color: var(--c-text-dim);
  transition: background .25s var(--ease), color .25s var(--ease);
}
.chat__close:hover { background: var(--c-danger); color: #fff; }
.chat__close svg { width: 16px; height: 16px; }

.chat__body {
  flex: 1; overflow-y: auto;
  padding: 16px;
  display: flex; flex-direction: column; gap: 10px;
  scrollbar-width: thin;
  scrollbar-color: var(--c-line-2) transparent;
}
.chat__body::-webkit-scrollbar { width: 4px; }
.chat__body::-webkit-scrollbar-thumb { background: var(--c-line-2); border-radius: 4px; }

.chat__msg {
  max-width: 86%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 14px; line-height: 1.5;
  animation: msg-in .35s var(--ease);
}
@keyframes msg-in { from { opacity: 0; transform: translateY(6px);} to { opacity: 1; transform: translateY(0);} }
.chat__msg--bot {
  align-self: flex-start;
  background: rgba(15, 22, 30, .85);
  border: 1px solid var(--c-line);
  color: var(--c-text);
  border-bottom-left-radius: 4px;
}
.chat__msg--user {
  align-self: flex-end;
  background: var(--c-grad);
  color: #0A0C0F;
  border-bottom-right-radius: 4px;
  font-weight: 500;
}
.chat__typing {
  align-self: flex-start;
  background: rgba(15, 22, 30, .85);
  border: 1px solid var(--c-line);
  padding: 12px 16px;
  border-radius: 14px;
  display: inline-flex; gap: 4px;
  border-bottom-left-radius: 4px;
}
.chat__typing span {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--c-amber);
  animation: bouncedot 1.2s infinite;
}
.chat__typing span:nth-child(2) { animation-delay: .15s; }
.chat__typing span:nth-child(3) { animation-delay: .3s; }
@keyframes bouncedot { 0%,80%,100% { transform: scale(.6); opacity: .4; } 40% { transform: scale(1); opacity: 1; } }

.chat__quick {
  padding: 0 16px 10px;
  display: flex; flex-wrap: wrap; gap: 6px;
}
.chat__quick button {
  font-size: 12px;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(255, 179, 71, .08);
  border: 1px solid rgba(255, 179, 71, .25);
  color: var(--c-amber-2);
  transition: background .2s var(--ease);
}
.chat__quick button:hover { background: rgba(255, 179, 71, .18); }

.chat__form {
  border-top: 1px solid var(--c-line);
  padding: 12px;
  display: flex; gap: 8px; align-items: center;
}
.chat__input {
  flex: 1; min-width: 0;
  padding: 11px 14px;
  border-radius: 12px;
  background: rgba(10, 12, 15, .8);
  border: 1px solid var(--c-line-2);
  color: #fff; font-size: 14px;
}
.chat__input:focus { border-color: var(--c-amber); }
.chat__send {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: var(--c-grad); color: #0A0C0F;
  display: grid; place-items: center;
  flex-shrink: 0;
  transition: transform .2s var(--ease);
}
.chat__send svg { width: 18px; height: 18px; }
.chat__send:hover { transform: rotate(-12deg); }

@media (max-width: 520px) {
  .chat-panel { width: calc(100vw - 24px); right: 12px; }
  .chat-toggle { right: 14px; bottom: 14px; }
}

/* ============= TOAST ============= */
.toast-back {
  position: fixed; inset: 0;
  z-index: 200;
  background: rgba(10, 12, 15, .72);
  backdrop-filter: blur(6px);
  display: grid; place-items: center;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .3s var(--ease), visibility 0s linear .3s;
}
.toast-back.is-open {
  opacity: 1; visibility: visible; pointer-events: auto;
  transition: opacity .3s var(--ease), visibility 0s linear 0s;
}
.toast {
  max-width: 420px;
  padding: 28px 30px;
  border-radius: 22px;
  background: linear-gradient(180deg, #131A21, #0A0C0F);
  border: 1px solid var(--c-line-2);
  text-align: center;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
  transform: scale(.92); transition: transform .35s var(--ease);
}
.toast-back.is-open .toast { transform: scale(1); }
.toast__icon {
  width: 64px; height: 64px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(78, 212, 165, .25), rgba(78, 212, 165, .05));
  border: 1px solid rgba(78, 212, 165, .35);
  color: var(--c-ok);
}
.toast__icon svg { width: 32px; height: 32px; }
.toast.is-err .toast__icon {
  background: linear-gradient(135deg, rgba(255, 107, 87, .25), rgba(255, 107, 87, .05));
  border-color: rgba(255, 107, 87, .35);
  color: var(--c-danger);
}
.toast__title {
  font-family: 'Oswald'; text-transform: uppercase;
  font-size: 22px; font-weight: 700; color: #fff;
  margin-bottom: 8px;
}
.toast__text { color: var(--c-text-dim); font-size: 14px; line-height: 1.55; }

/* ============= REVEAL ANIMATIONS ============= */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }
.reveal[data-delay="5"] { transition-delay: .4s; }
.reveal[data-delay="6"] { transition-delay: .48s; }

/* First-paint above-fold animation (pure CSS, no JS flash) */
.first-reveal { animation: first-in 1s var(--ease) both; }
.first-reveal[data-delay="1"] { animation-delay: .1s; }
.first-reveal[data-delay="2"] { animation-delay: .25s; }
.first-reveal[data-delay="3"] { animation-delay: .4s; }
.first-reveal[data-delay="4"] { animation-delay: .55s; }
.first-reveal[data-delay="5"] { animation-delay: .7s; }
@keyframes first-in {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Parallax hint */
.parallax { will-change: transform; transition: transform .25s linear; }

/* ============= LEGAL PAGES ============= */
.page-hero {
  padding: calc(var(--header-offset, 64px) + 56px) 0 56px;
  border-bottom: 1px solid var(--c-line);
  background: linear-gradient(180deg, rgba(15, 22, 30, .6), transparent);
}
.page-hero h1 {
  font-size: clamp(38px, 5.4vw, 70px);
  background: var(--c-grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.page-hero p { margin-top: 16px; font-size: 17px; color: var(--c-text-dim); max-width: 720px; }

.legal-content { padding: 64px 0 96px; }
.legal-content h2 {
  font-size: clamp(24px, 2.6vw, 34px);
  margin-top: 48px; margin-bottom: 16px;
  color: #fff;
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 {
  font-size: 20px;
  margin-top: 28px; margin-bottom: 12px;
  color: var(--c-amber-2);
  text-transform: none; letter-spacing: 0;
  font-family: 'Inter';
}
.legal-content p { margin-bottom: 16px; font-size: 16px; line-height: 1.75; }
.legal-content ul, .legal-content ol {
  margin: 16px 0 22px 0; padding-left: 22px;
  color: var(--c-text-dim);
}
.legal-content li { margin-bottom: 8px; line-height: 1.65; }
.legal-content a { color: var(--c-amber-2); border-bottom: 1px solid rgba(255, 210, 122, .25); transition: border-color .25s var(--ease); }
.legal-content a:hover { border-color: var(--c-amber); }
.legal-content strong { color: #fff; }

/* ============= ACCESSIBILITY / MOTION ============= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .hero__video { display: none; }
}

/* Hero compression so it always fits the first viewport */
@media (max-width: 1100px) {
  .hero__lede { display: none; }
  .hero__cta-row { margin-top: 22px; }
  .hero__cue { bottom: 10px; font-size: 9px; gap: 4px; }
  .hero__cue svg { width: 14px; height: 14px; }
}
@media (max-width: 820px) {
  .hero__cue { display: none; }
}
@media (max-width: 520px) {
  .hero__panel { padding: 14px; }
  .hero__roster { margin-top: 14px; gap: 6px; }
  .hero__roster-row { padding: 6px 10px; gap: 10px; }
  .hero__roster-name { font-size: 13px; letter-spacing: .05em; }
  .hero__roster-tag { font-size: 9px; letter-spacing: .16em; }
  .hero__roster-icon { width: 28px; height: 28px; }
  .hero__roster-icon svg { width: 16px; height: 16px; }
}

/* ============= UTILITY ============= */
.no-tap {
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}
button, a { -webkit-tap-highlight-color: transparent; }

/* small screens nudge */
@media (max-width: 430px) {
  .hero__content { padding-block: 10px 16px; }
  .hero__cta-row { flex-direction: column; align-items: stretch; margin-top: 14px; gap: 10px; }
  .btn { justify-content: center; width: 100%; padding: 14px 24px; }
  .header__cta { display: none; }
  .quiz__nav { flex-direction: column-reverse; }
  .quiz__btn { width: 100%; justify-content: center; }
  .form { padding: 24px; }
  .info-card { padding: 18px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
}
