:root {
  --paper: #f6eee3;
  --card: #fffaf3;
  --ink: #1b1411;
  --muted: #8a7e73;
  --line: rgba(27, 20, 17, 0.12);
  --cherry: #d62839;
  --blush: #f6c6cf;
  --butter: #f3d67a;
  --wa: #25d366;
  --display: 'Fraunces', 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, sans-serif;
  --hand: 'Caveat', 'Bradley Hand', cursive;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --pop: cubic-bezier(0.2, 1.5, 0.4, 1);
}

body.boss {
  --paper: #150e0e;
  --card: #221616;
  --ink: #f7ede4;
  --muted: #a89287;
  --line: rgba(247, 237, 228, 0.14);
  --cherry: #ff4d5e;
  --blush: #4a1f25;
  --butter: #ff8a3d;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
html { scroll-padding-bottom: 120px; background: var(--paper); overflow-x: clip; }
body.boss { background: var(--paper); }

body {
  min-height: 100dvh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
  transition: background-color 0.8s var(--ease), color 0.8s var(--ease);
  overflow-x: clip;
}

/* paper grain */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.35;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.4 0 0 0 0 0.3 0 0 0 0 0.2 0 0 0 .35 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
body.boss::before { mix-blend-mode: screen; opacity: 0.12; }

#app { position: relative; z-index: 1; }
button { font: inherit; color: inherit; }
sup { font-size: 0.55em; color: var(--cherry); }

.wrap {
  max-width: 560px;
  margin: 0 auto;
  padding: 18px 20px calc(130px + env(safe-area-inset-bottom));
}

.fx { position: fixed; inset: 0; z-index: 50; width: 100%; height: 100%; pointer-events: none; }

/* ---------- shared type ---------- */

.kicker {
  margin: 0;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.hand {
  font-family: var(--hand);
  font-weight: 700;
  color: var(--cherry);
  line-height: 1.1;
}
.fineprint {
  margin: 26px 0 0;
  font-size: 11px;
  line-height: 1.55;
  color: var(--muted);
}

/* ---------- ticker ---------- */

.ticker {
  position: relative;
  z-index: 2;
  overflow: hidden;
  padding-top: env(safe-area-inset-top);
  background: #1b1411;
  color: #f6eee3;
  border-bottom: 3px solid var(--cherry);
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: marquee 28s linear infinite;
}
.ticker span {
  padding: 9px 0;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}
.ticker span::after { content: '✦'; margin: 0 16px; color: var(--cherry); }
.ticker .live::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--cherry);
  vertical-align: 1px;
  animation: blink 1.2s infinite;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 24px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: var(--card);
  box-shadow: 0 4px 0 var(--ink);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.12s, box-shadow 0.12s, background 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(4px); box-shadow: 0 0 0 var(--ink); }
.btn:focus-visible, .option:focus-visible, .sentence-item:focus-visible { outline: 3px solid var(--cherry); outline-offset: 3px; }
.btn.block { width: 100%; }
.btn.ink { background: var(--ink); color: var(--paper); }
.btn.cherry { background: var(--cherry); color: #fff; }
.btn .arrow { transition: transform 0.2s; }
.btn:hover .arrow { transform: translateX(4px); }
.actions { display: grid; gap: 14px; margin-top: 30px; }

.linkish {
  display: block;
  margin: 44px auto 0;
  padding: 8px;
  border: 0;
  background: none;
  font-size: 12px;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

/* ---------- intro / cover ---------- */

.cover-top .kicker { font-size: 10px; letter-spacing: 0.1em; }
.cover-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 2px solid var(--ink);
}
.cover-title { position: relative; margin-top: 26px; }
.cover-pre {
  margin: 0;
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(40px, 11vw, 56px);
  line-height: 1;
  font-variation-settings: 'SOFT' 100, 'WONK' 1;
}
.cover-name {
  margin: 0 0 0 -6px;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(170px, 54vw, 280px);
  line-height: 0.82;
  letter-spacing: -0.05em;
  color: var(--cherry);
  font-variation-settings: 'SOFT' 100, 'WONK' 1, 'opsz' 144;
  text-shadow: 7px 7px 0 var(--blush);
  animation: rise 0.8s var(--ease) both;
}

.seal {
  position: absolute;
  top: 8px;
  right: 0;
  width: 124px;
  height: 124px;
  border-radius: 50%;
  background: var(--butter);
  border: 1.5px solid var(--ink);
  box-shadow: 0 4px 0 var(--ink);
  display: grid;
  place-items: center;
  transform: rotate(12deg);
}
.seal svg { position: absolute; inset: 0; animation: spin 16s linear infinite; }
.seal text { font-family: var(--mono); font-size: 9.5px; font-weight: 600; fill: var(--ink); }
.seal b {
  font-family: var(--display);
  font-size: 30px;
  line-height: 1;
  font-style: italic;
  text-align: center;
}
.seal b small { display: block; font-family: var(--mono); font-style: normal; font-size: 8px; letter-spacing: 0.1em; }

.cover-lede {
  margin: 22px 0 0;
  font-family: var(--display);
  font-size: 23px;
  line-height: 1.28;
  font-variation-settings: 'SOFT' 50;
}
.cover-lede em { color: var(--cherry); }
.cover-scribble {
  margin: 10px 0 0;
  font-size: 27px;
  transform: rotate(-2deg);
  transform-origin: left;
}
.cover-scribble svg { width: 46px; height: 26px; vertical-align: -6px; margin-left: 4px; }

.stickers {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}
.stickers li {
  padding: 9px 15px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: var(--card);
  font-size: 14px;
  font-weight: 600;
  animation: pop 0.5s var(--pop) both;
}
.stickers li:nth-child(1) { transform: rotate(-2deg); animation-delay: 0.3s; }
.stickers li:nth-child(2) { transform: rotate(1.5deg); background: var(--blush); animation-delay: 0.4s; }
.stickers li:nth-child(3) { transform: rotate(-1deg); animation-delay: 0.5s; }
.stickers li:nth-child(4) { transform: rotate(2deg); background: var(--butter); animation-delay: 0.6s; }
.stickers li:nth-child(5) { transform: rotate(-1.5deg); background: var(--ink); color: var(--paper); animation-delay: 0.7s; }

/* ---------- masthead ---------- */

.masthead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.brand { line-height: 0.9; }
.brand-pre {
  display: block;
  font-family: var(--display);
  font-style: italic;
  font-size: 20px;
  font-variation-settings: 'SOFT' 100, 'WONK' 1;
}
.brand-name {
  font-family: var(--display);
  font-weight: 900;
  font-size: 52px;
  letter-spacing: -0.04em;
  color: var(--cherry);
  font-variation-settings: 'SOFT' 100, 'WONK' 1;
  text-shadow: 3px 3px 0 var(--blush);
}

.tally {
  position: relative;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: var(--blush);
  border: 1.5px solid var(--ink);
  box-shadow: 0 4px 0 var(--ink);
  transform: rotate(-8deg);
  text-align: center;
}
.tally::before {
  content: '';
  position: absolute;
  inset: 5px;
  border: 1.5px dashed var(--ink);
  border-radius: 50%;
  opacity: 0.35;
}
.tally-num {
  display: block;
  font-family: var(--display);
  font-weight: 800;
  font-size: 38px;
  line-height: 0.9;
  color: var(--cherry);
  font-variation-settings: 'SOFT' 100;
}
.tally-label {
  display: block;
  margin-top: 2px;
  font-family: var(--mono);
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.tally.bump { animation: bump 0.55s var(--pop); }

.track {
  display: flex;
  align-items: center;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}
.track li {
  position: relative;
  flex: 1;
  display: flex;
  justify-content: center;
}
.track li::before {
  content: '';
  position: absolute;
  top: 50%;
  right: 50%;
  width: 100%;
  height: 1.5px;
  background: var(--line);
}
.track li:first-child::before { display: none; }
.track li.done::before, .track li.current::before { background: var(--ink); }
.track span {
  position: relative;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  background: var(--paper);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  color: var(--muted);
  transition: all 0.3s;
}
.track li.done span { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.track li.current span {
  width: 30px;
  height: 30px;
  background: var(--cherry);
  border-color: var(--ink);
  color: #fff;
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--cherry) 22%, transparent);
  animation: pulse 1.8s infinite;
}
.track li.boss span { font-size: 14px; border-style: dashed; border-color: var(--cherry); }
.track li.boss.current span { font-size: 16px; border-style: solid; }

.inventory {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 18px;
  border: 1.5px solid var(--line);
  border-radius: 16px;
}
.chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 4px 7px;
  text-align: center;
  border-left: 1.5px solid var(--line);
  transition: background 0.3s;
}
.chip:first-child { border-left: 0; border-radius: 14px 0 0 14px; }
.chip:last-child { border-radius: 0 14px 14px 0; }
.chip b { font-size: 16px; font-weight: 700; line-height: 1.3; white-space: nowrap; }
.chip small {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.chip.hot { background: color-mix(in srgb, var(--cherry) 12%, transparent); }
.chip.hot small { color: var(--cherry); }

/* ---------- screens ---------- */

.screen { padding-top: 28px; animation: rise 0.55s var(--ease); }

/* ---------- question ---------- */

.qcard {
  position: relative;
  padding: 22px 22px 26px;
  border: 1.5px solid var(--ink);
  border-radius: 22px;
  background: var(--card);
  box-shadow: 0 6px 0 var(--ink);
  transform: rotate(-0.8deg);
}
.qcard-head { display: flex; justify-content: space-between; align-items: flex-start; }
.tag {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--blush);
  font-size: 13px;
  font-weight: 600;
}
.qnum {
  margin: -8px -4px 0 0;
  font-family: var(--display);
  font-weight: 900;
  font-size: 58px;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--ink);
  font-variation-settings: 'SOFT' 100;
  opacity: 0.8;
}
.prompt {
  margin: 12px 0 0;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(28px, 7.6vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  font-variation-settings: 'SOFT' 60, 'opsz' 72;
  text-wrap: balance;
}
.aside {
  position: absolute;
  right: 18px;
  bottom: -40px;
  margin: 0;
  font-size: 24px;
  transform: rotate(-4deg);
}
.aside svg { width: 34px; height: 30px; vertical-align: -2px; margin-right: 2px; }

.options {
  display: grid;
  gap: 12px;
  margin: 58px 0 0;
  padding: 0;
  list-style: none;
}
.option {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px 18px 14px 14px;
  border: 1.5px solid var(--ink);
  border-radius: 18px;
  background: var(--card);
  box-shadow: 0 4px 0 var(--ink);
  text-align: left;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.3;
  cursor: pointer;
  transition: transform 0.12s, box-shadow 0.12s, background 0.2s;
  -webkit-tap-highlight-color: transparent;
  animation: rise 0.45s var(--ease) both;
}
.options li:nth-child(1) .option { animation-delay: 0.1s; }
.options li:nth-child(2) .option { animation-delay: 0.16s; }
.options li:nth-child(3) .option { animation-delay: 0.22s; }
.options li:nth-child(4) .option { animation-delay: 0.28s; }
.option:hover { background: color-mix(in srgb, var(--blush) 45%, var(--card)); }
.option:active { transform: translateY(4px); box-shadow: 0 0 0 var(--ink); background: var(--blush); }
.option .letter {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  background: var(--butter);
  font-family: var(--display);
  font-style: italic;
  font-weight: 700;
  font-size: 18px;
  color: #1b1411;
}
.option[disabled] {
  opacity: 0.3;
  box-shadow: none;
  transform: none;
  pointer-events: none;
  cursor: default;
}
.option[disabled] .opt-text { text-decoration: line-through; text-decoration-color: var(--cherry); text-decoration-thickness: 2px; }

.advantage {
  margin-top: 22px;
  border-style: dashed;
  background: var(--butter);
  color: #1b1411;
  animation: wiggle 2.4s ease-in-out infinite;
}

.boss-card {
  position: relative;
  margin: 0 0 22px;
  padding: 18px 18px 18px 74px;
  border: 1.5px solid var(--cherry);
  border-radius: 18px;
  background: radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--cherry) 28%, transparent), transparent 60%);
  font-size: 14px;
  color: var(--muted);
  animation: glow 2.2s ease-in-out infinite;
}
.boss-card .boss-emoji { position: absolute; left: 16px; top: 14px; font-size: 42px; line-height: 1; animation: float 3s ease-in-out infinite; }
.boss-card strong {
  display: block;
  font-family: var(--display);
  font-size: 26px;
  font-weight: 800;
  font-style: italic;
  line-height: 1.1;
  color: var(--cherry);
  font-variation-settings: 'SOFT' 100, 'WONK' 1;
}

/* ---------- reveal ---------- */

.verdict-wrap { display: flex; align-items: flex-end; gap: 10px; }
.verdict {
  margin: 0;
  font-family: var(--display);
  font-style: italic;
  font-weight: 800;
  font-size: clamp(78px, 24vw, 128px);
  line-height: 0.85;
  letter-spacing: -0.04em;
  font-variation-settings: 'SOFT' 100, 'WONK' 1;
  animation: slam 0.6s var(--pop) both;
}
.verdict.good { color: var(--ink); text-shadow: 5px 5px 0 var(--butter); }
.verdict.bad { color: var(--cherry); text-shadow: 5px 5px 0 var(--blush); }
.verdict-emoji { font-size: 54px; line-height: 1; margin-bottom: 8px; animation: pop 0.6s var(--pop) 0.25s both; }

.answer-line { margin: 22px 0 0; font-size: 15px; color: var(--muted); }
.answer-line strong { color: var(--ink); }
.note { margin: 8px 0 0; font-size: 27px; transform: rotate(-1.5deg); transform-origin: left; }

.shake { animation: shake 0.5s both; }

.receipt {
  position: relative;
  margin: 34px 4px 0;
  padding: 20px 18px 26px;
  background: var(--card);
  border: 1.5px solid var(--ink);
  border-bottom: 0;
  font-family: var(--mono);
  font-size: 13px;
  transform: rotate(0.6deg);
  filter: drop-shadow(0 6px 0 var(--ink));
}
.receipt::after {
  content: '';
  position: absolute;
  left: -1.5px;
  right: -1.5px;
  bottom: -12px;
  height: 12px;
  background:
    linear-gradient(135deg, var(--card) 6px, transparent 0) 0 0 / 12px 12px repeat-x,
    linear-gradient(225deg, var(--card) 6px, transparent 0) 0 0 / 12px 12px repeat-x;
}
.receipt-head { text-align: center; padding-bottom: 14px; border-bottom: 1.5px dashed var(--line); }
.receipt-head h3 { margin: 0; font-size: 15px; font-weight: 600; letter-spacing: 0.2em; }
.receipt-head p { margin: 4px 0 0; font-size: 11px; color: var(--muted); letter-spacing: 0.08em; }

.entry {
  display: grid;
  grid-template-columns: 26px 1fr auto;
  gap: 10px;
  align-items: start;
  padding: 14px 0;
  border-bottom: 1.5px dashed var(--line);
}
.entry-icon { font-size: 17px; line-height: 1.3; text-align: center; font-family: var(--sans); }
.entry-title { margin: 0; font-weight: 600; font-size: 13.5px; line-height: 1.35; }
.entry-fine { margin: 3px 0 0; font-size: 11.5px; color: var(--muted); line-height: 1.4; }
.entry.trap .entry-fine::before { content: '* '; color: var(--cherry); font-weight: 600; }
.entry-amt { font-weight: 600; font-size: 15px; white-space: nowrap; }
.entry-amt.plus { color: var(--cherry); }
.entry-amt.minus { color: #2f8f5b; }
.entry-amt.zero { font-size: 10.5px; letter-spacing: 0.1em; padding: 3px 7px; border-radius: 4px; background: var(--butter); color: #1b1411; }
.entry.trap .entry-amt.plus {
  display: inline-block;
  padding: 3px 8px;
  border: 2px solid var(--cherry);
  border-radius: 4px;
  font-size: 16px;
  transform: rotate(-8deg);
}

.receipt-total {
  display: flex;
  justify-content: space-between;
  padding-top: 14px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.06em;
}
.receipt-total span:last-child { color: var(--cherry); font-size: 18px; }
.receipt-foot { margin: 14px 0 0; text-align: center; font-size: 11px; color: var(--muted); letter-spacing: 0.06em; }

.coupon {
  position: relative;
  margin-top: 40px;
  padding: 24px 20px 20px;
  border: 2px dashed var(--ink);
  border-radius: 20px;
  background: var(--blush);
  color: #1b1411;
  transform: rotate(-0.8deg);
}
body.boss .coupon { color: var(--ink); }
.coupon .scissors { position: absolute; top: -15px; left: 22px; padding: 0 6px; background: var(--paper); font-size: 20px; }
.coupon-title {
  margin: 6px 0 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: 26px;
  line-height: 1.12;
  font-variation-settings: 'SOFT' 100;
}
.coupon-sub { margin: 6px 0 0; font-size: 22px; }
.coupon .actions { margin-top: 18px; }

/* ---------- final ---------- */

.final { text-align: center; }
.final-title {
  margin: 12px 0 0;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(36px, 10vw, 50px);
  line-height: 1.05;
  font-variation-settings: 'SOFT' 100;
}
.final-title em { font-weight: 800; color: var(--cherry); font-variation-settings: 'SOFT' 100, 'WONK' 1; }

.bignum-wrap {
  position: relative;
  display: grid;
  place-items: center;
  width: min(320px, 84vw);
  aspect-ratio: 1;
  margin: 10px auto 0;
}
.bignum-wrap .ring { position: absolute; inset: 0; animation: spin 24s linear infinite; }
.bignum-wrap .ring text { font-family: var(--mono); font-size: 17px; font-weight: 600; letter-spacing: 0.1em; fill: var(--ink); }
.bignum-wrap::before {
  content: '';
  position: absolute;
  inset: 16%;
  border-radius: 50%;
  background: var(--blush);
  border: 1.5px solid var(--ink);
  box-shadow: 0 6px 0 var(--ink);
}
.bignum {
  position: relative;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(110px, 34vw, 160px);
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--cherry);
  font-variation-settings: 'SOFT' 100, 'WONK' 1, 'opsz' 144;
}
.stamp {
  position: absolute;
  right: 2%;
  bottom: 12%;
  padding: 5px 12px;
  border: 2.5px solid var(--cherry);
  border-radius: 6px;
  background: var(--paper);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--cherry);
  transform: rotate(-14deg);
}
.stamp.anim { opacity: 0; animation: stampIn 0.5s var(--pop) 2s forwards; }
.final .lede {
  max-width: 28ch;
  margin: 18px auto 0;
  font-family: var(--display);
  font-size: 21px;
  line-height: 1.3;
}
.final .receipt { text-align: left; margin-top: 40px; }
.final .entry { grid-template-columns: 1fr auto; }

.certificate {
  position: relative;
  margin-top: 58px;
  padding: 30px 20px 22px;
  border: 1.5px solid var(--ink);
  border-radius: 6px;
  outline: 1.5px solid var(--ink);
  outline-offset: -8px;
  background: var(--card);
  text-align: left;
}
.certificate-seal {
  position: absolute;
  top: -26px;
  right: 18px;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--cherry);
  border: 1.5px solid var(--ink);
  font-size: 26px;
  transform: rotate(10deg);
}
.certificate h3 {
  margin: 8px 0 0;
  font-family: var(--display);
  font-weight: 800;
  font-style: italic;
  font-size: 38px;
  line-height: 1;
  font-variation-settings: 'SOFT' 100, 'WONK' 1;
}
.certificate .hand { margin: 6px 0 0; font-size: 23px; }
.sentence { margin: 18px 0 0; padding: 0; list-style: none; border-top: 1.5px dashed var(--line); }
.sentence-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 13px 2px;
  border: 0;
  border-bottom: 1.5px dashed var(--line);
  background: none;
  text-align: left;
  font-size: 15px;
  line-height: 1.35;
  cursor: pointer;
}
.sentence-item .box {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1.5px solid var(--ink);
  border-radius: 8px;
  font-size: 14px;
  color: transparent;
  transition: all 0.2s var(--pop);
}
.sentence-item.served .box { background: var(--cherry); border-color: var(--cherry); color: #fff; transform: rotate(-8deg); }
.sentence-item.served .txt { text-decoration: line-through; text-decoration-color: var(--cherry); text-decoration-thickness: 2px; color: var(--muted); }
.sentence-item .again { margin-left: auto; font-family: var(--hand); font-size: 20px; color: var(--cherry); white-space: nowrap; }
.served-count { margin: 16px 0 0; display: flex; justify-content: space-between; align-items: center; }
.served-bar { flex: 1; height: 8px; margin-left: 14px; border-radius: 99px; background: var(--line); overflow: hidden; }
.served-bar i { display: block; height: 100%; background: var(--cherry); transition: width 0.4s var(--ease); }

/* ---------- dock ---------- */

.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  padding: 26px 20px calc(14px + env(safe-area-inset-bottom));
  background: linear-gradient(to bottom, transparent, var(--paper) 45%);
  pointer-events: none;
}
.dock-inner { display: flex; gap: 10px; max-width: 520px; margin: 0 auto; pointer-events: auto; }
.dock .btn.wa { flex: 1; background: var(--wa); color: #0b2b16; border-color: #1b1411; box-shadow: 0 4px 0 #1b1411; }
.dock .btn.icon { width: 56px; padding: 0; flex: 0 0 auto; }
.dock svg { flex: 0 0 auto; }

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(100px + env(safe-area-inset-bottom));
  z-index: 60;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 14px;
  font-weight: 600;
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s var(--pop);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- motion ---------- */

.anim { opacity: 0; animation: riseIn 0.5s var(--ease) var(--d, 0s) forwards; }
.anim .late { opacity: 0; animation: fade 0.3s ease calc(var(--d, 0s) + 0.75s) forwards; }
.anim .entry-amt.late { animation: stamp 0.45s var(--pop) calc(var(--d, 0s) + 0.75s) forwards; }

@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes riseIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: scale(0.4) rotate(-10deg); } }
@keyframes slam { from { opacity: 0; transform: scale(1.6) rotate(-6deg); } }
@keyframes stamp { from { opacity: 0; transform: scale(2.2) rotate(-20deg); } to { opacity: 1; transform: rotate(-8deg); } }
@keyframes stampIn { from { opacity: 0; transform: scale(2.4) rotate(-30deg); } to { opacity: 1; transform: rotate(-14deg); } }
@keyframes bump { 40% { transform: rotate(-8deg) scale(1.25); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes blink { 50% { opacity: 0.2; } }
@keyframes pulse { 50% { box-shadow: 0 0 0 9px color-mix(in srgb, var(--cherry) 10%, transparent); } }
@keyframes wiggle { 0%, 88%, 100% { transform: rotate(0); } 92% { transform: rotate(-1.5deg); } 96% { transform: rotate(1.5deg); } }
@keyframes float { 50% { transform: translateY(-5px) rotate(4deg); } }
@keyframes glow { 50% { box-shadow: 0 0 34px -6px var(--cherry); } }
@keyframes shake {
  15%, 55% { transform: translateX(-9px) rotate(-0.5deg); }
  35%, 75% { transform: translateX(9px) rotate(0.5deg); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .anim, .anim .late, .stamp.anim { opacity: 1; }
}
