/* Sajuchu — sakura × Aero, at blue hour ("Twilight Sakura", research/reports/Saju rivals conversion and palette.md).
   Every text/background pair is AA in both themes (scripts/check.mjs measures the tokens). Colours that fail 3:1 on
   glass (sakura, aqua, gold, tiger, lavender, lime) are decoration only, never text. */

/* Type (owner 2026-11-30, "more adult but still magical", option B "Moon Palace"): Cormorant Garamond, a classical
   serif, for titles, prices and numbers; the visitor's own system sans for everything read; Noto Serif KR (the hanja
   subset, which carries the hangul too) for Korean. */
@font-face { font-family: "Cormorant Garamond"; src: url(/a/fonts/cormorant.92edfa6c66.woff2) format("woff2"); font-weight: 500 700; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url(/a/fonts/cormorant-italic.e25d6e3479.woff2) format("woff2"); font-weight: 500 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Sajuchu Hanja"; src: url(/a/fonts/hanja.22e7ad95d6.woff2) format("woff2"); font-weight: 700; font-display: swap; }

:root {
  color-scheme: light dark;
  --ink: #1d4766;
  --ink-soft: #3b6080;
  --candy: #a82c86;
  --sakura: #ffa3c8;
  --aqua: #4cd3e6;
  --gold: #ffd978;
  --tiger: #f9ae6b;
  --lavender: #c4b0ff;
  --lime: #9ef0c4;
  --sky-top: #d3f6ee;
  --sky-mid: #dde5ff;
  --sky-bottom: #ffe3f1;
  --page: #f3f7ff;
  --glass: rgb(251 253 255 / 0.8);
  --glass-solid: #fbfdff;
  --glass-hi: rgb(255 255 255 / 0.85);
  --edge: conic-gradient(from 140deg, #9ef0c4, #4cd3e6, #c4b0ff, #ffa3c8, #ffd978, #9ef0c4);
  --lock: #fff4df;
  --line: rgb(42 63 115 / 0.14);
  --shadow: 0 18px 40px -18px rgb(90 90 200 / 0.35), 0 4px 14px -6px rgb(255 120 190 / 0.22);
  --candy-1: #ffddf2; --candy-2: #ffaedd; --candy-3: #f58acf; --candy-4: #e879d0; --candy-label: #561a45;
  --holo: linear-gradient(100deg, #a82c86 0%, #5a4bd1 30%, #1d7a8c 58%, #a82c86 86%, #5a4bd1 100%);
  --night-1: #07182e; --night-2: #141b45; --night-3: #2f1646;
  --wood: #3fae8f; --fire: #f26d9b; --earth: #e0b44d; --metal: #9fb2c0; --water: #1e8fc4;
  --wood-t: #11674d; --fire-t: #b42f66; --earth-t: #7c540b; --metal-t: #566379; --water-t: #165f8a;
  --r-lg: 28px; --r-md: 20px; --r-sm: 14px;
  --bar-h: 0px;
  --serif: "Cormorant Garamond", "Sajuchu Hanja", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Sajuchu Hanja", sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #eaf7ff;
    --ink-soft: #b3cce2;
    --candy: #ff94d6;
    --sakura: #ffa8ce;
    --aqua: #5fe3f2;
    --gold: #ffdc80;
    --lavender: #cbb8ff;
    --sky-top: #07182e;
    --sky-mid: #141b45;
    --sky-bottom: #2f1646;
    --page: #0c1633;
    --glass: rgb(23 39 74 / 0.74);
    --glass-solid: #17274a;
    --glass-hi: rgb(255 255 255 / 0.1);
    --lock: #33293f;
    --line: rgb(242 238 255 / 0.14);
    --shadow: 0 22px 46px -18px rgb(0 0 0 / 0.6), 0 0 30px -10px rgb(124 242 207 / 0.22);
    --holo: linear-gradient(100deg, #9ef0c4 0%, #7adbf4 28%, #c4b0ff 52%, #ffa3c8 76%, #9ef0c4 100%);
    --wood-t: #6fe0b8; --fire-t: #ff9ac0; --earth-t: #f5d06e; --metal-t: #e6eaf0; --water-t: #8ccbf0;
  }
}

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; scroll-padding-bottom: calc(var(--bar-h) + 22px); }
body {
  margin: 0; min-height: 100vh; overflow-x: clip;
  font: 400 17px/1.6 var(--sans);
  color: var(--ink); background: var(--page);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--candy); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { text-decoration-thickness: 2.5px; }
:focus-visible { outline: 3px solid var(--candy); outline-offset: 3px; border-radius: 10px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.04; margin: 0; letter-spacing: -.012em; }
p { margin: 0; }
.hanja, [lang="zh-Hant"] { font-family: "Sajuchu Hanja", "Noto Serif KR", serif; font-weight: 700; }
[lang="ko"] { font-family: "Sajuchu Hanja", "Noto Serif KR", serif; font-weight: 700; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--glass-solid); color: var(--ink); padding: 10px 16px; border-radius: 12px; }
.skip:focus { top: 12px; }
/* Nothing may widen the page on a phone: the spinning zodiac ring and the hero's halo poke past the edge as they turn,
   and mobile browsers then zoom out and let the page slide sideways (owner 2026-11-30). */
main { overflow-x: clip; }
.wrap { width: 100%; max-width: 1160px; margin-inline: auto; padding-inline: 16px; }
@media (min-width: 720px) { .wrap { padding-inline: 28px; } }
[hidden] { display: none !important; }

/* ---------------------------------------------------------------- the sky behind everything */
.sky { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden;
  background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 48%, var(--sky-bottom) 100%); }
.sky .blob { position: absolute; border-radius: 50%; scale: 1.5; opacity: .55; animation: drift 26s ease-in-out infinite alternate; }
.sky .blob { background: radial-gradient(closest-side, var(--blob) 30%, transparent); }
.sky .b1 { width: 52vmax; height: 52vmax; left: -18vmax; top: -16vmax; --blob: #9ef0c4; opacity: .38; }
.sky .b2 { width: 46vmax; height: 46vmax; right: -16vmax; top: 18vh; --blob: #b8c8ff; opacity: .45; animation-duration: 32s; }
.sky .b3 { width: 50vmax; height: 40vmax; left: 10vw; bottom: -22vmax; --blob: #ffc2e2; animation-duration: 38s; }
@media (prefers-color-scheme: dark) {
  .sky .b1 { --blob: #5ff2c8; opacity: .22; }
  .sky .b2 { --blob: #6f9bff; opacity: .3; }
  .sky .b3 { --blob: #b98bff; opacity: .3; }
}
.sky .grain { position: absolute; inset: -50%; opacity: .035;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='160' height='160' filter='url(%23n)'/></svg>"); }
.stars { position: absolute; inset: 0; opacity: 0; }
@media (prefers-color-scheme: dark) { .sky .stars { opacity: 1; } }
@media (prefers-color-scheme: light) { .sky .stars { display: none; } }
.stars i { position: absolute; width: 2px; height: 2px; border-radius: 50%; background: #fff; box-shadow: 0 0 6px 1px #ffe89a; animation: twinkle 3.2s ease-in-out infinite; }
/* Nothing animates where it can't be seen (src/site.ts marks the sections that are off screen). */
.off, .off *, .off::before, .off::after, .off *::before, .off *::after { animation-play-state: paused !important; }
@keyframes drift { to { transform: translate3d(6vw, 4vh, 0) scale(1.08); } }
@keyframes twinkle { 0%, 100% { opacity: .15; transform: scale(.6); } 50% { opacity: 1; transform: scale(1.2); } }

/* ---------------------------------------------------------------- glass */
.glass {
  position: relative; border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--glass-hi), transparent 38%), var(--glass);
  -webkit-backdrop-filter: blur(22px) saturate(1.3); backdrop-filter: blur(22px) saturate(1.3);
  box-shadow: var(--shadow), inset 0 1px 0 rgb(255 255 255 / .7);
}
/* the prismatic rim: a conic gradient masked to a 1.5 px ring */
.glass::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: var(--edge); opacity: .7;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
@media (prefers-color-scheme: dark) { .glass { box-shadow: var(--shadow), inset 0 1px 0 rgb(255 255 255 / .12); } }

/* ---------------------------------------------------------------- buttons */
.btn {
  --h: 48px; position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--h); padding: 0 24px; border: 0; border-radius: 999px; cursor: pointer; overflow: hidden;
  font: 650 17px/1 var(--sans); text-decoration: none; white-space: nowrap;
  transition: transform .18s var(--spring), box-shadow .2s var(--ease), filter .2s;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn:active { transform: translateY(1px) scale(.98); }
/* The main button (owner 2026-11-30: "still feels too kiddy"): moonlit rose to violet with a thin gold edge, white
   text (AA on every stop), no candy gloss; the glint below still sweeps across now and then. */
.btn-candy {
  color: #fff; text-shadow: 0 1px 1px rgb(40 10 60 / .35); letter-spacing: .01em;
  background: linear-gradient(135deg, #b23a8a 0%, #8a3fb8 55%, #5b4bd1 100%);
  box-shadow: inset 0 0 0 1px rgb(255 228 160 / .6), inset 0 1px 0 rgb(255 255 255 / .22), 0 12px 26px -12px rgb(120 50 180 / .75);
}
.btn-candy:hover { box-shadow: inset 0 0 0 1px rgb(255 228 160 / .9), inset 0 1px 0 rgb(255 255 255 / .3), 0 16px 30px -12px rgb(120 50 180 / .85); }
/* a glint that sweeps across now and then */
.btn-candy::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%; transform: skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgb(255 255 255 / .55), transparent); animation: glint 5.5s ease-in-out 2s infinite; pointer-events: none; }
@keyframes glint { 0%, 70% { left: -60%; } 100% { left: 130%; } }
.btn-lg { --h: 58px; font-size: 19px; padding: 0 30px; width: 100%; }
.btn-sm { --h: 40px; font-size: 15px; padding: 0 16px; }
.btn-ghost { color: var(--ink); background: var(--glass); box-shadow: inset 0 0 0 1.5px var(--line), 0 6px 16px -10px rgb(60 40 120 / .4); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--candy); }

/* ---------------------------------------------------------------- header */
.top { position: sticky; top: 0; z-index: 40; padding-top: 10px; }
.top-in { display: flex; align-items: center; gap: 12px; height: 60px; border-radius: 999px; padding-inline: 10px 10px;
  background: var(--glass); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 10px 30px -18px rgb(60 40 140 / .5), inset 0 0 0 1px var(--line); max-width: 1120px; }
.logo { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; margin-right: auto; }
.logo img { width: 40px; height: 40px; border-radius: 11px; box-shadow: 0 4px 10px -4px rgb(30 120 170 / .6); }
.logo-name { font: 650 24px/1 var(--sans); letter-spacing: -.3px; margin-top: 3px; }
.logo-ko { font-size: 13px; color: var(--candy); letter-spacing: 2px; margin-top: 3px; }
.nav { display: none; gap: 4px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 700; font-size: 15.5px; padding: 8px 12px; border-radius: 999px; }
.nav a:hover { background: var(--glass-hi); }
@media (min-width: 900px) { .nav { display: flex; } }
@media (max-width: 380px) { .logo-ko { display: none; } }
.badge-link { display: inline-flex; border-radius: 9px; }
.badge-link img { height: 40px; width: auto; }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; padding: 28px 0 40px; }
.hero-grid { display: grid; gap: 22px; grid-template-areas: "copy" "stage" "form"; }
.hero-grid > .hero-copy { grid-area: copy; }
.hero-grid > .stage { grid-area: stage; }
.hero-grid > .calc { grid-area: form; }
@media (min-width: 960px) {
  .hero { padding: 56px 0 72px; }
  /* copy beside the animals, then the calculator as one wide card under both: a tall left column (copy + form) beside
     the animals alone left the lower right empty (owner, 2026-12-01: "wtf is the bottom right space?") */
  .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); grid-template-areas: "copy stage" "form form"; column-gap: 48px; row-gap: 36px; align-items: center; }
  .hero-grid > .calc { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); column-gap: 20px; row-gap: 16px; align-items: start; padding: 28px 30px 24px; }
  .hero-grid > .calc > .calc-title, .hero-grid > .calc > .err, .hero-grid > .calc > .fine { grid-column: 1 / -1; }
  .hero-grid > .calc > .btn { align-self: end; }
}
.eyebrow { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; font-weight: 650; font-size: 14px; letter-spacing: .4px; color: var(--ink-soft);
  background: var(--glass); padding: 6px 14px 5px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); }
.dancheong { display: inline-flex; width: 50px; height: 6px; border-radius: 999px; overflow: hidden; box-shadow: 0 1px 4px rgb(36 60 107 / .3); }
.dancheong i { flex: 1; }
.dancheong i:nth-child(1) { background: var(--wood); } .dancheong i:nth-child(2) { background: var(--fire); }
.dancheong i:nth-child(3) { background: var(--earth); } .dancheong i:nth-child(4) { background: #f4f1ea; } .dancheong i:nth-child(5) { background: #2a3463; }
h1 { font-size: clamp(46px, 10.6vw, 86px); margin-top: 16px; text-wrap: balance; }
.holo { background: var(--holo); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: holo 9s linear infinite; padding-bottom: .06em; }
@keyframes holo { to { background-position: -220% 0; } }
.lede { margin-top: 16px; font-size: clamp(18px, 2.2vw, 21px); line-height: 1.55; color: var(--ink-soft); max-width: 36em; }
.lede strong { color: var(--ink); }
.facts { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 20px 0 0; }
.facts li { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; font-size: 15px; color: var(--ink);
  background: var(--glass); border-radius: 999px; padding: 6px 13px 5px; box-shadow: inset 0 0 0 1px var(--line); }
.facts li::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff, var(--candy-3)); box-shadow: 0 0 8px var(--candy-2); }

/* the stage: the tiger in a big glass bubble, three friends in orbit */
.stage { position: relative; height: clamp(300px, 78vw, 560px); max-width: 560px; width: 100%; margin-inline: auto; }
.bubble { position: absolute; border-radius: 50%;
  background: radial-gradient(circle at 30% 24%, rgb(255 255 255 / .95), rgb(255 255 255 / .35) 22%, rgb(205 236 255 / .18) 52%, rgb(198 168 245 / .28) 76%, rgb(255 159 184 / .4) 100%);
  box-shadow: inset -10px -16px 40px rgb(198 168 245 / .35), inset 10px 10px 30px rgb(255 255 255 / .6), 0 30px 60px -30px rgb(90 60 170 / .55); }
@media (prefers-color-scheme: dark) {
  .bubble { background: radial-gradient(circle at 30% 24%, rgb(255 255 255 / .55), rgb(255 255 255 / .12) 22%, rgb(122 219 244 / .1) 52%, rgb(210 182 255 / .2) 76%, rgb(255 148 207 / .32) 100%);
    box-shadow: inset -10px -16px 40px rgb(122 219 244 / .2), inset 10px 10px 30px rgb(255 255 255 / .12), 0 0 60px -10px rgb(210 182 255 / .5); }
}
.bubble::after { content: ""; position: absolute; left: 11%; top: 7%; width: 24%; height: 11%; border-radius: 50%; z-index: 2; pointer-events: none;
  background: linear-gradient(180deg, rgb(255 255 255 / .75), rgb(255 255 255 / 0)); transform: rotate(-32deg); }
@media (prefers-color-scheme: dark) { .bubble::after { background: linear-gradient(180deg, rgb(255 255 255 / .32), rgb(255 255 255 / 0)); } }
.bubble img { position: absolute; inset: 9%; width: 82%; height: 82%; object-fit: contain; }
.b-main { width: 74%; aspect-ratio: 1; left: 13%; top: 8%; animation: bob 4.2s ease-in-out infinite; }
.b-main img { inset: 6%; width: 88%; height: 88%; }
.b-o1 { width: 27%; aspect-ratio: 1; left: 0; top: 2%; animation: bob 3.6s ease-in-out .4s infinite; }
.b-o2 { width: 24%; aspect-ratio: 1; right: 0; top: 34%; animation: bob 3.9s ease-in-out 1.1s infinite; }
.b-o3 { width: 25%; aspect-ratio: 1; left: 4%; bottom: 2%; animation: bob 3.3s ease-in-out .7s infinite; }
.b-o4 { width: 13%; aspect-ratio: 1; right: 12%; bottom: 8%; animation: bob 3s ease-in-out .2s infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.halo { position: absolute; left: 50%; top: 52%; width: 92%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%;
  background: conic-gradient(from 0deg, rgb(110 211 238 / .0), rgb(198 168 245 / .55), rgb(255 159 184 / .5), rgb(255 211 107 / .45), rgb(110 211 238 / .0));
  filter: blur(34px); opacity: .7; animation: spin 24s linear infinite; }
@keyframes spin { to { rotate: 360deg; } }
.spark { position: absolute; width: 18px; height: 18px; background: #fff; clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
  filter: drop-shadow(0 0 6px #ffe89a); animation: twinkle 2.8s ease-in-out infinite; }
.s1 { left: 22%; top: 6%; } .s2 { right: 18%; top: 14%; width: 12px; height: 12px; animation-delay: .9s; }
.s3 { right: 6%; bottom: 30%; animation-delay: 1.6s; } .s4 { left: 34%; bottom: 4%; width: 11px; height: 11px; animation-delay: 2.2s; }
.petals { position: absolute; inset: -10% -6% 0; pointer-events: none; overflow: hidden; }
.petals i { position: absolute; top: -6%; width: 13px; height: 13px; border-radius: 80% 4px 80% 4px;
  background: linear-gradient(135deg, #ffd0e0, #ff8fc0); opacity: 0; animation: fall 11s linear infinite; }
.petals i:nth-child(1) { left: 8%; animation-delay: 0s; } .petals i:nth-child(2) { left: 30%; animation-delay: 3.2s; animation-duration: 13s; }
.petals i:nth-child(3) { left: 55%; animation-delay: 6s; } .petals i:nth-child(4) { left: 74%; animation-delay: 1.6s; animation-duration: 12s; }
.petals i:nth-child(5) { left: 92%; animation-delay: 8s; } .petals i:nth-child(6) { left: 44%; animation-delay: 9.5s; animation-duration: 14s; }
@keyframes fall { 0% { transform: translate3d(0, 0, 0) rotate(0); opacity: 0; } 8% { opacity: .9; } 100% { transform: translate3d(60px, 640px, 0) rotate(340deg); opacity: 0; } }

/* ---------------------------------------------------------------- the calculator */
.calc { padding: 22px 18px 18px; display: grid; gap: 14px; }
@media (min-width: 520px) { .calc { padding: 26px 26px 22px; } }
.calc-title { font-size: 27px; }
.calc-title small { display: block; font: 600 15px/1.4 var(--sans); color: var(--ink-soft); margin-top: 4px; }
.field { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 7px; }
.field > legend, .field > label, .lbl { font-weight: 650; font-size: 15px; color: var(--ink); padding: 0; }
.opt { font-weight: 600; color: var(--ink-soft); }
.selrow { display: grid; grid-template-columns: 1fr 1.5fr 1.25fr; gap: 8px; }
select, input[type="time"], input[type="text"] {
  width: 100%; min-height: 50px; padding: 0 12px; font: 600 17px/1 var(--sans); color: var(--ink);
  background: var(--glass-solid); border: 1.5px solid var(--line); border-radius: var(--r-sm);
  box-shadow: inset 0 2px 0 rgb(255 255 255 / .7), 0 4px 12px -8px rgb(60 40 140 / .4); appearance: none; -webkit-appearance: none;
}
select { background-image: linear-gradient(45deg, transparent 50%, var(--ink-soft) 50%), linear-gradient(135deg, var(--ink-soft) 50%, transparent 50%);
  background-position: calc(100% - 17px) 22px, calc(100% - 12px) 22px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 28px; }
@media (prefers-color-scheme: dark) { select, input[type="time"], input[type="text"] { box-shadow: inset 0 1px 0 rgb(255 255 255 / .08); } }
select:focus-visible, input:focus-visible { outline: 3px solid var(--candy); outline-offset: 1px; }
.timerow { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; }
.check { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; cursor: pointer; min-height: 44px; }
.check input { width: 22px; height: 22px; accent-color: var(--candy-4); }
.fine { font-size: 14px; color: var(--ink-soft); text-align: center; }
.fine strong { color: var(--ink); }
.err { color: var(--candy); font-weight: 650; font-size: 15px; }
.zone-now { font-size: 14px; color: var(--ink-soft); }

/* ---------------------------------------------------------------- sections */
.sec { position: relative; padding: 56px 0; }
@media (min-width: 960px) { .sec { padding: 80px 0; } }
.sec-head { max-width: 760px; margin-bottom: 34px; }
.sec-head.center { margin-inline: auto; text-align: center; }
.kicker { display: inline-block; font-weight: 650; font-size: 14px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--candy); margin-bottom: 10px; }
h2 { font-size: clamp(36px, 6.4vw, 60px); text-wrap: balance; }
.sec-head p { margin-top: 14px; font-size: 19px; color: var(--ink-soft); }

/* reveal on scroll (only once JS says motion is fine) */
.rise.pre { opacity: 0; transform: translateY(26px); }
.rise.pre.in { opacity: 1; transform: none; transition: opacity .8s var(--ease), transform .8s var(--ease); }

/* ---------------------------------------------------------------- the chart (result) */
.chart { padding-top: 24px; }
.chart-head { text-align: center; margin-bottom: 22px; }
.chart-head h2 { font-size: clamp(30px, 5vw, 48px); }
.chart-head .sub { margin-top: 8px; color: var(--ink-soft); font-weight: 700; }
.flash { position: fixed; inset: 0; z-index: 80; background: #fff; opacity: 0; pointer-events: none; }
.flash.go { animation: flash .7s ease-out; }
@keyframes flash { 0% { opacity: 0; } 12% { opacity: .92; } 100% { opacity: 0; } }

/* four cuts: the photo-booth strip */
.strip { list-style: none; margin: 0 auto; padding: 12px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; max-width: 760px;
  border-radius: 26px; background: linear-gradient(160deg, #fff 0%, #fdf4ff 100%); box-shadow: var(--shadow), inset 0 0 0 1px rgb(255 255 255 / .9); }
@media (prefers-color-scheme: dark) { .strip { background: linear-gradient(160deg, #2c2559, #1d1844); box-shadow: var(--shadow), inset 0 0 0 1px rgb(255 255 255 / .1); } }
@media (min-width: 640px) { .strip { gap: 14px; padding: 16px; } }
.frame { position: relative; border-radius: 18px; padding: 8px 4px 10px; text-align: center; overflow: hidden;
  background: linear-gradient(180deg, var(--sky-top), var(--sky-mid) 60%, var(--sky-bottom)); }
.frame::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .7); }
.frame.me { box-shadow: 0 0 0 2.5px var(--candy-3), 0 0 22px -2px var(--candy-2); }
.frame .lbl { display: block; font: 650 12px/1.2 var(--sans); letter-spacing: .5px; text-transform: uppercase; color: var(--ink-soft); }
.frame.me .lbl { color: var(--candy); }
.frame .art { position: relative; width: 88%; aspect-ratio: 1; margin: 4px auto 2px; }
.frame .art img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 6px 8px rgb(80 50 140 / .25)); }
.seal { position: absolute; inset: 6%; display: grid; place-items: center; border-radius: 50%;
  background: radial-gradient(circle at 32% 26%, rgb(255 255 255 / .95), rgb(255 255 255 / .4) 30%, transparent 70%), var(--el, var(--lavender));
  box-shadow: inset 0 -6px 14px rgb(0 0 0 / .12), 0 8px 16px -8px rgb(60 40 140 / .5); }
.seal span { font: 700 clamp(22px, 6vw, 40px)/1 "Sajuchu Hanja", serif; color: #fff; text-shadow: 0 2px 6px rgb(0 0 0 / .35); }
.pillar-hj { display: flex; flex-direction: column; align-items: center; line-height: 1.05; margin-top: 2px; }
.pillar-hj span { font: 700 clamp(22px, 5.4vw, 38px)/1.05 "Sajuchu Hanja", serif; }
.frame .ko { display: block; font-size: clamp(15px, 3.4vw, 20px); margin-top: 4px; }
.frame .rr { display: block; font-size: 12.5px; font-weight: 700; color: var(--ink-soft); line-height: 1.25; }
.dots { display: flex; justify-content: center; gap: 4px; margin-top: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--el); box-shadow: inset 0 0 0 1px rgb(0 0 0 / .15); }
.frame.unknown .art, .frame.unknown .pillar-hj { opacity: .55; }
.js .strip.anim .frame { animation: cut .7s var(--spring) both; }
.strip.anim .frame:nth-child(2) { animation-delay: .18s; } .strip.anim .frame:nth-child(3) { animation-delay: .36s; } .strip.anim .frame:nth-child(4) { animation-delay: .54s; }
@keyframes cut { from { opacity: 0; transform: translateY(30px) rotateX(70deg) scale(.9); } to { opacity: 1; transform: none; } }

.chart-grid { display: grid; gap: 18px; margin-top: 22px; }
@media (min-width: 900px) { .chart-grid { grid-template-columns: 1.25fr 1fr; align-items: start; } }
.card { padding: 22px; }
@media (min-width: 640px) { .card { padding: 28px; } }
.card h3 { font-size: 25px; }
.card .meta { font-weight: 650; color: var(--ink-soft); font-size: 15px; margin-top: 2px; }
.card p.read { margin-top: 12px; font-size: 18px; line-height: 1.65; }
.dm-top { display: flex; gap: 16px; align-items: center; }
.medal { flex: 0 0 auto; width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; position: relative;
  background: radial-gradient(circle at 30% 26%, #fff, rgb(255 255 255 / .2) 46%, transparent 70%), var(--el, var(--lavender));
  box-shadow: 0 0 0 4px rgb(255 255 255 / .6), 0 0 28px -2px var(--el, var(--lavender)), inset 0 -8px 16px rgb(0 0 0 / .15); }
.medal span { font: 700 44px/1 "Sajuchu Hanja", serif; color: #fff; text-shadow: 0 2px 8px rgb(0 0 0 / .35); }
.medal::after { content: ""; position: absolute; inset: -8px; border-radius: 50%; background: var(--edge); opacity: .45; z-index: -1; filter: blur(8px); animation: spin 14s linear infinite; }

.bars { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 10px; }
.bars li { display: grid; grid-template-columns: 58px 1fr auto; align-items: center; gap: 10px; font-weight: 650; font-size: 15px; }
.bars .t { color: var(--el-t); }
.bars .track { height: 14px; border-radius: 999px; background: var(--line); overflow: hidden; }
.bars .fill { display: block; height: 100%; width: calc(var(--v, 0) * 100%); border-radius: inherit; background: linear-gradient(90deg, var(--el), color-mix(in srgb, var(--el) 60%, #fff)); transition: width 1.1s var(--ease) .3s; box-shadow: 0 0 12px var(--el); }
.bars .n { text-align: right; color: var(--ink-soft); font-size: 14px; white-space: nowrap; min-width: 92px; }
.luck { margin-top: 14px; font-weight: 700; color: var(--ink-soft); }
.luck strong { color: var(--ink); }

.el-wood { --el: var(--wood); --el-t: var(--wood-t); } .el-fire { --el: var(--fire); --el-t: var(--fire-t); }
.el-earth { --el: var(--earth); --el-t: var(--earth-t); } .el-metal { --el: var(--metal); --el-t: var(--metal-t); }
.el-water { --el: var(--water); --el-t: var(--water-t); }

/* expanders (G11.13: they glide) */
details.more { border-radius: var(--r-md); background: var(--glass); box-shadow: inset 0 0 0 1px var(--line); margin-top: 12px; }
details.more summary, .faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 18px; font-weight: 650; font-size: 17.5px; min-height: 56px; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: ""; flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%;
  background: var(--glass-solid) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M7 10l5 5 5-5' fill='none' stroke='%23ad2473' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/18px no-repeat;
  box-shadow: inset 0 0 0 1px var(--line); transition: transform .35s var(--spring); }
@media (prefers-color-scheme: dark) { details summary::after { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M7 10l5 5 5-5' fill='none' stroke='%23ff94cf' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/></svg>"); } }
details[open] > summary::after { transform: rotate(180deg); }
details .body { padding: 0 18px 18px; }
details .body p + p { margin-top: 10px; }

/* locked: what's inside the app, in the person's own chart terms */
.deeper { margin-top: 26px; }
.deeper h3.title { font-size: 30px; text-align: center; }
.deeper .sub { text-align: center; color: var(--ink-soft); margin: 8px auto 0; max-width: 34em; }
.locks { display: grid; gap: 16px; margin-top: 22px; }
@media (min-width: 900px) { .locks { grid-template-columns: repeat(3, 1fr); } }
.lock { padding: 22px; display: flex; flex-direction: column; gap: 10px; background: linear-gradient(180deg, var(--glass-hi), transparent 40%), var(--lock); }
.lock .head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.lock h4 { margin: 0; font: 600 26px/1.15 var(--serif); }
.lock .pitch { color: var(--ink-soft); font-size: 16px; }
.lock ol { margin: 4px 0 0; padding: 0; list-style: none; display: grid; gap: 7px; counter-reset: toc; }
.lock ol li { counter-increment: toc; display: grid; grid-template-columns: 26px 1fr; gap: 8px; font-weight: 700; font-size: 15.5px; line-height: 1.35; }
.lock ol li::before { content: counter(toc); display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font-size: 13px; color: var(--candy-label);
  background: linear-gradient(180deg, var(--candy-1), var(--candy-2)); }
.lock .foot { margin-top: auto; padding-top: 10px; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; border-top: 1px dashed var(--line); }
.price { font: 600 27px/1 var(--serif); }
.once { font-size: 14px; font-weight: 700; color: var(--ink-soft); }
.lockicon { width: 34px; height: 34px; flex: 0 0 auto; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(180deg, #fff8e0, #ffd36b); box-shadow: 0 4px 12px -4px rgb(200 140 0 / .6); }
.lockicon svg { width: 18px; height: 18px; }

.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 24px; }
.cta-note { text-align: center; margin-top: 14px; color: var(--ink-soft); font-weight: 700; }

/* ---------------------------------------------------------------- chemistry */
.chem-grid { display: grid; gap: 18px; }
@media (min-width: 900px) { .chem-grid { grid-template-columns: 1fr 1fr; align-items: stretch; } }
.chem-form { padding: 22px; display: grid; gap: 14px; align-content: start; }
.chem-who { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: var(--r-md); background: var(--glass-solid); box-shadow: inset 0 0 0 1px var(--line); }
.chem-who .medal { width: 52px; height: 52px; } .chem-who .medal span { font-size: 26px; } .chem-who .medal::after { display: none; }
.chem-who b { display: block; font-size: 17px; } .chem-who small { color: var(--ink-soft); font-weight: 700; font-size: 14px; }
.chem-out { padding: 26px 22px; display: grid; justify-items: center; text-align: center; gap: 12px; align-content: center; min-height: 360px; }
.ring { position: relative; width: 200px; height: 200px; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.ring .bg { fill: none; stroke: var(--line); stroke-width: 14; }
.ring .fg { fill: none; stroke: url(#ringgrad); stroke-width: 14; stroke-linecap: round; stroke-dasharray: 534; stroke-dashoffset: calc(534 - 534 * var(--p, 0)); transition: stroke-dashoffset 1.4s var(--ease); filter: drop-shadow(0 0 8px rgb(245 126 194 / .6)); }
.ring .num { position: absolute; inset: 0; display: grid; place-items: center; font: 600 73px/1 var(--serif); }
.ring .num small { display: block; font: 800 14px/1 var(--sans); color: var(--ink-soft); margin-top: 6px; }
.chem-label { font: 600 32px/1.15 var(--serif); color: var(--candy); }
.chem-lines { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 10px; text-align: left; }
.chem-lines li { padding: 12px 14px; border-radius: var(--r-sm); background: var(--glass-solid); box-shadow: inset 0 0 0 1px var(--line); font-size: 16.5px; }
.chem-out .meta { font-weight: 650; color: var(--ink-soft); }
.chem-out .read { font-size: 17px; max-width: 30em; }
.chem-empty { color: var(--ink-soft); font-weight: 700; max-width: 22em; }
.pair { display: flex; align-items: center; gap: 6px; }
.pair .medal { width: 64px; height: 64px; } .pair .medal span { font-size: 32px; } .pair .heart { font-size: 26px; color: var(--candy); }

/* ---------------------------------------------------------------- today's charm */
.charm-grid { display: grid; gap: 18px; }
@media (min-width: 900px) { .charm-grid { grid-template-columns: 1.1fr .9fr; align-items: center; } }
.charm-card { padding: 26px; display: grid; gap: 16px; overflow: hidden; }
.charm-card .theme { font: 600 36px/1.1 var(--serif); }
.charm-card .line { font-size: 19px; }
.charm-chips { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.chip { padding: 12px 14px; border-radius: var(--r-md); background: var(--glass-solid); box-shadow: inset 0 0 0 1px var(--line); }
.chip small { display: block; font-weight: 650; color: var(--ink-soft); font-size: 13px; letter-spacing: .5px; text-transform: uppercase; }
.chip b { display: flex; align-items: center; gap: 8px; font-size: 18px; margin-top: 2px; }
.swatch { width: 22px; height: 22px; border-radius: 50%; background: var(--el); box-shadow: 0 0 0 3px rgb(255 255 255 / .7), 0 0 12px var(--el); }
.sample-note { font-size: 14px; font-weight: 700; color: var(--ink-soft); }
.app-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.app-list li { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: start; font-size: 17px; }
.app-list .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 20px;
  background: linear-gradient(180deg, #fff, var(--sky-mid)); box-shadow: 0 6px 14px -8px rgb(60 40 140 / .5), inset 0 0 0 1px var(--line); }
@media (prefers-color-scheme: dark) { .app-list .ic { background: linear-gradient(180deg, #3a3170, #241f4a); } }
.app-list b { display: block; font-size: 18px; }
.app-list span { color: var(--ink-soft); }

/* ---------------------------------------------------------------- the cast: a zodiac ring */
.cast { display: grid; justify-items: center; }
.ring12 { position: relative; width: min(100%, 640px); aspect-ratio: 1; margin-inline: auto; }
.ring12 .center { position: absolute; inset: 27%; display: grid; place-items: center; text-align: center; border-radius: 50%; padding: 6%; }
.ring12 .center p { font: 600 clamp(20px, 3.6vw, 30px)/1.15 var(--serif); }
.ring12 .center a { margin-top: 10px; font-weight: 650; }
.orbit { position: absolute; inset: 0; animation: spin 120s linear infinite; }
.orbit > li { position: absolute; left: 50%; top: 50%; width: 15%; aspect-ratio: 1; margin: -7.5% 0 0 -7.5%; list-style: none; }
.orbit > li > div { width: 100%; height: 100%; animation: spin 120s linear infinite reverse; }
.orbit .bubble { position: relative; width: 100%; height: 100%; display: grid; place-items: center; }
.orbit .bubble img { inset: 4%; width: 92%; height: 92%; }
.orbit .bubble .hj { font: 700 clamp(20px, 4.4vw, 36px)/1 "Sajuchu Hanja", serif; color: var(--ink); position: relative; }
.orbit .nm { position: absolute; left: 50%; bottom: -21px; translate: -50% 0; font-weight: 650; font-size: clamp(12px, 2.2vw, 15px); white-space: nowrap; color: var(--ink); }
.orbit > li:nth-child(1) { transform: rotate(0deg) translateY(-273%) rotate(0deg); }
.orbit > li:nth-child(2) { transform: rotate(30deg) translateY(-273%) rotate(-30deg); }
.orbit > li:nth-child(3) { transform: rotate(60deg) translateY(-273%) rotate(-60deg); }
.orbit > li:nth-child(4) { transform: rotate(90deg) translateY(-273%) rotate(-90deg); }
.orbit > li:nth-child(5) { transform: rotate(120deg) translateY(-273%) rotate(-120deg); }
.orbit > li:nth-child(6) { transform: rotate(150deg) translateY(-273%) rotate(-150deg); }
.orbit > li:nth-child(7) { transform: rotate(180deg) translateY(-273%) rotate(-180deg); }
.orbit > li:nth-child(8) { transform: rotate(210deg) translateY(-273%) rotate(-210deg); }
.orbit > li:nth-child(9) { transform: rotate(240deg) translateY(-273%) rotate(-240deg); }
.orbit > li:nth-child(10) { transform: rotate(270deg) translateY(-273%) rotate(-270deg); }
.orbit > li:nth-child(11) { transform: rotate(300deg) translateY(-273%) rotate(-300deg); }
.orbit > li:nth-child(12) { transform: rotate(330deg) translateY(-273%) rotate(-330deg); }
.ring12 ul { margin: 0; padding: 0; }
.ring12:hover .orbit, .ring12:hover .orbit > li > div { animation-play-state: paused; }
/* Each animal moves its own way (cast v3, 2026-11-30, like the app's LivingAnimal): a move, then a rest. Off under
   prefers-reduced-motion (the rule at the end). */
.critter > img { animation: var(--move) var(--len, 4s) ease-in-out var(--wait, 0s) infinite; transform-origin: var(--pivot, 50% 92%); }
.critter:hover > img { scale: 1.08; transition: scale .25s cubic-bezier(.3, 1.6, .5, 1); }
.c-rat { --move: c-hop2; --len: 3.2s; }
.c-ox { --move: c-sway; --len: 5s; }
.c-tiger { --move: c-pounce; --len: 4.5s; }
.c-rabbit { --move: c-hop2; --len: 3.6s; --wait: .5s; }
.c-dragon { --move: c-swim; --len: 4.4s; --pivot: 50% 50%; }
.c-snake { --move: c-sway; --len: 3.4s; --wait: .3s; }
.c-horse { --move: c-gallop; --len: 3.8s; --pivot: 90% 92%; }
.c-goat { --move: c-doze; --len: 4.8s; }
.c-monkey { --move: c-swing; --len: 3.6s; --pivot: 55% 8%; }
.c-rooster { --move: c-puff; --len: 4.2s; }
.c-dog { --move: c-wag; --len: 3s; }
.c-pig { --move: c-roll; --len: 4s; }
/* Faces (owner 2026-11-30: "animate them"): each animal's blink (or peek) and happy face are painted from its own
   picture and line up with it exactly, so they sit on top and only the face changes. Blinks run on their own; the
   happy face shows on hover or tap. Under reduced motion only the hover face remains. */
.critter img.blink, .critter img.react { opacity: 0; pointer-events: none; }
.critter > img.blink { animation: var(--move) var(--len, 4s) ease-in-out var(--wait, 0s) infinite, var(--blink, c-blink) var(--blen, 4.2s) step-end var(--bwait, 0s) infinite; }
.critter .pp img.blink { animation: var(--blink, c-blink) var(--blen, 4.2s) step-end var(--bwait, 0s) infinite; }
.critter img.react { transition: opacity .12s; }
.critter:hover img.react { opacity: 1; }
.critter:hover img.blink { visibility: hidden; }

/* Puppets (owner 2026-11-30: "disarm the image and make it animable"): each animal taken apart into layers (the app's
   PuppetRigs), placed by their rects; each part turns about its joint (transform-origin, set per layer) while the
   whole animal keeps its own move. */
.critter > .pbox { position: absolute; animation: var(--move) var(--len, 4s) ease-in-out var(--wait, 0s) infinite; transform-origin: var(--pivot, 50% 92%); }
.bubble > .pbox { inset: 9%; }
.b-main > .pbox { inset: 6%; }
.orbit .bubble > .pbox { inset: 4%; }
.frame .art > .pbox { inset: 0; filter: drop-shadow(0 6px 8px rgb(80 50 140 / .25)); }
.frame .art .pp > img { position: absolute; inset: 0; width: 100%; height: 100%; filter: none; }
.pbox .pp { position: absolute; display: block; }
.bubble .pp > img, .orbit .bubble .pp > img, .b-main .pp > img, .b-main .pbox .pp > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; }
.pp-head { animation: p-head 2.8s ease-in-out infinite; }
.pp-tail { animation: p-wag .9s ease-in-out infinite; }
.c-dog .pp-tail { animation-duration: .38s; }
.c-pig .pp-legs, .pp-legs { animation: p-kick .8s ease-in-out infinite; }
.pp-ears { animation: p-ears 2.6s ease-in-out infinite; }
.pp-wingL { animation: p-wing-l 1.3s ease-in-out infinite; }
.pp-wingR { animation: p-wing-r 1.3s ease-in-out infinite; }
.pp-arm, .pp-pestle { animation: p-arm 1.5s ease-in-out infinite; }
.pp-fan { animation: p-wag .8s ease-in-out infinite; }
/* a tap or hover: the happy face, and everything moves faster */
.critter:hover .pp-head, .critter:active .pp-head { animation-duration: 1.1s; }
.critter:hover .pp-tail, .critter:hover .pp-wingL, .critter:hover .pp-wingR, .critter:hover .pp-legs { animation-duration: .35s; }
@keyframes p-head { 0%, 100% { rotate: -7deg; } 30% { rotate: 2deg; } 50% { rotate: 7deg; } 80% { rotate: -1deg; } }
@keyframes p-wag { 0%, 100% { rotate: -22deg; } 50% { rotate: 22deg; } }
@keyframes p-kick { 0%, 100% { rotate: -16deg; } 50% { rotate: 16deg; } }
@keyframes p-ears { 0%, 100% { rotate: -9deg; } 50% { rotate: 9deg; } }
@keyframes p-wing-l { 0%, 100% { rotate: -4deg; } 50% { rotate: 20deg; } }
@keyframes p-wing-r { 0%, 100% { rotate: 4deg; } 50% { rotate: -20deg; } }
@keyframes p-arm { 0%, 100% { rotate: -12deg; } 50% { rotate: 16deg; } }
/* Figurines (owner 2026-11-30: the app's 3D look on the site): where WebGL works, src/figures.ts draws each animal into a
   canvas in its box, lit and moved by its depth map, its head turning to look (the app's LivingAnimal). The canvas
   reaches 12% past the box on each side for the parts that swing out. The CSS layers hide only once it has drawn
   (.gl), or until it does for an animal still off screen (.glwait); without the script they're all there is. */
.pbox > canvas.fig { position: absolute; left: -12%; top: -12%; width: 124%; height: 124%; pointer-events: none; }
.pbox.gl > .pp, .pbox.glwait > .pp { display: none; }
.c-dragon, .c-goat, .c-pig { --blink: c-peek; --blen: 8s; }
.c-rat { --bwait: .3s; } .c-ox { --bwait: 1.9s; } .c-rabbit { --bwait: 1.1s; } .c-dragon { --bwait: 2.6s; }
.c-snake { --bwait: .7s; } .c-horse { --bwait: 2.3s; } .c-goat { --bwait: 4.1s; } .c-monkey { --bwait: 1.5s; }
.c-rooster { --bwait: 3.1s; } .c-dog { --bwait: .9s; } .c-pig { --bwait: 5.2s; }
@keyframes c-blink { 0%, 93% { opacity: 0; } 93.5%, 96% { opacity: 1; } 96.5%, 100% { opacity: 0; } }
@keyframes c-peek { 0%, 74% { opacity: 0; } 75%, 91% { opacity: 1; } 92%, 100% { opacity: 0; } }
@keyframes c-hop2 { 0%, 60%, 100% { transform: none; } 66% { transform: translateY(-9%) scale(.97, 1.04); } 72% { transform: scale(1.04, .95); } 78% { transform: translateY(-6%); } 84% { transform: none; } }
@keyframes c-sway { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }
@keyframes c-pounce { 0%, 62%, 100% { transform: none; } 68% { transform: scale(1.06, .9); } 76% { transform: translateY(-10%) scale(.96, 1.06); } 84% { transform: scale(1.04, .94); } 90% { transform: none; } }
@keyframes c-swim { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-6%) rotate(4deg); } }
@keyframes c-gallop { 0%, 55%, 100% { transform: none; } 62% { transform: rotate(6deg) translateY(-3%); } 70% { transform: none; } 78% { transform: rotate(4deg) translateY(-5%); } 86% { transform: none; } }
@keyframes c-doze { 0%, 100% { transform: scale(1, 1); } 50% { transform: scale(1.02, 1.04); } }
@keyframes c-swing { 0%, 100% { transform: rotate(-7deg); } 50% { transform: rotate(7deg); } }
@keyframes c-puff { 0%, 60%, 100% { transform: none; } 70% { transform: scale(1.08); } 76% { transform: scale(1.05) rotate(-3deg); } 82% { transform: scale(1.06) rotate(3deg); } 90% { transform: none; } }
@keyframes c-wag { 0%, 58%, 100% { transform: none; } 62% { transform: rotate(-4deg); } 66% { transform: rotate(4deg); } 70% { transform: rotate(-4deg); } 74% { transform: rotate(4deg); } 78% { transform: none; } }
@keyframes c-roll { 0%, 55%, 100% { transform: none; } 65% { transform: rotate(-10deg); } 78% { transform: rotate(10deg) translateY(-3%); } 90% { transform: rotate(-4deg); } }
.ring-note { margin-top: 44px; text-align: center; color: var(--ink-soft); max-width: 36em; }

/* ---------------------------------------------------------------- 2027: a night band, in both themes */
.night { color: #eaf7ff; background: radial-gradient(1200px 600px at 80% 0%, rgb(185 139 255 / .4), transparent 60%), radial-gradient(900px 500px at 0% 100%, rgb(95 242 200 / .22), transparent 60%), radial-gradient(800px 400px at 50% 50%, rgb(111 155 255 / .2), transparent 70%), linear-gradient(180deg, #07182e, #141b45 55%, #2f1646);
  overflow: hidden; border-radius: 40px; margin-inline: 8px; }
@media (min-width: 720px) { .night { margin-inline: 20px; border-radius: 56px; } }
.night .stars { opacity: 1; }
.night .kicker { color: #ff94d6; }
.night h2 { color: #fff; }
.night .sec-head p { color: #c4bde8; }
.night .wrap { position: relative; }
.count { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; max-width: 640px; margin: 8px auto 0; }
.count div { text-align: center; padding: 16px 6px 12px; border-radius: 22px; background: rgb(255 255 255 / .07); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .14); }
.count b { display: block; font: 600 clamp(36px, 8vw, 64px)/1 var(--serif); background: linear-gradient(180deg, #fff, #ffd76e); -webkit-background-clip: text; background-clip: text; color: transparent; }
.count small { font-weight: 650; letter-spacing: 1px; text-transform: uppercase; font-size: 13px; color: #c4bde8; }
.ipchun-local { text-align: center; margin-top: 16px; color: #c4bde8; font-weight: 700; }
.months { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.months li { position: relative; padding: 14px; border-radius: 20px; background: rgb(255 255 255 / .06); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .12); overflow: hidden; }
.months li::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgb(255 255 255 / .12) 45%, transparent 60%); transform: translateX(-100%); animation: sheen 6s ease-in-out infinite; }
.months li:nth-child(odd)::after { animation-delay: 1.5s; }
@keyframes sheen { 0%, 60% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
.months small { display: block; font-weight: 650; color: #c4bde8; font-size: 13px; letter-spacing: .6px; text-transform: uppercase; }
.months b { display: block; font: 700 26px/1.1 "Sajuchu Hanja", serif; margin-top: 4px; color: #fff; }
.months span { display: block; font-size: 14.5px; color: #e4defa; font-weight: 700; }
.y-cta { display: grid; justify-items: center; gap: 12px; margin-top: 34px; text-align: center; }
.y-cta p { color: #c4bde8; max-width: 34em; }

/* ---------------------------------------------------------------- why */
.why { display: grid; gap: 16px; }
@media (min-width: 900px) { .why { grid-template-columns: repeat(3, 1fr); } }
.why .card { display: grid; gap: 10px; align-content: start; }
.why .ic { color: var(--ink); width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; font-size: 28px;
  background: linear-gradient(160deg, #fff, var(--sky-top)); box-shadow: 0 10px 20px -10px rgb(60 40 140 / .55), inset 0 0 0 1px rgb(255 255 255 / .8); }
@media (prefers-color-scheme: dark) { .why .ic { background: linear-gradient(160deg, #3a3170, #241f4a); box-shadow: 0 0 24px -6px rgb(122 219 244 / .4); } }
.why p { color: var(--ink-soft); font-size: 17px; }
.ic .acc { fill: var(--candy); }
.ic svg [stroke="currentColor"] { stroke: currentColor; }
.why a { font-weight: 650; }

/* ---------------------------------------------------------------- pricing */
.free-box { padding: 24px; margin-bottom: 18px; display: grid; gap: 14px; }
@media (min-width: 900px) { .free-box { grid-template-columns: 220px 1fr; align-items: center; } }
.free-box h3 { font-size: 30px; }
.free-box h3 small { display: block; font: 650 15px/1.4 var(--sans); color: var(--ink-soft); }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px 18px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.ticks li { display: grid; grid-template-columns: 22px 1fr; gap: 8px; font-weight: 700; }
.ticks li::before { content: ""; width: 20px; height: 20px; margin-top: 3px; border-radius: 50%;
  background: var(--wood) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M6 12.5l4 4 8-9' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/14px no-repeat; }
.plans { display: grid; gap: 16px; }
@media (min-width: 720px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .plans { grid-template-columns: repeat(4, 1fr); } }
.plan { padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.plan h3 { font-size: 25px; }
.plan-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.plan .item, .lock .item { width: 84px; height: 84px; object-fit: contain; filter: drop-shadow(0 8px 12px rgb(90 60 170 / .25)); }
.lock .item { width: 64px; height: 64px; flex: 0 0 auto; }
.lock .head h4 { flex: 1; }
.chip .orb { width: 36px; height: 36px; margin: -6px 0; filter: drop-shadow(0 3px 6px rgb(60 80 160 / .3)); }
.app-list .ic.art img { width: 40px; height: 40px; object-fit: contain; }
.app-list .ic.art { background: none; box-shadow: none; }
.plan .pitch { color: var(--ink-soft); font-size: 16px; }
.plan .price { font-size: 34px; margin-top: auto; padding-top: 8px; }
.plan .inc { margin-top: auto; padding-top: 8px; } /* a card the Year Pass holds: its line sits where a price would */
.plan.all { background: linear-gradient(180deg, var(--glass-hi), transparent 40%), linear-gradient(160deg, rgb(255 221 242 / .9), rgb(221 229 255 / .9)); }
@media (prefers-color-scheme: dark) { .plan.all { background: linear-gradient(180deg, var(--glass-hi), transparent 40%), linear-gradient(160deg, #3a2160, #1d2c62); } }
.plan.all::before { opacity: 1; padding: 2.5px; }
.tag { align-self: flex-start; font-weight: 650; font-size: 13px; letter-spacing: .6px; text-transform: uppercase; color: var(--candy-label);
  background: linear-gradient(180deg, var(--candy-1), var(--candy-2)); border-radius: 999px; padding: 4px 11px 3px; }
.price-note { text-align: center; margin-top: 18px; color: var(--ink-soft); font-size: 15px; }

/* ---------------------------------------------------------------- FAQ */
.faq { display: grid; gap: 10px; max-width: 820px; margin-inline: auto; }
.faq details { border-radius: var(--r-md); background: var(--glass); box-shadow: inset 0 0 0 1px var(--line); }
.faq details[open] { box-shadow: inset 0 0 0 1.5px var(--candy-3), 0 14px 30px -20px rgb(214 60 150 / .6); }
.faq .body p { color: var(--ink-soft); font-size: 17px; }
.faq .body strong { color: var(--ink); }
details .body { overflow: hidden; }

/* ---------------------------------------------------------------- final CTA + footer */
.final { text-align: center; display: grid; justify-items: center; gap: 16px; }
.final .face { width: 180px; height: 180px; position: relative; }
.final .face .bubble { inset: 0; width: 100%; height: 100%; animation: bob 4s ease-in-out infinite; }
footer.foot { padding: 46px 0 calc(40px + var(--bar-h)); margin-top: 40px; border-top: 1px solid var(--line); background: var(--glass); }
.foot-grid { display: grid; gap: 22px; }
@media (min-width: 900px) { .foot-grid { grid-template-columns: 1.4fr 1fr; } }
.foot p { color: var(--ink-soft); font-size: 15px; }
.foot nav ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot nav a { font-weight: 650; color: var(--ink); }
.foot .legal { margin-top: 18px; font-size: 14px; }
.foot-links { display: grid; gap: 18px; align-content: start; }
.foot-links .legal { margin-top: 0; }
.foot .foot-h { font-family: inherit; font-size: 13px; font-weight: 650; line-height: 1.3; letter-spacing: 1.4px; text-transform: uppercase; color: var(--candy); margin: 0 0 8px; }

/* ---------------------------------------------------------------- the store capsule (G11.12) */
.capsule { position: fixed; z-index: 60; inset-inline: 12px; bottom: calc(10px + env(safe-area-inset-bottom)); max-width: 460px; margin-inline: auto;
  display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 10px; border-radius: 22px; text-decoration: none; color: var(--ink);
  background: var(--glass); -webkit-backdrop-filter: blur(20px) saturate(1.5); backdrop-filter: blur(20px) saturate(1.5);
  box-shadow: 0 16px 36px -14px rgb(60 30 140 / .55), inset 0 0 0 1px var(--line); transition: transform .4s var(--ease), opacity .3s; }
.capsule img.ic { width: 44px; height: 44px; border-radius: 11px; flex: 0 0 auto; }
.capsule .txt { min-width: 0; flex: 1; contain: inline-size; }
.capsule b { display: block; font: 650 19px/1.1 var(--sans); letter-spacing: -.2px; }
.capsule small { display: block; font-size: 13.5px; font-weight: 700; color: var(--ink-soft); line-height: 1.25; }
.capsule .btn { flex: 0 0 auto; }
.capsule .badge-link img { height: 40px; }
@media (max-width: 359px) { .capsule img.ic { display: none; } }
@media (min-width: 900px) { .capsule { display: none; } }
@media print { .capsule, .top, .sky { display: none; } }
:root { --bar-h: 76px; }
@media (min-width: 900px) { :root { --bar-h: 0px; } }

/* ---------------------------------------------------------------- article pages (legal, support, methodology) */
.doc { max-width: 800px; margin: 28px auto 60px; padding: 26px 20px; }
@media (min-width: 720px) { .doc { padding: 44px 52px; } }
.doc h1 { font-size: clamp(40px, 6.8vw, 62px); margin: 0 0 12px; }
.doc h2 { font-size: 32px; margin: 34px 0 10px; }
.doc h3 { font-size: 25px; margin: 26px 0 8px; }
.doc p, .doc li { font-size: 17px; line-height: 1.7; }
.doc p + p { margin-top: 12px; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li + li { margin-top: 6px; }
.doc .tbl { overflow-x: auto; margin: 16px 0; border-radius: 16px; box-shadow: inset 0 0 0 1px var(--line); }
.doc table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 15.5px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.doc th { background: var(--glass-solid); }
.doc code { font-size: .92em; background: var(--glass-solid); padding: 1px 6px; border-radius: 6px; }
.doc .updated { color: var(--ink-soft); font-weight: 700; }
.doc blockquote { margin: 16px 0; padding: 12px 18px; border-left: 4px solid var(--candy-3); background: var(--glass-solid); border-radius: 0 14px 14px 0; }

/* the press kit (/press/ and the editor kit /press/editors/, scripts/build.mjs): wider, with download galleries */
.doc.press { max-width: 960px; }
.doc.press table { min-width: 0; }
.doc.press td:first-child { width: 28%; font-weight: 650; }
.kit-dl { margin: 22px 0 4px; padding: 16px 18px; display: grid; gap: 10px; justify-items: start; border-radius: var(--r-md);
  background: var(--glass-solid); box-shadow: inset 0 0 0 1.5px var(--candy-3), 0 12px 28px -20px rgb(214 60 150 / .55); }
.doc .kit-dl p { font-size: 15.5px; line-height: 1.55; color: var(--ink-soft); margin: 0; }
.doc .kit { list-style: none; padding: 0; margin: 16px 0 8px; display: grid; gap: 18px 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.doc .kit li + li { margin-top: 0; }
@media (min-width: 640px) { .doc .kit-shots-iphone, .doc .kit-shots-ipad { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 18px; } }
.doc .kit-icon { grid-template-columns: minmax(0, 150px); }
.doc .kit-art li:first-child { grid-column: 1 / -1; }
.doc .kit-art li + li img { aspect-ratio: 4 / 3; object-fit: contain; }
.kit a { display: grid; gap: 2px; align-content: start; color: var(--ink); text-decoration: none; }
.kit img { width: 100%; margin-bottom: 6px; border-radius: 14px; background: var(--glass-solid);
  box-shadow: 0 12px 26px -16px rgb(60 40 120 / .55), 0 0 0 1px var(--line); transition: transform .3s var(--spring); }
.kit-icon img { border-radius: 22%; }
.kit-art img { background: linear-gradient(160deg, var(--sky-top), var(--sky-mid) 55%, var(--sky-bottom)); }
.kit a:hover img { transform: translateY(-3px); }
.kit-name { font-size: 15px; font-weight: 650; line-height: 1.35; }
.kit a:hover .kit-name { color: var(--candy); text-decoration: underline; text-underline-offset: 3px; }
.kit-size { font-size: 13.5px; line-height: 1.4; color: var(--ink-soft); }

/* invite page */
.invite { max-width: 640px; margin: 28px auto 0; text-align: center; padding: 26px 20px; display: grid; gap: 14px; justify-items: center; }
.invite .calc { width: 100%; padding: 0; text-align: left; }
.invite .chem-out { width: 100%; padding: 8px 0 0; min-height: 0; }
.invite h1 { font-size: clamp(32px, 7vw, 50px); }

/* ---------------------------------------------------------------- motion everywhere (owner, 2026-11-29) */
/* Lists come in one by one (site.ts adds these classes, so nothing is hidden without the script). */
.js .stagger > * { opacity: 0; transform: translateY(22px) scale(.96); }
.js .stagger.go > * { opacity: 1; transform: none;
  transition: opacity .55s var(--ease) calc(var(--i, 0) * 70ms), transform .75s var(--spring) calc(var(--i, 0) * 70ms); }
/* Glass leans toward the pointer (fine pointers only); a soft light follows it on the cards. */
.tilt { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .6s var(--spring); }
.tilt.hot { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-4px); transition: transform .15s linear; }
.plan.tilt::after, .glass.card.tilt::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  opacity: 0; transition: opacity .3s; background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgb(255 255 255 / .3), transparent 55%); }
.plan.tilt.hot::after, .glass.card.tilt.hot::after { opacity: 1; }
.count div { position: relative; }
/* Every painting bobs a little, each on its own beat. */
.plan .item, .app-list .ic.art img, .lock .item { animation: bob 3.6s ease-in-out infinite; }
.plan:nth-child(2) .item, .app-list li:nth-child(2n) .ic.art img { animation-duration: 3.1s; animation-delay: .4s; }
.plan:nth-child(3) .item, .app-list li:nth-child(3n) .ic.art img { animation-duration: 4s; animation-delay: .8s; }
.plan:nth-child(4) .item { animation-duration: 3.3s; animation-delay: 1.2s; }
/* Buttons squash a touch under the finger; the hero facts lift on hover. */
.btn:active { transform: scale(.96); }
.facts li { transition: transform .3s var(--spring); }
.facts li:hover { transform: translateY(-2px) rotate(-1deg); }

/* ---------------------------------------------------------------- guide pages (owner go 2026-11-29; scripts/guides.mjs) */
.guide-wrap { max-width: 880px; }
.guide-top { padding: 22px 0 8px; }
@media (min-width: 960px) { .guide-top { padding-top: 44px; } }
.guide-top h1 { font-size: clamp(38px, 8.6vw, 68px); margin-top: 14px; }
.guide-top .lede { margin-top: 12px; }
.answer { margin-top: 16px; padding: 14px 16px; border-radius: var(--r-md); font-size: 17px; line-height: 1.55; background: var(--glass); box-shadow: inset 0 0 0 1.5px var(--candy-3), 0 12px 28px -20px rgb(214 60 150 / .55); }
.answer strong { color: var(--candy); }
.guide-top .updated { margin-top: 8px; font-size: 14px; font-weight: 700; color: var(--ink-soft); }
@media (min-width: 720px) { .answer { padding: 16px 18px; font-size: 18px; line-height: 1.6; } }
@media (max-width: 719px) { .guide-top .lede { font-size: 17px; } }
.buy { margin-top: 18px; padding: 16px; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px 14px; align-items: start; }
.buy .item { width: 64px; height: 64px; object-fit: contain; filter: drop-shadow(0 8px 12px rgb(90 60 170 / .25)); animation: bob 3.6s ease-in-out infinite; }
.buy-txt { min-width: 0; }
.buy-name { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.buy-name b { font: 650 21px/1.1 var(--sans); }
.buy-name span { font: 600 22px/1.1 var(--serif); color: var(--candy); }
.buy-pitch { margin-top: 4px; font-size: 15.5px; line-height: 1.45; color: var(--ink-soft); }
.buy-price { margin-top: 6px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.buy-price .price { font-size: 26px; }
.buy-cta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.buy-cta small { font-size: 14px; font-weight: 700; color: var(--ink-soft); }
@media (min-width: 720px) {
  .buy { grid-template-columns: 84px minmax(0, 1fr) auto; padding: 18px 22px; align-items: center; }
  .buy .item { width: 84px; height: 84px; }
  .buy-cta { grid-column: auto; flex-direction: column; align-items: flex-end; text-align: right; max-width: 190px; }
}
.pr { font-weight: 650; white-space: nowrap; }

.guide-tool { padding: 18px 0 0; }
.tool { padding: 22px 18px; }
@media (min-width: 640px) { .tool { padding: 28px; } }
.tool .calc { padding: 0; }
.tool-out { margin-top: 20px; }
.tool-result { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: flex-start; padding: 16px; border-radius: var(--r-md); background: var(--glass-solid); box-shadow: inset 0 0 0 1px var(--line); }
.tool-result > div { flex: 1 1 220px; min-width: 0; }
[lang="ko"] { word-break: keep-all; }
.tool-result p + p, .tool-result p + a { margin-top: 6px; }
.tool-result a { display: inline-block; font-weight: 650; margin-top: 6px; }
.tool-result .big { font: 600 clamp(22px, 5vw, 28px)/1.2 var(--serif); }
.tool-result .ko-line { font-weight: 700; color: var(--ink-soft); }
.tool-result .warn, .bt-result strong { color: var(--candy); font-weight: 650; }
.tool-result .bubble.zb { position: relative; flex: 0 0 auto; width: 96px; height: 96px; }
.tool-result .bubble.zb img { inset: 6%; width: 88%; height: 88%; }
.medal.sm { width: 56px; height: 56px; }
.medal.sm span { font-size: 30px; }
.medal.sm::after { inset: -5px; }
.doc .tool-inline { margin: 18px 0; padding: 20px 16px; border-radius: var(--r-md); background: var(--glass-solid); box-shadow: inset 0 0 0 1px var(--line); }
@media (min-width: 640px) { .doc .tool-inline { padding: 24px; } }
.doc .tool-inline .calc-title { font-size: 24px; }
.guide-doc { margin-top: 26px; }
.doc .src { margin-top: 8px; font-size: 14px; color: var(--ink-soft); }
.doc table small { color: var(--ink-soft); font-size: 13.5px; }
.doc .tbl-60 table, .doc .tbl.narrow table { min-width: 0; }
.doc td b[lang="zh-Hant"] { font-size: 1.12em; }
.doc td [lang="zh-Hant"], .doc td [lang="ko"] { white-space: nowrap; }
.doc tr[class^="el-"] td:first-child b, .doc tr[class^="el-"] .cn { color: var(--el-t); }
.doc .tbl .swatch { display: inline-block; width: 16px; height: 16px; vertical-align: -2px; margin-right: 4px; }
.meter { display: inline-block; width: 64px; height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; vertical-align: 1px; margin-right: 6px; }
.meter i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--candy-3), var(--lavender)); }
.meter .m0 { width: 0; } .meter .m1 { width: 10%; } .meter .m2 { width: 20%; } .meter .m3 { width: 30%; } .meter .m4 { width: 40%; } .meter .m5 { width: 50%; }
.meter .m6 { width: 60%; } .meter .m7 { width: 70%; } .meter .m8 { width: 80%; } .meter .m9 { width: 90%; } .meter .m10 { width: 100%; }
.more-link { font-weight: 650; }
.y-more { color: #ff94d6; font-weight: 650; }
.guide-night { margin-top: 26px; padding: 40px 0 44px; }
.guide-night h2 { font-size: clamp(28px, 5vw, 40px); }
.guide-night .sec-head { margin-bottom: 18px; }

/* the ten day masters against 2027's 丁 */
.dm-grid { list-style: none; padding: 0 !important; margin: 18px 0 0; display: grid; gap: 12px; }
@media (min-width: 760px) { .dm-grid { grid-template-columns: 1fr 1fr; } }
.doc .dm-grid li + li { margin-top: 0; }
.dm-card { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 14px; padding: 16px; scroll-margin-top: 90px; transition: box-shadow .3s var(--ease); }
.dm-card h3 { margin: 0; font-size: 21px; }
.dm-card .meta { font-weight: 650; font-size: 14.5px; color: var(--el-t); margin-top: 2px; }
.dm-card p { font-size: 16px !important; line-height: 1.55 !important; margin-top: 6px; }
.dm-card.hit { box-shadow: var(--shadow), 0 0 0 3px var(--candy-3), 0 0 26px -4px var(--candy-2); }
.dm-card:focus { outline: none; }

/* the twelve animals against 未 */
.rel-groups { list-style: none; padding: 0 !important; margin: 18px 0 0; display: grid; gap: 12px; }
.doc .rel-groups li + li { margin-top: 0; }
.rel { padding: 16px; display: grid; gap: 10px; }
@media (min-width: 640px) { .rel { grid-template-columns: 200px minmax(0, 1fr); align-items: center; } }
.rel h3 { margin: 0; font-size: 21px; }
.rel h3 small { font-size: 15px; color: var(--candy); margin-left: 6px; }
.rel p { font-size: 16px !important; margin-top: 4px; color: var(--ink-soft); }
.rel-faces { list-style: none; padding: 0 !important; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 10px; }
.doc .rel-faces li + li { margin-top: 0; }
.rel-faces li { display: grid; justify-items: center; width: 64px; }
.rel-faces .bubble, .z12 .bubble { position: relative; width: 60px; height: 60px; display: block; }
.rel-faces .bubble img, .z12 .bubble img { inset: 4%; width: 92%; height: 92%; }
.rel-faces .nm { font-size: 13px !important; font-weight: 650; }

/* the twelve animals of the zodiac page */
.z12 { list-style: none; padding: 0 !important; margin: 18px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 10px; }
.doc .z12 li + li { margin-top: 0; }
.z12 li { padding: 14px 10px 12px; display: grid; justify-items: center; text-align: center; gap: 2px; }
.z12 .bubble { width: 84px; height: 84px; margin-bottom: 4px; }
.z12 .z-name { font-weight: 650; font-size: 16px !important; }
.z12 .z-ko { font-size: 15px !important; color: var(--ink-soft); }
.z12 .z-years { font-size: 13.5px !important; color: var(--ink-soft); font-weight: 700; }

/* rival pages */
.iap { list-style: none; padding: 0 !important; margin: 10px 0 0; display: grid; gap: 6px 18px; }
@media (min-width: 640px) { .iap { grid-template-columns: 1fr 1fr; } }
.doc .iap li + li { margin-top: 0; }
.iap li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 12px; border-radius: var(--r-sm); background: var(--glass-solid); box-shadow: inset 0 0 0 1px var(--line); font-size: 15.5px !important; }
.doc th[scope="row"] { width: 38%; }
.sample { margin: 22px 0 0; }
.sample .strip { max-width: 100%; }
.sample figcaption { margin-top: 10px; text-align: center; font-size: 15px; color: var(--ink-soft); }

/* the birth-time cases: what Sajuchu reads against the naive reading */
.cases { list-style: none; padding: 0 !important; margin: 16px 0 0; display: grid; gap: 12px; }
.doc .cases li + li { margin-top: 0; }
.case { padding: 14px 16px; border-radius: var(--r-md); background: var(--glass-solid); box-shadow: inset 0 0 0 1px var(--line); }
.case-t { font-weight: 650; }
.case-rows { display: grid; gap: 6px; margin-top: 8px; }
.case-rows p { display: grid; gap: 4px; margin: 0; }
@media (min-width: 640px) { .case-rows p { grid-template-columns: 190px minmax(0, 1fr); align-items: center; } }
.case .who { font-size: 13.5px !important; font-weight: 650; color: var(--ink-soft); }
.pl4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.pl4 > span { display: grid; justify-items: center; padding: 4px 2px; border-radius: 10px; box-shadow: inset 0 0 0 1px var(--line); }
.pl4 small { font-size: 11px; font-weight: 650; text-transform: uppercase; letter-spacing: .4px; color: var(--ink-soft); }
.pl4 b { font-size: 20px; }
.pl4 .chg { background: var(--lock); box-shadow: inset 0 0 0 1.5px var(--candy-3); }
.pl4 .chg b { color: var(--candy); }
.case-w { margin-top: 8px; font-size: 15.5px !important; color: var(--ink-soft); }

/* the birth-time check */
.doc .pl b, .bt-result b[lang="zh-Hant"] { letter-spacing: 1px; }
.facts-dl { display: grid; gap: 4px 16px; margin: 0; padding: 16px; border-radius: var(--r-md); background: var(--glass-solid); box-shadow: inset 0 0 0 1px var(--line); }
@media (min-width: 640px) { .facts-dl { grid-template-columns: 200px minmax(0, 1fr); } }
.facts-dl dt { font-weight: 650; font-size: 14.5px; color: var(--ink-soft); }
.facts-dl dd { margin: 0 0 6px; }
.bt-result .lbl-sm { margin-top: 16px; font-weight: 650; font-size: 14px; letter-spacing: .5px; text-transform: uppercase; color: var(--ink-soft); }
.bt-result > p { margin-top: 10px; }
.mini-pillars { list-style: none; padding: 0; margin: 8px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.mini-pillars li { display: grid; justify-items: center; padding: 10px 4px; border-radius: var(--r-sm); background: var(--glass-solid); box-shadow: inset 0 0 0 1px var(--line); text-align: center; }
.mini-pillars small { font-weight: 650; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: var(--ink-soft); }
.mini-pillars [lang="zh-Hant"] { font-size: clamp(22px, 6vw, 30px); color: var(--el-t); }
.mini-pillars .rr { font-size: 12.5px; font-weight: 700; color: var(--ink-soft); }

/* the saju café sheet: a paper card on screen, the only thing printed */
.ticks-in { display: flex; flex-wrap: wrap; gap: 0 16px; }
.sheet { padding: 20px 16px; border-radius: var(--r-md); background: var(--glass-solid); box-shadow: inset 0 0 0 1px var(--line), var(--shadow); }
@media (min-width: 640px) { .sheet { padding: 28px; } }
.sheet-head h3 { font-size: 28px; margin-top: 2px; }
.sheet-head .kicker { margin-bottom: 0; }
.sheet-pillars { width: 100%; border-collapse: collapse; margin-top: 14px; table-layout: fixed; }
.sheet-pillars th, .sheet-pillars td { padding: 8px 4px; text-align: center; border-bottom: 1px solid var(--line); font-size: 14px; }
.sheet-pillars thead th { font-weight: 650; color: var(--ink-soft); font-size: 13px; }
.sheet-pillars tbody th { text-align: left; font-size: 12.5px; color: var(--ink-soft); font-weight: 650; width: 22%; }
.sheet-pillars .big-row td { font: 700 clamp(30px, 9vw, 46px)/1.1 "Sajuchu Hanja", serif; color: var(--el-t); }
.sheet-pillars td [lang="ko"] { font-size: 18px; }
.sheet-times { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; margin: 16px 0 0; font-size: 15.5px; }
.sheet-times dt { font-weight: 650; color: var(--ink-soft); }
.sheet-times dd { margin: 0; }
.sheet-times .warn { color: var(--candy); font-weight: 650; }
.ko-card { margin-top: 18px; padding: 16px 18px; border-radius: var(--r-sm); border: 2px dashed var(--candy-3); font-size: 19px; line-height: 1.65; }
.ko-card p + p { margin-top: 4px; }
.ko-card .hi { color: var(--candy); }
.ko-card .box { display: inline-block; width: 17px; height: 17px; margin: 0 5px -2px 4px; border: 2px solid var(--ink); border-radius: 4px; }
.ko-card .box.on { background: var(--ink); box-shadow: inset 0 0 0 2.5px var(--glass-solid); }
.sheet-en { margin-top: 12px; font-size: 14.5px; color: var(--ink-soft); }
.sheet-foot { margin-top: 12px; font-size: 12.5px; color: var(--ink-soft); text-align: right; }
@media print {
  body:has(#sheet) { background: #fff; color: #000; }
  body:has(#sheet) .guide-top, body:has(#sheet) .guide-doc, body:has(#sheet) .guide-faq, body:has(#sheet) footer.foot,
  body:has(#sheet) .tool-form, body:has(#sheet) .tool-out .actions, body:has(#sheet) .skip { display: none !important; }
  body:has(#sheet) .tool { background: none; box-shadow: none; padding: 0; -webkit-backdrop-filter: none; backdrop-filter: none; }
  body:has(#sheet) .tool::before, body:has(#sheet) .tool::after { display: none; }
  .sheet { box-shadow: none; border: 1px solid #999; background: #fff; color: #000; }
  .sheet *, .sheet .ko-card .hi { color: #000 !important; }
  .ko-card { border-color: #666; }
  .ko-card .box { border-color: #000; }
  .ko-card .box.on { background: #000; box-shadow: inset 0 0 0 2.5px #fff; }
}

/* ---------------------------------------------------------------- Reduce Motion: everything holds still */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .rise.pre { opacity: 1; transform: none; }
  .petals { display: none; }
  .js .stagger > * { opacity: 1; transform: none; }
}
