/* base.css — design tokens, animated background, responsive shell, and the
   shared UI primitives every view reuses. Restyled to match bfftest.fun:
   violet→cyan gradient, chunky white rounded headings, rainbow name chips,
   3D pill buttons, soft white cards, How-It-Works cards, option/add pills,
   leaderboard table, counter. View-specific looks still live in
   create.css / take.css / result.css / leaderboard.css. */

:root {
  /* brand hues (names preserved) */
  --pink: #ff4fa3;
  --tangerine: #ff9e2c;
  --lilac: #a97bff;
  --mint: #2fd7a8;
  --sky: #4bc4ff;
  --cream: #ffffff;
  --ink: #3a1d4e;
  --ink-soft: #7a5b90;
  --bead1: #ff5ea8;
  --bead2: #ffb03a;
  --bead3: #9b7bff;
  --bead4: #35d6a6;
  --bead5: #4bc4ff;

  /* new accents used by the refreshed system */
  --violet: #b98ded;
  --cyan: #a9ece4;
  --grape: #7c3aed;   /* leaderboard score / strong purple accent */

  --display: 'Fredoka', 'Baloo 2', 'Trebuchet MS', system-ui, sans-serif; /* Fredoka tops out at 700 */
  --body: 'Nunito', 'Segoe UI', system-ui, -apple-system, sans-serif;

  --card-radius: 22px;
  --btn-radius: 28px;
  --shadow: 0 14px 34px -14px rgba(74, 34, 120, 0.42), 0 4px 12px -6px rgba(74, 34, 120, 0.18);

  /* ---- Layout tokens (widen at the breakpoints below) ----
     --content-max : width of the outer shell (.wrap) — the strip the app lives in.
     --card-max    : comfortable readable width for a single card, centered in the shell.
     --card-pad    : responsive interior padding for cards. */
  --content-max: 600px;
  --card-max: 600px;
  --card-pad: clamp(22px, 5.5vw, 32px);
}

* { box-sizing: border-box; }

img, video { max-width: 100%; height: auto; }

html { height: 100%; overflow-y: scroll; }   /* stable scrollbar prevents gradient twitch */

body {
  height: 100%;
  margin: 0;
  font-family: var(--body);
  font-weight: 600;
  color: var(--ink);
  /* violet → purple → cyan diagonal, gently animated */
  background: linear-gradient(145deg, #d3a4f2 0%, #bd8bef 28%, #a889f2 48%, #9bb6f0 72%, #a9ece4 100%);
  background-size: 300% 300%;
  background-attachment: fixed;
  animation: candy 24s ease infinite;
  -webkit-text-size-adjust: 100%;
}
@keyframes candy {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* floating sticker doodles in the background (faint, like the reference) */
.doodles { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.doodle { position: absolute; font-size: 2.6rem; opacity: 0.18; animation: bob 7s ease-in-out infinite; filter: drop-shadow(0 4px 6px rgba(58,29,78,.12)); }
/* JS gives each doodle its own duration/delay inline, so they drift out of unison */
@keyframes bob {
  0%   { transform: translate(0, 0) rotate(-8deg) scale(1); }
  25%  { transform: translate(7px, -12px) rotate(5deg) scale(1.05); }
  50%  { transform: translate(-5px, -20px) rotate(10deg) scale(1); }
  75%  { transform: translate(-9px, -9px) rotate(-4deg) scale(.96); }
  100% { transform: translate(0, 0) rotate(-8deg) scale(1); }
}

.wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: clamp(20px, 4vw, 40px) clamp(16px, 5vw, 44px) clamp(64px, 8vw, 96px);
  display: flex;
  flex-direction: column;
  min-height: 100vh;      /* fallback */
  min-height: 100dvh;     /* avoids mobile chrome scroll/jump */
}
/* Auto block margins center #app when content is short, and collapse to 0
   (normal top-flow, no clipping) when content is taller than the viewport.
   .foot has no auto margin, so it naturally settles at the bottom. */
#app { width: 100%; margin-block: auto; }

/* ---- Bracelet: legacy signature element (kept working; views may omit it) ---- */
.bracelet { display: flex; align-items: center; justify-content: center; gap: 5px; margin: 6px auto 22px; max-width: var(--card-max); min-height: 34px; flex-wrap: wrap; }
.bracelet .knot { font-size: 1.1rem; opacity: .85; }
.bead {
  width: 26px; height: 26px; border-radius: 50%;
  background: #fff;
  border: 3px solid rgba(58,29,78,0.15);
  box-shadow: inset 0 -4px 6px rgba(0,0,0,0.12), inset 0 3px 5px rgba(255,255,255,0.85);
  position: relative; transition: transform .25s cubic-bezier(.34,1.7,.5,1), background .25s;
  display: grid; place-items: center;
  font-size: .7rem; font-weight: 700; color: rgba(255,255,255,.95); font-family: var(--display);
}
.bead.filled { transform: scale(1.14); border-color: rgba(255,255,255,.6); }
.bead.b0 { background: var(--bead1); } .bead.b1 { background: var(--bead2); }
.bead.b2 { background: var(--bead3); } .bead.b3 { background: var(--bead4); }
.bead.b4 { background: var(--bead5); }
.bead.pop { animation: beadpop .45s cubic-bezier(.34,1.8,.5,1); }
@keyframes beadpop { 0% { transform: scale(.4);} 60% { transform: scale(1.35);} 100% { transform: scale(1.14);} }

/* ---- Card: white, soft shadow, roomy ---- */
.card {
  background: var(--cream);
  border-radius: var(--card-radius);
  padding: var(--card-pad);
  max-width: var(--card-max);
  margin-inline: auto;
  box-shadow: var(--shadow);
  border: 1px solid rgba(120,60,160,.05);
  animation: pop-in .45s cubic-bezier(.2,1.1,.4,1) both;
}
.card + .card { margin-top: clamp(16px, 3vw, 26px); }
@keyframes pop-in { from { opacity: 0; transform: translateY(18px) scale(.96); } to { opacity: 1; transform: none; } }

.eyebrow { font-family: var(--display); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: .72rem; color: var(--pink); display: inline-block; background: #ffe4f1; padding: 6px 12px; border-radius: 999px; }

/* ---- Headings: chunky rounded white on the gradient; dark inside cards ---- */
h1 {
  font-family: var(--display); font-weight: 700; line-height: 1.04;
  margin: 14px 0 8px; font-size: clamp(2.3rem, 7.5vw, 3.7rem); letter-spacing: -.005em;
  color: #fff;
  text-shadow: 0 2px 0 rgba(150,80,205,.28), 0 10px 24px rgba(88,38,140,.36);
}
h1 .stroke { color: #fff; }  /* legacy accent span — now uniform white to match hero */
h2 {
  font-family: var(--display); font-weight: 700; font-size: clamp(1.45rem, 5.6vw, 2rem);
  margin: 0 0 6px; line-height: 1.12; color: #fff;
  text-shadow: 0 2px 0 rgba(150,80,205,.24), 0 8px 18px rgba(88,38,140,.3);
}
.card h1, .card h2 { color: var(--ink); text-shadow: none; }

.sub { color: rgba(255,255,255,.94); font-size: clamp(1rem, 2.2vw, 1.14rem); line-height: 1.5; margin: 6px 0 22px; font-weight: 600; max-width: 62ch; text-shadow: 0 1px 8px rgba(80,30,120,.18); }
.card .sub { color: var(--ink-soft); text-shadow: none; }

/* In centered cards, keep headline + copy as a tidy centered column even when
   the card grows wide on laptop, instead of stretching edge to edge. */
.center h1, .center h2, .center .sub { margin-inline: auto; }
.center h1 { max-width: 20ch; }
.center .sub { max-width: 52ch; }

/* ---- Name chip: rainbow pill highlighting a person's name inline ---- */
.name-chip {
  display: inline-block;
  background: linear-gradient(90deg, #ff9e2c 0%, #ff4fa3 42%, #a97bff 72%, #4bc4ff 100%);
  color: #fff; -webkit-text-fill-color: #fff;
  font-family: var(--display); font-weight: 700;
  padding: .04em .42em; border-radius: 12px;
  box-shadow: 0 5px 14px -4px rgba(120,40,150,.5);
  text-shadow: none; white-space: nowrap;
}

/* ---- Buttons: big rounded pills, 3D block-shadow + soft glow ---- */
.btn {
  -webkit-appearance: none; appearance: none; cursor: pointer;
  font-family: var(--display); font-weight: 700; font-size: 1.18rem;
  text-transform: uppercase; letter-spacing: .035em;
  color: #fff; border: none; border-radius: var(--btn-radius);
  padding: 17px 24px; width: 100%; max-width: 420px; margin-inline: auto;
  /* HOT (primary): red → orange */
  background: linear-gradient(95deg, #f5455f 0%, #ff6a3d 55%, #ff9d2b 100%);
  box-shadow: 0 8px 0 #c9354c, 0 18px 30px -10px rgba(245,80,80,.6);
  transition: transform .09s ease, box-shadow .09s ease, filter .15s;
  display: flex; align-items: center; justify-content: center; gap: 10px;
}
.btn:hover { filter: brightness(1.05); }
.btn:active { transform: translateY(8px); box-shadow: 0 1px 0 #c9354c, 0 6px 14px -8px rgba(245,80,80,.6); }

/* GREEN variant (e.g. GET STARTED) */
.btn.mint { background: linear-gradient(180deg, #35d69a 0%, #17a86c 100%); box-shadow: 0 8px 0 #0f8a55, 0 18px 30px -10px rgba(23,168,108,.55); }
.btn.mint:active { box-shadow: 0 1px 0 #0f8a55, 0 6px 14px -8px rgba(23,168,108,.55); }

/* PURPLE variant */
.btn.alt { background: linear-gradient(180deg, #b98cff 0%, #8f5fe8 100%); box-shadow: 0 8px 0 #6f3fd6, 0 18px 30px -10px rgba(123,82,214,.55); }
.btn.alt:active { box-shadow: 0 1px 0 #6f3fd6, 0 6px 14px -8px rgba(123,82,214,.55); }

/* GHOST variant: white with ink label */
.btn.ghost { background: #fff; color: var(--ink); text-shadow: none; box-shadow: 0 8px 0 #e6dcf0, 0 16px 26px -12px rgba(90,50,140,.35), inset 0 0 0 2px #f0e6f8; }
.btn.ghost:active { box-shadow: 0 1px 0 #e6dcf0, 0 6px 12px -8px rgba(90,50,140,.3), inset 0 0 0 2px #f0e6f8; }

.btn.small { font-size: 1rem; padding: 13px 18px; }
.btn-row { display: flex; gap: 12px; margin-top: 14px; }
.btn-row .btn { width: 100%; max-width: none; margin-inline: 0; }

/* ---- Input + counter ---- */
.field { display: block; width: 100%; max-width: 480px; margin-inline: auto;
  font-family: var(--display); font-weight: 700; font-size: 1.25rem; color: var(--ink);
  padding: 16px 18px; border-radius: 16px; border: 2px solid #ecdcf5; background: #fff; outline: none;
  transition: border-color .15s, box-shadow .15s; }
.field::placeholder { color: #c8b2da; }
.field:focus { border-color: var(--pink); box-shadow: 0 0 0 4px rgba(255,79,163,.16); }
.counter { font-family: var(--body); font-weight: 700; font-size: .82rem; color: #b9a4d1; pointer-events: none; }

/* ---- How It Works cards (teal / peach / pink) ---- */
.howto-card {
  display: flex; align-items: center; gap: 14px; text-align: left;
  border-radius: 20px; padding: 16px 18px;
  box-shadow: 0 12px 26px -16px rgba(70,30,120,.5);
}
.howto-ico { flex: none; width: 52px; height: 52px; border-radius: 14px; background: #fff; display: grid; place-items: center; font-size: 1.55rem; box-shadow: 0 5px 12px -5px rgba(0,0,0,.2); }
.howto-title { font-family: var(--display); font-weight: 700; font-size: 1.16rem; color: var(--ink); line-height: 1.12; }
.howto-sub { font-weight: 600; font-size: .93rem; color: rgba(58,29,78,.66); margin-top: 2px; line-height: 1.35; }
.howto-card.teal  { background: linear-gradient(120deg, #57dcb2, #33cd9a); }
.howto-card.peach { background: linear-gradient(120deg, #ffdca6, #ffc987); }
.howto-card.pink  { background: linear-gradient(120deg, #ffc6e1, #ffb0d6); }

/* ---- Shared question stepper (used by create & take views) ---- */
.qtext { font-family: var(--display); font-weight: 700; font-size: clamp(1.35rem, 6vw, 1.8rem); line-height: 1.12; margin: 4px 0 18px; color: var(--ink); }
.opts { display: grid; gap: 12px; }
.opt {
  -webkit-appearance: none; appearance: none; cursor: pointer; text-align: left;
  font-family: var(--body); font-weight: 700; font-size: 1.1rem; color: var(--ink);
  background: #fff; border: 3px solid #efe2f6; border-radius: 16px; padding: 16px 18px;
  display: flex; align-items: center; gap: 12px; position: relative;
  box-shadow: 0 5px 0 #eadff3; transition: transform .1s, box-shadow .1s, border-color .12s, background .12s;
}
.opt .tag { flex: none; width: 30px; height: 30px; border-radius: 10px; background: #f5edfb; display: grid; place-items: center; font-family: var(--display); font-weight: 700; color: var(--lilac); }
.opt:hover { border-color: #e2cdf1; }
.opt:active { transform: translateY(4px); box-shadow: 0 1px 0 #eadff3; }
.opt.sel { background: linear-gradient(120deg, #fff0f7, #f3e9ff); border-color: var(--pink); box-shadow: 0 5px 0 #ffcbe4; }
.opt.sel .tag { background: var(--pink); color: #fff; }
.opt.sel::after { content: "✓"; position: absolute; right: 16px; font-weight: 900; color: var(--pink); font-size: 1.3rem; }

/* ---- Option editor pills (radio ring left, ✕ delete right) ---- */
.opt-pill {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  background: #fff; border: 2px solid #ece2f4; border-radius: 16px; padding: 12px 14px;
  font-family: var(--body); font-weight: 700; font-size: 1.05rem; color: var(--ink);
  box-shadow: 0 4px 0 #efe6f6; transition: border-color .12s, box-shadow .12s, background .12s;
}
.opt-pill .ring { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 3px solid #d3c2e8; background: #fff; transition: border-color .12s, background .12s, box-shadow .12s; }
.opt-pill .opt-txt { flex: 1; min-width: 0; }
.opt-pill .del {
  flex: none; margin-left: auto; width: 28px; height: 28px; border-radius: 50%;
  border: none; background: #f3e9fa; color: #a07bc8; font-weight: 900; font-size: 1rem;
  cursor: pointer; display: grid; place-items: center; line-height: 1; transition: background .12s, color .12s;
}
.opt-pill .del:hover { background: #ffd9e8; color: var(--pink); }
.opt-pill.sel { border-color: var(--pink); background: linear-gradient(120deg, #fff0f7, #f6ecff); box-shadow: 0 4px 0 #ffcfe6; }
.opt-pill.sel .ring { border-color: var(--pink); background: var(--pink); box-shadow: inset 0 0 0 4px #fff; }

/* ---- Add-an-option dashed pill ---- */
.add-pill {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  border: 2px dashed #c7b3e6; background: transparent; color: #9576c4;
  border-radius: 16px; padding: 13px; font-family: var(--display); font-weight: 700; font-size: 1rem;
  cursor: pointer; transition: background .12s, border-color .12s, color .12s;
}
.add-pill:hover { background: rgba(255,255,255,.45); border-color: var(--lilac); color: #7f57c4; }

/* ---- Leaderboard table (red→orange header, purple scores) ---- */
.lb-table { border-radius: 16px; overflow: hidden; box-shadow: 0 12px 28px -16px rgba(70,30,120,.55); background: #fff; }
.lb-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: linear-gradient(90deg, #f5556b, #ff9d4a); color: #fff; font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: .82rem; padding: 14px 18px; }
.lb-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; background: #fdf4f8; border-top: 1px solid #f6e4ef; }
.lb-row:first-of-type { border-top: none; }
.lb-name { font-family: var(--display); font-weight: 700; font-size: 1.08rem; color: var(--ink); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-score { font-family: var(--display); font-weight: 700; font-size: 1.15rem; color: var(--grape); flex: none; }

.step-meta { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.step-count { font-family: var(--display); font-weight: 700; color: var(--ink-soft); font-size: .95rem; }
.link-btn { background: none; border: none; cursor: pointer; font-family: var(--display); font-weight: 700; color: var(--lilac); font-size: .95rem; padding: 6px 8px; border-radius: 10px; }
.link-btn:hover { background: #f3ecfb; }

/* ---- Landing: topic chips ---- */
.topic-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 6px 0; }
.topic-chip {
  -webkit-appearance: none; appearance: none; cursor: pointer; text-decoration: none;
  font-family: var(--display); font-weight: 700; font-size: .92rem; line-height: 1;
  color: var(--pink); background: #fff; border: 2px solid #ffc6e0;
  border-radius: 999px; padding: 9px 16px;
  box-shadow: 0 4px 12px -6px rgba(214,43,129,.4);
  transition: transform .12s ease, box-shadow .12s ease, background .12s;
}
.topic-chip:hover { transform: translateY(-2px); background: #fff2f8; box-shadow: 0 9px 16px -6px rgba(214,43,129,.45); }

/* ---- Landing: info / article card ---- */
.info-card {
  background: #fff; border-radius: var(--card-radius);
  box-shadow: var(--shadow); border: 1px solid rgba(120,60,160,.05);
  max-width: 720px; margin-inline: auto;
  padding: clamp(26px, 5vw, 44px);
  text-align: left; color: var(--ink);
}
.info-h { font-family: var(--display); font-weight: 700; color: var(--ink); text-align: center; font-size: clamp(1.5rem, 4.5vw, 2rem); line-height: 1.16; margin: 8px 0 14px; }
.info-h:not(:first-child) { margin-top: 34px; }
.info-p { color: var(--ink-soft); font-weight: 600; font-size: 1rem; line-height: 1.65; margin: 0 0 14px; }
.info-p:last-child { margin-bottom: 0; }
.info-step { display: flex; gap: 14px; align-items: flex-start; text-align: center; background: #fdf5e2; border-radius: 16px; padding: 18px 20px; margin: 14px 0; }
.info-step-num { flex: none; width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, #ff9d2b, #f5455f); color: #fff; font-family: var(--display); font-weight: 700; display: grid; place-items: center; box-shadow: 0 4px 10px -3px rgba(245,80,80,.5); }
.info-step-body { flex: 1; min-width: 0; }
.info-step-title { font-family: var(--display); font-weight: 700; color: var(--ink); font-size: 1.05rem; line-height: 1.2; margin-bottom: 5px; }
.info-step-text { color: var(--ink-soft); font-weight: 600; font-size: .95rem; line-height: 1.55; }

/* ---- Landing: site footer ---- */
.site-footer {
  width: 100%; margin-top: clamp(30px, 6vw, 60px);
  background: rgba(255,255,255,.28); border: 1px solid rgba(255,255,255,.4);
  border-radius: 20px; padding: clamp(20px, 4vw, 30px) 20px;
  text-align: center; color: rgba(58,29,78,.6);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; margin-bottom: 10px; }
.footer-links > * { font-family: var(--body); font-weight: 700; font-size: .85rem; color: rgba(58,29,78,.62); text-decoration: none; cursor: pointer; margin: 3px 0; transition: color .12s; }
.footer-links > *:hover { color: var(--grape); text-decoration: underline; }
.footer-links > * + *::before { content: "•"; display: inline-block; margin: 0 10px; color: rgba(58,29,78,.32); text-decoration: none; }
.footer-copy { font-size: .78rem; color: rgba(58,29,78,.5); font-weight: 600; }

/* ---- Toast ---- */
.toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%) translateY(30px); background: var(--ink); color: #fff; font-family: var(--display); font-weight: 700; padding: 13px 22px; border-radius: 999px; box-shadow: 0 10px 24px -6px rgba(0,0,0,.5); opacity: 0; transition: transform .3s cubic-bezier(.2,1.3,.4,1), opacity .3s; z-index: 50; pointer-events: none; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---- Misc shared ---- */
.center { text-align: center; }
.foot { text-align: center; margin-top: 20px; color: rgba(255,255,255,.78); font-weight: 700; font-size: .85rem; text-shadow: 0 1px 6px rgba(80,30,120,.2); }
.spin { text-align: center; padding: 50px 0; font-family: var(--display); font-weight: 700; color: rgba(255,255,255,.92); font-size: 1.2rem; text-shadow: 0 2px 10px rgba(80,30,120,.25); animation: pulse 1.1s ease infinite; }
@keyframes pulse { 50% { opacity: .5; } }

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

/* ===== Motion: entrances, idle micro-motion, button flourishes ===== */

/* Entrance: quick pop / slide-up + fade, with a small cascade for lists. */
@keyframes rise { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
.howto-card, .info-step, .opt-pill, .lb-row { animation: rise .42s cubic-bezier(.2,1.1,.4,1) both; }
.howto-card:nth-child(2), .info-step:nth-child(2), .opt-pill:nth-child(2), .lb-row:nth-child(2) { animation-delay: .07s; }
.howto-card:nth-child(3), .info-step:nth-child(3), .opt-pill:nth-child(3), .lb-row:nth-child(3) { animation-delay: .14s; }
.howto-card:nth-child(4), .info-step:nth-child(4), .opt-pill:nth-child(4), .lb-row:nth-child(4) { animation-delay: .21s; }
.howto-card:nth-child(5), .info-step:nth-child(5), .opt-pill:nth-child(5), .lb-row:nth-child(5) { animation-delay: .28s; }
.howto-card:nth-child(6), .info-step:nth-child(6), .opt-pill:nth-child(6), .lb-row:nth-child(6) { animation-delay: .35s; }
.howto-card:nth-child(7), .info-step:nth-child(7), .opt-pill:nth-child(7), .lb-row:nth-child(7) { animation-delay: .42s; }
.howto-card:nth-child(8), .info-step:nth-child(8), .opt-pill:nth-child(8), .lb-row:nth-child(8) { animation-delay: .49s; }

/* Idle micro-motion on accents (gentle, continuous). */
@keyframes wobble { 0%,100% { transform: rotate(-6deg); } 50% { transform: rotate(7deg) translateY(-2px); } }
.howto-ico { animation: wobble 3.2s ease-in-out infinite; will-change: transform; }
.howto-card.peach .howto-ico { animation-duration: 3.8s; }
.howto-card.pink .howto-ico { animation-duration: 4.4s; }

@keyframes shimmer { 0% { background-position: 0% 50%; } 100% { background-position: 220% 50%; } }
.name-chip { background-size: 220% 100%; animation: shimmer 6s linear infinite; }
.lb-head { background-size: 220% 100%; animation: shimmer 9s linear infinite; }

/* Primary (hot) button: soft pulsing glow to draw the eye + hover shine sweep. */
.btn { position: relative; }
.btn::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(115deg, transparent 38%, rgba(255,255,255,.42) 50%, transparent 62%);
  background-size: 250% 100%; background-position: 160% 0;
  transition: background-position .6s ease;
}
.btn:hover::after { background-position: -60% 0; }
.btn:not(.alt):not(.mint):not(.ghost)::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1; pointer-events: none;
  animation: glowpulse 2.4s ease-in-out infinite;
}
@keyframes glowpulse {
  0%, 100% { box-shadow: 0 8px 20px -6px rgba(245,80,80,.4); }
  50%      { box-shadow: 0 12px 34px -4px rgba(245,80,80,.72); }
}

/* ---- Responsive shell: grow the container + cards, spread content out ---- */
@media (min-width: 640px) {
  :root { --content-max: 760px; --card-max: 680px; }
}
@media (min-width: 720px) {
  /* enough room for answer options to sit two-up instead of a tall stack */
  .opts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
}
@media (min-width: 1024px) {
  :root { --content-max: 960px; --card-max: 820px; --card-pad: clamp(34px, 3.6vw, 48px); }
  .sub { font-size: 1.12rem; }
}
@media (min-width: 1440px) {
  :root { --content-max: 1040px; --card-max: 860px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  body { animation: none; }
  /* neutralize every continuous + entrance animation added for the motion pass */
  .doodle, .howto-ico, .name-chip, .lb-head { animation: none !important; }
  .card, .howto-card, .info-step, .opt-pill, .lb-row { animation: none !important; opacity: 1 !important; transform: none !important; }
  .btn::before { animation: none !important; box-shadow: none !important; }
  .btn::after { transition: none !important; }
}

:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }
