/* Opalin Play site. A dark showroom on one centred column: anthracite, one opal accent,
   matte surfaces (no glow, no flash). Logical properties throughout so Arabic can run right to left. */
:root {
  --ink: #111115;        /* page: anthracite with a faint violet bias */
  --ink-2: #17171d;      /* bands */
  --ink-3: #202028;      /* raised objects */
  --rule: #2d2d37;       /* hairlines */
  --paper: #ecebf2;      /* text */
  --dim: #a3a2b1;        /* secondary text */
  --opal: #bdeefd;       /* the one accent, taken from the opal */
  --opal-ink: #0c1a20;   /* text on the accent */
  --warn: #f2c48d;       /* example-data ribbon */

  --f-display: "Fredoka", "Baloo 2", ui-rounded, "Arial Rounded MT Bold", system-ui, sans-serif;
  --f-body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-mono: "DM Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --s-12: 0.75rem; --s-14: 0.875rem; --s-16: 1rem; --s-18: 1.125rem;
  --s-22: 1.375rem; --s-30: 1.875rem; --s-44: clamp(2rem, 4.2vw, 2.75rem);
  --s-64: clamp(2.5rem, 6vw, 4rem);
  --wrap: 1180px;
  --radius: 14px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font: 400 var(--s-16)/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
}
img, video, iframe { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--opal); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 600; line-height: 1.12; margin: 0; text-wrap: balance; letter-spacing: -0.01em; overflow-wrap: break-word; hyphens: auto; }
p { margin: 0; }
[hidden] { display: none !important; }
.num, .mult { font-variant-numeric: tabular-nums; unicode-bidi: isolate; }
.mult { font-family: var(--f-mono); }
.mult { white-space: nowrap; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--opal); color: var(--opal-ink); padding: 10px 14px; border-radius: 10px; font-weight: 600; }
.skip:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * 32px);
  margin-inline: auto;
  padding-inline: max(16px, env(safe-area-inset-left, 0px)) max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 760px) { .wrap { padding-inline: max(32px, env(safe-area-inset-left, 0px)) max(32px, env(safe-area-inset-right, 0px)); } }

.eyebrow {
  font: 600 var(--s-12)/1.3 var(--f-body);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
}
:lang(ar) .eyebrow, :lang(hi) .eyebrow, :lang(ja) .eyebrow, :lang(ko) .eyebrow, :lang(zh) .eyebrow { letter-spacing: 0.02em; }
.lede { font-size: var(--s-18); color: var(--dim); max-width: 36em; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  padding: 0.8em 1.25em;
  border-radius: 999px;
  font: 600 var(--s-16)/1.1 var(--f-body);
  text-decoration: none; text-align: center;
  border: 1px solid var(--rule);
  background: none; color: var(--paper); cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.btn-primary { background: var(--opal); color: var(--opal-ink); border-color: var(--opal); }
.btn-primary:hover { background: var(--paper); border-color: var(--paper); }
.btn-ghost:hover { border-color: var(--dim); }
.btn-big { font-size: var(--s-18); padding: 0.95em 1.6em; }
.btn[aria-disabled="true"] { opacity: .55; cursor: default; pointer-events: none; }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }

.chip {
  display: inline-flex; align-items: center; gap: 8px;
  font: 500 var(--s-12)/1 var(--f-mono); letter-spacing: 0.04em;
  padding: 7px 10px; border-radius: 999px;
  background: var(--ink); color: var(--paper); border: 1px solid var(--rule);
  white-space: nowrap;
}
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--opal); }
.chip-new .dot { background: #9be3a4; }
.chip-live { border-color: var(--opal); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- 18+ reminder (#9) ---------- */
.age-bar { background: var(--ink-3); border-bottom: 1px solid var(--rule); font-size: var(--s-14); }
.age-bar .wrap { display: flex; align-items: center; gap: 12px; padding-block: 8px; }
.age-bar p { flex: 1; color: var(--dim); }
.age-bar strong { color: var(--paper); font-weight: 600; }
.age-bar a { color: var(--opal); text-underline-offset: 3px; }
.x-btn {
  flex: none; width: 34px; height: 34px; display: grid; place-content: center;
  border-radius: 50%; border: 1px solid var(--rule); background: var(--ink); color: var(--paper);
  font: 400 20px/1 var(--f-body); cursor: pointer;
}
.x-btn:hover { border-color: var(--dim); }
html.age-ok .age-bar { display: none; }

/* ---------- live counters (#77) ---------- */
.counters { background: var(--ink-2); border-bottom: 1px solid var(--rule); font-size: var(--s-14); }
.counters .wrap { display: flex; flex-wrap: wrap; gap: 6px 26px; padding-block: 8px; justify-content: center; }
.counters a { text-decoration: none; color: var(--dim); display: inline-flex; gap: 8px; align-items: baseline; }
.counters a:hover { color: var(--paper); }
.counters .num { color: var(--paper); font-weight: 500; }

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 50;
  background: var(--ink);
  background: color-mix(in srgb, var(--ink) 90%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
  padding-top: env(safe-area-inset-top, 0px);
}
.top .wrap { display: flex; align-items: center; gap: 18px; padding-block: 12px; }
.brand { display: block; flex: none; }
.brand img { height: 30px; width: auto; }
.nav { display: flex; gap: 20px; margin-inline-start: auto; align-items: center; }
.nav a { text-decoration: none; color: var(--dim); font-weight: 500; font-size: var(--s-14); display: inline-flex; gap: 6px; align-items: center; white-space: nowrap; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--paper); }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--opal); text-underline-offset: 8px; text-decoration-thickness: 2px; }
.nav .tick, .menu-panel .tick { font: 500 var(--s-12)/1 var(--f-mono); color: var(--opal); unicode-bidi: isolate; white-space: nowrap; }
.nav .badge, .menu-panel .badge { font: 600 11px/1 var(--f-mono); background: var(--opal); color: var(--opal-ink); border-radius: 999px; padding: 3px 6px; }
.menu-panel a { align-items: center; }
.menu-panel a > span:first-child { margin-inline-end: auto; }
.top-tools { display: flex; align-items: center; gap: 10px; flex: none; }
.top .btn { padding: 0.6em 1em; font-size: var(--s-14); flex: none; }
.socials { display: flex; gap: 4px; }
.socials a { width: 34px; height: 34px; display: grid; place-content: center; border-radius: 50%; color: var(--dim); }
.socials a:hover { color: var(--paper); background: var(--ink-3); }
.socials svg { width: 18px; height: 18px; }

/* dropdowns: language menu and phone menu, both <details> so they work without script */
.dd { position: relative; }
.dd > summary { list-style: none; cursor: pointer; }
.dd > summary::-webkit-details-marker { display: none; }
.dd-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font: 600 var(--s-12)/1 var(--f-mono); letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--paper); border: 1px solid var(--rule); border-radius: 999px; padding: 9px 12px;
}
.dd-btn:hover { border-color: var(--dim); }
.dd-btn svg { width: 14px; height: 14px; }
.dd-panel {
  position: absolute; inset-inline-end: 0; top: calc(100% + 8px); z-index: 60;
  min-width: 220px; max-height: min(70vh, 560px); overflow: auto;
  background: var(--ink-2); border: 1px solid var(--rule); border-radius: 14px; padding: 6px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .45);
}
.dd-panel a { display: flex; justify-content: space-between; gap: 14px; padding: 9px 12px; border-radius: 9px; text-decoration: none; color: var(--paper); font-size: var(--s-14); }
.dd-panel a:hover { background: var(--ink-3); }
.dd-panel a[aria-current="true"] { background: var(--ink-3); }
.dd-panel a .code { font: 500 var(--s-12)/1.6 var(--f-mono); color: var(--dim); text-transform: uppercase; }
.lang-list { columns: 1; }
.menu-btn { display: none; }
.menu-panel { min-width: 240px; }
.menu-panel .btn { width: 100%; margin-top: 6px; }
@media (max-width: 980px) {
  .nav, .top .socials { display: none; }
  .top-tools { margin-inline-start: auto; }
  .menu-btn { display: block; }
}
.top.fold .nav, .top.fold .socials { display: none; }
.top.fold .top-tools { margin-inline-start: auto; }
.top.fold .menu-btn { display: block; }
@media (max-width: 480px) {
  .brand img { height: 24px; }
  .top .wrap { gap: 10px; }
  .top-tools > .btn { display: none; }
}

/* ---------- action strip under the menu (#4) ---------- */
.strip { border-bottom: 1px solid var(--rule); background: var(--ink-2); }
.strip .wrap { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px 16px; padding-block: 9px; font-size: var(--s-14); }
.strip p { color: var(--dim); }
.strip p strong { color: var(--paper); font-weight: 600; }
.strip .btn { padding: 0.5em 0.95em; font-size: var(--s-14); }

/* example data ribbon (promotions preview only) */
.example { background: var(--warn); color: #241605; font-size: var(--s-14); font-weight: 600; text-align: center; padding: 8px 16px; }

/* ---------- hero (home) ---------- */
.hero { overflow: hidden; overflow: clip; border-bottom: 1px solid var(--rule); }
.hero .wrap {
  display: grid; gap: 32px; align-items: center;
  grid-template-columns: minmax(0, 1fr);
  padding-block: 40px 56px;
}
@media (min-width: 900px) {
  .hero .wrap { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); padding-block: 64px 80px; gap: 48px; }
  .hero-logo { order: 2; }
}
.hero-copy { display: grid; gap: 22px; min-width: 0; }
.hero h1 { font-size: var(--s-64); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--dim); font: 400 var(--s-14)/1.4 var(--f-mono); }
.hero-facts > span::before { content: "·"; margin-inline-end: 10px; color: var(--dim); }
.hero-facts > span:first-child::before { content: none; }

.hero-logo { display: grid; justify-items: center; gap: 10px; min-width: 0; }
.logo-stage {
  width: min(100%, 520px);
  padding: 0; border: 0; background: none; cursor: pointer;
  border-radius: 20px; direction: ltr;
}
.logo-stage svg { display: block; width: 100%; height: auto; overflow: visible; }
.replay-hint { font: 400 var(--s-12)/1 var(--f-body); color: var(--dim); opacity: .7; }
@media (prefers-reduced-motion: reduce) { .replay-hint { display: none; } .logo-stage { cursor: default; } }

/* Opalin Play intro v4 motion (drop, bounce, charge, OPALIN springs out, PLAY stamps).
   No light effects: no shine band, no glint. Resting state = final logo. */
.op-opal, .op-title, .op-play, .op-shadow { transform-box: fill-box; transform-origin: center; }
.op-shadow { opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .logo-stage.is-playing .op-stage { animation: op-impact 4.4s linear both; }
  .logo-stage.is-playing .op-opal { animation: op-opal 4.4s linear both; }
  .logo-stage.is-playing .op-shadow { animation: op-shadow 4.4s linear both; }
  .logo-stage.is-playing .op-title { animation: op-title 4.4s linear both; }
  .logo-stage.is-playing .op-play { animation: op-play 4.4s linear both; }
}
@keyframes op-impact {
  0%, 37.5%, 43%, 55.5%, 61%, 100% { transform: translate(0, 0); }
  38.5% { transform: translate(-6px, 4px); }
  39.5% { transform: translate(5px, -4px); }
  40.5% { transform: translate(-3px, 2px); }
  41.5% { transform: translate(2px, -1px); }
  56.5% { transform: translate(0, 7px); }
  57.5% { transform: translate(0, -4px); }
  58.5% { transform: translate(0, 2px); }
}
@keyframes op-opal {
  0% { transform: translate(160px, -560px) scale(1.45); animation-timing-function: cubic-bezier(.55, 0, .9, .45); }
  9% { transform: translate(160px, -38px) scale(1.62, 1.22); animation-timing-function: ease-out; }
  12% { transform: translate(160px, -66px) scale(1.36, 1.58); animation-timing-function: ease-in-out; }
  15.5% { transform: translate(160px, -45px) scale(1.47, 1.43); }
  18% { transform: translate(160px, -45px) scale(1.45); }
  21% { transform: translate(158px, -45px) rotate(-3deg) scale(1.46); }
  23% { transform: translate(162px, -45px) rotate(3deg) scale(1.47); }
  25% { transform: translate(159px, -45px) rotate(-4deg) scale(1.49); }
  27% { transform: translate(161px, -45px) rotate(4deg) scale(1.51); }
  29% { transform: translate(157px, -46px) rotate(-6deg) scale(1.53); }
  31% { transform: translate(163px, -44px) rotate(6deg) scale(1.55); }
  33% { transform: translate(158px, -46px) rotate(-7deg) scale(1.58); }
  35% { transform: translate(162px, -45px) rotate(7deg) scale(1.61); }
  37% { transform: translate(160px, -45px) rotate(0deg) scale(1.7, 1.6); animation-timing-function: ease-out; }
  38% { transform: translate(160px, -45px) scale(1.92, 1.72); }
  41% { transform: translate(160px, -50px) scale(1.2); animation-timing-function: cubic-bezier(.3, .1, .2, 1); }
  51% { transform: translate(-6px, 6px) rotate(-10deg) scale(.96, 1.05); animation-timing-function: ease-out; }
  55% { transform: translate(2px, -3px) rotate(5deg) scale(1.04, .97); }
  59% { transform: translate(0, 0) rotate(-2deg) scale(1); }
  62%, 100% { transform: translate(0, 0) rotate(0) scale(1); }
}
@keyframes op-shadow {
  0% { opacity: 0; transform: scale(.3); }
  9% { opacity: .55; transform: scale(1.15, 1); }
  15%, 36% { opacity: .45; transform: scale(1); }
  41%, 100% { opacity: 0; transform: scale(.6); }
}
@keyframes op-title {
  0%, 38.5% { opacity: 0; transform: translateY(70px) scale(.25); animation-timing-function: cubic-bezier(.2, .9, .25, 1.15); }
  45% { opacity: 1; transform: translateY(-14px) scale(1.12, 1.08); animation-timing-function: ease-in-out; }
  49% { transform: translateY(4px) scale(.97, 1.02); }
  53%, 100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes op-play {
  0%, 50% { opacity: 0; transform: rotate(-6deg) scale(2.6); animation-timing-function: cubic-bezier(.55, 0, .85, .4); }
  51% { opacity: 1; }
  56% { transform: rotate(0) scale(1.12, .84); animation-timing-function: ease-out; }
  59.5% { transform: scale(.94, 1.08); animation-timing-function: ease-in-out; }
  63% { transform: scale(1.03, .98); }
  66%, 100% { opacity: 1; transform: scale(1); }
}

/* ---------- latest game, full width (#10) ---------- */
.feature { position: relative; border-bottom: 1px solid var(--rule); background: var(--ink-2); overflow: hidden; }
.feature-art { position: relative; }
.feature-art img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; max-height: 78vh; }
.feature-body { display: grid; gap: 14px; padding-block: 24px 36px; }
.feature-body h2 { font-size: var(--s-64); }
.feature-body .tagline { max-width: 26em; }
.feature-body .hero-ctas { margin-top: 6px; }
@media (min-width: 900px) {
  .feature-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10, 10, 13, .88) 0%, rgba(10, 10, 13, .55) 32%, rgba(10, 10, 13, 0) 62%); }
  .feature-body { position: absolute; inset-inline: 0; bottom: 0; z-index: 1; padding-block: 0 48px; }
}

/* ---------- sections ---------- */
section, [id] { scroll-margin-top: 84px; }
.section { padding-block: 72px; border-bottom: 1px solid var(--rule); }
.section-tight { padding-block: 48px; }
.section-head { display: grid; gap: 12px; margin-bottom: 36px; max-width: 46em; }
.section-head h2, .page-head h1 { font-size: var(--s-44); }
.section-head-row { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 24px; margin-bottom: 28px; }
.section-head-row .section-head { margin-bottom: 0; }
.more-link { color: var(--opal); font-weight: 600; text-underline-offset: 4px; white-space: nowrap; }
.band { background: var(--ink-2); }
.page-head { padding-block: 40px 44px; border-bottom: 1px solid var(--rule); }
.page-head .wrap { display: grid; gap: 14px; }
.page-head .lede { max-width: 40em; }
.back { display: inline-flex; gap: 8px; align-items: center; color: var(--dim); text-decoration: none; font-size: var(--s-14); font-weight: 500; width: max-content; }
.back:hover { color: var(--paper); }
.back .arr { display: inline-block; }
[dir="rtl"] .back .arr, [dir="rtl"] .flip { transform: scaleX(-1); }

/* ---------- game cards (#15) ---------- */
.cards { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); }
.cards-row { grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr)); }
.card { display: grid; gap: 12px; text-decoration: none; min-width: 0; align-content: start; }
.card-art { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 4; background: var(--ink-3); }
.card-art img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
a.card:hover .card-art img { transform: scale(1.03); }
@media (prefers-reduced-motion: reduce) { a.card:hover .card-art img { transform: none; } }
.card-art .chip { position: absolute; inset-inline-start: 12px; top: 12px; background: color-mix(in srgb, var(--ink) 84%, transparent); }
.card-meta { display: grid; gap: 4px; }
.card-meta h3 { font-size: var(--s-22); }
.card-meta p { color: var(--dim); font-size: var(--s-14); }
.card-meta .facts { display: flex; flex-wrap: wrap; gap: 4px 14px; font: 400 var(--s-12)/1.5 var(--f-mono); color: var(--dim); }
.card-soon .card-art {
  display: grid; place-content: center; gap: 12px; text-align: center; padding: 24px;
  background: var(--ink-2); border: 1px dashed var(--rule);
}
.card-soon .card-art img { width: 96px; height: auto; margin-inline: auto; opacity: .55; filter: grayscale(1); }
.card-soon .card-art p { color: var(--dim); font-size: var(--s-14); max-width: 18em; }

/* catalogue tools (#16, #17) */
.tools { display: grid; gap: 14px; margin-bottom: 26px; }
.tools-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.field {
  min-width: 0; padding: 10px 14px; font: 400 var(--s-16)/1.3 var(--f-body);
  color: var(--paper); background: var(--ink-2); border: 1px solid var(--rule); border-radius: 999px;
}
.field::placeholder { color: var(--dim); }
.search { flex: 1 1 240px; }
select.field { padding-inline-end: 34px; appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--dim) 50%), linear-gradient(135deg, var(--dim) 50%, transparent 50%); background-size: 6px 6px; background-repeat: no-repeat; background-position: calc(100% - 18px) 55%, calc(100% - 12px) 55%; }
[dir="rtl"] select.field { background-position: 18px 55%, 12px 55%; padding-inline: 14px 34px; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.seg button, .tabs button {
  font: 600 var(--s-14)/1 var(--f-body); color: var(--dim); background: var(--ink-2);
  border: 1px solid var(--rule); border-radius: 999px; padding: 9px 14px; cursor: pointer;
  display: inline-flex; gap: 8px; align-items: center;
}
.seg button[aria-pressed="true"], .tabs button[aria-selected="true"] { color: var(--opal-ink); background: var(--opal); border-color: var(--opal); }
.seg .n, .tabs .n { font: 500 var(--s-12)/1 var(--f-mono); opacity: .8; }
.empty { color: var(--dim); padding: 24px 0; }
.load-more { display: flex; justify-content: center; margin-top: 28px; }

/* ---------- game page ---------- */
.game-top { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 960px) { .game-top { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; } }
.game-media { display: grid; gap: 10px; min-width: 0; margin: 0; }
.game-media img { border-radius: var(--radius); width: 100%; }
.caption { font: 400 var(--s-12)/1.4 var(--f-body); color: var(--dim); }
.game-body { display: grid; gap: 16px; min-width: 0; align-content: start; }
.game-body h1 { font-size: var(--s-64); }
.by { color: var(--dim); }
.by a { color: var(--paper); text-underline-offset: 3px; }
.tagline { font-size: var(--s-22); line-height: 1.35; font-weight: 500; }
.body-dim { color: var(--dim); max-width: 38em; }
.play-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.release { display: grid; gap: 4px; padding: 14px 16px; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--ink-2); }
.release strong { font: 600 var(--s-22)/1.2 var(--f-display); }
.release span { color: var(--dim); font-size: var(--s-14); }

.ledger { margin: 6px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--rule); }
.ledger div { padding: 14px 0; border-bottom: 1px solid var(--rule); display: grid; gap: 2px; min-width: 0; }
.ledger div:nth-child(odd) { padding-inline-end: 16px; }
.ledger div:nth-child(even) { padding-inline-start: 16px; border-inline-start: 1px solid var(--rule); }
.ledger dt { font: 600 var(--s-12)/1.3 var(--f-body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); }
.ledger dd { margin: 0; font: 500 var(--s-22)/1.2 var(--f-mono); font-variant-numeric: tabular-nums; }
.ledger dd.word { font-family: var(--f-display); font-weight: 600; }

/* playable demo (#19, #80) */
.demo { margin-top: 48px; display: grid; gap: 14px; }
.demo-frame { position: relative; aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--rule); background: var(--ink-3); }
@media (max-width: 700px) { .demo-frame { aspect-ratio: 9 / 16; } }
.demo-frame iframe { width: 100%; height: 100%; border: 0; }
.demo-start { position: absolute; inset: 0; display: grid; place-content: center; gap: 14px; justify-items: center; text-align: center; padding: 20px; background: linear-gradient(rgba(17, 17, 21, .55), rgba(17, 17, 21, .8)), var(--poster) center / cover; border: 0; color: var(--paper); cursor: pointer; width: 100%; }
.demo-start span { color: var(--dim); font-size: var(--s-14); }
.demo-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.demo-foot p { margin: 0; color: var(--dim); font-size: var(--s-14); }

/* rules (#21) */
.rules { margin-top: 72px; display: grid; gap: 72px; }
.rules h2 { font-size: var(--s-44); }
.rules h3 { font-size: var(--s-30); }
.round { display: grid; gap: 40px; grid-template-columns: minmax(0, 1fr); align-items: center; }
@media (min-width: 900px) { .round { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 56px; } }
.steps { list-style: none; margin: 24px 0 0; padding: 0; display: grid; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 4px 14px; padding: 16px 0; border-top: 1px solid var(--rule); }
.steps li::before {
  content: counter(step);
  grid-row: span 3;
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-content: center;
  font: 600 var(--s-14)/1 var(--f-mono);
  border: 1px solid var(--rule); color: var(--opal);
}
.steps strong { font: 600 var(--s-18)/1.3 var(--f-display); }
.steps li > span { color: var(--dim); }
.steps li > small { color: var(--dim); font-size: var(--s-12); font-family: var(--f-mono); }
.board { justify-self: center; width: min(100%, 400px); display: grid; gap: 10px; margin: 0; }
.board video { width: 100%; border-radius: var(--radius); aspect-ratio: 530 / 700; background: var(--ink-3); object-fit: cover; }

.bricks { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; margin-top: 28px; }
.bricks figure { margin: 0; display: grid; gap: 8px; justify-items: center; align-content: start; min-width: 0; }
.bricks img { width: 100%; max-width: 76px; }
.bricks figcaption { font: 400 var(--s-12)/1.3 var(--f-body); color: var(--dim); text-align: center; }
@media (max-width: 560px) { .bricks { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.pieces { display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; margin-top: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.pieces > div { background: var(--ink); padding: 18px; display: grid; gap: 6px; align-content: start; }
.pieces strong { font: 600 var(--s-18)/1.3 var(--f-display); }
.pieces span { color: var(--dim); font-size: var(--s-14); }
.pieces small { color: var(--opal); font: 500 var(--s-12)/1.4 var(--f-mono); }
.pieces img { width: 64px; height: 64px; }

.ladder-head { display: grid; gap: 10px; margin-bottom: 28px; max-width: 46em; }
.ladder-head p { color: var(--dim); }
.world { border-radius: var(--radius); overflow: hidden; margin: 0 0 32px; }
.world img { width: 100%; aspect-ratio: 21 / 8; object-fit: cover; object-position: center 62%; }
.ladder { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 820px) {
  .ladder { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rung:nth-child(1) { margin-top: 64px; }
  .rung:nth-child(2) { margin-top: 32px; }
}
.rung { background: var(--ink-3); border: 1px solid var(--rule); border-radius: var(--radius); padding: 22px; display: grid; gap: 14px; align-content: start; min-width: 0; }
.rung-top { display: flex; align-items: center; gap: 14px; }
.rung-top img { width: 80px; height: 80px; flex: none; }
.rung-count { font: 600 var(--s-14)/1.2 var(--f-mono); color: var(--opal); }
.rung h4 { margin: 2px 0 0; font: 600 var(--s-22)/1.15 var(--f-display); }
.rung dl { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 14px; font-size: var(--s-14); }
.rung dt { color: var(--dim); }
.rung dd { margin: 0; font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.rung p { color: var(--dim); font-size: var(--s-14); }
.note { margin-top: 18px; color: var(--dim); font-size: var(--s-14); max-width: 52em; }
.notes { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.notes li, .ticks li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; color: var(--dim); }
.notes li::before, .ticks li::before { content: ""; width: 8px; height: 8px; margin-top: 0.55em; border-radius: 2px; background: var(--opal); }
.ticks { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 8px; }

/* bonus menu cards */
.mode-group { display: grid; gap: 14px; }
.mode-group + .mode-group { margin-top: 32px; }
.mode-group h4 { font: 600 var(--s-18)/1.3 var(--f-display); color: var(--dim); }
.modes { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.mode { border: 1px solid var(--rule); border-radius: var(--radius); background: var(--ink-2); overflow: hidden; display: grid; grid-template-rows: auto 1fr; min-width: 0; }
.mode img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.mode-plain { aspect-ratio: 3 / 2; display: grid; place-content: center; background: var(--ink-3); font: 600 var(--s-30)/1 var(--f-display); color: var(--dim); }
.mode-body { padding: 16px 18px 18px; display: grid; gap: 6px; align-content: start; }
.mode-head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.mode-head h5 { margin: 0; font: 600 var(--s-18)/1.25 var(--f-display); }
.mode-head .cost { font: 500 var(--s-18)/1 var(--f-mono); color: var(--opal); white-space: nowrap; unicode-bidi: isolate; }
.mode-body p { color: var(--dim); font-size: var(--s-14); }

.masterpiece { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); border: 1px solid var(--rule); border-radius: var(--radius); background: var(--ink-2); padding: 22px; }
@media (min-width: 860px) { .masterpiece { grid-template-columns: 220px minmax(0, 1fr); padding: 28px; } }
.masterpiece img { width: 100%; max-width: 220px; }
.masterpiece-body { display: grid; gap: 12px; }
.masterpiece-body p { color: var(--dim); }

/* phone */
.phone { display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr); align-items: center; }
@media (min-width: 820px) { .phone { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 56px; } }
.phone-shot { justify-self: center; width: min(100%, 300px); margin: 0; }
.phone-shot img { width: 100%; border-radius: 26px; border: 6px solid var(--ink-3); }
.phone-copy { display: grid; gap: 14px; min-width: 0; }
.phone-copy p { color: var(--dim); max-width: 36em; }

/* final block "only on Stake" (#22) */
.final { border: 1px solid var(--rule); border-radius: 22px; background: var(--ink-2); padding: 32px 24px; display: grid; gap: 16px; justify-items: center; text-align: center; }
.final h2 { font-size: var(--s-44); }
.final p { color: var(--dim); max-width: 34em; }
.final .play-row { justify-content: center; }
.age-line { display: inline-flex; gap: 10px; align-items: center; color: var(--dim); font-size: var(--s-14); }
.age { font: 600 var(--s-12)/1 var(--f-mono); border: 1.5px solid var(--dim); color: var(--paper); border-radius: 50%; width: 34px; height: 34px; display: grid; place-content: center; flex: none; }

/* ---------- studios (#12, #26, #27) ---------- */
.studios { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.studio-card { border: 1px solid var(--rule); border-radius: var(--radius); background: var(--ink-2); padding: 20px; display: grid; gap: 14px; text-decoration: none; align-content: start; }
a.studio-card:hover { border-color: var(--dim); }
.studio-logo { height: 56px; display: flex; align-items: center; }
.studio-logo img { max-height: 40px; width: auto; max-width: 100%; }
.studio-logo .mono { font: 600 var(--s-22)/1 var(--f-display); }
.studio-card dl { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: var(--s-14); color: var(--dim); }
.studio-card dl div { display: flex; gap: 6px; }
.studio-card dd { margin: 0; color: var(--paper); font-family: var(--f-mono); }
.studio-more { margin-top: 14px; color: var(--dim); font-size: var(--s-14); }
.studio-more a { color: var(--opal); }
.reel { overflow: hidden; border-block: 1px solid var(--rule); background: var(--ink-2); direction: ltr; }
.reel-track { display: flex; gap: 14px; padding-block: 18px; width: max-content; }
.reel img { height: 160px; width: auto; border-radius: 12px; }
@media (prefers-reduced-motion: no-preference) { .reel-track { animation: reel 50s linear infinite; } .reel:hover .reel-track { animation-play-state: paused; } }
@keyframes reel { to { transform: translateX(-50%); } }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; }
.stats > div { background: var(--ink); padding: 16px 18px; display: grid; gap: 4px; }
.stats dt { font: 600 var(--s-12)/1.3 var(--f-body); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.stats dd { margin: 0; font: 500 var(--s-30)/1.1 var(--f-mono); }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 22px; }

/* studio principles */
.principles { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.principle { display: grid; gap: 10px; align-content: start; padding-top: 18px; border-top: 2px solid var(--paper); min-width: 0; }
.principle h3 { font-size: var(--s-22); }
.principle p { color: var(--dim); }

/* operators */
.ops { display: grid; gap: 40px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 960px) { .ops { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; } }
.ops-copy { display: grid; gap: 18px; align-content: start; min-width: 0; }
.ops-copy p { color: var(--dim); }
.ops-copy h2 { font-size: var(--s-44); }
.sheet { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr); border-top: 1px solid var(--rule); }
.sheet div { display: grid; grid-template-columns: minmax(110px, 1fr) minmax(0, 2.2fr); gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--rule); }
.sheet dt { font: 600 var(--s-12)/1.5 var(--f-body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); padding-top: 2px; }
.sheet dd { margin: 0; min-width: 0; }
.sheet .langs { font-family: var(--f-mono); font-size: var(--s-14); color: var(--dim); margin-inline-start: 6px; }

/* ---------- prose pages (#43–#46) ---------- */
.prose { display: grid; gap: 18px; max-width: 46em; }
.prose h2 { font-size: var(--s-30); margin-top: 22px; }
.prose h3 { font-size: var(--s-22); margin-top: 8px; }
.prose p, .prose li { color: var(--dim); }
.prose strong { color: var(--paper); font-weight: 600; }
.prose a { color: var(--opal); text-underline-offset: 3px; }
.prose ul { margin: 0; padding-inline-start: 1.2em; display: grid; gap: 8px; }
.prose .updated { font: 400 var(--s-14)/1.4 var(--f-body); color: var(--dim); }
.layout-aside { display: grid; gap: 40px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1000px) { .layout-aside { grid-template-columns: minmax(0, 46em) minmax(0, 1fr); gap: 64px; } }
.toc { position: sticky; top: 96px; align-self: start; display: grid; gap: 8px; font-size: var(--s-14); }
.toc a { color: var(--dim); text-decoration: none; }
.toc a:hover { color: var(--paper); }
@media (max-width: 999px) { .toc { display: none; } }
.helplines { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.helpline { border: 1px solid var(--rule); border-radius: var(--radius); background: var(--ink-2); padding: 18px; display: grid; gap: 6px; align-content: start; }
.helpline h3 { font-size: var(--s-18); margin: 0; }
.helpline .where { font: 600 var(--s-12)/1.3 var(--f-body); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.helpline .tel { font: 500 var(--s-22)/1.2 var(--f-mono); color: var(--paper); text-decoration: none; direction: ltr; unicode-bidi: isolate; }
.helpline p { color: var(--dim); font-size: var(--s-14); }
.helpline a { color: var(--opal); text-underline-offset: 3px; overflow-wrap: anywhere; }

/* FAQ (#39): answers stay visible */
.faq { display: grid; gap: 0; border-top: 1px solid var(--rule); max-width: 52em; }
.faq > div { padding: 20px 0; border-bottom: 1px solid var(--rule); display: grid; gap: 8px; }
.faq h3 { font-size: var(--s-18); }
.faq p { color: var(--dim); }
.faq a { color: var(--opal); text-underline-offset: 3px; }

/* ---------- contact ---------- */
.contact .wrap { display: grid; gap: 28px; }
.contact h2 { font-size: var(--s-64); max-width: 12em; }
.contact-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.contact-card { border: 1px solid var(--rule); border-radius: var(--radius); padding: 22px; display: grid; gap: 8px; align-content: start; background: var(--ink-2); }
.contact-card h3 { font-size: var(--s-18); }
.contact-card p { color: var(--dim); font-size: var(--s-14); }
.card-cta { margin-top: 10px; }
.contact-mail { color: var(--dim); }
.contact-mail a, .mail-out a { color: var(--opal); text-underline-offset: 3px; }

/* contact dialog: the CTAs open it with a topic; it prefills an email, it sends nothing itself */
.cd {
  width: min(100% - 32px, 540px); max-height: calc(100dvh - 32px);
  padding: 0; border: 1px solid var(--rule); border-radius: 18px;
  background: var(--ink-2); color: var(--paper);
  overflow: auto; overscroll-behavior: contain;
}
.cd::backdrop { background: rgba(6, 6, 9, .72); }
.cd-box { position: relative; display: grid; gap: 16px; padding: 26px 24px 22px; }
@media (min-width: 560px) { .cd-box { padding: 32px 32px 26px; } }
.cd .x-btn { position: absolute; top: 12px; inset-inline-end: 12px; width: 40px; height: 40px; font-size: 22px; }
.cd h2 { font-size: var(--s-30); padding-inline-end: 44px; }
.cd-lede { color: var(--dim); }
.cd [data-t] { display: none; }
.cd[data-topic="demo"] [data-t~="demo"], .cd[data-topic="partner"] [data-t~="partner"], .cd[data-topic="press"] [data-t~="press"] { display: revert; }
.cd-fields { display: grid; gap: 12px; }
.cd label { display: grid; gap: 6px; font: 600 var(--s-12)/1.3 var(--f-body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); }
.cd input, .cd textarea, .form input, .form textarea {
  width: 100%; min-width: 0; padding: 11px 12px;
  font: 400 var(--s-16)/1.4 var(--f-body); letter-spacing: 0; text-transform: none;
  color: var(--paper); background: var(--ink); border: 1px solid var(--rule); border-radius: 10px;
}
.cd textarea, .form textarea { resize: vertical; min-height: 96px; }
.cd input:focus-visible, .cd textarea:focus-visible, .form input:focus-visible, .form textarea:focus-visible { outline: 2px solid var(--opal); outline-offset: 1px; border-color: transparent; }
.cd-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cd-actions .btn { font-size: var(--s-14); padding: 0.75em 1.1em; }
.cd-note { font-size: var(--s-14); color: var(--dim); }
.cd-note a { color: var(--opal); text-underline-offset: 3px; }
.cd[data-mail="none"] .cd-actions, .cd[data-mail="none"] .cd-fields, .cd[data-mail="none"] [data-mail-on] { display: none; }
.cd:not([data-mail="none"]) [data-mail-off] { display: none; }

/* ---------- footer (#8) ---------- */
.foot { padding-block: 48px calc(40px + env(safe-area-inset-bottom, 0px)); background: var(--ink); }
.foot .wrap { display: grid; gap: 32px; }
.foot-cols { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 720px) { .foot-cols { grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); } }
.foot-brand { display: grid; gap: 12px; align-content: start; }
.foot-brand img { height: 26px; width: auto; }
.foot-brand p { color: var(--dim); font-size: var(--s-14); max-width: 26em; }
.foot-col { display: grid; gap: 10px; align-content: start; }
.foot-col h2 { font: 600 var(--s-12)/1.3 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.foot-col a { color: var(--paper); text-decoration: none; font-size: var(--s-14); width: max-content; max-width: 100%; }
.foot-col a:hover { text-decoration: underline; text-underline-offset: 3px; }
.foot-langs { display: flex; flex-wrap: wrap; gap: 6px 14px; padding-top: 22px; border-top: 1px solid var(--rule); font-size: var(--s-14); }
.foot-langs a { color: var(--dim); text-decoration: none; }
.foot-langs a:hover, .foot-langs a[aria-current="true"] { color: var(--paper); }
.foot-langs a[aria-current="true"] { text-decoration: underline; text-decoration-color: var(--opal); text-underline-offset: 4px; }
.legal { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; color: var(--dim); font-size: var(--s-12); }
.legal a { color: var(--paper); }

/* ---------- promotions (lot E) ---------- */
.promo-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.panel { border: 1px solid var(--rule); border-radius: var(--radius); background: var(--ink-2); padding: 22px; display: grid; gap: 14px; align-content: start; min-width: 0; }
.panel h3 { font-size: var(--s-22); }
.panel p { color: var(--dim); }
.panel-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; align-items: center; }
.kv { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 16px; font-size: var(--s-14); }
.kv dt { color: var(--dim); }
.kv dd { margin: 0; font-family: var(--f-mono); text-align: end; }
.countdown { font: 500 var(--s-18)/1.2 var(--f-mono); font-variant-numeric: tabular-nums; color: var(--paper); unicode-bidi: isolate; }
.big-num { font: 500 var(--s-44)/1 var(--f-mono); color: var(--paper); }
.hash { font: 400 var(--s-12)/1.5 var(--f-mono); color: var(--dim); overflow-wrap: anywhere; direction: ltr; text-align: start; }
.offers { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.offer { border-top: 2px solid var(--opal); padding-top: 16px; display: grid; gap: 8px; }
.offer strong { font: 600 var(--s-30)/1.1 var(--f-display); }
.offer span { color: var(--dim); }
.code-box { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.code { font: 500 var(--s-30)/1 var(--f-mono); letter-spacing: .08em; padding: 12px 18px; border: 1px dashed var(--opal); border-radius: 12px; color: var(--opal); direction: ltr; }
.table-scroll { overflow-x: auto; border: 1px solid var(--rule); border-radius: var(--radius); }
.panel-table { overflow-x: auto; }
.panel-table th, .panel-table td { padding-inline: 8px; }
.panel-table th:first-child, .panel-table td:first-child { padding-inline-start: 0; }
.panel-table th:last-child, .panel-table td:last-child { padding-inline-end: 0; }
table { width: 100%; border-collapse: collapse; font-size: var(--s-14); }
th, td { text-align: start; padding: 12px 16px; border-bottom: 1px solid var(--rule); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
thead th { font: 600 var(--s-12)/1.3 var(--f-body); letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); background: var(--ink-2); white-space: nowrap; }
td.n, th.n { text-align: end; font-family: var(--f-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
td a { color: var(--paper); text-underline-offset: 3px; }
.gauge { height: 14px; border-radius: 999px; background: var(--ink-3); border: 1px solid var(--rule); overflow: hidden; }
.gauge span { display: block; height: 100%; background: var(--opal); border-radius: 999px; }
.tiers { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.tier { border: 1px solid var(--rule); border-radius: 12px; padding: 16px; display: grid; gap: 6px; }
.tier strong { font: 500 var(--s-22)/1.1 var(--f-mono); }
.tier span { color: var(--dim); font-size: var(--s-14); }
.form { display: grid; gap: 12px; max-width: 34em; }
.form label { display: grid; gap: 6px; font-size: var(--s-14); color: var(--dim); font-weight: 600; }
.form-out { font-size: var(--s-14); color: var(--dim); min-height: 1.4em; }
.form-out.ok { color: #9be3a4; }
.form-out.bad { color: #f6a5a5; }
.steps-4 { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.steps-4 li { counter-increment: s; border: 1px solid var(--rule); border-radius: 12px; padding: 18px; display: grid; gap: 6px; align-content: start; }
.steps-4 li::before { content: counter(s); font: 600 var(--s-14)/1 var(--f-mono); color: var(--opal); }
.steps-4 strong { font: 600 var(--s-18)/1.25 var(--f-display); }
.steps-4 span { color: var(--dim); font-size: var(--s-14); }
details.list > summary { cursor: pointer; color: var(--opal); font-weight: 600; font-size: var(--s-14); }
details.list ul { margin: 10px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px 14px; font: 400 var(--s-12)/1.5 var(--f-mono); color: var(--dim); }
.small-print { font-size: var(--s-12); color: var(--dim); }
.small-print a { color: var(--paper); }

/* account link, "your" part, raffle entries, player page owner tools (promos.mjs, site.js « Promotions ») */
.panel .promo-rule { border-inline-start: 3px solid var(--opal); padding-block: 4px; padding-inline: 12px 0; color: var(--paper); font-size: var(--s-14); }
.me, .proof { border: 1px solid var(--rule); border-radius: 12px; padding: 16px; display: grid; gap: 12px; min-width: 0; }
.proof { border-color: var(--opal); }
.panel .proof-target { color: var(--paper); }
.proof-target a, .me a { color: var(--opal); }
.me-head { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; justify-content: space-between; }
.me-part { display: grid; gap: 8px; }
.me-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.me-list li { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; font-size: var(--s-14); border-top: 1px solid var(--rule); padding-top: 8px; }
.me-list li > span:first-child { flex: 1 1 12em; min-width: 0; overflow-wrap: anywhere; }
.me-list .form-out { flex-basis: 100%; min-height: 0; }
.entry-list table { font-size: var(--s-14); margin-top: 10px; }
.you-entries { color: var(--opal); font-weight: 600; }
.owner { display: grid; gap: 10px; }
.code-welcome { color: var(--paper); }

/* ---------- top wins ---------- */
.wins { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.win {
  display: grid; grid-template-columns: 2.2em 56px minmax(0, 1fr) auto; gap: 14px; align-items: center;
  border: 1px solid var(--rule); border-radius: var(--radius); background: var(--ink-2); padding: 12px 16px;
}
.win-rank { font: 500 var(--s-18)/1 var(--f-mono); color: var(--dim); text-align: center; }
.win:first-child .win-rank { color: var(--opal); }
.win-art { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; background: var(--ink-3); }
.win-main { display: grid; gap: 4px; min-width: 0; }
.win-big { font: 500 var(--s-22)/1.1 var(--f-mono); color: var(--paper); }
.win-meta { font-size: var(--s-14); color: var(--dim); overflow-wrap: anywhere; }
.win-replay { font-size: var(--s-14); padding: 0.65em 1em; white-space: nowrap; }
.wins .by-win, .wins[data-by="win"] .by-multi { display: none; }
.wins[data-by="win"] .by-win { display: inline; }
.wins + .small-print, [data-tabs] + .small-print { margin-top: 14px; }
[data-tabs] .tabs { margin-bottom: 14px; }
@media (max-width: 600px) {
  .win { grid-template-columns: 1.6em 44px minmax(0, 1fr); gap: 10px; padding: 12px; }
  .win-art { width: 44px; height: 44px; }
  .win-replay { grid-column: 3; justify-self: start; }
}

/* Stake code window: picture header with the code in the title, three figures, code, sign-up, small print */
.aff { width: min(100% - 32px, 520px); }
.aff .cd-box { padding-top: 0; gap: 14px; }
.aff-head {
  position: relative; display: grid; gap: 6px; align-content: end; min-height: 200px;
  margin: 0 -24px; padding: 56px 24px 20px; border-bottom: 1px solid var(--rule);
  background: linear-gradient(180deg, rgba(17, 17, 21, .15) 0%, rgba(17, 17, 21, .55) 45%, var(--ink-2) 100%), var(--aff-bg) center 35% / cover no-repeat;
}
@media (min-width: 560px) { .aff-head { margin-inline: -32px; padding-inline: 32px; min-height: 220px; } }
.aff-head .eyebrow { color: var(--opal); }
.aff-head h2 { font-size: clamp(1.5rem, 6vw, var(--s-30)); line-height: 1.12; padding-inline-end: 0; }
.aff-code { color: var(--opal); white-space: nowrap; }
.aff-tagline { font-weight: 600; font-size: var(--s-16); color: var(--paper); }
.aff .x-btn { z-index: 1; background: rgba(17, 17, 21, .6); border-radius: 50%; }
.aff .cd-lede { font-size: var(--s-14); }
.aff-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: 8px; }
.aff-tiles > div { display: grid; gap: 2px; align-content: start; padding: 10px; border: 1px solid var(--rule); border-radius: 12px; background: var(--ink); min-width: 0; }
.aff-tiles .eyebrow { font-size: 0.625rem; letter-spacing: .06em; overflow-wrap: anywhere; }
.aff-tiles strong { font: 600 clamp(1rem, 4.6vw, var(--s-22))/1.15 var(--f-display); color: var(--paper); white-space: nowrap; }
.aff-tiles strong span { color: inherit; }
.aff-tiles > div > span:last-child { font-size: var(--s-12); color: var(--dim); line-height: 1.35; }
.aff-codebox { padding: 8px 8px 8px 14px; border: 1px dashed var(--opal); border-radius: 12px; background: var(--ink); }
.aff-your { font: 600 var(--s-12)/1.3 var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.aff-codebox .code { font-size: var(--s-22); flex: 1; min-width: 0; padding: 4px 0; border: 0; }
.aff-codebox .btn { font-size: var(--s-14); padding: .6em 1em; }
.aff-go { width: 100%; justify-content: center; }
.aff-small { display: flex; gap: 10px; align-items: center; font-size: var(--s-12); color: var(--dim); line-height: 1.4; }
.aff-small .age { width: 28px; height: 28px; font-size: 0.625rem; }
.aff-disclose { font-size: var(--s-12); color: var(--dim); line-height: 1.4; }
.aff-disclose a, .aff-foot a { color: var(--opal); text-underline-offset: 3px; }
.aff-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: var(--s-14); }
.aff-foot .btn { font-size: var(--s-14); padding: .55em 1em; }
@media (max-height: 700px) { .aff-head { min-height: 150px; padding-top: 48px; } .aff .cd-lede { display: none; } }

/* the code inside a title or a line of text */
.code-inline { color: var(--opal); white-space: nowrap; unicode-bidi: isolate; }

/* Code page (#70): the code on the Mega Blocks world, figures, what it gives, steps, games */
.code-hero { position: relative; overflow: hidden; background: var(--ink-2); border-bottom: 1px solid var(--rule); }
.code-hero-art { width: 100%; aspect-ratio: 3 / 2; max-height: 52vh; object-fit: cover; }
.code-hero .wrap { position: relative; padding-block: 0 40px; }
.code-card { margin-top: -56px; background: var(--ink); border: 1px solid var(--rule); border-radius: 22px; padding: 24px 20px; display: grid; gap: 16px; }
.code-card h1 { font-size: var(--s-44); }
@media (min-width: 900px) {
  .code-hero { display: grid; align-items: center; min-height: 600px; }
  .code-hero-art { position: absolute; inset: 0; height: 100%; max-height: none; aspect-ratio: auto; }
  .code-hero .wrap { padding-block: 72px; }
  .code-card { margin-top: 0; max-width: 580px; padding: 36px 34px; }
}
.offer strong span { color: inherit; }
.code-tiles { grid-template-columns: repeat(auto-fit, minmax(min(100%, 100px), 1fr)); gap: 12px 16px; }
.code-tiles .offer { gap: 6px; align-content: start; }
.code-tiles .offer strong { font-size: clamp(1.3rem, 5.6vw, 2.75rem); white-space: nowrap; }
.code-tiles .offer > span:last-child { font-size: var(--s-14); }
.gets { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.get { border: 1px solid var(--rule); border-radius: var(--radius); background: var(--ink-2); padding: 22px; display: grid; gap: 10px; align-content: start; }
.get img { width: 72px; height: 72px; object-fit: contain; margin-bottom: 4px; }
.get h3 { font-size: var(--s-22); }
.get p { color: var(--dim); }
.steps-code li { background: var(--ink-2); padding: 22px; }
.steps-code li::before { font: 600 var(--s-30)/1 var(--f-display); }
.steps-code li span { color: var(--dim); }
.mode-strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(150px, 1fr); gap: 12px; overflow-x: auto; margin-top: 28px; padding-bottom: 8px; scroll-snap-type: x mandatory; }
.mode-strip a { display: grid; gap: 4px; text-decoration: none; scroll-snap-align: start; min-width: 0; }
.mode-strip img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 10px; border: 1px solid var(--rule); margin-bottom: 4px; }
.mode-strip .mode-name { font-weight: 600; font-size: var(--s-14); }
.mode-strip .mult { color: var(--dim); font-size: var(--s-12); }
.mode-strip a:hover .mode-name { color: var(--opal); }

/* home band with the code (#71) */
.code-band-in { display: grid; gap: 28px; }
.code-band-art { margin: 0; }
.code-band-art img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 18px; border: 1px solid var(--rule); }
.code-band-copy { display: grid; gap: 16px; align-content: center; justify-items: start; }
.code-band-copy h2 { font-size: var(--s-44); }
@media (min-width: 900px) { .code-band-in { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 56px; align-items: center; } }

/* the code under the play button on a game page (#82) */
.code-line { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 14px 16px; border: 1px dashed var(--rule); border-radius: 14px; }
.code-line .eyebrow { flex-basis: 100%; }
.code-line .code { font-size: var(--s-18); padding: 8px 12px; }
.code-line .btn { font-size: var(--s-14); padding: 0.6em 1em; }

/* Contest of the month (#61): hero with a paper podium, prizes, leaderboard with the prize of each paid place */
.contest-hero { border-bottom: 1px solid var(--rule); background: var(--ink-2); }
.contest-hero .wrap { display: grid; gap: 36px; padding-block: 40px 48px; align-items: end; }
.contest-copy { display: grid; gap: 16px; justify-items: start; }
.contest-copy h1 { font-size: clamp(2rem, 5.6vw, 4rem); hyphens: manual; }
.contest-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; margin: 4px 0 0; width: 100%; max-width: 520px; }
.contest-facts div { border-top: 1px solid var(--rule); padding-top: 10px; display: grid; gap: 4px; }
.contest-facts dt { font: 600 var(--s-12)/1.3 var(--f-body); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.contest-facts dd { margin: 0; font: 600 var(--s-22)/1.2 var(--f-display); }
:lang(ar) .contest-facts dt, :lang(hi) .contest-facts dt, :lang(ja) .contest-facts dt, :lang(ko) .contest-facts dt, :lang(zh) .contest-facts dt { letter-spacing: .02em; }
.contest-when { color: var(--dim); display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; }
@media (min-width: 900px) { .contest-hero .wrap { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; padding-block: 64px; } }
.podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; align-items: end; max-width: 460px; width: 100%; justify-self: center; }
.podium .step { display: grid; justify-items: center; gap: 8px; min-width: 0; }
.podium .step img { width: min(70%, 88px); height: auto; }
.podium .block { width: 100%; display: grid; justify-items: center; align-content: start; gap: 4px; padding: 14px 6px; border-radius: 12px 12px 4px 4px; border: 1px solid rgba(0, 0, 0, .25); color: #1b1408; }
.podium .place { font: 600 var(--s-30)/1 var(--f-display); }
.podium .block strong { font: 600 clamp(.95rem, 3.6vw, 1.25rem)/1.1 var(--f-display); white-space: nowrap; }
.podium .step-1 .block { background: #f2c45a; min-height: 150px; }
.podium .step-2 .block { background: #d9d6e3; min-height: 110px; }
.podium .step-3 .block { background: #e7a477; min-height: 84px; }
.podium .step-1 img { width: min(80%, 104px); }
.prize-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); }
.prize-grid li { border: 1px solid var(--rule); border-radius: 12px; background: var(--ink-2); padding: 14px 16px; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.prize-grid .rank { font: 500 var(--s-14)/1 var(--f-mono); color: var(--dim); }
.prize-grid li strong { font: 600 var(--s-22)/1.1 var(--f-display); }
.prize-grid li.top { border-color: var(--opal); }
.contest-board .win, .past-month .win { grid-template-columns: 2.2em 56px minmax(0, 1fr) auto auto; }
.win-prize { font: 600 var(--s-14)/1 var(--f-body); color: var(--opal-ink); background: var(--opal); border-radius: 999px; padding: 6px 10px; white-space: nowrap; }
.past-month { border-top: 1px solid var(--rule); padding-top: 14px; }
.past-month + .past-month { margin-top: 14px; }
.past-month > summary { font-size: var(--s-16); margin-bottom: 12px; }
.contest-rules { max-width: 52em; gap: 10px; }
@media (max-width: 600px) {
  .contest-board .win, .past-month .win { grid-template-columns: 1.6em 44px minmax(0, 1fr); }
  .contest-board .win-prize, .past-month .win-prize { grid-column: 3; justify-self: start; }
}

/* home card of the contest (#75) */
.contest-band { background: var(--ink-2); }
.contest-band-in { display: grid; gap: 32px; align-items: end; }
.contest-band-copy { display: grid; gap: 14px; justify-items: start; }
.contest-band-copy h2 { font-size: var(--s-44); }
@media (min-width: 900px) { .contest-band-in { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; } }

/* ---------- live promotions: banner under the menu (#78), promotion window (#76), home card (#75) ---------- */
.live-banner .wrap { padding-block: 8px; }
.live-banner a { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 10px; color: var(--paper); text-decoration: none; text-align: center; font-size: var(--s-14); min-width: 0; }
.live-banner a:hover .live-banner-title { text-decoration: underline; text-underline-offset: 3px; }
.live-banner .free { font: 600 var(--s-12)/1.2 var(--f-body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--opal-ink); background: var(--opal); border-radius: 999px; padding: 4px 9px; }
.live-banner .tick { font: 500 var(--s-12)/1 var(--f-mono); color: var(--opal); unicode-bidi: isolate; white-space: nowrap; }
.live-banner .arr { display: inline-block; color: var(--opal); }
:lang(ar) .live-banner .free, :lang(hi) .live-banner .free, :lang(ja) .live-banner .free, :lang(ko) .live-banner .free, :lang(zh) .live-banner .free { letter-spacing: 0.02em; }

.live-stats { margin: 0; display: flex; flex-wrap: wrap; gap: 10px 28px; }
.live-stats div { display: grid; gap: 4px; min-width: 0; }
.live-stats dt { font: 600 var(--s-12)/1.3 var(--f-body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); }
:lang(ar) .live-stats dt, :lang(hi) .live-stats dt, :lang(ja) .live-stats dt, :lang(ko) .live-stats dt, :lang(zh) .live-stats dt { letter-spacing: 0.02em; }
.live-stats dd { margin: 0; font: 500 var(--s-18)/1.2 var(--f-mono); color: var(--paper); }

.live-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.live-row { display: grid; gap: 10px; justify-items: start; padding: 14px 16px; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--ink); min-width: 0; }
.live-row h3 { font-size: var(--s-18); overflow-wrap: break-word; max-width: 100%; }
.live-row .btn { font-size: var(--s-14); padding: 0.65em 1.1em; }
.live-row .live-stats dd, .live-row .countdown { font-size: var(--s-16); }
@media (min-width: 520px) {
  .live-row { grid-template-columns: minmax(0, 1fr) auto; align-items: end; column-gap: 16px; }
  .live-row .eyebrow, .live-row h3 { grid-column: 1 / -1; }
}
.aff-offer { display: grid; gap: 4px; padding: 12px 14px; border: 1px solid var(--rule); border-radius: 12px; background: var(--ink); }
.aff-offer strong { font-size: var(--s-18); font-weight: 600; color: var(--paper); }

.live-band { padding-block: 40px; }
.live-band.is-empty { display: none; }
.live-card { position: relative; display: grid; border: 1px solid var(--rule); border-radius: 22px; overflow: hidden; background: var(--ink-2); }
.live-card-art { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; border-bottom: 1px solid var(--rule); }
.live-card-in { position: relative; z-index: 2; display: grid; gap: 14px; justify-items: start; padding: 22px 20px 24px; min-width: 0; }
.live-card-in h2 { font-size: clamp(1.6rem, 4vw, 2.75rem); overflow-wrap: break-word; hyphens: auto; max-width: 100%; }
@media (min-width: 900px) {
  .live-card { min-height: 400px; align-items: center; }
  .live-card-art { position: absolute; inset: 0; z-index: 0; height: 100%; aspect-ratio: auto; border: 0; }
  /* a flat scrim of the band colour under the text, the art left clear on the other side */
  .live-card::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, var(--ink-2) 0%, rgba(23, 23, 29, .94) 42%, rgba(23, 23, 29, .15) 78%); }
  [dir="rtl"] .live-card::after { background: linear-gradient(270deg, var(--ink-2) 0%, rgba(23, 23, 29, .94) 42%, rgba(23, 23, 29, .15) 78%); }
  .live-card-in { max-width: 620px; padding: 48px 44px; }
}

/* ---------- e-mail list: the form, its places and the slide-in (README, "Lettre e-mail") ---------- */
.news-form { display: grid; gap: 12px; max-width: 34em; }
.news-row { display: flex; flex-wrap: wrap; gap: 10px; }
.news-row .field { flex: 1 1 220px; }
.news-ok { display: flex; gap: 10px; align-items: flex-start; font-size: var(--s-14); line-height: 1.45; color: var(--dim); cursor: pointer; }
.news-ok input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--opal); }
.news-ok a { color: var(--paper); text-underline-offset: 3px; }
.news-trap { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.news-form.is-done .news-row, .news-form.is-done .news-ok { display: none; }
.news-copy { display: grid; gap: 8px; }
.news-copy p { color: var(--dim); }
.news-box { display: grid; gap: 18px; padding: 22px; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--ink-2); }
.news-box h2 { font-size: var(--s-22); }
.game-body .news-box { margin-top: 20px; padding: 18px; background: var(--ink); }
.news-band-in { display: grid; gap: 24px 40px; align-items: center; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); padding: clamp(20px, 4vw, 36px); border: 1px solid var(--rule); border-radius: var(--radius); background: var(--ink-2); }
.foot-news { display: grid; gap: 14px 40px; align-items: center; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); padding-top: 24px; border-top: 1px solid var(--rule); }
.foot-news > div { display: grid; gap: 6px; }
.foot-news h2 { font: 600 var(--s-12)/1.3 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.foot-news p { color: var(--paper); font-size: var(--s-14); }
.news-slide {
  position: fixed; z-index: 50; inset-inline-end: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  width: min(380px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow: auto;
  display: grid; gap: 10px; padding: 20px; background: var(--ink-3); border: 1px solid var(--rule); border-radius: var(--radius);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .45);
  transform: translateY(calc(100% + 32px)); transition: transform .35s ease;
}
.news-slide.in { transform: none; }
.news-slide .x-btn { position: absolute; top: 10px; inset-inline-end: 10px; }
.news-slide h2 { font-size: var(--s-22); padding-inline-end: 36px; }
.news-slide > p { color: var(--dim); font-size: var(--s-14); }
@media (prefers-reduced-motion: reduce) { .news-slide { transition: none; } }
.btn-small { padding: 0.55em 1em; font-size: var(--s-14); }
.card-soon .card-meta .btn { margin-top: 10px; }
.news-tip { color: var(--dim); max-width: 40em; }
.news-steps { display: grid; gap: 18px; justify-items: start; }
.news-steps-list { margin-bottom: 18px; }
.news-steps-list li { gap: 12px; }
.news-steps-list li > .btn { justify-self: start; }

/* ---------- guides (long-tail articles) ---------- */
.guides { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.guide-card { display: grid; gap: 8px; align-content: start; padding: 20px; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--ink-2); text-decoration: none; color: inherit; }
.guide-card:hover { border-color: var(--opal); }
.guide-card h3 { font-size: var(--s-22); }
.guide-card p { color: var(--dim); font-size: var(--s-14); }
.guide ol { margin: 0; padding-inline-start: 1.4em; display: grid; gap: 8px; }
.guide blockquote { margin: 0; padding: 4px 0 4px 16px; border-inline-start: 3px solid var(--opal); }
.guide code { font-family: var(--f-mono); font-size: .92em; }
.guide .table-wrap { overflow-x: auto; }
.guide table { border-collapse: collapse; width: 100%; font-size: var(--s-14); }
.guide th, .guide td { text-align: start; padding: 10px 12px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.guide th { color: var(--paper); font-weight: 600; }
.guide td { color: var(--dim); }
.guide-cta { display: grid; gap: 14px; margin-top: 24px; padding: 24px; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--ink-2); }
.guide-cta h2 { margin-top: 0; }
