/* Direction 4: Block. Palette built in OKLCH from theme #0a2240 (hue ~255). */
:root {
  --t: #0a2240;
  --stage: oklch(0.16 0.045 255);
  --b-deep: oklch(0.31 0.13 258);
  --b-deep2: oklch(0.27 0.11 258);
  --n-deep: oklch(0.30 0.14 290);
  --b-full: var(--t);
  --n-full: oklch(0.50 0.21 292);
  --b-light: oklch(0.86 0.08 255);
  --n-light: oklch(0.85 0.09 292);
  --a: oklch(0.84 0.16 85);
  --a-hi: oklch(0.90 0.13 88);
  --ink: oklch(0.20 0.04 260);
  --paper: oklch(0.97 0.015 255);
  --bg-color: oklch(0.52 0.18 262);
  --bg-tint: oklch(0.31 0.13 258 / 0.45);

  --f-head: "Unbounded", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Work Sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif;

  --frame: 1360px;
  --gut: 16px;
  --gap: 16px;
  --pad: 16px;
  --cols: 2;
  --tgap: 12px;
  --cap-h: 78px;
  --strip-h: 64px;
  --tile-w: calc((min(100vw - 2 * var(--gut), var(--frame)) - (var(--cols) - 1) * var(--tgap)) / var(--cols));
  --cover-h: calc((var(--tile-w) - 4px) * 2 / 3);
  --tile-h: calc(var(--cover-h) + 4px + var(--cap-h));
  --stage-h: clamp(320px, calc(100vh - 3 * var(--gap) - var(--strip-h) - var(--tile-h) + 10px), 510px);
}

@media (min-width: 560px) { :root { --cols: 3; } }
@media (min-width: 768px) { :root { --gut: 24px; --cols: 4; --tgap: 16px; --pad: 24px; } }
@media (min-width: 1024px) { :root { --gut: 32px; --gap: 24px; --cols: 5; --tgap: 24px; --pad: 24px; } }

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

html {
  background: transparent;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: transparent;
  color: var(--paper);
  font-family: var(--f-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(--f-head);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.15;
  margin: 0;
}
a { color: inherit; }
p a, li a, td a, .footer-legal a {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
:focus-visible { outline: 3px solid var(--b-light); outline-offset: 3px; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* Fixed background, brought into the palette */
.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  isolation: isolate;
}
.bg > span {
  position: fixed;
  inset: 0;
  pointer-events: none;
}
.bg-img {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: url("/images/background.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.bg-color { background: var(--bg-color); mix-blend-mode: color; }
.bg-tint { background: var(--bg-tint); }

/* Page column */
.page {
  position: relative;
  z-index: 1;
  width: min(100% - 2 * var(--gut), var(--frame));
  margin: 0 auto;
  padding: var(--gap) 0;
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}
section, footer { scroll-margin-top: 16px; }

/* Hero stage */
.stage {
  background: var(--stage);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "logo" "art" "copy";
}
.stage-logo { grid-area: logo; padding: var(--pad) var(--pad) 12px; }
.stage-logo img { display: block; height: 36px; width: auto; }
.stage-art { grid-area: art; }
.stage-art img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; }
.stage-copy {
  grid-area: copy;
  padding: 16px var(--pad) var(--pad);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}
.stage-copy h1 { font-size: clamp(22px, 5.4vw, 30px); max-width: 24ch; }
.offer { display: flex; flex-direction: column; gap: 6px; }
.offer-label { margin: 0; font-size: 16px; line-height: 1.4; }
.offer-value { margin: 0; }
.stage .offer-value .bonus-figure {
  font-family: var(--f-head);
  font-weight: 800;
  font-size: clamp(30px, 6.4vw, 46px);
  line-height: 1.05;
  color: var(--a);
  display: block;
}
.offer-terms { margin: 0; font-size: 16px; line-height: 1.45; max-width: 62ch; }
.offer-wager { margin: 0; font-size: 16px; line-height: 1.35; }
.offer-wager .bonus-figure { font-size: 19px; font-weight: 700; color: var(--paper); }
@media (min-width: 1200px) { .offer-wager .bonus-figure { font-size: 22px; } }
.offer-note { margin: 0; font-size: 15px; line-height: 1.4; color: var(--b-light); }

@media (min-width: 1200px) {
  .stage {
    grid-template-columns: minmax(0, 1fr) var(--stage-h);
    grid-template-rows: auto 1fr;
    grid-template-areas: "logo art" "copy art";
    min-height: var(--stage-h);
  }
  .stage-logo { padding: 24px 24px 0 32px; }
  .stage-logo img { height: 44px; }
  .stage-copy { padding: 16px 24px 24px 32px; align-self: center; }
  .stage-copy h1 { font-size: clamp(22px, 2.1vw, 30px); max-width: 26ch; }
  .stage .offer-value .bonus-figure { font-size: clamp(34px, 3.4vw, 50px); }
  .stage-art { width: var(--stage-h); height: var(--stage-h); align-self: center; }
  .stage-art img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 24%);
    mask-image: linear-gradient(to right, transparent 0, #000 24%);
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 20%, #000 96%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0, #000 20%, #000 96%, transparent 100%);
  }
}
@media (min-width: 1200px) and (max-height: 880px) {
  .stage-logo { padding-top: 16px; }
  .stage-logo img { height: 36px; }
  .stage-copy { padding-top: 8px; padding-bottom: 16px; gap: 8px; }
  .stage-copy h1 { font-size: 22px; }
  .offer { gap: 4px; }
  .stage .offer-value .bonus-figure { font-size: 38px; }
  .offer-wager .bonus-figure { font-size: 19px; }
  .stage .btn-play { min-height: 44px; padding: 8px 20px; }
}
@media (min-width: 1200px) and (max-height: 760px) {
  .stage-logo { padding-top: 16px; }
  .stage-logo img { height: 30px; }
  .stage-copy { padding-top: 8px; padding-bottom: 16px; gap: 8px; }
  .stage-copy h1 { font-size: 20px; }
  .stage .offer-value .bonus-figure { font-size: 34px; }
  .offer-terms, .offer-wager { font-size: 15px; }
  .offer-note { font-size: 14px; }
}

.offer-terms .bonus-figure, .terms .bonus-figure {
  font-size: 1.12em;
  font-weight: 700;
  line-height: 1;
}
.bonus-figure { font-weight: 700; }

/* Casino-entry buttons */
.btn-play {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 24px;
  background: var(--a);
  color: var(--ink);
  border: 2px solid var(--a);
  border-radius: 0;
  font-family: var(--f-body);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color .15s ease, border-color .15s ease;
}
.btn-play svg { width: 20px; height: 20px; flex: none; }
.btn-play:hover { background: var(--a-hi); border-color: var(--a-hi); }
.btn-play:focus-visible { outline: 3px solid var(--paper); outline-offset: 3px; }

/* Games section */
.games { display: flex; flex-direction: column; gap: var(--gap); }
.strip {
  background: var(--b-full);
  min-height: var(--strip-h);
  padding: 10px 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
}
.strip h2 { font-size: 20px; line-height: 1.2; flex: 1 0 100%; }
.strip-controls { display: flex; align-items: center; gap: 12px; flex: 1 1 100%; min-width: 0; }
.filter-wrap { display: none; }
.cat-select-wrap { flex: 1 1 50%; min-width: 0; }
.search { position: relative; flex: 1 1 50%; min-width: 0; }

.field {
  width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  border: 2px solid var(--paper);
  border-radius: 0;
  background: var(--b-full);
  color: var(--paper);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.3;
}
select.field { cursor: pointer; }
select.field option { background: var(--b-full); color: var(--paper); }
.search .field { padding-left: 40px; -webkit-appearance: none; appearance: none; }
.search .field::placeholder { color: var(--b-light); opacity: 1; }
.search svg {
  position: absolute; left: 12px; top: 50%;
  width: 18px; height: 18px;
  transform: translateY(-50%);
  pointer-events: none;
}
.field:focus-visible { outline: 3px solid var(--b-light); outline-offset: 2px; }

.filter-row {
  display: flex;
  gap: 8px;
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.filter-row::-webkit-scrollbar { display: none; }
.filter-btn {
  flex: 1 0 100px;
  min-height: 44px;
  padding: 4px 12px;
  border: 2px solid var(--paper);
  border-radius: 0;
  background: var(--b-full);
  color: var(--paper);
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.1;
  text-align: center;
  cursor: pointer;
  transition: background-color .15s ease;
}
.filter-btn:hover { background: var(--b-deep); }
.filter-btn[aria-pressed="true"] { background: var(--paper); color: var(--b-full); }
.filter-btn:focus-visible { outline: 3px solid var(--n-light); outline-offset: -7px; }
.filter-btn[aria-pressed="true"]:focus-visible { outline-color: var(--n-full); }
.arrow {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 2px solid var(--paper);
  border-radius: 0;
  background: var(--b-full);
  color: var(--paper);
  cursor: pointer;
}
.arrow svg { width: 20px; height: 20px; }
.arrow:hover:not(:disabled) { background: var(--b-deep); }
.arrow:disabled { opacity: .4; cursor: default; }

@media (min-width: 768px) {
  .strip { flex-wrap: nowrap; padding: 10px 24px; gap: 16px; }
  .strip h2 { flex: 0 0 auto; }
  .strip-controls { flex: 1 1 auto; gap: 16px; }
  .filter-wrap { display: flex; flex: 1 1 auto; min-width: 0; align-items: center; gap: 8px; }
  .cat-select-wrap { display: none; }
  .search { flex: 0 0 13rem; }
}

/* Game grid */
.games-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  gap: var(--tgap);
}
.game { display: flex; }
.tile {
  display: flex;
  flex-direction: column;
  width: 100%;
  background: var(--b-deep);
  border: 2px solid var(--paper);
  color: var(--paper);
  text-decoration: none;
  transition: border-color .15s ease;
}
.cover { display: block; overflow: hidden; aspect-ratio: 3 / 2; }
.cover img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  transition: transform .25s ease;
}
.cap {
  flex: 1 0 auto;
  min-height: var(--cap-h);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.cap-t { font-weight: 600; font-size: 15px; line-height: 1.25; min-height: 2.5em; }
.cap-c { font-size: 14px; line-height: 1.3; color: var(--b-light); }
.tile:hover { border-color: var(--b-light); }
.tile:hover .cover img { transform: scale(1.04); }
.tile:focus-visible { outline: 3px solid var(--b-light); outline-offset: 3px; }

.games-foot {
  background: var(--b-deep);
  padding: 16px var(--pad);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.games-foot p { margin: 0; }
.games-empty { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.btn-line {
  min-height: 44px;
  padding: 8px 16px;
  border: 2px solid var(--paper);
  border-radius: 0;
  background: var(--b-deep);
  color: var(--paper);
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
}
.btn-line:hover { background: var(--b-full); }

/* Supporting blocks */
.panel { padding: 24px var(--pad); }
@media (min-width: 1024px) { .panel { padding: 40px; } }
.panel--n { background: var(--n-full); }
.panel--db { background: var(--b-deep); }
.panel--t { background: var(--b-full); }
.panel > h2 { font-size: clamp(26px, 2.8vw, 40px); margin-bottom: 20px; }
.panel h3 { font-size: 18px; line-height: 1.3; margin: 0 0 8px; }
.panel p { margin: 0 0 14px; max-width: 72ch; }
.panel p:last-child { margin-bottom: 0; }
.lead { font-size: 18px; }

.cols { display: grid; gap: 24px; }
@media (min-width: 900px) { .cols { grid-template-columns: 1fr 1fr; gap: 40px; } }
.stack > * + * { margin-top: 20px; }

.offer-card {
  background: var(--n-deep);
  border: 2px solid var(--paper);
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.offer-card p { margin: 0; }
.fig-line .bonus-figure {
  display: block;
  font-family: var(--f-head);
  font-weight: 800;
  font-size: clamp(24px, 2.6vw, 36px);
  line-height: 1.1;
  color: var(--paper);
}
.wager-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.wager-line .bonus-figure { font-size: 24px; font-weight: 700; line-height: 1.2; }
.ref-note { font-size: 15px; }
.offer-card .btn-play { margin-top: 6px; }

.table-wrap { overflow-x: auto; margin: 4px 0 20px; }
table { width: 100%; min-width: 520px; border-collapse: collapse; }
th, td {
  text-align: left;
  vertical-align: top;
  padding: 14px 16px 14px 0;
  border-bottom: 2px solid var(--paper);
}
thead th { border-bottom-width: 3px; font-weight: 700; }
tbody th { font-weight: 600; width: 32%; }

.steps {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: grid;
  gap: 16px;
}
@media (min-width: 768px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { border: 2px solid var(--paper); padding: 20px; }
.steps p { margin: 0; }

.faq { max-width: 900px; }
.faq details { border-bottom: 2px solid var(--paper); }
.faq details:first-child { border-top: 2px solid var(--paper); }
.faq summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 12px 0;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.35;
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 22px; height: 22px; flex: none; transition: transform .2s ease; }
.faq details[open] summary svg { transform: rotate(180deg); }
.faq .answer { padding: 0 0 18px; }

.rg-list { margin: 0 0 16px; padding-left: 22px; }
.rg-list li { margin-bottom: 8px; max-width: 70ch; }

.about-grid { display: grid; gap: 24px; align-items: start; }
.about-grid img { display: block; width: 280px; max-width: 100%; height: auto; }
@media (min-width: 900px) { .about-grid { grid-template-columns: 300px 1fr; gap: 40px; } }

/* Footer */
.footer {
  background: var(--b-full);
  padding: 24px var(--pad);
  display: grid;
  gap: 24px;
}
@media (min-width: 1024px) { .footer { padding: 40px; } }
@media (min-width: 900px) { .footer { grid-template-columns: 1.2fr 0.8fr 1.4fr; gap: 40px; } }
.footer img { display: block; width: 240px; max-width: 100%; height: auto; margin-bottom: 16px; }
.footer p { margin: 0 0 12px; }
.footer h2 { font-size: 18px; margin-bottom: 8px; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.footer-age { font-weight: 600; }

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