/* Aurora direction. T #0a192f, B hue 258 (navy blue), N hue 293 (violet), A gold hue 85 */
:root {
  --T: #0a192f;
  --ink: oklch(0.20 0.04 258);
  --paper: oklch(0.97 0.02 258);
  --deepB: oklch(0.30 0.13 258);
  --deepB2: oklch(0.25 0.11 258);
  --deepN: oklch(0.30 0.13 293);
  --deepN-deepest: oklch(0.24 0.11 293);
  --fullB: oklch(0.50 0.19 258);
  --fullN: oklch(0.50 0.19 293);
  --stepB: oklch(0.37 0.15 266);
  --stepB-hover: oklch(0.42 0.16 266);
  --lightB: oklch(0.86 0.07 258);
  --lightN: oklch(0.86 0.07 293);
  --A: oklch(0.84 0.164 85);
  --A-hover: oklch(0.89 0.13 88);
  --stage: oklch(0.16 0.04 258);
  --gap: 16px;
  --gut: 16px;
  --r: 16px;
  --font-head: "Sora", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Manrope", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  background-color: var(--deepB2);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: transparent;
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.55;
  font-variant-numeric: lining-nums;
  overflow-x: hidden;
}
img { max-width: 100%; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 700; margin: 0; line-height: 1.2; }
p { margin: 0; }
a { color: inherit; }
.nm { font-weight: 400; font-style: normal; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Fixed background */
.backdrop { position: fixed; inset: 0; z-index: 0; isolation: isolate; pointer-events: none; }
.bd-img {
  position: fixed; inset: 0; pointer-events: none;
  background-image: url("/images/background.jpg");
  background-size: cover; background-position: center; background-repeat: no-repeat;
}
.bd-color {
  position: fixed; inset: 0; pointer-events: none;
  background: linear-gradient(135deg, var(--fullB), var(--fullN));
  mix-blend-mode: color;
}
.bd-tint { position: fixed; inset: 0; pointer-events: none; background: oklch(0.30 0.13 258 / 0.45); }

/* Frame */
.frame {
  position: relative; z-index: 1;
  max-width: 1440px; margin: 0 auto;
  padding: var(--gap) var(--gut);
  display: flex; flex-direction: column; gap: var(--gap);
}
.main { display: flex; flex-direction: column; gap: var(--gap); }
@media (min-width: 768px) { :root { --gut: 24px; } }
@media (min-width: 1024px) { :root { --gut: 32px; } }

section, footer, header { scroll-margin-top: 16px; }

/* Hero stage */
.stage {
  --stage-h: clamp(360px, min(100vh - 352px, 46vw), 548px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--stage-h);
  grid-template-rows: auto 1fr;
  grid-template-areas: "logo pic" "copy pic";
  min-height: var(--stage-h);
  background: var(--stage);
  border-radius: var(--r);
  overflow: hidden;
}
.stage-logo { grid-area: logo; padding: 32px 40px 0; }
.stage-logo img { display: block; height: 40px; width: auto; }
.stage-copy {
  grid-area: copy;
  padding: 20px 40px 32px;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  gap: clamp(14px, 2.2vh, 20px);
  min-width: 0;
}
.stage h1 {
  font-size: clamp(24px, min(2.4vw, 3.8vh), 34px);
  line-height: 1.15;
  max-width: 22em;
}
.offer { display: flex; flex-direction: column; gap: 4px; }
.offer-label { font-size: 17px; font-weight: 600; color: var(--lightB); }
.offer-value { margin: 0; }
.hero-figure { display: block; color: var(--A); font-family: var(--font-head); font-weight: 700; }
.hf-main { display: block; font-size: clamp(34px, min(3.8vw, 6.2vh), 58px); line-height: 1.05; }
.hf-sub { display: block; margin-top: 4px; font-size: clamp(17px, min(1.5vw, 2.4vh), 22px); line-height: 1.3; }
.offer-terms { margin-top: 8px; font-size: 16px; line-height: 1.45; }
.offer-terms .bonus-figure { font-size: 18px; font-weight: 700; color: var(--paper); }
.offer-note { font-size: 16px; line-height: 1.45; color: var(--lightB); max-width: 44em; }

.stage-pic { grid-area: pic; position: relative; min-height: 0; }
.stage-pic img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 94%, transparent 100%), linear-gradient(180deg, transparent 0, #000 5%, #000 97%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 94%, transparent 100%), linear-gradient(180deg, transparent 0, #000 5%, #000 97%, transparent 100%);
  mask-composite: intersect;
}
@media (min-width: 900px) and (max-height: 820px) {
  .stage-logo { padding: 24px 32px 0; }
  .stage-logo img { height: 36px; }
  .stage-copy { padding: 12px 32px 24px; gap: 12px; }
  .offer { gap: 2px; }
  .offer-terms { margin-top: 4px; }
  .btn-play { min-height: 48px; padding: 10px 24px; }
}

@media (max-width: 899px) {
  .stage {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    grid-template-areas: "logo" "pic" "copy";
    min-height: 0;
  }
  .stage-logo { padding: 20px 20px 16px; }
  .stage-logo img { height: 36px; }
  .stage-pic { aspect-ratio: 1 / 1; }
  .stage-pic img {
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 6%, #000 90%, transparent 100%), linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(180deg, transparent 0, #000 6%, #000 90%, transparent 100%), linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
    mask-composite: intersect;
  }
  .stage-copy { padding: 16px 20px 24px; gap: 16px; }
  .stage h1 { font-size: clamp(24px, 6.4vw, 32px); }
  .hf-main { font-size: clamp(34px, 9.6vw, 52px); }
  .hf-sub { font-size: clamp(17px, 4.4vw, 21px); }
}

/* Buttons */
.btn-play {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 52px; padding: 12px 28px;
  background: var(--A); color: var(--ink);
  font-family: var(--font-body); font-weight: 700; font-size: 17px; line-height: 1.2;
  text-decoration: none; border-radius: 12px;
  transition: background-color .15s ease;
}
.btn-play:hover { background: var(--A-hover); }
.btn-play:focus-visible { outline: 3px solid var(--lightN); outline-offset: 3px; }
.btn-play svg { flex: none; }

.btn-ghost {
  min-height: 44px; padding: 8px 16px;
  background: transparent; color: var(--paper);
  border: 2px solid var(--lightB); border-radius: 12px;
  font: 600 16px/1.2 var(--font-body); cursor: pointer;
}
.btn-ghost:hover { background: var(--stepB); }
.btn-ghost:focus-visible { outline: 3px solid var(--lightN); outline-offset: 2px; }

/* Games section */
.games { display: flex; flex-direction: column; gap: var(--gap); }
.strip {
  display: flex; align-items: center; gap: 16px;
  min-height: 60px; padding: 8px 24px;
  border-radius: var(--r);
  background: linear-gradient(90deg, var(--fullB), var(--fullN));
}
.strip h2 { font-size: 22px; line-height: 1.2; white-space: nowrap; flex: none; }
.strip-controls { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 16px; }
.rail-wrap { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 8px; }
.rail {
  position: relative;
  flex: 1 1 auto; min-width: 0;
  display: flex; gap: 8px;
  overflow-x: auto; overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.chip, .rail-btn {
  min-height: 44px;
  border: 0; border-radius: 12px;
  background: var(--stepB); color: var(--paper);
  font: 600 14px/1.2 var(--font-body);
  cursor: pointer;
  transition: background-color .15s ease;
}
.chip { flex: 1 0 128px; min-width: 128px; padding: 4px 12px; text-align: center; }
.chip:hover, .rail-btn:hover:not(:disabled) { background: var(--stepB-hover); }
.chip[aria-pressed="true"] { background: var(--paper); color: var(--ink); }
.chip:focus-visible, .rail-btn:focus-visible {
  outline: 3px solid var(--paper); outline-offset: -3px;
  box-shadow: inset 0 0 0 5px var(--ink);
}
.rail-btn { flex: none; width: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.rail-btn:disabled { opacity: .45; cursor: default; }

.cat-select-wrap { display: none; }
.cat-select-wrap select, .search input {
  height: 44px; width: 100%;
  border: 2px solid var(--lightB); border-radius: 12px;
  background: var(--stepB); color: var(--paper);
  font: 400 16px/1.2 var(--font-body);
}
.cat-select-wrap select { padding: 0 12px; }
.cat-select-wrap option { background: var(--deepB2); color: var(--paper); }
.search { position: relative; flex: none; width: 220px; }
.search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--lightB); pointer-events: none; }
.search input { padding: 0 12px 0 40px; }
.search input::placeholder { color: var(--lightB); opacity: 1; }
.cat-select-wrap select:focus-visible, .search input:focus-visible { outline: 3px solid var(--paper); outline-offset: 2px; }

@media (max-width: 1023px) { .search { width: 180px; } .strip h2 { font-size: 20px; } }
@media (max-width: 767px) {
  .strip { flex-wrap: wrap; padding: 12px 16px; gap: 8px; }
  .strip h2 { width: 100%; }
  .strip-controls { flex-wrap: wrap; gap: 8px; width: 100%; }
  .rail-wrap { display: none; }
  .cat-select-wrap { display: block; flex: 1 1 150px; }
  .search { flex: 1 1 170px; width: auto; }
}

.grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px;
}
@media (max-width: 1099px) { .grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 959px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 767px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; } }
@media (max-width: 599px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.grid li { display: flex; }
.tile {
  flex: 1; display: flex; flex-direction: column;
  background: var(--deepB); color: var(--paper);
  border-radius: var(--r); overflow: hidden;
  text-decoration: none;
  transition: background-color .15s ease;
}
.tile img {
  display: block; width: 100%; height: auto; aspect-ratio: 3 / 2;
  transition: transform .25s ease;
}
.tile:hover { background: oklch(0.34 0.14 262); }
.tile:hover img { transform: scale(1.04); }
.tile:focus-visible { outline: 3px solid var(--lightN); outline-offset: 2px; }
.cap { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; flex: 1; position: relative; background: inherit; }
.t-name { font-weight: 600; font-size: 16px; line-height: 1.25; min-height: 2.5em; }
.t-cat { font-size: 14px; line-height: 1.35; color: var(--lightB); }

.games-foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px;
  padding: 16px 24px; border-radius: var(--r);
  background: var(--deepB2);
}
.games-status { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.game-count { font-weight: 700; }
.games-note { color: var(--lightB); max-width: 70ch; }

/* Panels */
.panel {
  padding: 32px; border-radius: var(--r);
  background: linear-gradient(135deg, var(--deepB), var(--deepN));
  display: flex; flex-direction: column; gap: 24px;
}
.panel.alt { background: linear-gradient(315deg, var(--deepB), var(--deepN)); }
.panel h2 { font-size: clamp(26px, 2.4vw, 34px); }
.panel h3 { font-size: 19px; }
.cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.col { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; min-width: 0; }
.col p, .steps li { max-width: 68ch; }
@media (max-width: 899px) { .cols { grid-template-columns: minmax(0, 1fr); gap: 24px; } }
@media (max-width: 1023px) { .panel { padding: 24px 16px; } .games-foot { padding: 16px; } }

.figures {
  width: 100%;
  background: var(--deepB2); border-radius: 12px;
  padding: 20px 24px;
  display: flex; flex-direction: column; gap: 12px;
}
.figures-cap { color: var(--lightB); font-size: 16px; }
.figures dl { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.fig-row dt { color: var(--lightB); font-size: 16px; }
.fig-row dd { margin: 0; }
.bonus-figure { font-weight: 700; }
.figures .bonus-figure, .fig-line .bonus-figure { font-size: 21px; line-height: 1.35; color: var(--paper); display: block; }

.plain-list { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.plain-list li::marker { color: var(--lightB); }

.table-wrap { overflow-x: auto; border-radius: 12px; background: var(--deepB2); }
table { width: 100%; border-collapse: collapse; min-width: 520px; }
caption { text-align: left; padding: 16px 24px 8px; color: var(--lightB); font-size: 16px; }
th, td { text-align: left; vertical-align: top; padding: 14px 24px; font-size: 16px; line-height: 1.5; }
thead th { font-family: var(--font-head); font-weight: 700; background: oklch(0.21 0.09 258); }
tbody tr + tr th, tbody tr + tr td { border-top: 1px solid oklch(0.86 0.07 258 / 0.3); }
tbody th { font-weight: 600; width: 32%; color: var(--lightB); }
@media (max-width: 1023px) { th, td { padding: 12px 16px; } caption { padding: 16px 16px 8px; } }

.steps { margin: 0; padding-left: 24px; display: flex; flex-direction: column; gap: 16px; }
.steps li::marker { font-family: var(--font-head); font-weight: 700; color: var(--lightB); }
.step-title { font-weight: 700; }

.about-logo { height: 48px; width: auto; display: block; }

.text-link { color: var(--lightN); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 2px; }
.text-link:hover { color: var(--paper); }
.text-link:focus-visible { outline: 3px solid var(--lightN); outline-offset: 2px; border-radius: 2px; }

/* FAQ */
.faq .col { gap: 12px; align-items: stretch; }
details { background: var(--deepB2); border-radius: 12px; }
summary {
  list-style: none; cursor: pointer;
  min-height: 52px; padding: 14px 52px 14px 20px;
  display: block; position: relative;
  font-weight: 400; font-size: 17px; border-radius: 12px;
}
summary::-webkit-details-marker { display: none; }
summary svg { position: absolute; right: 20px; top: 16px; color: var(--lightB); transition: transform .2s ease; }
details[open] summary svg { transform: rotate(180deg); }
summary:hover { background: oklch(0.29 0.12 262); }
summary:focus-visible { outline: 3px solid var(--lightN); outline-offset: 2px; }
.answer { padding: 0 20px 18px; display: flex; flex-direction: column; gap: 8px; }

/* Footer */
.footer {
  background: var(--deepN-deepest);
  border-radius: var(--r);
  padding: 32px;
  display: grid; grid-template-columns: 1.2fr 0.8fr 1.4fr; gap: 32px;
}
.foot-brand { display: flex; flex-direction: column; gap: 16px; }
.foot-brand img { height: 44px; width: auto; display: block; align-self: flex-start; }
.foot-h { font-size: 18px; margin-bottom: 8px; }
.foot-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.foot-nav a, .foot-legal a {
  text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px;
  color: var(--lightN);
}
.foot-nav a { display: inline-flex; align-items: center; min-height: 44px; }
.foot-nav a:hover, .foot-legal a:hover { color: var(--paper); }
.foot-nav a:focus-visible, .foot-legal a:focus-visible { outline: 3px solid var(--lightN); outline-offset: 2px; }
.foot-legal { display: flex; flex-direction: column; gap: 10px; }
.foot-legal p, .foot-brand p { color: var(--paper); }
@media (max-width: 1023px) { .footer { grid-template-columns: 1fr 1fr; padding: 24px 16px; } .foot-legal { grid-column: 1 / -1; } }
@media (max-width: 599px) { .footer { grid-template-columns: minmax(0, 1fr); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .tile:hover img { transform: none; }
}
