/* ============ Shooshdoku · dusk edition ============ */
@font-face {
  font-family: 'Pixelify Sans';
  src: url('./fonts/pixelify.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: 'Silkscreen';
  src: url('./fonts/silkscreen.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Silkscreen';
  src: url('./fonts/silkscreen-bold.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}

* {
  margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent;
  font-variant-ligatures: none;
  font-feature-settings: "liga" 0, "clig" 0;
}
html, body { height: 100%; overflow: hidden; overscroll-behavior: none; }

:root {
  --dusk-deep: #2E2140;
  --dusk: #5E4E9E;
  --dusk-mid: #9C6FB5;
  --sunset: #E8905F;
  --wood: #6B4632;
  --wood-light: #83593E;
  --wood-dark: #3E2418;
  --wood-edge: #2A1810;
  --parch: #F6E6C4;
  --parch-dark: #E2C99C;
  --ink: #4A2E20;
  --ink-soft: #7A5A44;
  --pink: #EE8FA8;
  --pink-deep: #D96C8C;
  --cream: #FBEED6;
  --gold: #F5C56A;
  --sat: env(safe-area-inset-top, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
}

body {
  font-family: 'Pixelify Sans', ui-rounded, -apple-system, system-ui, sans-serif;
  font-variant-ligatures: none;
  font-feature-settings: "liga" 0, "clig" 0;
  background: linear-gradient(180deg, #4A3A85 0%, #7A5AA8 34%, #C77B96 62%, #E8905F 88%, #B96A4E 100%);
  color: var(--cream);
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  position: fixed; inset: 0;
}

/* ============ Home poster background ============ */
#home-bg {
  position: fixed; inset: 0; overflow: hidden; z-index: 0;
  opacity: 0; transition: opacity .4s ease; pointer-events: none;
}
#home-bg.on { opacity: 1; }
#home-bg img {
  position: absolute; left: 50%; top: 50%;
  min-width: 100%; min-height: 100%; width: auto; height: 100%;
  object-fit: cover;
  animation: kenburns 30s ease-in-out infinite alternate;
}
@keyframes kenburns {
  0%   { transform: translate(-50%, -50%) scale(1); }
  100% { transform: translate(-50%, -51.5%) scale(1.09); }
}
#home-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(30,18,40,.45) 0%, transparent 14%, transparent 70%, rgba(24,12,8,.55) 100%);
}
@media (min-width: 700px) {
  #home-bg img { height: auto; width: 100%; } /* wide screens: fill by width */
}

#petals { position: fixed; inset: 0; z-index: 3; pointer-events: none; }

/* ============ Splash ============ */
#splash {
  position: fixed; inset: 0; z-index: 200;
  background: linear-gradient(180deg, #4A3A85, #8A5E9E 55%, #C77B96);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  transition: opacity .5s ease;
}
#splash.hide { opacity: 0; pointer-events: none; }
#splash img {
  width: min(84vw, 400px);
  border: 4px solid var(--wood-dark); border-radius: 10px;
  box-shadow: 0 8px 0 var(--wood-edge), 0 30px 60px rgba(20, 10, 30, .5);
}
.splash-title { display: none; }
.splash-sub {
  margin-top: 24px; font-size: 17px; font-weight: 600; color: var(--cream);
  text-shadow: 2px 2px 0 rgba(40, 20, 50, .6);
}

/* ============ Screens ============ */
.screen {
  position: fixed; inset: 0; z-index: 4;
  display: flex; flex-direction: column;
  padding: calc(var(--sat) + 12px) 18px calc(var(--sab) + 16px);
  opacity: 0; transform: translateX(24px);
  pointer-events: none;
  transition: opacity .28s ease, transform .28s cubic-bezier(.2,.8,.25,1);
  max-width: 560px; margin: 0 auto;
}
.screen.active { opacity: 1; transform: none; pointer-events: auto; }

/* ============ Shared pixel components ============ */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; margin-bottom: 10px; min-height: 52px;
}
.round-btn {
  width: 48px; height: 48px; border-radius: 8px;
  border: 3px solid var(--wood-edge);
  background: linear-gradient(180deg, var(--wood-light), var(--wood));
  color: var(--cream); font-size: 21px; font-weight: 700; font-family: inherit;
  box-shadow: 0 4px 0 var(--wood-edge);
  display: grid; place-items: center; cursor: pointer;
  transition: transform .1s ease, box-shadow .1s ease;
}
.round-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--wood-edge); }
.round-spacer { width: 48px; }
.screen-title {
  font-size: 25px; font-weight: 700; color: var(--cream);
  text-shadow: 2px 2px 0 rgba(40, 20, 50, .55);
}

.chip {
  background: linear-gradient(180deg, var(--wood-light), var(--wood));
  border: 3px solid var(--wood-edge); font-family: inherit;
  border-radius: 8px; padding: 7px 14px;
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 17px; font-weight: 700; color: var(--cream);
  box-shadow: 0 3px 0 var(--wood-edge);
}
.streak-chip { cursor: pointer; transition: transform .1s; }
.streak-chip:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--wood-edge); }
.paw-ico { width: 19px; height: 19px; fill: var(--gold); }
.chip-pair { display: flex; gap: 8px; min-width: 0; }
.chip-pair .chip { padding: 7px 12px; font-size: 15px; }

.avatar-btn {
  width: 54px; height: 54px; border-radius: 10px; border: 3px solid #B39DE6;
  background: #FFE9A8; font-size: 30px; line-height: 1; padding: 0;
  display: grid; place-items: center; cursor: pointer;
  box-shadow: 0 4px 0 rgba(40, 22, 12, .8);
  transition: transform .1s; overflow: hidden;
}
.avatar-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 rgba(40,22,12,.8); }
.avatar-img { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; display: block; }

/* ============ Home ============ */
#screen-home { background: transparent; }
.home-bottom {
  margin-top: auto; padding: 0 4px;
  display: flex; flex-direction: column; gap: 12px;
}
.daily-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; border: 3px solid var(--wood-edge); cursor: pointer; font-family: inherit;
  background: linear-gradient(180deg, var(--wood-light), var(--wood));
  box-shadow: 0 5px 0 var(--wood-edge), 0 12px 30px rgba(20, 10, 30, .4);
  color: var(--gold); font-size: 20px; font-weight: 700;
  padding: 13px 18px; border-radius: 10px;
  transition: transform .1s ease, box-shadow .1s ease;
}
.daily-btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--wood-edge); }
.daily-btn .daily-sub { font-size: 13px; font-weight: 400; color: var(--parch); opacity: .85; }
.daily-btn.done { color: #B9E8A0; }

.big-btn {
  display: block; width: 100%; border: 3px solid var(--wood-edge); cursor: pointer; font-family: inherit;
  background: linear-gradient(180deg, #F5A8BD, var(--pink) 55%, var(--pink-deep));
  box-shadow: 0 6px 0 var(--wood-edge), 0 14px 30px rgba(180, 80, 110, .35);
  color: #4A2318; font-size: clamp(21px, 6vw, 26px); font-weight: 700;
  text-shadow: 0 1px 0 rgba(255, 235, 240, .5);
  padding: 14px 20px; border-radius: 12px;
  transition: transform .1s ease, box-shadow .1s ease;
}
.big-btn:active { transform: translateY(5px); box-shadow: 0 1px 0 var(--wood-edge), 0 6px 14px rgba(180,80,110,.3); }
.big-btn.blue { background: linear-gradient(180deg, #A8C9F0, #8FBBE8 55%, #6FA3DB); color: #1E3450; text-shadow: 0 1px 0 rgba(235,244,255,.5); }
.big-btn:disabled { filter: grayscale(.5) brightness(.95); }

.ghost-btn {
  display: block; width: 100%; border: 3px solid var(--wood-edge); cursor: pointer; font-family: inherit;
  background: linear-gradient(180deg, var(--wood-light), var(--wood));
  color: var(--cream); font-size: 18px; font-weight: 700;
  padding: 12px 20px; border-radius: 10px;
  box-shadow: 0 4px 0 var(--wood-edge);
  transition: transform .1s ease, box-shadow .1s ease;
}
.ghost-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--wood-edge); }
.ghost-btn.danger { color: #F7A8A0; }

/* ============ Game HUD ============ */
.game-topbar { margin-bottom: 6px; }
.hud-stat { display: flex; flex-direction: column; align-items: center; line-height: 1.15; }
.hud-label {
  font-size: 15px; font-weight: 400; color: var(--parch);
  text-shadow: 1px 1px 0 rgba(40, 20, 50, .5);
}
.hud-value {
  font-size: 22px; font-weight: 700; color: var(--cream);
  text-shadow: 2px 2px 0 rgba(40, 20, 50, .55);
}

.chips-row { display: flex; justify-content: center; gap: 12px; margin: 4px 0 10px; }
.chip-cat { width: 24px; height: 24px; }
.fish-ico { width: 22px; height: 22px; transition: filter .5s ease, opacity .5s ease; }
.fish-ico.lost { filter: grayscale(1); opacity: .35; animation: fishLost .55s ease; }
@keyframes fishLost {
  0% { transform: scale(1) rotate(0); }
  40% { transform: scale(1.28) rotate(-14deg); }
  100% { transform: scale(1) rotate(0); }
}
.fishes.shake { animation: shake .4s ease; }

.rules-chip {
  cursor: pointer; font-size: 16px; padding: 7px 13px;
  color: var(--gold); transition: transform .1s;
}
.rules-chip:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--wood-edge); }
.rules-banner {
  display: flex; gap: 8px; justify-content: space-between;
  background: var(--parch); border-radius: 8px; padding: 8px 10px;
  border: 3px solid var(--wood-dark);
  box-shadow: 0 4px 0 var(--wood-edge);
  margin-bottom: 12px;
}
.rules-banner.collapsed { display: none; }
.rule { flex: 1; display: flex; align-items: center; gap: 6px; min-width: 0; }
.rule-svg { width: 42px; height: 32px; flex: none; }
.rule span { font-size: 11.5px; font-weight: 600; line-height: 1.25; color: var(--ink); }

/* ============ Board ============ */
.board-wrap { flex: 1; display: grid; place-items: center; min-height: 0; }
.board-card {
  background: var(--parch); border-radius: 10px; padding: 10px;
  border: 3px solid var(--wood-dark);
  box-shadow: 0 6px 0 var(--wood-edge), 0 18px 40px rgba(20, 10, 30, .35);
  width: 100%; max-width: min(100%, 92vw, 470px);
}
.board {
  display: grid; gap: 3px; width: 100%; aspect-ratio: 1;
  grid-auto-rows: minmax(0, 1fr);
  touch-action: none;
  background: var(--parch-dark); border-radius: 6px;
}
.cell {
  border-radius: 4px; position: relative;
  transition: filter .45s ease, transform .16s cubic-bezier(.33,.8,.44,1);
}
.cell:active { transform: scale(.93); }
.cell.done { filter: brightness(.76) saturate(1.2); }
.cell svg { position: absolute; inset: 13%; width: 74%; height: 74%; pointer-events: none; }
.cell .cx { inset: 27%; width: 46%; height: 46%; stroke: rgba(74, 40, 28, .5); }
.cell.pop svg { animation: popIn .22s cubic-bezier(.31,1.3,.5,1); }
.cell.pop-big svg { animation: popBig .34s cubic-bezier(.34,1.56,.64,1); }
.cell svg.fade-out { animation: artOut .15s ease forwards; }
@keyframes popIn { 0% { transform: scale(.55); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
@keyframes popBig { 0% { transform: scale(.4); opacity: 0; } 62% { transform: scale(1.12); opacity: 1; } 100% { transform: scale(1); } }
@keyframes artOut { to { transform: scale(.5); opacity: 0; } }
.cell.bad { animation: wobble .45s ease; }
@keyframes wobble {
  0%, 100% { transform: none; }
  20% { transform: translateX(-3px) rotate(-1.5deg); }
  40% { transform: translateX(3px) rotate(1.5deg); }
  60% { transform: translateX(-2px) rotate(-1deg); }
  80% { transform: translateX(2px) rotate(.5deg); }
}
.cell.bad::after {
  content: ""; position: absolute; inset: 0; border-radius: 4px;
  box-shadow: inset 0 0 0 2px rgba(209, 75, 75, .55); background: rgba(209, 75, 75, .16);
  animation: fadeout 1.1s forwards;
}
.cell.hinted svg { animation: popBig .38s cubic-bezier(.34,1.56,.64,1); }

/* region palette · dusk-warm */
.c0 { background: #EDD9A8; } .c1 { background: #7FB8D9; }
.c2 { background: #EE8FA8; } .c3 { background: #9BC97E; }
.c4 { background: #A98FD9; } .c5 { background: #EF9A62; }
.c6 { background: #7FCFBC; } .c7 { background: #DB6A5E; }
.c8 { background: #C6A87C; } .c9 { background: #8E9FDE; }

/* ============ Powerups ============ */
.powerups { display: flex; justify-content: center; gap: 30px; padding: 12px 0 4px; }
.power-btn {
  width: 60px; height: 60px; border-radius: 10px;
  border: 3px solid var(--wood-edge); cursor: pointer;
  background: linear-gradient(180deg, var(--wood-light), var(--wood));
  box-shadow: 0 5px 0 var(--wood-edge);
  display: grid; place-items: center; position: relative;
  transition: transform .1s ease, box-shadow .1s ease;
}
.power-btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--wood-edge); }
.power-btn:disabled { filter: grayscale(.8); opacity: .55; }
.power-ico { width: 42px; height: 42px; }
.power-emoji { font-size: 30px; }
.badge {
  position: absolute; top: -8px; right: -8px; min-width: 24px; height: 24px;
  background: var(--pink-deep); color: var(--cream); font-size: 14px; font-weight: 700;
  border: 2px solid var(--wood-edge);
  border-radius: 8px; display: grid; place-items: center; padding: 0 5px;
}

/* ============ Toast ============ */
.toast {
  position: fixed; left: 50%; bottom: calc(var(--sab) + 108px);
  transform: translateX(-50%) translateY(20px);
  background: var(--wood-dark); color: var(--parch);
  border: 2px solid var(--wood-edge);
  font-size: 15px; font-weight: 600; padding: 11px 20px; border-radius: 8px;
  box-shadow: 0 4px 0 var(--wood-edge);
  opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s;
  white-space: nowrap; z-index: 60; max-width: 92vw;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

#confetti { position: fixed; inset: 0; pointer-events: none; z-index: 55; }

/* ============ Overlays & sheets ============ */
.overlay {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(30, 18, 40, .66);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  display: grid; place-items: center; padding: 24px;
  opacity: 0; pointer-events: none; transition: opacity .25s ease;
}
.overlay.show { opacity: 1; pointer-events: auto; }
.sheet, .modal {
  background: var(--parch); border-radius: 12px; padding: 24px 20px;
  border: 4px solid var(--wood-dark);
  width: min(100%, 400px);
  box-shadow: 0 8px 0 var(--wood-edge), 0 34px 80px rgba(15, 8, 25, .5);
  transform: translateY(26px) scale(.96); transition: transform .3s cubic-bezier(.2,.9,.3,1.2);
  max-height: calc(100vh - 80px); overflow-y: auto;
  color: var(--ink);
}
.overlay.show .sheet, .overlay.show .modal { transform: none; }
.sheet { text-align: center; }
.sheet-cat { width: 112px; height: 112px; margin: 0 auto 6px; display: block; }
.sheet-title { font-size: 29px; font-weight: 700; margin-bottom: 6px; color: var(--ink); }
.sheet-score { font-size: 18px; font-weight: 600; color: var(--ink-soft); margin-bottom: 4px; }
.sheet-score b { color: var(--pink-deep); font-size: 25px; }
.sheet-note { font-size: 15px; font-weight: 600; color: var(--ink-soft); margin-bottom: 18px; }
.sheet .big-btn { margin-bottom: 12px; }

/* ============ Modals ============ */
.modal-head { display: flex; align-items: center; justify-content: center; position: relative; margin-bottom: 18px; }
.modal-head h2 { font-size: 25px; font-weight: 700; color: var(--ink); }
.close-btn {
  position: absolute; right: 0; top: 0; border: none; background: none;
  font-size: 21px; font-weight: 700; color: var(--ink-soft); cursor: pointer; padding: 4px 8px;
  font-family: inherit;
}
.profile-top { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.avatar-preview {
  width: 72px; height: 72px; border-radius: 12px; font-size: 42px;
  display: grid; place-items: center; background: #FFE9A8; flex: none; overflow: hidden;
}
.avatar-preview .avatar-img { border-radius: 8px; }
.name-wrap { flex: 1; position: relative; }
#name-input {
  width: 100%; border: 3px solid var(--wood-dark); background: #FDF4DE; border-radius: 8px;
  font-family: inherit; font-size: 20px; font-weight: 700; color: var(--ink);
  padding: 11px 44px 11px 16px; text-align: center; outline: none;
}
.pencil { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: 17px; pointer-events: none; }
.tabs {
  display: flex; background: var(--parch-dark); border-radius: 8px; padding: 4px;
  border: 2px solid var(--wood-dark); margin-bottom: 14px;
}
.tab {
  flex: 1; border: none; background: none; font-family: inherit; cursor: pointer;
  font-size: 17px; font-weight: 700; color: var(--ink-soft); padding: 8px; border-radius: 5px;
}
.tab.active { background: var(--wood); color: var(--parch); }
.tile-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 18px; }
.tile-grid.hidden { display: none; }
.tile {
  aspect-ratio: 1; border-radius: 10px; border: 2px solid var(--wood-dark); cursor: pointer;
  font-size: 32px; display: grid; place-items: center; position: relative;
  transition: transform .12s ease; font-family: inherit; overflow: hidden;
}
.tile:active { transform: scale(.92); }
.tile .avatar-img { border-radius: 7px; }
.tile .check {
  position: absolute; right: -3px; bottom: -3px; width: 24px; height: 24px;
  background: #4F9E5F; border-radius: 7px; color: #fff; font-size: 14px; font-weight: 700;
  border: 2px solid var(--wood-dark);
  display: none; place-items: center;
}
.tile.selected .check { display: grid; }
.tile.locked { filter: grayscale(.7); opacity: .6; }
.tile .lock { position: absolute; font-size: 15px; right: 3px; top: 3px; }

/* frames */
.f0 { border: 3px solid #B39DE6 !important; }
.f1 { border: 3px solid #F5A63B !important; }
.f2 { border: 3px solid #7FB8D9 !important; }
.f3 { border: 3px solid #EE8FA8 !important; }
.f4 { border: 3px solid transparent !important; background:
      linear-gradient(#FFE9A8, #FFE9A8) padding-box,
      linear-gradient(45deg, #F5A63B, #EE8FA8, #7FB8D9, #9BC97E) border-box !important; }
.f5 { border: 3px solid #E8B923 !important; box-shadow: 0 0 12px rgba(232,185,35,.75) !important; }

/* ============ Settings ============ */
.setting-row {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 16px; font-weight: 600; padding: 13px 2px; gap: 12px; color: var(--ink);
}
.switch {
  appearance: none; -webkit-appearance: none; width: 56px; height: 32px; flex: none;
  background: var(--parch-dark); border: 2px solid var(--wood-dark);
  border-radius: 8px; position: relative; cursor: pointer;
  transition: background .2s;
}
.switch::after {
  content: ""; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px;
  background: var(--cream); border: 2px solid var(--wood-dark); border-radius: 5px;
  transition: transform .2s cubic-bezier(.3,1.4,.5,1);
}
.switch:checked { background: var(--pink); }
.switch:checked::after { transform: translateX(24px); }
.modal .ghost-btn { margin-top: 12px; }
.backup-box {
  background: var(--parch-dark); border: 2px solid var(--wood-dark);
  border-radius: 10px; padding: 14px; margin-top: 12px;
}
.backup-title { font-size: 16px; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.backup-code {
  font-family: 'Silkscreen', monospace; font-size: 13px; font-weight: 700;
  color: var(--ink); background: #FDF4DE; border: 2px solid var(--wood-dark);
  border-radius: 6px; padding: 9px 10px; text-align: center;
  user-select: all; -webkit-user-select: all; word-break: break-all;
}
.backup-status { font-size: 12px; font-weight: 600; color: var(--ink-soft); text-align: center; margin-top: 7px; }
.backup-box .ghost-btn { margin-top: 10px; padding: 10px 16px; font-size: 15px; }
.about { text-align: center; font-size: 13px; font-weight: 600; color: var(--ink-soft); margin-top: 20px; line-height: 1.7; }

/* ============ Streak screen ============ */
.streak-body { flex: 1; display: flex; flex-direction: column; align-items: center; padding-top: 4vh; }
.paw-hero {
  width: 140px; height: 140px; background: var(--parch); border-radius: 14px;
  border: 4px solid var(--wood-dark);
  display: grid; place-items: center; box-shadow: 0 6px 0 var(--wood-edge); margin-bottom: 4.5vh;
}
.paw-hero-svg { width: 88px; height: 88px; fill: var(--pink); }
.streak-num {
  font-size: 80px; font-weight: 700; color: var(--gold); line-height: 1;
  text-shadow: 3px 3px 0 rgba(40, 20, 50, .55);
}
.streak-label {
  font-size: 26px; font-weight: 700; color: var(--gold); margin: 2px 0 14px;
  text-shadow: 2px 2px 0 rgba(40, 20, 50, .55);
}
.best-pill {
  background: linear-gradient(180deg, var(--wood-light), var(--wood));
  border: 3px solid var(--wood-edge);
  border-radius: 8px; padding: 9px 22px;
  font-size: 17px; font-weight: 700; color: var(--cream);
  box-shadow: 0 3px 0 var(--wood-edge);
  margin-bottom: 4.5vh;
}
.week-row { display: flex; gap: 8px; width: 100%; justify-content: space-between; padding: 0 4px; }
.day { display: flex; flex-direction: column; align-items: center; gap: 8px; flex: 1; }
.day-name {
  font-size: 12px; font-weight: 700; color: var(--cream); letter-spacing: .04em;
  text-shadow: 1px 1px 0 rgba(40, 20, 50, .5);
}
.day-dot {
  width: min(11vw, 44px); height: min(11vw, 44px); border-radius: 10px;
  background: rgba(46, 28, 18, .5); border: 2px solid rgba(42, 24, 16, .7);
  display: grid; place-items: center; font-size: 21px;
}
.day-dot svg { width: 62%; height: 62%; fill: var(--cream); }
.day.today .day-dot { box-shadow: 0 0 0 3px var(--gold); }
.day.done .day-dot { background: var(--pink-deep); border-color: var(--wood-edge); }
.streak-hint {
  margin-top: 4.5vh; text-align: center; font-size: 14px; font-weight: 600;
  color: var(--parch); line-height: 1.7;
  text-shadow: 1px 1px 0 rgba(40, 20, 50, .5);
}

/* ============ Numbers: Silkscreen for unambiguous pixel digits ============ */
.hud-value, .chip b, .badge, .streak-num, .best-pill b,
.sheet-score b, .sheet-note b, .daily-sub, .num {
  font-family: 'Silkscreen', 'Pixelify Sans', monospace;
  font-weight: 700;
}
.hud-value { font-size: 19px; }
.chip b { font-size: 14px; }
.streak-num { font-size: 64px; }
.daily-sub { font-weight: 400; }
.big-btn .num { font-size: .92em; }

/* ============ Animations ============ */
@keyframes pop { 0% { transform: scale(.2); } 60% { transform: scale(1.18); } 100% { transform: scale(1); } }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-3px); } 40% { transform: translateX(3px); }
  60% { transform: translateX(-2px); } 80% { transform: translateX(2px); }
}
@keyframes fadeout { 0%, 60% { opacity: 1; } 100% { opacity: 0; } }
.bounce { animation: bounce 1.6s ease infinite; }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.wiggle { animation: wiggle 2.4s ease infinite; }
@keyframes wiggle { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-4deg); } 75% { transform: rotate(4deg); } }
