:root {
  --ink: #f4f1f8;
  --paper: #0b0a10;
  --surface: #15121e;
  --field: #0e0c15;
  --purple: #bd9bff;
  --lime: #d5fc78;
  --pink: #ff91c6;
  --line: #302a3e;
  --muted: #ada5bc;
  --font-sans: Arial, Helvetica, "Noto Sans", "Noto Sans CJK SC", "Noto Sans CJK JP", "Noto Sans Thai", "Leelawadee UI", sans-serif;
  --font-serif: Georgia, "Times New Roman", "Noto Serif CJK SC", "Noto Serif CJK JP", "Noto Sans Thai", serif;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  color-scheme: dark;
}
* { box-sizing: border-box; }
body { margin: 0; background: radial-gradient(ellipse at 30% 0, #26173855, transparent 55%); }
button, input, select { font: inherit; }
button, a, input, select, summary { -webkit-tap-highlight-color: transparent; }
button, a, summary { touch-action: manipulation; }
button { cursor: pointer; border: 0; }
button:disabled { cursor: default; opacity: .45; }
a { color: inherit; }
button svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
[hidden] { display: none !important; }
button:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid var(--purple); outline-offset: 4px; }
.wrap { width: min(1160px, calc(100% - 64px)); margin-inline: auto; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 94px; border-bottom: 1px solid var(--line); }
.wordmark { flex: 0 0 auto; white-space: nowrap; text-decoration: none; font-family: var(--font-serif); font-size: 38px; letter-spacing: -2px; font-weight: 700; font-style: italic; }
.brand-dot { color: var(--lime); }
.header-note { font-size: 11px; letter-spacing: 1.6px; color: var(--muted); }
.club-pill { font-size: 11px; font-weight: 700; letter-spacing: .6px; border: 1px solid #5a456f; color: var(--purple); background: #bd9bff0a; padding: 10px 14px; border-radius: 99px; white-space: nowrap; }
.intro { display: flex; justify-content: space-between; align-items: center; gap: 30px; padding: 36px 0; }
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 1.5px; margin: 0; color: var(--muted); }
.intro h1 { font-family: var(--font-serif); font-weight: 400; letter-spacing: -3.8px; font-size: clamp(44px, 5.7vw, 76px); line-height: 1.1; margin: 12px 0 14px; }
.intro h1 em { font-weight: 400; color: var(--purple); }
.intro-copy { font-size: 16px; color: var(--muted); margin: 0; line-height: 1.5; }
.stamp { width: 112px; height: 112px; display: flex; align-items: center; justify-content: center; flex-direction: column; flex-shrink: 0; border-radius: 50%; border: 1.5px dashed #9273bb; transform: rotate(12deg); color: var(--purple); background: #bd9bff09; gap: 7px; margin-right: 12px; }
.stamp span { font-size: 9px; letter-spacing: 1px; font-weight: 700; }
.stamp strong { font-size: 18px; font-family: var(--font-serif); font-weight: 400; font-style: italic; text-align: center; line-height: 1; }
.calculator { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.ingredients { background: var(--surface); padding: 30px 34px; border: 1px solid var(--line); border-radius: 20px; min-width: 0; }
.section-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.text-button { background: transparent; text-decoration: underline; color: var(--muted); font-size: 13px; padding: 4px; }
.ingredients h2 { font-family: var(--font-serif); font-size: 35px; font-weight: 400; letter-spacing: -1.3px; margin: 0 0 26px; }
.profile-section { border: 0; padding: 0; margin: 0; min-width: 0; }
.profile-section legend { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 0; margin-bottom: 14px; font-size: 16px; font-weight: 700; gap: 10px; }
.tiny-tag { font-size: 9px; letter-spacing: 1px; color: var(--muted); font-weight: 400; }
.profile-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.profile-field { min-width: 0; }
.profile-field label { display: block; font-size: 13px; color: #d3ccdf; margin-bottom: 7px; }
.optional-label { color: var(--muted); font-weight: 400; font-size: 11px; margin-left: 4px; }
.ethnicity-field { grid-column: 1 / -1; }
.input-shell { display: flex; align-items: center; gap: 5px; background: var(--field); border: 1px solid #3c344d; border-radius: 9px; padding: 10px 12px; height: 47px; }
.input-shell:focus-within { border-color: var(--purple); }
.input-shell input { min-width: 0; width: 100%; border: 0; outline: 0; padding: 0; color: var(--ink); background: transparent; font-size: 20px; font-weight: 700; }
.input-shell span { font-size: 12px; color: var(--muted); flex-shrink: 0; }
.ingredients select { width: 100%; height: 46px; padding: 8px 11px; border: 1px solid #3c344d; border-radius: 9px; background: var(--field); color: var(--ink); font-size: 14px; }
.field-help { font-size: 12px; color: var(--muted); line-height: 1.5; margin: 10px 0 0; }
.study-readout { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 14px 15px; border: 1px solid #4c3a68; background: #bd9bff09; border-radius: 10px; margin-top: 15px; }
.study-readout > div > span { font-size: 12px; color: #e7dcfa; }
.study-readout p { font-size: 12px; line-height: 1.5; margin: 5px 0 0; color: var(--muted); }
.study-readout strong { font-size: 25px; color: var(--lime); white-space: nowrap; font-variant-numeric: tabular-nums; letter-spacing: -.8px; }
.study-readout strong span { font-size: 12px; color: var(--muted); font-weight: 400; letter-spacing: 0; margin-left: 5px; }
.target-readout { border-color: #ff91c640; background: #ff91c608; }
.target-readout strong { color: var(--pink); }
.female-section { margin-top: 27px; padding-top: 24px; border-top: 1px solid var(--line); }
.female-section legend { float: left; }
.female-section legend + div { clear: both; }
summary { cursor: pointer; }
.profile-name { min-width: 0; margin-bottom: 18px; }
.profile-name label { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; margin-bottom: 7px; color: #d3ccdf; }
.profile-name label span { font-size: 11px; color: var(--purple); }
.profile-name input { width: 100%; border: 1px solid #3c344d; border-radius: 9px; padding: 12px; font-size: 16px; background: var(--field); color: var(--ink); }
.profile-name input:focus { border-color: var(--purple); }
.profile-name input:user-invalid { border-color: var(--pink); }
.forecast { background: radial-gradient(ellipse at 90% 0, #7c46922b, transparent 60%), #1c142a; color: var(--ink); padding: 30px 34px 24px; display: flex; flex-direction: column; min-width: 0; position: sticky; top: 24px; border: 1px solid #604878; border-radius: 20px; box-shadow: 0 18px 65px #0003; }
.forecast .eyebrow { color: var(--purple); }
.result-tag { font-size: 8px; letter-spacing: .6px; border: 1px solid #bd9bff30; border-radius: 99px; padding: 7px 9px; color: #d2beef; white-space: nowrap; }
.forecast h2 { font-size: 17px; font-weight: 400; margin: 7px 0 0; }
.duo-label { font-size: 14px; color: var(--muted); margin: 12px 0 0; overflow-wrap: anywhere; }
.result-numbers { display: grid; grid-template-columns: 1fr 22px 1fr; align-items: center; margin-top: 26px; gap: 6px; }
.number-block { text-align: center; min-width: 0; }
.number-block strong { display: block; font-family: var(--font-serif); line-height: 1; font-size: clamp(80px, 8vw, 110px); font-weight: 400; letter-spacing: -6px; color: var(--lime); font-variant-numeric: tabular-nums; }
.number-block span { display: block; font-family: var(--font-serif); font-size: 27px; font-style: italic; margin-top: 5px; }
.spill-number strong { color: var(--pink); }
.number-divider { font-size: 35px; color: #ffffff30; font-family: var(--font-serif); font-weight: 400; padding-bottom: 25px; }
.verdict { text-align: center; font-size: 18px; line-height: 1.5; margin: 24px 0; min-height: 27px; }
.result-profiles { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; border-top: 1px solid #ffffff15; padding-top: 15px; margin-bottom: 19px; }
.result-profiles > div { min-width: 0; }
.result-profiles span { font-size: 10px; letter-spacing: .6px; color: var(--purple); text-transform: uppercase; overflow-wrap: anywhere; }
.result-profiles p { font-size: 12px; line-height: 1.5; color: var(--muted); margin: 5px 0 0; overflow-wrap: anywhere; }
.meter-box { border: 1px solid #ffffff1f; padding: 15px 16px; border-radius: 12px; background: #00000020; }
.meter-heading { display: flex; align-items: center; justify-content: space-between; font-size: 12px; gap: 8px; color: #e5dbf3; }
.meter-heading strong { font-weight: 400; }
.meter { height: 12px; border-radius: 5px; background: #ffffff12; overflow: hidden; margin-top: 13px; }
.meter span { display: block; width: 10%; height: 100%; background: var(--lime); border-radius: 5px; transition: width .15s; }
.meter-box p { font-size: 12px; line-height: 1.5; margin: 11px 0 0; color: var(--muted); }
.source-link { display: none; }
.primary-button { display: flex; align-items: center; justify-content: center; gap: 9px; background: var(--lime); color: #19141e; width: 100%; border-radius: 10px; padding: 16px 14px; font-size: 16px; font-weight: 700; min-height: 54px; transition: background .15s, transform .15s; margin-top: 21px; }
.primary-button:hover { background: #e5ffab; transform: translateY(-1px); }
.secondary-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 11px; }
.secondary-button { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--ink); border: 1px solid #ffffff30; background: #ffffff03; border-radius: 9px; padding: 12px 8px; min-height: 46px; font-size: 13px; transition: background .15s; }
.secondary-button:hover { background: #ffffff0d; }
.secondary-button svg { width: 16px; height: 16px; }
.share-status { font-size: 12px; text-align: center; line-height: 1.5; color: var(--muted); margin: 11px 0 0; }
.share-status:empty { margin: 0; }
.link-panel { padding: 14px; background: #00000025; border: 1px solid #ffffff25; border-radius: 9px; margin-top: 13px; }
.link-panel label { font-size: 13px; display: block; margin-bottom: 7px; }
.link-panel > div { display: flex; gap: 7px; }
.link-panel input { min-width: 0; flex: 1; border: 1px solid #4c3a68; border-radius: 6px; background: var(--field); color: var(--ink); font-size: 14px; padding: 10px; }
.link-panel button { background: var(--lime); color: #19141e; padding: 9px 12px; border-radius: 6px; font-size: 14px; }
.link-panel p { font-size: 11px; line-height: 1.5; color: var(--muted); margin: 8px 0 0; }
.shared-message { display: none; }
.method { margin-top: 25px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.method > summary { display: flex; align-items: center; justify-content: space-between; padding: 20px 0; font-size: 13px; color: var(--muted); list-style: none; gap: 16px; }
.method > summary::-webkit-details-marker { display: none; }
.method-plus { font-size: 22px; color: var(--purple); line-height: 1; }
.method[open] .method-plus { transform: rotate(45deg); }
.method-content { max-width: 800px; padding-bottom: 20px; }
.method-content p { font-size: 13px; line-height: 1.65; color: var(--muted); margin: 0 0 10px; }
.method-content a { color: var(--purple); text-underline-offset: 3px; }
.method-content code { font-size: 12px; color: var(--ink); overflow-wrap: anywhere; }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 27px 0 32px; font-size: 11px; color: var(--muted); }
.site-footer > span { font-family: var(--font-serif); font-weight: 700; font-style: italic; font-size: 22px; letter-spacing: -1px; color: var(--ink); }
.site-footer p { margin: 0; line-height: 1.5; text-align: center; }
.site-footer a { text-underline-offset: 3px; }
.footer-links { display: flex; align-items: center; flex-wrap: wrap; gap: 15px; }
.analytics-consent { position: fixed; z-index: 20; inset: auto 24px 24px; width: min(720px, calc(100% - 48px)); margin-inline: auto; background: #20182e; border: 1px solid #8066a0; border-radius: 14px; padding: 20px 22px; box-shadow: 0 14px 70px #0009; display: flex; gap: 22px; align-items: center; }
.analytics-consent > div:first-child { flex: 1; }
.analytics-consent strong { font-size: 17px; color: var(--ink); }
.analytics-consent p { margin: 7px 0 0; font-size: 12px; line-height: 1.6; color: var(--muted); }
.analytics-consent a { color: var(--purple); text-underline-offset: 3px; }
.consent-actions { display: flex; flex-direction: column; gap: 8px; flex-shrink: 0; }
.consent-actions button { background: #ffffff09; border: 1px solid #a593bd; border-radius: 8px; color: var(--ink); padding: 11px 13px; font-size: 12px; font-weight: 700; min-height: 40px; }
.consent-actions [data-consent="granted"], .consent-actions [data-consent="save"] { background: var(--lime); border-color: var(--lime); color: #19141e; }
.consent-settings { width: 100%; }
.consent-settings .consent-toggle { margin-top: 16px; }
.consent-settings .consent-actions { margin-top: 16px; }
.privacy-page { padding-bottom: 0 !important; }
.privacy-content { max-width: 760px; padding-top: 42px; }
.privacy-content h1 { margin: 14px 0; font: 400 clamp(37px, 7vw, 62px)/1.1 var(--font-serif); letter-spacing: -2px; }
.privacy-content h1 em { color: var(--lime); }
.privacy-intro { color: var(--muted); font-size: 17px; }
.privacy-content section { margin: 30px 0; }
.privacy-content h2 { font-size: 19px; color: var(--ink); margin: 0 0 14px; }
.privacy-content section p { font-size: 14px; line-height: 1.75; color: var(--muted); }
.privacy-content section a { color: var(--purple); text-underline-offset: 3px; }
.privacy-choice { border: 1px solid #604878; background: var(--surface); border-radius: 14px; padding: 24px; }
.consent-toggle { display: flex; align-items: center; gap: 12px; font-size: 16px; cursor: pointer; }
.consent-toggle input { width: 19px; height: 19px; accent-color: var(--lime); flex-shrink: 0; }
.back-link { font-size: 12px; color: var(--purple); text-decoration: none; }
#privacy-status { margin-bottom: 0; }
.skip-link { position: fixed; z-index: 10; top: 10px; left: 10px; transform: translateY(-150%); padding: 12px; background: var(--lime); color: #19141e; border-radius: 8px; }
.skip-link:focus { transform: translateY(0); }
.noscript { text-align: center; padding: 20px; color: var(--purple); }
.start-fresh, .quick-result { display: none; }
.is-result-page .intro { justify-content: center; text-align: center; padding: 34px 0 28px; }
.is-result-page .intro h1 { font-size: clamp(34px, 5vw, 54px); max-width: 760px; overflow-wrap: anywhere; }
.is-result-page .intro .eyebrow { color: var(--purple); }
.is-result-page .calculator { display: block; max-width: 820px; margin-inline: auto; }
.is-result-page .ingredients, .is-result-page .stamp, .is-result-page .method, .is-result-page .result-profiles, .is-result-page .quick-result { display: none; }
.is-result-page .forecast { position: relative; top: auto; padding: 32px 44px 24px; }
.is-result-page .forecast h2, .is-result-page .duo-label { text-align: center; }
.is-result-page .duo-label { font-size: 20px; color: var(--ink); margin-top: 15px; }
.is-result-page .number-block strong { font-size: 140px; }
.is-result-page .number-block span { font-size: 34px; }
.is-result-page .result-numbers { max-width: 600px; width: 100%; margin: 22px auto 0; }
.is-result-page .verdict { font-size: 21px; }
.is-result-page .source-link, .is-result-page .meter-box { display: none; }
.is-result-page:not(.missing-result) .forecast > .section-top,
.is-result-page:not(.missing-result) #forecast-title { display: none; }
.is-result-page .intro-copy { display: block; max-width: 550px; margin-inline: auto; }
.is-result-page .intro .eyebrow { overflow-wrap: anywhere; }
.is-result-page #receipt-details { padding-top: 3px; border-top: 1px solid var(--line); }
body:not(.is-result-page) #receipt-details { display: contents; }
.receipt-locked #receipt-details,
.receipt-locked #copy-link,
.receipt-locked .secondary-actions,
.receipt-locked #link-panel,
.receipt-locked #share-status,
body:not(.is-result-page) .receipt-settings,
.missing-result .receipt-settings { display: none; }
.receipt-settings { padding: 16px 18px; border: 1px solid #ffffff1f; border-radius: 12px; background: #00000020; margin: 20px 0 6px; }
.receipt-settings h3 { font-size: 13px; margin: 0 0 12px; color: var(--purple); }
.receipt-settings dl { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 0; }
.receipt-settings dl > div { min-width: 0; overflow-wrap: anywhere; }
.receipt-settings dt { font-size: 13px; font-weight: 700; }
.receipt-settings dd { margin: 6px 0 0; font-size: 12px; line-height: 1.6; color: var(--muted); }
.receipt-mode { font-size: 11px; line-height: 1.5; color: var(--muted); margin: 12px 0 0; }
.is-result-page .start-fresh { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 13px; color: var(--purple); text-decoration: none; border-top: 1px solid #ffffff15; padding-top: 19px; margin-top: 20px; }
.is-result-page .start-fresh:hover { text-decoration: underline; }
.missing-result .meter-box, .missing-result .secondary-actions, .missing-result .primary-button { display: none; }
.glaze-game { margin: 0 0 22px; padding: 22px; border: 1px solid #b693db48; border-radius: 16px; background: radial-gradient(ellipse at 50% 42%, #96644022, transparent 64%), #100c19; overflow: hidden; }
.glaze-heading { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.glaze-heading .eyebrow { font-size: 9px; letter-spacing: 1.6px; margin: 0 0 7px; }
.glaze-heading h3 { margin: 0; color: #fff4df; font: italic 30px/1.1 var(--font-serif); letter-spacing: -.8px; }
.glaze-reset { background: #ffffff08; border: 1px solid #ffffff24; color: var(--muted); border-radius: 99px; min-height: 44px; padding: 9px 13px; font-size: 12px; flex-shrink: 0; white-space: nowrap; }
.glaze-reset:hover { color: var(--ink); background: #ffffff12; }
.glaze-rules { color: var(--muted); font-size: 12px; line-height: 1.6; margin: 10px 0 0; }
.glaze-tap { display: block; position: relative; width: 100%; padding: 0 0 14px; background: transparent; color: var(--ink); border-radius: 12px; user-select: none; -webkit-user-select: none; touch-action: manipulation; }
.glaze-tap:focus-visible, .glaze-reset:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
.reveal-visual { display: block; }
.glaze-scene { display: block; width: 100%; max-width: 400px; height: auto; margin: -12px auto -10px; overflow: hidden; stroke: none; }
.reveal-fallback { display: grid; place-items: center; width: 100%; max-width: 400px; aspect-ratio: 5 / 4; margin: 0 auto; color: #fff4df; font: italic 30px/1.2 var(--font-serif); background: radial-gradient(ellipse, #f4c99115, transparent 66%); }
.glaze-tap-label { display: inline-flex; align-items: center; gap: 14px; font-size: 13px; font-weight: 700; }
.glaze-tap-label > span { padding: 5px 8px; color: #211827; background: var(--lime); border-radius: 6px; font-size: 11px; }
.glaze-score { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 15px; border-top: 1px solid #ffffff15; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.glaze-clicks { font-size: 25px; color: var(--ink); letter-spacing: -1px; margin-right: 3px; }
.glaze-percent { color: var(--lime); }
.glaze-progress { height: 5px; background: #ffffff12; border-radius: 99px; margin: 10px 0; overflow: hidden; }
.glaze-progress > span { display: block; height: 100%; background: var(--lime); border-radius: inherit; transition: width .2s ease-out; }
.glaze-status { color: var(--muted); min-height: 36px; font-size: 12px; line-height: 1.5; margin: 10px 0 0; }
.glaze-level { transition: stroke-dasharray .4s cubic-bezier(.2,.7,.3,1); }
.glaze-coating { transition: opacity .15s ease-out; }
.glaze-center { transition: opacity .25s ease-out; }
.glaze-pour, .glaze-splash, .glaze-overflow, .glaze-puddle, .glaze-spill-drops { opacity: 0; }
.glaze-donut { transform-origin: 200px 185px; }
.is-pouring .glaze-donut { animation: donut-bounce .52s ease-out; }
.is-pouring .glaze-pour { transform-origin: 151px 0; animation: glaze-pour .5s ease-out; }
.is-pouring .glaze-splash { transform-origin: 151px 124px; animation: glaze-splash .55s ease-out; }
.glaze-game[data-phase="spilled"] .glaze-overflow { opacity: 1; transform-origin: 200px 190px; animation: glaze-overflow .75s .08s cubic-bezier(.2,.6,.3,1) both; }
.glaze-game[data-phase="spilled"] .glaze-puddle { opacity: 1; transform-origin: 200px 260px; animation: glaze-puddle .7s .22s ease-out both; }
.glaze-game[data-phase="spilled"] .glaze-spill-drops { opacity: 0; transform-origin: 200px 240px; animation: glaze-splash .65s .18s ease-out; }
.glaze-finale-face, .glaze-celebration-halo, .glaze-spark-rays, .glaze-finale-stars, .glaze-spark { opacity: 0; }
.glaze-character { transform-origin: 200px 235px; }
/* The spill settles at .92s; the expression and back burst follow at 1.02s.
   CSS owns the sequence, so Replay/removal cancels everything without timers. */
.glaze-game[data-phase="spilled"] .glaze-character { animation: donut-finale 1.25s 1.02s both; }
.glaze-game[data-phase="spilled"] .glaze-finale-face { opacity: 1; transform-origin: 200px 195px; animation: face-reveal .55s 1.02s both; }
.glaze-game[data-phase="spilled"] .glaze-tongue { transform-origin: 200px 223px; animation: tongue-wag .8s 1.3s both; }
.glaze-game[data-phase="spilled"] .glaze-celebration-halo { opacity: 1; animation: face-reveal .9s 1.02s both; transform-origin: 200px 160px; }
.glaze-game[data-phase="spilled"] .glaze-spark-rays { opacity: .45; transform-origin: 200px 160px; animation: spark-rays .8s 1.02s both; }
.glaze-game[data-phase="spilled"] .glaze-finale-stars { opacity: .85; transform-origin: 200px 160px; animation: face-reveal .8s 1.15s both; }
.glaze-game[data-phase="spilled"] .glaze-spark { animation: spark-burst 1.1s var(--spark-delay) cubic-bezier(.15,.65,.3,1) both; }
.glaze-game[data-phase="spilled"] .glaze-percent, .glaze-game[data-phase="spilled"] .glaze-status, .glaze-game[data-phase="spilled"] .glaze-tap-label { color: var(--pink); }
.glaze-game[data-phase="spilled"] .glaze-progress > span { background: var(--pink); }
.glaze-tap[aria-disabled="true"] { cursor: default; }
@keyframes donut-bounce { 0%, 100% { transform: scale(1); } 35% { transform: translateY(5px) scale(1.035,.95); } 70% { transform: translateY(-2px) scale(.99,1.025); } }
@keyframes glaze-pour { 0% { opacity: 0; transform: scaleY(0); } 22%, 60% { opacity: 1; transform: scaleY(1); } 100% { opacity: 0; transform: translateY(20px) scaleY(.7); } }
@keyframes glaze-splash { 0% { opacity: 0; transform: scale(.4); } 35% { opacity: 1; } 100% { opacity: 0; transform: translateY(10px) scale(1.3); } }
@keyframes glaze-overflow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes glaze-puddle { from { opacity: 0; transform: scale(.25); } to { opacity: 1; transform: scale(1); } }
@keyframes donut-finale { 0%, 100% { transform: rotate(0) scale(1); } 20% { transform: translateY(-7px) rotate(-5deg) scale(1.03); } 43% { transform: translateY(-3px) rotate(5deg); } 64% { transform: rotate(-3deg); } 82% { transform: rotate(1.5deg); } }
@keyframes face-reveal { 0% { opacity: 0; transform: scale(.65); } 65% { opacity: 1; transform: scale(1.07); } 100% { opacity: 1; transform: scale(1); } }
@keyframes tongue-wag { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-9deg) scaleY(1.08); } 65% { transform: rotate(7deg); } }
@keyframes spark-rays { 0% { opacity: 0; transform: scale(.45); } 35% { opacity: .95; } 100% { opacity: .45; transform: scale(1); } }
@keyframes spark-burst { 0% { opacity: 0; transform: translate(0,0) scale(.2); } 15% { opacity: 1; } 60% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--spark-x),var(--spark-y)) rotate(100deg) scale(.4); } }
/* All variants share receipt timing; only their SVG motion differs. */
.cupcake-level, .milkshake-level { transition: y .4s cubic-bezier(.2,.7,.3,1), height .4s cubic-bezier(.2,.7,.3,1); }
.milkshake-surface { transition: cy .4s cubic-bezier(.2,.7,.3,1); }
.cupcake-tower, .milkshake-cream { transition: opacity .2s ease-out; }
.cupcake-body { transform-origin: 200px 240px; }
.milkshake-body { transform-origin: 200px 265px; }
.is-pouring .cupcake-body { animation: cupcake-bounce .5s ease-out; }
.is-pouring .milkshake-body { animation: milkshake-bounce .5s ease-out; }
.is-pouring .cupcake-pour { transform-origin: 200px 0; }
.is-pouring .cupcake-splash { transform-origin: 200px 81px; }
.is-pouring .milkshake-pour { transform-origin: 173px 0; }
.is-pouring .milkshake-splash { transform-origin: 173px 91px; }
.cupcake-tower { transform-origin: 200px 180px; }
.glaze-game[data-variant="cupcake"][data-phase="spilled"] .cupcake-tower { transform: translate(38px,50px) rotate(58deg) scale(.86); animation: frosting-tumble .85s .15s cubic-bezier(.25,.7,.35,1) both; }
.glaze-game[data-variant="cupcake"][data-phase="spilled"] .cupcake-trail { transform-origin: 200px 177px; }
.glaze-game[data-variant="milkshake"][data-phase="spilled"] .milkshake-overflow { transform-origin: 200px 85px; animation-duration: .85s; }
.glaze-game[data-variant="milkshake"][data-phase="spilled"] .milkshake-cream { transform-origin: 200px 93px; animation: cream-overflow .8s ease-out both; }
.glaze-game[data-variant="cupcake"][data-phase="spilled"] .glaze-puddle,
.glaze-game[data-variant="milkshake"][data-phase="spilled"] .glaze-puddle { transform-origin: 200px 269px; }
@keyframes cupcake-bounce { 0%, 100% { transform: scale(1); } 35% { transform: translateY(4px) scale(1.035,.96); } 70% { transform: translateY(-2px) scale(.985,1.025); } }
@keyframes milkshake-bounce { 0%, 100% { transform: rotate(0); } 35% { transform: translateY(3px) rotate(-2deg); } 70% { transform: translateY(-2px) rotate(1.5deg); } }
@keyframes frosting-tumble { 0% { transform: translate(0,0) rotate(0) scale(1); } 22% { transform: translate(0,-7px) rotate(-5deg) scale(1.02); } 53% { transform: translate(12px,11px) rotate(23deg) scale(1); } 82% { transform: translate(39px,53px) rotate(61deg) scale(.84); } 100% { transform: translate(38px,50px) rotate(58deg) scale(.86); } }
@keyframes cream-overflow { 0% { transform: scale(1); } 35% { transform: translateY(-3px) scale(1.1,1.06); } 65% { transform: translateY(2px) scale(1.025,.96); } 100% { transform: scale(1); } }
@media (max-width: 480px) {
  .glaze-game { padding: 16px 12px; }
  .glaze-heading h3 { font-size: 25px; }
  .glaze-reset { padding-inline: 10px; }
  .glaze-scene { margin-top: 0; }
}
@media (min-width: 1000px) {
  .ingredients, .forecast { padding-inline: 36px; }
}
@media (max-width: 950px) {
  .header-note { display: none; }
  .wrap { width: calc(100% - 44px); }
  .ingredients, .forecast { padding: 26px 23px; }
  .intro h1 { font-size: 62px; }
  .result-tag { display: none; }
  .number-block strong { font-size: 86px; }
  .result-numbers { grid-template-columns: 1fr 15px 1fr; }
  .secondary-button { font-size: 12px; }
}
@media (max-width: 760px) {
  body:not(.is-result-page) { padding-bottom: 76px; }
  .wrap { width: calc(100% - 32px); }
  .site-header { min-height: 77px; gap: 10px; }
  .wordmark { font-size: 31px; }
  .club-pill { font-size: 8px; padding: 9px 10px; }
  .intro { padding: 25px 0 28px; gap: 12px; align-items: flex-start; }
  .intro .eyebrow { font-size: 9px; letter-spacing: 1px; }
  .intro h1 { font-size: clamp(40px, 12vw, 49px); letter-spacing: -2px; max-width: none; margin: 10px 0; }
  .intro-copy { font-size: 13px; max-width: 270px; line-height: 1.6; }
  .stamp { display: none; }
  .calculator { grid-template-columns: 1fr; gap: 17px; }
  .ingredients, .forecast { padding: 24px; border-radius: 16px; }
  .forecast { position: relative; top: auto; }
  .ingredients h2 { font-size: 32px; margin-bottom: 24px; }
  .female-section { margin-top: 25px; }
  .number-block strong { font-size: 104px; }
  .number-block span { font-size: 28px; }
  .result-numbers { grid-template-columns: 1fr 20px 1fr; }
  .secondary-button { font-size: 13px; }
  .site-footer { flex-wrap: wrap; justify-content: space-between; padding: 24px 0; }
  .site-footer p { order: 3; width: 100%; text-align: left; }
  .analytics-consent { inset: auto 12px max(88px, env(safe-area-inset-bottom)); width: calc(100% - 24px); padding: 18px; display: block; }
  .consent-actions { flex-direction: row; margin-top: 14px; gap: 10px; }
  .consent-actions button { flex: 1; }
  .is-result-page .analytics-consent, .privacy-page .analytics-consent { bottom: max(12px, env(safe-area-inset-bottom)); }
  .privacy-content { padding-top: 28px; }
  .privacy-choice { padding: 20px; }
  .quick-result { display: flex; position: fixed; z-index: 5; left: 0; right: 0; bottom: 0; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px max(12px, env(safe-area-inset-bottom)); background: #15121ef5; backdrop-filter: blur(12px); border-top: 1px solid #604878; }
  .quick-result p { font-size: 12px; margin: 0; white-space: nowrap; }
  .quick-result strong { font-size: 21px; color: var(--lime); font-variant-numeric: tabular-nums; }
  .quick-result strong:last-child { color: var(--pink); }
  .quick-result p span { color: var(--muted); margin: 0 3px; }
  .quick-result a { padding: 11px 12px; font-size: 12px; font-weight: 700; text-decoration: none; color: #19141e; background: var(--lime); border-radius: 8px; white-space: nowrap; }
  .is-result-page .intro { padding: 25px 0 22px; }
  .is-result-page .intro h1 { max-width: none; font-size: 40px; }
  .is-result-page .intro-copy { display: block; max-width: 310px; }
  .receipt-settings dl { grid-template-columns: 1fr; gap: 12px; }
  .is-result-page .forecast h2 { display: none; }
  .is-result-page .forecast { padding: 24px; }
  .is-result-page .number-block strong { font-size: 108px; }
  .is-result-page .number-block span { font-size: 28px; }
  .is-result-page .verdict { font-size: 18px; }
  .is-result-page .duo-label { font-size: 17px; }
}
@media (max-width: 360px) {
  .wrap { width: calc(100% - 24px); }
  .wordmark { font-size: 26px; }
  .stamp { display: none; }
  .intro h1 { font-size: 40px; }
  .ingredients, .forecast, .is-result-page .forecast { padding-inline: 19px; }
  .number-block strong, .is-result-page .number-block strong { font-size: 89px; }
  .secondary-button { font-size: 11px; }
  .profile-fields { gap: 11px; }
  .input-shell { padding-inline: 10px; }
  .study-readout { padding-inline: 12px; }
  .quick-result { padding-inline: 12px; gap: 8px; }
  .quick-result p { font-size: 11px; }
  .quick-result a { font-size: 11px; padding-inline: 10px; }
}
.number-block.has-large-number strong { font-size: clamp(60px, 7vw, 86px); letter-spacing: -4px; }
.is-result-page .number-block.has-large-number strong { font-size: clamp(64px, 10vw, 112px); }
@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
  .glaze-game[data-phase="spilled"] .glaze-finale-face,
  .glaze-game[data-phase="spilled"] .glaze-finale-stars,
  .glaze-game[data-phase="spilled"] .glaze-celebration-halo { opacity: 1 !important; transform: none !important; }
  .glaze-spark, .glaze-pour, .glaze-splash, .glaze-spill-drops { display: none; }
}

/* Translated copy may use more lines than English, especially on small screens. */
.site-header > *, .section-top > *, .glaze-heading > div, .meter-heading > * { min-width: 0; }
.club-pill { flex: 0 1 auto; overflow-wrap: anywhere; max-width: 48%; white-space: normal; text-align: center; line-height: 1.4; }
.header-note, .eyebrow, .tiny-tag, .result-tag { overflow-wrap: anywhere; }
.tiny-tag { max-width: 45%; text-align: right; }
.result-tag { white-space: normal; text-align: center; max-width: 48%; }
.text-button { flex-shrink: 0; }
.stamp span { text-align: center; max-width: 90px; }
.input-shell span { max-width: 55%; line-height: 1.25; white-space: normal; overflow-wrap: anywhere; }
.meter-heading { flex-wrap: wrap; row-gap: 5px; }
.primary-button, .secondary-button, .link-panel button, .glaze-reset { line-height: 1.4; }
.primary-button > span, .secondary-button > span { min-width: 0; overflow-wrap: anywhere; }
.number-block span { overflow-wrap: anywhere; }
.glaze-reset { white-space: normal; max-width: 38%; }
.glaze-score { flex-wrap: wrap; row-gap: 5px; }
.glaze-tap-label { text-align: center; }
html:lang(zh) .intro h1, html:lang(ja) .intro h1, html:lang(th) .intro h1,
html:lang(zh) .ingredients h2, html:lang(ja) .ingredients h2, html:lang(th) .ingredients h2,
html:lang(zh) .glaze-heading h3, html:lang(ja) .glaze-heading h3, html:lang(th) .glaze-heading h3,
html:lang(zh) .privacy-content h1, html:lang(ja) .privacy-content h1, html:lang(th) .privacy-content h1 { letter-spacing: 0; line-height: 1.3; }
@media (max-width: 760px) {
  html:not([lang="en"]) body:not(.is-result-page):not(.privacy-page) { padding-bottom: 110px; }
  .quick-result p { flex: 1; min-width: 0; white-space: normal; line-height: 1.5; }
  .quick-result a { flex-shrink: 0; max-width: 48%; white-space: normal; text-align: center; line-height: 1.4; }
}

.study-readout > div { flex: 1; min-width: 0; overflow-wrap: anywhere; }
