:root {
  /* Palette: T = #6b1d8c (oklch 0.41 0.176 313). B = 313, N = 348, A = gold 86. */
  --t: #6b1d8c;
  --ink: oklch(0.2 0.045 313);
  --ink-soft: oklch(0.38 0.07 313);
  --paper: oklch(0.97 0.02 313);
  --a: oklch(0.84 0.155 86);
  --a-hi: oklch(0.89 0.13 88);
  --stage: oklch(0.16 0.05 313);
  --deep-b-1: oklch(0.24 0.115 313);
  --deep-b-2: oklch(0.28 0.125 313);
  --deep-b-3: oklch(0.32 0.135 313);
  --deep-b-4: oklch(0.36 0.14 313);
  --deep-n-1: oklch(0.26 0.1 348);
  --deep-n-2: oklch(0.3 0.115 348);
  --deep-n-3: oklch(0.34 0.13 348);
  --full-b: #6b1d8c;
  --full-n: oklch(0.5 0.19 348);
  --light-b: oklch(0.86 0.07 313);
  --light-n: oklch(0.86 0.08 348);
  --font: "Schibsted Grotesk", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --gap: 16px;
  --gut: 16px;
  --radius: 12px;
  --h: clamp(360px, min(calc(100vh - 352px), calc(50vw - 32px)), 548px);
}
@media (min-width: 768px) { :root { --gut: 24px; } }
@media (min-width: 1024px) { :root { --gut: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--paper);
  font-variant-numeric: lining-nums;
  overflow-x: clip;
}
img { max-width: 100%; }
h1, h2, h3 { font-family: var(--font); font-weight: 800; line-height: 1.15; margin: 0; }
p { margin: 0; }
.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;
}
:focus-visible { outline: 3px solid var(--light-n); outline-offset: 3px; }

/* Fixed background, brought into the family */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background-color: var(--deep-b-1);
  background-image: url("/images/background.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.bg-hue { position: fixed; inset: 0; pointer-events: none; z-index: -2; background: linear-gradient(160deg, var(--full-b), var(--full-n)); mix-blend-mode: color; }
.bg-tint { position: fixed; inset: 0; pointer-events: none; z-index: -1; background: oklch(0.24 0.115 313 / 0.42); }

/* Frame */
.page {
  max-width: 1440px;
  margin: 0 auto;
  padding: 16px var(--gut) var(--gut);
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}
main { display: flex; flex-direction: column; gap: var(--gap); }
section, footer { scroll-margin-top: 16px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 8px 24px;
  background: var(--a); color: var(--ink);
  font: 700 1.0625rem/1.2 var(--font);
  text-decoration: none; border-radius: var(--radius);
  transition: background-color .2s;
}
.btn:hover { background: var(--a-hi); }
.btn:focus-visible { outline: 3px solid var(--paper); outline-offset: 3px; }
.btn svg { flex: none; }

/* Hero stage */
.stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--h);
  grid-template-rows: auto 1fr;
  min-height: var(--h);
  background: var(--stage);
  border-radius: var(--radius);
}
.stage-brand { grid-column: 1; grid-row: 1; padding: 28px 32px 0; }
.stage-brand img { display: block; height: 44px; width: auto; }
.stage-copy {
  grid-column: 1; grid-row: 2;
  padding: 16px 32px 28px;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
}
.stage-copy h1 {
  font-size: clamp(1.625rem, min(4vh, 3vw), 2.375rem);
  line-height: 1.1;
  max-width: 22ch;
}
.offer { margin-top: clamp(12px, 2vh, 20px); }
.offer-label { font-size: 1.0625rem; line-height: 1.3; color: var(--light-b); }
.hero-figure {
  display: block;
  margin-top: 4px;
  font-size: clamp(2.25rem, min(7.4vh, 4.8vw), 4.25rem);
  font-weight: 800;
  line-height: 1;
  color: var(--a);
}
.hero-figure .basis {
  display: block;
  margin-top: 6px;
  font-size: clamp(1.0625rem, 2.3vh, 1.375rem);
  line-height: 1.25;
}
.offer-terms { margin-top: clamp(8px, 1.4vh, 12px); font-size: 1rem; line-height: 1.4; }
.offer-terms .bonus-figure { font-size: 1.15em; }
.offer-note { font-size: 1rem; line-height: 1.4; color: var(--light-b); }
.stage-copy .btn { margin-top: clamp(14px, 2.4vh, 22px); min-height: 52px; }
.stage-pic {
  grid-column: 2; grid-row: 1 / 3;
  align-self: center;
  position: relative;
  width: var(--h); height: var(--h);
  border-radius: 0 var(--radius) var(--radius) 0;
  overflow: hidden;
}
.stage-pic img { display: block; width: 100%; height: 100%; object-fit: contain; }
.stage-pic::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to right, var(--stage) 0, var(--stage) 4%, oklch(0.16 0.05 313 / 0) 30%),
    linear-gradient(to left, var(--stage) 0, oklch(0.16 0.05 313 / 0) 6%),
    linear-gradient(to bottom, var(--stage) 0, oklch(0.16 0.05 313 / 0) 8%),
    linear-gradient(to top, var(--stage) 0, oklch(0.16 0.05 313 / 0) 7%);
}
@media (max-width: 1023px) {
  .stage { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto; min-height: 0; }
  .stage-brand { padding: 20px 20px 12px; }
  .stage-brand img { height: 40px; }
  .stage-pic {
    grid-column: 1; grid-row: 2; justify-self: center;
    width: min(100%, 560px); height: auto; aspect-ratio: 1; border-radius: 0;
  }
  .stage-pic::after {
    background:
      linear-gradient(to right, var(--stage) 0, oklch(0.16 0.05 313 / 0) 14%),
      linear-gradient(to left, var(--stage) 0, oklch(0.16 0.05 313 / 0) 14%),
      linear-gradient(to bottom, var(--stage) 0, oklch(0.16 0.05 313 / 0) 10%),
      linear-gradient(to top, var(--stage) 0, oklch(0.16 0.05 313 / 0) 12%);
  }
  .stage-copy { grid-column: 1; grid-row: 3; padding: 12px 20px 24px; }
  .stage-copy h1 { font-size: clamp(1.625rem, 4.6vw, 2.25rem); }
  .hero-figure { font-size: clamp(2.25rem, 8.4vw, 3.75rem); }
}

/* Category strip */
.games { display: flex; flex-direction: column; gap: var(--gap); }
.strip {
  display: flex; align-items: center; gap: 16px;
  min-height: 60px; padding: 8px 24px;
  background: var(--full-n);
  border-radius: var(--radius);
}
.strip h2 { font-size: 1.375rem; line-height: 1.2; white-space: nowrap; flex: none; }
.filter-row { display: none; flex: 1 1 auto; min-width: 0; align-items: center; gap: 8px; }
.js .filter-row { display: flex; }
.scroller {
  flex: 1 1 auto; min-width: 0;
  display: flex; gap: 8px;
  overflow-x: auto; overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.scroller::-webkit-scrollbar { display: none; }
.chip, .arrow {
  border: 0; cursor: pointer;
  background: var(--paper); color: var(--ink);
  font: 700 0.9375rem/1.1 var(--font);
  transition: background-color .2s;
}
.chip {
  flex: 0 0 124px; min-height: 44px; padding: 4px 12px;
  border-radius: 999px; text-align: center;
}
.chip:hover, .arrow:hover:not(:disabled) { background: var(--light-n); }
.chip[aria-pressed="true"] { background: var(--deep-b-1); color: var(--paper); }
.chip:focus-visible, .arrow:focus-visible { outline: 3px solid var(--ink); outline-offset: -5px; }
.chip[aria-pressed="true"]:focus-visible { outline-color: var(--paper); }
.arrow {
  flex: none; width: 44px; height: 44px; border-radius: 999px;
  display: grid; place-items: center; padding: 0;
}
.arrow:disabled { opacity: .45; cursor: default; }
.select-wrap, .search { display: none; flex: none; }
.js .search { display: block; }
.search input, .select-wrap select {
  height: 44px; padding: 0 16px; border: 0; border-radius: var(--radius);
  background: var(--paper); color: var(--ink);
  font: 400 1rem var(--font);
}
.search input { width: 200px; }
.search input::placeholder { color: var(--ink-soft); opacity: 1; }
.search input:focus-visible, .select-wrap select:focus-visible { outline: 3px solid var(--ink); outline-offset: -5px; }
@media (max-width: 767px) {
  .strip { flex-wrap: wrap; padding: 12px 16px; gap: 12px; }
  .strip h2 { flex-basis: 100%; }
  .js .filter-row { display: none; }
  .js .select-wrap { display: block; flex: 1 1 100%; }
  .js .search { flex: 1 1 100%; }
  .search input, .select-wrap select { width: 100%; }
}

/* Game grid */
.grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 480px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 768px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.grid li { display: flex; }
.tile {
  display: flex; flex-direction: column; width: 100%;
  background: var(--deep-b-2); color: var(--paper);
  border-radius: var(--radius); overflow: hidden;
  text-decoration: none; transition: background-color .2s;
}
.cover { display: block; overflow: hidden; aspect-ratio: 3 / 2; }
.cover img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.cap { flex: 1; display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; }
.cap .t { font-weight: 700; font-size: 1rem; line-height: 1.25; min-height: 2.5em; }
.cap .c { font-size: 0.875rem; line-height: 1.35; color: var(--light-n); }
.tile:hover { background: var(--deep-n-2); }
.tile:hover .cover img { transform: scale(1.04); }
.tile:focus-visible { outline: 3px solid var(--light-n); outline-offset: 3px; }

.games-foot {
  background: var(--deep-b-1); border-radius: var(--radius);
  padding: 16px 24px;
  display: flex; flex-direction: column; gap: 8px;
}
.games-foot .count { font-weight: 700; }
.no-results { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.btn-ghost {
  min-height: 44px; padding: 8px 16px;
  background: transparent; color: var(--paper);
  border: 2px solid var(--paper); border-radius: var(--radius);
  font: 700 1rem/1.2 var(--font); cursor: pointer;
}
.btn-ghost:hover { background: var(--deep-b-3); }

/* Panels */
.panels { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--gap); align-items: start; }
@media (min-width: 900px) {
  .panels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .span { grid-column: 1 / -1; }
}
.panel { border-radius: var(--radius); padding: 20px; }
@media (min-width: 1024px) { .panel { padding: 32px; } }
.panel h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin-bottom: 12px; }
.panel p + p, .panel p + ul, .panel ul + p, .panel ol + p, .panel p + ol, .panel dl + p, .panel .table-wrap + p, .panel p + .table-wrap { margin-top: 12px; }
.panel .btn { margin-top: 20px; }
.panel a:not(.btn) { color: var(--paper); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 2px; }
.panel a:not(.btn):hover { text-decoration-thickness: 3px; }
.p-bonus { background: var(--deep-b-1); }
.p-terms { background: var(--deep-n-1); }
.p-banking { background: var(--deep-b-2); }
.p-about { background: var(--deep-n-2); }
.p-start { background: var(--deep-b-3); }
.p-lobby { background: var(--full-n); }
.p-resp { background: var(--full-b); }
.p-faq { background: var(--full-n); }
.muted { color: var(--light-b); }

.bonus-figure { font-weight: 700; font-size: 1.25em; line-height: 1.3; color: var(--paper); }
.figure-line { margin: 4px 0 12px; }
.figure-line .bonus-figure { display: block; font-size: 1.75rem; font-weight: 800; line-height: 1.2; }
.offer-terms .bonus-figure { line-height: inherit; }
.stage .hero-figure {
  font-size: clamp(2.25rem, min(7.4vh, 4.8vw), 4.25rem);
  font-weight: 800;
  line-height: 1;
  color: var(--a);
}
@media (max-width: 1023px) {
  .stage .hero-figure { font-size: clamp(2.25rem, 8.4vw, 3.75rem); }
}
.facts { margin: 0; display: grid; gap: 4px 0; }
.facts dt { color: var(--light-b); }
.facts dd { margin: 0 0 8px; font-weight: 700; }
.facts dd .bonus-figure { display: block; }

.logo-inline { display: block; height: 48px; width: auto; margin-bottom: 20px; }

.table-wrap { overflow-x: auto; border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; min-width: 520px; }
th, td { text-align: left; vertical-align: top; padding: 12px 16px; }
thead th { background: var(--deep-n-1); font-weight: 700; }
tbody th { font-weight: 700; width: 32%; }
tbody tr:nth-child(odd) > * { background: var(--deep-b-3); }
tbody tr:nth-child(even) > * { background: var(--deep-b-1); }

.steps { margin: 0; padding-left: 1.5em; display: grid; gap: 10px; }
.steps li::marker { font-weight: 800; }
.bullets { margin: 0; padding-left: 1.25em; display: grid; gap: 8px; }

.faq-list { display: grid; gap: 8px; margin-top: 4px; }
.faq-list details { background: var(--deep-n-3); border-radius: var(--radius); }
.faq-list summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 48px; padding: 10px 16px; font-weight: 700;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary svg { flex: none; transition: transform .2s; }
.faq-list details[open] summary svg { transform: rotate(180deg); }
.faq-list details p { padding: 0 16px 14px; }
.faq-list summary:focus-visible { outline: 3px solid var(--paper); outline-offset: -4px; border-radius: var(--radius); }

/* Footer */
.site-foot {
  background: var(--full-b); border-radius: var(--radius);
  padding: 20px; display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 1024px) { .site-foot { padding: 32px; } }
@media (min-width: 900px) { .site-foot { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); } }
.foot-info { display: grid; gap: 12px; align-content: start; }
.logo-plate { justify-self: start; background: var(--deep-b-1); padding: 12px 16px; border-radius: var(--radius); }
.logo-plate img { display: block; height: 40px; width: auto; }
.site-foot h2 { font-size: 1.25rem; margin-bottom: 8px; }
.foot-nav ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.site-foot a { color: var(--paper); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 2px; }
.foot-nav a { display: inline-flex; align-items: center; min-height: 44px; }
.site-foot a:hover { text-decoration-thickness: 3px; }
.legal { font-weight: 700; }

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