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

:root {
  --bg: #faf9f7;
  --surface: #ffffff;
  --border: rgba(0,0,0,0.09);
  --text: #1a1a1a;
  --muted: #6b7280;
  --accent: #e85d2f;
  --accent-2: #3b82f6;
  --accent-3: #10b981;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.10);
  font-size: 16px;
}

html { background: var(--bg); color: var(--text); font-family: system-ui, -apple-system, sans-serif; }
body { min-height: 100dvh; }

/* ── HEADER ── */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-left { display: flex; align-items: center; gap: 10px; }
.site-header h1 { font-size: 1.1rem; font-weight: 700; line-height: 1.2; }
.site-header h1 span { font-size: 1.3em; }
.exit-btn { font-size: 0.78rem; color: var(--muted); text-decoration: none; white-space: nowrap; padding: 4px 8px; border-radius: 6px; }
.exit-btn:hover { color: var(--accent); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ── TABS ── */
.tab-bar {
  display: flex;
  gap: 4px;
  padding: 12px 16px 0;
  border-bottom: 2px solid var(--border);
  overflow-x: auto;
}
.tab-btn {
  padding: 10px 20px;
  border: none;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  background: transparent;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--muted);
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.tab-btn.active {
  background: var(--surface);
  color: var(--text);
  border: 2px solid var(--border);
  border-bottom-color: var(--surface);
  margin-bottom: -2px;
}

/* ── VIEWS ── */
.view { display: none; }
.view.visible { display: block; }

/* ── BUILDER ── */
.builder { padding: 0 0 80px; }

/* Creature canvas */
.canvas-section {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 24px 16px;
  text-align: center;
}
.canvas-label { font-size: 0.75rem; font-weight: 600; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 8px; }

.creature-display {
  position: relative;
  width: 220px;
  height: 280px;
  margin: 0 auto 12px;
  user-select: none;
}
.part-slot {
  position: absolute;
  font-size: 3rem;
  line-height: 1;
  transition: opacity 0.2s, transform 0.25s;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.12));
}
.part-slot.empty { opacity: 0.12; filter: none; }
.part-slot.filled { animation: pop 0.25s cubic-bezier(0.34,1.56,0.64,1); }

.slot-extra { top: 0; left: 50%; transform: translateX(-50%); font-size: 2.2rem; }
.slot-head  { top: 44px; left: 50%; transform: translateX(-50%); font-size: 3.5rem; }
.slot-body  { top: 120px; left: 50%; transform: translateX(-50%); font-size: 3rem; }
.slot-legs-left  { top: 162px; left: 16px; font-size: 2.4rem; transform: scaleX(-1); }
.slot-legs-right { top: 162px; right: 16px; font-size: 2.4rem; }
.slot-tail  { bottom: 0; left: 50%; transform: translateX(-50%); font-size: 2rem; }

@keyframes pop {
  0% { transform: translateX(-50%) scale(0.5); }
  70% { transform: translateX(-50%) scale(1.15); }
  100% { transform: translateX(-50%) scale(1); }
}
.slot-legs-left.filled { animation: pop-left 0.25s cubic-bezier(0.34,1.56,0.64,1); }
@keyframes pop-left {
  0% { transform: scaleX(-1) scale(0.5); }
  70% { transform: scaleX(-1) scale(1.15); }
  100% { transform: scaleX(-1) scale(1); }
}
.slot-legs-right.filled { animation: pop-right 0.25s cubic-bezier(0.34,1.56,0.64,1); }
@keyframes pop-right {
  0% { transform: scale(0.5); }
  70% { transform: scale(1.15); }
  100% { transform: scale(1); }
}
.slot-tail.filled { animation: pop-tail 0.25s cubic-bezier(0.34,1.56,0.64,1); }
@keyframes pop-tail {
  0% { transform: translateX(-50%) scale(0.5) rotate(-15deg); }
  70% { transform: translateX(-50%) scale(1.1) rotate(5deg); }
  100% { transform: translateX(-50%) scale(1) rotate(0deg); }
}

/* Fact bubble */
.fact-bubble {
  background: linear-gradient(135deg, #fff7ed, #fef3c7);
  border: 1.5px solid #fbbf24;
  border-radius: var(--radius);
  padding: 12px 16px;
  margin-top: 4px;
  font-size: 0.85rem;
  line-height: 1.5;
  color: #92400e;
  max-width: 340px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}
.fact-bubble::before { content: "📖 Fun Fact:"; display: block; font-weight: 700; font-size: 0.75rem; margin-bottom: 4px; color: #78350f; }
.fact-nav {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 8px;
}
.fact-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: none;
  background: #fbbf24;
  opacity: 0.35;
  cursor: pointer;
  padding: 0;
  transition: opacity 0.15s;
}
.fact-dot.active { opacity: 1; }

/* ── HABITAT PICKER ── */
.habitat-section {
  padding: 16px 16px 8px;
}
.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.habitat-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
}
.habitat-row::-webkit-scrollbar { height: 3px; }
.habitat-row::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
.habitat-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 80px;
  padding: 10px 8px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  cursor: pointer;
  scroll-snap-align: start;
  flex-shrink: 0;
  transition: border-color 0.15s, background 0.15s;
  font-family: inherit;
}
.habitat-btn .h-emoji { font-size: 1.6rem; line-height: 1; }
.habitat-btn .h-label { font-size: 0.7rem; font-weight: 600; color: var(--muted); text-align: center; line-height: 1.2; }
.habitat-btn.selected {
  border-color: var(--accent);
  background: #fff4f0;
}
.habitat-btn.selected .h-label { color: var(--accent); }

/* ── PART SELECTORS ── */
.parts-section { padding: 8px 16px; }
.part-group { margin-bottom: 16px; }
.part-group-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.parts-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
}
.parts-row::-webkit-scrollbar { height: 3px; }
.parts-row::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
.part-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  min-width: 72px;
  min-height: 72px;
  padding: 10px 6px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  cursor: pointer;
  scroll-snap-align: start;
  flex-shrink: 0;
  transition: border-color 0.15s, transform 0.1s;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
}
.part-btn:active { transform: scale(0.94); }
.part-btn .p-emoji { font-size: 1.8rem; line-height: 1; }
.part-btn .p-label { font-size: 0.65rem; font-weight: 600; color: var(--muted); text-align: center; line-height: 1.2; max-width: 60px; }
.part-btn.selected {
  border-color: var(--accent);
  background: #fff4f0;
}
.part-btn.selected .p-label { color: var(--accent); }

/* ── NAME + SAVE ── */
.name-section {
  padding: 16px;
  display: flex;
  gap: 10px;
  align-items: flex-end;
}
.name-field {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.name-field label { font-size: 0.8rem; font-weight: 600; color: var(--muted); }
.name-field input {
  padding: 12px 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: inherit;
  background: var(--surface);
  color: var(--text);
  transition: border-color 0.15s;
  width: 100%;
  -webkit-appearance: none;
}
.name-field input:focus { outline: none; border-color: var(--accent); }
.save-btn {
  padding: 12px 20px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, transform 0.1s;
  -webkit-tap-highlight-color: transparent;
  font-family: inherit;
}
.save-btn:hover { background: #d94e24; }
.save-btn:active { transform: scale(0.96); }
.save-btn:disabled { background: #ccc; cursor: not-allowed; }

/* Save toast */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: #1a1a1a;
  color: #fff;
  padding: 12px 24px;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 600;
  z-index: 999;
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
  pointer-events: none;
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* ── BESTIARY ── */
.bestiary { padding: 16px 16px 80px; }
.bestiary-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 12px;
}
.bestiary-header h2 { font-size: 1.2rem; font-weight: 700; }
.bestiary-count { font-size: 0.85rem; color: var(--muted); }
.bestiary-empty {
  text-align: center;
  padding: 60px 24px;
  color: var(--muted);
}
.bestiary-empty .be-emoji { font-size: 3rem; display: block; margin-bottom: 12px; }
.bestiary-empty p { font-size: 0.95rem; line-height: 1.6; }

.bestiary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.bestiary-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow 0.15s;
}
.bestiary-card:hover { box-shadow: var(--shadow-md); }

.card-habitat {
  padding: 10px 14px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid var(--border);
}

.card-creature {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 16px;
  min-height: 120px;
  background: var(--bg);
  position: relative;
}
.card-creature-emoji {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 2rem;
  line-height: 1;
}
.card-creature-emoji .ce-extra { font-size: 1.4rem; opacity: 0.85; }

.card-body { padding: 14px; }
.card-name { font-size: 1.1rem; font-weight: 700; margin-bottom: 4px; }
.card-date { font-size: 0.75rem; color: var(--muted); margin-bottom: 10px; }
.card-fact {
  font-size: 0.8rem;
  line-height: 1.5;
  color: #92400e;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  margin-bottom: 12px;
}
.card-actions {
  display: flex;
  gap: 8px;
}
.card-btn {
  flex: 1;
  padding: 10px 8px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border);
  background: transparent;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, border-color 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.card-btn:active { transform: scale(0.96); }
.card-btn.remix { color: var(--accent-2); border-color: var(--accent-2); }
.card-btn.remix:hover { background: #eff6ff; }
.card-btn.delete { color: #ef4444; border-color: #ef4444; }
.card-btn.delete:hover { background: #fef2f2; }

/* ── RESPONSIVE ── */
@media (min-width: 600px) {
  .canvas-section { padding: 32px 24px; }
  .creature-display { width: 260px; height: 320px; }
  .slot-head  { font-size: 4rem; top: 50px; }
  .slot-body  { font-size: 3.4rem; top: 140px; }
  .slot-extra { font-size: 2.6rem; }
  .slot-legs-left  { font-size: 2.8rem; top: 185px; left: 24px; }
  .slot-legs-right { font-size: 2.8rem; top: 185px; right: 24px; }
  .slot-tail  { font-size: 2.3rem; }
  .name-section { padding: 20px 24px; }
  .parts-section { padding: 8px 24px; }
  .habitat-section { padding: 16px 24px 8px; }
}

@media (min-width: 900px) {
  .builder {
    display: grid;
    grid-template-columns: 320px 1fr;
    grid-template-rows: auto;
    align-items: start;
    gap: 0;
    max-width: 900px;
    margin: 0 auto;
    padding: 24px 0 80px;
    gap: 24px;
  }
  .canvas-section {
    grid-column: 1;
    grid-row: 1 / 10;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 24px;
    background: var(--surface);
    position: sticky;
    top: 64px;
  }
  .habitat-section { grid-column: 2; }
  .parts-section { grid-column: 2; }
  .name-section { grid-column: 2; }
  .tab-bar { padding: 0 24px; }
  .bestiary { padding: 24px 24px 80px; max-width: 900px; margin: 0 auto; }
}

/* ── SHOWCASE FOOTER ── */
.showcase-footer {
  text-align: center;
  padding: 24px 16px 40px;
  font-size: 0.82rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  margin-top: 24px;
}
.sf-link { color: var(--muted); text-decoration: none; }
.sf-link:hover { color: var(--accent); }
.sf-link strong { color: var(--text); }
.sf-sep { margin: 0 10px; opacity: 0.4; }

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

/* ═══════════ v2 UPLIFT — age modes, stats, challenges, habitats ═══════════ */

body:not([data-mode="big"]) .big-only { display: none !important; }

/* Clear button (was inline-styled) */
.clear-btn {
  margin-top: 12px; padding: 10px 20px;
  min-height: 44px;
  border: 2px solid var(--border); border-radius: var(--radius-sm);
  background: transparent; color: var(--muted);
  font-size: 0.85rem; font-weight: 600; font-family: inherit; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.clear-btn:active { transform: scale(0.95); }

/* ── LITTLE MODE: huge targets everywhere ── */
body[data-mode="little"] .part-btn { min-width: 96px; min-height: 96px; }
body[data-mode="little"] .part-btn .p-emoji { font-size: 2.5rem; }
body[data-mode="little"] .part-btn .p-label { font-size: 0.75rem; max-width: 84px; }
body[data-mode="little"] .habitat-btn { min-width: 96px; min-height: 84px; }
body[data-mode="little"] .habitat-btn .h-emoji { font-size: 2.1rem; }
body[data-mode="little"] .tab-btn { padding: 14px 24px; font-size: 1.05rem; }
body[data-mode="little"] .save-btn { min-height: 64px; font-size: 1.1rem; }
body[data-mode="little"] .clear-btn { min-height: 56px; font-size: 1rem; }
body[data-mode="little"] .card-btn { min-height: 56px; }

/* ── CAROUSEL ARROWS ── */
.carousel { display: flex; align-items: stretch; gap: 4px; }
.carousel .parts-row { flex: 1; }
.car-arrow {
  flex: 0 0 34px;
  border: 2px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--muted);
  font-size: 1.4rem; font-weight: 700; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  display: none;
}
.car-arrow:active { transform: scale(0.94); }
@media (min-width: 600px) { .car-arrow { display: block; } }
body[data-mode="little"] .car-arrow { display: block; flex-basis: 48px; font-size: 1.8rem; }

/* ── PART BUTTON STATES ── */
.part-btn.locked { opacity: 0.55; }
.part-btn.locked .p-emoji { filter: grayscale(1); }
.part-btn.rare:not(.locked) { border-color: #f59e0b; background: #fffbeb; }
.card-btn.delete.armed { background: #ef4444; color: #fff; }

/* ── STAT PANEL ── */
.stat-panel { max-width: 300px; margin: 0 auto 10px; text-align: left; }
.stat-panel:empty { display: none; }
.stat-row { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; }
.stat-name { flex: 0 0 96px; font-size: 0.75rem; font-weight: 700; color: var(--text); }
.stat-track { flex: 1; height: 10px; background: rgba(0,0,0,0.07); border-radius: 5px; overflow: hidden; }
.stat-fill { display: block; height: 100%; background: var(--accent); border-radius: 5px; transition: width 0.35s cubic-bezier(0.34,1.56,0.64,1); }
.stat-num { flex: 0 0 40px; font-size: 0.78rem; font-weight: 800; text-align: right; }
.stat-num em { font-style: normal; color: var(--accent-3); }
.card-stats { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.05em; margin-bottom: 6px; }

.habitat-note { font-size: 0.78rem; font-weight: 600; color: var(--accent-3); margin-top: 8px; min-height: 1.2em; }

/* ── HABITAT SCENERY on creature canvas ── */
.canvas-section { transition: background 0.5s ease; }
.hab-bubble-reef   { background: linear-gradient(180deg, #e0f7fa, #b2ebf2 70%, #80deea) !important; }
.hab-moss-hollow   { background: linear-gradient(180deg, #f1f8e9, #dcedc8 70%, #c5e1a5) !important; }
.hab-spider-cafe   { background: linear-gradient(180deg, #efebe9, #d7ccc8 70%, #bcaaa4) !important; }
.hab-midnight-zoo  { background: linear-gradient(180deg, #e8eaf6, #c5cae9 70%, #9fa8da) !important; }
.hab-trashopolis   { background: linear-gradient(180deg, #f5f5f5, #e0e0e0 70%, #bdbdbd) !important; }
.hab-nectar-realm  { background: linear-gradient(180deg, #fffde7, #fff9c4 70%, #fff59d) !important; }
.hab-firefly-grove { background: linear-gradient(180deg, #f9fbe7, #f0f4c3 70%, #e6ee9c) !important; }
.hab-frog-camp     { background: linear-gradient(180deg, #e1f5fe, #b3e5fc 70%, #81d4fa) !important; }

/* ── CHALLENGES VIEW ── */
.challenges { padding: 20px 16px 80px; max-width: 900px; margin: 0 auto; }
.challenges-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-bottom: 8px; }
.challenges-header h2 { font-size: 1.2rem; font-weight: 700; }
.ch-scoreline { display: flex; gap: 14px; font-size: 0.82rem; color: var(--muted); }
.ch-scoreline strong { color: var(--accent); font-size: 1rem; }
.ch-intro { font-size: 0.88rem; color: var(--muted); line-height: 1.6; margin-bottom: 18px; max-width: 68ch; }

.challenge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}
.challenge-card {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 18px 12px 14px;
  min-height: 120px;
  border: 2px solid var(--border); border-radius: var(--radius);
  background: var(--surface); cursor: pointer; font-family: inherit;
  box-shadow: var(--shadow);
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.challenge-card:hover:not(:disabled) { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--accent); }
.challenge-card:active:not(:disabled) { transform: scale(0.96); }
.challenge-card:disabled { opacity: 0.5; cursor: not-allowed; }
.cc-emoji { font-size: 2.2rem; line-height: 1; }
.cc-title { font-size: 0.85rem; font-weight: 700; text-align: center; line-height: 1.25; }
.cc-req { font-size: 0.72rem; font-weight: 700; color: var(--muted); background: var(--bg); border: 1px solid var(--border); padding: 3px 10px; border-radius: 20px; }
.cc-badge { position: absolute; top: 8px; right: 10px; font-size: 1.1rem; }
.challenge-card.done-epic { border-color: #f59e0b; background: #fffbeb; }
.challenge-card.done-win  { border-color: var(--accent-3); }

/* Challenge result overlay */
.ch-result-overlay, .celebrate-overlay {
  position: fixed; inset: 0; z-index: 800;
  background: rgba(20,16,12,0.55); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
}
.ch-result-overlay[hidden], .celebrate-overlay[hidden] { display: none; }
.ch-result-box, .celebrate-box {
  background: var(--surface);
  border-radius: 22px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.28);
  padding: 28px 24px;
  max-width: 440px; width: 100%;
  text-align: center;
  max-height: 92dvh; overflow-y: auto;
  animation: wbs-pop-in 0.3s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes wbs-pop-in { from { opacity: 0; transform: scale(0.85); } to { opacity: 1; transform: scale(1); } }
.chr-emoji, .cb-emoji { font-size: 3rem; margin-bottom: 6px; }
.ch-result-box h2, .celebrate-box h2 { font-size: 1.4rem; font-weight: 800; margin-bottom: 10px; }
.chr-story { font-size: 0.95rem; line-height: 1.65; color: var(--text); margin-bottom: 14px; }
.chr-math {
  font-size: 0.85rem; color: var(--muted); line-height: 1.7;
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 10px 14px; margin-bottom: 18px;
}
.chr-actions .save-btn { width: 100%; min-height: 52px; }

/* Save celebration */
.cb-creature { font-size: 2.4rem; letter-spacing: 0.1em; margin-bottom: 8px; }
.cb-detail { font-size: 0.9rem; color: var(--muted); line-height: 1.7; margin-bottom: 18px; }
.cb-actions { display: flex; flex-direction: column; gap: 10px; }
.cb-actions .save-btn { width: 100%; min-height: 52px; }
.cb-btn {
  width: 100%; min-height: 52px;
  border: 2px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--text);
  font-size: 0.95rem; font-weight: 700; font-family: inherit; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
}
.cb-btn:active { transform: scale(0.97); }
body[data-mode="little"] .cb-actions .save-btn,
body[data-mode="little"] .cb-btn { min-height: 64px; }

@media (prefers-reduced-motion: reduce) {
  .ch-result-box, .celebrate-box { animation: none; }
  .stat-fill, .canvas-section { transition: none; }
}
