:root {
  --bg: #f3f2ef; /* LinkedIn app background */
  --surface: #ffffff;
  --ink: rgba(0, 0, 0, 0.9);
  --ink-soft: rgba(0, 0, 0, 0.6);
  --ink-faint: rgba(0, 0, 0, 0.45);
  --line: rgba(0, 0, 0, 0.09);
  --line-strong: rgba(0, 0, 0, 0.16);
  --brand: #0a66c2;
  --brand-dark: #004182;
  --brand-soft: #e8f0fb;

  --wall: #b7b3aa;
  --board-frame: #46474b;
  --board-bg: #f7f6f3;
  --grid-line: rgba(0, 0, 0, 0.07);

  /* word colors — one per length, matching the official palette */
  --w3: #f24b3f; /* red    (3 letters) */
  --w4: #e51fa0; /* magenta(4 letters) */
  --w5: #aebf1c; /* lime   (5 letters) */
  --w6: #6a5bf0; /* indigo (6 letters) */
  --w3-tint: #fbd9d6;
  --w4-tint: #f9d0ea;
  --w5-tint: #ecf2c4;
  --w6-tint: #dbd7fb;

  --radius: 12px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 12px 34px rgba(0, 0, 0, 0.14);
  --font: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a {
  color: var(--brand);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
h1,
h2,
h3 {
  letter-spacing: -0.01em;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  font-size: 15px;
  padding: 11px 20px;
  border-radius: 999px;
  transition: background 0.12s ease, border-color 0.12s ease,
    box-shadow 0.12s ease, transform 0.1s ease;
  white-space: nowrap;
}
.btn:active {
  transform: translateY(1px);
}
.btn-primary {
  background: var(--brand);
  color: #fff;
}
.btn-primary:hover {
  background: var(--brand-dark);
  text-decoration: none;
}
.btn-secondary {
  background: transparent;
  color: var(--brand);
  border-color: var(--brand);
}
.btn-secondary:hover {
  background: var(--brand-soft);
  text-decoration: none;
}
.btn-small {
  padding: 8px 14px;
  font-size: 14px;
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px clamp(16px, 5vw, 48px);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-weight: 700;
}
.brand:hover {
  text-decoration: none;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
  font-size: 19px;
}
.brand-name {
  font-size: 20px;
}
.brand-tag {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-faint);
  border: 1px solid var(--line-strong);
  padding: 1px 7px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.4vw, 26px);
  font-weight: 600;
  font-size: 15px;
}
.site-nav a {
  color: var(--ink-soft);
}
.site-nav a:hover {
  color: var(--brand);
  text-decoration: none;
}
.site-nav .nav-cta {
  color: var(--brand);
}

/* ===== Hero ===== */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(36px, 6vw, 80px) clamp(16px, 5vw, 48px) clamp(20px, 4vw, 40px);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--brand);
  background: var(--brand-soft);
  padding: 5px 12px;
  border-radius: 999px;
  margin: 0 0 18px;
}
.spiral {
  font-size: 15px;
}
.hero h1 {
  font-size: clamp(38px, 6vw, 60px);
  line-height: 1.05;
  margin: 0 0 16px;
}
.hero-sub {
  font-size: clamp(16px, 1.5vw, 19px);
  color: var(--ink-soft);
  max-width: 30em;
  margin: 0 0 26px;
}
.hero-sub em {
  font-style: normal;
  font-weight: 700;
  color: var(--ink);
}
.hero-sub strong {
  color: var(--ink);
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.hero-stats {
  display: flex;
  gap: clamp(18px, 4vw, 40px);
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
  flex-wrap: wrap;
}
.hero-stats li {
  display: flex;
  flex-direction: column;
}
.hero-stats strong {
  font-size: 28px;
  font-weight: 800;
  color: var(--ink);
}
.hero-stats span {
  font-size: 13px;
  color: var(--ink-faint);
}
.hero-art {
  display: grid;
  place-items: center;
  gap: 14px;
}
.hero-art-cap {
  font-size: 13px;
  color: var(--ink-faint);
  margin: 0;
  text-align: center;
}

/* ===== Dual-path hero ===== */
.path-hero {
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(36px, 6vw, 72px) clamp(16px, 5vw, 40px) clamp(20px, 3vw, 32px);
}
.path-head {
  text-align: center;
  margin-bottom: clamp(28px, 4vw, 44px);
}
.path-head h1 {
  font-size: clamp(34px, 5.5vw, 54px);
  line-height: 1.05;
  margin: 10px 0 8px;
}
.path-sub {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--ink-soft);
  margin: 0;
}
.path-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 3vw, 26px);
  align-items: stretch;
}
.path-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: clamp(22px, 3vw, 32px);
  box-shadow: var(--shadow-md);
  border-top: 4px solid var(--line-strong);
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}
.path-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.path-card.official {
  border-top-color: #c79a2b;
}
.path-card.unlimited {
  border-top-color: var(--brand);
}
.path-icon {
  font-size: 38px;
  line-height: 1;
  margin-bottom: 10px;
}
.path-card h2 {
  font-size: clamp(20px, 2.6vw, 26px);
  margin: 0 0 4px;
}
.path-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.path-card.official .path-badge {
  background: #faf1d8;
  color: #9a7414;
}
.path-card.unlimited .path-badge {
  background: var(--brand-soft);
  color: var(--brand-dark);
}
.path-features {
  list-style: none;
  padding: 0;
  margin: 6px 0 22px;
  display: grid;
  gap: 10px;
}
.path-features li {
  position: relative;
  padding-left: 26px;
  color: var(--ink);
  font-size: 15.5px;
}
.path-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #1a8a5a;
  font-weight: 800;
}
.path-card .btn {
  width: 100%;
  margin-top: auto;
  padding: 14px 18px;
  font-size: 16px;
}
.path-note {
  text-align: center;
  font-size: 12.5px;
  color: var(--ink-faint);
  margin: 12px 0 0;
}
.path-tip {
  text-align: center;
  color: var(--ink-soft);
  font-size: 14px;
  margin: clamp(22px, 3vw, 32px) auto 0;
  max-width: 60ch;
  background: #fffbe9;
  border: 1px solid #f0e3b8;
  border-radius: 10px;
  padding: 12px 16px;
}
@media (max-width: 720px) {
  .path-cards {
    grid-template-columns: 1fr;
  }
}

/* ===== Mini board (decorative) ===== */
.mini-board {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 7px;
  width: min(360px, 82vw);
  aspect-ratio: 1;
  padding: 14px;
  background: var(--surface);
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
}
.mini-board.small {
  width: min(200px, 60vw);
  gap: 5px;
  padding: 10px;
  box-shadow: none;
  margin: 0 auto 4px;
}
.mini-cell {
  display: grid;
  place-items: center;
  border-radius: 9px;
  font-weight: 700;
  font-size: clamp(15px, 3.4vw, 22px);
  background: var(--tile);
  border: 1px solid var(--tile-edge);
  color: var(--ink);
}
.mini-board.small .mini-cell {
  font-size: 13px;
  border-radius: 6px;
}
.mini-cell.wall {
  background: var(--wall);
  border-color: transparent;
}
.mini-cell.c3 { background: var(--w3); color: #15171a; border-color: transparent; }
.mini-cell.c4 { background: var(--w4); color: #15171a; border-color: transparent; }
.mini-cell.c5 { background: var(--w5); color: #15171a; border-color: transparent; }
.mini-cell.c6 { background: var(--w6); color: #15171a; border-color: transparent; }

/* ===== Section heads ===== */
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 28px;
}
.section-head h2 {
  font-size: clamp(26px, 4vw, 36px);
  margin: 0 0 8px;
}
.section-head p {
  color: var(--ink-soft);
  margin: 0;
  font-size: 17px;
}

/* ===== Official embed ===== */
.embed-section {
  max-width: 1000px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 56px) clamp(16px, 5vw, 48px);
}
.embed-frame {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.embed-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: #faf9f7;
}
.embed-url {
  font-size: 13px;
  color: var(--ink-soft);
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.embed-stage {
  position: relative;
  width: 100%;
  height: min(78vh, 760px);
  background: var(--bg);
}
.embed-stage iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.embed-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 6px;
  padding: 32px;
  background: var(--bg);
}
.embed-fallback[hidden] {
  display: none;
}
.embed-peek {
  margin-top: 14px;
  background: none;
  border: none;
  color: var(--ink-faint);
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  text-decoration: underline;
}
.embed-peek:hover {
  color: var(--brand);
}
.embed-fallback h3 {
  margin: 6px 0 0;
  font-size: 22px;
}
.embed-fallback p {
  color: var(--ink-soft);
  max-width: 40ch;
  margin: 0 0 8px;
}
.embed-fallback-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}
.embed-note {
  text-align: center;
  color: var(--ink-faint);
  font-size: 13px;
  margin: 14px auto 0;
  max-width: 60ch;
}

/* ===== Promo ===== */
.promo {
  padding: clamp(28px, 5vw, 56px) clamp(16px, 5vw, 48px);
}
.promo-inner {
  max-width: 1000px;
  margin: 0 auto;
  background: linear-gradient(135deg, #0a66c2, #084c91);
  color: #fff;
  border-radius: 20px;
  padding: clamp(28px, 5vw, 48px);
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 32px;
  align-items: center;
  box-shadow: var(--shadow-md);
}
.promo-inner h2 {
  font-size: clamp(24px, 3.4vw, 34px);
  margin: 0 0 12px;
}
.promo-inner p {
  color: rgba(255, 255, 255, 0.88);
  margin: 0 0 22px;
  font-size: 17px;
}
.promo-inner strong {
  color: #fff;
}
.promo-inner .btn-primary {
  background: #fff;
  color: var(--brand);
}
.promo-inner .btn-primary:hover {
  background: #eaf1fb;
}
.promo-inner .mini-board {
  box-shadow: none;
  border: none;
  background: rgba(255, 255, 255, 0.16);
}
.promo-inner .mini-cell.wall {
  background: rgba(255, 255, 255, 0.3);
}

/* ===== Info sections ===== */
.info-section {
  max-width: 1000px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 56px) clamp(16px, 5vw, 48px);
}
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
}
.step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
  box-shadow: var(--shadow-sm);
}
.step-num {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--brand-soft);
  color: var(--brand);
  display: grid;
  place-items: center;
  font-weight: 800;
  margin-bottom: 14px;
}
.step h3 {
  margin: 0 0 7px;
  font-size: 17px;
}
.step p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14.5px;
}
.about {
  max-width: 760px;
}
.about p {
  font-size: 17px;
  color: var(--ink-soft);
}
.about em {
  font-style: italic;
  color: var(--ink);
}
.about strong {
  color: var(--ink);
}
.fineprint {
  font-size: 13.5px !important;
  color: var(--ink-faint);
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin-top: 24px;
}

/* ===== Stats band ===== */
.stat-band {
  max-width: 1000px;
  margin: 8px auto 0;
  padding: 26px clamp(16px, 5vw, 48px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px 24px;
}
.stat {
  text-align: center;
  padding: 8px 4px;
}
.stat-num {
  display: block;
  font-size: clamp(26px, 4.5vw, 38px);
  font-weight: 900;
  color: var(--brand);
  line-height: 1.1;
}
.stat-label {
  display: block;
  margin-top: 6px;
  font-size: 14px;
  color: var(--ink-soft);
}
.stat-source {
  grid-column: 1 / -1;
  text-align: center;
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--ink-faint);
}

/* ===== Example figures ===== */
.example-figure {
  margin: 30px auto 0;
  max-width: 560px;
  text-align: center;
}
.example-figure img,
.split-art img {
  width: min(320px, 80vw);
  height: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
  background: var(--surface);
}
.example-figure figcaption {
  margin: 14px auto 0;
  max-width: 460px;
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* ===== Split (copy + art) ===== */
.split {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(20px, 4vw, 44px);
  align-items: center;
}
.split-copy h3 {
  margin: 0 0 6px;
  font-size: 18px;
}
.split-copy h3:not(:first-child) {
  margin-top: 22px;
}
.split-copy p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15.5px;
  line-height: 1.65;
}
.split-art {
  margin: 0;
  text-align: center;
}
.split-art figcaption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--ink-faint);
}
@media (max-width: 720px) {
  .split {
    grid-template-columns: 1fr;
  }
}

/* ===== Games suite ===== */
.suite-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.suite-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: var(--shadow-sm);
}
.suite-list li.is-new {
  border-color: var(--brand);
  background: var(--brand-soft);
}
.suite-name {
  font-weight: 800;
  color: var(--ink);
}
.suite-kind {
  font-size: 13px;
  color: var(--ink-faint);
}
.suite-list li.is-new .suite-kind {
  color: var(--brand);
  font-weight: 700;
}
.suite-note {
  max-width: 720px;
  margin: 20px auto 0;
  text-align: center;
  color: var(--ink-soft);
  font-size: 15px;
}

/* ===== FAQ ===== */
.faq {
  max-width: 820px;
}
.faq-list {
  display: grid;
  gap: 14px;
}
.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px 22px;
  box-shadow: var(--shadow-sm);
}
.faq-item h3 {
  margin: 0 0 8px;
  font-size: 17px;
  color: var(--ink);
}
.faq-item p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.6;
}

/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 20px;
  padding: 24px clamp(16px, 5vw, 48px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink-faint);
  font-size: 14px;
  flex-wrap: wrap;
}

/* =====================================================================
   PLAY PAGE
   ===================================================================== */
.game-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  padding: 10px clamp(12px, 4vw, 24px);
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.game-back,
.game-info-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  display: grid;
  place-items: center;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
}
.game-back:hover,
.game-info-btn:hover {
  background: var(--bg);
  text-decoration: none;
}
.game-title {
  text-align: center;
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.game-title-name {
  font-size: 20px;
  font-weight: 800;
}
.game-title-mode {
  font-size: 12px;
  font-weight: 700;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.play-main {
  display: grid;
  place-items: start center;
  padding: clamp(16px, 4vw, 32px) 14px 60px;
}
.game-card {
  width: min(480px, 100%);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  padding: clamp(16px, 4vw, 24px);
}
.game-subhead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 16px;
}
.puzzle-no {
  font-size: 16px;
  font-weight: 800;
}
.puzzle-tagline {
  font-size: 13px;
  color: var(--ink-faint);
}

/* board */
.board-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  margin: 0 auto;
  padding: 7px;
  border: 5px solid var(--board-frame);
  border-radius: 18px;
  background: var(--board-bg);
  touch-action: none;
}
.board-art {
  position: absolute;
  inset: 7px;
  width: calc(100% - 14px);
  height: calc(100% - 14px);
  pointer-events: none;
  z-index: 1;
}
.board-art text {
  font-family: var(--font);
}
.hit-grid {
  position: absolute;
  inset: 7px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(5, 1fr);
  z-index: 2;
}
.hit {
  cursor: pointer;
}
.hit.is-wall {
  cursor: default;
}

/* SVG board pieces */
.b-grid { stroke: var(--grid-line); stroke-width: 1; }
.b-wall { fill: var(--wall); }

/* light tint = full-cell fill of each word's pale color (merged per word,
   with the outer boundary inset slightly so words don't crowd each other) */
.b-tint.l3 { fill: var(--w3-tint); }
.b-tint.l4 { fill: var(--w4-tint); }
.b-tint.l5 { fill: var(--w5-tint); }
.b-tint.l6 { fill: var(--w6-tint); }
.b-tint.pending { fill: rgba(0, 0, 0, 0.05); }

/* saturated snake = rounded capsule, wide enough to leave room around letters */
.b-cap {
  fill: none;
  stroke-width: 10.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.b-cap.l3 { stroke: var(--w3); }
.b-cap.l4 { stroke: var(--w4); }
.b-cap.l5 { stroke: var(--w5); }
.b-cap.l6 { stroke: var(--w6); }
.b-cap.pending { stroke: rgba(0, 0, 0, 0.28); }

/* start marker = solid filled disc (with a white halo ring), not just an outline */
.b-start.l3 { fill: var(--w3); }
.b-start.l4 { fill: var(--w4); }
.b-start.l5 { fill: var(--w5); }
.b-start.l6 { fill: var(--w6); }
.b-start.pending { fill: rgba(0, 0, 0, 0.32); }
.b-halo {
  fill: none;
  stroke: #ffffff;
  stroke-width: 1.6;
  opacity: 0.95;
}
.b-chev {
  fill: none;
  stroke: rgba(0, 0, 0, 0.4);
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.b-letter {
  fill: #15171a;
  font-weight: 700;
  font-size: 9.3px;
  text-anchor: middle;
  dominant-baseline: central;
}
.b-badge-bg { fill: #ffffff; }
.b-badge-check {
  fill: none;
  stroke: #1a7a40;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
@keyframes pop {
  0% { transform: scale(0.85); }
  60% { transform: scale(1.12); }
  100% { transform: scale(1); }
}

/* word list (connected colored circles) */
.word-slots {
  display: grid;
  gap: 9px;
  margin: 22px 2px 18px;
}
.slot-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.slot-cells {
  display: flex;
}
.slot-cell {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #e7e5e0;
  border: 2px solid var(--surface);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 15px;
  color: #15171a;
  margin-left: -7px;
}
.slot-cell:first-child {
  margin-left: 0;
}
.slot-row.l3 .slot-cell.filled { background: var(--w3); }
.slot-row.l4 .slot-cell.filled { background: var(--w4); }
.slot-row.l5 .slot-cell.filled { background: var(--w5); }
.slot-row.l6 .slot-cell.filled { background: var(--w6); }
.slot-check {
  margin-left: 4px;
  color: #1a7a40;
  font-weight: 800;
  font-size: 16px;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.slot-row.done .slot-check {
  opacity: 1;
}

/* controls — big pill buttons like the original */
.controls {
  display: flex;
  gap: 12px;
  justify-content: center;
}
.btn-control {
  flex: 1;
  background: #ebe9e4;
  color: var(--ink);
  border: none;
  padding: 15px 16px;
  font-size: 16px;
  border-radius: 999px;
}
.btn-control:hover {
  background: #e0ddd6;
}
.btn-control:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.ctrl-ico {
  font-size: 16px;
}
.status-line {
  text-align: center;
  color: var(--ink-soft);
  font-size: 14px;
  margin: 16px 0 0;
  min-height: 1.4em;
}
.status-line.good { color: var(--w4); font-weight: 700; }
.status-line.bad { color: var(--w3); font-weight: 700; }

.play-nav {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

/* ===== Modals ===== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(3px);
  display: grid;
  place-items: center;
  z-index: 100;
  padding: 20px;
}
.modal-backdrop[hidden] {
  display: none;
}
.modal {
  background: var(--surface);
  border-radius: 18px;
  padding: 32px 30px;
  text-align: center;
  max-width: 400px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  animation: pop 0.3s ease;
}
.modal-burst {
  font-size: 44px;
}
.modal h2 {
  font-size: 28px;
  margin: 6px 0 6px;
}
.modal p {
  color: var(--ink-soft);
  margin: 0 0 8px;
}
.modal-meta {
  color: var(--ink-faint);
  font-size: 14px;
  margin-bottom: 20px;
}
.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 18px;
}
.modal-how {
  text-align: left;
}
.modal-how h2 {
  text-align: center;
}
.how-list {
  margin: 8px 0 0;
  padding-left: 20px;
  color: var(--ink-soft);
}
.how-list li {
  margin-bottom: 9px;
}
.how-list strong {
  color: var(--ink);
}

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-sub {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-actions,
  .hero-stats {
    justify-content: center;
  }
  .hero-art {
    order: -1;
  }
  .promo-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .promo-inner .mini-board {
    margin: 0 auto;
  }
}
@media (max-width: 640px) {
  .site-nav a:not(.nav-cta) {
    display: none;
  }
}
@media (max-width: 520px) {
  .slot-cell {
    width: 26px;
    height: 30px;
    font-size: 15px;
  }
  .play-nav .btn {
    flex: 1;
  }
}
