:root {
  --ink: #111827;
  --muted: #5b6475;
  --paper: #fffaf3;
  --panel: #ffffff;
  --line: rgba(17, 24, 39, .12);
  --red: #e23d4f;
  --blue: #1664d9;
  --green: #12865f;
  --gold: #f3b634;
  --violet: #6b42d8;
  --shadow: 0 20px 55px rgba(20, 28, 46, .16);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, textarea { font: inherit; }

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 20;
  background: var(--ink);
  color: #fff;
  padding: 10px 14px;
}
.skip-link:focus { top: 12px; }

.container {
  width: min(1140px, calc(100% - 32px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 250, 243, .92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}
.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: 0;
}
.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--red), var(--blue) 55%, var(--gold));
  box-shadow: 0 10px 25px rgba(226, 61, 79, .28);
}
.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav a {
  padding: 10px 12px;
  border-radius: 8px;
  color: #30394a;
  font-weight: 700;
  font-size: 14px;
}
.nav a:hover, .nav a[aria-current="page"] {
  background: #fff;
  color: var(--blue);
}
.header-badge {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 800;
  color: var(--red);
  background: #fff;
}
.menu-toggle {
  display: none;
  margin-left: auto;
  border: 1px solid var(--line);
  background: #fff;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.menu-toggle span {
  width: 20px;
  height: 2px;
  background: var(--ink);
}

.hero {
  min-height: calc(100vh - 76px);
  display: grid;
  align-items: center;
  padding: 58px 0 46px;
  background:
    linear-gradient(105deg, rgba(255,250,243,.94) 0%, rgba(255,250,243,.84) 45%, rgba(255,250,243,.28) 72%),
    url("../img/dragon-fates-favor.jpg") center right / cover no-repeat;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, .62fr);
  gap: 34px;
  align-items: end;
}
.eyebrow {
  margin: 0 0 10px;
  color: var(--blue);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0;
}
h1, h2, h3 { line-height: 1.08; margin: 0; letter-spacing: 0; }
h1 {
  font-size: clamp(42px, 7vw, 82px);
  max-width: 790px;
}
h2 { font-size: clamp(31px, 4vw, 54px); }
h3 { font-size: 24px; }
.lead {
  max-width: 700px;
  font-size: 19px;
  color: #30394a;
  margin: 22px 0 0;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 900;
  cursor: pointer;
}
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 12px 30px rgba(226, 61, 79, .28); }
.btn-secondary { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-dark { background: var(--ink); color: #fff; }

.hero-card {
  background: rgba(255, 255, 255, .92);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 24px;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 20px;
}
.stat {
  background: #f5f7fb;
  border-radius: 8px;
  padding: 14px;
}
.stat strong {
  display: block;
  font-size: 28px;
  color: var(--red);
  line-height: 1;
}
.stat span { font-size: 13px; color: var(--muted); font-weight: 700; }

.section { padding: 82px 0; }
.section-tight { padding: 48px 0; }
.section-alt { background: #f2f7ff; }
.section-red { background: #fff1f3; }
.section-head {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(250px, .5fr);
  gap: 28px;
  align-items: end;
  margin-bottom: 34px;
}
.section-head p { margin: 0; color: var(--muted); }

.notice {
  background: var(--ink);
  color: #fff;
  padding: 16px 0;
}
.notice strong { color: var(--gold); }

.compliance-ribbon {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  max-width: 760px;
}
.compliance-ribbon span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 12px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--line);
  color: #263244;
  font-size: 13px;
  font-weight: 900;
  text-align: center;
}

.feature-grid, .games-grid, .policy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.feature, .game-card, .policy-card, .contact-card, .text-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(17, 24, 39, .07);
}
.feature, .policy-card, .text-panel { padding: 24px; }
.feature .icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #e9f1ff;
  color: var(--blue);
  font-weight: 900;
  margin-bottom: 16px;
}
.feature p, .policy-card p, .text-panel p { color: var(--muted); }

.games-grid { grid-template-columns: repeat(4, 1fr); }
.game-card { overflow: hidden; }
.game-art {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.game-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.game-card:hover .game-art img { transform: scale(1.05); }
.game-age {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(17, 24, 39, .88);
  color: #fff;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 900;
}
.game-body { padding: 16px; }
.game-body p { color: var(--muted); font-size: 14px; min-height: 68px; }
.game-body .btn { width: 100%; }
.game-disclosure {
  margin: 12px 0;
  padding: 10px;
  border-radius: 8px;
  background: #fff8df;
  color: #40351b;
  font-size: 12px;
  font-weight: 800;
}

.disclaimer {
  border-left: 6px solid var(--red);
  background: #fff;
  padding: 26px;
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.disclaimer h2 { color: var(--red); font-size: 34px; }
.disclaimer p { color: #30394a; }

.split {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 28px;
  align-items: start;
}
.contact-card { padding: 26px; }
.contact-list {
  display: grid;
  gap: 14px;
  padding: 0;
  margin: 20px 0 0;
  list-style: none;
}
.contact-list span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}
.form {
  display: grid;
  gap: 14px;
}
.field label {
  display: block;
  font-weight: 800;
  margin-bottom: 6px;
}
.field input, .field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 48px;
  padding: 12px 14px;
  background: #fff;
  color: var(--ink);
}
.field textarea { min-height: 150px; resize: vertical; }
.form-note { color: var(--muted); font-size: 14px; margin: 0; }
.form-status { font-weight: 800; color: var(--green); min-height: 24px; }

.site-footer {
  padding: 42px 0;
  background: #0f172a;
  color: #dbe4f0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-links a { color: #fff; font-weight: 800; }
.footer-small { color: #aeb9ca; font-size: 13px; margin-top: 18px; }

.age-overlay, .modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(6, 10, 22, .86);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
html.age-pending .age-overlay { display: flex; }
html.age-denied body > *:not(.age-denied-screen) { display: none !important; }
.age-box, .modal-box {
  width: min(540px, 100%);
  background: #fff;
  border-radius: 8px;
  padding: 28px;
  text-align: center;
  box-shadow: var(--shadow);
}
.age-box h2 { font-size: 32px; margin-bottom: 12px; }
.age-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 22px;
}
.age-denied-screen {
  display: none;
  min-height: 100vh;
  background: #0f172a;
  color: #fff;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
}
html.age-denied .age-denied-screen { display: flex; }

.modal-overlay.open { display: flex; }
.game-modal {
  width: min(1120px, 100%);
  height: min(760px, 92vh);
  background: #0f172a;
  border-radius: 8px;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
}
.modal-top {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
  background: #111827;
  color: #fff;
  padding: 12px 14px;
}
.modal-disclosure {
  margin-left: auto;
  color: #facc15;
  font-size: 13px;
  font-weight: 900;
}
.modal-top strong { line-height: 1.2; }
.modal-close {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 8px;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font-size: 24px;
}
.game-frame {
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 900;
  display: none;
  padding: 14px;
}
.cookie-banner.show { display: block; }
.cookie-inner {
  width: min(980px, 100%);
  margin: auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  box-shadow: var(--shadow);
}
.cookie-inner p { margin: 0; color: var(--muted); font-size: 14px; }

.page-hero {
  padding: 70px 0;
  background: linear-gradient(135deg, #fff6e6, #e9f1ff);
}
.page-hero h1 { font-size: clamp(38px, 6vw, 68px); }
.rich-text {
  max-width: 860px;
}
.rich-text h2 { font-size: 32px; margin-top: 34px; }
.rich-text p, .rich-text li { color: var(--muted); }
.rich-text a { color: var(--blue); font-weight: 800; }

@media (max-width: 920px) {
  .menu-toggle { display: inline-flex; }
  .header-badge { display: none; }
  .nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 78px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 8px;
    box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .hero { min-height: auto; background-position: center; }
  .hero-grid, .section-head, .split, .footer-grid { grid-template-columns: 1fr; }
  .feature-grid, .policy-grid { grid-template-columns: 1fr 1fr; }
  .games-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  .container { width: min(100% - 24px, 1140px); }
  .header-inner { min-height: 66px; }
  .hero { padding: 42px 0; }
  .lead { font-size: 17px; }
  .section { padding: 56px 0; }
  .feature-grid, .games-grid, .policy-grid, .stat-grid { grid-template-columns: 1fr; }
  .compliance-ribbon { grid-template-columns: 1fr; }
  .actions, .age-actions { flex-direction: column; }
  .btn { width: 100%; }
  .cookie-inner { grid-template-columns: 1fr; }
}
