/* Layout: catalog shelf. Left-aligned 1240px container under a sticky header;
   product media sits in dark "3D viewport" frames, everything else stays quiet so the renders carry the colour. */
:root {
  --bg: #f2f4f8;
  --surface: #ffffff;
  --surface-2: #e9edf4;
  --ink: #141a2e;
  --ink-2: #4b5472;
  --ink-3: #737c97;
  --line: #d9dfe9;
  --accent: #ff7a1a;
  --accent-hover: #ff8f3d;
  --accent-ink: #141a2e;
  --accent-soft: #ffeadb;
  --ok: #0b8a7e;
  --no: #c23b3b;
  --edge: #141a2e;
  --vp-bg: #1a2033;
  --vp-ink: #c4cbe0;
  --vp-line: #313a58;
  --sr-sky: #f3f6fb;
  --sr-floor: #c6d0e0;
  --foot-bg: #141a2e;
  --foot-ink: #c4cbe0;
  --foot-dim: #8a93b0;
  --foot-line: #283050;
  --badge-free-bg: #0b8a7e;
  --badge-free-fg: #ffffff;
  --scrim: rgb(10 13 24 / 0.55);
  --shadow: 0 1px 2px rgb(20 26 46 / 0.06), 0 10px 28px -14px rgb(20 26 46 / 0.22);
  --logo-top: #ff7a1a;
  --logo-left: #141a2e;
  --logo-side: #34406a;
  --logo-eye: #ffffff;

  --font-display: 'Unbounded', 'Arial Black', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Figtree', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;

  --radius: 14px;
  --radius-sm: 9px;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 64px;
  --safe-top: env(safe-area-inset-top, 0px);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #0e1220;
    --surface: #161b2c;
    --surface-2: #1e2539;
    --ink: #e9edf7;
    --ink-2: #aab2ca;
    --ink-3: #7f88a3;
    --line: #2a3249;
    --accent: #ff8a33;
    --accent-hover: #ffa25e;
    --accent-ink: #141a2e;
    --accent-soft: #3a2615;
    --ok: #3cc6b8;
    --no: #ff8080;
    --edge: #04060c;
    --vp-bg: #090c17;
    --vp-ink: #c4cbe0;
    --vp-line: #262e47;
  --sr-sky: #283150;
  --sr-floor: #0c1020;
    --foot-bg: #090c17;
    --foot-ink: #c4cbe0;
    --foot-dim: #7f88a3;
    --foot-line: #1f2740;
    --badge-free-bg: #3cc6b8;
    --badge-free-fg: #0e1220;
    --scrim: rgb(3 5 10 / 0.7);
    --shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 14px 34px -16px rgb(0 0 0 / 0.7);
    --logo-top: #ff8a33;
    --logo-left: #e9edf7;
    --logo-side: #8e9abc;
    --logo-eye: #141a2e;
    color-scheme: dark;
  }
}
:root[data-theme='dark'] {
  --bg: #0e1220;
  --surface: #161b2c;
  --surface-2: #1e2539;
  --ink: #e9edf7;
  --ink-2: #aab2ca;
  --ink-3: #7f88a3;
  --line: #2a3249;
  --accent: #ff8a33;
  --accent-hover: #ffa25e;
  --accent-ink: #141a2e;
  --accent-soft: #3a2615;
  --ok: #3cc6b8;
  --no: #ff8080;
  --edge: #04060c;
  --vp-bg: #090c17;
  --vp-ink: #c4cbe0;
  --vp-line: #262e47;
  --sr-sky: #283150;
  --sr-floor: #0c1020;
  --foot-bg: #090c17;
  --foot-ink: #c4cbe0;
  --foot-dim: #7f88a3;
  --foot-line: #1f2740;
  --badge-free-bg: #3cc6b8;
  --badge-free-fg: #0e1220;
  --scrim: rgb(3 5 10 / 0.7);
  --shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 14px 34px -16px rgb(0 0 0 / 0.7);
  --logo-top: #ff8a33;
  --logo-left: #e9edf7;
  --logo-side: #8e9abc;
  --logo-eye: #141a2e;
  color-scheme: dark;
}

/* ---------- base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 56px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  padding-top: var(--safe-top);
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
h1, h2, h3 { text-wrap: balance; margin: 0; }
h1 { font: 600 clamp(30px, 4vw, 46px)/1.08 var(--font-display); letter-spacing: -0.02em; }
h2 { font: 600 clamp(22px, 2.3vw, 30px)/1.15 var(--font-display); letter-spacing: -0.015em; }
h3 { font: 700 18px/1.3 var(--font-body); }
p { margin: 0; }
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: calc(780px + 2 * var(--gutter)); }
.mono { font-family: var(--font-mono); font-feature-settings: 'zero' 0; }
.small { font-size: 13px; }
.muted { color: var(--ink-3); }
.eyebrow {
  font: 500 12px/1.4 var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-2);
  margin: 0;
}
.lede { font-size: 18px; line-height: 1.55; color: var(--ink-2); max-width: 36em; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 8px; text-decoration: none;
}
.skip-link:focus { top: calc(12px + var(--safe-top)); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.is-pixel { image-rendering: pixelated; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
svg .fill { fill: currentColor; stroke: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 15px/1 var(--font-body);
  padding: 13px 20px; border-radius: 10px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease, border-color 0.12s ease;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); border-color: var(--edge); box-shadow: 0 3px 0 var(--edge); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-primary:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--edge); }
.btn-ink { background: var(--ink); color: var(--bg); }
.btn-ink:hover { background: var(--ink-2); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink-3); }
.btn-lg { padding: 16px 24px; font-size: 16px; }
.btn-sm { padding: 9px 14px; font-size: 14px; border-radius: 8px; }
.btn-block { width: 100%; }
.btn-ext { font-size: 0.9em; opacity: 0.7; }
.btn .gumroad-button-logo, .btn .logo-full { display: none; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-width: 40px; height: 40px; padding: 0 10px; border-radius: 10px;
  border: 1px solid transparent; background: transparent; color: var(--ink-2); cursor: pointer;
}
.icon-btn:hover { color: var(--ink); background: var(--surface-2); }
.text-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 600; text-decoration: none; color: var(--ink);
  border-bottom: 2px solid var(--accent); padding-bottom: 2px;
}
.text-link svg { width: 16px; height: 16px; transition: transform 0.15s; }
.text-link:hover svg { transform: translateX(3px); }
.row-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: var(--safe-top); z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; gap: 28px; height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: none; }
.logo-mark { width: 30px; height: 30px; stroke: none; }
.logo-word { font: 600 19px/1 var(--font-display); letter-spacing: -0.02em; display: inline-flex; align-items: flex-start; gap: 3px; }
.logo-tag { font: 500 10px/1 var(--font-mono); background: var(--accent); color: var(--accent-ink); padding: 3px 4px; border-radius: 4px; letter-spacing: 0.02em; }
.main-nav { display: flex; gap: 22px; flex: none; }
.main-nav a { text-decoration: none; color: var(--ink-2); font-weight: 500; font-size: 15px; padding: 6px 0; border-bottom: 2px solid transparent; white-space: nowrap; }
.main-nav a:hover { color: var(--ink); }
.main-nav a[aria-current='page'] { color: var(--ink); border-bottom-color: var(--accent); }
/* our browser games (games.sneznyj.com): an orange pill at the end of the nav */
.main-nav a.nav-games { display: inline-flex; align-items: center; gap: 6px; align-self: center; padding: 6px 13px 6px 9px; border: 2px solid var(--edge); border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-weight: 600; box-shadow: 0 2px 0 var(--edge); transition: transform 0.15s, background-color 0.15s; }
.main-nav a.nav-games:hover { color: var(--accent-ink); background: var(--accent-hover); transform: translateY(-1px); }
.main-nav a.nav-games svg { width: 16px; height: 16px; }
.mobile-menu a.mobile-games { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; margin-top: 8px; padding: 13px 16px; border: 2px solid var(--edge); border-radius: 14px; background: var(--accent); color: var(--accent-ink); box-shadow: 0 3px 0 var(--edge); }
.mobile-games svg { width: 20px; height: 20px; }
.mobile-games small { font-size: 14px; font-weight: 500; opacity: 0.8; }
.header-tools { margin-left: auto; display: flex; align-items: center; gap: 6px; flex: none; }
.search-trigger { border-color: var(--line); background: var(--surface); padding: 0 8px 0 12px; min-width: 200px; justify-content: flex-start; color: var(--ink-3); }
.search-trigger svg { order: -1; width: 18px; height: 18px; }
.search-trigger kbd { margin-left: auto; font: 500 11px/1 var(--font-mono); border: 1px solid var(--line); border-radius: 5px; padding: 4px 6px; color: var(--ink-3); }
.search-label { font-size: 14px; }
.header-cta { margin-left: 6px; }
.menu-btn { display: none; }
.mobile-menu { border-top: 1px solid var(--line); background: var(--bg); }
.mobile-menu nav { display: grid; padding-block: 8px 16px; }
.mobile-menu a { padding: 13px 0; font-size: 18px; font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--line); }
/* The row never wraps: below 1360px the search and the account name shrink to icons, below 1100px the nav moves into
   the menu button. site.js takes the same steps (.is-snug, .is-tight) when the row still overflows at a width these
   breakpoints allow (wider fallback fonts, browser zoom, a long account name), then .is-cramped on the narrowest phones. */
@media (max-width: 1359.98px) {
  .header-row { gap: 24px; }
  .main-nav { gap: 20px; }
  .search-trigger { min-width: 0; padding: 0 10px; justify-content: center; }
  .search-label, .search-trigger kbd, .account-label { display: none; }
}
.site-header.is-snug .header-row { gap: 24px; }
.site-header.is-snug .main-nav { gap: 20px; }
.site-header.is-snug .search-trigger { min-width: 0; padding: 0 10px; justify-content: center; }
.site-header.is-snug :is(.search-label, .search-trigger kbd, .account-label) { display: none; }
@media (max-width: 1099.98px) {
  .main-nav { display: none; }
  .menu-btn { display: inline-flex; }
}
.site-header.is-tight .main-nav { display: none; }
.site-header.is-tight .menu-btn { display: inline-flex; }
.site-header.is-cramped .header-tools .account-link { display: none; }
@media (min-width: 1100px) { .site-header:not(.is-tight) .mobile-menu { display: none; } }

/* ---------- hero ---------- */
.hero {
  display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.2fr);
  gap: clamp(28px, 4vw, 56px); align-items: center;
  padding-block: clamp(32px, 5vw, 64px) 32px;
}
.hero-copy { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.hero h1 { font-size: clamp(34px, 4.4vw, 56px); line-height: 1.04; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.hero-facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 8px 36px; margin: 8px 0 0; padding-top: 18px; border-top: 1px solid var(--line); }
.hero-facts div { display: flex; flex-direction: column-reverse; gap: 2px; }
.hero-facts dt { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-3); }
.hero-facts dd { margin: 0; font: 600 24px/1.1 var(--font-display); color: var(--ink); font-variant-numeric: tabular-nums; }

.viewport { margin: 0; background: var(--vp-bg); border: 1px solid var(--vp-line); border-radius: 18px; padding: 8px; box-shadow: var(--shadow); color: var(--vp-ink); min-width: 0; }
.vp-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 6px 10px 10px; flex-wrap: wrap; }
.vp-title { font-size: 12px; color: var(--vp-ink); }
.vp-title::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); margin-right: 8px; vertical-align: 1px; }
.vp-modes { display: flex; gap: 2px; background: color-mix(in srgb, var(--vp-line) 55%, transparent); padding: 3px; border-radius: 9px; }
.vp-modes button { font: 500 12px/1 var(--font-mono); color: var(--vp-ink); background: transparent; border: 0; border-radius: 7px; padding: 7px 10px; cursor: pointer; }
.vp-modes button:hover { color: #fff; }
.vp-modes button[aria-selected='true'] { background: var(--vp-line); color: #fff; }
.vp-stage { position: relative; aspect-ratio: 1320 / 630; border-radius: 11px; overflow: hidden; background: #d8eff0; }
.vp-layer { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.35s ease; }
.vp-layer.is-on { opacity: 1; }
.vp-gizmo { position: absolute; left: 12px; bottom: 10px; width: 44px; height: 44px; stroke-width: 2.6; pointer-events: none; }
.vp-gizmo .gx { stroke: #e5484d; } .vp-gizmo .gy { stroke: #46a758; } .vp-gizmo .gz { stroke: #3e7be0; }
.vp-gizmo .f.gx { fill: #e5484d; } .vp-gizmo .f.gy { fill: #46a758; } .vp-gizmo .f.gz { fill: #3e7be0; }
.vp-readout { display: flex; flex-wrap: wrap; gap: 6px 20px; padding: 10px 10px 4px; font-size: 12px; color: var(--vp-ink); }
.vp-readout b { color: #fff; font-weight: 500; }

/* ---------- engine strip ---------- */
.engine-strip { display: flex; align-items: center; gap: 16px 20px; flex-wrap: wrap; padding-block: 16px 8px; }
.engine-strip ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.engine-strip a {
  display: inline-flex; align-items: baseline; gap: 10px; padding: 9px 14px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
  text-decoration: none; transition: border-color 0.15s;
}
.engine-strip a:hover { border-color: var(--ink); }
.engine-name { font-weight: 600; font-size: 15px; }
.engine-count { font-size: 12px; color: var(--ink-3); }

/* ---------- sections ---------- */
.shelf, .types, .why, .faq-teaser { padding-block: clamp(48px, 6vw, 88px) 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.section-head > div { display: grid; gap: 8px; }

.feature {
  margin-top: clamp(40px, 5vw, 64px);
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: center;
}
.feature-media { display: block; border-radius: 16px; overflow: hidden; background: var(--surface-2); box-shadow: var(--shadow); }
.feature-media img { width: 100%; transition: transform 0.4s ease; }
.feature-media:hover img { transform: scale(1.015); }
.feature-copy { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.feature-copy > p:not(.eyebrow) { color: var(--ink-2); }
.feature-buy { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; }

.ticks, .crosses { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ticks li { display: grid; grid-template-columns: 22px 1fr; gap: 8px; align-items: start; }
.ticks svg { width: 20px; height: 20px; color: var(--ok); stroke-width: 2.4; margin-top: 2px; }
.ticks-sm { gap: 7px; font-size: 14px; }
.ticks-sm svg { width: 17px; height: 17px; }
.crosses li { position: relative; padding-left: 30px; }
.crosses li::before { content: '×'; position: absolute; left: 4px; top: -2px; font: 600 20px/1.4 var(--font-mono); color: var(--no); }

/* ---------- grids & cards ---------- */
.grid { display: grid; gap: clamp(16px, 2vw, 24px); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); }

.card {
  position: relative; display: flex; flex-direction: column; min-width: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover { border-color: var(--ink-3); box-shadow: var(--shadow); transform: translateY(-2px); }
.card:focus-within { border-color: var(--ink-3); }
.card-media { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--surface-2); overflow: hidden; }
.card-media img, .card-clip { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card-clip { opacity: 0; transition: opacity 0.25s ease; }
.card-clip.is-playing { opacity: 1; }
.card-play {
  position: absolute; right: 10px; bottom: 10px; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; background: rgb(20 26 46 / 0.72); color: #fff; transition: opacity 0.2s;
}
.card-play svg { width: 14px; height: 14px; margin-left: 2px; }
.card:hover .card-play { opacity: 0; }
.badge {
  position: absolute; top: 10px; left: 10px;
  font: 500 11px/1 var(--font-mono); text-transform: uppercase; letter-spacing: 0.06em;
  padding: 5px 8px; border-radius: 6px; background: var(--ink); color: var(--bg);
}
.badge-new { background: var(--accent); color: var(--accent-ink); }
.badge-free { background: var(--badge-free-bg); color: var(--badge-free-fg); }
.card-body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; flex: 1; }
.card-kicker { font-size: 12px; color: var(--ink-3); }
.card-title { font: 700 18px/1.25 var(--font-body); }
.card-title a { text-decoration: none; }
.card-title a::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.card-title a:focus-visible { outline: none; }
.card-title a:focus-visible::after { outline: 3px solid var(--accent); outline-offset: -3px; border-radius: var(--radius); }
.card-formats { font-size: 12px; color: var(--ink-2); }
.card-foot { margin-top: auto; padding-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px dashed var(--line); }
.engine-dots { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; min-width: 0; }
.engine-dots li { font: 500 11px/1 var(--font-mono); padding: 4px 6px; border-radius: 5px; background: var(--surface-2); color: var(--ink-2); }
.price { font: 600 18px/1 var(--font-display); white-space: nowrap; font-variant-numeric: tabular-nums; }
.price-lg { font-size: 34px; }
.price-free { color: var(--ok); }
.price-was { color: var(--ink-3); font-size: 0.62em; font-weight: 500; }
/* itch.io sale: "−50%" next to the struck price */
.price-off {
  display: inline-block; vertical-align: 0.15em; font: 600 11px/1 var(--font-mono); padding: 3px 5px; border-radius: 5px;
  background: var(--accent); color: var(--accent-ink);
}
.price-lg .price-off { font-size: 13px; padding: 4px 7px; vertical-align: 0.6em; }
.price-note { font-size: 12px; color: var(--ink-3); }
.sale-note { color: var(--ink-2); }
.sale-note code { font: inherit; }
.card-compact .card-body { padding: 12px 12px 14px; }
.card-compact .card-title { font-size: 15px; }
.card-compact .card-formats, .card-compact .engine-dots, .card-compact .badge { display: none; }
.card-compact .card-foot { padding-top: 8px; }
.card-compact .price { font-size: 15px; }

/* ---------- types ---------- */
.type-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: clamp(16px, 2vw, 24px); }
.type-tile {
  display: flex; flex-direction: column; text-decoration: none; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color 0.15s;
}
.type-tile:hover { border-color: var(--ink-3); }
.type-tile img { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; }
.type-meta { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px 16px; }
.type-name { font: 600 18px/1.2 var(--font-display); }
.type-meta .mono { font-size: 12px; color: var(--ink-3); }
.type-soon .wave { aspect-ratio: 16 / 9; }
.wave { display: flex; align-items: center; gap: 3px; background: var(--vp-bg); padding: 18px; }
.wave i { flex: 1; height: var(--h); background: var(--accent); border-radius: 2px; opacity: 0.9; }
.wave i:nth-child(3n) { opacity: 0.55; }

/* ---------- free band ---------- */
.free-band {
  margin-top: clamp(48px, 6vw, 88px);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(24px, 3vw, 40px); align-items: center;
}
.free-band > * { min-width: 0; }
.free-copy { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.free-copy > p:not(.eyebrow) { color: var(--ink-2); }

/* ---------- why ---------- */
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 28px; }
.why-grid > div { border-top: 2px solid var(--ink); padding-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.why-grid h3 { font-size: 17px; }
.why-grid p { color: var(--ink-2); font-size: 15px; }
.why-grid a { color: var(--ink); text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* ---------- faq ---------- */
.faq-list { border-top: 1px solid var(--line); max-width: 860px; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 0; font-weight: 600; font-size: 17px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; font: 500 20px/1 var(--font-mono); color: var(--ink-3); flex: none; }
.faq-list details[open] summary::after { content: '−'; }
.faq-list details > p { color: var(--ink-2); padding-bottom: 14px; max-width: 68ch; }
.faq-list details > p:last-child { padding-bottom: 20px; }
.faq-list a { color: var(--ink); text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* ---------- breadcrumbs / page heads ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 12px; color: var(--ink-3); padding-block: 20px 12px; }
.crumbs a { text-decoration: none; color: var(--ink-2); }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.catalog-head { display: flex; flex-direction: column; gap: 14px; padding-bottom: 28px; }
.catalog-head .crumbs { padding-bottom: 4px; }
.guide { margin-top: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; display: grid; gap: 10px; max-width: 860px; }
.guide > p { color: var(--ink-2); }
.guide ol { margin: 0; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 8px; }
.guide li { counter-increment: step; display: grid; grid-template-columns: 28px 1fr; gap: 8px; font-size: 15px; }
.guide li::before { content: counter(step); font: 500 12px/22px var(--font-mono); width: 22px; height: 22px; text-align: center; border-radius: 6px; background: var(--surface-2); color: var(--ink-2); }

/* ---------- catalog ---------- */
.catalog { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: clamp(24px, 3vw, 44px); align-items: start; }
.filters { position: sticky; top: calc(var(--header-h) + var(--safe-top) + 20px); display: flex; flex-direction: column; gap: 22px; max-height: calc(100vh - var(--header-h) - 40px); overflow: auto; padding-bottom: 12px; }
.filters-head { display: flex; align-items: center; justify-content: space-between; }
.filters-close { display: none; }
.filter-group { border: 0; margin: 0; padding: 0; display: grid; gap: 2px; }
.filter-group legend { margin-bottom: 8px; padding: 0; }
.check { display: flex; align-items: center; gap: 10px; padding: 6px 0; cursor: pointer; font-size: 15px; }
.check input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); flex: none; }
.check .count { margin-left: auto; font-size: 12px; color: var(--ink-3); }
.check.is-empty { color: var(--ink-3); }
.filters-reset { align-self: flex-start; }
.results { min-width: 0; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 12px; }
.search-inline { position: relative; flex: 1 1 240px; display: block; }
.search-inline svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--ink-3); width: 18px; height: 18px; }
.search-inline input, .sort select {
  width: 100%; font: inherit; font-size: 15px; color: var(--ink); background: var(--surface);
  border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px 11px 40px;
}
.search-inline input:focus, .sort select:focus { outline: none; border-color: var(--ink-3); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 35%, transparent); }
.sort { display: flex; align-items: center; gap: 8px; color: var(--ink-3); }
.sort select { padding: 10px 34px 10px 12px; width: auto; appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%), linear-gradient(135deg, var(--ink-3) 50%, transparent 50%); background-position: right 15px center, right 10px center; background-size: 5px 5px; background-repeat: no-repeat; }
.filters-open { display: none; }
.result-count { font-size: 12px; color: var(--ink-3); margin-bottom: 16px; }
.empty { border: 1px dashed var(--line); border-radius: var(--radius); padding: 40px 24px; display: grid; gap: 10px; justify-items: start; }
.empty p { color: var(--ink-2); }
.filters-scrim { position: fixed; inset: 0; background: var(--scrim); z-index: 59; }

.soon-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 48px); align-items: center; }
.soon-panel > div { display: grid; gap: 14px; justify-items: start; }
.soon-panel p { color: var(--ink-2); }
.wave-lg { height: 220px; border-radius: 16px; padding: 28px; }

/* ---------- product page ---------- */
.pp-top { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, 1fr); gap: clamp(24px, 3.5vw, 44px); align-items: start; padding-bottom: 40px; }
.gallery { min-width: 0; }
.stage { position: relative; aspect-ratio: 16 / 9; background: var(--vp-bg); border-radius: 16px; overflow: hidden; }
.stage-item { position: absolute; inset: 0; width: 100%; height: 100%; display: none; }
.stage-item.is-on { display: block; }
.stage video.stage-item, .stage-zoom img { width: 100%; height: 100%; object-fit: contain; }
.stage-zoom { border: 0; padding: 0; background: none; cursor: zoom-in; }
.stage-3d { background: radial-gradient(120% 90% at 50% 20%, #24304f 0%, var(--vp-bg) 70%); }
.stage-3d model-viewer { width: 100%; height: 100%; --poster-color: transparent; }
.stage-3d-hint { position: absolute; inset: auto 0 14px; text-align: center; font-size: 12px; color: var(--vp-ink); pointer-events: none; }
.anim-picker { position: absolute; top: 12px; left: 12px; display: flex; flex-wrap: wrap; gap: 4px; max-width: calc(100% - 24px); }
.anim-picker button { font: 500 12px/1 var(--font-mono); background: rgb(255 255 255 / 0.1); color: #fff; border: 1px solid rgb(255 255 255 / 0.18); border-radius: 7px; padding: 7px 9px; cursor: pointer; }
.anim-picker button[aria-pressed='true'] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.anim-picker select { font: 500 13px/1.2 var(--font-mono); background: rgb(10 13 24 / 0.72); color: #fff; border: 1px solid rgb(255 255 255 / 0.24); border-radius: 7px; padding: 7px 9px; max-width: 100%; cursor: pointer; }
.anim-picker select option { background: #141826; color: #fff; }
.stage-caption { font-size: 12px; color: var(--ink-3); padding-block: 10px; min-height: 38px; }
.thumbs { list-style: none; margin: 0; padding: 0 0 6px; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: thin; }
.thumb {
  position: relative; display: block; width: 104px; aspect-ratio: 16 / 9; padding: 0; overflow: hidden;
  border: 2px solid transparent; border-radius: 9px; background: var(--surface-2); cursor: pointer; flex: none;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.is-on { border-color: var(--accent); }
.thumb:hover:not(.is-on) { border-color: var(--line); }
.thumb-play { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; background: rgb(10 13 24 / 0.25); }
.thumb-play svg { width: 18px; height: 18px; }
.thumb-3d { display: flex; height: 100%; flex-direction: column; align-items: center; justify-content: center; gap: 2px; background: var(--vp-bg); color: var(--vp-ink); }
.thumb-3d .mono { font-size: 11px; }

.buy {
  position: sticky; top: calc(var(--header-h) + var(--safe-top) + 16px);
  display: flex; flex-direction: column; gap: 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: clamp(18px, 2vw, 26px);
}
.buy h1 { font-size: clamp(26px, 2.5vw, 34px); }
.buy-short { color: var(--ink-2); }
.stat-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; padding-block: 14px; border-block: 1px solid var(--line); }
.stat-row div { display: flex; flex-direction: column-reverse; gap: 2px; min-width: 0; }
.stat-row dt { font-size: 11px; color: var(--ink-3); line-height: 1.3; }
.stat-row dd { margin: 0; font: 600 20px/1.1 var(--font-display); font-variant-numeric: tabular-nums; }
.buy-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 14px; }
.buy-secure { font-size: 12px; color: var(--ink-3); text-align: center; margin-top: -6px; }
.buy-alt {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 14px; border: 1px dashed var(--line); border-radius: 10px;
  color: var(--ink-2); text-decoration: none; font-size: 14px;
}
.buy-alt strong { color: var(--ink); }
.buy-alt svg { width: 16px; height: 16px; }
.buy-alt:hover { border-color: var(--ink-3); }

.pp-tabs {
  position: sticky; top: calc(var(--header-h) + var(--safe-top)); z-index: 20;
  background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-block: 1px solid var(--line);
}
.pp-tabs .wrap { display: flex; gap: 26px; overflow-x: auto; scrollbar-width: none; }
.pp-tabs a { flex: none; padding: 14px 0 12px; font: 500 13px/1 var(--font-mono); color: var(--ink-2); text-decoration: none; border-bottom: 2px solid transparent; }
.pp-tabs a:hover { color: var(--ink); }
.pp-tabs a.is-current { color: var(--ink); border-bottom-color: var(--accent); }
.pp-body { max-width: 900px; }
.pp-section { padding-block: 40px; border-bottom: 1px solid var(--line); display: grid; gap: 18px; }
.pp-section h2 { font-size: clamp(20px, 2vw, 24px); }
.prose { display: grid; gap: 14px; max-width: 68ch; color: var(--ink-2); font-size: 16.5px; }
.prose h2 { color: var(--ink); font-size: 20px; margin-top: 18px; }
.prose .eyebrow { font-size: 12px; margin-top: 0; color: var(--ink-2); }
.prose .eyebrow.ok { color: var(--ok); }
.prose .eyebrow.no { color: var(--no); }
.prose ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.prose a { color: var(--ink); text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
/* About: work samples (pictures and names, no prices) */
.prose .work-grid { list-style: none; padding: 0; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 14px; }
.work-grid a { display: grid; gap: 8px; text-decoration: none; font-weight: 600; font-size: 15px; }
.work-grid img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface-2); }
.work-grid a:hover img { border-color: var(--ink-3); }
.contents-group { display: grid; gap: 10px; }
.contents-group .count { color: var(--ink-3); margin-left: 6px; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.chips li { padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); font-size: 14px; }
.anim-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.anim-list li { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 16px; padding: 11px 0; border-bottom: 1px dashed var(--line); }
.anim-name { font-weight: 600; }
.anim-note { color: var(--ink-2); }
.table-wrap { overflow-x: auto; }
.spec-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.spec-table th, .spec-table td { text-align: left; padding: 11px 16px 11px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table th { width: 34%; font-weight: 500; color: var(--ink-2); }
.spec-table tr:first-child th, .spec-table tr:first-child td { border-top: 1px solid var(--line); }
.files-h { margin-top: 10px; }
.file-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 13px; color: var(--ink-2); }
.file-list li { position: relative; padding-left: 18px; }
.file-list li::before { content: ''; position: absolute; left: 2px; top: 0.6em; width: 7px; height: 7px; background: var(--accent); border-radius: 1px; }
.engine-table { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.engine-table li { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.engine-table .engine-name { text-decoration: none; }
.engine-table .engine-name:hover { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
.engine-how { color: var(--ink-2); }
.formats-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.formats-line .muted { margin-right: 6px; }
.format { font: 500 13px/1 var(--font-mono); padding: 5px 8px; background: var(--surface-2); border-radius: 6px; }
.license-mini { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.license-mini > div, .license-cols > section { display: grid; gap: 12px; align-content: start; }
.license-mini .crosses { font-size: 14px; gap: 7px; }
.license-mini .crosses li::before { font-size: 17px; }
.eyebrow.ok { color: var(--ok); }
.eyebrow.no { color: var(--no); }
.ai-note { max-width: 68ch; }
.bundle-parts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 12px; }
.bundle-part { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 12px; align-items: center; padding: 8px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; background: var(--surface); }
.bundle-part:hover { border-color: var(--ink-3); }
.bundle-part img { border-radius: 8px; aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.bundle-part > span { display: grid; gap: 2px; min-width: 0; }
.bundle-part .mono { font-size: 12px; color: var(--ink-3); }
.related { padding-top: 56px; }

.buy-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px -18px rgb(0 0 0 / 0.5);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.buy-bar-row { display: flex; align-items: center; gap: 12px; padding-block: 10px; }
.buy-bar-title { flex: 1; min-width: 0; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.lightbox { padding: 0; border: 0; background: transparent; max-width: 96vw; max-height: 92vh; overflow: visible; }
.lightbox::backdrop { background: rgb(6 8 16 / 0.88); }
.lightbox img { max-width: 96vw; max-height: 90vh; width: auto; height: auto; border-radius: 10px; }
.lightbox-close { position: absolute; top: -48px; right: 0; color: #fff; }
.lightbox-close:hover { background: rgb(255 255 255 / 0.12); color: #fff; }

/* ---------- simple pages ---------- */
.page-simple main > .wrap { padding-bottom: 24px; display: grid; gap: 18px; }
.page-simple .prose { margin-top: 8px; }
.license-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; margin-block: 12px; color: var(--ink); }
.faq-full { margin-top: 8px; }
.notfound { padding-block: 48px 24px; }

/* ---------- search ---------- */
.search-layer {
  position: fixed; inset: 0; z-index: 100; background: var(--scrim);
  display: flex; justify-content: center; align-items: flex-start;
  padding: calc(10vh + var(--safe-top)) var(--gutter) 24px;
}
.search-panel { width: min(640px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; }
.search-field { display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 16px; border-bottom: 1px solid var(--line); color: var(--ink-3); }
.search-field input { flex: 1; min-width: 0; border: 0; background: transparent; font: 400 18px/1.4 var(--font-body); color: var(--ink); padding: 8px 0; }
.search-field input:focus { outline: none; }
.search-results { list-style: none; margin: 0; padding: 8px; max-height: 58vh; overflow: auto; }
.search-results a { display: grid; grid-template-columns: 80px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 8px; border-radius: 10px; text-decoration: none; }
.search-results a:hover, .search-results a.is-active { background: var(--surface-2); }
.search-results img { width: 80px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; background: var(--surface-2); }
.search-results .r-title { font-weight: 600; display: block; }
.search-results .r-kind { font: 400 12px/1.4 var(--font-mono); color: var(--ink-3); }
.search-results .r-price { font: 600 14px/1 var(--font-display); }
.search-results .r-empty { padding: 16px 10px; color: var(--ink-2); }
.search-hint { font-size: 12px; color: var(--ink-3); padding: 10px 16px; border-top: 1px solid var(--line); }

/* ---------- footer ---------- */
.site-footer {
  margin-top: clamp(64px, 8vw, 112px); background: var(--foot-bg); color: var(--foot-ink);
  --logo-left: #e9edf7; --logo-side: #8e9abc; --logo-eye: #141a2e;
}
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(6, minmax(0, 1fr)); gap: 28px; padding-block: 56px 36px; }
.foot-col.foot-games h2 { color: var(--accent); }
.foot-games li:last-child a { color: var(--accent); font-weight: 600; }
.foot-games li:last-child a::after { content: ' →'; }
.foot-brand { display: grid; gap: 14px; align-content: start; max-width: 32ch; }
.foot-brand .logo { color: #fff; }
.foot-brand p { color: var(--foot-dim); font-size: 15px; }
.foot-brand a:not(.logo) { color: var(--foot-ink); }
.foot-col h2 { color: var(--foot-dim); margin-bottom: 12px; }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot-col a { color: var(--foot-ink); text-decoration: none; font-size: 15px; }
.foot-col a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--accent); }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 18px 22px; border-top: 1px solid var(--foot-line); font-size: 13px; color: var(--foot-dim); }
.foot-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--foot-ink); text-decoration: underline; text-decoration-color: var(--foot-line); cursor: pointer; }
.foot-btn:hover { color: #fff; text-decoration-color: var(--accent); }

/* ---------- cookie choice (site.js: visitors from the EU/EEA, UK, Switzerland, and "Cookie settings") ---------- */
.consent {
  position: fixed; z-index: 55; left: 16px; bottom: 16px; width: min(420px, calc(100vw - 32px));
  display: grid; gap: 12px; padding: 16px 18px; font-size: 14px; line-height: 1.45;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.consent[hidden] { display: none; }
/* above the sticky Buy bar of a product page (site.js sets .has-buybar while the bar shows) */
.has-buybar .consent { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
.consent p { margin: 0; color: var(--ink-2); }
.consent a { color: var(--ink); }
.consent-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- custom orders ---------- */
.hero-custom {
  display: flex; align-items: center; gap: 12px; max-width: 36em;
  padding: 12px 14px; border: 1px dashed var(--ink-3); border-radius: 12px;
  color: var(--ink-2); text-decoration: none; font-size: 15px; line-height: 1.4;
  transition: border-color 0.15s, background-color 0.15s;
}
.hero-custom:hover { border-color: var(--ink); background: var(--surface); }
.hero-custom strong { color: var(--ink); }
.hero-custom > svg { width: 18px; height: 18px; margin-left: auto; color: var(--ink); transition: transform 0.15s; }
.hero-custom:hover > svg { transform: translateX(3px); }
.hero-custom-tag {
  flex: none; font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em;
  padding: 5px 8px; border-radius: 6px; background: var(--accent); color: var(--accent-ink);
}

.custom-band {
  margin-top: clamp(48px, 6vw, 88px);
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 44px); align-items: center;
  padding: clamp(22px, 3.4vw, 44px); border-radius: 20px; background: var(--vp-bg); color: var(--vp-ink);
}
.custom-band-copy { display: grid; gap: 14px; justify-items: start; min-width: 0; }
.custom-band h2 { color: #fff; }
.custom-band .eyebrow { color: var(--accent); }
.custom-band p { color: var(--vp-ink); max-width: 40em; }
.custom-band-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; min-width: 0; }
.custom-band-list li { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; font-size: 15px; }
.custom-band-list strong { color: #fff; }
.custom-band-list svg { color: var(--accent); stroke-width: 2.4; margin-top: 2px; }
.custom-band-compact { grid-template-columns: minmax(0, 1fr); }
.btn-on-dark { color: #fff; border-color: rgb(255 255 255 / 0.28); }
.btn-on-dark:hover { border-color: #fff; }

.badge-first { background: #141a2e; color: #fff; box-shadow: 0 0 0 1px rgb(255 255 255 / 0.18); }
.badge-first::before { content: '★ '; color: var(--accent); }
.first-note { display: grid; gap: 6px; font-size: 14px; color: var(--ink-2); padding: 12px 14px; border-radius: 10px; background: var(--accent-soft); }
.first-note .badge-first { justify-self: start; font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; padding: 4px 7px; border-radius: 6px; }
.buy-custom { border-style: solid; }

.custom-hero {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: center;
  padding-block: clamp(8px, 2vw, 24px) 8px;
}
.custom-hero-copy { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.custom-hero-copy h1 { font-size: clamp(32px, 4.2vw, 52px); line-height: 1.05; }
.custom-hero-media { margin: 0; display: grid; gap: 10px; min-width: 0; }
.custom-hero-media img { width: 100%; border-radius: 16px; box-shadow: var(--shadow); background: var(--surface-2); }
.custom-hero-media figcaption { color: var(--ink-3); }

.kind-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: clamp(16px, 2vw, 24px); }
.kind-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; min-width: 0; }
.kind-card img { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; background: var(--surface-2); }
.kind-card > div { display: grid; gap: 6px; padding: 14px 16px 18px; }
.kind-card h3 { font-size: 17px; }
.kind-card p { color: var(--ink-2); font-size: 15px; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 28px; }
.steps li { border-top: 2px solid var(--ink); padding-top: 14px; display: grid; gap: 8px; align-content: start; }
.step-n { font-size: 13px; color: var(--accent); font-weight: 500; }
.steps h3 { font-size: 17px; }
.steps p { color: var(--ink-2); font-size: 15px; }

.order {
  margin-top: clamp(48px, 6vw, 88px); scroll-margin-top: calc(var(--header-h) + 16px);
  display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(24px, 4vw, 56px); align-items: start;
}
.order-side { display: grid; gap: 14px; position: sticky; top: calc(var(--header-h) + 24px); min-width: 0; }
.order-side > p:not(.eyebrow) { color: var(--ink-2); }
.order-side .eyebrow { margin-top: 6px; }
.order-side a { color: var(--ink); text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.order-form {
  display: grid; gap: 16px; min-width: 0;
  padding: clamp(18px, 2.6vw, 30px); background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.fld { display: grid; gap: 6px; min-width: 0; margin: 0; padding: 0; border: 0; }
.fld > span, .fld > legend { font-weight: 600; font-size: 14px; color: var(--ink); padding: 0; }
.fld .muted { font-weight: 400; }
.req { color: var(--accent); }
.order-form .field {
  width: 100%; font: inherit; font-size: 15px; color: var(--ink); background: var(--bg);
  border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; min-width: 0;
}
.order-form select.field {
  appearance: none; padding-right: 34px;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%), linear-gradient(135deg, var(--ink-3) 50%, transparent 50%);
  background-position: right 17px center, right 12px center; background-size: 5px 5px; background-repeat: no-repeat;
}
.order-form textarea.field { resize: vertical; min-height: 140px; line-height: 1.5; }
.order-form .field:focus { outline: none; border-color: var(--ink-3); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 32%, transparent); }
.order-form .field::placeholder { color: var(--ink-3); }
.checks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.check { position: relative; display: inline-flex; cursor: pointer; }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check span { padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; color: var(--ink-2); background: var(--bg); transition: border-color 0.12s, background-color 0.12s; }
.check:hover span { border-color: var(--ink-3); }
.check input:checked + span { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.check input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { text-align: center; margin-top: -4px; }
.form-status { padding: 14px 16px; border-radius: 12px; font-size: 15px; line-height: 1.5; }
.form-status.is-ok { background: color-mix(in srgb, var(--ok) 14%, var(--surface)); border: 1px solid color-mix(in srgb, var(--ok) 45%, transparent); }
.form-status.is-error { background: color-mix(in srgb, var(--no) 10%, var(--surface)); border: 1px solid color-mix(in srgb, var(--no) 40%, transparent); }
.form-status a { color: var(--ink); text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.order-form button:disabled { opacity: 0.7; cursor: default; }

.price-grid { list-style: none; margin: 0 0 18px; padding: 14px 0 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 1100px) { .price-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 12px; } }
@media (max-width: 560px) { .price-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.price-tier {
  position: relative; display: grid; gap: 4px; align-content: start; min-width: 0;
  padding: 18px 16px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.price-tier.is-popular { border: 2px solid var(--accent); box-shadow: var(--shadow); }
.price-tier-tag {
  position: absolute; top: -11px; left: 14px; font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.06em;
  padding: 4px 7px; border-radius: 6px; background: var(--accent); color: var(--accent-ink);
}
.price-tier-n { font-weight: 600; font-size: 15px; color: var(--ink-2); }
.price-tier-price { font: 600 32px/1.1 var(--font-display); color: var(--ink); font-variant-numeric: tabular-nums; }
.price-tier-each { font-size: 12px; color: var(--ink-3); }
.price-notes { color: var(--ink-2); max-width: 70ch; margin-bottom: 16px; }
/* /custom/: three prices per model and the bulk discount scale */
.price-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 2vw, 20px); margin-bottom: 28px; }
.price-grid-3 .price-tier { padding: 20px 18px 18px; }
.price-grid-3 .price-tier p { color: var(--ink-2); font-size: 15px; margin-top: 8px; }
.price-tier-from { font-size: 0.5em; font-weight: 500; color: var(--ink-3); }
.discount-h { font-size: 18px; margin-bottom: 12px; }
.discount-grid { list-style: none; margin: 0 0 18px; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.discount-grid li { display: grid; gap: 2px; padding: 12px 14px; border-radius: 12px; background: var(--accent-soft); min-width: 0; }
.discount-grid li.is-base { background: var(--surface-2); }
.discount-n { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.discount-off { font: 600 24px/1.15 var(--font-display); color: var(--ink); font-variant-numeric: tabular-nums; }
.discount-grid li.is-base .discount-off { font-size: 17px; line-height: 1.6; color: var(--ink-2); }
@media (max-width: 760px) {
  .price-grid-3 { grid-template-columns: minmax(0, 1fr); }
  .discount-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .discount-grid li.is-base { grid-column: 1 / -1; }
}

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .foot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 1200px) {
  .catalog .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1000px) {
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  :root { --header-h: 58px; }
  .header-cta { display: none; }
  .hero { grid-template-columns: minmax(0, 1fr); }
  .feature { grid-template-columns: minmax(0, 1fr); }
  .free-band { grid-template-columns: minmax(0, 1fr); }
  .pp-top { grid-template-columns: minmax(0, 1fr); }
  .buy { position: static; }
  .catalog { grid-template-columns: minmax(0, 1fr); }
  .filters {
    position: fixed; z-index: 60; top: 0; bottom: 0; left: 0; width: min(340px, 88vw); max-height: none;
    background: var(--bg); padding: calc(18px + var(--safe-top)) 20px 24px; transform: translateX(-102%);
    transition: transform 0.25s ease; border-right: 1px solid var(--line);
  }
  .filters.is-open { transform: none; }
  .filters-close, .filters-open { display: inline-flex; }
  .soon-panel { grid-template-columns: minmax(0, 1fr); }
  .wave-lg { height: 160px; }
}
@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .grid-3, .catalog .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .lede { font-size: 17px; }
  .hero-facts { gap: 8px 22px; }
  .hero-facts dd { font-size: 20px; }
  .vp-bar { padding-left: 6px; }
  .vp-title { display: none; }
  .vp-modes { width: 100%; justify-content: space-between; }
  .vp-modes button { flex: 1; }
  .anim-list li, .engine-table li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .license-mini, .license-cols { grid-template-columns: minmax(0, 1fr); }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .price-lg { font-size: 30px; }
  .stat-row dd { font-size: 18px; }
  .toolbar .sort span { display: none; }
  .header-row { gap: 12px; }
  .header-tools { gap: 2px; }
  .header-tools .icon-btn { min-width: 36px; padding: 0 8px; }
}

@media (max-width: 900px) {
  .custom-band, .custom-hero, .order { grid-template-columns: minmax(0, 1fr); }
  .order-side { position: static; }
}
@media (max-width: 640px) {
  .form-row { grid-template-columns: minmax(0, 1fr); }
  .hero-custom { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .card:hover, .feature-media:hover img { transform: none; }
}

/* ---------- newsletter, PayPal line ---------- */
.nl-band {
  margin-top: clamp(48px, 6vw, 88px);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: center;
  background: var(--accent-soft); border: 1px solid var(--line); border-radius: 18px; padding: clamp(22px, 3vw, 36px);
}
.nl-copy { display: grid; gap: 10px; min-width: 0; }
.nl-copy p:not(.eyebrow) { color: var(--ink-2); max-width: 36em; }
.nl-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; min-width: 0; }
.nl-form .field {
  flex: 1 1 220px; min-width: 0; font: 400 16px/1.4 var(--font-body); color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px;
}
.nl-form .field:focus { outline: none; border-color: var(--ink-3); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 32%, transparent); }
.nl-form .field::placeholder { color: var(--ink-3); }
.nl-done { flex-basis: 100%; color: var(--ok); font-weight: 600; margin: 0; }
@media (max-width: 760px) { .nl-band { grid-template-columns: 1fr; } }

.nl-pop {
  width: min(460px, calc(100vw - 32px)); padding: 28px 24px 24px; border: 1px solid var(--line); border-radius: 18px;
  background: var(--surface); color: var(--ink); box-shadow: var(--shadow);
}
.nl-pop::backdrop { background: var(--scrim); }
.nl-pop h2 { font-size: 22px; margin: 6px 0 8px; }
.nl-pop p:not(.eyebrow) { color: var(--ink-2); margin: 0 0 16px; }
.nl-pop-close { position: absolute; top: 10px; right: 10px; }

.buy-paypal { margin: -4px 0 0; font-size: 14px; color: var(--ink-2); }
.buy-paypal a { color: var(--ink); font-weight: 600; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* ---------- animals ---------- */
.animal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 12px; }
.animal-tile { position: relative; display: grid; gap: 6px; text-decoration: none; color: var(--ink); font-size: 13.5px; font-weight: 600; text-align: center; }
.animal-tile img { width: 100%; height: auto; aspect-ratio: 1; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); transition: transform 0.15s; }
.animal-tile:hover img { transform: translateY(-2px); }
.chips li a { color: inherit; text-decoration: none; }
.chips li:has(a):hover { border-color: var(--ink-3); }
.animal-top { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: clamp(20px, 4vw, 48px); align-items: start; margin-top: 8px; }
.animal-figure { margin: 0; display: grid; gap: 8px; }
.animal-figure img { width: 100%; height: auto; border-radius: 18px; border: 1px solid var(--line); background: var(--surface-2); }
.animal-copy { display: grid; gap: 14px; }
.animal-copy > p:not(.eyebrow) { color: var(--ink-2); max-width: 40em; }
.animal-facts { margin-top: clamp(32px, 4vw, 56px); display: grid; gap: 14px; }
@media (max-width: 760px) { .animal-top { grid-template-columns: 1fr; } .animal-figure { max-width: 360px; } }

/* ---------- daily egg ---------- */
.egg-band { margin-top: clamp(40px, 5vw, 72px); }
.egg-band-link {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: clamp(14px, 3vw, 28px); align-items: center;
  padding: clamp(16px, 2.5vw, 26px); border-radius: 18px; text-decoration: none; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.egg-band-link:hover .egg-mini { transform: rotate(-8deg); }
.egg-mini { width: 64px; height: 80px; transition: transform 0.2s; }
.egg-band-copy { display: grid; gap: 4px; }
.egg-band-copy strong { font: 600 clamp(18px, 2.2vw, 22px)/1.2 var(--font-display); }
.egg-band-copy span:not(.eyebrow) { color: var(--ink-2); font-size: 15px; }
@media (max-width: 640px) { .egg-band-link { grid-template-columns: auto minmax(0, 1fr); } .egg-band-link .btn { grid-column: 1 / -1; justify-self: start; } }

.egg-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 48px); align-items: center; margin-top: 8px; }
.egg-copy { display: grid; gap: 14px; }
.egg-progress { font-weight: 600; }
.egg-stage { display: grid; place-items: center; min-height: 360px; }
.egg-btn { display: grid; justify-items: center; gap: 10px; background: none; border: 0; cursor: pointer; color: var(--ink-2); padding: 12px; }
.egg-svg { width: min(220px, 60vw); height: auto; filter: drop-shadow(0 14px 18px rgb(20 26 46 / 0.18)); }
.egg-btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 6px; border-radius: 20px; }
.egg-crack { opacity: 0; transition: opacity 0.15s; }
.egg-btn.crack-1 .c1, .egg-btn.crack-2 .c1, .egg-btn.crack-2 .c2 { opacity: 1; }
.egg-btn.is-shaking .egg-svg { animation: egg-shake 0.36s ease; }
@keyframes egg-shake { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-9deg); } 50% { transform: rotate(8deg); } 75% { transform: rotate(-5deg); } }
.egg-card { display: grid; justify-items: center; gap: 8px; text-align: center; padding: 22px; border-radius: 20px; background: var(--surface); border: 2px solid var(--line); min-width: min(320px, 100%); }
.egg-card.is-fresh { animation: egg-pop 0.5s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes egg-pop { from { transform: scale(0.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.egg-card h2 { margin: 0; font-size: 24px; }
.egg-card .small { color: var(--ink-2); margin: 0; }
.egg-next { color: var(--ink-3); margin: 0; }
.egg-pic { position: relative; border-radius: 18px; overflow: hidden; }
.egg-pic img { display: block; width: 240px; height: 240px; }
.egg-chips { display: flex; gap: 6px; justify-content: center; margin: 4px 0 0; }
.chip { font: 600 12px/1 var(--font-mono); padding: 5px 8px; border-radius: 6px; background: var(--surface-2); color: var(--ink); }
.chip.rar-common { background: #e3e7ef; color: #3c4560; }
.chip.rar-rare { background: #dbeafe; color: #1d4f9a; }
.chip.rar-epic { background: #ede3ff; color: #5b2bb5; }
.chip.rar-legendary { background: #ffe9c7; color: #8a4b00; }
.chip.rar-mythic { background: #ffe0ef; color: #a01d5c; }
.egg-card.rar-epic { border-color: #a58cf0; }
.egg-card.rar-legendary { border-color: #f2a93b; box-shadow: 0 0 0 4px rgb(242 169 59 / 0.18); }
.egg-card.rar-mythic { border-color: #e2559a; box-shadow: 0 0 0 4px rgb(226 85 154 / 0.2); }
/* mutations: a tint on the picture, a chip next to the rarity */
.mut-golden img { filter: sepia(0.9) saturate(2.6) hue-rotate(-12deg) brightness(1.05); }
.mut-diamond img { filter: hue-rotate(160deg) saturate(0.7) brightness(1.18) contrast(1.05); }
.mut-rainbow img { animation: mut-rainbow 3s linear infinite; }
@keyframes mut-rainbow { to { filter: hue-rotate(360deg) saturate(1.6); } }
.mut-galaxy img { filter: hue-rotate(235deg) saturate(1.6) brightness(0.82) contrast(1.1); }
.mut-celestial img { filter: brightness(1.25) saturate(0.6) drop-shadow(0 0 10px #fff6c2); }
.mut-chip { color: #fff; background: #141a2e; }
.mut-chip.mut-golden { background: #c58b00; }
.mut-chip.mut-diamond { background: #2e9bc4; }
.mut-chip.mut-rainbow { background: linear-gradient(90deg, #e94a5a, #f2a93b, #4cc06b, #3d8bf0, #9a5cf0); }
.mut-chip.mut-galaxy { background: #4b2a9a; }
.mut-chip.mut-celestial { background: #b8a14a; }
.egg-reward { margin-top: 28px; display: grid; gap: 10px; justify-items: start; padding: 22px; border-radius: 18px; background: var(--accent-soft); border: 1px solid var(--line); }
.egg-reward h2 { margin: 0; }
.egg-collection .animal-tile.is-locked img { filter: brightness(0) opacity(0.18); }
.egg-collection .animal-tile.is-locked span { color: var(--ink-3); }
.tile-mut { position: absolute; top: 6px; left: 6px; font: 600 10px/1 var(--font-mono); padding: 4px 6px; border-radius: 5px; }
@media (max-width: 760px) { .egg-hero { grid-template-columns: 1fr; } .egg-stage { min-height: 300px; order: -1; } }
@media (prefers-reduced-motion: reduce) { .mut-rainbow img { animation: none; filter: hue-rotate(90deg) saturate(1.6); } }

/* ---------- /roblox/ ---------- */
.roblox-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(20px, 4vw, 48px); align-items: center; margin-top: 8px; }
.roblox-copy { display: grid; gap: 16px; }
.roblox-shot { margin: 0; display: grid; gap: 8px; }
.roblox-shot img, .roblox-shots img { width: 100%; height: auto; border-radius: 16px; border: 1px solid var(--line); background: var(--surface-2); }
.roblox-gallery { margin-top: clamp(48px, 6vw, 88px); }
.roblox-shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 18px; }
.roblox-shots figure { margin: 0; display: grid; gap: 6px; }
.roblox-hub-link { margin-top: 14px; max-width: 640px; }
@media (max-width: 860px) { .roblox-hero { grid-template-columns: 1fr; } }

/* ---------- "which pack next?" poll ---------- */
.vote { margin-top: clamp(40px, 5vw, 72px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(18px, 3vw, 40px); align-items: start; }
.vote-copy { display: grid; gap: 10px; }
.vote-copy > p:not(.eyebrow) { color: var(--ink-2); }
.vote-status { color: var(--ok); font-weight: 600; min-height: 1.4em; margin: 0; }
.vote-options { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.vote-opt {
  position: relative; width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px;
  padding: 12px 14px; text-align: left; font: inherit; color: var(--ink); cursor: pointer; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
}
.vote-opt:hover { border-color: var(--ink-3); }
.vote-opt:disabled { cursor: progress; }
.vote-bar { position: absolute; inset: 0 auto 0 0; width: var(--pct, 0%); background: var(--accent-soft); transition: width 0.6s ease; }
.vote-label { position: relative; display: grid; gap: 2px; }
.vote-label span { color: var(--ink-2); font-size: 13.5px; }
.vote-pct { position: relative; font-weight: 600; }
.vote.has-voted .vote-opt { cursor: default; }
.vote-opt.is-mine { border-color: var(--accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 35%, transparent); }
@media (max-width: 760px) { .vote { grid-template-columns: 1fr; } }

/* Custom orders: strip above the header on every page, and a card in the catalog grids */
.topbar-custom {
  display: flex; align-items: center; justify-content: center; gap: 10px; padding: 8px 16px;
  background: var(--ink); color: var(--bg); text-decoration: none; font-size: 14px; line-height: 1.35;
}
.topbar-custom strong { color: inherit; font-weight: 700; }
.topbar-custom > svg { width: 16px; height: 16px; flex: none; transition: transform 0.15s; }
.topbar-custom:hover > svg { transform: translateX(3px); }
.topbar-custom:hover .topbar-custom-text { text-decoration: underline; text-underline-offset: 3px; }
.topbar-custom-tag {
  flex: none; font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em;
  background: var(--accent); color: var(--accent-ink); padding: 3px 7px; border-radius: 5px;
}
@media (max-width: 760px) {
  .topbar-custom { justify-content: flex-start; font-size: 13px; }
  .topbar-custom-more, .topbar-custom-tag { display: none; }
}
.promo-card {
  position: relative; display: flex; flex-direction: column; gap: 10px; justify-content: center; min-width: 0;
  padding: 22px 20px; border-radius: var(--radius); text-decoration: none;
  background: var(--vp-bg); color: var(--vp-ink); border: 1px solid var(--vp-line);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.promo-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.promo-card-tag { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent); }
.promo-card-title { font: 700 20px/1.25 var(--font-body); color: #fff; }
.promo-card-text { font-size: 15px; line-height: 1.5; }
.promo-card-price { font-size: 12px; color: #fff; }
.promo-card .btn { align-self: flex-start; margin-top: 4px; }
.promo-card .btn svg { width: 16px; height: 16px; }

/* ---------- accounts (/account/…, static/js/account.js) ---------- */
.account-link { text-decoration: none; }
.account-link svg { width: 20px; height: 20px; }
.account-label { font-size: 14px; font-weight: 500; max-width: 10ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-link[aria-current='page'] { color: var(--ink); background: var(--surface-2); }
.page-account main { padding-bottom: clamp(48px, 6vw, 88px); }
.account-split { margin-top: 8px; }
.account-split h1 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.1; }
.auth { display: grid; justify-items: center; padding-top: clamp(8px, 3vw, 32px); }
.auth-card { width: min(100%, 460px); }
.auth-head { display: grid; gap: 6px; }
.auth-head h1 { font-size: clamp(26px, 3vw, 34px); line-height: 1.1; }
.auth-text { color: var(--ink-2); }
.auth-forgot { justify-self: end; margin-top: -6px; }
.auth-alt { text-align: center; }
.account-form a:not(.btn), .auth-card a:not(.btn) { color: var(--ink); text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.fld > label { font-weight: 600; font-size: 14px; color: var(--ink); }
.fld > span.small { font-weight: 400; font-size: 13px; color: var(--ink-3); }
.pw-wrap { position: relative; }
.order-form .pw-wrap .field { padding-right: 48px; }
.pw-toggle {
  position: absolute; top: 50%; right: 5px; transform: translateY(-50%);
  width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 8px; background: transparent; color: var(--ink-3); cursor: pointer;
}
.pw-toggle:hover, .pw-toggle[aria-pressed='true'] { color: var(--ink); background: var(--surface-2); }
.pw-toggle svg { width: 20px; height: 20px; }
.opt-in { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; align-items: start; font-size: 14.5px; color: var(--ink-2); cursor: pointer; }
.opt-in input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent); }
.order-form .field[readonly] { color: var(--ink-3); background: var(--surface-2); cursor: default; }
.order-form .field[readonly]:focus { box-shadow: none; border-color: var(--line); }

.account { display: grid; gap: 20px; }
.account-notice { max-width: 760px; }
.account-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px;
  padding-bottom: 20px; margin-bottom: 24px; border-bottom: 1px solid var(--line);
}
.account-head h1 { font-size: clamp(28px, 3.6vw, 44px); line-height: 1.1; margin: 6px 0 8px; overflow-wrap: anywhere; }
.account-head p { overflow-wrap: anywhere; }
.account-head strong { color: var(--ink); }
.account-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.9fr); gap: clamp(20px, 3vw, 36px); align-items: start; }
.account-side { display: grid; gap: clamp(20px, 3vw, 28px); min-width: 0; }
.account-h2 { font-size: 20px; }
.account-links { justify-items: start; gap: 14px; }
.account-danger > summary { cursor: pointer; font-weight: 600; color: var(--no); }
.account-danger .account-form { display: grid; gap: 14px; margin-top: 14px; }
.btn-danger { background: var(--no); color: var(--bg); border-color: var(--no); }
.btn-danger:hover { filter: brightness(1.08); }
.btn-danger:disabled { opacity: 0.7; cursor: default; }

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

/* ---------- 3D showroom (home) ---------- */
.showroom { padding-block: clamp(20px, 3vw, 40px) 0; scroll-margin-top: calc(var(--header-h) + 12px); }
.showroom .section-head { align-items: end; margin-bottom: 18px; }
/* first screen of the home page: one compact line of heading so the 3D stage shows without scrolling */
.showroom h1 { font-size: clamp(28px, 3vw, 40px); }
@media (min-width: 1100px) { .showroom .section-head { flex-wrap: nowrap; } .sr-intro { flex: 0 1 48ch; font-size: 15px; } }
.sr-intro { margin: 0; max-width: 44ch; color: var(--ink-2); }
.sr-packs { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px; margin: 0 0 8px; scrollbar-width: thin; scroll-snap-type: x proximity; }
.sr-pack {
  flex: none; display: flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; scroll-snap-align: start;
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink);
  font: inherit; text-align: left; cursor: pointer; transition: border-color 0.15s, box-shadow 0.15s, transform 0.12s;
}
.sr-pack:hover { border-color: var(--ink-3); }
.sr-pack img { width: 64px; height: 36px; object-fit: cover; border-radius: 7px; background: var(--surface-2); }
.sr-pack > span { display: grid; gap: 3px; }
.sr-pack-name { font-weight: 600; font-size: 14px; line-height: 1.15; white-space: nowrap; }
.sr-pack-meta { font-size: 11px; color: var(--ink-3); white-space: nowrap; }
.sr-pack[aria-selected='true'] { border: 2px solid var(--edge); padding: 5px 13px 5px 5px; box-shadow: 0 3px 0 var(--edge); background: var(--accent-soft); }
.sr-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
.sr-viewport { padding-bottom: 4px; }
.sr-worlds button { white-space: nowrap; }
.sr-stage {
  position: relative; aspect-ratio: 16 / 10; border-radius: 11px; overflow: hidden; isolation: isolate;
  background: radial-gradient(130% 85% at 50% 18%, var(--sr-sky) 0%, color-mix(in srgb, var(--sr-sky) 55%, var(--sr-floor)) 55%, var(--sr-floor) 100%);
  user-select: none; -webkit-user-select: none;
}
.sr-stage:fullscreen { border-radius: 0; aspect-ratio: auto; }
.sr-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; outline: none; }
.sr-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 0.45s ease; }
.sr-stage.is-live .sr-poster { opacity: 0; pointer-events: none; }
.sr-loading {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 3;
  display: grid; gap: 9px; min-width: 210px; max-width: calc(100% - 32px); padding: 12px 16px; border-radius: 12px;
  background: rgb(10 13 24 / 0.78); color: #fff; font-size: 12px; text-align: center; backdrop-filter: blur(6px);
}
.sr-loading[hidden] { display: none; }
.sr-bar { height: 4px; border-radius: 2px; background: rgb(255 255 255 / 0.16); overflow: hidden; }
.sr-bar i { display: block; height: 100%; width: var(--p, 0%); background: var(--accent); transition: width 0.2s ease; }
.sr-tools { position: absolute; top: 10px; right: 10px; z-index: 2; display: flex; gap: 4px; }
.sr-tool {
  width: 36px; height: 36px; display: grid; place-items: center; padding: 0; border-radius: 9px; cursor: pointer;
  background: rgb(10 13 24 / 0.58); color: #fff; border: 1px solid rgb(255 255 255 / 0.16); backdrop-filter: blur(6px);
}
.sr-tool:hover { background: rgb(10 13 24 / 0.8); }
.sr-tool svg { width: 18px; height: 18px; stroke-width: 2; }
.sr-tool[aria-pressed='true'] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.sr-tool[data-sr-tool='play'] { background: rgb(10 13 24 / 0.58); color: #fff; border-color: rgb(255 255 255 / 0.16); }
.sr-tool[data-sr-tool='play'] .i-play, .sr-tool[data-sr-tool='play'][aria-pressed='false'] .i-pause { display: none; }
.sr-tool[data-sr-tool='play'][aria-pressed='false'] .i-play { display: inline; }
.sr-tool[hidden] { display: none; }
.sr-label {
  position: absolute; left: 10px; top: 10px; z-index: 2; display: flex; align-items: center; gap: 10px; max-width: calc(100% - 220px);
  padding: 6px 6px 6px 12px; border-radius: 10px; background: rgb(10 13 24 / 0.72); color: #fff; backdrop-filter: blur(6px);
}
.sr-label[hidden] { display: none; }
.sr-label-name { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 15px; }
.sr-label-name b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr-rarity { font: 500 11px/1 var(--font-mono); text-transform: uppercase; letter-spacing: 0.06em; padding: 4px 6px; border-radius: 5px; background: var(--r, #6b7593); color: #fff; }
.sr-all { display: inline-flex; align-items: center; gap: 4px; padding: 6px 9px; border-radius: 7px; border: 1px solid rgb(255 255 255 / 0.2); background: transparent; color: #fff; font-size: 12px; cursor: pointer; white-space: nowrap; }
.sr-all:hover { background: rgb(255 255 255 / 0.1); }
.sr-all svg { width: 14px; height: 14px; }
.sr-hint {
  position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); z-index: 1; margin: 0; pointer-events: none;
  width: max-content; max-width: calc(100% - 20px); padding: 6px 10px; border-radius: 8px; text-align: center;
  background: rgb(10 13 24 / 0.55); color: #fff; font-size: 11px; line-height: 1.4; transition: opacity 0.4s ease;
}
.sr-hint.is-used { opacity: 0; }
.sr-tip {
  position: absolute; z-index: 2; pointer-events: none; transform: translate(-50%, calc(-100% - 14px));
  padding: 5px 8px; border-radius: 6px; background: rgb(10 13 24 / 0.82); color: #fff; font-size: 12px; white-space: nowrap;
}
.sr-tip[hidden] { display: none; }
.sr-clips { display: flex; gap: 4px; overflow-x: auto; padding: 10px 6px 2px; scrollbar-width: thin; scrollbar-color: var(--vp-line) transparent; }
.sr-clips:empty { display: none; }
.sr-clips button {
  flex: none; font: 500 12px/1 var(--font-mono); padding: 8px 10px; border-radius: 7px; cursor: pointer;
  background: rgb(255 255 255 / 0.05); color: var(--vp-ink); border: 1px solid var(--vp-line);
}
.sr-clips button:hover { color: #fff; border-color: color-mix(in srgb, var(--vp-line) 50%, #fff); }
.sr-clips button[aria-pressed='true'] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.sr-viewport .vp-readout:empty { display: none; }
.sr-side { display: grid; gap: 14px; min-width: 0; }
.sr-panel { display: grid; gap: 12px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.sr-panel[hidden] { display: none; }
.sr-kicker { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0; font-size: 12px; color: var(--ink-3); }
.sr-kicker .badge-first, .sr-badge { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; padding: 4px 7px; border-radius: 6px; }
.sr-badge { background: var(--accent-soft); color: var(--ink); }
.sr-panel h2 { margin: 0; font: 600 21px/1.2 var(--font-display); letter-spacing: normal; }
.sr-panel h2 a { text-decoration: none; }
.sr-panel h2 a:hover { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.sr-short { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.5; }
.sr-formats { margin: 0; font-size: 12px; color: var(--ink-3); }
.sr-buy { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 16px; padding-top: 4px; }
.sr-buy .price-lg { font-size: 30px; }
.sr-note { margin: 0; font-size: 13px; color: var(--ink-2); padding: 9px 12px; border-radius: 9px; background: var(--accent-soft); }
.sr-bundle { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border: 1px dashed var(--line); border-radius: 10px; font-size: 14px; color: var(--ink-2); text-decoration: none; }
.sr-bundle strong { color: var(--ink); }
.sr-bundle svg { width: 16px; height: 16px; }
.sr-bundle:hover { border-color: var(--ink-3); }
.sr-panel .text-link { justify-self: start; font-size: 15px; }
.sr-animals { display: grid; gap: 10px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.sr-animals-head { margin: 0; font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-3); }
.sr-animal-list { list-style: none; margin: 0; padding: 0 2px 2px 0; display: flex; flex-wrap: wrap; gap: 6px; max-height: 232px; overflow-y: auto; scrollbar-width: thin; }
.sr-animal-list button {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 8px; cursor: pointer;
  font: 500 13px/1.1 var(--font-body); color: var(--ink); background: var(--bg); border: 1px solid var(--line);
}
.sr-animal-list button[data-rarity]::before { content: ''; width: 7px; height: 7px; border-radius: 2px; background: var(--r, var(--ink-3)); flex: none; }
.sr-animal-list button:hover { border-color: var(--ink-3); }
.sr-animal-list button[aria-pressed='true'] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
[data-rarity='Common'] { --r: #8a94ad; }
[data-rarity='Uncommon'] { --r: #3aa65b; }
[data-rarity='Rare'] { --r: #3a7fe0; }
[data-rarity='Epic'] { --r: #9b51e0; }
[data-rarity='Legendary'] { --r: #f2a20c; }
[data-rarity='Mythic'] { --r: #e5484d; }
@media (max-width: 1100px) { .sr-layout { grid-template-columns: minmax(0, 1fr) 320px; } }
@media (max-width: 900px) {
  .sr-layout { grid-template-columns: minmax(0, 1fr); }
  .sr-side { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
}
@media (max-width: 640px) {
  .sr-stage { aspect-ratio: 1 / 1; }
  .sr-side { grid-template-columns: minmax(0, 1fr); }
  .sr-label { max-width: calc(100% - 20px); top: auto; bottom: 10px; }
  .sr-tool { width: 34px; height: 34px; }
  .sr-hint { bottom: 10px; }
  .sr-viewport .vp-bar:has(.sr-worlds[hidden]) { display: none; }
  .sr-viewport .vp-bar { padding: 2px 2px 8px; }
  .sr-worlds { width: 100%; overflow-x: auto; }
  .sr-intro { display: none; }
}
@media (prefers-reduced-motion: reduce) { .sr-poster, .sr-hint, .sr-bar i { transition: none; } }

/* ---------- Blocky People playable demo band (home) ---------- */
.play-band { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(18px, 3vw, 36px); align-items: center; padding-block: clamp(24px, 4vw, 44px) 8px; }
@media (max-width: 860px) { .play-band { grid-template-columns: minmax(0, 1fr); } }
.play-band-media { position: relative; display: block; border-radius: 18px; overflow: hidden; background: var(--vp-bg); border: 1px solid var(--vp-line); box-shadow: var(--shadow); aspect-ratio: 16 / 9; }
.play-band-media > img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.play-band-media:hover > img { transform: scale(1.03); }
.play-band-cast { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); align-items: end; gap: 2px; padding: 18px 12px 0; background: linear-gradient(#8cc6ec, #d9eef7 60%, #6cb84a 60%); }
.play-band-cast img { width: 100%; height: auto; }
.play-band-play { position: absolute; left: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px 10px 12px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); border: 2px solid var(--edge); box-shadow: 0 4px 0 var(--edge); font: 700 16px/1 var(--font-display); transition: transform 0.15s; }
.play-band-play svg { width: 22px; height: 22px; fill: var(--accent-ink); }
.play-band-media:hover .play-band-play { transform: translateY(-2px); }
.play-band-copy { display: grid; gap: 14px; justify-items: start; min-width: 0; }
.play-band-copy .eyebrow { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.play-band-copy h2 { margin: 0; font-size: clamp(24px, 2.6vw, 34px); text-wrap: balance; }
.play-band-copy p { margin: 0; color: var(--ink-2); max-width: 38em; }
.play-band-meta { color: var(--ink-3); }

/* our browser games on the home page (gamesBand) */
.games-band { margin-top: clamp(32px, 5vw, 64px); }
.games-band > * { position: relative; }
.games-band-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 32px; margin-bottom: 20px; }
.games-band-copy { display: grid; gap: 12px; max-width: 46em; min-width: 0; }
.games-band-copy .eyebrow { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.games-band-copy h2 { margin: 0; font-size: clamp(24px, 2.8vw, 36px); text-wrap: balance; }
.games-band-copy p { margin: 0; color: var(--ink-2); }
.games-band-cta { flex: none; gap: 10px; }
.games-band-cta svg { width: 20px; height: 20px; }
.games-band-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1000px) { .games-band-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.game-tile { display: flex; flex-direction: column; gap: 6px; height: 100%; padding-bottom: 14px; text-decoration: none; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); transition: transform 0.18s, border-color 0.18s; }
.game-tile:hover { transform: translateY(-3px); border-color: var(--accent); }
.game-tile-media { position: relative; display: block; aspect-ratio: 800 / 470; background: var(--vp-bg); margin-bottom: 6px; }
.game-tile-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.game-tile-play { position: absolute; right: 10px; bottom: 10px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); border: 2px solid var(--edge); box-shadow: 0 3px 0 var(--edge); transition: transform 0.15s; }
.game-tile-play svg { width: 20px; height: 20px; margin-left: 2px; }
.game-tile:hover .game-tile-play { transform: scale(1.1); }
.game-tile-title { padding-inline: 14px; font: 600 17px/1.25 var(--font-display); letter-spacing: -0.01em; }
.game-tile-text { padding-inline: 14px; font-size: 14px; line-height: 1.45; color: var(--ink-2); }
@media (max-width: 560px) { .game-tile-title { font-size: 15px; } .game-tile-text { font-size: 13px; } .games-band-grid { gap: 12px; } }
@media (prefers-reduced-motion: reduce) { .game-tile, .game-tile-play, .main-nav a.nav-games { transition: none; } }
.badge-soon { display: inline-flex; align-items: center; gap: 6px; font: 600 12px/1 var(--font-mono); text-transform: uppercase; letter-spacing: 0.06em; padding: 6px 9px; border-radius: 7px; background: var(--accent-soft); color: var(--ink); }
.badge-soon::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
@media (prefers-reduced-motion: reduce) { .play-band-media > img, .play-band-play { transition: none; } }

/* ---------- free pack on the home page and its "Want more?" ---------- */
.feature-free .feature-media { box-shadow: 0 0 0 3px var(--ok), var(--shadow); }
.feature-more { font-size: 14px; color: var(--ink-3); }
.feature-more a { color: var(--ink); }
.more-h { margin-top: 28px; margin-bottom: 12px; }
.more-custom { margin-top: 14px; color: var(--ink-2); }

/* ---------- languages ---------- */
.lang-switch { position: relative; }
.lang-switch summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; width: auto; padding-inline: 8px; }
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-code { font: 500 11px/1 var(--font-mono); }
.lang-list { position: absolute; z-index: 60; top: calc(100% + 6px); inset-inline-end: 0; margin: 0; padding: 6px; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(max-content, 1fr)); gap: 2px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.lang-list a { display: block; padding: 7px 10px; border-radius: 6px; color: var(--ink); text-decoration: none; font-size: 14px; white-space: nowrap; }
.lang-list a:hover { background: var(--surface-2); }
.lang-list a[aria-current] { background: var(--accent-soft); font-weight: 600; }
/* phones: only the globe in the header (one row at every width), the list as wide as the screen */
@media (max-width: 480px) {
  .lang-code { display: none; }
  .lang-switch summary { padding-inline: 6px; }
  .lang-list { position: fixed; top: 72px; inset-inline: 12px; max-height: 70vh; overflow-y: auto; }
}
/* the smallest phones: the theme follows the system, so the header stays one row */
@media (max-width: 400px) { .header-tools [data-theme-toggle] { display: none; } }
@media (max-width: 340px) { .logo-word { font-size: 16px; } .header-tools { gap: 2px; } }
:root[data-lang] .foot-grid > * { min-width: 0; }
:root[data-lang] .foot-col a { overflow-wrap: anywhere; }
.lang-list { max-height: 80vh; overflow-y: auto; }
.foot-langs { padding-block: 0 22px; }
.foot-langs ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; }
.foot-langs a { color: var(--foot-dim); text-decoration: none; }
.foot-langs a:hover, .foot-langs a[aria-current] { color: inherit; text-decoration: underline; }
.lang-bar { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 7px 44px; position: relative; background: var(--accent-soft); color: var(--ink); font-size: 14px; text-align: center; }
.lang-bar a { color: inherit; font-weight: 600; }
.lang-bar-close { position: absolute; inset-inline-end: 10px; top: 50%; translate: 0 -50%; background: none; border: 0; color: inherit; font-size: 20px; line-height: 1; cursor: pointer; padding: 4px 8px; }
/* Long words in other languages must not push a page sideways. */
:root[data-lang] :is(h1, h2, h3, .btn, .card-title, .eyebrow) { overflow-wrap: anywhere; hyphens: auto; }
:root[data-lang] .btn { white-space: normal; }
/* Fonts: the Latin faces stay for Latin text, the language's own face takes the rest (linked per language by src/i18n.mjs). */
:lang(vi) { --font-body: 'Be Vietnam Pro', 'Figtree', system-ui, sans-serif; --font-display: 'Be Vietnam Pro', 'Unbounded', system-ui, sans-serif; }
:lang(ru), :lang(uk) { --font-body: 'Golos Text', 'Figtree', system-ui, sans-serif; }
:lang(ar) { --font-body: 'Noto Sans Arabic', 'Figtree', system-ui, sans-serif; --font-display: 'Noto Sans Arabic', 'Unbounded', system-ui, sans-serif; }
:lang(hi) { --font-body: 'Figtree', 'Noto Sans Devanagari', system-ui, sans-serif; --font-display: 'Noto Sans Devanagari', 'Unbounded', system-ui, sans-serif; }
:lang(th) { --font-body: 'Figtree', 'Noto Sans Thai', system-ui, sans-serif; --font-display: 'Noto Sans Thai', 'Unbounded', system-ui, sans-serif; }
:lang(ja) { --font-body: 'Figtree', 'Noto Sans JP', system-ui, sans-serif; --font-display: 'Noto Sans JP', 'Unbounded', system-ui, sans-serif; }
:lang(ko) { --font-body: 'Figtree', 'Noto Sans KR', system-ui, sans-serif; --font-display: 'Noto Sans KR', 'Unbounded', system-ui, sans-serif; }
:lang(zh-Hans) { --font-body: 'Figtree', 'Noto Sans SC', system-ui, sans-serif; --font-display: 'Noto Sans SC', 'Unbounded', system-ui, sans-serif; }
:is(:lang(ar), :lang(hi), :lang(th), :lang(ja), :lang(ko), :lang(zh-Hans)) :is(h1, h2) { letter-spacing: 0; line-height: 1.3; }
:is(:lang(ar), :lang(hi), :lang(th)) body { line-height: 1.75; }
