:root {
  --bg: #0a1220;
  --bg-2: #101c30;
  --surface: #152338;
  --surface-2: #1a2c44;
  --line: rgba(173, 189, 222, 0.14);
  --text: #eef3fb;
  --muted: #9db0cb;
  --orange: #ff642a;
  --orange-hot: #ff7a45;
  --orange-deep: #e54f18;
  --steel: #32446a;
  --steel-hover: #3d537f;
  --accent: #5ec8ff;
  --ok: #3dd68c;
  --warn: #ffb020;
  --radius: 14px;
  --radius-sm: 10px;
  --radius-pill: 999px;
  --header: 72px;
  --max: 1120px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --font: "Manrope", "Segoe UI", sans-serif;
  --display: "Syne", "Manrope", sans-serif;
  --ref: #ff642a;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header) + 0.75rem);
}

body {
  margin: 0;
  font-family: var(--font);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(255, 100, 42, 0.12), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(94, 200, 255, 0.08), transparent 50%),
    var(--bg);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: #8fd8ff;
}

h1,
h2,
h3,
h4 {
  font-family: var(--display);
  line-height: 1.2;
  font-weight: 700;
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(1.7rem, 3.6vw, 2.55rem);
}

h2 {
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  margin-top: 0;
}

h3 {
  font-size: 1.15rem;
}

p {
  margin: 0 0 1rem;
  color: #d5deec;
}

ul,
ol {
  padding-left: 1.2rem;
  color: #d5deec;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--orange);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 10000;
}

.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 8, 16, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 40;
}

.overlay.is-on {
  opacity: 1;
  pointer-events: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 1.25rem;
  background: rgba(10, 18, 32, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-left,
.header-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.menu-toggle {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font-size: 1.15rem;
  display: grid;
  place-items: center;
}

.menu-toggle:hover {
  border-color: rgba(255, 100, 42, 0.45);
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand img {
  height: 42px;
  width: auto;
}

.header-nav {
  display: none;
  align-items: center;
  gap: 0.35rem;
}

.header-nav a {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius-pill);
}

.header-nav a:hover,
.header-nav a.is-active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  text-decoration: none;
}

/* Drawer */
.drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: min(320px, 88vw);
  height: 100%;
  background: linear-gradient(180deg, #121f35, #0c1524);
  border-right: 1px solid var(--line);
  transform: translateX(-105%);
  transition: transform 0.28s ease;
  z-index: 60;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.drawer.is-open {
  transform: translateX(0);
}

.drawer-brand img {
  height: 40px;
  width: auto;
}

.drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.drawer-nav a {
  color: var(--text);
  font-weight: 600;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: transparent;
}

.drawer-nav a:hover,
.drawer-nav a.is-active {
  background: rgba(255, 100, 42, 0.12);
  color: #fff;
  text-decoration: none;
}

.drawer-cta {
  margin-top: auto;
  display: grid;
  gap: 0.65rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 44px;
  padding: 0.7rem 1.2rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  border: 0;
  cursor: pointer;
  text-decoration: none !important;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(180deg, var(--orange-hot), var(--orange));
  color: #fff !important;
  box-shadow: 0 10px 24px rgba(255, 100, 42, 0.28);
}

.btn-primary:hover {
  background: linear-gradient(180deg, #ff8a5c, var(--orange-hot));
}

.btn-secondary {
  background: var(--steel);
  color: #fff !important;
}

.btn-secondary:hover {
  background: var(--steel-hover);
}

.btn-ghost {
  background: transparent;
  color: var(--text) !important;
  border: 1px solid var(--line);
}

.btn-ghost:hover {
  border-color: rgba(255, 100, 42, 0.5);
}

.btn-sm {
  min-height: 38px;
  padding: 0.45rem 0.95rem;
  font-size: 0.85rem;
}

/* Layout */
.page {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.5rem 0 3.5rem;
}

.hero {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
}

.hero-slider {
  position: relative;
}

.hero-slide {
  display: none;
  position: relative;
  min-height: 280px;
}

.hero-slide.is-active {
  display: block;
  animation: fadeIn 0.45s ease;
}

@keyframes fadeIn {
  from { opacity: 0.35; }
  to { opacity: 1; }
}

.hero-slide img {
  width: 100%;
  height: clamp(240px, 36vw, 360px);
  object-fit: cover;
}

.hero-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.4rem 1.5rem 1.6rem;
  background: linear-gradient(180deg, transparent, rgba(6, 12, 22, 0.92));
}

.hero-caption h1,
.hero-caption .hero-title {
  margin: 0 0 0.4rem;
  font-size: clamp(1.35rem, 3vw, 2rem);
}

.hero-caption p {
  margin: 0 0 0.9rem;
  max-width: 42rem;
  color: #e4ebf7;
}

.hero-dots {
  display: flex;
  gap: 0.4rem;
  justify-content: center;
  padding: 0.85rem 0 1rem;
  background: var(--surface);
}

.hero-dots button {
  width: 28px;
  height: 4px;
  border: 0;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
}

.hero-dots button.is-active {
  background: var(--orange);
}

/* Inner-page hero (single banner) */
.page-hero {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
  min-height: 240px;
}

.page-hero > img {
  width: 100%;
  height: clamp(220px, 34vw, 360px);
  object-fit: cover;
  object-position: center;
}

.page-hero-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.4rem 1.5rem 1.6rem;
  background: linear-gradient(180deg, transparent, rgba(6, 12, 22, 0.92));
}

.page-hero-caption h1 {
  margin: 0 0 0.45rem;
  font-size: clamp(1.35rem, 3vw, 2rem);
  color: #fff;
}

.page-hero-caption p {
  margin: 0 0 0.9rem;
  max-width: 40rem;
  color: #e4ebf7;
}

.page-hero-caption .section-kicker {
  margin-bottom: 0.35rem;
}

@media (min-width: 900px) {
  .page-hero-caption {
    inset: 0 auto 0 0;
    width: min(540px, 55%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: linear-gradient(90deg, rgba(6, 12, 22, 0.9), transparent);
  }
}

.quick-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.quick-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 52px;
  padding: 0.7rem 1rem;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text) !important;
  font-weight: 700;
  text-decoration: none !important;
}

.quick-pill:hover {
  border-color: rgba(255, 100, 42, 0.45);
  background: var(--surface-2);
}

.quick-pill span {
  font-size: 1.15rem;
}

.section {
  margin: 2rem 0;
  padding: 1.5rem;
  background: rgba(21, 35, 56, 0.72);
  border: 1px solid var(--line);
  border-radius: 20px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.section-kicker {
  display: inline-block;
  color: var(--orange);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.lead {
  font-size: 1.05rem;
  color: #dce5f3;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: 1rem 0 0.25rem;
}

/* Promo cards */
.promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.promo-card {
  background: linear-gradient(160deg, #1a2c44, #121f34);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.promo-card:hover {
  border-color: rgba(255, 100, 42, 0.4);
  transform: translateY(-2px);
}

.promo-card .tag {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #10192d;
  background: var(--orange);
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
}

.promo-card h3 {
  margin: 0;
}

.promo-card p {
  margin: 0;
  flex: 1;
  font-size: 0.95rem;
}

.promo-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.6rem;
  border-radius: var(--radius-pill);
  background: rgba(94, 200, 255, 0.12);
  color: #bfe8ff;
  font-size: 0.78rem;
  font-weight: 700;
}

/* Games */
.games-rail {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.85rem;
}

.game-card {
  position: relative;
  display: block;
  border-radius: 16px;
  overflow: hidden;
  background: #0d1728;
  border: 1px solid transparent;
  text-decoration: none !important;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.game-card:hover {
  transform: translateY(-3px) scale(1.02);
  border-color: rgba(255, 100, 42, 0.55);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.game-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.game-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../images/play-overlay.svg") center / 42px no-repeat;
  opacity: 0;
  transition: opacity 0.18s ease;
  background-color: rgba(6, 10, 18, 0.35);
}

.game-card:hover::after {
  opacity: 1;
}

.game-card .game-name {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.6rem 0.55rem 0.55rem;
  background: linear-gradient(180deg, transparent, rgba(6, 10, 18, 0.92));
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.25;
}

/* Tables */
.table-wrap {
  overflow: visible;
  border-radius: 14px;
  border: 1px solid var(--line);
  max-width: 100%;
}

table.data {
  width: 100%;
  border-collapse: collapse;
  background: #0f1a2c;
  table-layout: fixed;
}

table.data th,
table.data td {
  text-align: left;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  word-break: break-word;
  overflow-wrap: anywhere;
}

table.data th {
  background: #182744;
  color: #fff;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

table.data tr:last-child td {
  border-bottom: 0;
}

table.data td {
  color: #d5deec;
  font-size: 0.95rem;
}

/* Mobile: card rows, no horizontal scroll */
@media (max-width: 720px) {
  .table-wrap {
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  table.data,
  table.data thead,
  table.data tbody,
  table.data tr,
  table.data th,
  table.data td {
    display: block;
    width: 100%;
  }

  table.data {
    table-layout: auto;
    background: transparent;
  }

  table.data thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  table.data tbody {
    display: grid;
    gap: 0.75rem;
  }

  table.data tr {
    background: #0f1a2c;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 0.35rem 0;
    overflow: hidden;
  }

  table.data td {
    display: grid;
    grid-template-columns: minmax(96px, 38%) 1fr;
    gap: 0.65rem;
    align-items: start;
    padding: 0.7rem 0.9rem;
    border-bottom: 1px solid var(--line);
    font-size: 0.92rem;
  }

  table.data td:last-child {
    border-bottom: 0;
  }

  table.data td::before {
    content: attr(data-label);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #9db0cb;
    line-height: 1.35;
    padding-top: 0.1rem;
  }

  table.data td:only-child,
  table.data td:not([data-label])::before {
    display: none;
  }

  table.data td:only-child,
  table.data td:not([data-label]) {
    grid-template-columns: 1fr;
  }
}

/* Steps */
.steps {
  display: grid;
  gap: 0.85rem;
  counter-reset: step;
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  align-items: start;
  padding: 1rem;
  border-radius: 14px;
  background: #101c30;
  border: 1px solid var(--line);
}

.step::before {
  counter-increment: step;
  content: counter(step);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--orange);
  color: #fff;
  font-weight: 800;
  font-family: var(--display);
}

.step h3 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
}

.step p {
  margin: 0;
  font-size: 0.95rem;
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
  margin: 1rem 0;
}

.stat {
  padding: 1rem;
  border-radius: 14px;
  background: linear-gradient(160deg, rgba(255, 100, 42, 0.12), rgba(21, 35, 56, 0.9));
  border: 1px solid var(--line);
}

.stat strong {
  display: block;
  font-family: var(--display);
  font-size: 1.25rem;
  color: #fff;
}

.stat span {
  color: var(--muted);
  font-size: 0.85rem;
}

/* FAQ */
.faq details {
  background: #101c30;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.2rem 1rem;
  margin-bottom: 0.65rem;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  padding: 0.95rem 0;
  list-style: none;
  position: relative;
  padding-right: 1.5rem;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: var(--orange);
  font-size: 1.25rem;
  font-weight: 700;
}

.faq details[open] summary::after {
  content: "–";
}

.faq details[open] {
  border-color: rgba(255, 100, 42, 0.35);
}

.faq details p {
  margin-top: 0;
  padding-bottom: 0.85rem;
}

/* TOC */
.toc {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 1rem 0;
}

.toc a {
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.toc a:hover {
  color: #fff;
  border-color: rgba(255, 100, 42, 0.4);
  text-decoration: none;
}

/* Mission / promo banners */
.mission-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.85rem;
}

.mission-card {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0f1a2c;
}

.mission-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
}

.mission-card .body {
  padding: 0.9rem 1rem 1.1rem;
}

.mission-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
}

.payment-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pay-badge {
  min-width: 84px;
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  background: #101c30;
  border: 1px solid var(--line);
  text-align: center;
  font-weight: 700;
  font-size: 0.82rem;
}

/* Footer */
.site-footer {
  margin-top: 2rem;
  padding: 2.5rem 0 2rem;
  border-top: 1px solid var(--line);
  background: #070d18;
}

.footer-inner {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.footer-grid h3 {
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
  color: #fff;
}

.footer-grid a {
  display: block;
  color: var(--muted);
  margin-bottom: 0.45rem;
  font-weight: 600;
}

.footer-grid a:hover {
  color: #fff;
}

.footer-note {
  font-size: 0.82rem;
  color: #8ea0bb;
  line-height: 1.55;
}

.age-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid var(--orange);
  color: var(--orange);
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.prose h2 {
  margin-top: 1.75rem;
}

.prose h3 {
  margin-top: 1.25rem;
}

.notice {
  padding: 0.9rem 1rem;
  border-radius: 12px;
  background: rgba(255, 176, 32, 0.1);
  border: 1px solid rgba(255, 176, 32, 0.3);
  color: #ffe2a8;
  font-size: 0.92rem;
}

@media (min-width: 900px) {
  .header-nav {
    display: flex;
  }

  .menu-toggle {
    display: none;
  }

  .hero-caption {
    inset: 0 auto 0 0;
    width: min(520px, 52%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: linear-gradient(90deg, rgba(6, 12, 22, 0.88), transparent);
  }
}

@media (max-width: 899px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .quick-row {
    grid-template-columns: 1fr;
  }

  .header-right .btn-secondary {
    display: none;
  }

  /* Hero: caption below image so text isn't clipped by radius/overflow */
  .hero-slide {
    min-height: 0;
  }

  .hero-slide img {
    height: clamp(160px, 46vw, 220px);
    object-position: 70% center;
  }

  .hero-caption,
  .page-hero-caption {
    position: relative;
    inset: auto;
    width: auto;
    padding: 1.15rem 1.2rem 1.35rem;
    background: var(--surface);
    display: block;
  }

  .hero-caption h1,
  .hero-caption .hero-title,
  .page-hero-caption h1 {
    font-size: clamp(1.25rem, 5.5vw, 1.55rem);
  }

  .hero-caption p,
  .page-hero-caption p {
    max-width: none;
    margin-bottom: 0.75rem;
  }

  .page-hero {
    min-height: 0;
  }

  .page-hero > img {
    height: clamp(150px, 42vw, 210px);
    object-position: 70% center;
  }
}

/* Back to top */
.scroll-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 45;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 100, 42, 0.45);
  border-radius: 14px;
  background: rgba(21, 35, 56, 0.92);
  color: #fff;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease, background 0.15s ease;
}

.scroll-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover {
  background: var(--orange);
  border-color: var(--orange);
}

@media (max-width: 560px) {
  .site-header {
    padding: 0 0.85rem;
  }

  .page {
    width: min(var(--max), calc(100% - 1.2rem));
  }

  .section {
    padding: 1.1rem;
  }

  .games-rail {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.55rem;
  }

  .scroll-top {
    right: 0.75rem;
    bottom: 0.75rem;
  }
}
