/* ============================================================
   LOVE AGE TEST — design tokens
   ============================================================ */
:root {
  --ink: #4a3340;
  --ink-soft: #8c7080;
  --ink-faint: #b9a3ae;
  --cream: #fff7f0;
  --paper: #fff;
  --dot: #ffe1d6;
  --line: #f2dcd4;
  --shade: #ffdccf;
  --rose: #ff6f91;
  --rose-deep: #e04d72;
  --blush: #ffe7ec;
  --butter: #ffc85c;
  --butter-deep: #e8a92f;
  --mint: #57cfa9;
  --mint-deep: #33ab86;
  --lavender: #b39bff;
  --lavender-deep: #8e73e6;
  --sky: #7cc6f0;
  --font: ui-rounded, "Hiragino Maru Gothic ProN", ui-sans-serif, system-ui, -apple-system, "Segoe UI Variable", "Segoe UI", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", "Heiti TC", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; border: 0 solid var(--line); }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  min-height: 100dvh;
  background-color: var(--cream);
  background-image: radial-gradient(var(--dot) 1.7px, transparent 1.7px);
  background-size: 22px 22px;
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--rose); outline-offset: 3px; border-radius: 6px; }

/* ============================================================
   Language bar
   ============================================================ */
.topbar {
  position: absolute;
  inset-inline: 0;
  top: 0;
  z-index: 40;
  pointer-events: none;
}
.topbar-inner {
  width: 100%;
  max-width: 560px;
  margin-inline: auto;
  padding: 10px 20px 0;
  display: flex;
  justify-content: flex-end;
}
.lang { display: flex; align-items: center; font-size: 12.5px; font-weight: 800; pointer-events: auto; }
.lang-item { display: flex; align-items: center; }
.lang-current, .lang-link { display: inline-flex; min-height: 44px; align-items: center; padding-inline: 8px; }
.lang-link.is-current { color: var(--rose-deep); text-decoration: none; }
.lang-link { color: var(--ink-faint); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.lang-link:hover { color: var(--rose-deep); }
.lang-dot { color: color-mix(in srgb, var(--ink-faint) 60%, transparent); }

/* ============================================================
   Layout
   ============================================================ */
.shell {
  width: 100%;
  max-width: 560px;
  margin-inline: auto;
  padding: 40px 20px 56px;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
@media (min-width: 640px) {
  .shell { padding-top: 64px; }
  .shell.quiz-shell { padding-top: 56px; }
}

/* ============================================================
   Hero
   ============================================================ */
.eyebrow { display: flex; align-items: center; gap: 8px; }
.eyebrow-heart { flex: none; }
.eyebrow-text { font-size: 13px; font-weight: 800; letter-spacing: .18em; color: var(--rose); }
.hero-title {
  margin-top: 16px;
  font-size: clamp(2.3rem, 10.4vw, 2.55rem);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -.025em;
}
@media (min-width: 640px) { .hero-title { font-size: 3rem; } }
.hero-accent { position: relative; display: inline-block; color: var(--rose); }
.hero-accent-heart { position: absolute; right: -4px; top: -16px; }
.hero-sub { margin-top: 20px; font-size: 1.02rem; line-height: 1.85; color: var(--ink-soft); }
.hero-cta { margin-top: 32px; }
.hero-note { margin-top: 14px; text-align: center; font-size: 13px; font-weight: 600; color: var(--ink-faint); }

/* ============================================================
   Buttons / links / chips
   ============================================================ */
.btn {
  display: inline-flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  border-radius: 1.3rem;
  padding: 1.125rem 1.5rem;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1;
  transition: transform .12s, box-shadow .12s, filter .12s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(5px); box-shadow: 0 0 !important; }
.btn-rose { background: var(--rose); color: #fff; box-shadow: 0 5px 0 var(--rose-deep); }
.btn-rose:hover { filter: brightness(1.03); }
.btn-ghost {
  background: var(--paper);
  color: var(--ink);
  border: 2px solid var(--line);
  box-shadow: 0 5px 0 var(--shade);
  border-radius: 1.1rem;
  padding: 1rem 1.25rem;
  font-weight: 800;
}
.btn-ghost:hover { border-color: var(--rose); color: var(--rose-deep); }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn-row { display: grid; gap: 10px; }
@media (min-width: 480px) { .btn-row.two { grid-template-columns: 1fr 1fr; } }

.text-link { font-weight: 800; color: var(--rose-deep); text-decoration: underline; text-underline-offset: 4px; }
.text-link:hover { color: var(--rose); }
.inline-link { font-weight: 800; color: var(--rose-deep); text-decoration: underline; text-underline-offset: 3px; }
.back-link { display: inline-flex; min-height: 44px; align-items: center; font-size: 13px; font-weight: 800; color: var(--rose); }
.back-link:hover { color: var(--rose-deep); }

.chip-row { margin-top: 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 20px; }
.chip {
  border-radius: 999px;
  border: 2px solid;
  padding: 4px 12px;
  font-size: 12.5px;
  font-weight: 800;
  white-space: nowrap;
}
.chip-rose { background: var(--blush); border-color: color-mix(in srgb, var(--rose) 45%, transparent); color: var(--rose-deep); }
.chip-lavender { background: color-mix(in srgb, var(--lavender) 15%, transparent); border-color: color-mix(in srgb, var(--lavender) 45%, transparent); color: var(--lavender-deep); }
.chip-mint { background: color-mix(in srgb, var(--mint) 15%, transparent); border-color: color-mix(in srgb, var(--mint) 50%, transparent); color: var(--mint-deep); }
.chip-butter { background: color-mix(in srgb, var(--butter) 25%, transparent); border-color: var(--butter); color: #a8761a; }
.chip-plain { background: var(--paper); border-color: var(--line); color: var(--ink-soft); }

/* ============================================================
   Cards / sections
   ============================================================ */
.card {
  background: var(--paper);
  border: 2px solid var(--line);
  border-radius: 1.75rem;
  box-shadow: 4px 5px 0 var(--shade);
}
.section { margin-top: 56px; }
.h2 { font-size: 1.25rem; font-weight: 800; line-height: 1.375; color: var(--ink); }
.h2.center { text-align: center; }
.section-lead { margin-top: 12px; font-size: 14.5px; line-height: 1.9; color: var(--ink-soft); }
.prose { margin-top: 16px; display: grid; gap: 16px; font-size: 14.5px; line-height: 1.95; color: var(--ink-soft); }
.prose b { color: var(--ink); font-weight: 800; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }

/* dimension list */
.dim-list { margin-top: 20px; display: grid; gap: 10px; }
.dim { display: flex; align-items: flex-start; gap: 14px; padding: 16px; }
.dim-no { flex: none; margin-top: 2px; font-size: 13px; font-weight: 800; color: var(--rose-deep); font-variant-numeric: tabular-nums; }
.dim-name { font-size: 14.5px; font-weight: 800; color: var(--ink); }
.dim-desc { margin-top: 4px; font-size: 13.5px; line-height: 1.8; color: var(--ink-soft); }

/* ============================================================
   Type band
   ============================================================ */
.type-band {
  margin: 16px -20px 0;
  padding: 48px 20px;
  background: color-mix(in srgb, var(--blush) 40%, transparent);
}
.band-lead {
  margin: 12px auto 0;
  max-width: 20rem;
  text-align: center;
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--ink-soft);
}
.type-grid { margin-top: 32px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 12px; }
@media (min-width: 640px) { .type-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.type-card { display: flex; flex-direction: column; align-items: center; text-align: center; }
.type-art { display: flex; height: 5.25rem; width: 100%; align-items: flex-end; justify-content: center; }
.type-art img { height: 100%; width: auto; max-width: 100%; object-fit: contain; transform: scale(1.15); transform-origin: center bottom; transition: transform .18s ease; }
.type-card:hover .type-art img { transform: translateY(-4px) rotate(-1.5deg) scale(1.15); }
.type-label {
  margin-top: 8px;
  display: flex;
  min-height: 2.6rem;
  width: 100%;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0 2px;
  border: 2px solid;
  border-radius: 12px;
  padding: 4px 6px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.45;
}
.band-butter { background: color-mix(in srgb, var(--butter) 25%, transparent); color: #a8761a; border-color: var(--butter); }
.band-mint { background: color-mix(in srgb, var(--mint) 20%, transparent); color: var(--mint-deep); border-color: color-mix(in srgb, var(--mint) 70%, transparent); }
.band-lavender { background: color-mix(in srgb, var(--lavender) 20%, transparent); color: var(--lavender-deep); border-color: color-mix(in srgb, var(--lavender) 70%, transparent); }
.band-note { margin: 36px auto 0; max-width: 22rem; text-align: center; font-size: 14.5px; line-height: 1.9; color: var(--ink-soft); }
.band-note b { color: var(--ink); font-weight: 800; }
.type-band .center { margin-top: 12px; }
.type-band .text-link { display: inline-block; padding-block: 8px; font-size: 13.5px; }

/* ============================================================
   FAQ
   ============================================================ */
.faq { margin-top: 20px; display: grid; gap: 10px; }
.faq-item { padding: 20px; }
.faq-item dt { font-size: 14.5px; font-weight: 800; line-height: 1.7; color: var(--ink); }
.faq-item dd { margin-top: 8px; font-size: 13.5px; line-height: 1.85; color: var(--ink-soft); }

/* ============================================================
   End CTA / footer
   ============================================================ */
.end-cta { margin-top: 16px; text-align: center; }
.end-heart { margin-inline: auto; }
.end-title { margin-top: 16px; font-size: 1.15rem; font-weight: 800; line-height: 1.625; }
.end-btn { margin-top: 24px; }
.footer { margin-top: auto; padding-top: 48px; text-align: center; font-size: 12.5px; line-height: 1.6; color: var(--ink-faint); }
.footer p + p { margin-top: 4px; }
.footer a { font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.footer a:hover { color: var(--rose-deep); }
.footer-small { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0 8px; margin-top: 8px !important; }
.footer-small a { display: inline-block; padding-block: 8px; }
.footer-small span { color: var(--ink-faint); }

/* ============================================================
   Animation
   ============================================================ */
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes pop { from { opacity: 0; transform: scale(.7); } to { opacity: 1; transform: scale(1); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.reveal { animation: rise .45s cubic-bezier(.22, 1, .36, 1) both; }
.bob { animation: bob 2.8s ease-in-out infinite; }
.pop { animation: pop .42s cubic-bezier(.3, 1.6, .5, 1) both; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ============================================================
   Start / quiz / result views
   ============================================================ */
.view-shell {
  width: 100%;
  max-width: 560px;
  margin-inline: auto;
  padding: 40px 20px 56px;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
@media (min-width: 640px) { .view-shell { padding-top: 64px; } }

.view-eyebrow { margin-top: 24px; font-size: 12.5px; font-weight: 800; letter-spacing: .18em; color: var(--rose); }
.view-title { margin-top: 10px; font-size: 1.85rem; font-weight: 800; line-height: 1.35; letter-spacing: -.02em; }
.view-lead { margin-top: 12px; font-size: 14.5px; line-height: 1.9; color: var(--ink-soft); }

/* target picker */
.target-list { margin-top: 26px; display: grid; gap: 10px; }
.target {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  border: 2px solid var(--line);
  border-bottom: 6px solid var(--shade);
  border-radius: 1.35rem;
  background: var(--paper);
  padding: 15px 17px 11px;
  transition: border-color .14s, background .14s, transform .14s;
}
.target:hover { border-color: var(--rose); border-bottom-color: var(--blush); }
.target[aria-pressed="true"] { border-color: var(--rose); border-bottom-color: var(--rose); background: var(--blush); }
.target-emoji { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; background: var(--blush); font-size: 19px; }
.target-name { display: block; font-size: 15px; font-weight: 800; }
.target-desc { display: block; margin-top: 2px; font-size: 12.5px; line-height: 1.55; color: var(--ink-soft); }
.start-actions { margin-top: 22px; }
.start-note { margin-top: 14px; text-align: center; font-size: 12.5px; line-height: 1.7; color: var(--ink-faint); }

/* quiz chrome */
.quiz-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.quiz-count { font-size: 13px; font-weight: 800; color: var(--ink-faint); font-variant-numeric: tabular-nums; }
.quiz-count b { color: var(--rose-deep); font-size: 15px; }
.progress { margin-top: 14px; height: 8px; border-radius: 999px; background: var(--blush); overflow: hidden; }
.progress-fill { height: 100%; border-radius: inherit; background: var(--rose); transition: width .35s cubic-bezier(.22, 1, .36, 1); }
.q-card { margin-top: 22px; padding: 24px 22px; }
.q-part { font-size: 12px; font-weight: 800; letter-spacing: .12em; color: var(--rose-deep); text-transform: uppercase; }
.q-text { margin-top: 10px; font-size: 1.24rem; font-weight: 800; line-height: 1.62; letter-spacing: -.01em; }
.q-hint { margin-top: 8px; font-size: 12.5px; line-height: 1.7; color: var(--ink-faint); }
.choices { margin-top: 20px; display: grid; gap: 10px; }
.choice {
  width: 100%;
  text-align: left;
  border: 2px solid var(--line);
  border-bottom: 6px solid var(--shade);
  border-radius: 1.35rem;
  background: var(--paper);
  padding: .95rem 1.05rem calc(.95rem - 4px);
  font-size: 1rem;
  line-height: 1.6;
  transition: border-color .14s, background .14s, transform .12s;
}
.choice:hover { border-color: var(--rose); border-bottom-color: var(--blush); }
.choice[aria-pressed="true"] { border-color: var(--rose); border-bottom-color: var(--rose); background: var(--blush); }
.choice:active { transform: translateY(2px); }
.quiz-actions { margin-top: 20px; display: flex; align-items: center; gap: 12px; }
.quiz-actions .btn { flex: 1; }
.quiz-back { flex: none; }
.quiz-kbd { margin-top: 14px; text-align: center; font-size: 11.5px; color: var(--ink-faint); }
.quiz-kbd kbd { font-family: inherit; font-weight: 800; background: var(--paper); border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px; }

/* result */
.result-head { text-align: center; }
.result-band { display: inline-block; border: 2px solid; border-radius: 999px; padding: 4px 12px; font-size: 12.5px; font-weight: 800; }
.result-title { margin-top: 14px; font-size: 1.9rem; font-weight: 800; line-height: 1.3; letter-spacing: -.02em; }
.result-art { margin: 18px auto 0; width: 230px; max-width: 64%; height: auto; }
.result-tagline { margin: 18px auto 0; max-width: 24rem; font-size: 15.5px; font-weight: 700; line-height: 1.85; color: var(--ink); }
.result-tags { margin-top: 14px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }

.age-card { margin-top: 26px; padding: 22px 20px; }
.age-top { display: flex; align-items: baseline; justify-content: center; gap: 6px; }
.age-num { font-size: 3.4rem; font-weight: 800; line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.age-unit { font-size: 15px; font-weight: 800; color: var(--ink-soft); }
.age-label { margin-top: 6px; text-align: center; font-size: 12.5px; font-weight: 700; color: var(--ink-faint); }
.age-scale { position: relative; margin-top: 22px; height: 12px; border-radius: 999px; background: linear-gradient(90deg, var(--lavender) 0%, var(--blush) 42%, var(--blush) 58%, var(--butter) 100%); }
.age-marker { position: absolute; top: 50%; left: 50%; width: 24px; height: 24px; transform: translate(-50%, -50%); border-radius: 999px; background: var(--paper); border: 3px solid var(--ink); box-shadow: 0 2px 0 rgba(74, 51, 64, .12); transition: left .5s cubic-bezier(.22, 1, .36, 1); }
.age-marker::after { content: "♥"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 11px; color: var(--rose); }
.age-ticks { margin-top: 10px; display: flex; justify-content: space-between; font-size: 11.5px; font-weight: 700; color: var(--ink-faint); font-variant-numeric: tabular-nums; }

.report-card { margin-top: 16px; padding: 24px; }
.report-card h2 { font-size: 15px; font-weight: 800; color: var(--ink); }
.report-card p { margin-top: 10px; font-size: 14px; line-height: 1.95; color: var(--ink-soft); }
.report-card p b { color: var(--ink); }
.subtype-name { display: inline-block; margin-top: 12px; border: 2px solid var(--line); border-radius: 999px; padding: 4px 12px; font-size: 13px; font-weight: 800; color: var(--rose-deep); background: var(--blush); }
.subtype-dims { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; font-size: 12px; color: var(--ink-faint); font-weight: 700; }

.metrics { margin-top: 16px; display: grid; gap: 14px; }
.metric-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.metric-name { font-size: 13.5px; font-weight: 800; }
.metric-val { font-size: 12.5px; font-weight: 800; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.metric-track { margin-top: 7px; height: 10px; border-radius: 999px; background: var(--blush); overflow: hidden; }
.metric-fill { height: 100%; border-radius: inherit; background: var(--rose); width: 0; transition: width .7s cubic-bezier(.22, 1, .36, 1); }
.metric-fill.m-care { background: var(--butter); }
.metric-fill.m-lead { background: var(--rose); }
.metric-fill.m-cling { background: var(--lavender); }
.metric-fill.m-play { background: var(--mint); }

.radar-card { margin-top: 16px; padding: 20px 16px 12px; }
.radar-card h2 { font-size: 15px; font-weight: 800; text-align: center; }
.radar-wrap { margin-top: 4px; }
.radar-wrap svg { width: 100%; height: auto; max-width: 340px; margin-inline: auto; overflow: visible; }

.share-card { margin-top: 20px; padding: 22px; text-align: center; }
.share-card h2 { font-size: 1.1rem; font-weight: 800; line-height: 1.5; }
.share-card p { margin-top: 8px; font-size: 13px; line-height: 1.8; color: var(--ink-soft); }
.share-actions { margin-top: 16px; display: grid; gap: 10px; }
@media (min-width: 480px) { .share-actions.two { grid-template-columns: 1.2fr 1fr; } }
.result-cta { margin-top: 26px; padding: 22px; text-align: center; }
.result-cta h2 { font-size: 1.1rem; font-weight: 800; }
.result-cta p { margin-top: 6px; font-size: 13px; line-height: 1.8; color: var(--ink-soft); }
.result-cta .btn { margin-top: 16px; }
.result-note { margin-top: 18px; text-align: center; font-size: 11.5px; line-height: 1.8; color: var(--ink-faint); }

/* types index */
.band-group { margin-top: 34px; }
.band-heading { display: inline-block; border: 2px solid; border-radius: 999px; padding: 4px 12px; font-size: 13px; font-weight: 800; }
.type-list { margin-top: 16px; display: grid; gap: 10px; }
.type-row { display: flex; align-items: center; gap: 16px; padding: 16px; transition: transform .15s; }
.type-row:hover { transform: translateX(3px); }
.type-row img { flex: none; width: 72px; height: 72px; object-fit: contain; }
.type-row-style { display: block; font-size: 12px; font-weight: 800; color: var(--ink-faint); }
.type-row-name { display: block; margin-top: 2px; font-size: 15px; font-weight: 800; line-height: 1.4; color: var(--ink); }
.type-row-desc { display: block; margin-top: 4px; font-size: 13px; line-height: 1.7; color: var(--ink-soft); }

/* type detail */
.type-hero { margin-top: 24px; text-align: center; }
.type-detail-title { margin-top: 14px; font-size: 1.85rem; font-weight: 800; line-height: 1.3; letter-spacing: -.02em; text-wrap: balance; }
.type-detail-art { margin: 18px auto 0; width: 210px; max-width: 62%; height: auto; }
.type-detail-tagline { margin: 18px auto 0; max-width: 24rem; font-size: 15.5px; font-weight: 700; line-height: 1.85; }
.type-detail-tags { margin-top: 14px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.detail-block { margin-top: 30px; }
.detail-label { font-size: 14px; font-weight: 800; letter-spacing: .04em; color: var(--ink-soft); }
.detail-card { margin-top: 12px; padding: 20px; }
.detail-card .prose { margin-top: 0; }
.bullets { list-style: none; display: grid; gap: 9px; }
.bullets li { position: relative; padding-left: 20px; font-size: 14px; line-height: 1.8; color: var(--ink-soft); }
.bullets li::before { content: ""; position: absolute; left: 0; top: 9px; width: 8px; height: 8px; border-radius: 999px; background: var(--rose); }
.bullets.good li::before { background: var(--mint); }
.bullets.warn li::before { background: var(--butter); }
.other-types { margin-top: 30px; }
.other-list { margin-top: 12px; display: grid; gap: 8px; }
.other-row { display: flex; min-height: 44px; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; }
.other-row span:first-child { font-size: 14px; font-weight: 800; }
.other-row span:last-child { font-size: 13px; font-weight: 800; color: var(--rose); }

/* static pages */
.doc h1 { margin-top: 24px; font-size: 1.9rem; font-weight: 800; letter-spacing: -.02em; }
.doc h2 { margin-top: 30px; font-size: 1.1rem; font-weight: 800; }
.doc p, .doc li { margin-top: 10px; font-size: 14px; line-height: 1.95; color: var(--ink-soft); }
.doc ul { margin-top: 8px; padding-left: 20px; }

/* toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 90;
  transform: translate(-50%, 20px);
  max-width: calc(100vw - 40px);
  border-radius: 999px;
  background: var(--ink);
  color: #fff8f6;
  padding: 12px 18px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  box-shadow: 0 8px 24px rgba(74, 51, 64, .22);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* small screens */
@media (max-width: 340px) {
  .hero-title { font-size: 1.9rem; }
}

@media (max-width: 380px) {
  .type-grid { gap: 20px 8px; }
  .type-label { font-size: 10.5px; }
  .q-card { padding: 20px 16px; }
  .choice { font-size: .95rem; }
}
