:root {
  --bg: #171a28;
  --bg-2: #1e2236;
  --panel: #252a42;
  --panel-2: #2c3252;
  --ink: #f4f5fb;
  --ink-soft: #bcc0d8;
  --muted: #868bab;

  --red: #ff5c57;
  --red-hot: #ff7a70;
  --red-deep: #e04a45;
  --sky: #5ec8ff;
  --amber: #ffca4a;
  --mint: #59d29a;

  --line: rgba(255, 255, 255, .09);
  --line-2: rgba(255, 255, 255, .05);
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 14px 34px rgba(0, 0, 0, .32);
  --shadow-lg: 0 26px 60px rgba(0, 0, 0, .42);

  --font-display: 'Baloo 2', system-ui, 'Segoe UI', sans-serif;
  --font-ui: 'Fredoka', system-ui, sans-serif;
  --font-text: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --wrap: 1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(90% 60% at 78% -10%, rgba(255, 92, 87, .12), transparent 62%),
    radial-gradient(70% 60% at 12% 8%, rgba(94, 200, 255, .10), transparent 60%);
  background-attachment: fixed;
}

img { max-width: 100%; display: block; }
a { color: var(--red-hot); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0;
  margin: 0 0 .5em;
  color: #fff;
}
h1 { font-size: clamp(2.1rem, 5.4vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.5rem); }
h3 { font-size: clamp(1.18rem, 2vw, 1.45rem); }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
strong, .doc b { color: #fff; }

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.section { padding: clamp(48px, 7vw, 92px) 0; position: relative; }
.section--tint { background: linear-gradient(180deg, var(--bg-2), var(--bg)); }
.section--paper { background: #1b1f31; }
.lead { font-size: clamp(1.02rem, 1.6vw, 1.18rem); color: var(--ink-soft); max-width: 68ch; }
.center { text-align: center; margin-inline: auto; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--red-hot);
  background: rgba(255, 92, 87, .14);
  padding: 5px 15px;
  border-radius: 999px;
  margin-bottom: 14px;
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(23, 26, 40, .82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 66px;
}
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.brand img { width: 44px; height: auto; filter: drop-shadow(0 4px 12px rgba(255, 92, 87, .35)); }
.brand b {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  color: #fff;
  line-height: 1;
}
.brand b span { display: block; font-size: .68rem; letter-spacing: .04em; color: var(--muted); font-family: var(--font-ui); font-weight: 500; margin-top: 2px; text-transform: none; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.nav a {
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: .95rem;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 9px 14px;
  border-radius: 999px;
}
.nav a:hover, .nav a[aria-current='page'] { background: rgba(255, 92, 87, .16); color: #fff; }

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px; height: 44px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--panel);
  cursor: pointer;
  font-size: 20px;
  color: #fff;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  padding: 14px 30px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  transition: transform .14s ease, background .2s, box-shadow .2s, filter .2s;
}
.btn--primary {
  background: linear-gradient(180deg, var(--red-hot), var(--red) 65%, var(--red-deep));
  color: #fff;
  box-shadow: 0 8px 20px rgba(255, 92, 87, .32);
}
.btn--primary:hover { filter: brightness(1.05); transform: translateY(-2px); }
.btn--primary:active { transform: translateY(0); }
.btn--ghost {
  background: rgba(255, 255, 255, .06);
  color: #fff;
  border: 1px solid var(--line);
}
.btn--ghost:hover { border-color: var(--red); color: var(--red-hot); }
.btn--wide { width: 100%; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  padding: clamp(44px, 7vw, 92px) 0 clamp(48px, 8vw, 96px);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(70% 60% at 70% 30%, rgba(255, 92, 87, .22), transparent 62%),
    radial-gradient(80% 70% at 18% 6%, rgba(94, 200, 255, .16), transparent 60%),
    linear-gradient(180deg, #20263c 0%, #191d2d 70%, var(--bg) 100%);
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    radial-gradient(2px 2px at 20% 30%, rgba(255, 255, 255, .5), transparent),
    radial-gradient(2px 2px at 70% 22%, rgba(255, 255, 255, .35), transparent),
    radial-gradient(1.6px 1.6px at 40% 60%, rgba(255, 255, 255, .3), transparent),
    radial-gradient(1.6px 1.6px at 85% 55%, rgba(255, 255, 255, .35), transparent);
  opacity: .7;
}

.hero-inner { display: grid; justify-items: center; text-align: center; gap: 8px; }
.hero-logo {
  width: clamp(210px, 38vw, 420px);
  height: auto;
  filter: drop-shadow(0 12px 30px rgba(255, 92, 87, .38));
  margin-bottom: 4px;
  animation: bob 4s ease-in-out infinite;
}
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-.5deg); } 50% { transform: translateY(-10px) rotate(.5deg); } }
.hero-banner {
  width: min(760px, 100%);
  height: auto;
  border-radius: 20px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg), 0 0 0 6px rgba(255, 255, 255, .03);
  margin-bottom: 18px;
  animation: bob 5s ease-in-out infinite;
}
.hero h1 { max-width: 18ch; }
.hero h1 span { color: var(--red-hot); }
.hero .lead { max-width: 62ch; color: var(--ink-soft); font-weight: 400; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 24px; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 28px; }
.chip {
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: .86rem;
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 16px;
  color: var(--ink-soft);
}
.chip b { color: var(--red-hot); font-family: var(--font-display); }

/* ---------- grid / cards ---------- */

.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}
.card h3 { display: flex; align-items: center; gap: 10px; color: #fff; }
.card .ico {
  width: 44px; height: 44px;
  flex: 0 0 auto;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(255, 92, 87, .16);
  font-size: 1.2rem;
}
.card--flat { box-shadow: none; background: rgba(255, 255, 255, .04); }
.card p { color: var(--ink-soft); }
.card a { color: var(--red-hot); }

.split { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); align-items: start; }

.check { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.check li { position: relative; padding-left: 32px; color: var(--ink-soft); }
.check li::before {
  content: '✓';
  position: absolute;
  left: 0; top: 2px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--mint);
  color: #10221a;
  display: grid; place-items: center;
  font-size: .8rem;
  font-weight: 800;
}
.check--no li::before { content: '✕'; background: rgba(255, 255, 255, .16); color: #fff; }

/* ---------- game embed ---------- */

.game-block {
  background: linear-gradient(160deg, #232a44, #1a1f31);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  padding: clamp(14px, 2.4vw, 24px);
  box-shadow: var(--shadow-lg);
}
.game-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  min-height: 560px;
  border-radius: var(--radius);
  overflow: hidden;
  background: #12233a;
}
.game-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.game-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
  margin-top: 14px;
  color: var(--ink-soft);
  font-family: var(--font-ui);
  font-size: .92rem;
}
.game-bar a { color: var(--red-hot); }
.game-note {
  margin-top: 18px;
  background: rgba(94, 200, 255, .08);
  border: 1px solid rgba(94, 200, 255, .24);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  font-size: .95rem;
  color: var(--ink-soft);
}
.game-note b { color: #fff; }

@media (max-width: 700px) {
  .game-frame { aspect-ratio: 3 / 4; min-height: 520px; }
}

/* ---------- pay / obstacle table ---------- */

.pay-table { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.pay-row {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
}
.pay-row .glyph {
  width: 46px; height: 46px;
  flex: 0 0 auto;
  display: grid; place-items: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, .05);
  font-size: 1.6rem;
}
.pay-row div { font-size: .92rem; line-height: 1.45; color: var(--ink-soft); }
.pay-row strong { display: block; font-family: var(--font-display); color: #fff; font-size: 1.05rem; }
.pay-row b { color: var(--red-hot); }
.pay-row--good .glyph { background: rgba(94, 200, 255, .16); }
.pay-row--bonus .glyph { background: rgba(255, 202, 74, .18); }

/* ---------- stats ---------- */

.stats { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.stat {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow);
}
.stat b {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  color: var(--red-hot);
  line-height: 1;
}
.stat span { font-size: .9rem; color: var(--muted); }

/* ---------- modes / challenges ---------- */

.mode {
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 5px solid var(--red);
  border-radius: var(--radius-sm);
  padding: 22px 24px;
}
.mode h3 { margin-bottom: .3em; color: #fff; }
.mode .mode-meta {
  font-family: var(--font-ui);
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
  margin-bottom: 8px;
}
.mode p { color: var(--ink-soft); }
.mode:nth-child(2n) { border-left-color: var(--sky); }
.mode:nth-child(3n) { border-left-color: var(--amber); }
.mode:nth-child(4n) { border-left-color: var(--mint); }

/* ---------- faq ---------- */

.faq details {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 4px 22px;
  margin-bottom: 12px;
}
.faq summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.08rem;
  color: #fff;
  padding: 16px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 14px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--red); font-size: 1.5rem; line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq details p { padding-bottom: 18px; color: var(--ink-soft); }

/* ---------- form ---------- */

.form {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(22px, 3vw, 34px);
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
}
.field { display: grid; gap: 6px; }
.field label { font-family: var(--font-ui); font-weight: 500; font-size: .93rem; color: #fff; }
.field input, .field select, .field textarea {
  font: inherit;
  font-size: 1rem;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-2);
  color: var(--ink);
  width: 100%;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--red);
  outline-offset: 1px;
  background: #12141f;
}
.field select option { background: #252a42; color: #fff; }
.form-consent { font-size: .86rem; color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- footer ---------- */

.site-footer {
  background: #12141f;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  padding: clamp(40px, 6vw, 64px) 0 28px;
  font-size: .94rem;
}
.site-footer h4 { color: #fff; font-size: 1.05rem; margin-bottom: .6em; }
.site-footer a { color: var(--ink-soft); text-decoration: none; }
.site-footer a:hover { color: var(--red-hot); }
.footer-grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-brand img { width: 58px; height: auto; margin-bottom: 10px; filter: drop-shadow(0 4px 12px rgba(255, 92, 87, .3)); }
.footer-note {
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
}
.age {
  display: inline-grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 2px solid var(--red);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: .82rem;
  flex: 0 0 auto;
}

/* ---------- documents ---------- */

.doc { background: #1b1f31; }
.doc .wrap { max-width: 800px; }
.doc h2 { margin-top: 1.6em; }
.doc h3 { margin-top: 1.4em; }
.doc p, .doc li { color: var(--ink-soft); }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin-bottom: 8px; }
.doc a { color: var(--red-hot); }
.doc .updated { color: var(--muted); font-size: .9rem; }
.doc table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: .94rem; }
.doc th, .doc td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--ink-soft); }
.doc th { font-family: var(--font-ui); color: #fff; }

/* ---------- route comparison table ---------- */

.route-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .95rem;
  min-width: 560px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.route-table th, .route-table td {
  text-align: left;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
}
.route-table thead th {
  font-family: var(--font-ui);
  font-weight: 600;
  color: #fff;
  background: rgba(255, 255, 255, .04);
  text-transform: uppercase;
  font-size: .76rem;
  letter-spacing: .06em;
}
.route-table tbody tr:last-child td { border-bottom: 0; }
.route-table td b { color: var(--red-hot); font-family: var(--font-display); }

/* ---------- timeline ---------- */

.timeline {
  display: grid;
  gap: 18px;
  max-width: 720px;
  margin-inline: auto;
  position: relative;
}
.tl-item {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--red);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
}
.tl-item h3 { color: #fff; margin-bottom: .3em; }
.tl-item p { color: var(--ink-soft); margin: 0; }
.tl-item:nth-child(2) { border-left-color: var(--sky); }
.tl-item:nth-child(3) { border-left-color: var(--amber); }
.tl-tag {
  font-family: var(--font-ui);
  font-size: .78rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.notice {
  background: rgba(255, 202, 74, .1);
  border: 1px solid rgba(255, 202, 74, .32);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  color: #ecdcb2;
  font-size: .95rem;
}
.notice b { color: #fff; }

.error-page { text-align: center; padding: clamp(60px, 12vw, 130px) 0; }
.error-code {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(5rem, 20vw, 11rem);
  line-height: .9;
  color: var(--red);
  text-shadow: 0 10px 30px rgba(255, 92, 87, .35);
}

@media (max-width: 860px) {
  .nav {
    position: absolute;
    top: 66px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: var(--panel);
    border-bottom: 1px solid var(--line);
    padding: 10px 20px 16px;
    display: none;
    box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .nav-toggle { display: block; }
  .site-header .wrap { position: relative; }
}
