:root {
  --bg: #fff6fa;
  --surface: #ffffff;
  --text: #3b1d3a;
  --muted: #725270;
  --primary: #d62865;
  --primary-hover: #b31e53;
  --primary-soft: #ffe8f0;
  --accent: #f6b73c;
  --line: rgb(59 29 58 / 0.13);
  --radius: 16px;
  --shadow-sm: 0 2px 0 rgb(59 29 58 / 0.1);
  --shadow-md: 0 10px 28px rgb(59 29 58 / 0.08);
  --font-display: "Baloo 2", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  background: var(--bg);
  color: var(--text);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--primary-soft); color: var(--text); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--primary-hover); }

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.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;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: 24px;
}

.eyebrow {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
}

/* Header */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 40;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}

.brand-mark { display: inline-flex; line-height: 0; }
.brand-name {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  padding: 8px 4px;
  white-space: nowrap;
}
.site-nav a:hover { color: var(--primary); }

/* Tactile Squishy Buttons */
.btn-primary, .btn-secondary, .btn-ghost, .btn-icon, .btn-engage {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  min-height: 44px;
  padding: 8px 18px;
  border-radius: var(--radius);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  transition: background-color 0.16s ease, border-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.btn-primary {
  background: var(--primary);
  color: var(--surface);
  border: 1px solid var(--primary);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  color: var(--surface);
  transform: translateY(-1px);
}
.btn-primary:active { transform: translateY(1px); box-shadow: none; }

.btn-secondary, .btn-icon, .btn-engage {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.btn-secondary:hover, .btn-icon:hover, .btn-engage:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
}
.btn-secondary:active, .btn-icon:active, .btn-engage:active { transform: translateY(1px); box-shadow: none; }

.btn-secondary.is-on, .btn-icon[aria-pressed="true"], .btn-engage[aria-pressed="true"], .btn-engage[data-gf-liked] {
  background: var(--primary-soft);
  border-color: var(--primary);
  color: var(--primary-hover);
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid transparent;
}
.btn-ghost:hover { color: var(--text); background: var(--primary-soft); }

/* Hero & Kawaii Game Stage */
.hero-stage { padding: 16px 0 40px; }

.hero-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.hero-title-group h1 {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 2px;
}

.hero-sub {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  max-width: 68ch;
}

.hero-badges {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.pill {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.catdoku-stage {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 20px 24px;
}

.catdoku-stage:fullscreen {
  background: var(--bg);
  padding: 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.cd-mode-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 16px;
}

.cd-mode-btn {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  min-height: 44px;
  padding: 8px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--muted);
  cursor: pointer;
  transition: background-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}
.cd-mode-btn:hover { color: var(--primary); border-color: var(--primary); transform: translateY(-1px); }
.cd-mode-btn.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--surface);
  box-shadow: var(--shadow-sm);
}

/* 2-Column Play Stage: Board + Mochi Companion Dock */
.cd-play-layout {
  display: grid;
  grid-template-columns: minmax(0, 440px) minmax(270px, 320px);
  gap: 24px;
  align-items: center;
  justify-content: center;
}

.cd-board-wrap {
  position: relative;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
}

.cd-board {
  display: grid;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--text);
  border: 3px solid var(--text);
  border-radius: var(--radius);
  overflow: hidden;
  user-select: none;
  touch-action: none;
  box-shadow: var(--shadow-sm);
}

.cd-cell {
  position: relative;
  border: 0;
  margin: 0;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: filter 0.14s ease, transform 0.12s ease;
}

.cd-cell:hover { filter: brightness(0.96); }
.cd-cell.b-top { border-top: 2.5px solid var(--text); }
.cd-cell.b-left { border-left: 2.5px solid var(--text); }
.cd-cell.b-right { border-right: 2.5px solid var(--text); }
.cd-cell.b-bottom { border-bottom: 2.5px solid var(--text); }

.cd-paw-svg {
  width: 46%;
  height: 46%;
  pointer-events: none;
  animation: cdPop 0.16s ease-out;
}

.cd-mark-auto {
  width: 24%;
  height: 24%;
  color: var(--primary);
  opacity: 0.42;
  pointer-events: none;
}

.cd-cat-svg {
  width: 82%;
  height: 82%;
  pointer-events: none;
  animation: cdBounce 0.22s ease-out;
}

.cd-cell.is-conflict {
  box-shadow: inset 0 0 0 3px var(--primary);
  animation: cdShake 0.28s ease-in-out;
}

.cd-cell.is-hint {
  box-shadow: inset 0 0 0 4px var(--accent);
}

@keyframes cdPop {
  0% { transform: scale(0.65); opacity: 0.4; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes cdBounce {
  0% { transform: scale(0.6) rotate(-6deg); opacity: 0.4; }
  65% { transform: scale(1.08) rotate(3deg); opacity: 1; }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

@keyframes cdShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-2px); }
  75% { transform: translateX(2px); }
}

/* Mochi Live Companion Dock */
.cd-side-dock {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cd-mascot-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 16px;
}

.cd-mascot-avatar {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.cd-mascot-box[data-mood="happy"] .cd-mascot-avatar,
.cd-mascot-box[data-mood="win"] .cd-mascot-avatar {
  transform: translateY(-2px) scale(1.05);
}

.cd-mascot-box[data-mood="oops"] .cd-mascot-avatar {
  animation: cdShake 0.3s ease-in-out;
}

.cd-speech { min-width: 0; flex: 1; }

.cd-mascot-name {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
}

.cd-status {
  margin: 2px 0 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--muted);
}
.cd-status.is-error { color: var(--primary-hover); font-weight: 700; }
.cd-status.is-ok { color: var(--text); font-weight: 700; }

.cd-hud {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.cd-stat {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px 12px;
  text-align: center;
}

.cd-stat-wide { grid-column: 1 / -1; }

.cd-stat-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

.cd-stat strong {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.cd-controls {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.cd-ctrl-wide { grid-column: 1 / -1; }



/* Win Overlay */
.cd-win-card {
  position: absolute;
  inset: 0;
  background: rgb(59 29 58 / 0.52);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 10;
}

.cd-win-inner {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 24px;
  width: 100%;
  max-width: 360px;
  text-align: center;
}

.cd-win-mascot {
  display: flex;
  justify-content: center;
  margin-bottom: 4px;
}

.cd-win-kicker {
  margin: 0 0 4px;
  color: var(--primary);
  font-size: 14px;
  font-weight: 700;
}

.cd-win-title {
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1.15;
  margin: 0 0 16px;
}

.cd-win-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.cd-win-stats div {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px;
}

.cd-win-stats span {
  display: block;
  font-size: 12px;
  color: var(--muted);
}

.cd-win-stats strong {
  font-size: 16px;
  font-variant-numeric: tabular-nums;
}

.cd-win-rank {
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--primary);
  font-weight: 700;
}

.cd-win-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.cd-copy-toast {
  margin: 12px 0 0;
  font-size: 14px;
  color: var(--primary);
  font-weight: 700;
}

/* Engagement & Leaderboard */
.engage-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.engage-left, .engage-right {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.engage-count {
  background: var(--bg);
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.share-msg { font-size: 14px; color: var(--primary); font-weight: 700; }

.leaderboard-panel {
  margin-top: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.lb-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 16px;
}

.lb-title {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.15;
  margin: 0 0 4px;
}

.lb-sub { margin: 0; font-size: 14px; color: var(--muted); }

.lb-name-form { display: flex; gap: 8px; align-items: center; }

.lb-name-form input {
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
}

.lb-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.lb-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--bg);
  border-radius: var(--radius);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.lb-row.is-me {
  border: 1px solid var(--primary);
  background: var(--primary-soft);
}

.lb-empty { color: var(--muted); font-size: 14px; padding: 8px 0; }

/* Editorial Sections (Varied S3 Layouts) */
.editorial-section { padding: 64px 0; }

.editorial-alt {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.editorial-section h2 {
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;
  margin: 0 0 16px;
}

.editorial-section h3 {
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.2;
  margin: 0 0 8px;
}

.prose p, .prose-wide p, .prose-page p {
  max-width: 68ch;
  text-wrap: pretty;
  margin: 0 0 16px;
  color: var(--text);
}

.split-intro {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 32px;
  align-items: center;
}

.rules-figure {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
}

.rules-figure figcaption {
  margin-top: 12px;
  font-size: 14px;
  color: var(--muted);
}

/* S3-E: Big Pale Numbered Vertical List */
.step-list {
  list-style: none;
  padding: 0;
  margin: 24px 0;
  counter-reset: cdstep;
  display: grid;
  gap: 0;
}

.step-list li {
  counter-increment: cdstep;
  position: relative;
  padding: 20px 0 20px 64px;
  border-bottom: 1px solid var(--line);
}

.step-list li:last-child { border-bottom: 0; }

.step-list li::before {
  content: "0" counter(cdstep);
  position: absolute;
  left: 0;
  top: 16px;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--primary);
  opacity: 0.45;
  font-variant-numeric: tabular-nums;
}

.step-list li p { margin: 0; color: var(--muted); }
.guide-cta { margin-top: 24px; font-weight: 700; }

/* S3-G: Clean 2x2 Grid */
.strategy-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 24px;
}

.strategy-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.strategy-item p { margin: 0; color: var(--muted); }

/* Modes Table */
.table-wrap {
  overflow-x: auto;
  margin-top: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
}

.modes-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 16px;
}

.modes-table th, .modes-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}

.modes-table th {
  font-size: 14px;
  color: var(--muted);
  font-weight: 700;
  background: var(--surface);
}

.modes-table tr:last-child td { border-bottom: 0; }
.num-cell { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* S3 FAQ: Clean Divider Accordion (no heavy cards) */
.faq-list {
  display: grid;
  margin-top: 16px;
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}

.faq-item summary {
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--primary);
  line-height: 1;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item p { margin: 12px 0 0; color: var(--muted); }

/* Comments */
.comments-sub { color: var(--muted); margin-top: -8px; }

.comment-form {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  margin: 24px 0;
  display: grid;
  gap: 12px;
}

.form-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

.comment-form input, .comment-form textarea {
  width: 100%;
  max-width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
}

.form-row input { max-width: 320px; }
.form-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.comment-msg { font-size: 14px; color: var(--primary); font-weight: 700; }
.reply-banner { font-size: 14px; color: var(--primary); font-weight: 700; }

.comment-list { display: grid; gap: 16px; }
.comment-empty { color: var(--muted); display: none; }
[data-gf-comments][data-gf-empty] .comment-empty { display: block; }

.comment-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 24px;
}

.comment-card[data-gf-owner], .reply-card[data-gf-owner] {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.comment-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 14px;
  margin-bottom: 8px;
}

.comment-meta time, .reply-to { color: var(--muted); font-size: 12px; }
.owner-tag {
  background: var(--primary);
  color: var(--surface);
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 999px;
}

.comment-body { margin: 0 0 8px; white-space: pre-wrap; }

.btn-reply {
  background: transparent;
  border: 0;
  color: var(--primary);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  padding: 4px 0;
}

.comment-replies {
  margin-top: 12px;
  padding-left: 16px;
  border-left: 2px solid var(--line);
  display: grid;
  gap: 12px;
}

.reply-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 16px;
}

/* Inner & Legal Pages */
.inner-page { padding: 32px 0 64px; }
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 24px;
}
.prose-page {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
}
.prose-page h1 {
  font-family: var(--font-display);
  font-size: 36px;
  line-height: 1.15;
  margin: 0 0 16px;
}
.page-lead { font-size: 18px; color: var(--muted); }
.legal-date { font-size: 14px; color: var(--muted); }
.page-figure { margin: 24px 0; }
.markdown-body h2 { font-family: var(--font-display); font-size: 22px; line-height: 1.2; margin: 32px 0 12px; }
.markdown-body h3 { font-family: var(--font-display); font-size: 18px; line-height: 1.2; margin: 24px 0 8px; }
.markdown-body ul, .markdown-body ol { max-width: 68ch; padding-left: 24px; margin: 0 0 16px; }
.markdown-body li { margin-bottom: 8px; }
.inner-faq { margin-top: 32px; }
.back-cta { margin-top: 32px; }

.not-found { padding: 64px 0; }
.nf-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 48px 32px;
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}
.nf-card h1 { font-family: var(--font-display); font-size: 36px; line-height: 1.15; margin: 0 0 12px; }
.nf-card p { color: var(--muted); margin: 0 0 24px; }

/* Footer */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding: 32px 0;
}

.footer-inner { display: flex; flex-direction: column; gap: 16px; }
.footer-note { margin: 4px 0 0; font-size: 14px; color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px 24px; font-size: 14px; }
.footer-copy { margin: 0; font-size: 12px; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Tablet & Mobile */
@media (max-width: 820px) {
  .cd-play-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .cd-board-wrap { max-width: 420px; }
  .cd-hud { grid-template-columns: repeat(3, 1fr); }
  .cd-stat-wide { grid-column: auto; }
}

@media (max-width: 640px) {
  .container { padding-inline: 16px; }
  .site-nav { gap: 16px; }
  .hero-stage { padding: 12px 0 32px; }
  .hero-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .hero-title-group h1, .prose-page h1, .nf-card h1 { font-size: 28px; }
  .catdoku-stage { padding: 16px; }
  .cd-mode-bar { display: grid; grid-template-columns: repeat(2, 1fr); }
  .cd-mode-btn:first-child { grid-column: 1 / -1; }
  .cd-controls .btn-primary, .cd-controls .btn-secondary { width: 100%; }
  .engage-bar { flex-direction: column; align-items: stretch; }
  .engage-left, .engage-right { justify-content: space-between; }
  .split-intro, .strategy-grid { grid-template-columns: 1fr; }
  .editorial-section { padding: 48px 0; }
  .prose-page { padding: 24px 16px; }
  .lb-name-form { width: 100%; }
  .lb-name-form input { flex: 1; min-width: 0; }
}



/* Adorable Animated Kitty Whitespace Scenes */
.catdoku-stage-shell {
  position: relative;
  margin-top: 24px;
}

.cat-ledge {
  position: relative;
  height: 36px;
  margin-bottom: -4px;
  overflow: hidden;
  z-index: 2;
}

.pet-cat {
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
  line-height: 0;
  display: inline-flex;
  align-items: flex-end;
}

.cat-walker {
  position: absolute;
  bottom: 0;
  left: 24px;
  animation: catStroll 16s linear infinite;
}

.cat-walker .paw-pair-a {
  transform-origin: center top;
  animation: pawStepA 0.45s ease-in-out infinite;
}

.cat-walker .paw-pair-b {
  transform-origin: center top;
  animation: pawStepB 0.45s ease-in-out infinite;
}

.cat-tail {
  transform-origin: 12px 30px;
  animation: tailWag 1.8s ease-in-out infinite;
}

.cat-tail-alt {
  transform-origin: 104px 32px;
  animation: tailWag 2.1s ease-in-out infinite reverse;
}

.cat-peeker {
  position: absolute;
  bottom: -4px;
  right: 28px;
  animation: peekBob 4.2s ease-in-out infinite;
}

.cat-strip {
  width: 100%;
  overflow: hidden;
  padding: 20px 0 4px;
}

.cat-play-arena {
  max-width: 560px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: flex-end;
  gap: 8px;
  border-bottom: 1px dashed var(--line);
  padding: 0 12px 6px;
}

.play-left { animation: kittyPounceL 3.6s ease-in-out infinite; }
.play-right { animation: kittyPounceR 3.6s ease-in-out infinite; }

.yarn-track {
  position: relative;
  height: 36px;
  overflow: hidden;
}

.yarn-ball {
  position: absolute;
  bottom: 2px;
  left: 0;
  line-height: 0;
  animation: yarnRoll 3.6s ease-in-out infinite;
}

.cat-roll-strip { padding: 28px 0 0; }

.roll-stage {
  position: relative;
  max-width: 640px;
  height: 58px;
  margin: 0 auto;
  border-bottom: 1px dashed var(--line);
  overflow: hidden;
}

.cat-roller {
  position: absolute;
  bottom: 4px;
  left: 0;
  animation: kittyTumble 8.5s ease-in-out infinite;
}

.cat-sleeper {
  position: absolute;
  bottom: 2px;
  right: 16px;
  animation: catBreathe 3.2s ease-in-out infinite;
}

.zzz-1 { animation: floatZ 2.6s ease-in-out infinite; }
.zzz-2 { animation: floatZ 2.6s ease-in-out 0.9s infinite; }

.footer-inner { position: relative; }
.footer-cats {
  display: flex;
  justify-content: flex-end;
  margin-bottom: -12px;
}

.mini-heart {
  transform-origin: 58px 17px;
  animation: heartPulse 1.8s ease-in-out infinite;
}

.pet-heart {
  position: fixed;
  z-index: 90;
  pointer-events: none;
  font-size: 20px;
  color: var(--primary);
  font-weight: 700;
  animation: petFloat 0.9s ease-out forwards;
}

@keyframes catStroll {
  0%   { transform: translateX(0) scaleX(1); }
  46%  { transform: translateX(340px) scaleX(1); }
  50%  { transform: translateX(340px) scaleX(-1); }
  96%  { transform: translateX(0) scaleX(-1); }
  100% { transform: translateX(0) scaleX(1); }
}

@keyframes pawStepA {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2.5px); }
}

@keyframes pawStepB {
  0%, 100% { transform: translateY(-2.5px); }
  50% { transform: translateY(0); }
}

@keyframes tailWag {
  0%, 100% { transform: rotate(-6deg); }
  50% { transform: rotate(10deg); }
}

@keyframes peekBob {
  0%, 70%, 100% { transform: translateY(8px); }
  80%, 92% { transform: translateY(0); }
}

@keyframes yarnRoll {
  0%   { left: 4px; transform: rotate(0deg); }
  50%  { left: calc(100% - 34px); transform: rotate(540deg); }
  100% { left: 4px; transform: rotate(0deg); }
}

@keyframes kittyPounceL {
  0%, 8%, 100% { transform: translateY(0) rotate(0deg); }
  4% { transform: translateY(-6px) rotate(4deg); }
}

@keyframes kittyPounceR {
  0%, 46%, 58%, 100% { transform: translateY(0) rotate(0deg); }
  52% { transform: translateY(-6px) rotate(-4deg); }
}

@keyframes kittyTumble {
  0%   { left: 8px; transform: rotate(0deg) translateY(0); }
  22%  { left: calc(100% - 170px); transform: rotate(720deg) translateY(-3px); }
  48%  { left: calc(100% - 170px); transform: rotate(720deg) translateY(0); }
  70%  { left: 8px; transform: rotate(0deg) translateY(-3px); }
  100% { left: 8px; transform: rotate(0deg) translateY(0); }
}

@keyframes catBreathe {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(1.04); }
}

@keyframes floatZ {
  0%   { opacity: 0; transform: translateY(4px); }
  45%  { opacity: 1; transform: translateY(-2px); }
  100% { opacity: 0; transform: translateY(-8px); }
}

@keyframes heartPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.18); }
}

@keyframes petFloat {
  0%   { opacity: 1; transform: translate(-50%, 0) scale(0.8); }
  100% { opacity: 0; transform: translate(-50%, -42px) scale(1.3); }
}

@media (max-width: 640px) {
  .cat-walker { animation: none; left: 16px; }
  .cat-play-arena { max-width: 100%; padding: 0 4px 6px; }
  .play-kitty svg { width: 52px; height: 37px; }
  .roll-stage { max-width: 100%; }
  .footer-cats { justify-content: flex-start; margin-bottom: 0; }
}



/* Hearts HUD & Direct Tool Switcher */
.cd-hearts {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 24px;
}

.cd-heart {
  width: 18px;
  height: 18px;
  color: var(--primary);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.cd-heart.is-lost {
  color: var(--muted);
  opacity: 0.28;
  transform: scale(0.85);
}

.cd-tool-switch {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  padding: 4px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.cd-tool-btn {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.cd-tool-btn:hover { color: var(--primary); }

.cd-tool-btn.is-active {
  background: var(--primary);
  color: var(--surface);
  box-shadow: var(--shadow-sm);
}

.cd-fail-note {
  margin: 0 0 20px;
  font-size: 14px;
  color: var(--muted);
}

.cd-cell.is-wrong-flash {
  box-shadow: inset 0 0 0 4px var(--primary);
  animation: cdShake 0.35s ease-in-out;
}

@media (max-width: 820px) {
  .cd-hud { grid-template-columns: repeat(2, 1fr); }
}



/* Studio Illustrated Sticker Polish */
.cd-cat-img {
  width: 84%;
  height: 84%;
  object-fit: contain;
  pointer-events: none;
  animation: cdBounce 0.22s ease-out;
}

.cd-mascot-avatar {
  position: relative;
  width: 64px;
  height: 76px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cd-mascot-avatar img {
  width: 62px;
  height: 76px;
  object-fit: contain;
}

.cd-mood-tag {
  position: absolute;
  top: -2px;
  right: -4px;
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--primary);
  color: var(--surface);
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

.cat-ledge {
  height: 58px;
  margin-bottom: -8px;
}

.stroll-sprite {
  animation: strollBob 0.55s ease-in-out infinite;
}

.roll-stage {
  height: 78px;
}

.cat-sleeper {
  position: absolute;
  bottom: 2px;
  right: 16px;
}

.sleep-zzz {
  position: absolute;
  top: -6px;
  right: 2px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  pointer-events: none;
}

.sleep-zzz.zzz-2 {
  top: -14px;
  right: -8px;
  font-size: 16px;
}

.footer-cats {
  gap: 8px;
  align-items: flex-end;
  margin-bottom: -8px;
}

.yarn-track {
  height: 54px;
}

@keyframes strollBob {
  0%, 100% { transform: translateY(0) rotate(-1.5deg); }
  50% { transform: translateY(-4px) rotate(2deg); }
}

@media (max-width: 640px) {
  .cat-ledge { height: 50px; }
  .play-kitty img { width: 62px; height: auto; }
  .yarn-ball img { width: 34px; height: auto; }
  .cat-roller img { width: 58px; height: auto; }
  .cat-sleeper img { width: 68px; height: auto; }
}