/* =========================================================
   Duel — informational site design system
   ========================================================= */

:root {
  --midnight-blue: #0E1030;
  --royal-blue: #4D6BFF;
  --deep-blue: #3A54D9;
  --soft-blue: #7B93FF;
  --success-green: #30D158;
  --warning-gold: #FFB020;
  --danger-red: #FF5A6A;

  --btn-primary: #4D6BFF;
  --btn-primary-hover: #3A54D9;
  --btn-secondary: #20245A;
  --surface-interactive: #171A46;

  --white: #FFFFFF;
  --light-gray: #C4CAE8;
  --muted-gray: #8E96BE;

  --bg-main: #0E1030;
  --surface-dark: #171A46;
  --surface-elevated: #20245A;
  --border-blue: #2A2F68;
  --border-light: #363C7D;

  --link-blue: #7B93FF;

  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --shadow-soft: 0 10px 30px rgba(0,0,0,0.35);
  --glow: 0 0 24px rgba(77,107,255,0.35);
  --container-w: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg-main);
  color: var(--light-gray);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3 {
  color: var(--white);
  line-height: 1.25;
  margin: 0 0 16px;
  font-weight: 700;
}
h1 { font-size: clamp(28px, 5vw, 42px); }
h2 { font-size: clamp(22px, 4vw, 30px); margin-top: 8px; }
h3 { font-size: clamp(18px, 3vw, 22px); }
p { margin: 0 0 16px; color: var(--light-gray); }
a { color: var(--link-blue); text-decoration: none; }
a:hover { text-decoration: underline; }

section { padding: 48px 0; border-bottom: 1px solid var(--border-blue); }
section:last-of-type { border-bottom: none; }

.eyebrow {
  display: inline-block;
  color: var(--soft-blue);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: filter 0.15s ease, transform 0.15s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn-primary {
  background: var(--btn-primary);
  color: var(--white);
  box-shadow: var(--glow);
}
.btn-primary:hover { filter: brightness(1.1); }
.btn-secondary {
  background: var(--btn-secondary);
  color: var(--white);
  border: 1px solid var(--border-light);
}
.btn-secondary:hover { filter: brightness(1.15); }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 16px 0;
  transition: background 0.25s ease, backdrop-filter 0.25s ease, box-shadow 0.25s ease;
}
.site-header.scrolled {
  background: rgba(14, 16, 48, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo img { height: 32px; width: auto; }
.logo-text { color: var(--white); font-weight: 800; font-size: 20px; }

.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a {
  color: var(--light-gray);
  font-weight: 600;
  font-size: 15px;
}
.main-nav a:hover { color: var(--white); text-decoration: none; }
.header-actions { display: flex; align-items: center; gap: 14px; }

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.burger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs {
  padding: 14px 0 0;
  font-size: 13px;
  color: var(--muted-gray);
}
.breadcrumbs a { color: var(--muted-gray); }
.breadcrumbs a:hover { color: var(--soft-blue); }
.breadcrumbs .sep { margin: 0 6px; }

/* ---------- Hero ---------- */
.hero { padding-top: 40px; padding-bottom: 40px; }

.hero--home {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  padding-top: 64px;
  padding-bottom: 72px;
  background-color: var(--bg-main);
  background-image: url('/assets/images/hero-fantasy-bg.svg');
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: cover;
  overflow: hidden;
}
.hero--home::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14,16,48,0) 0%, rgba(14,16,48,0.1) 55%, rgba(14,16,48,0.96) 100%);
  pointer-events: none;
}
.hero--home > .container { position: relative; z-index: 1; width: 100%; }
@media (max-width: 760px) {
  .hero--home { min-height: 460px; padding-top: 48px; padding-bottom: 48px; }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}
.hero-copy p.lead { font-size: 18px; color: var(--light-gray); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 20px; }
.hero-visual {
  background: linear-gradient(160deg, var(--surface-elevated), var(--surface-dark));
  border: 1px solid var(--border-blue);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-soft);
}
.hero--decor {
  position: relative;
  overflow: hidden;
  min-height: 460px;
  display: flex;
  align-items: center;
  background-color: var(--bg-main);
  background-image: url('/assets/images/games-hero-decor.svg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}
.hero--decor::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(14,16,48,0.55) 0%, rgba(14,16,48,0.25) 50%, rgba(14,16,48,0.05) 100%);
  pointer-events: none;
}
.hero--decor > .container {
  position: relative;
  z-index: 1;
  width: 100%;
}
@media (max-width: 760px) {
  .hero--decor { min-height: 360px; }
}

.hero-center {
  text-align: center;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.hero-center .hero-actions {
  justify-content: center;
}

.stat-row { display: flex; gap: 18px; margin-top: 22px; flex-wrap: wrap; }
.stat-badge {
  background: var(--surface-dark);
  border: 1px solid var(--border-blue);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  flex: 1 1 140px;
}
.stat-badge .num { color: var(--white); font-weight: 800; font-size: 20px; display: block; }
.stat-badge .label { color: var(--muted-gray); font-size: 13px; }

/* ---------- Cards & grids ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface-dark);
  border: 1px solid var(--border-blue);
  border-radius: var(--radius-lg);
  padding: 26px;
}
.card h3 { margin-bottom: 10px; }
.card:hover { border-color: var(--border-light); }

.feature-card {
  background: var(--surface-elevated);
  border: 1px solid var(--border-blue);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.icon-badge {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(77,107,255,0.15);
  color: var(--soft-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 14px;
}

.nav-cards { }
.nav-card {
  display: block;
  background: var(--surface-dark);
  border: 1px solid var(--border-blue);
  border-radius: var(--radius-lg);
  padding: 22px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.nav-card:hover { border-color: var(--royal-blue); text-decoration: none; transform: translateY(-2px); }
.nav-card h3 { color: var(--white); margin-bottom: 6px; }
.nav-card span.arrow { color: var(--soft-blue); font-weight: 700; }

/* ---------- Two column ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
}

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius-md); border: 1px solid var(--border-blue); }
table { width: 100%; border-collapse: collapse; min-width: 480px; background: var(--surface-dark); }
th, td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--border-blue); font-size: 14.5px; }
th { background: var(--surface-elevated); color: var(--white); font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; }
td { color: var(--light-gray); }
tr:last-child td { border-bottom: none; }
.badge-success { color: var(--success-green); font-weight: 700; }
.badge-danger { color: var(--danger-red); font-weight: 700; }

/* stacked table on mobile */
@media (max-width: 640px) {
  table.stack-mobile, table.stack-mobile thead, table.stack-mobile tbody, table.stack-mobile tr, table.stack-mobile td { display: block; width: 100%; }
  table.stack-mobile thead { display: none; }
  table.stack-mobile tr { border-bottom: 1px solid var(--border-blue); padding: 12px 0; }
  table.stack-mobile td { border: none; padding: 6px 16px; }
  table.stack-mobile td::before {
    content: attr(data-label);
    display: block;
    color: var(--muted-gray);
    font-size: 12px;
    text-transform: uppercase;
    margin-bottom: 2px;
  }
}

/* ---------- Steps / timeline ---------- */
.steps { display: grid; gap: 18px; counter-reset: step; }
.step {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  background: var(--surface-dark);
  border: 1px solid var(--border-blue);
  border-radius: var(--radius-md);
  padding: 18px 20px;
}
.step-num {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--royal-blue);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
}
.step h4 { color: var(--white); margin: 0 0 4px; font-size: 16px; }
.step p { margin: 0; font-size: 14.5px; }

/* ---------- Callouts ---------- */
.callout {
  border-radius: var(--radius-md);
  padding: 18px 20px;
  border: 1px solid var(--border-blue);
  background: var(--surface-elevated);
}
.callout-warning { border-color: var(--warning-gold); background: rgba(255,176,32,0.08); }
.callout-danger { border-color: var(--danger-red); background: rgba(255,90,106,0.08); }
.callout-success { border-color: var(--success-green); background: rgba(48,209,88,0.08); }
.callout h4 { color: var(--white); margin: 0 0 8px; font-size: 15px; }
.callout p { margin: 0; font-size: 14.5px; }

/* ---------- Checklist ---------- */
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checklist li {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 14.5px; color: var(--light-gray);
}
.checklist li::before { content: "✓"; color: var(--success-green); font-weight: 800; flex-shrink: 0; }
.checklist.warn li::before { content: "!"; color: var(--warning-gold); }

/* ---------- Promo widget ---------- */
.promo-widget {
  background: var(--surface-dark);
  border: 2px solid var(--royal-blue);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--glow);
}
.promo-widget .verified {
  display: flex; align-items: center; gap: 8px;
  color: var(--success-green); font-size: 13px; font-weight: 700; margin-bottom: 18px;
}
.promo-code-row {
  display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 16px;
}
.promo-code-box {
  flex: 1 1 160px;
  font-family: "SFMono-Regular", Consolas, Menlo, monospace;
  font-size: 22px;
  font-weight: 800;
  color: var(--white);
  background: var(--surface-elevated);
  border: 1px solid var(--border-blue);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  text-align: center;
  letter-spacing: 0.05em;
}
.copy-btn {
  flex: 1 1 160px;
  background: var(--btn-secondary);
  border: 1px solid var(--border-light);
  color: var(--white);
  font-weight: 700;
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  cursor: pointer;
  transition: filter 0.15s ease;
}
.copy-btn:hover { filter: brightness(1.2); }
.promo-widget .offer-desc { color: var(--light-gray); font-size: 14.5px; margin-bottom: 4px; }
.promo-widget .fine-print { color: var(--muted-gray); font-size: 13px; margin: 0; }

/* ---------- FAQ accordion ---------- */
.faq-list { display: grid; gap: 12px; }
.faq-item {
  background: var(--surface-dark);
  border: 1px solid var(--border-blue);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: var(--white);
  font-weight: 700;
  font-size: 15.5px;
  padding: 18px 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq-question .plus { color: var(--soft-blue); font-size: 20px; transition: transform 0.2s ease; flex-shrink: 0; }
.faq-item.open .plus { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
  padding: 0 20px;
}
.faq-item.open .faq-answer { padding: 0 20px 18px; }
.faq-answer p { margin: 0; font-size: 14.5px; color: var(--light-gray); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--surface-dark);
  border-top: 1px solid var(--border-blue);
  padding: 48px 0 24px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 32px;
  margin-bottom: 32px;
}
.footer-col h4 { color: var(--white); font-size: 14px; margin-bottom: 14px; text-transform: uppercase; letter-spacing: 0.04em; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col a { color: var(--muted-gray); font-size: 14px; }
.footer-col a:hover { color: var(--soft-blue); }
.footer-brand p { color: var(--muted-gray); font-size: 14px; }
.compliance-logos { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-top: 14px; }
.compliance-logo {
  background: var(--surface-elevated);
  border: 1px solid var(--border-blue);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  color: var(--muted-gray);
  font-size: 12px;
  font-weight: 700;
}
.footer-disclaimer {
  border-top: 1px solid var(--border-blue);
  padding-top: 22px;
  font-size: 12.5px;
  color: var(--muted-gray);
  line-height: 1.7;
}
.footer-disclaimer .age-badge {
  display: inline-block;
  background: var(--surface-elevated);
  border: 1px solid var(--danger-red);
  color: var(--danger-red);
  font-weight: 800;
  border-radius: 6px;
  padding: 2px 8px;
  margin-right: 8px;
  font-size: 12px;
}
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 18px; font-size: 12.5px; color: var(--muted-gray); }

.risk-banner {
  background: rgba(255,90,106,0.1);
  border-bottom: 1px solid var(--danger-red);
  color: var(--light-gray);
  font-size: 13px;
  text-align: center;
  padding: 8px 16px;
}
.risk-banner strong { color: var(--danger-red); }

/* ---------- Scroll to top ---------- */
.scroll-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--royal-blue);
  color: var(--white);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  box-shadow: var(--glow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease, filter 0.15s ease;
  z-index: 90;
}
.scroll-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-top:hover { filter: brightness(1.15); }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-24 { margin-top: 24px; }
.section-head { max-width: 720px; margin: 0 0 32px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.muted { color: var(--muted-gray); }
.pill {
  display: inline-block;
  background: var(--surface-elevated);
  border: 1px solid var(--border-blue);
  color: var(--soft-blue);
  font-size: 12.5px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
}

/* ---------- Legal page styling ---------- */
.legal-page section { padding: 36px 0; }
.legal-page h2 { font-size: 22px; }
.legal-page .card { background: var(--surface-dark); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-grid { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .main-nav { display: none; }
  .burger { display: flex; }
  .main-nav.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(14,16,48,0.98);
    backdrop-filter: blur(10px);
    padding: 20px;
    gap: 18px;
    border-bottom: 1px solid var(--border-blue);
  }
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero-actions .btn { width: 100%; }
  section { padding: 32px 0; }
  .promo-code-row { flex-direction: column; align-items: center; }
  .promo-code-box,
  .copy-btn {
    flex: none;
    width: 100%;
    max-width: 200px;
    margin: 0 auto;
    padding: 10px 14px;
  }
  .promo-code-box { font-size: 18px; }
}
