:root {
  --ink: #17253f;
  --ink: oklch(25.4% .072 254.13);
  --cobalt: #3068c9;
  --cobalt: oklch(52.1% .148 254.13);
  --cobalt-deep: #2b5bb0;
  --cobalt-deep: oklch(47.6% .136 254.13);
  --cobalt-soft: #c9d9f2;
  --cobalt-soft: oklch(87.6% .051 254.13);
  --cobalt-pale: #e8eef8;
  --cobalt-pale: oklch(94.3% .019 254.13);
  --wash-1: #f8fafc;
  --wash-1: oklch(98.5% .004 239.95);
  --wash-2: #eef4fa;
  --wash-2: oklch(96.5% .011 239.95);
  --wash-3: #c7dcee;
  --wash-3: oklch(87.6% .049 239.95);
  --slate: #4c5c74;
  --slate: oklch(43.2% .027 259.5);
  --slate-soft: #7c8ba3;
  --slate-soft: oklch(60.9% .023 259.37);
  --line: #dce6f0;
  --tile: #e7cf9f;
  --tile: oklch(90% .05 80);
  --tile-ink: #4a3a1f;
  --tile-used: #e3e8ee;
  --good: #2f9463;
  --good: oklch(58% .12 152);
  --good-pale: #e3f4ec;
  --good-pale: oklch(94% .05 152);
  --paper: #ffffff;
  --header-h: 64px;
  --wrap: 1180px;
  --content: 700px;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --sans: "Sora", system-ui, sans-serif;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--cobalt); text-decoration: none; }
a.link { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: var(--cobalt-soft); transition: color 160ms var(--ease-out), text-decoration-color 160ms var(--ease-out); }
a.link:hover { color: var(--cobalt-deep); text-decoration-color: var(--cobalt-deep); }
:focus-visible { outline: 2.5px solid var(--cobalt); outline-offset: 3px; border-radius: 2px; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p { margin: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.wrap-narrow { max-width: 760px; margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ---------- scroll progress ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 100%;
  background: var(--cobalt);
  transform: scaleX(0);
  transform-origin: left;
  z-index: 60;
}

/* ---------- header ---------- */
.top-wash {
  background: linear-gradient(145deg, var(--wash-1) 0%, var(--wash-2) 35%, var(--wash-3) 100%);
}
header.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in oklab, var(--wash-1) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 220ms var(--ease-in-out), box-shadow 220ms var(--ease-in-out);
}
header.site-header.is-scrolled { border-color: var(--wash-3); box-shadow: 0 8px 24px rgba(23, 37, 63, 0.06); }
.hdr-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
}
.logo-link { display: flex; align-items: center; color: var(--ink); flex-shrink: 0; }
.logo-link svg { height: 20px; width: auto; }

.desk-nav { display: none; }
.nav-item { position: relative; }
.nav-trigger {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  padding: 8px 2px;
}
.nav-trigger svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 2.4; transition: transform 160ms var(--ease-out); }
.nav-trigger[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 210px;
  background: var(--paper);
  border-radius: 8px;
  box-shadow: 0 14px 32px rgba(23, 37, 63, 0.14);
  padding: 8px;
  display: none;
  flex-direction: column;
}
.nav-panel.is-open { display: flex; }
.nav-panel a {
  padding: 9px 10px;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 500;
  color: var(--slate);
  transition: background-color 120ms var(--ease-out), color 120ms var(--ease-out);
}
.nav-panel a:hover { background: var(--wash-2); color: var(--ink); }

.hamburger { display: grid; place-items: center; width: 30px; height: 30px; color: var(--ink); }
.hamburger svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.6; }

.mobile-nav {
  display: none;
  position: absolute;
  top: var(--header-h);
  right: 0;
  left: 0;
  z-index: 30;
  background: color-mix(in oklab, var(--cobalt) 96%, black);
  padding: 8px 0 28px;
}
.mobile-nav.is-open { display: block; }
.mobile-group-label {
  padding: 14px 20px 6px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.62);
}
.mobile-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 20px;
  font-size: 15px;
  font-weight: 500;
  color: #fff;
}
.mobile-nav a:hover { background: rgba(255, 255, 255, 0.08); }
.mobile-nav a svg { width: 14px; height: 14px; stroke: rgba(255, 255, 255, 0.5); fill: none; stroke-width: 2.2; flex-shrink: 0; }

/* ---------- buttons ---------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--cobalt);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  padding: 14px 24px;
  border-radius: 8px;
  transition: background-color 160ms var(--ease-out), transform 160ms var(--ease-out), box-shadow 160ms var(--ease-out);
  box-shadow: 0 10px 24px rgba(48, 104, 201, 0.28);
}
.btn-primary:hover { background: var(--cobalt-deep); }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 28px rgba(48, 104, 201, 0.34); }
}
.btn-primary:active { transform: translateY(0); }
.btn-primary svg { width: 16px; height: 16px; stroke: #fff; fill: none; stroke-width: 2.2; }
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  padding: 14px 18px;
  border-radius: 8px;
  border: 1.5px solid var(--wash-3);
  background: rgba(255,255,255,0.5);
  transition: border-color 160ms var(--ease-out), background-color 160ms var(--ease-out);
}
.btn-ghost:hover { border-color: var(--cobalt-soft); background: var(--paper); }
.btn-ghost svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2.2; }

/* ---------- hero ---------- */
.hero { padding: 40px 0 0; position: relative; overflow: hidden; }
.hero-grid { display: grid; gap: 40px; position: relative; z-index: 1; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 16px; font-size: 13.5px; font-weight: 700; color: var(--cobalt-deep); padding: 6px 12px 6px 10px; background: var(--paper); border: 1px solid var(--cobalt-soft); border-radius: 999px; }
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--good); flex-shrink: 0; }
.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(32px, 6.5vw, 50px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ink);
  max-width: 15ch;
}
.hero .lede { margin: 0 0 26px; max-width: 52ch; font-size: 17.5px; line-height: 1.65; color: var(--slate); }
.hero-cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 18px 22px; margin-bottom: 32px; }
.hero-tags .tag-item { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--slate); }
.hero-tags .tag-item svg { width: 15px; height: 15px; stroke: var(--good); fill: none; stroke-width: 2.4; }

.scroll-cue { display: flex; align-items: center; gap: 8px; margin-top: 44px; font-size: 12.5px; font-weight: 600; color: var(--slate-soft); }
.scroll-cue svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 2.2; animation: bob 1.8s var(--ease-in-out) infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }
@media (prefers-reduced-motion: reduce) { .scroll-cue svg { animation: none; } }

/* ---------- hero demo widget ---------- */
.demo {
  background: var(--paper);
  border: 1px solid var(--wash-3);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 24px 60px rgba(23, 37, 63, 0.1);
  position: relative;
  z-index: 1;
}
.demo-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; gap: 10px; }
.demo-title { font-size: 13px; font-weight: 700; color: var(--slate-soft); }
.demo-shuffle { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--cobalt); padding: 6px 10px; border-radius: 6px; transition: background-color 140ms var(--ease-out); }
.demo-shuffle:hover { background: var(--cobalt-pale); }
.demo-shuffle svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 2.4; transition: transform 400ms var(--ease-in-out); }
.demo-shuffle.is-spinning svg { transform: rotate(360deg); }

.demo-guess {
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 4px 14px;
  margin-bottom: 14px;
  border-bottom: 1.5px dashed var(--wash-3);
  flex-wrap: wrap;
}
.demo-guess-placeholder { font-size: 13.5px; color: var(--slate-soft); }
.demo-guess-letter {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  background: var(--cobalt-pale);
  border: 1px solid var(--cobalt-soft);
  border-radius: 6px;
  font-weight: 800;
  color: var(--cobalt-deep);
  font-size: 15px;
}

.demo-rack { display: flex; gap: 9px; flex-wrap: wrap; margin-bottom: 16px; }
.demo-tile {
  --rot: 0deg;
  width: 48px; height: 48px;
  background: var(--tile);
  border-radius: 7px;
  box-shadow: 0 2px 0 rgba(74, 58, 31, 0.35), 0 8px 16px rgba(23, 37, 63, 0.12);
  display: grid;
  place-items: center;
  position: relative;
  transform: rotate(var(--rot));
  transition: transform 160ms var(--ease-out), opacity 200ms var(--ease-out), box-shadow 160ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .demo-tile:not(:disabled):hover { transform: translateY(-3px) rotate(var(--rot)); box-shadow: 0 4px 0 rgba(74, 58, 31, 0.35), 0 14px 22px rgba(23, 37, 63, 0.18); }
}
.demo-tile:active:not(:disabled) { transform: scale(0.94) rotate(var(--rot)); }
.demo-tile:disabled { background: var(--tile-used); box-shadow: none; opacity: 0.55; cursor: default; }
.demo-tile .letter { font-size: 20px; font-weight: 800; color: var(--tile-ink); line-height: 1; }
.demo-tile:disabled .letter { color: var(--slate-soft); }
.demo-tile .value { position: absolute; right: 5px; bottom: 4px; font-family: var(--mono); font-size: 8.5px; font-weight: 600; color: var(--tile-ink); opacity: .7; }

.demo-feedback { min-height: 20px; margin-bottom: 14px; font-size: 13.5px; font-weight: 600; color: var(--slate); transition: color 160ms var(--ease-out); }
.demo-feedback.is-good { color: var(--good); }

.demo-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px solid var(--wash-2); flex-wrap: wrap; }
.demo-progress-label { font-size: 12.5px; font-weight: 700; color: var(--slate-soft); }
.demo-found { display: flex; flex-wrap: wrap; gap: 6px; }
.demo-found .chip {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 5px;
  background: var(--good-pale);
  color: var(--good);
  opacity: 0;
  transform: scale(0.9);
  animation: chip-in 260ms var(--ease-out) forwards;
}
@keyframes chip-in { to { opacity: 1; transform: scale(1); } }
.demo-note { margin-top: 14px; font-size: 12px; line-height: 1.5; color: var(--slate-soft); }
.demo-note a { font-weight: 700; }

/* ---------- stat strip ---------- */
.stat-strip { padding: 32px 0; background: var(--ink); }
.stat-strip .wrap { display: grid; gap: 24px; grid-template-columns: repeat(3, 1fr); text-align: center; }
.stat-num { font-family: var(--mono); font-size: clamp(28px, 5vw, 40px); font-weight: 600; color: #fff; line-height: 1; margin-bottom: 8px; }
.stat-label { font-size: 12.5px; font-weight: 600; color: rgba(255,255,255,0.6); }

/* ---------- generic section rhythm ---------- */
.section { padding: 72px 0; }
.section.on-wash { background: var(--wash-1); }
.section-head { max-width: 660px; margin: 0 auto 40px; text-align: center; }
.kicker { display: block; font-size: 13px; font-weight: 700; color: var(--cobalt); margin-bottom: 10px; }
.section-head h2 { margin: 0 0 14px; font-size: clamp(26px, 4vw, 34px); font-weight: 800; letter-spacing: -0.015em; line-height: 1.16; color: var(--ink); }
.section-head p { font-size: 17px; line-height: 1.68; color: var(--slate); margin-left: auto; margin-right: auto; }
h3.sub-h { margin: 0 0 14px; font-size: 20px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.25; color: var(--ink); }
h4.sub-h4 { margin: 0 0 12px; font-size: 16.5px; font-weight: 700; line-height: 1.3; color: var(--ink); }
.body-copy { font-size: 16px; line-height: 1.72; color: var(--slate); max-width: 66ch; }
.body-copy + .body-copy { margin-top: 16px; }
.body-copy strong { color: var(--ink); font-weight: 700; }

/* ---------- centered text blocks (headings + prose, no other component) ---------- */
.section-body { max-width: 760px; margin: 0 auto; }
.centered-copy { max-width: 680px; margin: 0 auto; text-align: center; font-size: 17px; line-height: 1.72; color: var(--slate); }
.centered-copy p { font-size: 17px; line-height: 1.72; color: var(--slate); }
.centered-copy p + p { margin-top: 16px; }
.centered-copy strong { color: var(--ink); font-weight: 700; }
.lead-center { max-width: 640px; margin: 0 auto 22px; text-align: center; }
.lead-center p { font-size: 20px; font-weight: 600; line-height: 1.55; color: var(--ink); }
.expandable-group {
  position: relative;
  overflow: hidden;
  transition: height 420ms var(--ease-in-out), opacity 260ms var(--ease-out);
}
.expandable-group.is-expanded { opacity: 1; }
.expandable-group + .show-more-btn { margin-top: 18px; }
.fact-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 30px; margin: 30px auto 0; }
.fact-row .fact-item { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--slate); }
.fact-row .fact-item svg { width: 16px; height: 16px; stroke: var(--good); fill: none; stroke-width: 2.4; flex-shrink: 0; }
.expandable {
  position: relative;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 420ms var(--ease-in-out), opacity 220ms var(--ease-out);
  --fade-bg: var(--paper);
}
.expandable::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 40px;
  background: linear-gradient(to bottom, transparent, var(--fade-bg));
  opacity: 1;
  transition: opacity 260ms var(--ease-out);
  pointer-events: none;
}
.expandable.is-expanded {
  opacity: 1;
}
.expandable.is-expanded::after { opacity: 0; }
.expandable.on-wash { --fade-bg: var(--wash-1); }
.expandable-copy {
  position: relative;
  overflow: hidden;
  max-height: 8.6em;
  opacity: 0.96;
  transition: max-height 420ms var(--ease-in-out), opacity 260ms var(--ease-out);
}
.expandable-copy::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 2.4em;
  background: linear-gradient(to bottom, transparent, var(--fade-bg, var(--paper)) 78%);
  pointer-events: none;
  transition: opacity 220ms var(--ease-out);
}
.expandable-copy.is-expanded {
  opacity: 1;
}
.expandable-copy.is-expanded::after { opacity: 0; }
.expandable-copy.is-expanded + .show-more-btn svg { transform: rotate(180deg); }
.show-more-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  width: max-content;
  margin: 12px auto 0;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--cobalt);
  padding: 6px 4px;
  transition: color 140ms var(--ease-out);
}
.show-more-btn:hover { color: var(--cobalt-deep); }
.show-more-btn svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 2.4; transition: transform 220ms var(--ease-in-out); }
.show-more-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
@media (prefers-reduced-motion: reduce) {
  .expandable { transition: none; }
  .expandable::after { transition: none; }
  .expandable-copy { transition: none; }
  .expandable-copy::after { transition: none; }
  .expandable-group { transition: none; }
}

.panel-card {
  max-width: 800px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: clamp(32px, 5vw, 52px) clamp(24px, 6vw, 56px);
  background: var(--wash-1);
  text-align: center;
}
.trio > div {
  transition: transform 180ms var(--ease-out), box-shadow 180ms var(--ease-out), background-color 180ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .trio > div:hover {
    background: var(--cobalt-pale);
    box-shadow: 0 12px 24px rgba(23, 37, 63, 0.1);
    transform: translateY(-4px);
  }
}

/* ---------- about: milestones + flip trio ---------- */
.about-layout { display: grid; gap: 28px; max-width: 960px; margin: 40px auto 0; }
.trio-flip { display: grid; gap: 12px; grid-template-columns: repeat(3, 1fr); }
.trio-flip-card.flip-card { height: 128px; }
.trio-flip-card .flip-front { justify-content: center; align-items: center; text-align: center; gap: 6px; }
.trio-flip-card .flip-front .game-name { font-size: 15.5px; }
.trio-flip-card .flip-back { padding: 18px; }
.trio-flip-card .flip-back p { font-size: 13.5px; }
@media (min-width: 860px) {
  .about-layout { grid-template-columns: 1.3fr 1fr; align-items: start; }
  .trio-flip { grid-template-columns: 1fr; }
}

/* ---------- media split (photo + copy) ---------- */
.media-split { display: grid; gap: 28px; align-items: stretch; max-width: 980px; margin: 0 auto; }
.media-split-img { order: 1; border-radius: 16px; overflow: hidden; box-shadow: 0 20px 48px rgba(23, 37, 63, 0.12); aspect-ratio: 4 / 3; }
.media-split-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-split-copy { order: 2; }
.media-split.reverse .media-split-img { order: 2; }
.media-split.reverse .media-split-copy { order: 1; }
@media (min-width: 860px) {
  .media-split { grid-template-columns: 0.85fr 1.15fr; gap: 48px; }
  .media-split-img { aspect-ratio: auto; }
}

@keyframes tab-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

.lead-answer { border-left: 3px solid var(--cobalt); padding-left: 18px; margin: 0 0 18px; }
.lead-answer p { font-size: 17.5px; font-weight: 600; line-height: 1.55; color: var(--ink); }

dl.deflist { margin: 20px 0 0; }
dl.deflist > div { display: grid; gap: 4px; padding: 14px 0; border-top: 1px solid var(--line); }
dl.deflist > div:first-child { border-top: 0; }
dl.deflist dt { font-size: 15px; font-weight: 700; color: var(--ink); }
dl.deflist dd { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--slate); }

/* ---------- how it works: stepper + diagram ---------- */
.hiw-grid { display: grid; gap: 36px; }
.pipeline { display: flex; align-items: center; margin-bottom: 28px; }
.pipeline-node {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 2px solid var(--wash-3);
  display: grid; place-items: center;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--slate-soft);
  background: var(--paper);
  flex-shrink: 0;
  transition: border-color 220ms var(--ease-in-out), color 220ms var(--ease-in-out), background-color 220ms var(--ease-in-out), transform 220ms var(--ease-in-out);
}
.pipeline-node.is-active { border-color: var(--cobalt); color: #fff; background: var(--cobalt); transform: scale(1.12); }
.pipeline-node.is-done { border-color: var(--cobalt-soft); color: var(--cobalt-deep); background: var(--cobalt-pale); }
.pipeline-rail { flex: 1; height: 2px; background: var(--wash-3); position: relative; margin: 0 4px; }
.pipeline-fill { position: absolute; inset: 0; background: var(--cobalt); transform: scaleX(0); transform-origin: left; transition: transform 380ms var(--ease-in-out); }

.step-list { display: flex; flex-direction: column; gap: 2px; }
.step-btn {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 14px 12px;
  border-radius: 8px;
  text-align: left;
  width: 100%;
  transition: background-color 160ms var(--ease-out);
}
.step-btn:hover { background: var(--wash-1); }
.step-btn.is-active { background: var(--cobalt-pale); }
.step-btn-num { font-family: var(--mono); font-size: 13px; font-weight: 700; color: var(--slate-soft); flex-shrink: 0; }
.step-btn.is-active .step-btn-num { color: var(--cobalt-deep); }
.step-btn-label { font-size: 15px; font-weight: 700; color: var(--ink); }

.step-detail-panel { padding: 26px; background: var(--wash-1); border-radius: 12px; min-height: 120px; }
.step-detail { display: none; font-size: 16px; line-height: 1.7; color: var(--slate); }
.step-detail.is-active { display: block; animation: tab-in 320ms var(--ease-out); }
@media (prefers-reduced-motion: reduce) { .step-detail.is-active { animation: none; } }
.step-detail strong { color: var(--ink); }

/* ---------- marquee ---------- */
.marquee { overflow: hidden; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.marquee-track { display: flex; gap: 14px; width: max-content; animation: marquee 32s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } .marquee { overflow-x: auto; } }
.marquee-item {
  display: flex; align-items: center; gap: 8px;
  font-size: 13.5px; font-weight: 700; color: var(--slate);
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}
.marquee-item .mini-tile { width: 20px; height: 20px; border-radius: 4px; background: var(--tile); display: grid; place-items: center; font-size: 10px; font-weight: 800; color: var(--tile-ink); }

/* ---------- game cards ---------- */
.card-grid { display: grid; gap: 16px; margin-top: 8px; }
.flip-card { perspective: 1200px; height: 168px; }
.flip-card-inner {
  position: relative;
  width: 100%; height: 100%;
  transform-style: preserve-3d;
  transition: transform 480ms var(--ease-in-out);
}
@media (hover: hover) and (pointer: fine) {
  .flip-card:hover .flip-card-inner { transform: rotateY(180deg); }
}
.flip-card.is-flipped .flip-card-inner { transform: rotateY(180deg); }
.flip-face {
  position: absolute; inset: 0;
  backface-visibility: hidden;
  border-radius: 12px;
  border: 1px solid var(--line);
  padding: 20px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.flip-front { background: var(--paper); }
.flip-front .mini-tile { width: 34px; height: 34px; border-radius: 7px; background: var(--tile); display: grid; place-items: center; font-weight: 800; color: var(--tile-ink); font-size: 15px; }
.flip-front .game-name { font-size: 17px; font-weight: 700; color: var(--ink); }
.flip-front .flip-hint { font-size: 12px; font-weight: 600; color: var(--slate-soft); }
.flip-back { background: var(--cobalt); color: #fff; transform: rotateY(180deg); justify-content: center; }
.flip-back p { font-size: 14.5px; line-height: 1.55; }
.flip-back a { color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; margin-top: 10px; display: inline-block; }

.tools-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.tool-chip {
  font-size: 14px; font-weight: 600; color: var(--ink);
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: border-color 150ms var(--ease-out), background-color 150ms var(--ease-out);
}
.tool-chip:hover { border-color: var(--cobalt-soft); background: var(--cobalt-pale); }

/* ---------- reason grid (icon + copy cards) ---------- */
.reason-grid { display: grid; gap: 16px; max-width: 900px; margin: 0 auto; }
.reason-card {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 22px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--paper); text-align: left;
  transition: transform 180ms var(--ease-out), box-shadow 180ms var(--ease-out), border-color 180ms var(--ease-out);
}
.reason-card .icon {
  width: 42px; height: 42px; border-radius: 10px; flex-shrink: 0;
  background: var(--cobalt-pale); display: grid; place-items: center;
}
.reason-card .icon svg { width: 20px; height: 20px; stroke: var(--cobalt-deep); fill: none; stroke-width: 2.1; }
.reason-card h4 { margin: 0 0 5px; font-size: 15.5px; font-weight: 700; color: var(--ink); }
.reason-card p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--slate); }
@media (hover: hover) and (pointer: fine) {
  .reason-card:hover { transform: translateY(-3px); box-shadow: 0 14px 26px rgba(23, 37, 63, 0.1); border-color: var(--cobalt-soft); }
}
@media (min-width: 640px) {
  .reason-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 768px) {
  .reason-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- comparison ---------- */
.compare { max-width: 900px; margin: 0 auto; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--paper); }
.compare-head { display: grid; grid-template-columns: 1.4fr 1fr 1fr; }
.compare-head > div { padding: 14px 16px; font-size: 12.5px; font-weight: 700; color: var(--slate-soft); }
.compare-head .us { color: var(--cobalt-deep); background: var(--cobalt-pale); }
.compare-row { display: grid; grid-template-columns: 1.4fr 1fr 1fr; border-top: 1px solid var(--line); }
.compare-row > div { padding: 14px 16px; font-size: 14px; line-height: 1.5; display: flex; align-items: center; }
.compare-row .claim { color: var(--ink); font-weight: 600; }
.compare-row .us { background: var(--cobalt-pale); justify-content: center; }
.compare-row .them { justify-content: center; color: var(--slate-soft); }
.compare-row.is-extra { display: none; }
.compare-row.is-extra.is-shown { display: grid; animation: tab-in 260ms var(--ease-out); }
@media (prefers-reduced-motion: reduce) { .compare-row.is-extra.is-shown { animation: none; } }
.icon-yes, .icon-no { width: 18px; height: 18px; stroke-width: 2.6; fill: none; }
.icon-yes { stroke: var(--good); }
.icon-no { stroke: var(--slate-soft); }
.compare-toggle {
  display: block; width: 100%; text-align: center;
  padding: 15px; font-size: 14px; font-weight: 700; color: var(--cobalt);
  border-top: 1px solid var(--line);
  transition: background-color 140ms var(--ease-out);
}
.compare-toggle:hover { background: var(--wash-1); }

/* ---------- accordion ---------- */
.accordion { max-width: 800px; margin: 0 auto; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--paper); }
.accordion-item + .accordion-item { border-top: 1px solid var(--line); }
.accordion-trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 18px 20px; text-align: left;
  font-size: 15.5px; font-weight: 700; color: var(--ink);
  transition: background-color 140ms var(--ease-out);
}
.accordion-trigger:hover { background: var(--wash-1); }
.accordion-trigger svg { width: 15px; height: 15px; stroke: var(--slate-soft); fill: none; stroke-width: 2.4; flex-shrink: 0; transition: transform 220ms var(--ease-in-out); }
.accordion-trigger[aria-expanded="true"] svg { transform: rotate(180deg); }
.accordion-panel { height: 0; overflow: hidden; transition: height 260ms var(--ease-in-out); }
.accordion-panel-inner { padding: 0 20px 20px; font-size: 15px; line-height: 1.65; color: var(--slate); }
@media (prefers-reduced-motion: reduce) { .accordion-panel { transition: none; } }

.checklist { display: grid; gap: 4px; margin: 8px auto 0; max-width: 700px; text-align: left; }
.checklist-item { display: flex; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.checklist-item:first-child { border-top: 0; }
.checklist-item svg { width: 20px; height: 20px; stroke: var(--good); fill: none; stroke-width: 2.4; flex-shrink: 0; margin-top: 2px; }
.checklist-item p { font-size: 15px; line-height: 1.6; color: var(--slate); }
.checklist-item strong { color: var(--ink); }

/* ---------- id card / official names ---------- */
.id-card { border: 1px solid var(--line); border-radius: 14px; padding: 28px; background: var(--wash-1); }
.id-row { display: grid; grid-template-columns: 140px 1fr; gap: 8px 16px; padding: 12px 0; border-top: 1px solid var(--wash-3); align-items: center; }
.id-row:first-child { border-top: 0; }
.id-row .k { font-size: 12.5px; font-weight: 700; color: var(--slate-soft); }
.id-row .v { font-size: 15px; font-weight: 600; color: var(--ink); }
.copy-btn { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 13px; color: var(--cobalt-deep); padding: 4px 8px; border-radius: 5px; transition: background-color 140ms var(--ease-out); }
.copy-btn:hover { background: var(--cobalt-pale); }
.copy-btn svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 2.2; }
.copy-btn.is-copied { color: var(--good); }

/* ---------- contact ---------- */
.channel-picker { max-width: 900px; margin: 0 auto 44px; text-align: center; }
.channel-picker-label { font-size: 13px; font-weight: 700; color: var(--slate-soft); margin-bottom: 14px; }
.channel-tabs { display: flex; gap: 10px; margin: 0 auto 24px; max-width: 380px; }
.channel-tab {
  flex: 1;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 16px;
  border: 1.5px solid var(--wash-3);
  border-radius: 10px;
  font-size: 14.5px; font-weight: 700; color: var(--slate);
  background: var(--paper);
  transition: border-color 160ms var(--ease-out), background-color 160ms var(--ease-out), color 160ms var(--ease-out), box-shadow 160ms var(--ease-out);
}
.channel-tab svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; flex-shrink: 0; }
.channel-tab:hover { border-color: var(--cobalt-soft); }
.channel-tab.is-active { color: #fff; background: var(--cobalt); border-color: var(--cobalt); box-shadow: 0 10px 22px rgba(48, 104, 201, 0.28); }
.channel-panels { text-align: left; }
.channel-panel { display: none; }
.channel-panel.is-active { display: block; animation: tab-in 280ms var(--ease-out); }
@media (prefers-reduced-motion: reduce) { .channel-panel.is-active { animation: none; } }
[data-channel-card] { border-radius: 16px; transition: box-shadow 220ms var(--ease-out); }
[data-channel-card].is-highlighted .social-card,
[data-channel-card].is-highlighted .email-card {
  border-color: var(--cobalt);
  box-shadow: 0 0 0 3px var(--cobalt-pale), 0 14px 28px rgba(23, 37, 63, 0.1);
}
.contact-grid { display: grid; gap: 16px; margin-top: 8px; }
.social-card {
  display: flex; flex-direction: column; gap: 4px;
  padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper);
  transition: border-color 150ms var(--ease-out), box-shadow 150ms var(--ease-out);
}
.social-card:hover { border-color: var(--cobalt-soft); box-shadow: 0 10px 24px rgba(23,37,63,0.08); }
.social-card .name { font-size: 15px; font-weight: 700; color: var(--ink); }
.social-card .handle { font-family: var(--mono); font-size: 12.5px; color: var(--cobalt-deep); }
.social-card .desc { font-size: 13.5px; color: var(--slate); }
.email-card {
  display: flex; flex-direction: column; gap: 14px;
  padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper);
}
.email-card .label { font-size: 12px; font-weight: 700; color: var(--slate-soft); }
.email-card .value-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.email-card .mail { font-family: var(--mono); font-size: 16px; font-weight: 500; color: var(--ink); word-break: break-word; }

/* ---------- final CTA band ---------- */
.cta-band { background: var(--ink); border-radius: 20px; padding: 56px 36px; text-align: center; position: relative; overflow: hidden; }
.cta-band h2 { margin: 0 0 12px; font-size: clamp(24px, 4vw, 32px); font-weight: 800; color: #fff; letter-spacing: -0.015em; }
.cta-band p { margin: 0 auto 26px; max-width: 46ch; font-size: 16px; color: rgba(255,255,255,0.72); }
.cta-band .btn-primary { box-shadow: 0 14px 30px rgba(0,0,0,0.3); }

/* ---------- floating cta ---------- */
.floating-cta {
  position: fixed;
  bottom: 22px; right: 20px;
  z-index: 50;
  opacity: 0;
  transform: translateY(14px) scale(0.96);
  pointer-events: none;
  transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out);
}
.floating-cta.is-visible { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }

/* ---------- footer ---------- */
footer.site-footer { margin-top: 0; }
.footer-nav { display: flex; flex-direction: column; gap: 4px; padding: 36px 0; }
.footer-nav a {
  display: flex; align-items: center; gap: 12px; padding: 9px 0;
  font-size: 15px; font-weight: 600; color: var(--ink);
}
.footer-nav a svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2.2; opacity: .55; }
.footer-legal { padding: 24px 0 36px; border-top: 1px solid var(--wash-3); display: grid; gap: 8px; font-size: 12.5px; line-height: 1.6; color: var(--slate-soft); }

.placeholder-flag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; font-weight: 700; color: #92660c;
  background: #fdf3d9; border: 1px solid #f0dca0;
  padding: 5px 10px; border-radius: 6px; margin-top: 12px;
}

@media (min-width: 560px) {
  .compare-head, .compare-row { grid-template-columns: 1.6fr 0.9fr 0.9fr; }
}

@media (min-width: 640px) {
  .wrap, .wrap-narrow { padding: 0 32px; }
  .hero { padding: 56px 0 0; }
  .card-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .stat-strip .wrap { gap: 32px; }
  .footer-nav { flex-direction: row; flex-wrap: wrap; gap: 28px; }
}

@media (min-width: 860px) {
  .desk-nav { display: flex; align-items: center; gap: 30px; }
  .hamburger, .mobile-nav { display: none !important; }
  :root { --header-h: 72px; }
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; align-items: start; }
  .hiw-grid { grid-template-columns: 0.9fr 1.1fr; align-items: start; }
  .card-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 980px) {
  .section { padding: 96px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .flip-card-inner, .demo-tile, .btn-primary, header.site-header { transition-duration: 0.01ms !important; }
  .scroll-progress { transition: none !important; }
}
