/* =========================================================
   CloseClue / Guess The Word
   Look: a sheet of fridge-magnet stickers on a butter-yellow
   fridge door. Memory point: the hot/cold heat thermometer.
   ========================================================= */
:root {
  --bg: #FFF6DC;
  --surface: #FFFFFF;
  --ink: #2A1B3D;
  --muted: #5E4E72;
  --border: var(--ink);
  --primary: #D81B60;
  --primary-hover: #AD1457;
  --sun: #FFC93C;
  --sun-soft: #FFE9A8;
  --sky: #4CC9F0;
  --sky-soft: #D4F2FC;
  --pink-soft: #FFDCE8;
  --surface-alt: var(--sun-soft);
  --hot: var(--primary);
  --hot-fill: var(--pink-soft);
  --warm-solid: var(--sun);
  --warm-fill: var(--sun-soft);
  --cold-solid: var(--sky);
  --cold-fill: var(--sky-soft);
  --font-heading: 'Lilita One', 'Outfit', system-ui, sans-serif;
  --font-body: 'Outfit', system-ui, -apple-system, sans-serif;
  --radius: 16px;
  --pill: 999px;
  --line: 3px solid var(--ink);
  --line-thin: 2px solid var(--ink);
  --shadow-pop: 0 4px 0 var(--ink);
  --shadow-md: 0 8px 24px rgba(42, 27, 61, 0.08);
}

[data-contrast="high"] {
  --hot: var(--primary-hover);
  --hot-fill: var(--primary);
  --warm-fill: var(--sun);
  --cold-fill: var(--sky);
}

[data-contrast="high"] .zone-hot .guess-word,
[data-contrast="high"] .zone-hot .guess-meta {
  color: var(--surface);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: clip;
  scroll-padding-top: 88px;
}

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

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.2;
  margin: 0 0 12px;
  color: var(--ink);
  letter-spacing: 0.01em;
}

p {
  margin: 0 0 16px;
}

a {
  color: var(--primary);
  font-weight: 600;
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
}

a:hover {
  color: var(--primary-hover);
}

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

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -64px;
  z-index: 100;
  background: var(--ink);
  color: var(--surface);
  padding: 8px 16px;
  border-radius: var(--pill);
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
  color: var(--surface);
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
}

.editorial-wrap {
  max-width: 800px;
  margin-inline: auto;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: var(--line);
}

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

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

.brand:hover {
  color: var(--ink);
}

.brand-mark {
  display: inline-flex;
  flex-shrink: 0;
  transition: transform 0.25s cubic-bezier(.34, 1.56, .64, 1);
}

.brand:hover .brand-mark {
  transform: rotate(-10deg) scale(1.08);
}

.brand-copy {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-heading);
  font-size: 22px;
  line-height: 1.1;
  color: var(--ink);
}

.brand-sub {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 16px;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--pill);
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.main-nav a:hover {
  background: var(--sun-soft);
  border-color: var(--ink);
  color: var(--ink);
}

.main-nav a.nav-play {
  background: var(--primary);
  border-color: var(--ink);
  color: var(--surface);
  box-shadow: var(--shadow-pop);
  margin-left: 4px;
}

.main-nav a.nav-play:hover {
  background: var(--primary-hover);
  color: var(--surface);
  transform: translateY(-1px);
}

/* ---------- Shared bits ---------- */
.eyebrow {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  background: var(--sun);
  border: var(--line-thin);
  padding: 4px 12px;
  border-radius: var(--pill);
  margin-bottom: 16px;
  transform: rotate(-2deg);
}

.eyebrow-sky { background: var(--sky); }
.eyebrow-sun { background: var(--sun); }

/* Buttons */
.btn-primary, .btn-outline, .btn-chunky {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 24px;
  border: var(--line-thin);
  border-radius: var(--pill);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
  box-shadow: var(--shadow-pop);
  transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.15s ease;
}

.btn-primary {
  background: var(--primary);
  color: var(--surface);
}

.btn-primary:hover {
  background: var(--primary-hover);
  color: var(--surface);
  transform: translateY(-1px);
}

.btn-outline, .btn-chunky {
  background: var(--surface);
  color: var(--ink);
}

.btn-outline:hover, .btn-chunky:hover {
  background: var(--sun-soft);
  color: var(--ink);
  transform: translateY(-1px);
}

.btn-primary:active, .btn-outline:active, .btn-chunky:active {
  transform: translateY(4px);
  box-shadow: none;
}

.btn-sm {
  font-size: 14px;
  padding: 4px 16px;
  min-height: 36px;
}

button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

/* ---------- Hero & Game ---------- */
.hero-stage {
  position: relative;
  padding-block: 32px 64px;
  overflow: hidden;
}

.confetti {
  position: absolute;
  z-index: 0;
  border: var(--line);
  pointer-events: none;
}

.confetti.c1 {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--sky);
  top: 48px;
  left: -24px;
}

.confetti.c2 {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--sun);
  bottom: 48px;
  left: 32%;
  transform: rotate(18deg);
}

.confetti.c3 {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  top: 24px;
  right: 24px;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: 48px;
  align-items: start;
}

.hero-copy {
  padding-top: 16px;
}

.title-tiles {
  font-size: 48px;
  line-height: 1.35;
  margin-bottom: 24px;
}

.tile {
  display: inline-block;
  padding: 0 16px 4px;
  margin: 0 4px 8px 0;
  border: var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-pop);
  transition: transform 0.3s cubic-bezier(.34, 1.56, .64, 1);
}

.tile-a {
  background: var(--primary);
  color: var(--surface);
  transform: rotate(-4deg);
}

.tile-b {
  background: var(--sun);
  transform: rotate(3deg);
}

.tile-c {
  background: var(--sky);
  transform: rotate(-2deg);
}

.title-tiles:hover .tile-a { transform: rotate(3deg) translateY(-4px); }
.title-tiles:hover .tile-b { transform: rotate(-3deg) translateY(-4px); }
.title-tiles:hover .tile-c { transform: rotate(4deg) translateY(-4px); }

.hero-lead {
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 24px;
}

.hero-lead strong {
  color: var(--ink);
}

.mini-steps {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mini-steps li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 16px;
}

.step-dot {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border: var(--line-thin);
  border-radius: 50%;
  font-family: var(--font-heading);
  font-size: 16px;
  background: var(--surface);
}

.mini-steps li:nth-child(1) .step-dot { background: var(--sky); }
.mini-steps li:nth-child(2) .step-dot { background: var(--sun); }
.mini-steps li:nth-child(3) .step-dot { background: var(--primary); color: var(--surface); }

.engage-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.like-heart, .share-arrow {
  display: inline-block;
  width: 18px;
  height: 18px;
  background: currentColor;
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
}

.like-heart {
  color: var(--primary);
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21s-8-5.3-8-11.2A4.8 4.8 0 0 1 12 6.6a4.8 4.8 0 0 1 8 3.2C20 15.7 12 21 12 21z'/%3E%3C/svg%3E");
}

.share-arrow {
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M14 4l7 7-7 7v-4.2C9 13.8 5.6 15.5 3 19c1-5.2 4-10.2 11-11.2z'/%3E%3C/svg%3E");
}

.btn-like[aria-pressed="true"] {
  background: var(--primary);
  color: var(--surface);
}

.btn-like[aria-pressed="true"] .like-heart {
  color: var(--surface);
}

.like-count:empty {
  display: none;
}

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

/* The board */
.workbench {
  position: relative;
  background: var(--surface);
  border: var(--line);
  border-radius: var(--radius);
  box-shadow: 0 8px 0 var(--ink);
  padding: 24px;
}

.workbench-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.mode-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.mode-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 16px;
  border: var(--line-thin);
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  border-radius: var(--pill);
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.mode-tab::before {
  content: '';
  width: 12px;
  height: 12px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--tab-color, var(--sun));
}

.tab-daily { --tab-color: var(--primary); }
.tab-practice { --tab-color: var(--sun); }
.tab-challenge { --tab-color: var(--sky); }

.mode-tab:hover {
  background: var(--bg);
}

.mode-tab.is-active {
  background: var(--tab-color);
  box-shadow: var(--shadow-pop);
  transform: translateY(-2px) rotate(-1deg);
}

.mode-tab.is-active::before {
  background: var(--surface);
}

.tab-daily.is-active {
  color: var(--surface);
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  padding: 0;
  border: var(--line-thin);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.icon-btn svg {
  transition: transform 0.4s ease;
}

.icon-btn:hover {
  background: var(--bg);
}

.icon-btn[aria-expanded="true"] {
  background: var(--sun);
}

.icon-btn[aria-expanded="true"] svg {
  transform: rotate(90deg);
}

/* Settings drawer */
.settings-drawer {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 16px;
  margin-bottom: 24px;
  background: var(--sky-soft);
  border: 2px dashed var(--ink);
  border-radius: var(--radius);
}

.setting-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.setting-item label {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.setting-item select {
  min-height: 44px;
  padding: 8px 12px;
  border: var(--line-thin);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.setting-toggle {
  justify-content: space-between;
}

.setting-toggle input {
  -webkit-appearance: none;
  appearance: none;
  position: relative;
  width: 56px;
  height: 32px;
  margin: 4px 0 0;
  border: var(--line-thin);
  border-radius: var(--pill);
  background: var(--surface);
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.setting-toggle input::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--ink);
  transition: transform 0.25s cubic-bezier(.34, 1.56, .64, 1);
}

.setting-toggle input:checked {
  background: var(--sun);
}

.setting-toggle input:checked::before {
  transform: translateX(24px);
}

/* Status ribbon: ticket + coins + timer */
.status-ribbon {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.status-k {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  line-height: 1.2;
}

.status-v {
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.round-ticket {
  display: flex;
  flex-direction: column;
  padding: 8px 16px;
  background: var(--sun);
  border: var(--line-thin);
  border-radius: var(--radius);
  transform: rotate(-2deg);
}

.round-ticket .status-k {
  color: var(--ink);
}

.round-ticket .status-v {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.1;
}

.hud-coin {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 56px;
}

.hud-coin .status-v {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: var(--line-thin);
  border-radius: 50%;
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 18px;
  background: var(--surface);
}

.coin-guess .status-v { background: var(--pink-soft); }
.coin-hint .status-v { background: var(--sun-soft); }
.coin-streak .status-v { background: var(--sky-soft); }

.reset-pill {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin-left: auto;
  padding: 8px 16px;
  background: var(--ink);
  border-radius: var(--radius);
}

.reset-pill .status-k {
  color: var(--sun);
}

.reset-pill .status-v {
  color: var(--surface);
  font-size: 18px;
  letter-spacing: 0.04em;
}

/* Heat meter (memory point) */
.heat-meter {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  column-gap: 8px;
  row-gap: 4px;
  align-items: center;
  margin-bottom: 16px;
  --heat: 4%;
  --heat-color: var(--cold-solid);
}

.heat-bulb {
  width: 32px;
  height: 32px;
  border: var(--line);
  border-radius: 50%;
  background: var(--heat-color);
  transition: background-color 0.4s ease;
}

.heat-tube {
  position: relative;
  height: 20px;
  border: var(--line);
  border-left: 0;
  border-radius: 0 var(--pill) var(--pill) 0;
  background: var(--surface);
  overflow: hidden;
}

.heat-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--heat);
  background: var(--heat-color);
  transition: width 0.7s cubic-bezier(.34, 1.56, .64, 1), background-color 0.4s ease;
}

.heat-scale {
  grid-column: 2;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

[data-heat="cold"] .heat-meter { --heat: 25%; --heat-color: var(--cold-solid); }
[data-heat="warm"] .heat-meter { --heat: 55%; --heat-color: var(--warm-solid); }
[data-heat="hot"] .heat-meter { --heat: 82%; --heat-color: var(--hot); }
[data-heat="target"] .heat-meter { --heat: 100%; --heat-color: var(--hot); }
[data-heat="target"] .heat-bulb { animation: bulb-pulse 1s ease-in-out 3; }

@keyframes bulb-pulse {
  50% { transform: scale(1.2); }
}

/* Challenge builder */
.challenge-panel {
  background: var(--sky-soft);
  border: var(--line-thin);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 16px;
}

.challenge-head h2 {
  font-size: 22px;
  margin-bottom: 4px;
}

.challenge-head p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 16px;
}

.challenge-form, .challenge-output {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.challenge-form input, .challenge-output input {
  flex: 1 1 220px;
  min-height: 48px;
  padding: 8px 16px;
  border: var(--line-thin);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
}

.challenge-form input:focus, .challenge-output input:focus {
  outline: none;
  border-color: var(--primary);
}

.challenge-output {
  margin-top: 16px;
}

.challenge-msg {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  margin: 12px 0 0;
  min-height: 20px;
}

/* Guess input */
.guess-form {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.guess-input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 60px;
  padding: 12px 16px;
  border: var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 600;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.guess-input::placeholder {
  color: var(--muted);
  font-weight: 400;
}

.guess-input:focus {
  outline: none;
  background: var(--surface);
  border-color: var(--primary);
}

.guess-submit {
  min-height: 60px;
  padding-inline: 32px;
  flex-shrink: 0;
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 22px;
  border-width: 3px;
  border-radius: var(--radius);
}

/* Power-ups */
.action-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.power-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 4px 16px 4px 8px;
  border: var(--line-thin);
  border-radius: var(--pill);
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.12s ease, background-color 0.15s ease;
}

.power-btn::before {
  content: '';
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 2px solid var(--ink);
  background-color: var(--pw-bg, var(--sun));
  background-image: var(--pw-icon);
  background-size: 14px 14px;
  background-position: center;
  background-repeat: no-repeat;
}

.power-btn:hover:not(:disabled) {
  background: var(--bg);
  transform: translateY(-2px) rotate(-1deg);
}

.pw-hint {
  --pw-bg: var(--sun);
  --pw-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%232A1B3D'%3E%3Cpath d='M9 18h6v1.5A2.5 2.5 0 0 1 12.5 22h-1A2.5 2.5 0 0 1 9 19.5zM12 2a7 7 0 0 0-4 12.7V16h8v-1.3A7 7 0 0 0 12 2z'/%3E%3C/svg%3E");
}

.pw-clue {
  --pw-bg: var(--sky);
  --pw-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%232A1B3D'%3E%3Cpath fill-rule='evenodd' d='M3 3h8.5L21 12.5 12.5 21 3 11.5zm4.5 3a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3z'/%3E%3C/svg%3E");
}

.pw-giveup {
  --pw-bg: var(--surface);
  --pw-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%232A1B3D'%3E%3Cpath d='M5 2h2.5v20H5zM9 3h11l-3 4.5L20 12H9z'/%3E%3C/svg%3E");
}

.pw-new {
  --pw-bg: var(--pink-soft);
  --pw-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%232A1B3D'%3E%3Cpath d='M12 5a7 7 0 1 0 7 7h-3a4 4 0 1 1-4-4v3l5-4.5L12 2z'/%3E%3C/svg%3E");
}

.pw-back {
  --pw-bg: var(--sky-soft);
  --pw-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%232A1B3D'%3E%3Cpath d='M10 4 2 12l8 8v-5h12V9H10z'/%3E%3C/svg%3E");
}

.status-msg {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
  min-height: 20px;
}

.status-msg.is-error {
  color: var(--primary-hover);
}

.category-clue-banner {
  position: relative;
  background: var(--sun-soft);
  border: var(--line-thin);
  color: var(--ink);
  padding: 12px 16px 12px 64px;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
  transform: rotate(-0.5deg);
}

.category-clue-banner::before {
  content: 'Clue';
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 0 8px;
  background: var(--ink);
  color: var(--sun);
  font-family: var(--font-heading);
  font-size: 14px;
  border-radius: var(--pill);
}

/* Starter probes */
.starter-probes {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.probes-label {
  font-family: var(--font-heading);
  font-size: 16px;
  color: var(--ink);
  margin-right: 4px;
}

.probe-chip {
  min-height: 40px;
  padding: 4px 16px;
  border: var(--line-thin);
  border-radius: var(--pill);
  background: var(--chip, var(--surface));
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transform: rotate(var(--tilt, -2deg));
  transition: transform 0.2s cubic-bezier(.34, 1.56, .64, 1), box-shadow 0.15s ease;
}

.probe-chip:nth-of-type(3n+1) { --chip: var(--pink-soft); --tilt: -3deg; }
.probe-chip:nth-of-type(3n+2) { --chip: var(--sun-soft); --tilt: 2deg; }
.probe-chip:nth-of-type(3n) { --chip: var(--sky-soft); --tilt: -1deg; }

.probe-chip:hover {
  transform: translateY(-4px) rotate(0deg);
  box-shadow: var(--shadow-pop);
}

/* Guess rows */
.latest-wrap {
  margin-bottom: 16px;
}

.list-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 18px;
  color: var(--ink);
  margin-bottom: 8px;
}

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

.history-head .list-label {
  margin-bottom: 0;
}

.warmth-legend {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12px;
  font-weight: 700;
}

.legend-dot {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--ink);
}

.legend-dot::before {
  content: '';
  width: 12px;
  height: 12px;
  border: 2px solid var(--ink);
  border-radius: 50%;
}

.dot-hot::before { background: var(--hot); }
.dot-warm::before { background: var(--warm-solid); }
.dot-cold::before { background: var(--cold-solid); }

.guess-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.guess-row {
  position: relative;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 8px 16px 8px 8px;
  border-radius: var(--radius);
  border: var(--line-thin);
  background: var(--surface);
  overflow: hidden;
}

.guess-row.is-latest {
  box-shadow: var(--shadow-pop);
  animation: row-pop 0.45s cubic-bezier(.34, 1.56, .64, 1);
}

@keyframes row-pop {
  0% { transform: scale(0.94) rotate(-1deg); }
  100% { transform: scale(1) rotate(0deg); }
}

.guess-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  z-index: 0;
  transition: width 0.4s ease;
}

.zone-target .guess-fill, .zone-hot .guess-fill { background: var(--hot-fill); }
.zone-warm .guess-fill { background: var(--warm-fill); }
.zone-cold .guess-fill { background: var(--cold-fill); }

.guess-rank, .guess-word, .guess-meta {
  position: relative;
  z-index: 1;
}

.guess-rank {
  font-family: var(--font-heading);
  font-size: 16px;
  padding: 4px 8px;
  border: 2px solid var(--ink);
  border-radius: var(--pill);
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.zone-hot .guess-rank {
  background: var(--hot);
  color: var(--surface);
}

.zone-target .guess-rank {
  background: var(--sun);
  color: var(--ink);
}

.zone-target {
  background: var(--sun-soft);
}

.zone-warm .guess-rank {
  background: var(--warm-solid);
  color: var(--ink);
}

.zone-cold .guess-rank {
  background: var(--cold-solid);
  color: var(--ink);
}

.guess-word {
  font-weight: 700;
  font-size: 18px;
  color: var(--ink);
  word-break: break-word;
}

.guess-word-tag {
  display: inline-block;
  margin-left: 8px;
  padding: 0 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  background: var(--sun);
  border: 2px solid var(--ink);
  border-radius: var(--pill);
  vertical-align: middle;
}

.guess-meta {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.empty-board {
  text-align: center;
  padding: 24px 16px;
  background: var(--sky-soft);
  border: 2px dashed var(--ink);
  border-radius: var(--radius);
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 0;
}

.empty-board::before {
  content: '';
  display: block;
  width: 56px;
  height: 56px;
  margin: 0 auto 8px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 56 56' fill='none' stroke='%232A1B3D' stroke-width='3'%3E%3Crect x='22' y='4' width='12' height='32' rx='6' fill='%23fff'/%3E%3Ccircle cx='28' cy='42' r='10' fill='%23D81B60'/%3E%3Crect x='26' y='18' width='4' height='20' fill='%23D81B60' stroke='none'/%3E%3Cpath d='M40 12h6M40 20h4M40 28h6' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
  animation: wobble 3s ease-in-out infinite;
}

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

/* Result */
.result-box {
  background: var(--sun-soft);
  border: var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-pop);
  padding: 24px;
  margin-bottom: 24px;
}

.result-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.result-badge {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 16px;
  padding: 4px 16px;
  border: var(--line-thin);
  border-radius: var(--pill);
  background: var(--primary);
  color: var(--surface);
  margin-bottom: 8px;
  transform: rotate(-3deg);
}

.result-badge.is-gaveup {
  background: var(--sky);
  color: var(--ink);
}

.result-title {
  font-size: 28px;
  margin-bottom: 4px;
}

.result-title span {
  display: inline-block;
  padding: 0 8px;
  background: var(--surface);
  border: var(--line-thin);
  border-radius: 12px;
  color: var(--primary);
}

.result-sub {
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 0;
}

.result-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.top-neighbors h3 {
  font-size: 18px;
  margin-bottom: 12px;
}

.neighbor-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.neighbor-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: var(--surface);
  border: var(--line-thin);
  border-radius: var(--pill);
  font-size: 14px;
  font-weight: 700;
}

.neighbor-chip span {
  font-family: var(--font-heading);
  font-size: 14px;
  color: var(--hot);
}

.noscript-note {
  margin: 16px 0 0;
  padding: 12px 16px;
  background: var(--sun-soft);
  border-radius: var(--radius);
  font-weight: 600;
}

/* ---------- Editorial ---------- */
.editorial-band, .faq-band, .comments-band {
  padding-block: 64px;
  border-top: var(--line);
}

.editorial-band {
  background: var(--surface);
}

.prose-article {
  font-size: 18px;
  line-height: 1.7;
}

.prose-article h2 {
  position: relative;
  font-size: 36px;
  margin-top: 64px;
  margin-bottom: 24px;
  padding-bottom: 16px;
}

.prose-article h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 120px;
  height: 12px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 12' fill='none'%3E%3Cpath d='M2 6c10-6 18 6 29 0s18 6 29 0 18 6 29 0 18 6 29 0' stroke='%23D81B60' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E") left center / contain no-repeat;
}

.prose-article h2:nth-of-type(3n+2)::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 12' fill='none'%3E%3Cpath d='M2 6c10-6 18 6 29 0s18 6 29 0 18 6 29 0 18 6 29 0' stroke='%23FFC93C' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E");
}

.prose-article h2:nth-of-type(3n)::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 12' fill='none'%3E%3Cpath d='M2 6c10-6 18 6 29 0s18 6 29 0 18 6 29 0 18 6 29 0' stroke='%234CC9F0' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E");
}

.prose-article h2:first-child {
  margin-top: 0;
}

.prose-article h3 {
  font-size: 22px;
  margin-top: 24px;
  margin-bottom: 8px;
}

.prose-article p, .prose-article ul, .prose-article ol {
  max-width: 70ch;
  margin-bottom: 16px;
}

.prose-article strong {
  color: var(--ink);
  font-weight: 700;
}

.prose-article ul, .prose-article ol {
  padding-left: 24px;
}

.prose-article li + li {
  margin-top: 8px;
}

.prose-article ul li::marker {
  color: var(--primary);
  font-size: 1.2em;
}

.prose-article ol li::marker {
  color: var(--primary);
  font-weight: 700;
}

.prose-article figure {
  margin: 32px 0;
  padding: 12px 12px 16px;
  background: var(--surface);
  border: var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-pop);
  transform: rotate(-1deg);
}

.prose-article figure:nth-of-type(even) {
  transform: rotate(1deg);
}

.prose-article figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: var(--line-thin);
}

.prose-article figcaption {
  margin-top: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  text-align: center;
}

.table-scroll {
  overflow-x: auto;
  margin: 24px 0 32px;
  border: var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-pop);
}

.prose-article table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
  min-width: 600px;
}

.prose-article th, .prose-article td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 2px solid var(--sun-soft);
}

.prose-article thead th {
  background: var(--ink);
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 16px;
  color: var(--surface);
  border-bottom: 0;
}

.prose-article thead th:nth-child(2) {
  background: var(--primary);
}

.prose-article tbody td:first-child {
  font-weight: 700;
}

.prose-article tbody td:nth-child(2) {
  background: var(--pink-soft);
  font-weight: 700;
}

.prose-article tbody tr:last-child td {
  border-bottom: 0;
}

.strategy-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin: 24px 0 32px;
}

.strategy-card {
  background: var(--note, var(--sun-soft));
  border: var(--line-thin);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-pop);
  transform: rotate(var(--tilt, -1deg));
  transition: transform 0.25s cubic-bezier(.34, 1.56, .64, 1);
}

.strategy-card:nth-child(1) { --note: var(--sun-soft); --tilt: -1.5deg; }
.strategy-card:nth-child(2) { --note: var(--pink-soft); --tilt: 1deg; }
.strategy-card:nth-child(3) { --note: var(--sky-soft); --tilt: 1.5deg; }
.strategy-card:nth-child(4) { --note: var(--surface); --tilt: -1deg; }

.strategy-card:hover {
  transform: rotate(0deg) translateY(-4px);
}

.strategy-card h3 {
  margin-top: 0;
  font-size: 22px;
  color: var(--ink);
}

.strategy-card p {
  font-size: 16px;
  margin-bottom: 0;
}

/* ---------- FAQ ---------- */
.faq-band {
  background: var(--pink-soft);
}

.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: 48px;
  align-items: start;
}

.faq-intro {
  position: sticky;
  top: 104px;
}

.section-intro {
  margin-bottom: 24px;
}

.section-intro h2 {
  font-size: 36px;
  margin-bottom: 8px;
}

.section-sub {
  color: var(--muted);
  font-size: 16px;
  margin-bottom: 0;
}

.faq-doodle {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  margin-top: 32px;
  font-family: var(--font-heading);
  font-size: 48px;
  color: var(--ink);
  background: var(--sky);
  border: var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-pop);
  transform: rotate(8deg);
  animation: wobble 4s ease-in-out infinite;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--surface);
  border: var(--line-thin);
  border-radius: var(--radius);
  padding: 4px 16px 4px 24px;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.faq-item:hover {
  transform: translateY(-2px);
}

.faq-item[open] {
  box-shadow: var(--shadow-pop);
}

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

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border: var(--line-thin);
  border-radius: 50%;
  background: var(--sun);
  font-family: var(--font-heading);
  font-size: 22px;
  line-height: 1;
  color: var(--ink);
  transition: transform 0.25s ease, background-color 0.2s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
  background: var(--primary);
  color: var(--surface);
}

.faq-body {
  padding-bottom: 16px;
  color: var(--muted);
  font-size: 16px;
}

.faq-body p {
  margin-bottom: 0;
}

/* ---------- Comments ---------- */
.comments-band {
  background: var(--bg);
}

.composer {
  margin-bottom: 32px;
}

.reply-context {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding: 8px 16px;
  background: var(--sky-soft);
  border: var(--line-thin);
  border-radius: var(--radius);
  font-size: 14px;
}

[data-gf-replying] .reply-context {
  display: flex;
}

.composer-bubble {
  position: relative;
  background: var(--surface);
  border: var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-pop);
  margin-bottom: 24px;
}

.composer-bubble::after {
  content: '';
  position: absolute;
  left: 32px;
  bottom: -16px;
  width: 24px;
  height: 24px;
  background: var(--surface);
  border-right: var(--line);
  border-bottom: var(--line);
  transform: rotate(45deg) skew(8deg, 8deg);
}

.composer-bubble textarea {
  display: block;
  width: 100%;
  min-height: 112px;
  padding: 16px 24px;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  resize: vertical;
}

.composer-bubble textarea:focus {
  outline: none;
}

.composer-bubble:focus-within {
  border-color: var(--primary);
}

.composer-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-left: 16px;
}

.sign-off {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  flex: 1 1 240px;
}

.sign-word {
  font-family: var(--font-heading);
  font-size: 22px;
  color: var(--ink);
}

.sign-off input {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 260px;
  min-height: 44px;
  padding: 4px 4px;
  border: 0;
  border-bottom: 3px dashed var(--ink);
  background: transparent;
  color: var(--primary);
  font-family: var(--font-heading);
  font-size: 22px;
}

.sign-off input::placeholder {
  color: var(--muted);
  opacity: 0.5;
}

.sign-off input:focus {
  outline: none;
  border-bottom-style: solid;
  border-bottom-color: var(--primary);
}

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

.comment-msg:empty {
  display: none;
}

.comments .empty, .comments .closed {
  display: none;
  padding: 16px 24px;
  border: 2px dashed var(--ink);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 16px;
  font-weight: 600;
  text-align: center;
}

.comments[data-gf-empty] .empty {
  display: block;
}

.comments[data-gf-off] .closed {
  display: block;
}

.comment {
  position: relative;
  padding: 16px 16px 16px 72px;
  border: var(--line-thin);
  border-radius: var(--radius);
  background: var(--surface);
  margin-bottom: 12px;
}

.comment::before {
  content: '';
  position: absolute;
  left: 16px;
  top: 16px;
  width: 40px;
  height: 40px;
  border: var(--line-thin);
  border-radius: 50%;
  background: var(--avatar, var(--sky));
}

.comment:nth-of-type(3n+1) { --avatar: var(--sky); }
.comment:nth-of-type(3n+2) { --avatar: var(--sun); }
.comment:nth-of-type(3n) { --avatar: var(--primary); }

.comment[data-gf-owner] {
  background: var(--sun-soft);
  box-shadow: var(--shadow-pop);
}

.comment header {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.comment time {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

.owner-badge {
  display: none;
  font-size: 12px;
  font-weight: 700;
  background: var(--primary);
  color: var(--surface);
  padding: 0 8px;
  border-radius: var(--pill);
}

.comment[data-gf-owner] .owner-badge {
  display: inline-block;
}

.reply-target {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}

.reply-target:empty {
  display: none;
}

.comment-body {
  margin-bottom: 8px;
}

.btn-reply {
  min-height: 32px;
  padding: 4px 12px;
  border: var(--line-thin);
  border-radius: var(--pill);
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.btn-reply:hover {
  background: var(--sun);
}

.replies {
  margin-top: 12px;
}

.replies .comment {
  margin-left: -56px;
  background: var(--bg);
}

/* ---------- Inner & legal pages ---------- */
.inner-page {
  padding-block: 32px 64px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 24px;
}

.breadcrumb a {
  padding: 0 12px;
  border: var(--line-thin);
  border-radius: var(--pill);
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
}

.breadcrumb a:hover {
  background: var(--sun);
  color: var(--ink);
}

.page-head {
  position: relative;
  margin-bottom: 32px;
  padding: 32px;
  background: var(--sun);
  border: var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-pop);
}

.legal-page .page-head {
  background: var(--sky);
}

.page-head::after {
  content: '';
  position: absolute;
  right: 24px;
  top: -16px;
  width: 40px;
  height: 40px;
  border: var(--line);
  border-radius: 50%;
  background: var(--primary);
}

.page-head h1 {
  font-size: 48px;
  margin-bottom: 8px;
  padding-right: 48px;
}

.page-lead, .legal-meta {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0;
  max-width: 70ch;
}

.inner-page .prose-article {
  padding: 32px;
  background: var(--surface);
  border: var(--line-thin);
  border-radius: var(--radius);
}

.inner-page .prose-article h2 {
  font-size: 28px;
  margin-top: 48px;
}

.inner-page .prose-article h2:first-child {
  margin-top: 0;
}

.not-found-card {
  background: var(--surface);
  border: var(--line);
  border-radius: var(--radius);
  box-shadow: 0 8px 0 var(--ink);
  padding: 48px 24px;
  text-align: center;
}

.not-found-card h1 {
  font-size: 48px;
}

.not-found-card .eyebrow {
  background: var(--primary);
  color: var(--surface);
}

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 0;
  background: var(--bg);
}

.footer-wave {
  display: block;
  width: 100%;
  height: 48px;
}

.footer-body {
  background: var(--ink);
  color: var(--bg);
  padding-block: 32px 24px;
}

.site-footer .brand-title {
  color: var(--surface);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 2px dashed var(--muted);
}

.footer-desc {
  margin-top: 12px;
  font-size: 14px;
  color: var(--bg);
  max-width: 38ch;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-heading {
  font-family: var(--font-heading);
  font-size: 18px;
  color: var(--sun);
  margin-bottom: 8px;
}

.footer-nav a {
  color: var(--bg);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding-block: 4px;
}

.footer-nav a:hover {
  color: var(--sun);
  text-decoration: underline;
}

.footer-bottom {
  padding-top: 24px;
  font-size: 14px;
  color: var(--bg);
}

.footer-bottom p {
  margin-bottom: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid, .faq-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-copy {
    padding-top: 0;
  }

  .mini-steps {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px 24px;
  }

  .faq-intro {
    position: static;
  }

  .faq-doodle {
    display: none;
  }
}

@media (max-width: 640px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding-block: 12px;
  }

  .site-header {
    position: static;
  }

  .main-nav a {
    padding: 4px 12px;
    font-size: 14px;
  }

  .hero-stage {
    padding-block: 24px 48px;
  }

  .title-tiles {
    font-size: 32px;
  }

  .confetti.c2 {
    display: none;
  }

  .workbench {
    padding: 16px;
    margin-inline: -4px;
  }

  .mode-tabs {
    width: 100%;
  }

  .mode-tab {
    flex: 1 1 auto;
    justify-content: center;
  }

  .icon-btn {
    position: absolute;
    top: 16px;
    right: 16px;
  }

  .workbench-top {
    padding-right: 52px;
  }

  .confetti.c1 {
    display: none;
  }

  .settings-drawer {
    grid-template-columns: 1fr;
  }

  .status-ribbon {
    gap: 12px;
    justify-content: space-between;
  }

  .round-ticket {
    order: 0;
  }

  .reset-pill {
    order: 1;
    margin-left: 0;
  }

  .hud-coin {
    order: 2;
    flex: 1 1 0;
  }

  .guess-form {
    flex-direction: column;
  }

  .guess-submit, .result-actions .btn-primary, .result-actions .btn-outline {
    width: 100%;
  }

  .neighbor-grid, .strategy-grid, .footer-grid {
    grid-template-columns: 1fr;
  }

  .guess-row {
    grid-template-columns: 64px minmax(0, 1fr) auto;
    gap: 8px;
    padding: 8px;
  }

  .guess-meta {
    font-size: 12px;
  }

  .prose-article {
    font-size: 16px;
  }

  .prose-article h2, .section-intro h2 {
    font-size: 28px;
  }

  .prose-article figure, .prose-article figure:nth-of-type(even) {
    transform: none;
  }

  .editorial-band, .faq-band, .comments-band {
    padding-block: 48px;
  }

  .page-head {
    padding: 24px;
  }

  .page-head h1, .not-found-card h1 {
    font-size: 32px;
  }

  .inner-page .prose-article {
    padding: 24px 16px;
  }

  .composer-foot {
    padding-left: 0;
  }

  .composer-foot .btn-primary {
    width: 100%;
  }
}

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

  html {
    scroll-behavior: auto;
  }
}
