:root {
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Strictly 3 body font sizes */
  --text-heading: 1.25rem;
  --text-body: 0.96875rem;
  --text-sm: 0.84375rem;

  /* Nordic Pine default palette */
  --stage-bg-1: #0b1e1a;
  --stage-bg-2: #15362f;
  --stage-surface: rgba(10, 27, 24, 0.76);
  --stage-border: rgba(230, 179, 75, 0.3);
  --stage-ink: #faf6ef;
  --stage-muted: #bfd5ce;

  --page-bg: #f6f1e7;
  --surface: #fffdf8;
  --surface-tint: #f1e9db;
  --ink: #1a2421;
  --muted: #50605b;
  --line: rgba(26, 36, 33, 0.12);

  --accent: #c63a37;
  --accent-hover: #a82c29;
  --accent-ink: #fffaf3;
  --gold: #e6b34b;
  --gold-deep: #85560e;
  --gold-soft: #fff5d9;
  --ok: #1f7a54;
  --radius: 18px;
  --radius-sm: 11px;
  --shadow: 0 18px 46px rgba(7, 19, 17, 0.25);
}

#workbench[data-theme='ginger'] {
  --stage-bg-1: #2a170f;
  --stage-bg-2: #4b2a1b;
  --stage-surface: rgba(44, 23, 14, 0.78);
  --stage-border: rgba(244, 198, 126, 0.36);
  --stage-muted: #e6ccb9;
}

#workbench[data-theme='aurora'] {
  --stage-bg-1: #0b162d;
  --stage-bg-2: #173152;
  --stage-surface: rgba(11, 24, 48, 0.8);
  --stage-border: rgba(145, 224, 212, 0.36);
  --stage-muted: #c0d6ee;
}

#workbench[data-theme='velvet'] {
  --stage-bg-1: #2f0f1b;
  --stage-bg-2: #541b2e;
  --stage-surface: rgba(46, 14, 26, 0.8);
  --stage-border: rgba(246, 196, 134, 0.38);
  --stage-muted: #ebc9d4;
}

#workbench[data-golden='1'] {
  --stage-bg-1: #241905;
  --stage-bg-2: #48320b;
  --stage-surface: rgba(40, 28, 7, 0.82);
  --stage-border: rgba(255, 219, 125, 0.65);
  --stage-muted: #f3dfb2;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--text-body);
  line-height: 1.58;
  color: var(--ink);
  background: var(--page-bg);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }
img, svg, canvas { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; }

.tabular { font-variant-numeric: tabular-nums; }
.mono-code { letter-spacing: 0.08em; font-variant-numeric: tabular-nums; font-weight: 700; }
.is-hidden { display: none !important; }

.skip-link { position: absolute; left: -9999px; top: 0; }
.skip-link:focus {
  left: 12px; top: 12px; z-index: 9999;
  padding: 10px 14px; border-radius: 8px;
  background: var(--surface); color: var(--ink);
}

.shell {
  width: min(1160px, 100% - 32px);
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(11, 30, 26, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 245, 224, 0.1);
  color: var(--stage-ink);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.24rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  white-space: nowrap;
}

.header-nav a {
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: 500;
  color: rgba(250, 246, 239, 0.88);
  transition: color 160ms ease-out;
}

.header-nav a:hover { color: var(--gold); }

/* Interactive Workbench Stage */
.workbench-stage {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 16% 12%, rgba(230, 179, 75, 0.15), transparent 44%),
              radial-gradient(circle at 86% 84%, rgba(198, 58, 55, 0.14), transparent 45%),
              linear-gradient(165deg, var(--stage-bg-1) 0%, var(--stage-bg-2) 100%);
  color: var(--stage-ink);
  padding: 24px 0 42px;
}

.snow-canvas-wrap {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.65;
}
.snow-canvas-wrap canvas { width: 100%; height: 100%; }

.workbench-shell { position: relative; z-index: 2; }

.workbench-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.workbench-title-group h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.6vw, 2.75rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--stage-ink);
}

.stage-subtitle {
  margin: 6px 0 0;
  font-size: var(--text-body);
  color: var(--stage-muted);
  max-width: 62ch;
}

.workbench-utils {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.util-link {
  background: transparent;
  border: 1px solid rgba(250, 246, 239, 0.3);
  color: var(--stage-ink);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  transition: background-color 160ms ease-out, border-color 160ms ease-out;
}
.util-link:hover { background: rgba(255, 255, 255, 0.1); border-color: var(--gold); }

.wallet-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(230, 179, 75, 0.18);
  border: 1px solid rgba(230, 179, 75, 0.52);
  color: #ffe8a9;
  font-size: var(--text-sm);
  font-weight: 700;
  cursor: pointer;
  transition: transform 160ms ease-out, background-color 160ms ease-out;
}
.wallet-pill:hover { background: rgba(230, 179, 75, 0.28); transform: translateY(-1px); }

.lights-bar { margin-bottom: 16px; width: 100%; overflow: hidden; }

.workbench-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(320px, 0.88fr);
  gap: 24px;
  align-items: start;
}

.board-column { display: flex; flex-direction: column; gap: 18px; }

.door-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  padding: 16px;
  border-radius: var(--radius);
  background: var(--stage-surface);
  border: 1px solid var(--stage-border);
  box-shadow: var(--shadow);
}
.door-grid[data-doors='7'],
.door-grid[data-doors='12'] { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.door-tile {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1.14;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  border-radius: 13px;
  transition: transform 170ms cubic-bezier(0.22, 1, 0.36, 1), filter 170ms ease-out;
}
.door-tile:hover { transform: translateY(-3px); }
.door-tile:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.door-tile.is-picked { transform: translateY(-4px) scale(1.03); filter: drop-shadow(0 0 12px rgba(230, 179, 75, 0.72)); }
.door-tile svg { width: 100%; height: 100%; }

/* Side Panel */
.side-column { display: flex; flex-direction: column; gap: 16px; }
.side-panel {
  background: var(--surface);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}
.side-panel h2, .side-panel h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: var(--text-heading);
  line-height: 1.25;
  letter-spacing: -0.015em;
}
.panel-copy { margin: 0 0 14px; color: var(--muted); font-size: var(--text-body); }
.panel-meta { margin: 0 0 12px; color: var(--muted); font-size: var(--text-sm); }

.field-block { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field-block > span { font-size: var(--text-sm); font-weight: 600; color: var(--ink); }
.field-block input[type='text'],
.field-block input[type='email'],
.field-block input[type='password'],
.field-block textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1.5px solid rgba(26, 36, 33, 0.18);
  border-radius: var(--radius-sm);
  background: #ffffff;
  color: var(--ink);
  font-size: var(--text-body);
  transition: border-color 150ms ease-out;
}
.field-block textarea { min-height: 92px; resize: vertical; }
.field-block input:focus, .field-block textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(198, 58, 55, 0.2);
}
button:focus-visible, a:focus-visible, summary:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.char-row { display: flex; justify-content: space-between; align-items: center; font-size: var(--text-sm); color: var(--muted); }

/* Segmented controls & Theme Swatches */
.segmented {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 4px;
  padding: 4px;
  border-radius: 12px;
  background: var(--surface-tint);
  margin-bottom: 14px;
}
.seg-btn {
  border: 0;
  background: transparent;
  padding: 8px 10px;
  border-radius: 9px;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: background-color 150ms ease-out, color 150ms ease-out;
}
.seg-btn[aria-pressed='true'],
.seg-tab.is-active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 2px 8px rgba(26, 36, 33, 0.08);
}

.theme-swatches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 16px; }
.theme-opt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 8px 6px;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  background: #ffffff;
  cursor: pointer;
  font-size: var(--text-sm);
  font-weight: 600;
  transition: border-color 150ms ease-out;
}
.theme-opt[aria-pressed='true'] { border-color: var(--accent); background: #fff7f5; }

.swatch-dot { width: 24px; height: 24px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.7); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25); }
.swatch-pine { background: linear-gradient(135deg, #0f2c26, #e6b34b); }
.swatch-ginger { background: linear-gradient(135deg, #5e311d, #f0be74); }
.swatch-aurora { background: linear-gradient(135deg, #12284a, #7de3d2); }
.swatch-velvet { background: linear-gradient(135deg, #5c1931, #f5b9c8); }

/* Buttons */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 13px 18px; border: 0; border-radius: var(--radius-sm);
  background: var(--accent); color: var(--accent-ink);
  font-size: var(--text-body); font-weight: 700; text-decoration: none; cursor: pointer;
  transition: background-color 160ms ease-out, transform 160ms ease-out;
}
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-primary:disabled { opacity: 0.65; cursor: wait; transform: none; }

.btn-gold {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 12px 16px; border: 0; border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #f3cd6c 0%, #d4962a 100%); color: #2b1a04;
  font-size: var(--text-body); font-weight: 700; text-decoration: none; cursor: pointer;
  transition: filter 160ms ease-out, transform 160ms ease-out;
}
.btn-gold:hover { filter: brightness(1.05); transform: translateY(-1px); }

.btn-secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 14px; border: 1.5px solid rgba(26, 36, 33, 0.16); border-radius: var(--radius-sm);
  background: #ffffff; color: var(--ink); font-size: var(--text-sm); font-weight: 600;
  text-decoration: none; cursor: pointer;
  transition: background-color 150ms ease-out, border-color 150ms ease-out;
}
.btn-secondary:hover { background: var(--surface-tint); border-color: rgba(26, 36, 33, 0.3); }

.text-link-btn {
  display: inline-flex; align-items: center; min-height: 44px;
  background: none; border: 0; padding: 8px 4px; color: var(--accent);
  font-size: var(--text-sm); font-weight: 600; cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px;
}

.turnstile-slot { margin: 8px 0 10px; min-height: 0; }
.note-item-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; }
.inapp-img-preview { width: 100%; max-height: 60dvh; object-fit: contain; border-radius: 12px; margin: 12px auto; border: 1px solid var(--line); }

.mobile-nav-more { display: none; position: relative; }
.mobile-nav-more summary {
  list-style: none; cursor: pointer; font-size: var(--text-sm); font-weight: 600;
  color: rgba(250, 246, 239, 0.9); padding: 6px 10px; border-radius: 8px;
  border: 1px solid rgba(250, 246, 239, 0.24);
}
.mobile-nav-more summary::-webkit-details-marker { display: none; }
.mobile-nav-menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 170px;
  background: #102622; border: 1px solid rgba(230, 179, 75, 0.35); border-radius: 12px;
  padding: 8px; box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
  display: flex; flex-direction: column; gap: 4px; z-index: 60;
}
.mobile-nav-menu a {
  padding: 9px 12px; border-radius: 8px; text-decoration: none;
  color: #faf6ef; font-size: var(--text-sm); font-weight: 500;
}
.mobile-nav-menu a:hover { background: rgba(255, 255, 255, 0.1); color: var(--gold); }

.action-row { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.action-row .grow { flex: 1; }

.share-box { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.share-channels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.share-ch {
  padding: 9px 8px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--surface-tint); color: var(--ink); font-size: var(--text-sm); font-weight: 600;
  cursor: pointer; transition: background-color 150ms ease-out;
}
.share-ch:hover { background: #e8decc; }

.code-strip {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 12px; border-radius: 10px; background: var(--surface-tint); font-size: var(--text-sm);
}

.divider-line { height: 1px; background: var(--line); margin: 16px 0; }

.icon-row { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; margin-bottom: 14px; }
.icon-opt {
  padding: 7px 0; border-radius: 10px; border: 1.5px solid var(--line);
  background: #ffffff; font-size: 1.15rem; cursor: pointer;
  transition: border-color 140ms ease-out, transform 140ms ease-out;
}
.icon-opt[aria-pressed='true'] { border-color: var(--accent); background: #fff4f2; transform: scale(1.06); }

.wrap-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 14px; }
.wrap-opt {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 11px; border-radius: 10px; border: 1.5px solid var(--line);
  background: #ffffff; font-size: var(--text-sm); font-weight: 600; cursor: pointer;
  transition: border-color 140ms ease-out, background-color 140ms ease-out;
}
.wrap-opt[aria-pressed='true'] { border-color: var(--gold-deep); background: var(--gold-soft); }
.wrap-cost { color: var(--gold-deep); font-variant-numeric: tabular-nums; }

.prompt-card { padding: 10px 12px; border-radius: 10px; background: var(--surface-tint); margin-bottom: 12px; font-size: var(--text-sm); }
.prompt-card strong { display: block; margin-bottom: 6px; }
.prompt-starters { display: flex; flex-direction: column; gap: 6px; }
.starter-btn {
  text-align: left; border: 0; background: rgba(255, 255, 255, 0.85);
  padding: 7px 10px; border-radius: 8px; font-size: var(--text-sm); color: var(--ink); cursor: pointer;
  transition: background-color 140ms ease-out;
}
.starter-btn:hover { background: #ffffff; }

.check-line { display: flex; align-items: flex-start; gap: 9px; margin-bottom: 10px; font-size: var(--text-sm); color: var(--ink); cursor: pointer; }
.check-line input { margin-top: 3px; accent-color: var(--accent); }

.upgrade-block { padding-top: 14px; margin-top: 14px; border-top: 1px solid var(--line); }
.upgrade-block p { margin: 0 0 10px; font-size: var(--text-sm); color: var(--muted); }

.backup-banner {
  margin-top: 12px;
  padding: 12px;
  border-radius: 12px;
  background: #f4f7f5;
  border: 1px solid rgba(31, 122, 84, 0.22);
  font-size: var(--text-sm);
}
.backup-banner strong { display: block; margin-bottom: 4px; color: var(--ink); }

.friend-circle {
  background: rgba(255, 253, 248, 0.96);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow);
}
.friend-circle h3 { margin: 0 0 10px; font-family: var(--font-display); font-size: var(--text-heading); }
.circle-list { display: flex; flex-direction: column; gap: 8px; }
.circle-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px; border-radius: 10px; background: var(--surface-tint);
  text-decoration: none; font-size: var(--text-sm); font-weight: 600;
  transition: background-color 150ms ease-out;
}
.circle-item:hover { background: #e9decb; }

/* Mini Games */
.inline-mini-game {
  background: var(--stage-surface);
  border: 1px solid var(--stage-border);
  border-radius: var(--radius);
  padding: 16px 18px;
  color: var(--stage-ink);
}
.game-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.game-canvas {
  width: 100%; height: 270px; border-radius: 12px;
  background: linear-gradient(180deg, #0b1c26 0%, #15343f 100%);
  touch-action: none; cursor: pointer;
}

.games-picker { display: inline-grid; grid-auto-flow: column; gap: 4px; padding: 4px; background: var(--surface-tint); border-radius: 12px; margin-bottom: 20px; max-width: 100%; overflow-x: auto; }
.seg-tab { border: 0; background: transparent; padding: 9px 14px; border-radius: 9px; font-size: var(--text-sm); font-weight: 700; color: var(--muted); cursor: pointer; white-space: nowrap; }
.games-stage { background: #0d211d; color: var(--stage-ink); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); max-width: 680px; }

.match-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 12px; }
.match-tile {
  aspect-ratio: 1; border-radius: 12px; border: 1.5px solid rgba(230, 179, 75, 0.35);
  background: #173a32; color: #faf6ef; font-size: 1.8rem; cursor: pointer;
  transition: transform 150ms ease-out, background-color 150ms ease-out;
}
.match-tile.is-open { background: #fbf6eb; color: #1a2421; }
.match-tile.is-matched { background: #d9a441; color: #2b1a04; }

.scramble-stage { padding: 18px 8px; text-align: center; }
.scramble-word { font-family: var(--font-display); font-size: 2rem; letter-spacing: 0.14em; color: #ffe28a; margin: 14px 0 6px; }
.scramble-hint { color: var(--stage-muted); font-size: var(--text-sm); margin: 0 0 16px; }
.scramble-form { display: flex; gap: 10px; max-width: 420px; margin: 0 auto; }
.scramble-form input {
  flex: 1; padding: 11px 14px; border-radius: 10px; border: 1.5px solid rgba(255, 245, 224, 0.25);
  background: rgba(255, 255, 255, 0.08); color: #fffaf0; text-transform: uppercase; letter-spacing: 0.08em;
}

/* Editorial / SEO / GEO / Comparison Sections */
.story-section { padding: 56px 0; background: var(--page-bg); }
.story-section h2, .faq-section h2, .editorial-section h2 {
  margin: 0 0 22px; font-family: var(--font-display);
  font-size: clamp(1.55rem, 3vw, 2.15rem); letter-spacing: -0.02em;
}
.steps-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.steps-grid li { padding-top: 16px; border-top: 2px solid rgba(26, 36, 33, 0.14); }
.step-num { display: inline-block; margin-bottom: 8px; font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--accent); }
.steps-grid h3 { margin: 0 0 8px; font-size: var(--text-heading); font-family: var(--font-display); }
.steps-grid p { margin: 0; color: var(--muted); }

.editorial-section { padding: 52px 0; background: var(--surface); border-top: 1px solid var(--line); }
.editorial-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.editorial-col h3 { margin: 0 0 8px; font-family: var(--font-display); font-size: var(--text-heading); }
.editorial-col p { margin: 0 0 14px; color: var(--muted); max-width: 62ch; }

.hub-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 24px; }
.hub-link {
  display: block; padding: 18px; border-radius: 14px; background: var(--page-bg);
  border: 1px solid var(--line); text-decoration: none;
  transition: border-color 160ms ease-out, transform 160ms ease-out;
}
.hub-link:hover { border-color: var(--accent); transform: translateY(-2px); }
.hub-link strong { display: block; font-family: var(--font-display); font-size: var(--text-heading); margin-bottom: 6px; }
.hub-link span { color: var(--muted); font-size: var(--text-sm); }

.faq-section { padding: 48px 0 64px; background: var(--page-bg); border-top: 1px solid var(--line); }
.faq-shell { max-width: 820px; }
.faq-list details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq-list summary { font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; font-size: 1.25rem; color: var(--accent); }
.faq-list details[open] summary::after { content: '−'; }
.faq-list p { margin: 10px 0 2px; color: var(--muted); max-width: 65ch; }

/* Subpages, Articles & Comparison Tables */
.subpage-main { padding: 40px 0 72px; }
.doc-shell { width: min(840px, 100% - 32px); margin-inline: auto; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: var(--text-sm); color: var(--muted); margin-bottom: 16px; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); text-decoration: underline; }

.doc-shell h1, .games-hub h1 {
  margin: 0 0 12px; font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.6vw, 2.7rem); line-height: 1.12; letter-spacing: -0.025em;
}
.doc-meta { font-size: var(--text-sm); color: var(--muted); margin: 0 0 20px; }
.doc-intro { margin: 0 0 24px; color: var(--muted); max-width: 65ch; }
.doc-body h2 { margin: 34px 0 10px; font-family: var(--font-display); font-size: clamp(1.35rem, 2.5vw, 1.7rem); letter-spacing: -0.015em; }
.doc-body h3 { margin: 22px 0 8px; font-family: var(--font-display); font-size: var(--text-heading); }
.doc-body p { margin: 0 0 14px; color: var(--muted); max-width: 68ch; }
.doc-body ul, .doc-body ol { margin: 0 0 16px; padding-left: 22px; color: var(--muted); max-width: 66ch; }
.doc-body li { margin-bottom: 8px; }
.doc-body a { color: var(--accent); text-underline-offset: 3px; }

.answer-box {
  padding: 20px 22px;
  border-radius: 14px;
  background: var(--surface);
  border-left: 4px solid var(--accent);
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 0 0 24px;
}
.answer-box p { margin: 0; color: var(--ink); max-width: 66ch; }

.cta-strip {
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  padding: 22px 24px; border-radius: var(--radius);
  background: #0d231f; color: #faf6ef; margin: 28px 0;
}
.cta-strip p { margin: 4px 0 0; color: #c1d7d0; font-size: var(--text-sm); max-width: 48ch; }
.cta-strip .btn-primary { width: auto; }

.table-wrap { overflow-x: auto; margin: 22px 0; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); }
.compare-table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.compare-table th, .compare-table td { padding: 13px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare-table th { background: var(--surface-tint); font-weight: 700; color: var(--ink); }
.compare-table tr:last-child td { border-bottom: 0; }
.compare-table td:nth-child(2) { background: rgba(198, 58, 55, 0.04); font-weight: 600; color: var(--ink); }

.ideas-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 14px 0 26px; }
.idea-tile {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 13px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line);
}
.idea-tile span { font-size: var(--text-body); color: var(--ink); }
.idea-copy {
  flex-shrink: 0; padding: 6px 11px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--surface-tint); font-size: var(--text-sm); font-weight: 600; cursor: pointer;
}
.idea-copy:hover { background: #e8decc; }

.code-form { background: var(--surface); padding: 24px; border-radius: var(--radius); border: 1px solid var(--line); margin-bottom: 24px; }
.status-line { margin: 6px 0 0; font-size: var(--text-sm); color: var(--accent); min-height: 1.2em; }
.status-line.is-ok { color: var(--ok); }

/* Countdown Clock widget */
.countdown-panel {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  padding: 20px; border-radius: var(--radius); background: #0d231f; color: #faf6ef; margin: 22px 0;
  text-align: center;
}
.cd-unit strong { display: block; font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.6rem); color: #f3cb6c; font-variant-numeric: tabular-nums; }
.cd-unit span { font-size: var(--text-sm); color: #bed4cd; }

/* Modal & Scratch-off */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(7, 17, 15, 0.74); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.modal-card {
  width: min(470px, 100%); max-height: 90dvh; overflow-y: auto;
  background: var(--surface); color: var(--ink); border-radius: var(--radius);
  padding: 24px; box-shadow: 0 24px 64px rgba(0, 0, 0, 0.44);
}
.modal-card h2 { margin: 0 0 8px; font-family: var(--font-display); font-size: 1.45rem; }

.scratch-box {
  position: relative; border-radius: 14px; overflow: hidden;
  background: var(--surface-tint); border: 1.5px solid rgba(230, 179, 75, 0.48);
  padding: 22px 18px; min-height: 175px; margin: 14px 0;
}
.scratch-note-icon { font-size: 2rem; margin-bottom: 8px; }
.scratch-note-text { margin: 0 0 12px; font-size: 1.05rem; line-height: 1.52; white-space: pre-wrap; word-break: break-word; }
.scratch-note-from { margin: 0; font-size: var(--text-sm); font-weight: 700; color: var(--muted); }
.scratch-canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: grab; transition: opacity 420ms ease-out; }

.pack-list { display: flex; flex-direction: column; gap: 10px; margin: 14px 0; }
.pack-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%;
  padding: 13px 14px; border-radius: 12px; border: 1.5px solid var(--line);
  background: #ffffff; cursor: pointer; text-align: left;
  transition: border-color 150ms ease-out, background-color 150ms ease-out;
}
.pack-row:hover { border-color: var(--gold-deep); background: var(--gold-soft); }
.pack-row.is-popular { border-color: var(--gold-deep); background: #fff9eb; }
.pack-price { font-weight: 700; font-size: 1.05rem; color: var(--accent); font-variant-numeric: tabular-nums; }

.toast-stack { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 100; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast-msg {
  padding: 11px 18px; border-radius: 999px; background: #102622; color: #fffaf0;
  border: 1px solid rgba(230, 179, 75, 0.45); font-size: var(--text-sm); font-weight: 600;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.3);
}

/* Footer */
.site-footer { background: #0b1c19; color: rgba(250, 246, 239, 0.82); padding: 36px 0; border-top: 1px solid rgba(255, 245, 224, 0.1); }
.footer-inner { display: flex; align-items: flex-start; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.footer-brand strong { font-family: var(--font-display); font-size: 1.1rem; color: var(--stage-ink); }
.footer-brand p { margin: 6px 0 0; font-size: var(--text-sm); color: rgba(250, 246, 239, 0.68); max-width: 38ch; }
.footer-cols { display: flex; flex-wrap: wrap; gap: 28px; }
.footer-col { display: flex; flex-direction: column; gap: 8px; font-size: var(--text-sm); }
.footer-col strong { color: var(--stage-ink); margin-bottom: 2px; }
.footer-col a { text-decoration: none; color: rgba(250, 246, 239, 0.78); }
.footer-col a:hover { color: var(--gold); }

/* Responsive */
@media (max-width: 960px) {
  .workbench-layout, .editorial-grid, .ideas-grid { grid-template-columns: 1fr; }
  .workbench-stage[data-mobile-side-first='1'] .side-column { order: -1; }
  .steps-grid, .hub-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .header-nav .nav-desktop-only { display: none; }
  .mobile-nav-more { display: block; }
  .header-inner { gap: 8px; }
  .brand { gap: 7px; }
  .header-nav { gap: 8px; }
  .brand-name { font-size: 0.96rem; }
  .workbench-top { flex-direction: column; align-items: flex-start; }
  .door-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding: 12px; }
  .door-grid[data-doors='7'], .door-grid[data-doors='12'] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .steps-grid, .hub-links { grid-template-columns: 1fr; }
  .share-channels { grid-template-columns: repeat(2, 1fr); }
  .theme-swatches { grid-template-columns: repeat(2, 1fr); }
  .icon-row { grid-template-columns: repeat(4, 1fr); }
  .countdown-panel { grid-template-columns: repeat(2, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .snow-canvas-wrap { display: none; }
}
