/*!
 * Boqu Games — site.css
 *
 * A private card room at night: near-black lacquer, emerald felt lit from above,
 * champagne-gold hairlines and warm ivory type (the Social orbit palette).
 * Cormorant Garamond for display, Outfit for everything else. Legal pages switch
 * to an ivory "paper" theme for long-form reading.
 *
 * Layout uses logical properties throughout, so Arabic and Hebrew mirror without
 * a second stylesheet; the few physical exceptions are in "Right-to-left" below.
 */

/* ---------- Tokens ---------- */

:root {
  --ink: #080b0e;
  --ink-1: #0b0f13;
  --ink-2: #10161b;
  --ink-3: #182027;
  --felt: #0d513a;
  --felt-deep: #062a1f;
  --felt-glow: #12704f;
  --gold: #ecc66b;
  --gold-bright: #f6dc97;
  --gold-deep: #b8913c;
  --ivory: #f4efe4;
  --ivory-2: #e9e2d2;

  --text: #f4efe4;
  --text-2: #bdb7aa;
  --text-3: #8f8b82;
  --line: rgba(236, 198, 107, 0.18);
  --line-2: rgba(244, 239, 228, 0.09);
  --surface: rgba(244, 239, 228, 0.03);
  --surface-2: rgba(244, 239, 228, 0.06);
  --accent: var(--gold);
  --link: var(--gold);
  --page: var(--ink);

  --display: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --sans: "Outfit", "Avenir Next", "Segoe UI", system-ui, sans-serif;

  --container: 1240px;
  --gutter: clamp(20px, 4vw, 40px);
  --radius: 20px;
  --radius-sm: 12px;
  --header-h: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-lg: 0 44px 90px -34px rgba(0, 0, 0, 0.85), 0 20px 40px -20px rgba(0, 0, 0, 0.65);

  /* Fine film grain: stops the large glows from banding and gives felt its nap. */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
  /* Two interlocking orbits with a wider one around them: the mark, as linework. */
  --orbits: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 720 480' fill='none' stroke='%23ecc66b'%3E%3Cellipse cx='272' cy='240' rx='204' ry='198' stroke-opacity='.26'/%3E%3Cellipse cx='448' cy='240' rx='204' ry='198' stroke-opacity='.26'/%3E%3Cellipse cx='360' cy='240' rx='352' ry='226' stroke-opacity='.1' transform='rotate(-16 360 240)'/%3E%3C/svg%3E");

  color-scheme: dark;
}

.theme-paper {
  --text: #14181b;
  --text-2: #474a49;
  --text-3: #63645f;
  --line: rgba(13, 81, 58, 0.2);
  --line-2: rgba(8, 11, 14, 0.1);
  --surface: rgba(8, 11, 14, 0.03);
  --surface-2: rgba(8, 11, 14, 0.05);
  --accent: var(--felt);
  --link: #0b5c40;
  --page: var(--ivory);
  --orbits: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 720 480' fill='none' stroke='%230d513a'%3E%3Cellipse cx='272' cy='240' rx='204' ry='198' stroke-opacity='.2'/%3E%3Cellipse cx='448' cy='240' rx='204' ry='198' stroke-opacity='.2'/%3E%3Cellipse cx='360' cy='240' rx='352' ry='226' stroke-opacity='.08' transform='rotate(-16 360 240)'/%3E%3C/svg%3E");
  color-scheme: light;
}

/* ---------- Base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
  scrollbar-color: #2b3238 #080b0e;
  background: #080b0e;
}

html:has(body.theme-paper) {
  scrollbar-color: #c4bcab #f4efe4;
  background: #f4efe4;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }

  /* A soft cross-fade between pages, where the browser supports it. */
  @view-transition {
    navigation: auto;
  }
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.32s;
}

html.nav-lock {
  overflow: hidden;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img,
svg,
canvas,
video {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.theme-paper :focus-visible {
  outline-color: var(--felt);
}

::selection {
  background: rgba(236, 198, 107, 0.35);
  color: inherit;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 500;
  line-height: 1.1;
  text-wrap: balance;
  overflow-wrap: break-word;
}

p {
  margin: 0;
  text-wrap: pretty;
}

p,
li,
dd,
dt,
td,
th,
summary,
figcaption {
  overflow-wrap: break-word;
}

ul[role="list"],
ol[role="list"] {
  list-style: none;
  margin: 0;
  padding: 0;
}

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

.skip-link {
  position: absolute;
  inset-inline-start: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 12px;
}

main:focus {
  outline: none;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow {
  max-width: calc(880px + 2 * var(--gutter));
}

/* ---------- Type ---------- */

.display {
  font-family: var(--display);
  font-size: calc(var(--size) * var(--fit, 1));
  font-weight: 500;
  letter-spacing: -0.014em;
  line-height: 1.02;
}

/* build.py adds a fit-NN class when a translated headline would need more lines
   than the desktop layout allows (NN = per cent of full size). Narrow layouts
   have room to spare, so the classes only exist from 961px up. */
@media (min-width: 961px) {
  .fit-62 {
    --fit: 0.62;
  }

  .fit-64 {
    --fit: 0.64;
  }

  .fit-66 {
    --fit: 0.66;
  }

  .fit-68 {
    --fit: 0.68;
  }

  .fit-70 {
    --fit: 0.70;
  }

  .fit-72 {
    --fit: 0.72;
  }

  .fit-74 {
    --fit: 0.74;
  }

  .fit-76 {
    --fit: 0.76;
  }

  .fit-78 {
    --fit: 0.78;
  }

  .fit-80 {
    --fit: 0.80;
  }

  .fit-82 {
    --fit: 0.82;
  }

  .fit-84 {
    --fit: 0.84;
  }

  .fit-86 {
    --fit: 0.86;
  }

  .fit-88 {
    --fit: 0.88;
  }

  .fit-90 {
    --fit: 0.90;
  }

  .fit-92 {
    --fit: 0.92;
  }

  .fit-94 {
    --fit: 0.94;
  }

  .fit-96 {
    --fit: 0.96;
  }

  .fit-98 {
    --fit: 0.98;
  }
}

.display em,
.h2 em,
.h3 em,
.intro-statement em {
  font-style: italic;
  color: var(--gold);
}

.theme-paper .display em,
.theme-paper .h2 em {
  color: var(--felt);
}

.display--xl {
  --size: clamp(3.2rem, 1.5rem + 6.4vw, 7.6rem);
  line-height: 0.98;
}

.display--lg {
  --size: clamp(2.7rem, 1.6rem + 4.3vw, 5.5rem);
}

.h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2.2rem, 1.5rem + 2.8vw, 3.9rem);
  letter-spacing: -0.01em;
  line-height: 1.04;
}

.h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.55rem, 1.3rem + 0.9vw, 2.05rem);
  line-height: 1.12;
}

/* Cormorant's default figures are old-style; lining figures sit better in headings. */
.display,
.h2,
.h3,
.card h3,
.specs dd,
.notice h2,
.notice-seal,
.intro-statement,
.doc-body h2,
.legal-list h2,
.contact-card > a,
.contact-card-name,
.steps li::before,
.pillar-num,
.download-row h3,
.theme-card figcaption strong {
  font-variant-numeric: lining-nums;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 22px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
}

.eyebrow::before {
  content: "";
  flex: none;
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

.eyebrow--plain::before {
  display: none;
}

.eyebrow--flush {
  margin: 0;
}

.theme-paper .eyebrow {
  color: var(--felt);
}

.lede {
  font-size: clamp(1.08rem, 1rem + 0.35vw, 1.3rem);
  line-height: 1.6;
  color: var(--text-2);
  font-weight: 300;
  max-width: 40em;
}

.muted {
  color: var(--text-2);
}

.fine {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-3);
}

.measure {
  max-width: 32em;
}

.nowrap {
  white-space: nowrap;
}

/* ---------- Buttons ---------- */

.button {
  --button-bg: var(--gold);
  --button-fg: var(--ink);
  --button-border: var(--gold);
  --button-sheen: rgba(255, 255, 255, 0.5);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 28px;
  border: 1px solid var(--button-border);
  border-radius: 999px;
  background: var(--button-bg);
  color: var(--button-fg);
  font: 500 15px/1 var(--sans);
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease),
    translate 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

/* A single pass of light across the button on hover. */
.button::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, transparent 32%, var(--button-sheen) 50%, transparent 68%);
  translate: -110% 0;
}

.button:hover {
  --button-bg: var(--gold-bright);
  --button-border: var(--gold-bright);
  box-shadow: 0 14px 34px -14px rgba(236, 198, 107, 0.6);
  translate: 0 -1px;
}

@media (prefers-reduced-motion: no-preference) {
  .button:hover::before {
    translate: 110% 0;
    transition: translate 0.8s var(--ease);
  }
}

.button--ghost {
  --button-bg: transparent;
  --button-fg: var(--ivory);
  --button-border: rgba(236, 198, 107, 0.45);
  --button-sheen: rgba(236, 198, 107, 0.16);
}

.button--ghost:hover {
  --button-bg: rgba(236, 198, 107, 0.07);
  --button-fg: var(--gold-bright);
  --button-border: var(--gold);
  box-shadow: none;
}

.theme-paper .site-main .button {
  --button-bg: var(--felt);
  --button-fg: var(--ivory);
  --button-border: var(--felt);
  --button-sheen: rgba(255, 255, 255, 0.2);
}

.theme-paper .site-main .button:hover {
  --button-bg: #0a6347;
  --button-border: #0a6347;
  box-shadow: 0 14px 34px -16px rgba(13, 81, 58, 0.6);
}

.theme-paper .site-main .button--ghost {
  --button-bg: transparent;
  --button-fg: var(--felt);
  --button-border: rgba(13, 81, 58, 0.4);
}

.theme-paper .site-main .button--ghost:hover {
  --button-bg: rgba(13, 81, 58, 0.06);
  --button-fg: var(--felt);
  box-shadow: none;
}

.button--sm {
  min-height: 42px;
  padding: 0 20px;
  font-size: 14px;
}

.theme-paper .site-main .button--danger,
.button--danger {
  --button-bg: #8f1d1d;
  --button-fg: #fff;
  --button-border: #8f1d1d;
}

.theme-paper .site-main .button--danger:hover,
.button--danger:hover {
  --button-bg: #a32424;
  --button-border: #a32424;
  box-shadow: 0 14px 34px -16px rgba(143, 29, 29, 0.6);
}

.arrow {
  width: 16px;
  height: 16px;
  flex: none;
  transition: translate 0.35s var(--ease);
}

.button:hover .arrow,
.text-link:hover .arrow,
.card:hover .arrow,
.game-tile:hover .arrow {
  translate: 4px 0;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold);
  font-weight: 500;
  text-decoration: none;
  letter-spacing: 0.02em;
}

a.text-link:hover,
.card:hover .text-link,
.game-tile:hover .text-link {
  color: var(--gold-bright);
}

.theme-paper .text-link {
  color: var(--felt);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.actions--center {
  justify-content: center;
}

@media (max-width: 560px) {
  .button {
    max-width: 100%;
    white-space: normal;
    text-align: center;
    line-height: 1.25;
    padding-block: 12px;
  }

  .eyebrow {
    letter-spacing: 0.24em;
  }
}

/* ---------- Store badges ---------- */

.store-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 12px;
}

.store-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 7px 18px 7px 14px;
  border: 1px solid rgba(244, 239, 228, 0.4);
  border-radius: 13px;
  background: #05070a;
  color: var(--ivory);
  text-decoration: none;
  transition: translate 0.35s var(--ease), border-color 0.35s var(--ease), background 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}

a.store-badge:hover {
  translate: 0 -2px;
  border-color: var(--gold);
  background: #0b0e12;
  box-shadow: 0 16px 30px -18px rgba(0, 0, 0, 0.9);
}

.store-badge-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.store-badge-text {
  display: grid;
  line-height: 1.1;
  text-align: start;
}

.store-badge-text small {
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: #d9d3c6;
}

.store-badge-text strong {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.store-badge--soon {
  border-style: dashed;
  border-color: rgba(244, 239, 228, 0.24);
  background: rgba(5, 7, 10, 0.55);
  color: rgba(244, 239, 228, 0.55);
  margin-bottom: 22px;
}

.store-badge--soon .store-badge-text small {
  color: rgba(217, 211, 198, 0.55);
}

.store-badge-note {
  position: absolute;
  inset: auto 0 -22px 0;
  font-size: 10.5px;
  line-height: 1;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-3);
  text-align: center;
  white-space: nowrap;
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
}

/* The frosted bar sits on a pseudo-element: a backdrop-filter on the header
   itself would make it the containing block for the fixed mobile menu. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(8, 11, 14, 0.8);
  -webkit-backdrop-filter: saturate(150%) blur(18px);
  backdrop-filter: saturate(150%) blur(18px);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

/* A hairline that catches the light once the page scrolls. */
.site-header::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(236, 198, 107, 0.4) 30%, rgba(236, 198, 107, 0.4) 70%, transparent);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

.site-header.is-scrolled::before,
.site-header.nav-open::before,
.site-header.is-scrolled::after,
.site-header.nav-open::after {
  opacity: 1;
}

.site-header.nav-open::before {
  background: var(--ink);
}

.theme-paper .site-header::before {
  background: rgba(244, 239, 228, 0.86);
}

.theme-paper .site-header.nav-open::before {
  background: var(--ink);
}

.theme-paper .site-header::after {
  background: linear-gradient(90deg, transparent, rgba(13, 81, 58, 0.3) 30%, rgba(13, 81, 58, 0.3) 70%, transparent);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  color: inherit;
  text-decoration: none;
  flex-shrink: 0;
}

.brand .logo {
  height: 42px;
  width: auto;
}

.logo .logo-gold {
  fill: var(--gold);
}

.logo .logo-emerald {
  fill: var(--felt);
}

.logo .logo-word {
  fill: var(--ivory);
  transition: fill 0.3s;
}

.logo .logo-sub {
  fill: var(--gold);
  transition: fill 0.3s;
}

.theme-paper .site-header:not(.nav-open) .logo .logo-word {
  fill: var(--ink);
}

.theme-paper .site-header:not(.nav-open) .logo .logo-sub {
  fill: var(--felt);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.site-nav > ul {
  display: flex;
  gap: 30px;
}

.site-nav > ul a {
  position: relative;
  color: var(--text-2);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: color 0.25s;
}

.site-nav > ul a::after {
  content: "";
  position: absolute;
  inset: auto 0 -7px 0;
  height: 1px;
  background: var(--gold);
  scale: 0 1;
  transform-origin: 0 50%;
  transition: scale 0.4s var(--ease);
}

.site-nav > ul a:hover,
.site-nav > ul a[aria-current="page"] {
  color: var(--text);
}

.site-nav > ul a:hover::after,
.site-nav > ul a[aria-current="page"]::after {
  scale: 1 1;
}

.theme-paper .site-nav > ul a::after {
  background: var(--felt);
}

.nav-end {
  display: flex;
  align-items: center;
  gap: 16px;
}

.theme-paper .site-header .button {
  --button-bg: var(--felt);
  --button-fg: var(--ivory);
  --button-border: var(--felt);
  --button-sheen: rgba(255, 255, 255, 0.2);
}

.theme-paper .site-header .button:hover {
  --button-bg: #0a6347;
  --button-border: #0a6347;
  box-shadow: 0 14px 34px -16px rgba(13, 81, 58, 0.6);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-inline-end: -8px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.nav-toggle svg {
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  fill: none;
}

.nav-toggle .bar {
  transition: transform 0.4s var(--ease);
  transform-origin: 12px 12px;
}

.nav-open .nav-toggle .bar-1 {
  transform: translateY(3px) rotate(45deg);
}

.nav-open .nav-toggle .bar-2 {
  transform: translateY(-3px) rotate(-45deg);
}

/* Language menu */

.lang-switch {
  position: relative;
}

.lang-switch summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  color: var(--text-2);
  font-size: 14px;
  cursor: pointer;
  list-style: none;
  transition: color 0.25s, border-color 0.25s;
}

.lang-switch summary::-webkit-details-marker {
  display: none;
}

.lang-switch summary:hover,
.lang-switch[open] summary {
  color: var(--text);
  border-color: var(--line);
}

.lang-switch summary svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
}

.lang-short {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
}

/* The full language name is read out with the button on desktop, and shown in
   the mobile menu. */
.lang-switch .lang-current {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.lang-panel {
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + 12px);
  z-index: 60;
  width: min(580px, calc(100vw - 32px));
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(11, 15, 19, 0.97);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-lg);
  animation: panel-in 0.3s var(--ease);
}

@keyframes panel-in {
  from {
    opacity: 0;
    translate: 0 -6px;
  }
}

.theme-paper .lang-panel {
  background: rgba(250, 247, 240, 0.98);
}

.lang-panel-title {
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-3);
}

.lang-panel ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2px 10px;
}

.lang-panel a {
  display: block;
  padding: 7px 10px;
  border-radius: 8px;
  color: var(--text-2);
  font-size: 14.5px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.lang-panel a:hover {
  background: var(--surface-2);
  color: var(--text);
}

.lang-panel a[aria-current] {
  color: var(--accent);
  font-weight: 500;
}

@media (min-width: 1024px) and (max-width: 1279px) {
  .site-nav {
    gap: 22px;
  }

  .site-nav > ul {
    gap: 20px;
  }

  .site-nav > ul a {
    font-size: 14.5px;
  }
}

@media (max-width: 1023px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    flex-direction: column;
    align-items: stretch;
    justify-content: space-between;
    gap: 32px;
    padding: 20px var(--gutter) calc(28px + env(safe-area-inset-bottom));
    background:
      radial-gradient(90% 50% at 100% 100%, rgba(13, 81, 58, 0.4), transparent 70%),
      var(--ink);
    opacity: 0;
    visibility: hidden;
    translate: 0 -8px;
    transition: opacity 0.35s var(--ease), translate 0.35s var(--ease), visibility 0s 0.35s;
    overflow-y: auto;
    --text: var(--ivory);
    --text-2: #bdb7aa;
    --text-3: #8f8b82;
    --line: rgba(236, 198, 107, 0.18);
    --line-2: rgba(244, 239, 228, 0.09);
    --surface-2: rgba(244, 239, 228, 0.06);
    --accent: var(--gold);
  }

  .nav-open .site-nav {
    opacity: 1;
    visibility: visible;
    translate: 0 0;
    transition: opacity 0.35s var(--ease), translate 0.35s var(--ease);
  }

  .site-nav > ul {
    flex-direction: column;
    gap: 0;
  }

  .site-nav > ul li + li {
    border-top: 1px solid var(--line-2);
  }

  .site-nav > ul a {
    display: block;
    padding: 17px 0;
    font-family: var(--display);
    font-size: 2rem;
    font-weight: 500;
    line-height: 1.15;
    color: var(--ivory);
  }

  .site-nav > ul a::after {
    display: none;
  }

  .site-nav > ul a[aria-current="page"] {
    color: var(--gold);
  }

  .nav-end {
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 14px;
  }

  .nav-end .button {
    min-height: 54px;
    font-size: 15px;
  }

  .lang-switch summary {
    width: 100%;
    justify-content: center;
    min-height: 50px;
  }

  .lang-switch .lang-current {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
  }

  .lang-short {
    display: none;
  }

  .lang-panel {
    position: static;
    width: auto;
    margin-top: 10px;
    background: var(--ink-1);
    box-shadow: none;
    animation: none;
  }

  .lang-panel ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lang-panel a {
    padding: 9px 10px;
    font-size: 15px;
  }

  .theme-paper .site-header.nav-open {
    --text: var(--ivory);
  }

  .brand .logo {
    height: 38px;
  }

  .theme-paper .site-header.nav-open .button {
    --button-bg: var(--gold);
    --button-fg: var(--ink);
    --button-border: var(--gold);
  }
}

/* Prompt offering the visitor's own language (site.js). */

.lang-hint {
  position: fixed;
  inset-inline-end: 16px;
  bottom: 16px;
  z-index: 70;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: calc(100vw - 32px);
  padding-block: 10px;
  padding-inline: 20px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(11, 15, 19, 0.96);
  color: var(--ivory);
  box-shadow: var(--shadow-lg);
  font-size: 14px;
  line-height: 1.35;
  animation: hint-in 0.7s var(--ease) 0.6s backwards;
}

.lang-hint.is-leaving {
  opacity: 0;
  translate: 0 10px;
  transition: opacity 0.45s var(--ease), translate 0.45s var(--ease);
}

.lang-hint a {
  color: var(--gold);
  font-weight: 500;
  white-space: nowrap;
}

.lang-hint button {
  display: grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: rgba(244, 239, 228, 0.08);
  color: var(--ivory);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

@keyframes hint-in {
  from {
    opacity: 0;
    translate: 0 14px;
  }
}

/* ---------- Sections ---------- */

.section {
  position: relative;
  padding-block: clamp(72px, 5vw + 40px, 136px);
  /* Glows and tilted artwork reach past the section; clip sideways only, so
     sticky headings and tall shadows are unaffected. */
  overflow-x: clip;
}

.section--tight {
  padding-block: clamp(40px, 3vw + 24px, 72px);
}

.section--line {
  border-top: 1px solid var(--line-2);
}

/* Faint pools of light, alternating sides, so the long dark pages have depth. */
.section--line::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(52% 50% at 100% 50%, rgba(13, 81, 58, 0.24), transparent);
  pointer-events: none;
}

.section--line:nth-of-type(odd)::before {
  background: radial-gradient(52% 50% at 0% 50%, rgba(13, 81, 58, 0.2), transparent);
}

.theme-paper .section--line::before {
  display: none;
}

.site-main {
  position: relative;
  isolation: isolate;
}

.section-head {
  display: grid;
  gap: 22px;
  max-width: 780px;
  margin-bottom: clamp(44px, 5vw, 76px);
}

.section-head--split {
  max-width: none;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: end;
  gap: 40px;
}

@media (max-width: 860px) {
  .section-head--split {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }
}

.section-head .eyebrow {
  margin-bottom: 0;
}

.stack {
  display: grid;
  gap: 22px;
}

.stack--center {
  justify-items: center;
  text-align: center;
}

/* Hairline ornament: two interlocking orbits. */
.orbit-rule {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--gold);
}

.orbit-rule::before,
.orbit-rule::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line));
}

.orbit-rule::after {
  background: linear-gradient(90deg, var(--line), transparent);
}

.orbit-rule svg {
  width: 38px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.1;
}

/* ---------- Home hero ---------- */

.hero {
  position: relative;
  min-height: min(100svh, 1000px);
  display: grid;
  align-items: center;
  padding-top: calc(var(--header-h) + 28px);
  padding-bottom: 92px;
  isolation: isolate;
  overflow: clip;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(58% 62% at 74% 46%, rgba(18, 112, 79, 0.46), transparent 72%),
    radial-gradient(46% 50% at 16% 112%, rgba(13, 81, 58, 0.34), transparent 70%),
    radial-gradient(60% 40% at 82% -12%, rgba(236, 198, 107, 0.09), transparent 70%),
    var(--ink);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  pointer-events: none;
}

.hero-bg--fixed {
  position: fixed;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0;
  transition: opacity 1.8s var(--ease);
}

.hero-canvas.is-ready {
  opacity: 1;
}

.hero-vignette {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(8, 11, 14, 0.45), transparent 20%, transparent 72%, var(--ink));
  pointer-events: none;
}

/* Scroll cue: a hairline with a bead of light travelling down it. */
.hero-vignette::after {
  content: "";
  position: absolute;
  inset: auto auto 26px 50%;
  width: 1px;
  height: 46px;
  background: linear-gradient(180deg, transparent, rgba(236, 198, 107, 0.9), transparent) 0 -46px / 1px 46px no-repeat,
    rgba(244, 239, 228, 0.14);
}

@media (prefers-reduced-motion: no-preference) {
  .hero-vignette::after {
    animation: cue 2.6s var(--ease) infinite;
  }
}

@keyframes cue {
  to {
    background-position: 0 46px, 0 0;
  }
}

@media (max-width: 960px), (max-height: 640px) {
  .hero-vignette::after {
    display: none;
  }
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(28px, 4vw, 60px);
}

.hero-copy {
  display: grid;
  gap: 30px;
  justify-items: start;
}

.hero-copy .eyebrow {
  margin: 0;
}

.hero-copy .lede {
  max-width: min(31em, 94%);
}

/* The stage: the poker table on a phone, a second phone in portrait, and a hand
   of Slots Palace cards. Each layer floats on its own and leans with the pointer. */
.hero-stage {
  --mx: 0;
  --my: 0;
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 0.7;
}

.hero-stage::before {
  content: "";
  position: absolute;
  inset: -12% -14% -18% -12%;
  background: radial-gradient(closest-side, rgba(27, 138, 98, 0.55), rgba(18, 112, 79, 0.18) 58%, transparent);
  filter: blur(10px);
  pointer-events: none;
}

.hero-stage > *,
.hero-stage > .device {
  --depth: 1;
  position: absolute;
}

.hero-stage-main {
  --depth: 0.6;
  inset-inline-start: 0;
  top: 3%;
  width: 100%;
  z-index: 1;
}

.hero-stage-phone {
  --depth: 1.5;
  inset-inline-start: -5.5%;
  bottom: -9%;
  width: 20.5%;
  z-index: 3;
  rotate: -5deg;
}

.hero-stage-card {
  --depth: 2.1;
  inset-inline-end: 6%;
  bottom: 1%;
  width: 18.5%;
  z-index: 2;
  rotate: 8deg;
}

.hero-stage-card img,
.hero-stage-card::before,
.hero-stage-card::after {
  aspect-ratio: 5 / 6;
  border-radius: 9% / 7.5%;
  box-shadow: 0 24px 40px -18px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(236, 198, 107, 0.5);
}

.hero-stage-card img {
  position: relative;
  z-index: 1;
  width: 100%;
  object-fit: cover;
}

/* Two more cards fanned behind the first. */
.hero-stage-card::before,
.hero-stage-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/assets/img/slots/theme-fortune-god.webp") center / cover;
  transform-origin: 50% 130%;
  rotate: -17deg;
}

.hero-stage-card::after {
  background-image: url("/assets/img/slots/theme-deep-sea.webp");
  rotate: 17deg;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-stage > * {
    animation: float 9s ease-in-out infinite alternate;
  }

  .hero-stage-phone {
    animation-duration: 11s;
    animation-delay: -3s;
  }

  .hero-stage-card {
    animation-duration: 10s;
    animation-delay: -6s;
  }
}

/* --mx / --my are set by site.js from the pointer (in px); deeper layers move more. */
@keyframes float {
  from {
    translate: calc(var(--mx) * var(--depth) * 1px) calc(var(--my) * var(--depth) * 1px + 5px);
  }

  to {
    translate: calc(var(--mx) * var(--depth) * 1px) calc(var(--my) * var(--depth) * 1px - 5px);
  }
}

@media (max-width: 960px) {
  .hero {
    min-height: 0;
    padding-top: calc(var(--header-h) + 44px);
    padding-bottom: 72px;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 56px;
  }

  .hero-stage {
    max-width: 620px;
    margin-inline: auto;
  }
}

/* ---------- Devices ----------
 * Frames are drawn in CSS around the screenshots. The device is a size container,
 * so the bezel and the screen's corner radius scale with it (cqw) and the corners
 * stay true circles at every size.
 */

.device {
  --bezel: 2.5cqw;
  --screen-r: 13.4cqw;
  container-type: inline-size;
  position: relative;
  border-radius: 15.9% / 7.5%;
  background: linear-gradient(145deg, #5a6067 0%, #23272b 9%, #0c0e10 34%, #0e1113 64%, #262a2f 90%, #50565c 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14), 0 0 0 1px rgba(0, 0, 0, 0.75), var(--shadow-lg);
}

.device img {
  display: block;
  width: calc(100% - 2 * var(--bezel));
  margin: var(--bezel);
  border-radius: var(--screen-r);
  background: #000;
}

/* Glass: a soft reflection across the upper-left of the screen. */
.device::after {
  content: "";
  position: absolute;
  inset: var(--bezel);
  border-radius: var(--screen-r);
  background: linear-gradient(118deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.02) 22%, transparent 36%);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.6);
  pointer-events: none;
}

.device--landscape {
  --bezel: 1.15cqw;
  --screen-r: 6.2cqw;
  border-radius: 7.35% / 15.6%;
}

.device--tablet {
  --bezel: 3cqw;
  --screen-r: 2cqw;
  border-radius: 5% / 3.8%;
}

/* ---------- Game showcase (home, game pages) ---------- */

.showcase {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(40px, 6vw, 96px);
}

.showcase + .showcase {
  margin-top: clamp(96px, 9vw, 152px);
}

.showcase--flip .showcase-media {
  order: -1;
}

.showcase-copy {
  display: grid;
  gap: 26px;
  justify-items: start;
}

.showcase-copy .eyebrow {
  margin: 0;
}

.showcase-media {
  position: relative;
}

.showcase-media::before {
  content: "";
  position: absolute;
  inset: 4% -8% -8% -8%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(18, 112, 79, 0.5), transparent);
  filter: blur(10px);
}

.showcase--slots .showcase-media::before {
  background: radial-gradient(closest-side, rgba(104, 52, 150, 0.4), rgba(236, 198, 107, 0.08) 70%, transparent);
}

/* A landscape table reaches past the grid towards the edge of the page. */
@media (min-width: 901px) {
  .showcase-media:has(> .device--landscape) {
    margin-inline-end: calc(-1 * min(7vw, 96px));
  }

  .showcase--flip .showcase-media:has(> .device--landscape) {
    margin-inline: calc(-1 * min(7vw, 96px)) 0;
  }
}

.app-id {
  display: flex;
  align-items: center;
  gap: 18px;
}

.app-icon {
  width: 72px;
  height: 72px;
  border-radius: 22.5%;
  box-shadow: 0 14px 30px -12px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.app-id-meta {
  display: grid;
  gap: 2px;
}

.app-id-meta strong {
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.02em;
}

.app-id-meta span {
  font-size: 13px;
  color: var(--text-3);
  letter-spacing: 0.04em;
}

/* Tick list: the orbit mark as a bullet. */
.ticks {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ticks li {
  position: relative;
  padding-inline-start: 34px;
  color: var(--text-2);
}

.ticks li::before,
.ticks li::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.58em;
  width: 13px;
  height: 9px;
  border: 1px solid var(--accent);
  border-radius: 50%;
}

.ticks li::after {
  inset-inline-start: 8px;
}

.ticks a {
  color: inherit;
  text-decoration-color: var(--line);
}

.ticks a:hover {
  color: var(--text);
  text-decoration-color: var(--accent);
}

.phone-trio {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  gap: 4%;
  max-width: 580px;
  margin-inline: auto;
}

.phone-trio .device:nth-child(1) {
  transform: translateY(5%) rotate(-3deg);
}

.phone-trio .device:nth-child(2) {
  transform: translateY(-6%) scale(1.08);
  z-index: 1;
}

.phone-trio .device:nth-child(3) {
  transform: translateY(5%) rotate(3deg);
}

@media (max-width: 900px) {
  .showcase {
    grid-template-columns: minmax(0, 1fr);
    gap: 56px;
  }

  .showcase--flip .showcase-media {
    order: 0;
  }

  .phone-trio {
    padding-block: 5% 4%;
  }
}

/* A hand of Slots Palace theme cards. */
.card-fan {
  position: relative;
  width: 100%;
  max-width: 560px;
  aspect-ratio: 1 / 0.86;
  margin-inline: auto;
}

.card-fan img {
  position: absolute;
  top: 6%;
  left: 50%;
  width: 46%;
  aspect-ratio: 5 / 6;
  object-fit: cover;
  border-radius: 9% / 7.5%;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(236, 198, 107, 0.4);
  transform-origin: 50% 125%;
  transition: transform 0.9s var(--ease);
}

.card-fan img:nth-child(1) {
  transform: translateX(-50%) rotate(-15deg) translateX(-30%);
}

.card-fan img:nth-child(2) {
  transform: translateX(-50%) rotate(15deg) translateX(30%);
}

.card-fan img:nth-child(3) {
  transform: translateX(-50%) translateY(-3%);
  z-index: 1;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(236, 198, 107, 0.65), 0 0 70px -12px rgba(236, 198, 107, 0.35);
}

.game-hero .card-fan {
  max-width: 640px;
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .card-fan:hover img:nth-child(1) {
    transform: translateX(-50%) rotate(-20deg) translateX(-38%);
  }

  .card-fan:hover img:nth-child(2) {
    transform: translateX(-50%) rotate(20deg) translateX(38%);
  }

  .card-fan:hover img:nth-child(3) {
    transform: translateX(-50%) translateY(-7%);
  }
}

/* ---------- Intro statement ---------- */

.intro {
  background: radial-gradient(48% 70% at 50% 46%, rgba(13, 81, 58, 0.22), transparent 72%);
}

.intro-inner {
  display: grid;
  gap: 44px;
  text-align: center;
}

.intro-statement {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.75rem, 1.2rem + 2.2vw, 3.1rem);
  line-height: 1.22;
  letter-spacing: -0.005em;
  color: var(--ivory);
}

/* ---------- Pillars ---------- */

.pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.pillar {
  display: grid;
  align-content: start;
  gap: 16px;
  padding-block: 44px 8px;
  padding-inline: 0 40px;
}

.pillar + .pillar {
  padding-inline-start: 40px;
  border-inline-start: 1px solid var(--line-2);
}

.pillar-num {
  font-family: var(--display);
  font-style: italic;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--gold);
}

.pillar p {
  color: var(--text-2);
}

@media (max-width: 900px) {
  .pillars {
    grid-template-columns: minmax(0, 1fr);
  }

  .pillar,
  .pillar + .pillar {
    padding: 32px 0;
    border-inline-start: 0;
  }

  .pillar + .pillar {
    border-top: 1px solid var(--line-2);
  }
}

/* ---------- Feature grid ---------- */

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: var(--line-2);
  overflow: hidden;
}

.feature {
  position: relative;
  display: grid;
  align-content: start;
  gap: 14px;
  padding: clamp(28px, 3vw, 40px);
  background: var(--ink);
  transition: background 0.5s var(--ease);
}

.feature:hover {
  background: var(--ink-1);
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--gold);
  transition: background 0.5s var(--ease), border-color 0.5s var(--ease);
}

.feature-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature:hover .feature-icon,
.card:hover .feature-icon {
  background: rgba(236, 198, 107, 0.1);
  border-color: rgba(236, 198, 107, 0.5);
}

.feature h3 {
  font-family: var(--sans);
  font-size: 1.12rem;
  font-weight: 500;
  letter-spacing: 0.005em;
  line-height: 1.3;
}

.feature p {
  color: var(--text-2);
  font-size: 15.5px;
}

@media (max-width: 960px) {
  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .features {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- Game page hero ---------- */

.game-hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(44px, 6vw, 92px));
  padding-bottom: clamp(64px, 6vw, 112px);
  isolation: isolate;
  overflow: clip;
}

.game-hero .hero-bg {
  background:
    radial-gradient(56% 66% at 78% 42%, rgba(18, 112, 79, 0.52), transparent 72%),
    radial-gradient(40% 40% at 8% 0%, rgba(236, 198, 107, 0.07), transparent 70%),
    var(--ink);
}

.game-hero--slots .hero-bg {
  background:
    radial-gradient(52% 62% at 78% 44%, rgba(104, 52, 150, 0.42), transparent 72%),
    radial-gradient(42% 46% at 72% 62%, rgba(236, 198, 107, 0.14), transparent 70%),
    radial-gradient(40% 40% at 8% 0%, rgba(13, 81, 58, 0.34), transparent 70%),
    var(--ink);
}

.game-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 22%;
  z-index: -1;
  background: linear-gradient(180deg, transparent, var(--ink));
  pointer-events: none;
}

.game-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  align-items: center;
  gap: clamp(40px, 5vw, 80px);
}

.game-hero-copy {
  display: grid;
  gap: 28px;
  justify-items: start;
}

.game-hero-copy .eyebrow {
  margin: 0;
}

.rating-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--text-2);
}

.chip strong {
  color: var(--text);
  font-weight: 500;
}

/* Poker: a tablet with a phone in front of it. */
.poker-stage {
  position: relative;
  width: 100%;
  max-width: 640px;
  aspect-ratio: 1 / 0.99;
  justify-self: end;
}

.poker-stage::before {
  content: "";
  position: absolute;
  inset: 6% -8% -4% -4%;
  background: radial-gradient(closest-side, rgba(27, 138, 98, 0.46), transparent);
  filter: blur(10px);
  pointer-events: none;
}

.poker-stage-tablet {
  position: absolute;
  top: 0;
  inset-inline-end: 0;
  width: 70%;
  rotate: 2.5deg;
}

.poker-stage-phone {
  position: absolute;
  inset-inline-start: 2%;
  bottom: 0;
  width: 33%;
  rotate: -5deg;
  z-index: 1;
}

@media (prefers-reduced-motion: no-preference) {
  .poker-stage > *,
  .game-hero .card-fan {
    --mx: 0;
    --my: 0;
    --depth: 1;
    animation: float 10s ease-in-out infinite alternate;
  }

  .poker-stage-phone {
    animation-duration: 12s;
    animation-delay: -4s;
  }
}

@media (max-width: 960px) {
  .game-hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 56px;
  }

  .poker-stage {
    justify-self: center;
    max-width: 520px;
  }
}

/* ---------- Spec list ---------- */

.specs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  border-block: 1px solid var(--line);
}

.specs > div {
  padding-block: 26px;
  padding-inline: 0 24px;
}

.specs > div + div {
  padding-inline-start: 24px;
  border-inline-start: 1px solid var(--line-2);
}

.specs dt {
  margin-bottom: 8px;
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-3);
}

.specs dd {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.25rem, 1.05rem + 0.9vw, 1.5rem);
  line-height: 1.2;
  font-weight: 500;
}

.game-hero + .section--tight {
  padding-top: 0;
}

@media (max-width: 860px) {
  .specs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .specs dt {
    letter-spacing: 0.16em;
  }

  .specs > div:nth-child(odd) {
    padding-inline-start: 0;
    border-inline-start: 0;
  }

  .specs > div:nth-child(n + 3) {
    border-top: 1px solid var(--line-2);
  }
}

/* Phones: one fact per row, so long labels in any language have the full width. */
@media (max-width: 480px) {
  .specs {
    grid-template-columns: minmax(0, 1fr);
  }

  .specs > div,
  .specs > div + div {
    padding: 18px 0;
    border-inline-start: 0;
  }

  .specs > div + div {
    border-top: 1px solid var(--line-2);
  }

  .specs dt {
    margin-bottom: 4px;
  }
}

/* ---------- Gallery (scroll-snap) ---------- */

.gallery {
  position: relative;
}

.gallery-track {
  --slide: clamp(220px, 23vw, 286px);
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: var(--slide);
  gap: clamp(16px, 2vw, 28px);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  padding: 24px var(--gutter) 44px;
  margin-inline: calc(-1 * var(--gutter));
  scrollbar-width: none;
}

.gallery-track::-webkit-scrollbar {
  display: none;
}

.gallery-track > * {
  scroll-snap-align: start;
}

.gallery figure {
  margin: 0;
  display: grid;
  align-content: start;
  gap: 18px;
}

.gallery figcaption {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-3);
  letter-spacing: 0.02em;
}

.gallery-controls {
  display: flex;
  gap: 10px;
}

.gallery-controls button {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--gold);
  cursor: pointer;
  transition: background 0.3s, border-color 0.3s, opacity 0.3s;
}

.gallery-controls button:hover:not(:disabled) {
  background: rgba(236, 198, 107, 0.09);
  border-color: var(--gold);
}

.gallery-controls button:disabled {
  opacity: 0.3;
  cursor: default;
}

.gallery-controls svg {
  width: 18px;
  height: 18px;
}

/* Slots Palace theme cards */

.gallery--themes .gallery-track {
  --slide: clamp(224px, 22vw, 272px);
}

.theme-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 0 0 1px var(--line-2);
  transition: translate 0.6s var(--ease), box-shadow 0.6s var(--ease);
}

.theme-card:hover {
  translate: 0 -6px;
  box-shadow: 0 0 0 1px rgba(236, 198, 107, 0.5), 0 30px 50px -26px rgba(0, 0, 0, 0.9);
}

.theme-card img {
  width: 100%;
  aspect-ratio: 5 / 6;
  object-fit: cover;
  transition: scale 1.2s var(--ease);
}

.theme-card:hover img {
  scale: 1.05;
}

.gallery .theme-card figcaption {
  position: absolute;
  inset: auto 0 0 0;
  display: grid;
  gap: 2px;
  padding: 64px 20px 20px;
  background: linear-gradient(180deg, transparent, rgba(8, 11, 14, 0.82) 46%, rgba(8, 11, 14, 0.96));
  color: #d5cfc2;
}

.theme-card figcaption strong {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.15;
  color: var(--ivory);
}

.theme-card figcaption span {
  font-size: 13.5px;
}

/* ---------- Split / prose blocks ---------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.split > :first-child {
  position: sticky;
  top: calc(var(--header-h) + 32px);
}

@media (max-width: 900px) {
  .split {
    grid-template-columns: minmax(0, 1fr);
  }

  .split > :first-child {
    position: static;
  }
}

/* ---------- Notice band (18+, social casino only) ---------- */

.notice {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  padding: clamp(28px, 3.5vw, 44px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(70% 160% at 0% 0%, rgba(13, 81, 58, 0.42), transparent 60%),
    var(--ink-1);
}

.notice-seal {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  outline: 1px solid rgba(236, 198, 107, 0.35);
  outline-offset: -7px;
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--gold);
}

.notice h2 {
  margin-bottom: 8px;
  font-family: var(--display);
  font-size: 1.75rem;
  font-weight: 500;
}

.notice p {
  color: var(--text-2);
  font-size: 15.5px;
}

@media (max-width: 620px) {
  .notice {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- Cards ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.card {
  position: relative;
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 32px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  color: inherit;
  text-decoration: none;
  transition: border-color 0.45s var(--ease), background 0.45s var(--ease), translate 0.45s var(--ease),
    box-shadow 0.45s var(--ease);
}

a.card:hover {
  border-color: rgba(236, 198, 107, 0.4);
  translate: 0 -3px;
  box-shadow: 0 30px 50px -34px rgba(0, 0, 0, 0.9);
}

.card h3 {
  font-family: var(--display);
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1.12;
}

.card p {
  color: var(--text-2);
  font-size: 15.5px;
}

.card .text-link {
  margin-top: 6px;
}

/* ---------- Games index ---------- */

.game-tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.game-tile {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  border: 1px solid var(--line-2);
  border-radius: calc(var(--radius) + 6px);
  overflow: hidden;
  background: var(--ink-1);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.5s var(--ease), translate 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

a.game-tile:hover {
  border-color: rgba(236, 198, 107, 0.45);
  translate: 0 -4px;
  box-shadow: 0 40px 70px -40px rgba(0, 0, 0, 0.95);
}

.game-tile-art {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--ink-2);
}

.game-tile-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: scale 1.4s var(--ease);
}

.game-tile:hover .game-tile-art img {
  scale: 1.04;
}

.game-tile-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 52%, rgba(11, 15, 19, 0.96));
}

.game-tile-body {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
  align-content: start;
  justify-items: start;
  padding: 0 32px 32px;
  margin-top: -44px;
}

.game-tile-body .app-icon {
  width: 68px;
  height: 68px;
}

.game-tile-body p:not(.eyebrow) {
  color: var(--text-2);
}

/* Not a link: a quiet panel with the orbits drawn across it. */
.game-tile--soon {
  display: grid;
  place-items: center;
  min-height: 340px;
  padding: clamp(40px, 5vw, 64px) clamp(28px, 4vw, 56px);
  text-align: center;
  isolation: isolate;
  background:
    radial-gradient(60% 70% at 50% 108%, rgba(13, 81, 58, 0.5), transparent 70%),
    var(--ink-1);
}

.game-tile--soon::before {
  content: "";
  position: absolute;
  inset: -30% -10% -30% -10%;
  z-index: -1;
  background: var(--orbits) center / contain no-repeat;
  opacity: 0.55;
  pointer-events: none;
}

.game-tile--soon:nth-child(even)::before {
  scale: -1 1;
}

.mark-badge .mark {
  width: 76px;
  height: auto;
  margin-bottom: 8px;
}

@media (max-width: 860px) {
  .game-tiles {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Download rows */

.download-rows {
  display: grid;
  border-top: 1px solid var(--line);
}

.download-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line-2);
}

.download-row h3 {
  margin-bottom: 4px;
  font-family: var(--display);
  font-size: 1.7rem;
  font-weight: 600;
}

.download-row .muted {
  font-size: 15px;
}

@media (max-width: 760px) {
  .download-row {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .download-row .store-badges {
    grid-column: 1 / -1;
  }
}

/* ---------- FAQ ---------- */

.faq {
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line-2);
}

.faq summary {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  font-size: 1.12rem;
  font-weight: 500;
  line-height: 1.4;
  cursor: pointer;
  list-style: none;
  transition: color 0.25s;
}

/* The question is a flex item: `anywhere` lets a very long word or phrase wrap
   instead of setting the item's minimum width. */
.faq summary {
  overflow-wrap: anywhere;
}

.faq summary:hover {
  color: var(--accent);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  flex: none;
  width: 11px;
  height: 11px;
  margin-inline-end: 4px;
  border-right: 1.5px solid var(--accent);
  border-bottom: 1.5px solid var(--accent);
  transform: translateY(-3px) rotate(45deg);
  transition: transform 0.4s var(--ease);
}

.faq details[open] summary::after {
  transform: translateY(3px) rotate(225deg);
}

.faq .answer {
  display: grid;
  gap: 14px;
  padding-block: 0 28px;
  padding-inline: 0 48px;
  color: var(--text-2);
}

/* Answers open with a slide where the browser can animate to auto height. */
@supports (interpolate-size: allow-keywords) {
  @media (prefers-reduced-motion: no-preference) {
    .faq details {
      interpolate-size: allow-keywords;
    }

    .faq details::details-content {
      height: 0;
      overflow: clip;
      transition: height 0.45s var(--ease), content-visibility 0.45s allow-discrete;
    }

    .faq details[open]::details-content {
      height: auto;
    }
  }
}

.faq-group + .faq-group {
  margin-top: 64px;
}

.faq-group h2 {
  margin-bottom: 18px;
}

/* ---------- Page hero (inner pages) ---------- */

.page-hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(56px, 7vw, 116px));
  padding-bottom: clamp(48px, 5vw, 84px);
  isolation: isolate;
  overflow: clip;
}

.page-hero .hero-bg {
  background:
    radial-gradient(50% 90% at 88% 0%, rgba(13, 81, 58, 0.5), transparent 72%),
    var(--ink);
}

.page-hero .hero-bg {
  -webkit-mask-image: linear-gradient(180deg, #000 45%, transparent);
  mask-image: linear-gradient(180deg, #000 45%, transparent);
}

/* The orbits, drawn large and let run off the edge of the page. */
.page-hero .hero-bg::before {
  content: "";
  position: absolute;
  inset-block: -20% -30%;
  inset-inline-end: -8%;
  width: min(62%, 760px);
  background: var(--orbits) center / contain no-repeat;
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent);
  mask-image: linear-gradient(180deg, #000 55%, transparent);
  pointer-events: none;
}

.page-hero-inner {
  display: grid;
  gap: 26px;
  justify-items: start;
}

.page-hero-inner > * {
  max-width: 880px;
}

.page-hero-inner .eyebrow {
  margin: 0;
}

.theme-paper .page-hero .hero-bg {
  background:
    radial-gradient(50% 90% at 88% 0%, rgba(13, 81, 58, 0.12), transparent 72%),
    linear-gradient(180deg, #ebe3d2, var(--ivory));
}

.theme-paper .hero-bg::after {
  display: none;
}

/* ---------- Legal documents ---------- */

.doc {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
  padding-bottom: clamp(80px, 8vw, 140px);
}

.doc-toc {
  position: sticky;
  top: calc(var(--header-h) + 28px);
  max-height: calc(100vh - var(--header-h) - 56px);
  overflow-y: auto;
  padding-inline-end: 8px;
  font-size: 14px;
  scrollbar-width: thin;
}

.doc-toc h2 {
  margin-bottom: 14px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-3);
}

.doc-toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  border-inline-start: 1px solid var(--line-2);
}

.doc-toc a {
  display: block;
  padding-block: 6px;
  padding-inline-start: 16px;
  margin-inline-start: -1px;
  border-inline-start: 1px solid transparent;
  color: var(--text-2);
  text-decoration: none;
  line-height: 1.4;
  transition: color 0.2s, border-color 0.2s;
}

.doc-toc a:hover,
.doc-toc a.is-active {
  color: var(--text);
  border-inline-start-color: var(--accent);
}

.doc-toc a.is-active {
  font-weight: 500;
}

.doc-body {
  max-width: 72ch;
  font-size: 16.5px;
  line-height: 1.75;
}

.doc-body--wide {
  max-width: none;
}

.doc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin-bottom: 40px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line-2);
  font-size: 14px;
  color: var(--text-3);
}

.doc-meta strong {
  color: var(--text-2);
  font-weight: 500;
}

.doc-body > * + * {
  margin-top: 1.1em;
}

.doc-body h2 {
  margin-top: 2.1em;
  padding-top: 0.2em;
  font-family: var(--display);
  font-size: clamp(1.7rem, 1.4rem + 1vw, 2.2rem);
  font-weight: 600;
  line-height: 1.15;
}

.doc-body > h2:first-child,
.doc-meta + h2 {
  margin-top: 0;
}

.doc-body h3 {
  margin-top: 1.8em;
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.doc-body ul,
.doc-body ol {
  padding-inline-start: 1.3em;
}

.doc-body li + li {
  margin-top: 0.45em;
}

.doc-body li::marker {
  color: var(--accent);
}

.doc-body strong {
  font-weight: 600;
  color: var(--text);
}

.doc-body .callout {
  padding: 22px 26px;
  border-inline-start: 2px solid var(--accent);
  border-start-end-radius: var(--radius-sm);
  border-end-end-radius: var(--radius-sm);
  background: var(--surface-2);
}

.doc-body .callout > * + * {
  margin-top: 0.7em;
}

.doc-body .caps {
  font-size: 15px;
  letter-spacing: 0.01em;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
}

.doc-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.55;
}

.doc-body th,
.doc-body td {
  padding: 14px 16px;
  text-align: start;
  vertical-align: top;
  border-bottom: 1px solid var(--line-2);
}

.doc-body tr:last-child td {
  border-bottom: 0;
}

.doc-body th {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
  background: var(--surface);
}

.translation-notice {
  margin: 0 0 32px;
  padding: 14px 18px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  color: var(--text-2);
}

@media (max-width: 960px) {
  .doc {
    grid-template-columns: minmax(0, 1fr);
  }

  .doc-toc {
    position: static;
    max-height: none;
    padding: 22px 24px;
    border: 1px solid var(--line-2);
    border-radius: var(--radius-sm);
    background: var(--surface);
  }

  .doc-toc ol {
    columns: 2 220px;
    column-gap: 24px;
    border-inline-start: 0;
  }

  .doc-toc a {
    padding-inline-start: 0;
    border-inline-start: 0;
  }
}

/* Legal hub */

.legal-list {
  display: grid;
  border-top: 1px solid var(--line);
}

.legal-list a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line-2);
  color: inherit;
  text-decoration: none;
}

.legal-list h2 {
  font-family: var(--display);
  font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem);
  font-weight: 600;
  transition: color 0.25s;
}

.legal-list a:hover h2 {
  color: var(--accent);
}

.legal-list p {
  margin-top: 6px;
  color: var(--text-2);
  font-size: 15.5px;
}

.legal-list .arrow {
  width: 22px;
  height: 22px;
  color: var(--accent);
}

.legal-list a:hover .arrow {
  translate: 5px 0;
}

/* ---------- Contact blocks ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.contact-card {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 28px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
}

.contact-card h3 {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-3);
}

.contact-card > a,
.contact-card .contact-card-name {
  font-family: var(--display);
  font-size: 1.55rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--accent);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.contact-card .contact-card-name {
  color: var(--text);
}

.contact-card > a:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

.contact-card p {
  font-size: 15px;
  color: var(--text-2);
}

.contact-note {
  margin-top: 22px;
}

/* ---------- Steps ---------- */

.steps {
  display: grid;
  counter-reset: step;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  position: relative;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 20px;
  padding: 24px 0;
  border-top: 1px solid var(--line-2);
  counter-increment: step;
}

.steps li:first-child {
  border-top-color: var(--line);
}

.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--accent);
}

.steps h3 {
  margin-bottom: 4px;
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.4;
}

.steps p {
  color: var(--text-2);
}

/* ---------- CTA band: a table to sit down at ----------
 * A quilted rail with a line of gold stitching, felt lit from above, and the mark
 * printed tone-on-tone on the cloth.
 */

.cta-band {
  --rail: clamp(14px, 1.7vw, 22px);
  --r: clamp(34px, 11vw, 150px);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) auto;
  gap: 40px;
  align-items: center;
  padding: clamp(60px, 7vw, 100px) clamp(34px, 8.5vw, 124px);
  border-radius: var(--r);
  color: var(--ivory);
  background:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 8px),
    repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 8px),
    linear-gradient(180deg, #20262c, #0d1114);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 0 0 1px rgba(0, 0, 0, 0.8), var(--shadow-lg);
}

/* Stitching along the rail */
.cta-band::before {
  content: "";
  position: absolute;
  inset: calc(var(--rail) * 0.46);
  z-index: -2;
  border: 1.5px dashed rgba(236, 198, 107, 0.72);
  border-radius: calc(var(--r) - var(--rail) * 0.46);
  pointer-events: none;
}

/* The felt */
.cta-band::after {
  content: "";
  position: absolute;
  inset: var(--rail);
  z-index: -2;
  border-radius: calc(var(--r) - var(--rail));
  background:
    var(--grain),
    radial-gradient(90% 130% at 34% 30%, #1d7d59 0%, #12613f 34%, #0b4631 66%, #06281d 100%);
  box-shadow: inset 0 0 0 1.5px rgba(176, 255, 220, 0.5), inset 0 0 26px rgba(44, 245, 165, 0.3),
    inset 0 -40px 90px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

.cta-band .mark {
  position: absolute;
  inset-inline-end: 7%;
  top: 50%;
  z-index: -1;
  width: min(36%, 400px);
  height: auto;
  translate: 0 -50%;
  pointer-events: none;
}

.cta-band .mark path {
  fill: rgba(3, 26, 18, 0.24);
}

.cta-band .muted {
  color: rgba(244, 239, 228, 0.78);
}

.cta-band .eyebrow {
  margin: 0;
}

.cta-band .button--ghost {
  --button-border: rgba(244, 239, 228, 0.55);
  --button-bg: rgba(4, 26, 18, 0.35);
}

.cta-band .button--ghost:hover {
  --button-bg: rgba(4, 26, 18, 0.55);
  --button-border: var(--gold-bright);
}

.cta-band .store-badge--soon {
  background: rgba(4, 26, 18, 0.5);
  border-color: rgba(244, 239, 228, 0.4);
  color: rgba(244, 239, 228, 0.75);
}

.cta-band .store-badge--soon .store-badge-text small,
.cta-band .store-badge-note {
  color: rgba(244, 239, 228, 0.7);
}

@media (max-width: 860px) {
  .cta-band {
    grid-template-columns: minmax(0, 1fr);
    gap: 34px;
  }

  .cta-band .mark {
    inset-inline-end: -10%;
    top: auto;
    bottom: 4%;
    width: 64%;
    translate: 0 0;
  }
}

/* ---------- Footer ---------- */

.site-footer {
  position: relative;
  padding-top: clamp(72px, 7vw, 112px);
  padding-bottom: 40px;
  background: linear-gradient(180deg, var(--ink), #05080a);
  color: var(--ivory);
  font-size: 15px;
  --text: var(--ivory);
  --text-2: #bdb7aa;
  --text-3: #8f8b82;
  --line: rgba(236, 198, 107, 0.18);
  --line-2: rgba(244, 239, 228, 0.09);
  --link: var(--gold);
  --accent: var(--gold);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(236, 198, 107, 0.35) 30%, rgba(236, 198, 107, 0.35) 70%, transparent);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(4, minmax(0, 1fr));
  gap: 40px;
}

.footer-brand {
  display: grid;
  gap: 20px;
  align-content: start;
  max-width: 340px;
}

.footer-brand .logo {
  height: 54px;
}

.footer-brand p {
  color: var(--text-2);
}

.footer-col h2 {
  margin-bottom: 18px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}

.footer-col ul {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

.footer-col li {
  overflow-wrap: break-word;
}

.footer-col a {
  color: var(--text-2);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--ivory);
}

.footer-disclaimer {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  margin-top: clamp(56px, 6vw, 88px);
  padding: 28px 0;
  border-block: 1px solid var(--line-2);
}

.age-badge {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.02em;
  color: var(--gold);
}

.footer-disclaimer p {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--text-3);
}

.footer-disclaimer strong {
  color: var(--text-2);
  font-weight: 500;
}

.footer-disclaimer p + p {
  margin-top: 8px;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
  padding-top: 28px;
  font-size: 13px;
  color: var(--text-3);
}

.footer-bottom ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.footer-bottom a {
  color: var(--text-3);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-bottom a:hover {
  color: var(--ivory);
}

@media (max-width: 1023px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 520px) {
  .footer-disclaimer {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-grid {
    gap: 36px 24px;
  }

  .footer-col h2 {
    letter-spacing: 0.14em;
  }
}

/* ---------- About: the mark ---------- */

.about-mark {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: clamp(40px, 7vw, 120px);
}

.about-mark-art {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 50%;
  background:
    radial-gradient(closest-side, rgba(18, 112, 79, 0.4), transparent),
    var(--ink-1);
}

.about-mark-art::before,
.about-mark-art::after {
  content: "";
  position: absolute;
  inset: 9%;
  border: 1px solid var(--line-2);
  border-radius: 50%;
}

.about-mark-art::after {
  inset: 18%;
  border-style: dashed;
  border-color: rgba(236, 198, 107, 0.16);
}

.about-mark-art .mark {
  width: 58%;
  height: auto;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.55));
}

@media (prefers-reduced-motion: no-preference) {
  .about-mark-art::after {
    animation: spin 90s linear infinite;
  }
}

@keyframes spin {
  to {
    rotate: 360deg;
  }
}

@media (max-width: 860px) {
  .about-mark {
    grid-template-columns: minmax(0, 1fr);
  }

  .about-mark-art {
    width: 100%;
    max-width: 360px;
    margin-inline: auto;
  }
}

/* ---------- Web deletion form ---------- */

.delete-panel {
  display: grid;
  gap: 20px;
  margin-top: 1.4em;
}

.delete-form {
  display: grid;
  gap: 6px;
  padding: 28px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: var(--surface);
}

.doc-body .delete-form h3 {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: 1.5rem;
}

.delete-form label {
  margin-top: 12px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.delete-form input {
  width: 100%;
  min-height: 50px;
  padding: 10px 14px;
  border: 1px solid rgba(8, 11, 14, 0.2);
  border-radius: var(--radius-sm);
  background: #fffdf8;
  color: var(--text);
  font: inherit;
}

.delete-form input:focus-visible {
  outline: 2px solid var(--felt);
  outline-offset: 1px;
}

.delete-form .hint {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-3);
}

.delete-form .button {
  justify-self: start;
  margin-top: 14px;
}

.delete-form .button[disabled] {
  opacity: 0.6;
  cursor: progress;
}

.delete-form .result:empty {
  display: none;
}

.delete-form .result {
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  font-size: 15px;
}

.key-block {
  padding: 16px 18px;
  border-inline-start: 2px solid var(--felt);
  border-start-end-radius: var(--radius-sm);
  border-end-end-radius: var(--radius-sm);
  background: var(--surface-2);
  font-size: 15px;
}

.key-block code,
.delete-form code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 14px;
  word-break: break-all;
}

/* ---------- 404 ---------- */

.lost {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: calc(var(--header-h) + 40px) var(--gutter) 80px;
  isolation: isolate;
}

.lost .hero-bg {
  background:
    radial-gradient(50% 50% at 50% 44%, rgba(18, 112, 79, 0.4), transparent 72%),
    var(--ink);
}

.lost .hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--orbits) center 42% / min(900px, 150vw) auto no-repeat;
}

.lost-inner {
  display: grid;
  gap: 24px;
  justify-items: center;
  max-width: 600px;
}

.lost .mark {
  width: 112px;
  height: auto;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.6));
}

/* ---------- Reveal on scroll ---------- */

@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
    transition-delay: calc(var(--reveal-index, 0) * 90ms);
  }

  .js .showcase-media[data-reveal] {
    transform: translateY(36px) scale(0.97);
  }

  .js [data-reveal].is-visible {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Scripts: fonts per language ----------
 * Latin keeps Cormorant Garamond + Outfit. Other scripts fall through to a face
 * loaded for that language only (build.py FONT_EXTRA), so Latin words such as
 * "Boqu Texas Hold'em Poker" still match the brand.
 */

:root:lang(ru),
:root:lang(sr) {
  --sans: "Outfit", "Jost", system-ui, sans-serif;
}

:root:lang(el) {
  --display: "Cormorant Garamond", "EB Garamond", Georgia, serif;
  --sans: "Outfit", "Manrope", system-ui, sans-serif;
}

:root:lang(vi) {
  --sans: "Be Vietnam Pro", system-ui, sans-serif;
}

:root:lang(th) {
  --display: "Cormorant Garamond", "Noto Serif Thai", serif;
  --sans: "Outfit", "Noto Sans Thai", system-ui, sans-serif;
}

:root:lang(zh-Hans) {
  --display: "Cormorant Garamond", "Noto Serif SC", serif;
  --sans: "Outfit", "Noto Sans SC", "PingFang SC", system-ui, sans-serif;
}

:root:lang(zh-Hant) {
  --display: "Cormorant Garamond", "Noto Serif TC", serif;
  --sans: "Outfit", "Noto Sans TC", "PingFang TC", system-ui, sans-serif;
}

:root:lang(ja) {
  --display: "Cormorant Garamond", "Noto Serif JP", serif;
  --sans: "Outfit", "Noto Sans JP", "Hiragino Sans", system-ui, sans-serif;
}

:root:lang(ko) {
  --display: "Cormorant Garamond", "Noto Serif KR", serif;
  --sans: "Outfit", "Noto Sans KR", "Apple SD Gothic Neo", system-ui, sans-serif;
}

:root:lang(ar) {
  --display: "Noto Naskh Arabic", "Cormorant Garamond", serif;
  --sans: "IBM Plex Sans Arabic", "Outfit", system-ui, sans-serif;
}

:root:lang(he) {
  --display: "Frank Ruhl Libre", "Cormorant Garamond", serif;
  --sans: "Heebo", "Outfit", system-ui, sans-serif;
}

/* Long compound words (Datenschutzerklärung, Erziehungsberechtigte) are hyphenated
   on narrow screens instead of being cut wherever the line happens to end. English
   headings never need it, so they are left alone. */
@media (max-width: 700px) {
  :root:not(:lang(en)) :is(h1, h2, h3, dt, dd, summary, .button, .footer-col li, .doc-body p, .doc-body li, .answer p) {
    -webkit-hyphens: auto;
    hyphens: auto;
    hyphenate-limit-chars: 12 5 5;
    -webkit-hyphenate-limit-before: 5;
    -webkit-hyphenate-limit-after: 5;
  }
}

/* Scripts without true italics: keep the gold accent, drop the slant. */
:lang(zh-Hans) em,
:lang(zh-Hant) em,
:lang(ja) em,
:lang(ko) em,
:lang(th) em,
:lang(ar) em,
:lang(he) em,
:lang(zh-Hans) .pillar-num,
:lang(zh-Hant) .pillar-num,
:lang(ja) .pillar-num,
:lang(ko) .pillar-num {
  font-style: normal;
}

/* CJK and Thai headings read better slightly smaller and looser. */
:lang(zh-Hans) .display,
:lang(zh-Hant) .display,
:lang(ja) .display,
:lang(ko) .display,
:lang(th) .display {
  letter-spacing: 0;
  line-height: 1.2;
}

:lang(zh-Hans) .display--xl,
:lang(zh-Hant) .display--xl,
:lang(ja) .display--xl,
:lang(ko) .display--xl,
:lang(th) .display--xl {
  --size: clamp(2.5rem, 1.4rem + 4.4vw, 5.4rem);
}

:lang(zh-Hans) .display--lg,
:lang(zh-Hant) .display--lg,
:lang(ja) .display--lg,
:lang(ko) .display--lg,
:lang(th) .display--lg {
  --size: clamp(2.2rem, 1.4rem + 3.2vw, 4.2rem);
}

:lang(zh-Hans) .h2,
:lang(zh-Hant) .h2,
:lang(ja) .h2,
:lang(ko) .h2,
:lang(th) .h2 {
  font-size: clamp(1.9rem, 1.4rem + 2vw, 3.1rem);
  letter-spacing: 0;
  line-height: 1.28;
}

:lang(zh-Hans) .intro-statement,
:lang(zh-Hant) .intro-statement,
:lang(ja) .intro-statement,
:lang(ko) .intro-statement,
:lang(th) .intro-statement {
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.4rem);
  line-height: 1.5;
}

:lang(zh-Hans) body,
:lang(zh-Hant) body,
:lang(ja) body {
  line-break: strict;
}

/* Japanese headings break between phrases, not in the middle of a word. */
:lang(ja) :is(h1, h2, h3, .intro-statement, .button, summary, figcaption, .eyebrow) {
  word-break: auto-phrase;
}

:lang(ko) body {
  word-break: keep-all;
}

:lang(th) .lede,
:lang(th) p {
  line-height: 1.85;
}

/* Scripts with no capitals: wide tracking only pulls the letters apart. */
:lang(zh-Hans) .eyebrow,
:lang(zh-Hant) .eyebrow,
:lang(ja) .eyebrow,
:lang(ko) .eyebrow,
:lang(th) .eyebrow,
:lang(he) .eyebrow {
  letter-spacing: 0.14em;
  font-size: 13px;
}

/* Arabic sets small at Latin sizes: body copy a step larger, and never light. */
:lang(ar) body {
  font-size: 18px;
}

:lang(ar) .lede {
  font-size: clamp(1.15rem, 1.05rem + 0.4vw, 1.4rem);
  font-weight: 400;
}

:lang(ar) :is(.feature p, .card p, .notice p, .contact-card p, .legal-list p, .doc-body, .muted, .answer) {
  font-size: 17px;
}

:lang(ar) :is(.fine, .chip, .footer-disclaimer p, .gallery figcaption, .app-id-meta span, .doc-toc, .doc-meta, .footer-bottom, .hint) {
  font-size: 14.5px;
}

/* Arabic letters join; letter-spacing would break them apart. */
:lang(ar) .eyebrow,
:lang(ar) .footer-col h2,
:lang(ar) .specs dt,
:lang(ar) .doc-toc h2,
:lang(ar) .lang-panel-title,
:lang(ar) .store-badge-note,
:lang(ar) .contact-card h3,
:lang(ar) .doc-body th,
:lang(ar) .display,
:lang(ar) .h2 {
  letter-spacing: 0;
}

:lang(ar) .eyebrow {
  font-size: 14px;
}

:lang(ar) .display,
:lang(he) .display,
:lang(ar) .h2,
:lang(he) .h2 {
  line-height: 1.3;
}

/* ---------- Right-to-left ---------- */

[dir="rtl"] .arrow,
[dir="rtl"] .gallery-controls svg {
  scale: -1 1;
}

[dir="rtl"] .button:hover .arrow,
[dir="rtl"] .text-link:hover .arrow,
[dir="rtl"] .card:hover .arrow,
[dir="rtl"] .game-tile:hover .arrow {
  translate: -4px 0;
}

[dir="rtl"] .legal-list a:hover .arrow {
  translate: -5px 0;
}

[dir="rtl"] .site-nav > ul a::after {
  transform-origin: 100% 50%;
}

[dir="rtl"] .button::before {
  translate: 110% 0;
}

@media (prefers-reduced-motion: no-preference) {
  [dir="rtl"] .button:hover::before {
    translate: -110% 0;
  }
}

[dir="rtl"] .hero-bg,
[dir="rtl"] .section--line::before,
[dir="rtl"] .cta-band::after {
  scale: -1 1;
}

/* Names that stay in Latin script keep their own reading order, so a trailing
   full stop ("Boqu Co., Ltd.") does not jump to the other side. */
[dir="rtl"] .contact-card-name,
[dir="rtl"] .app-id-meta strong,
[dir="rtl"] .download-row h3,
[dir="rtl"] .theme-card figcaption strong,
[dir="rtl"] .footer-col a,
[dir="rtl"] .contact-card > a,
[dir="rtl"] .footer-bottom p {
  unicode-bidi: plaintext;
}

[dir="rtl"] .hero-stage-phone {
  rotate: 5deg;
}

[dir="rtl"] .hero-stage-card {
  rotate: -8deg;
}

[dir="rtl"] .poker-stage-tablet {
  rotate: -2.5deg;
}

[dir="rtl"] .poker-stage-phone {
  rotate: 5deg;
}

/* ---------- Print ---------- */

@media print {
  .site-header,
  .site-footer,
  .doc-toc,
  .skip-link,
  .lang-hint {
    display: none !important;
  }

  body,
  body.theme-paper {
    background: #fff;
    color: #000;
  }

  .page-hero {
    padding-top: 0;
  }

  .page-hero .hero-bg {
    display: none;
  }

  .doc {
    display: block;
  }
}
