/*
 * Palette follows devynmiller's site: sky-blue primary, purple and pink
 * accents (gradient pink -> purple), soft blue-white page in light mode,
 * slate navy with a lavender-bordered card in dark mode.
 */
:root {
  --page: #f5f8ff;
  --page-glow-1: #e3f1ff;
  --page-glow-2: #f6ebff;
  --surface: #ffffff;
  --surface-end: #ffffff;
  --surface-2: #f8fafc;
  --text: #1f2937;
  --text-muted: #64748b;
  --line: #e2e8f0;
  --border-strong: #334155;
  --card-border: rgba(168, 85, 247, 0.12);
  --tile-empty: #e8ecf3;
  --tile-hint: #d6ecfb;
  --decoy: #ece8f6;
  --decoy-ink: #8b84a6;
  --check: #10b981;
  --sky: #0ea5e9;
  --sky-hover: #0284c7;
  --sky-ink: #0284c7;
  --sky-soft: #e0f2fe;
  --purple: #a855f7;
  --pink: #ec4899;
  --grad: linear-gradient(90deg, #f472b6, #a855f7);
  --title-grad: linear-gradient(90deg, #c084fc, #a855f7 60%, #9333ea);
  --focus: #0ea5e9;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 10px 30px rgba(99, 102, 241, 0.08);
  --radius: 18px;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --page: #111827;
  --page-glow-1: rgba(14, 165, 233, 0.10);
  --page-glow-2: rgba(168, 85, 247, 0.12);
  --surface: #1f2937;
  --surface-end: #334155;
  --surface-2: #273449;
  --text: #e5e7eb;
  --text-muted: #94a3b8;
  --line: #3b4a61;
  --border-strong: #0b1120;
  --card-border: #e5a4e6;
  --tile-empty: #334155;
  --tile-hint: #1e4468;
  --decoy: #2c2744;
  --decoy-ink: #8f86b8;
  --check: #34d399;
  --sky: #0ea5e9;
  --sky-hover: #38bdf8;
  --sky-ink: #38bdf8;
  --sky-soft: rgba(14, 165, 233, 0.15);
  --focus: #38bdf8;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 10px 30px rgba(0, 0, 0, 0.35);
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --page: #111827;
    --page-glow-1: rgba(14, 165, 233, 0.10);
    --page-glow-2: rgba(168, 85, 247, 0.12);
    --surface: #1f2937;
    --surface-end: #334155;
    --surface-2: #273449;
    --text: #e5e7eb;
    --text-muted: #94a3b8;
    --line: #3b4a61;
    --border-strong: #0b1120;
    --card-border: #e5a4e6;
    --tile-empty: #334155;
    --tile-hint: #1e4468;
    --decoy: #2c2744;
    --decoy-ink: #8f86b8;
    --check: #34d399;
    --sky: #0ea5e9;
    --sky-hover: #38bdf8;
    --sky-ink: #38bdf8;
    --sky-soft: rgba(14, 165, 233, 0.15);
    --focus: #38bdf8;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 10px 30px rgba(0, 0, 0, 0.35);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
  background:
    radial-gradient(900px 520px at 0% -10%, var(--page-glow-1), transparent 60%),
    radial-gradient(800px 480px at 100% 0%, var(--page-glow-2), transparent 55%),
    var(--page);
  background-attachment: fixed;
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  transition: background-color 0.2s, color 0.2s;
}

button, select, input { font: inherit; color: inherit; }

button:focus-visible, select:focus-visible, summary:focus-visible, input:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

/* --- top bar --- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 10px max(16px, env(safe-area-inset-left));
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.topbar-left { display: flex; align-items: center; gap: 10px; }

/* Grid and flex children refuse to shrink below their content by default, so
   without this the three regions force the whole bar wider than the screen —
   and a sticky bar only paints as wide as the viewport, leaving a bald strip
   when you scroll sideways to reach what got pushed off. */
.topbar-left, .timer, .topbar-right { min-width: 0; }

.brand {
  margin: 0;
  font-family: Outfit, Inter, sans-serif;
  /* scales with the screen instead of wrapping onto a second line */
  font-size: clamp(17px, 4.6vw, 24px);
  white-space: nowrap;
  font-weight: 700;
  letter-spacing: -0.01em;
  background: var(--title-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.sparkle { margin-left: 2px; font-size: 0.8em; vertical-align: 0.15em; }

/* back to the portfolio the game is hosted on */
.site-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  white-space: nowrap;
}
.site-link:hover { background: var(--sky-soft); color: var(--sky-ink); }

.logo {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  box-shadow: 0 4px 12px rgba(236, 72, 153, 0.25);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M28 30 H70 V50 H30 V70 H72' fill='none' stroke='white' stroke-width='12' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat,
    var(--grad);
}

.timer {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.timer svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.timer.hidden-timer { visibility: hidden; }

.topbar-right { display: flex; justify-content: flex-end; align-items: center; gap: 6px; }

.icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: none;
  padding: 6px 8px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}
.icon-btn:hover { background: var(--sky-soft); }
.icon-btn svg { width: 18px; height: 18px; }
.icon-moon { fill: currentColor; }
.icon-sun { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
/* show the icon for the theme you'd switch to, like the portfolio's toggle */
:root .icon-sun, :root[data-theme="dark"] .icon-moon { display: none; }
:root[data-theme="dark"] .icon-sun { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .icon-moon { display: none; }
  :root:not([data-theme="light"]) .icon-sun { display: block; }
}

.pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1.5px solid transparent;
  background: var(--surface);
  border-radius: 999px;
  padding: 7px 16px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.15s, filter 0.15s, transform 0.1s, box-shadow 0.15s;
}
.pill-btn:active:not(:disabled) { transform: translateY(1px); }
.pill-btn:disabled { opacity: 0.45; cursor: default; }
.pill-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

.pill-btn.outline { border-color: var(--sky); color: var(--sky-ink); background: transparent; }
.pill-btn.outline:hover:not(:disabled) { background: var(--sky-soft); }
.pill-btn.sky { background: var(--sky); color: #fff; box-shadow: 0 4px 14px rgba(14, 165, 233, 0.28); }
.pill-btn.sky:hover:not(:disabled) { background: var(--sky-hover); }
.pill-btn.grad { background: var(--grad); color: #fff; box-shadow: 0 4px 14px rgba(168, 85, 247, 0.28); }
.pill-btn.grad:hover:not(:disabled) { filter: brightness(1.06); }
.pill-btn.wide { flex: 1; padding: 10px 14px; font-size: 15px; white-space: nowrap; }
.pill-btn.block { width: 100%; padding: 10px; margin-top: 10px; }

.menu { position: relative; }
.menu-btn {
  display: inline-flex;
  border: 0;
  background: none;
  padding: 7px;
  border-radius: 999px;
  cursor: pointer;
}
.menu-btn:hover { background: var(--sky-soft); }
.gear { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 264px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.menu-panel[hidden] { display: none; }

.menu-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 8px;
  font-size: 14px;
}
.menu-row select {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 4px 6px;
}
.menu-row input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--sky); }

.menu-action {
  text-align: left;
  border: 0;
  background: none;
  padding: 9px 8px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.menu-action:hover { background: var(--sky-soft); }
.menu-action:disabled { opacity: 0.45; cursor: default; background: none; }

/* --- game card --- */

.game { display: flex; justify-content: center; padding: 22px 16px 48px; }

.card {
  width: 100%;
  max-width: 470px;
  background: linear-gradient(135deg, var(--surface), var(--surface-end));
  border: 2px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
}

.challenge-banner {
  margin: -2px 0 12px;
  padding: 10px 14px;
  border-radius: 12px;
  background: linear-gradient(90deg, rgba(244, 114, 182, 0.14), rgba(168, 85, 247, 0.14));
  border: 1px solid rgba(168, 85, 247, 0.3);
  font-size: 14px;
  line-height: 1.4;
}
.challenge-banner[hidden] { display: none; }
.challenge-banner b { color: var(--pink); }

.puzzle-meta { display: flex; justify-content: center; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }

.link-btn {
  border: 0;
  background: none;
  padding: 4px 2px;
  font-size: 13px;
  font-weight: 600;
  color: var(--purple);
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--purple) 40%, transparent);
  text-underline-offset: 3px;
}
.link-btn:hover { text-decoration-color: currentColor; }
.howto-tutorial { margin-top: 10px; font-size: 14px; }
.optional { color: var(--text-muted); font-weight: 400; }

/* settings save/cancel */
.menu-note { margin: 0 8px 4px; font-size: 12px; color: var(--text-muted); }
.menu-note[hidden] { display: none; }
.menu-buttons { display: flex; gap: 8px; padding: 4px 8px 6px; }
.menu-buttons .pill-btn { flex: 1; padding: 6px 10px; font-size: 13px; white-space: nowrap; }
.menu-buttons #settings-save { flex: 1.6; }
.menu-divider { height: 1px; background: var(--line); margin: 4px 0; }

/* tutorial coach card */
.coach {
  margin: -2px 0 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.12), rgba(168, 85, 247, 0.14));
  border: 1.5px solid rgba(168, 85, 247, 0.35);
}
.coach[hidden] { display: none; }
.coach-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.coach-step { font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--purple); }
.coach-skip { border: 0; background: none; padding: 2px 0; font-size: 12px; color: var(--text-muted); cursor: pointer; text-decoration: underline; }
.coach-text { margin: 6px 0 0; font-size: 15px; line-height: 1.45; }
.coach-actions { display: flex; gap: 8px; margin-top: 10px; }
.coach-actions[hidden] { display: none; }
.coach-actions .pill-btn { flex: 1; padding: 8px 10px; }
.coach-actions .pill-btn[hidden] { display: none; }

.pulse { animation: pulse 1.4s ease-out infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(168, 85, 247, 0.55); }
  70% { box-shadow: 0 0 0 10px rgba(168, 85, 247, 0); }
  100% { box-shadow: 0 0 0 0 rgba(168, 85, 247, 0); }
}

/* reveal cooldown: a bar drains along the bottom of the button */
.cooldown-btn { position: relative; overflow: hidden; }
.cooldown-btn::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: calc(var(--cool, 0) * 100%);
  background: rgba(255, 255, 255, 0.85);
}
.chip {
  font-size: 13px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--sky-soft);
  color: var(--sky-ink);
  letter-spacing: 0.01em;
}

.chip.hard { background: var(--grad); color: #fff; }

.board-wrap { position: relative; }

.board {
  display: block;
  width: 100%;
  height: auto;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  cursor: pointer;
}

.board-status {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  color: var(--text-muted);
  font-weight: 600;
}
.board-status[hidden] { display: none; }

/* board SVG parts; fills that depend on per-word colors are set inline */
.cell-free { fill: var(--surface-2); }
.cell-decoy { fill: var(--decoy); }
.letter.decoy-letter { fill: var(--decoy-ink); }
.decoy-strike { stroke: var(--decoy-ink); stroke-width: 5; stroke-linecap: round; pointer-events: none; }
.decoy-new { animation: decoyin 0.6s ease-out; }
@keyframes decoyin { 0% { fill: #f472b6; } 100% { fill: var(--decoy); } }
.grid-line { stroke: var(--line); stroke-width: 1.5; }
.region-edge { stroke: var(--border-strong); stroke-width: 5; stroke-linecap: round; }
.outer-edge { fill: none; stroke: var(--border-strong); stroke-width: 5; }
.letter {
  font-family: Outfit, Inter, sans-serif;
  font-size: 40px;
  font-weight: 600;
  fill: var(--text);
  text-anchor: middle;
  dominant-baseline: central;
  pointer-events: none;
}
.letter.on-path { fill: #0f172a; }
.chevron { fill: none; stroke: rgba(15, 23, 42, 0.55); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.hint-chevron { stroke: var(--text-muted); }
.badge-bg { fill: #fff; }
.badge-check { fill: none; stroke: #059669; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }

.snake-new { animation: pop 0.28s ease-out; transform-box: fill-box; transform-origin: center; }
@keyframes pop { 0% { opacity: 0.4; } 100% { opacity: 1; } }

.hint-flash { animation: hintflash 1.2s ease-out; }
@keyframes hintflash { 0%, 40% { opacity: 1; } 20% { opacity: 0.35; } 100% { opacity: 1; } }

/* --- current trace + word rows --- */

.current {
  min-height: 36px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3px;
  margin: 14px 0 6px;
}

.tile {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: Outfit, Inter, sans-serif;
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
  background: var(--tile-empty);
  color: #0f172a;
}
.tile.hint { background: var(--tile-hint); color: var(--text); }
.tile.decoy { background: var(--decoy); color: var(--decoy-ink); text-decoration: line-through; text-decoration-thickness: 2px; }
.tile.decoy-unknown { background: none; border: 1.5px dashed var(--decoy-ink); color: var(--decoy-ink); font-weight: 600; }
.decoy-row { margin-top: 6px; }
.row-label { margin-left: 8px; font-size: 13px; color: var(--text-muted); white-space: nowrap; }
.current .tile { width: 24px; height: 24px; font-size: 14px; border-radius: 7px; }

.words { display: flex; flex-direction: column; gap: 5px; }
.word-row { display: flex; align-items: center; gap: 3px; min-height: 26px; }
.word-row .check {
  width: 22px;
  height: 22px;
  margin-left: 6px;
  fill: none;
  stroke: var(--check);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.word-row.just-found .tile { animation: tilepop 0.35s ease-out backwards; }
@keyframes tilepop { 0% { transform: scale(0.6); } 70% { transform: scale(1.08); } 100% { transform: scale(1); } }

.actions { display: flex; gap: 10px; margin-top: 16px; }

.toast {
  min-height: 20px;
  margin: 10px 0 0;
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
  transition: opacity 0.2s;
}

/* --- how to play --- */

.howto {
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 14px;
  background: color-mix(in srgb, var(--surface-2) 60%, transparent);
}
.howto summary {
  list-style: none;
  cursor: pointer;
  padding: 12px 0;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.howto summary::-webkit-details-marker { display: none; }
.howto .chev {
  flex: none;
  width: 9px;
  height: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.2s;
}
.howto[open] .chev { transform: rotate(-135deg) translate(-2px, -2px); }
.howto-body { padding-bottom: 12px; font-size: 14px; color: var(--text-muted); line-height: 1.55; }
.howto-body p { margin: 0 0 6px; }
.howto-body p:first-child { color: var(--text); }
.howto-body ul { margin: 8px 0 0; padding-left: 18px; }

/* --- modals --- */

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: rgba(15, 23, 42, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: fade 0.2s;
}
.modal-backdrop[hidden] { display: none; }
@keyframes fade { from { opacity: 0; } }

.modal {
  position: relative;
  width: 100%;
  max-width: 380px;
  background: linear-gradient(135deg, var(--surface), var(--surface-end));
  border: 2px solid var(--card-border);
  border-radius: 20px;
  padding: 28px 22px 22px;
  text-align: center;
  box-shadow: var(--shadow);
}
.modal h2 { margin: 8px 0 4px; font-family: Outfit, Inter, sans-serif; font-size: 26px; }
.muted { color: var(--text-muted); font-size: 14px; margin: 0 0 14px; }
.win-mark svg { width: 56px; height: 56px; }
.win-mark path { fill: none; stroke: #fff; stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; }
.win-stats { margin: 0 0 8px; color: var(--text-muted); }
.win-versus { margin: 0 0 12px; font-weight: 600; }
.win-versus.won { color: var(--check); }
.win-versus.lost { color: var(--pink); }
.win-words { display: flex; flex-direction: column; align-items: center; gap: 4px; margin: 10px 0 18px; }
.win-words .word-row { justify-content: center; }
.modal-actions { display: flex; gap: 10px; }
.modal .pill-btn.block { margin-top: 10px; }
.modal-actions .pill-btn { flex: 1; padding: 11px 10px; }
.modal-close {
  position: absolute;
  top: 8px;
  right: 10px;
  border: 0;
  background: none;
  font-size: 26px;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px 8px;
}

.share-modal { text-align: left; }
.share-modal h2 { margin-top: 0; }
.code-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  margin-bottom: 8px;
}
.code-label { font-size: 13px; color: var(--text-muted); }
.code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.08em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.share-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  margin-top: 10px;
  border-radius: 14px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.share-option-body { flex: 1; min-width: 0; }
.share-option h3 { margin: 0 0 2px; font-family: Outfit, Inter, sans-serif; font-size: 17px; }
.share-option p { margin: 0; font-size: 13px; color: var(--text-muted); line-height: 1.4; }
.share-option .code { display: inline-block; margin-top: 6px; font-size: 17px; }
.share-option .pill-btn { flex: none; min-width: 84px; }
.share-foot { margin: 12px 0 0; font-size: 12px; }

.results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: -2px 0 12px;
  padding: 8px 8px 8px 14px;
  border-radius: 14px;
  background: linear-gradient(90deg, rgba(244, 114, 182, 0.14), rgba(168, 85, 247, 0.14));
  border: 1px solid rgba(168, 85, 247, 0.3);
  font-size: 14px;
  font-weight: 600;
}
.results-bar[hidden] { display: none; }
.results-bar .pill-btn { padding: 6px 14px; font-size: 13px; }

.challenge-row { padding: 6px 2px; }
.challenge-row[hidden] { display: none; }
.link-row { display: flex; gap: 8px; margin-top: 8px; }
.link-row input {
  flex: 1;
  min-width: 0;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  font-size: 14px;
}
.code-form { margin-top: 4px; }
.code-form label { font-size: 14px; font-weight: 600; }
.code-form input { text-transform: uppercase; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0.05em; }
.code-error { margin: 6px 0 0; min-height: 18px; font-size: 13px; color: var(--pink); }

/* Each label just repeats its own icon, so they're the first thing to go.
   This has to happen well above the card breakpoint below: with all of them
   showing, the bar needs ~570px, which is wider than most phones. */
@media (max-width: 620px) {
  .icon-label, .share-label, .site-link span { display: none; }
  .share-top { padding: 7px 10px; }
}

@media (max-width: 440px) {
  .topbar { padding: 8px 12px; gap: 6px; }
  .logo { display: none; }
  .card { padding: 12px; }
  .tile { width: 24px; height: 24px; font-size: 14px; }
  .actions { gap: 6px; }
  .pill-btn.wide { padding: 9px 4px; font-size: 13px; }
}

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