:root {
  --bg: #f7f1e8;
  --card: #fffaf2;
  --text: #2b2118;
  --muted: #5d4d3e;
  --primary: #ad4420;
  --primary-dark: #8c3416;
  --accent: #e0a03a;
  --wood: #3e2b1d;
  --wood-deep: #2a1c12;
  --border: #e5d8c5;
  --radius: 12px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--primary-dark); }

h1, h2, h3 { font-family: var(--font-display); color: var(--text); line-height: 1.2; margin-top: 0; }
h1 { font-size: 48px; margin-bottom: 8px; letter-spacing: -0.02em; }
h2 { font-size: 28px; margin-bottom: 16px; }
h3 { font-size: 22px; margin-bottom: 12px; }

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

/* ---------- Header ---------- */
.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 30;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  flex-wrap: wrap;
  padding-top: 8px;
  padding-bottom: 8px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.brand:hover { color: var(--text); }
.brand-mark {
  width: 32px;
  height: 32px;
  background: var(--wood);
  border-radius: 8px;
  padding: 4px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  flex-shrink: 0;
}
.brand-mark span {
  background: var(--card);
  color: var(--text);
  border-radius: 2px;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.brand-mark span:nth-child(2) { background: var(--primary); color: var(--card); }
.brand-mark span:nth-child(3) { background: var(--accent); color: var(--text); }
.brand-mark span.blank { background: var(--wood-deep); }
.brand-name { font-family: var(--font-display); font-size: 18px; font-weight: 700; }

.site-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav-link {
  position: relative;
  text-decoration: none;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 8px;
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-link:hover { background: var(--bg); color: var(--text); }
.nav-link.is-active { color: var(--primary); background: var(--bg); }

.site-main { flex: 1; }

/* ---------- Buttons ---------- */
.btn-primary, .btn-outline {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  min-height: 44px;
  padding: 8px 16px;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, translate 0.15s ease;
}
.btn-primary:focus-visible, .btn-outline:focus-visible, .seg-btn:focus-visible, .gallery-item:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
.btn-primary { background: var(--primary); color: var(--card); border: 1px solid var(--primary); box-shadow: var(--shadow-sm); }
.btn-primary:hover:not(:disabled) { background: var(--primary-dark); border-color: var(--primary-dark); color: var(--card); }
.btn-primary:active:not(:disabled), .btn-outline:active:not(:disabled) { translate: 0 1px; }
.btn-outline { background: var(--card); color: var(--text); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.btn-outline:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); }
.btn-outline[data-gf-liked], .btn-outline[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: var(--card); }
.btn-sm { min-height: 36px; padding: 4px 12px; font-size: 14px; }
button:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-link { background: none; border: none; padding: 4px 0; color: var(--primary); font-size: 14px; font-weight: 600; cursor: pointer; }


/* ---------- Stage head ---------- */
.hero-stage { padding: 32px 0 48px; }
.stage-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.stage-lead { color: var(--muted); font-size: 18px; margin: 0; max-width: 62ch; }
.engage-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.share-toast { font-size: 14px; color: var(--primary); font-weight: 600; }

/* ---------- Workbench layout ---------- */
.puzzle-workbench {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 32px;
  align-items: start;
}
.board-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.board-hud { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.stat-pill {
  background: var(--bg);
  border-radius: 8px;
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.stat-label { font-size: 12px; color: var(--muted); font-weight: 600; }
.stat-pill strong {
  font-size: 18px;
  line-height: 1.2;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.stat-pill strong.is-bad { color: var(--primary); }
.stat-mode {
  justify-content: center;
  align-items: center;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  background: var(--card);
  border: 1px solid var(--border);
}

/* ---------- The board: walnut tray + recessed sockets + ceramic tiles ---------- */
.board-stage { position: relative; width: 100%; max-width: 520px; margin: 0 auto; }
.board-frame {
  padding: 16px;
  border-radius: 16px;
  background-color: var(--wood);
  background-image: repeating-linear-gradient(100deg, rgba(255, 250, 242, 0.05) 0 2px, transparent 2px 12px);
  box-shadow: inset 0 1px 0 rgba(255, 250, 242, 0.12), inset 0 -2px 0 rgba(0, 0, 0, 0.35), var(--shadow-md);
}
.board-bed {
  --n: 4;
  --gap: 8px;
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  container-type: inline-size;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.board-bed.n-3 { --gap: 12px; }
.board-bed.n-5 { --gap: 4px; }
.board-socket, .tile {
  position: absolute;
  top: 0;
  left: 0;
  width: calc((100% - (var(--n) - 1) * var(--gap)) / var(--n));
  aspect-ratio: 1 / 1;
  transform: translate(calc(var(--c, 0) * (100% + var(--gap))), calc(var(--r, 0) * (100% + var(--gap))));
  border-radius: 8px;
}
.board-socket { background: var(--wood-deep); box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.5); }
.board-socket.is-selected { box-shadow: inset 0 0 0 3px var(--accent), inset 0 2px 6px rgba(0, 0, 0, 0.5); cursor: pointer; }

.tile {
  border: 0;
  margin: 0;
  padding: 0;
  background-color: var(--card);
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 28px;
  font-size: calc(36cqw / var(--n));
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: default;
  box-shadow: inset 0 2px 0 rgba(255, 250, 242, 0.9), inset 0 -4px 0 rgba(43, 33, 24, 0.16), 0 2px 3px rgba(0, 0, 0, 0.35);
  transition: transform 140ms var(--ease), translate 140ms var(--ease), background-color 160ms ease, box-shadow 160ms ease;
  -webkit-tap-highlight-color: transparent;
  will-change: transform;
}
.tile.is-movable { cursor: pointer; }
@media (hover: hover) {
  .tile.is-movable:hover { translate: 0 -2px; background-color: var(--bg); }
}
.tile:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; z-index: 2; }
.tile.is-home::after {
  content: '';
  position: absolute;
  right: 8%;
  bottom: 10%;
  width: 8%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: var(--accent);
}
.tile.is-hint { background-color: var(--accent); animation: hint-pulse 900ms ease-in-out infinite; z-index: 1; }
.tile.is-selected { background-color: var(--primary); color: var(--card); z-index: 1; }
.tile.is-moved { box-shadow: inset 0 0 0 3px var(--accent), 0 2px 3px rgba(0, 0, 0, 0.35); }

.tile.is-picture {
  background-color: var(--wood-deep);
  background-repeat: no-repeat;
  box-shadow: inset 0 0 0 1px rgba(255, 250, 242, 0.35), 0 2px 3px rgba(0, 0, 0, 0.35);
}
.tile.is-picture.is-home::after { display: none; }
.tile.is-picture .tile-num {
  position: absolute;
  top: 6%;
  left: 6%;
  min-width: 28%;
  padding: 2px 4px;
  border-radius: 6px;
  background: rgba(43, 33, 24, 0.78);
  color: var(--card);
  font-family: var(--font-body);
  font-size: 12px;
  font-size: calc(12cqw / var(--n));
  font-weight: 600;
  text-align: center;
}
.board-bed.hide-nums .tile.is-picture .tile-num { display: none; }
.tile.is-picture.is-hint { box-shadow: inset 0 0 0 4px var(--accent), 0 2px 3px rgba(0, 0, 0, 0.35); animation: none; }
.tile.is-picture.is-selected { box-shadow: inset 0 0 0 4px var(--primary), 0 2px 3px rgba(0, 0, 0, 0.35); }

.board-bed.no-anim .tile { transition: none; }
.board-bed.is-shuffling .tile { transition-duration: 380ms; }
.board-bed.is-solved .tile { animation: tile-pop 520ms var(--ease) both; animation-delay: calc(var(--i, 0) * 28ms); }

@keyframes hint-pulse {
  0%, 100% { box-shadow: inset 0 0 0 3px var(--primary), 0 2px 3px rgba(0, 0, 0, 0.35); }
  50% { box-shadow: inset 0 0 0 6px var(--primary), 0 2px 3px rgba(0, 0, 0, 0.35); }
}
@keyframes tile-pop {
  0% { scale: 1; }
  45% { scale: 1.07; background-color: var(--accent); }
  100% { scale: 1; }
}
@keyframes overlay-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes card-in { from { opacity: 0; translate: 0 12px; scale: 0.96; } to { opacity: 1; translate: 0 0; scale: 1; } }

/* ---------- Overlays ---------- */
.board-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 24px;
  background: rgba(43, 33, 24, 0.7);
  animation: overlay-in 220ms ease both;
}
.board-preview { color: var(--card); font-size: 14px; font-weight: 600; cursor: pointer; }
.board-preview img { width: 88%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 12px; box-shadow: var(--shadow-md); }
.win-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  width: 100%;
  max-width: 320px;
  box-shadow: var(--shadow-md);
  animation: card-in 320ms var(--ease) both;
}
.win-eyebrow { margin: 0 0 4px; font-size: 12px; font-weight: 600; color: var(--primary); }
.win-title { margin: 0 0 8px; font-family: var(--font-display); font-size: 28px; font-weight: 700; }
.win-stats { margin: 0 0 16px; color: var(--muted); font-size: 14px; }
.win-actions { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }

.board-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.board-status { margin: 0; min-height: 24px; text-align: center; font-size: 14px; color: var(--muted); }


/* ---------- Control panel ---------- */
.control-panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: sticky;
  top: 88px;
}
.panel-group { display: flex; flex-direction: column; gap: 12px; }
.panel-group + .panel-group { padding-top: 24px; border-top: 1px solid var(--border); }
.panel-label { margin: 0; font-size: 14px; font-weight: 600; color: var(--text); }
.seg-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 4px;
  padding: 4px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.seg-btn {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  min-height: 44px;
  padding: 4px 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.seg-btn:hover { color: var(--text); }
.seg-btn.is-active { background: var(--card); color: var(--primary); box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--border); }

.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.gallery-item {
  border: 2px solid transparent;
  border-radius: var(--radius);
  padding: 4px;
  background: var(--bg);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: stretch;
  transition: border-color 0.15s ease;
}
.gallery-item:hover { border-color: var(--border); }
.gallery-item.is-active { border-color: var(--primary); background: var(--card); }
.gallery-item img { width: 100%; aspect-ratio: 1 / 1; border-radius: 8px; object-fit: cover; background: var(--border); }
.gallery-item span { font-size: 12px; font-weight: 600; color: var(--text); text-align: center; line-height: 1.3; }

.upload-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 16px;
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  cursor: pointer;
  text-align: center;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.upload-box:hover, .upload-box.is-drag { border-color: var(--primary); background: var(--card); }
.upload-title { font-size: 14px; font-weight: 600; color: var(--primary); }
.upload-note { font-size: 12px; color: var(--muted); }
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.check-label { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text); cursor: pointer; }
.check-label input { accent-color: var(--primary); width: 16px; height: 16px; }
.kbd-hint { font-size: 12px; color: var(--muted); }
.kbd-hint kbd {
  font-family: var(--font-body);
  font-size: 12px;
  padding: 0 4px;
  border: 1px solid var(--border);
  border-bottom-width: 2px;
  border-radius: 4px;
  background: var(--card);
}

/* ---------- Solver controls ---------- */
.btn-wrap-row { display: flex; flex-wrap: wrap; gap: 8px; }
.input-label { font-size: 12px; color: var(--muted); font-weight: 600; }
.inline-input-row { display: flex; gap: 8px; }
.inline-input-row input, .comment-form input, .comment-form textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 12px;
  min-height: 44px;
}
.inline-input-row input:focus, .comment-form input:focus, .comment-form textarea:focus {
  outline: 2px solid var(--primary);
  border-color: var(--primary);
  background: var(--card);
}
.move-list {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
  max-height: 264px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.move-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  font-size: 14px;
  cursor: pointer;
}
.move-item:hover { border-color: var(--primary); }
.move-item.is-current { background: var(--primary); color: var(--card); border-color: var(--primary); }
.move-empty { font-size: 14px; color: var(--muted); }

/* ---------- Content sections ---------- */
.section-band { padding: 48px 0; }
.prose-band { background: var(--card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.page-hero { padding: 48px 0 32px; }
.page-eyebrow { margin: 0 0 8px; font-size: 14px; font-weight: 600; color: var(--primary); }
.page-cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.section-title { margin-bottom: 24px; }
.mode-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.mode-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-decoration: none;
  color: var(--text);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.15s ease, translate 0.15s ease;
}
.mode-card:hover { border-color: var(--primary); translate: 0 -2px; color: var(--text); }
.mode-badge {
  align-self: flex-start;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  background: var(--bg);
  padding: 4px 12px;
  border-radius: 999px;
}
.mode-card-title { font-family: var(--font-display); font-size: 18px; font-weight: 700; }
.mode-card-desc { font-size: 14px; color: var(--muted); }

.prose-wrap { max-width: 780px; }
.prose-wrap p, .prose-wrap li { max-width: 70ch; font-size: 16px; color: var(--text); }
.prose-wrap h2 { margin-top: 48px; }
.prose-wrap h2:first-child { margin-top: 0; }
.prose-wrap h3 { margin-top: 24px; }
.prose-wrap ul, .prose-wrap ol { padding-left: 24px; }
.prose-wrap li { margin-bottom: 8px; }
.prose-wrap img { margin: 24px 0; border-radius: var(--radius); border: 1px solid var(--border); }
.prose-wrap table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 14px; display: block; overflow-x: auto; }
.prose-wrap th, .prose-wrap td { border: 1px solid var(--border); padding: 8px 12px; text-align: left; }
.prose-wrap th { background: var(--bg); font-weight: 600; }
.prose-wrap code { font-size: 14px; background: var(--bg); padding: 0 4px; border-radius: 4px; }

.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 24px; }
.faq-item summary { font-weight: 600; font-size: 16px; cursor: pointer; color: var(--text); }
.faq-item p { margin: 12px 0 0; color: var(--muted); font-size: 16px; }


/* ---------- Comments ---------- */
.comment-form {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}
.comment-form[data-gf-replying] .comment-reply-bar { display: flex; justify-content: space-between; align-items: center; font-size: 14px; color: var(--muted); }
.form-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.comment-msg { font-size: 14px; color: var(--primary); font-weight: 600; }
.comments-list { display: flex; flex-direction: column; gap: 12px; }
.comments-empty { display: none; color: var(--muted); font-size: 14px; }
.comments-list[data-gf-empty] .comments-empty { display: block; }
.comment-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.comment-card[data-gf-owner] { border-color: var(--primary); background: var(--bg); }
.comment-card.is-reply { margin-top: 12px; margin-left: 24px; background: var(--bg); }
.comment-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.comment-meta strong { color: var(--text); }
.owner-badge { background: var(--primary); color: var(--card); font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; }
.comment-body { margin: 0 0 8px; font-size: 16px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--card); border-top: 1px solid var(--border); padding: 48px 0; margin-top: 32px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 32px; }
.footer-tagline { color: var(--muted); font-size: 14px; margin: 12px 0; max-width: 44ch; }
.footer-meta { color: var(--muted); font-size: 12px; margin: 0; }
.footer-heading { font-weight: 600; font-size: 14px; margin: 0 0 12px; color: var(--text); }
.footer-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-list a { color: var(--muted); text-decoration: none; font-size: 14px; }
.footer-list a:hover { color: var(--primary); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .puzzle-workbench { grid-template-columns: 1fr; }
  .control-panel { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  h1 { font-size: 28px; }
  h2 { font-size: 22px; }
  .stage-lead { font-size: 16px; }
  .hero-stage { padding: 16px 0 32px; }
  .stage-head { margin-bottom: 16px; }
  .board-card { padding: 12px; gap: 12px; border-radius: var(--radius); }
  .board-frame { padding: 8px; border-radius: var(--radius); }
  .board-bed { --gap: 6px; }
  .board-bed.n-3 { --gap: 8px; }
  .board-bed.n-5 { --gap: 4px; }
  .board-hud { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .board-hud .stat-mode { display: none; }
  .stat-pill { padding: 8px; }
  .stat-pill strong { font-size: 16px; }
  .board-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .board-actions > :first-child { grid-column: 1 / -1; }
  .control-panel { padding: 16px; }
  .site-nav { gap: 0; }
  .nav-link { padding: 8px; }
  .footer-grid { grid-template-columns: 1fr; }
  .inline-input-row { flex-direction: column; }
  .comment-card.is-reply { margin-left: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .tile, .board-overlay, .win-card { transition: none !important; animation: none !important; }
}
