/* SKIN: Beacon — dope.security grammar, DAYLIGHT interpretation.
 * Paper-white terminal: achromatic ink-on-white, monospace stamped section
 * headings with extreme tracking, italic display serif for the emotional
 * words (deep violet), hairline borders (never shadows), Signal Violet
 * rationed to ONE bloom (pricing) plus the dock beacon. Boarding-pass
 * energy, coordinate-stamp footer. Light-only. */

:root {
  --c-wood: #111; --c-fire: #111; --c-earth: #111; --c-metal: #111; --c-water: #111;
  --accent: #111;
  --violet: #7a2ee6; --violet-deep: #6d28c9;
  --bg: #fafaf8; --ink: #111111; --steel: #5c5c5c; --ash: #6e6e6e;
  --hairline: rgba(0, 0, 0, .18);
  --hairline-2: rgba(0, 0, 0, .09);
  --wash: rgba(0, 0, 0, .04);
  --err: #b5432f;
  /* five-element data palette (validated, light surface): metal/water are
   * traditional semantic neutrals (white metal, black water) */
  --el-wood: #2e7d4f; --el-fire: #c63d2f; --el-earth: #a2761b;
  --el-metal: #8a8f98; --el-metal-fill: #edeff2; --el-water: #1c2733;
  --el-missing: #b9bcc2;
  /* luminous glow variants (water's data color is near-black, unusable as light) */
  --elg: var(--violet);
}
/* any element can carry its own glow (hero deck, gallery detail), not just :root */
[data-el="wood"] { --elg: #3fa96c; }
[data-el="fire"] { --elg: #e0523e; }
[data-el="earth"] { --elg: #d9a431; }
[data-el="metal"] { --elg: #9ba7b8; }
[data-el="water"] { --elg: #3d6fd1; }
:root {
  --sans: "Inter", -apple-system, "Segoe UI", system-ui, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
  --mono: ui-monospace, "JetBrains Mono", "IBM Plex Mono", Menlo, monospace;
  --cjk: "Hiragino Mincho ProN", "Yu Mincho", serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--bg); color: var(--ink); font-family: var(--sans); font-weight: 300; font-size: 16px; line-height: 1.5; min-height: 100vh; }
body::after { display: none; }
#sky { display: none; }
main { max-width: 720px; margin: 0 auto; padding: 0 20px 72px; }
/* room for the floating dock only while it is actually there */
body:has(#dock:not([hidden])) main { padding-bottom: 120px; }

.brand { display: flex; align-items: center; gap: 10px; padding: 22px 24px 4px; max-width: 720px; margin: 0 auto; }
.brand-glyph { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 8px; font-size: 17px; color: var(--ink); background: transparent; border: 1px solid var(--hairline); font-family: var(--cjk); }
.brand-name { font-family: var(--mono); letter-spacing: .2em; font-size: 11px; color: var(--steel); text-transform: uppercase; }
.theme-btn { display: none; }

.hero { padding-top: 60px; }
.hero-eyebrow { margin-bottom: 22px; font-family: var(--mono); font-size: 11px; letter-spacing: .3em; color: var(--steel); }
.hero-eyebrow span { font-family: var(--cjk); letter-spacing: .18em; color: var(--ink); }
.hero h1 { font-size: clamp(34px, 8.4vw, 62px); font-weight: 300; line-height: 1.08; letter-spacing: -.02em; text-wrap: pretty; }
.hero h1 em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--violet-deep); }
.hero-sub { margin: 20px 0 30px; color: var(--steel); font-size: 16px; max-width: 54ch; text-wrap: pretty; }
.hero-sub span { font-family: var(--cjk); color: var(--ink); }

/* ---- Today's card: today's pillar face up over two backs ---- */
.hero-deck { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 20px 28px; margin: 22px 0 4px; }  /* column gap clears the rotated back card */
.hero-deck[hidden] { display: none; }
.hd-stack { position: relative; width: 104px; aspect-ratio: 2 / 3; margin-left: 22px; }
.he-sep { font-style: normal; }
@media (max-width: 480px) {
  .hero-eyebrow { letter-spacing: .2em; line-height: 1.9; }
  .hero-eyebrow span { display: block; font-size: 13px; letter-spacing: .3em; }
  .he-sep { display: none; }
  .proof-h { letter-spacing: .2em; }
}
.hd-card, .hd-back { position: absolute; inset: 0; padding: 0; border: 0; border-radius: 6px; cursor: pointer; font: inherit; }
.hd-card { background: #fff; transform: rotate(-3deg); z-index: 2;
  box-shadow: 0 14px 30px color-mix(in srgb, var(--elg) 30%, transparent), 0 3px 10px rgba(17, 17, 17, .1);
  transition: transform .5s cubic-bezier(.19, 1, .22, 1); }
.hd-card img { position: relative; z-index: 1; display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 6px; }
/* the breathing element glow, same as the result card's */
.hd-glow { position: absolute; inset: -22% -30%; z-index: 0; pointer-events: none;
  background:
    radial-gradient(38% 38% at 50% 44%, color-mix(in srgb, var(--elg) 58%, transparent), transparent 70%),
    radial-gradient(58% 58% at 50% 50%, color-mix(in srgb, var(--elg) 38%, transparent), color-mix(in srgb, var(--elg) 10%, transparent) 62%, transparent 78%);
  filter: blur(16px); animation: bloomPulse 4.5s ease-in-out infinite alternate; }
.hd-back { background: #fff; border: 1px solid #111; box-shadow: 0 4px 14px rgba(17, 17, 17, .08); transition: transform .5s cubic-bezier(.19, 1, .22, 1); }
.hd-back::before { content: ""; position: absolute; inset: 5px; border: 1px solid rgba(0, 0, 0, .5); border-radius: 4px;
  background: repeating-linear-gradient(45deg, transparent 0 3px, rgba(0, 0, 0, .05) 3px 4px); }
.hd-back::after { content: "命"; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  font-family: var(--cjk); font-size: 20px; color: var(--violet); }
.hd-back-1 { transform: translate(-18px, 6px) rotate(-9deg); }
.hd-back-2 { transform: translate(16px, 4px) rotate(7deg); }
.hd-cap { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.hd-date { font-family: var(--mono); font-size: 11px; letter-spacing: .22em; color: var(--steel); }
.hd-title { font-family: var(--serif); font-style: italic; font-size: 22px; line-height: 1.15; color: var(--violet-deep); }
.hd-find { font-size: 13px; color: var(--steel); text-decoration: underline; text-decoration-color: var(--hairline); text-underline-offset: 3px; width: fit-content; }
.hd-find:hover { color: var(--ink); text-decoration-color: currentColor; }
@media (hover: hover) {
  .hd-card:hover { transform: rotate(-3deg) translateY(-6px); }
}
@media (prefers-reduced-motion: reduce) { .hd-glow { animation: none; } .hd-card, .hd-back { transition: none; } }

/* ---- landing proof row: six cards, each with a famous twin ---- */
.proof-row { margin: 8px 0 44px; }
.proof-row[hidden], main:has(#result:not([hidden])) .proof-row { display: none; }
.proof-h { font-family: var(--mono); font-size: 11px; letter-spacing: .3em; color: var(--steel); margin-bottom: 16px; }
.proof-grid { display: grid; grid-auto-flow: column; grid-auto-columns: 112px; gap: 14px; overflow-x: auto;
  scroll-snap-type: x mandatory; scroll-padding-inline: 20px; padding: 6px 20px 10px; margin: 0 -20px; scrollbar-width: none; }
.proof-grid::-webkit-scrollbar { display: none; }
.proof-card, .proof-end { scroll-snap-align: start; background: none; border: 0; padding: 0; font: inherit; color: var(--ink); text-align: left; cursor: pointer; }
.pc-art { display: block; border-radius: 6px; overflow: hidden; background: #fff; border: 1px solid var(--hairline-2);
  aspect-ratio: 2 / 3; transition: transform .4s cubic-bezier(.19, 1, .22, 1), box-shadow .4s ease; }
.pc-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pc-who { display: block; margin-top: 10px; font-size: 13.5px; font-weight: 400; line-height: 1.3; }
.pc-what { display: flex; align-items: center; gap: 6px; margin-top: 3px; font-family: var(--serif); font-style: italic; font-size: 13px; color: var(--violet-deep); }
.proof-end { display: flex; flex-direction: column; justify-content: center; gap: 14px; aspect-ratio: 2 / 3; padding: 14px;
  border: 1px dashed var(--hairline); border-radius: 6px; align-self: start; }
.proof-end span { font-size: 19px; font-weight: 300; line-height: 1.2; }
.proof-end em { font-family: var(--serif); font-style: italic; color: var(--violet-deep); }
.proof-end b { font-family: var(--mono); font-weight: 400; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--steel); }
@media (hover: hover) {
  .proof-card:hover .pc-art { transform: translateY(-6px); box-shadow: 0 14px 28px color-mix(in srgb, var(--elg) 26%, transparent); }
  .proof-end:hover { border-color: var(--ink); }
  .proof-end:hover b { color: var(--ink); }
}
@media (prefers-reduced-motion: reduce) { .pc-art { transition: none; } }

/* element cue dots (same colors as the wheel and bars) */
.el-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; flex: none; background: var(--el-missing); }
.el-dot.dot-metal { background: var(--el-metal-fill); box-shadow: inset 0 0 0 1.5px var(--el-metal); }

.marquee { overflow: hidden; border-top: 1px solid var(--hairline-2); border-bottom: 1px solid var(--hairline-2); color: var(--steel); margin: 34px calc(50% - 50vw); padding: 12px 0; white-space: nowrap; }
.marquee span { display: inline-block; font-family: var(--mono); font-size: 11px; letter-spacing: .42em; text-transform: uppercase; padding-right: 2em; animation: mq 30s linear infinite; }
@keyframes mq { to { transform: translateX(-100%); } }

/* cards: hairline plates, no fills, no shadows */
.card { background: #fff; border: 1px solid var(--hairline-2); border-radius: 19.2px; padding: 32px 28px; margin-bottom: 20px; }
/* stamped section headings */
.card h3 { font-family: var(--mono); font-size: 15px; font-weight: 400; letter-spacing: .38em; text-transform: uppercase; color: var(--ink); margin-bottom: 18px; line-height: 1.6; }
.card h3 .cont { display: block; font-family: var(--sans); font-size: 13px; font-weight: 300; color: var(--steel); letter-spacing: 0; text-transform: none; margin-top: 8px; }
.section-sub { color: var(--steel); font-size: 14px; margin: -8px 0 18px; }

.form .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: flex; flex-direction: column; gap: 7px; font-family: var(--mono); font-size: 11px; font-weight: 400; color: var(--steel); text-transform: uppercase; letter-spacing: .2em; }
.form input[type="date"], .form input[type="time"], .form input[type="text"] {
  background: var(--bg); border: 1px solid var(--hairline-2); border-radius: 8px;
  color: var(--ink); font-family: var(--sans); font-weight: 300; font-size: 16px; padding: 12px; width: 100%; min-height: 46px;
}
.form input:focus { outline: none; border-color: var(--ink); }
.form label:nth-child(3), .form fieldset { grid-column: 1 / -1; }
.sub-check { display: flex; gap: 7px; align-items: center; font-family: var(--sans); font-size: 12.5px; text-transform: none; letter-spacing: 0; }
.hint, .hint-inline { font-family: var(--sans); font-size: 12px; color: var(--ash); text-transform: none; letter-spacing: 0; }
/* sex at birth: native radios kept (names/values, arrow-key nav), drawn as pills */
.sexes { border: none; display: flex; gap: 8px; flex-wrap: wrap; color: var(--steel); font-size: 14px; }
.sexes legend { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .2em; margin-bottom: 9px; }
.form .sexes label { position: relative; flex-direction: row; align-items: center; justify-content: center; gap: 0; min-height: 36px; min-width: 84px;
  padding: 0 18px; border: 1px solid var(--hairline); border-radius: 999px; cursor: pointer;
  font-family: var(--sans); font-size: 14px; font-weight: 300; color: var(--ink); text-transform: none; letter-spacing: 0;
  transition: background .2s, border-color .2s, color .2s; }
.sexes label input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; appearance: none; -webkit-appearance: none; }
.form .sexes label:hover { border-color: var(--ink); }
.form .sexes label:has(input:checked) { background: var(--ink); border-color: var(--ink); color: #fff; }
.form .sexes label:has(input:focus-visible) { outline: 1px solid var(--ink); outline-offset: 3px; }
.err { color: var(--err); margin-top: 14px; font-size: 14px; }
.privacy { margin-top: 14px; font-size: 12px; color: var(--ash); text-align: center; }

.cta {
  display: inline-block; width: 100%; margin-top: 20px;
  background: var(--ink); color: #fff;
  border: 1px solid var(--ink); border-radius: 8px; padding: 14px 22px;
  font: inherit; font-size: 15px; font-weight: 400; cursor: pointer; text-align: center; text-decoration: none;
  transition: opacity .25s;
}
.cta:hover { opacity: .85; }
.ghost {
  background: transparent; color: var(--ink); border: 1px solid var(--hairline); border-radius: 6px;
  padding: 11px 16px; font: inherit; font-size: 14px; font-weight: 400; cursor: pointer; transition: background .25s;
}
.ghost:hover { background: var(--wash); }
.sample-btn { width: 100%; margin-top: 10px; }

#result { padding-top: 40px; }
.arch-card { text-align: center; padding: 48px 26px 36px; position: relative; }
.arch-card::before { display: none; }
.eyebrow { font-family: var(--mono); font-size: 11px; letter-spacing: .34em; color: var(--steel); }
.arch-hanja { font-size: clamp(104px, 27vw, 180px); line-height: .96; margin: 24px 0 8px; font-family: var(--cjk); color: var(--ink); text-shadow: 0 10px 50px rgba(122, 46, 230, .18); }
.arch-card h2 { font-family: var(--serif); font-style: italic; font-size: clamp(32px, 8vw, 52px); font-weight: 400; letter-spacing: -.01em; line-height: 1; margin: 4px 0 12px; color: var(--violet-deep); }
.arch-line { font-size: 16.5px; font-weight: 300; color: var(--ink); margin-bottom: 20px; }
.traits { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 22px; }
.chip { background: var(--wash); color: var(--ink); border: 1px solid var(--hairline-2); border-radius: 1584px; font-family: var(--mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; padding: 7px 16px; }
.arch-deep { text-align: left; color: var(--steel); font-size: 15px; line-height: 1.65; max-width: 56ch; margin: 0 auto 16px; }
.rarity { font-family: var(--mono); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--steel); margin-bottom: 8px; }
.actions { display: grid; gap: 10px; margin-top: 14px; }

.rd-sec { display: grid; grid-template-columns: 40px 1fr; gap: 16px; padding: 20px 0 8px; border-top: 1px solid var(--hairline-2); margin-top: 14px; }
.rd-sec:first-of-type { border-top: none; margin-top: 0; }
.rd-num { font-family: var(--cjk); font-size: 23px; color: var(--ink); text-align: center; }
.rd-sec h4 { font-family: var(--serif); font-style: italic; font-size: 19px; font-weight: 400; color: var(--violet-deep); margin-bottom: 7px; }
.rd-body { color: var(--steel); font-size: 15px; font-weight: 300; line-height: 1.7; max-width: 58ch; }
.rd-body b { color: var(--ink); font-weight: 400; }
.rd-first::first-letter { float: none; font-size: inherit; padding: 0; }

.twins { display: flex; flex-wrap: wrap; gap: 8px; }
.twin { display: inline-flex; align-items: baseline; gap: 8px; background: transparent; border: 1px solid var(--hairline); border-radius: 1584px; padding: 9px 16px; font-size: 13.5px; }
.twin b { font-weight: 400; }
.twin i { font-style: normal; font-family: var(--mono); font-size: 11px; color: var(--ash); letter-spacing: .18em; text-transform: uppercase; }

.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--hairline-2); border-radius: 12px; overflow: hidden; }
.pillar { background: transparent; border-right: 1px solid var(--hairline-2); border-radius: 0; padding: 16px 6px; text-align: center; }
.pillar:last-child { border-right: none; }
.pillar-day { background: rgba(122, 46, 230, .07); }
.p-cap { font-family: var(--mono); font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--ash); margin-bottom: 8px; }
.p-hanja { font-size: 29px; line-height: 1.15; font-family: var(--cjk); }
.p-ch { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.p-ch + .p-ch { margin-top: 6px; }
.p-ch .el-dot { width: 6px; height: 6px; }
.p-unknown { color: #cfcfcb; }
.p-name { font-size: 12px; color: var(--steel); margin-top: 8px; }
.p-gloss { font-size: 11px; color: var(--ash); margin-top: 3px; }

/* element wheel + bars */
.elx { display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: center; justify-content: center; }
.el-wheel { flex: 1 1 280px; max-width: 360px; height: auto; color: var(--ash); }
.el-bars { flex: 1 1 230px; min-width: 230px; }
.el-sheng { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-dasharray: 3 6; animation: elflow 60s linear infinite; }
@keyframes elflow { to { stroke-dashoffset: -900; } }
.el-ke { stroke: var(--hairline-2); stroke-width: 1; stroke-dasharray: 2 5; }
.el-you { fill: none; stroke: var(--violet); stroke-width: 1.5; }
/* SVG user units; must match FS in elementWheel (js/app.js) */
.el-lbl { font-family: var(--mono); font-size: 14px; letter-spacing: .08em; fill: var(--steel); }
.el-glyph { font-family: var(--cjk); pointer-events: none; }
.el-cnt { font-weight: 600; fill: var(--ink); }
.el-youlbl { fill: var(--violet-deep); }
@media (prefers-reduced-motion: reduce) { .el-sheng { animation: none; } }

.el-row { display: grid; grid-template-columns: 56px 1fr 22px; gap: 12px; align-items: center; margin-bottom: 12px; }
.el-name { font-family: var(--mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--steel); }
.el-track { height: 2px; background: var(--hairline-2); border-radius: 0; overflow: visible; }
.el-fill { display: block; height: 6px; margin-top: -2px; border-radius: 0; }
.el-n { font-size: 12.5px; color: var(--steel); text-align: right; font-variant-numeric: tabular-nums; }

.decade { display: grid; grid-template-columns: 84px 44px 1fr auto; gap: 12px; align-items: center; padding: 13px 4px 13px 12px; border-bottom: 1px solid var(--hairline-2); margin-bottom: 0; background: transparent; border-radius: 0; }
.decade-power .d-flag { color: var(--violet-deep); }
/* the decade you are living now */
.decade-now { background: rgba(122, 46, 230, .05); box-shadow: inset 2px 0 0 var(--violet); }
.decade-now .d-age, .decade-now .d-hanja { color: var(--ink); }
.d-now { display: block; margin-top: 4px; font-weight: 400; font-size: 11px; letter-spacing: .18em; color: var(--violet-deep); }
.d-age { font-family: var(--mono); font-size: 11.5px; color: var(--steel); font-variant-numeric: tabular-nums; }
.d-hanja { font-family: var(--cjk); font-size: 19px; }
.d-el { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--steel); }
.d-flag { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink); white-space: nowrap; }

.note { font-size: 12.5px; color: var(--ash); margin-top: 14px; line-height: 1.55; }
.center { text-align: center; margin-bottom: 16px; }

.today-row { display: flex; gap: 20px; align-items: center; }
.t-card { flex: none; width: 64px; height: auto; border-radius: 4px; transform: rotate(-3deg); box-shadow: 0 8px 18px rgba(17, 17, 17, .1); }
.t-hanja { display: flex; align-items: center; gap: 8px; font-family: var(--cjk); font-size: 26px; line-height: 1.1; margin-bottom: 4px; color: var(--ink); }
.today-row b { display: block; font-family: var(--serif); font-style: italic; font-size: 18px; font-weight: 400; color: var(--violet-deep); }
.today-line { color: var(--steel); font-size: 14px; margin-top: 4px; }

.compat-form { display: flex; gap: 10px; }
.compat-form input[type="date"] { flex: 1; background: var(--bg); border: 1px solid var(--hairline-2); border-radius: 8px; color: var(--ink); font-family: var(--sans); font-weight: 300; font-size: 16px; padding: 11px 12px; min-height: 46px; }
.compat-form .ghost { flex: none; min-width: 96px; }
.compat-out { margin-top: 20px; border-top: 1px solid var(--hairline-2); padding-top: 18px; }
.compat-they { font-size: 13.5px; color: var(--steel); }
.compat-they b { color: var(--ink) !important; font-weight: 400; }
.c-hanja { font-family: var(--cjk); margin-left: 4px; }
.compat-title { font-family: var(--serif); font-style: italic; font-size: 26px; font-weight: 400; color: var(--violet-deep); margin: 8px 0 8px; }
.compat-body { color: var(--steel); font-size: 14.5px; font-weight: 300; line-height: 1.65; }

.trace-card summary { cursor: pointer; font-family: var(--mono); font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--ink); }
.trace-card ul { margin: 16px 0 0 18px; color: var(--steel); font-size: 13.5px; display: grid; gap: 8px; }
.trace-card code { font-family: var(--mono); font-size: 12px; border: 1px solid var(--hairline-2); padding: 2px 7px; border-radius: 6px; }
.trace-card b { color: var(--ink); }

/* the violet bloom — the one place the palette breaks monochrome */
.price-card {
  background: radial-gradient(120% 120% at 50% -10%, #a970f5 0%, var(--violet) 45%, #4c1691 100%);
  border: none; text-align: center; padding: 44px 28px;
}
.price-card h3 { font-family: var(--serif); font-style: italic; font-size: clamp(28px, 6.6vw, 40px); font-weight: 400; letter-spacing: 0; text-transform: none; color: #fff; line-height: 1.15; }
.price-eyebrow { font-family: var(--mono); color: rgba(255, 255, 255, .75); letter-spacing: .34em; }
/* pricing tiers inside the bloom */
.tiers { display: grid; gap: 12px; max-width: 520px; margin: 24px auto 6px; text-align: left; }
.tier { background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .28); border-radius: 14px; padding: 18px 18px 16px; color: #fff; }
.tier-hero { background: #fff; border-color: #fff; color: #111; }
.tier p { font-size: 13.5px; font-weight: 300; line-height: 1.55; color: rgba(255, 255, 255, .85); margin: 8px 0 14px; }
.tier-hero p { color: #4a4a4a; }
.tier-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.tier-head b { font-weight: 500; font-size: 16px; }
.tier-price { font-family: var(--mono); font-size: 14px; white-space: nowrap; }
.tier-price s { opacity: .55; font-size: 12px; }
.tier-cta { display: block; text-align: center; text-decoration: none; font-size: 14px; padding: 11px 16px; border-radius: 8px; }
.tier-ghost { border: 1px solid rgba(255, 255, 255, .7); color: #fff; }
.tier-ghost:hover { background: rgba(255, 255, 255, .12); }
.tier-main { background: var(--violet); color: #fff; font-weight: 500; }
.tier-main:hover { opacity: .92; }

.price-list { margin: 22px auto 4px; padding: 0; list-style: none; display: grid; gap: 12px; max-width: 46ch; text-align: left; }
.price-list li { color: rgba(255, 255, 255, .9); font-size: 14px; line-height: 1.55; padding-left: 24px; position: relative; }
.price-list li::before { content: "→"; position: absolute; left: 0; color: #fff; }
.price-row { display: flex; align-items: baseline; gap: 10px; margin-top: 22px; justify-content: center; }
.price-num { font-size: 42px; font-weight: 400; color: #fff; }
.price-sub { font-family: var(--mono); color: rgba(255, 255, 255, .75); font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; }
.price-card .cta { background: #fff; color: #111; border-color: #fff; max-width: 340px; font-weight: 500; }
.price-card .cta:hover { opacity: .92; }
.center-note { text-align: center; color: rgba(255, 255, 255, .75); }

footer { text-align: center; color: var(--ash); font-family: var(--mono); font-size: 11px; letter-spacing: .14em; padding: 26px 20px 50px; }
footer p { margin-top: 5px; }
footer::after { content: "+ 37.5665° N, 126.9780° E · COMPUTED IN YOUR BROWSER"; display: block; margin-top: 10px; color: #b8b8b4; }

.dock[hidden] { display: none; }
.dock { position: fixed; left: 50%; transform: translateX(-50%); bottom: 16px; display: flex; gap: 4px; align-items: center; background: rgba(255, 255, 255, .85); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border: 1px solid var(--hairline-2); border-radius: 1584px; padding: 6px; z-index: 10; white-space: nowrap; box-shadow: 0 6px 24px rgba(0, 0, 0, .08); }
.dock { transition: transform .35s cubic-bezier(.19, 1, .22, 1), opacity .25s ease; }
.dock.dock-away { transform: translate(-50%, 140%); opacity: 0; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .dock { transition: none; } }
.dock-btn { background: transparent; border: none; color: var(--ink); font: inherit; font-size: 13px; font-weight: 300; padding: 10px 15px; border-radius: 1584px; cursor: pointer; }
.dock-btn:hover { background: var(--wash); }
.dock-cta { background: var(--violet); color: #fff; text-decoration: none; font-size: 13px; font-weight: 400; padding: 10px 18px; border-radius: 1584px; }

/* ---- day-pillar card art: static rotate, breathing element glow, hover lift ---- */
.arch-illust { position: relative; z-index: 0; width: min(252px, 62vw); margin: 20px auto 8px; }
.arch-illust::before {
  content: ""; position: absolute; inset: -18% -24%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(38% 38% at 50% 44%, color-mix(in srgb, var(--elg) 58%, transparent), transparent 70%),
    radial-gradient(58% 58% at 50% 50%, color-mix(in srgb, var(--elg) 38%, transparent), color-mix(in srgb, var(--elg) 10%, transparent) 62%, transparent 78%);
  filter: blur(16px);
  animation: bloomPulse 4.5s ease-in-out infinite alternate;
}
@keyframes bloomPulse {
  from { opacity: .8; transform: scale(.97); }
  to { opacity: 1; transform: scale(1.05); }
}
.arch-illust .tiltbox {
  position: relative; border-radius: 7px;
  transform: rotate(-3deg);
  transition: transform .7s cubic-bezier(.19, 1, .22, 1);
  box-shadow: 0 20px 44px color-mix(in srgb, var(--elg) 32%, transparent), 0 4px 14px rgba(17, 17, 17, .1);
}
@media (hover: hover) { .arch-illust:hover .tiltbox { transform: rotate(-3deg) translateY(-6px); } }
/* reveal hand-off: the flying card stands in until it lands */
.arch-illust.rvl-hold .tiltbox { opacity: 0; }
.arch-illust.rvl-hold::before { animation: none; opacity: 0; }
.arch-illust.rvl-arrive::before { animation: bloomIn 1.2s ease-out, bloomPulse 4.5s ease-in-out 1.2s infinite alternate; }
@keyframes bloomIn { from { opacity: 0; transform: scale(.9); } 55% { opacity: 1; transform: scale(1.08); } to { opacity: .8; transform: scale(.97); } }
.arch-illust img { width: 100%; height: auto; display: block; border-radius: 7px; }
.arch-illust .glare { display: none; }
.has-illust .arch-hanja { font-size: clamp(40px, 9vw, 58px); margin: 12px 0 2px; text-shadow: none; }
@media (min-width: 900px) { .arch-illust { width: 300px; } .has-illust .arch-hanja { font-size: 64px; } }

/* ---- the reveal: deal, turn, land (timeline in js/app.js playReveal) ---- */
#reveal { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center;
  cursor: pointer; overflow: hidden; transition: opacity .2s ease; }
#reveal[hidden] { display: none; }
#reveal.rvl-out { opacity: 0; }
.rvl-bg { position: absolute; inset: 0; background: var(--bg); opacity: 0; transition: opacity .25s ease; }
.rvl-on .rvl-bg { opacity: 1; }
.rvl-instant .rvl-bg { transition: none; }
.rvl-land .rvl-bg { opacity: 0; transition: opacity .5s ease .08s; }
.rvl-instant.rvl-land .rvl-bg { transition: opacity .2s ease; }
.rvl-instant .rvl-skip { display: none; }
.rvl-stage { position: relative; width: 0; height: 0; }
.rvl-card {
  position: absolute; left: -94px; top: -141px; width: 188px; height: 282px; border-radius: 8px;
  transform: translate(0, 120px) rotate(0deg) scale(.5); opacity: 0;
  transition: transform .65s cubic-bezier(.19, 1, .22, 1), opacity .35s ease;
}
.rvl-fan .rvl-card { transform: var(--fan); opacity: 1; transition-delay: var(--d, 0ms); }
/* card back: hairline inner frame + hatch + violet seal (the hero deck backs use the same) */
.rvl-back { position: absolute; inset: 0; border-radius: 8px; background: #fff; border: 1.5px solid #111;
  box-shadow: 0 6px 18px rgba(17, 17, 17, .12);
  -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.rvl-back::before { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(0, 0, 0, .5); border-radius: 5px;
  background: repeating-linear-gradient(45deg, transparent 0 4px, rgba(0, 0, 0, .05) 4px 5px); }
.rvl-back span { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  font-family: var(--cjk); font-size: 44px; color: var(--violet); }
/* the chosen card: rises with its back up, then turns over on Y */
.rvl-chosen { z-index: 3; perspective: 1100px; }
.rvl-inner { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .7s cubic-bezier(.45, .05, .2, 1); }
.rvl-front { position: absolute; inset: 0; border-radius: 7px; overflow: hidden; background: #fff; transform: rotateY(180deg);
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 20px 44px color-mix(in srgb, var(--elg) 32%, transparent), 0 4px 14px rgba(17, 17, 17, .1); }
.rvl-front img { display: block; width: 100%; height: 100%; object-fit: cover; }
.rvl-hanja { font-family: var(--cjk); font-size: 64px; line-height: 1.05; text-align: center; color: #111; }
.rvl-glow { position: absolute; inset: -22% -30%; pointer-events: none; opacity: 0;
  background:
    radial-gradient(38% 38% at 50% 44%, color-mix(in srgb, var(--elg) 58%, transparent), transparent 70%),
    radial-gradient(58% 58% at 50% 50%, color-mix(in srgb, var(--elg) 38%, transparent), color-mix(in srgb, var(--elg) 10%, transparent) 62%, transparent 78%);
  filter: blur(18px); }
.rvl-pick .rvl-card:not(.rvl-chosen) { opacity: 0; transition: transform .6s cubic-bezier(.19, 1, .22, 1), opacity .4s ease; transform: var(--fan) translateY(60px); }
.rvl-pick .rvl-chosen { transform: translate(0, -40px) rotate(0deg) scale(1); transition: transform .75s cubic-bezier(.19, 1, .22, 1); }
.rvl-turn .rvl-inner { transform: rotateY(180deg); }
.rvl-named .rvl-glow { animation: bloomIn 1.3s ease-out forwards; }
.rvl-land .rvl-chosen { transform: var(--land); transition: transform .6s cubic-bezier(.19, 1, .22, 1); }
.rvl-land .rvl-glow { opacity: 0; animation: none; transition: opacity .3s ease; }
/* name card: eyebrow, then the title, under the card */
.rvl-cap { position: absolute; left: 0; right: 0; top: calc(50% + 124px); text-align: center; padding: 0 20px; pointer-events: none; }
.rvl-eyebrow { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: .32em; color: var(--steel);
  opacity: 0; transform: translateY(6px); transition: opacity .45s ease, transform .45s ease; }
.rvl-title { display: block; margin-top: 8px; font-family: var(--serif); font-style: italic; font-size: clamp(28px, 7vw, 40px);
  line-height: 1.1; color: var(--violet-deep);
  opacity: 0; transform: translateY(8px); transition: opacity .5s ease .14s, transform .5s ease .14s; }
.rvl-named .rvl-eyebrow, .rvl-named .rvl-title { opacity: 1; transform: none; }
.rvl-land .rvl-cap { opacity: 0; transition: opacity .18s ease; }
.rvl-skip { position: absolute; left: 0; right: 0; bottom: calc(22px + env(safe-area-inset-bottom, 0px)); text-align: center;
  font-family: var(--mono); font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--ash);
  opacity: 0; transition: opacity .4s ease .6s; pointer-events: none; }
.rvl-on .rvl-skip { opacity: 1; }
.rvl-land .rvl-skip { opacity: 0; transition-delay: 0s; }

/* ---- tap ripple (no cursor-follow effects) ---- */
.cta, .tier-main, .dock-cta, .ghost { position: relative; overflow: hidden; }
.fx-ripple {
  position: absolute; width: 12px; height: 12px; border-radius: 999px;
  background: currentColor; opacity: .16; pointer-events: none;
  transform: translate(-50%, -50%) scale(0);
  animation: fxr .6s ease-out forwards;
}
@keyframes fxr { to { transform: translate(-50%, -50%) scale(22); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .arch-illust::before, .arch-illust.rvl-arrive::before { animation: none; }
  .arch-illust .tiltbox { transition: none; }
  .fx-ripple { display: none; }
}

/* ---- 60-card gallery ---- */
.linklike { display: block; margin: 12px auto 0; background: none; border: none; cursor: pointer;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--steel); }
.linklike:hover { color: var(--ink); }
/* gallery + card detail are native modal <dialog>s */
body.modal-open { overflow: hidden; }
#gallery, #gdetail { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; color: var(--ink); overscroll-behavior: contain; }
#gallery:not([open]), #gdetail:not([open]) { display: none; }
#gallery { background: var(--bg); overflow-y: auto; }
#gallery::backdrop { background: var(--bg); }
.gal-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 16px;
  background: rgba(250, 250, 248, .92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline-2); padding: calc(12px + env(safe-area-inset-top, 0px)) 16px 12px 20px; }
.gal-title { font-family: var(--mono); font-size: 13px; letter-spacing: .34em; font-weight: 400; }
.gal-seg { display: flex; gap: 4px; margin-left: auto; }
.gal-seg button { background: transparent; border: 1px solid var(--hairline-2); border-radius: 999px;
  font: inherit; font-size: 12px; padding: 7px 14px; cursor: pointer; color: var(--steel); }
.gal-seg button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.gal-x, .gd-x { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; flex: none;
  background: #fff; border: 1px solid var(--hairline); border-radius: 999px; cursor: pointer; color: var(--ink);
  font-size: 22px; line-height: 1; padding: 0 0 2px; transition: border-color .2s; }
.gal-x:hover, .gd-x:hover { border-color: var(--ink); }
#gal-body { max-width: 1024px; margin: 0 auto; padding: 20px 20px 80px; }
.gal-group { font-family: var(--mono); font-size: 11.5px; font-weight: 400; letter-spacing: .26em; color: var(--steel);
  margin: 26px 0 12px; display: flex; align-items: center; gap: 8px; }
.gal-dot { width: 10px; height: 10px; border-radius: 999px; background: var(--ink); display: none; }
.gal-group .gal-dot[class*="dot-"] { display: inline-block; }
.dot-wood { background: var(--el-wood); } .dot-fire { background: var(--el-fire); }
.dot-earth { background: var(--el-earth); } .dot-metal { background: var(--el-metal); }
.dot-water { background: var(--el-water); }
.gal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.gal-card { background: #fff; border: 1px solid var(--hairline-2); border-radius: 8px; overflow: hidden;
  padding: 0; cursor: pointer; text-align: left; font: inherit; color: var(--ink); transition: transform .25s ease, box-shadow .25s ease; }
.gal-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0, 0, 0, .1); }
.gal-card img { width: 100%; height: auto; display: block; }
.gal-card span { display: block; font-size: 11px; color: var(--steel); padding: 6px 8px; }

/* card detail: art first, then it turns to what it means */
#gdetail { background: rgba(250, 250, 248, .96); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  overflow-y: auto; }
#gdetail[open] { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  padding: calc(64px + env(safe-area-inset-top, 0px)) 16px calc(24px + env(safe-area-inset-bottom, 0px)); }
#gdetail::backdrop { background: transparent; }
.gd-x { position: absolute; top: calc(14px + env(safe-area-inset-top, 0px)); right: 16px; }
.gd-wrap { display: flex; align-items: center; gap: 18px; }
.gd-nav { flex: none; width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--hairline); background: #fff;
  color: var(--ink); font-size: 18px; cursor: pointer; transition: border-color .2s; }
.gd-nav:hover { border-color: var(--ink); }
.gd-flip { width: min(372px, 72vw, calc((100vh - 170px) * .6667)); aspect-ratio: 2 / 3; position: relative; flex: none;
  transform-style: preserve-3d; transition: transform .65s cubic-bezier(.19, 1, .22, 1); cursor: pointer; }
.gd-flip.go { transform: rotateY(180deg); }
.gd-flip.gd-instant { transition: none; }
.gd-front, .gd-back { position: absolute; inset: 0; border-radius: 10px; overflow: hidden;
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
  box-shadow: 0 22px 60px color-mix(in srgb, var(--elg) 28%, rgba(0, 0, 0, .1)); }
.gd-front img { width: 100%; height: 100%; object-fit: cover; }
.gd-back { transform: rotateY(180deg); background: #fff; border: 1px solid #111; cursor: default;
  padding: 20px 20px 16px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; }
.gd-eyebrow { font-family: var(--mono); font-size: 11px; letter-spacing: .22em; color: var(--steel); }
.gd-hanja { font-family: var(--cjk); font-size: 40px; line-height: 1.05; }
.gd-back h4 { font-family: var(--serif); font-style: italic; font-size: 24px; font-weight: 400; color: var(--violet-deep); }
.gd-line { font-size: 13.5px; font-style: italic; color: var(--ink); }
.gd-traits { display: flex; flex-wrap: wrap; gap: 6px; }
.gd-traits span { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  border: 1px solid var(--hairline-2); border-radius: 999px; padding: 4px 10px; color: var(--steel); }
.gd-deep { font-size: 12.5px; font-weight: 300; line-height: 1.55; color: var(--steel); }
.gd-actions { margin-top: auto; padding-top: 10px; display: grid; gap: 10px; }
.gd-mine { background: var(--ink); color: #fff; border: 1px solid var(--ink); border-radius: 999px; padding: 10px 14px;
  font: inherit; font-size: 13.5px; font-weight: 400; cursor: pointer; }
.gd-mine:hover { opacity: .85; }
.gd-read { text-align: center; font-size: 13px; color: var(--violet-deep); text-underline-offset: 3px; }
.gd-bar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: center; }
.gd-name { font-family: var(--mono); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--steel); }
.gd-flipbtn { background: transparent; border: 1px solid var(--hairline); border-radius: 999px; padding: 8px 16px;
  font: inherit; font-size: 13px; color: var(--ink); cursor: pointer; }
.gd-flipbtn:hover { border-color: var(--ink); }
@media (max-width: 560px) {
  .gd-wrap { gap: 0; }
  .gd-nav { position: fixed; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 2; }
  .gd-prev { left: 16px; } .gd-next { right: 16px; }
  .gd-flip { width: min(330px, 84vw, calc((100vh - 220px) * .6667)); }
  #gdetail[open] { padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }
}
@media (prefers-reduced-motion: reduce) { .gd-flip { transition: none; } .gal-card { transition: none; } }

#result[hidden] { display: none; }
.rv { opacity: 0; transform: translateY(18px); }
.in { opacity: 1; transform: none; transition: opacity .9s cubic-bezier(.19, 1, .22, 1), transform .9s cubic-bezier(.19, 1, .22, 1); transition-delay: calc(var(--i, 0) * 80ms); }
.in.rv-now { transition: none; }
.el-row.rv .el-fill { transform: scaleX(0); transform-origin: left; }
.el-row.in .el-fill { transform: none; transition: transform 1.1s cubic-bezier(.19, 1, .22, 1) calc(var(--i, 0) * 90ms + .1s); }
button:focus-visible, a:focus-visible { outline: 1px solid var(--ink); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; } .in, .el-row.in .el-fill { transition: none; } .marquee span { animation: none; } }
@media (min-width: 900px) {
  main, .brand { max-width: 760px; }
  .hero { padding-top: 92px; }
  .hero h1 { font-size: 64px; }
  .arch-hanja { font-size: 210px; }
  /* not the pricing bloom: its heading is display serif, never tracked */
  .card:not(.price-card) h3 { font-size: 17px; letter-spacing: .44em; }
}

/* ===== wide desktop: two-column hero (Today's card) and result ===== */
.deep-lede, .side-cta { display: none; }
@media (min-width: 1100px) {
  main, .brand { max-width: 1120px; }
  main { padding-left: 32px; padding-right: 32px; }
  .brand { padding-left: 36px; padding-right: 36px; }
  .hero { display: grid; grid-template-columns: minmax(0, 640px) minmax(0, 1fr); column-gap: 56px; padding-top: 72px; align-items: start; }
  .hero-copy { display: contents; }
  .hero-eyebrow, .hero h1, .hero-sub { grid-column: 1; }
  .hero-eyebrow { grid-row: 1; }
  .hero h1 { grid-row: 2; }
  .hero-sub { grid-row: 3; margin-bottom: 34px; }
  .hero .form { grid-column: 1; grid-row: 4; margin-bottom: 0; }
  .hero-deck { grid-column: 2; grid-row: 1 / span 4; align-self: start;
    display: flex; flex-direction: column; align-items: center; gap: 0; margin: 64px 0 0; }
  .hd-stack { width: 280px; margin: 0; }
  .hd-card, .hd-back, .hd-card img { border-radius: 9px; }
  .hd-back::before { inset: 9px; border-radius: 5px; }
  .hd-back::after { font-size: 46px; }
  .hd-back-1 { transform: translate(-38px, 14px) rotate(-9deg); }
  .hd-back-2 { transform: translate(34px, 10px) rotate(7deg); }
  .hd-glow { inset: -18% -24%; }
  .hd-cap { align-items: center; text-align: center; margin-top: 42px; gap: 6px; }
  .hd-title { font-size: 30px; }
  .hd-find { margin-top: 4px; }
  @media (hover: hover) {
    .hd-back-1:hover { transform: translate(-44px, 8px) rotate(-10deg); }
    .hd-back-2:hover { transform: translate(40px, 4px) rotate(8deg); }
  }
  .marquee { margin-top: 64px; }
  .proof-row { margin: 12px 0 72px; }
  .proof-grid { grid-auto-flow: row; grid-template-columns: repeat(7, minmax(0, 1fr)); grid-auto-columns: auto;
    gap: 20px; overflow: visible; padding: 6px 0 0; margin: 0; }
  .proof-end span { font-size: 21px; }

  /* result: sticky identity card left, the reading right */
  #result { display: grid; grid-template-columns: 360px minmax(0, 1fr); column-gap: 48px; align-items: start; }
  #result > * { grid-column: 2; min-width: 0; }
  #result > .arch-card { grid-column: 1; grid-row: 1 / span 20; position: sticky; top: 24px;
    padding: 32px 24px 26px; margin-bottom: 0; }
  .arch-card .arch-illust { width: 200px; margin: 16px auto 6px; }
  .arch-card .chip { letter-spacing: .1em; padding: 6px 11px; }
  .traits { gap: 6px; }
  .card-share { gap: 4px; margin-bottom: 16px; }
  .share-pill { min-height: 40px; }
  .has-illust .arch-hanja { font-size: 40px; margin: 10px 0 0; }
  .arch-card h2 { font-size: 36px; margin-bottom: 8px; }
  .arch-line { font-size: 15px; margin-bottom: 14px; }
  .traits { margin-bottom: 16px; }
  .arch-card .arch-deep, .arch-card .rarity { display: none; }
  .deep-lede { display: block; font-size: 19px; font-weight: 300; line-height: 1.6; color: var(--ink);
    margin: 4px 0 30px; padding-left: 20px; border-left: 2px solid var(--violet); max-width: 62ch; }
  .side-cta { display: block; margin-top: 16px; padding: 12px 16px; border-radius: 999px; background: var(--violet); color: #fff;
    text-decoration: none; font-size: 14px; font-weight: 400; text-align: center; transition: opacity .2s; }
  .side-cta:hover { opacity: .9; }
  .arch-card .linklike { margin-top: 12px; }
  #dock { display: none; }
  body:has(#dock:not([hidden])) main { padding-bottom: 72px; }
  #shop { max-width: 820px; margin: 0 auto; }
}
@media (min-width: 1100px) and (max-height: 820px) {
  .arch-card .arch-illust { width: 180px; }
  .arch-card h2 { font-size: 30px; }
}
@media (max-width: 560px) { .form .grid { grid-template-columns: 1fr; } .decade { grid-template-columns: 76px 40px 1fr; } .d-flag { grid-column: 3; text-align: right; } }

/* ================= paid readings: menu, redeem, private page ================= */
.tier-scope { font-family: var(--mono); font-size: 11px; letter-spacing: .22em; color: rgba(255, 255, 255, .62); margin-bottom: 8px; }
.tier-hero .tier-scope { color: var(--violet-deep); }
.redeem-link { background: none; border: none; cursor: pointer; font: inherit; color: #fff; text-decoration: underline; text-underline-offset: 3px; padding: 0; }

.redeem-form { display: flex; gap: 10px; margin-top: 4px; }
.redeem-form input { flex: 1; background: var(--bg); border: 1px solid var(--hairline-2); border-radius: 8px; color: var(--ink); font-family: var(--mono); font-size: 16px; letter-spacing: .02em; padding: 12px 13px; min-height: 46px; min-width: 0; }
.redeem-form input:focus { outline: none; border-color: var(--ink); }
.redeem-form .cta { flex: none; width: auto; min-width: 110px; margin: 0; }

#rk-step { margin-top: 20px; border-top: 1px solid var(--hairline-2); padding-top: 20px; }
.rk-sku { font-family: var(--mono); font-size: 10.5px; letter-spacing: .3em; color: var(--violet-deep); margin-bottom: 12px; }
.rk-q { font-size: 14.5px; color: var(--steel); margin-bottom: 12px; }
.rk-opts { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.rk-opt { border: 1px solid var(--hairline); background: none; border-radius: 999px; padding: 9px 16px; font-family: var(--sans); font-size: 14px; font-weight: 300; color: var(--ink); cursor: pointer; }
.rk-opt.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.rk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.rk-grid label { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: .22em; color: var(--steel); text-transform: uppercase; }
.rk-grid input { display: block; width: 100%; margin-top: 6px; background: var(--bg); border: 1px solid var(--hairline-2); border-radius: 8px; color: var(--ink); font-family: var(--sans); font-weight: 300; font-size: 16px; padding: 10px 12px; min-height: 44px; }
.rk-grid input:focus { outline: none; border-color: var(--ink); }
.rk-sub { grid-column: 1 / -1; display: flex; gap: 14px; align-items: center; font-size: 13.5px; color: var(--steel); }
.rk-sub label { display: inline-flex; align-items: center; gap: 6px; font-family: var(--sans); font-size: 13.5px; letter-spacing: 0; text-transform: none; }
.rk-grid .rk-sub input { display: inline-block; width: auto; min-height: 0; margin: 0; padding: 0; accent-color: var(--ink); }
.rk-note { font-size: 12.5px; color: var(--ash); margin-top: 10px; }
@media (max-width: 560px) { .rk-grid { grid-template-columns: 1fr; } }

#my-readings { margin-top: 22px; border-top: 1px solid var(--hairline-2); padding-top: 18px; }
.mr-row { display: flex; align-items: baseline; gap: 12px; flex: 1; min-width: 0; background: none; border: none; padding: 12px 2px; cursor: pointer; text-align: left; font-family: var(--sans); }
.mr-row:hover { background: var(--wash); }
.mr-title { font-size: 15px; font-weight: 400; color: var(--ink); flex: 1; }
.mr-date { font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; color: var(--ash); white-space: nowrap; }

/* ---- the private reading page ---- */
#rpage { position: fixed; inset: 0; z-index: 60; background: var(--bg); overflow-y: auto; overscroll-behavior: contain; }
#rpage[hidden] { display: none; }
.rp-shell { max-width: 72ch; margin: 0 auto; padding: 26px 22px 80px; }
.rp-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--hairline); position: sticky; top: 0; background: var(--bg); padding-top: 6px; z-index: 2; }
.rp-stamp { font-family: var(--mono); font-size: 10.5px; letter-spacing: .34em; color: var(--ink); }
.rp-tools { display: flex; gap: 8px; }
.rp-btn { width: auto; margin: 0; padding: 8px 14px; font-size: 13px; min-height: 0; }
.rp-meta { font-family: var(--mono); font-size: 10px; letter-spacing: .18em; color: var(--ash); text-transform: uppercase; margin: 16px 0 6px; }
#rp-status { margin: 26px 0; font-family: var(--mono); font-size: 11px; letter-spacing: .2em; color: var(--violet-deep); text-transform: uppercase; }
#rp-status .dotpulse { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--violet); margin-right: 10px; animation: rp-pulse 1.6s ease-in-out infinite; vertical-align: 1px; }
@keyframes rp-pulse { 0%, 100% { opacity: .35; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.15); } }
#rp-body { padding-top: 8px; }
#rp-body h2 { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 27px; line-height: 1.2; letter-spacing: 0; text-transform: none; color: var(--ink); margin: 44px 0 14px; }
#rp-body h2:first-child { margin-top: 22px; }
#rp-body h3 { font-size: 16px; font-weight: 500; margin: 28px 0 10px; }
#rp-body p { font-size: 16.5px; font-weight: 300; line-height: 1.75; color: #2a2a2a; margin: 0 0 16px; }
#rp-body strong { font-weight: 500; color: var(--ink); }
#rp-body ul { margin: 0 0 16px 20px; display: grid; gap: 8px; }
#rp-body li { font-size: 15.5px; font-weight: 300; line-height: 1.6; color: #2a2a2a; }
#rp-body table { width: 100%; border-collapse: collapse; margin: 6px 0 20px; font-size: 14px; }
#rp-body th { font-family: var(--mono); font-size: 9.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--steel); text-align: left; padding: 8px 10px 8px 0; border-bottom: 1px solid var(--hairline); }
#rp-body td { padding: 9px 10px 9px 0; border-bottom: 1px solid var(--hairline-2); font-weight: 300; color: #2a2a2a; vertical-align: top; }
.rp-foot { margin-top: 46px; padding-top: 18px; border-top: 1px solid var(--hairline-2); font-size: 12.5px; color: var(--ash); line-height: 1.6; }
@media (prefers-reduced-motion: reduce) { #rp-status .dotpulse { animation: none; } }

/* sample links on the menu tiers */
.tier-sample { display: block; width: 100%; margin-top: 9px; background: none; border: none; cursor: pointer; text-align: center; font-family: var(--mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .62); padding: 2px 0; font-size: 11px; }
.tier-sample:hover { color: #fff; }
.tier-sample-hero { color: var(--violet-deep); opacity: .8; }
.tier-sample-hero:hover { color: var(--violet-deep); opacity: 1; }
.redeem-card .note { font-size: 12.5px; color: var(--ash); line-height: 1.6; margin-bottom: 14px; }
.rk-leaves { margin: -6px 0 16px; }
.rk-leaves summary { cursor: pointer; width: fit-content; font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--steel); padding: 4px 0; }
.rk-leaves summary:hover { color: var(--ink); }
.rk-leaves .note { margin: 8px 0 0; }

/* always-visible shop section + hero anchor */
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
#shop { padding-top: 26px; }
a.linklike { color: var(--steel); text-align: center; text-decoration: underline; text-underline-offset: 3px; width: fit-content; }
a.linklike:hover { color: var(--ink); }

/* share: one labeled pill under the traits, two quiet text links under it */
.card-share { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 0 0 22px; }
.share-pill { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; padding: 0 24px;
  border: 1px solid var(--ink); border-radius: 999px; background: #fff; color: var(--ink); cursor: pointer;
  font: inherit; font-size: 14.5px; font-weight: 400; transition: background .2s, color .2s; }
.share-pill svg { width: 16px; height: 16px; flex: none; }
.share-pill:hover { background: var(--ink); color: #fff; }
.share-links { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ash); }
.textlink { background: none; border: 0; padding: 6px 2px; cursor: pointer; font: inherit; font-size: 13px; color: var(--steel);
  text-decoration: underline; text-decoration-color: var(--hairline); text-underline-offset: 3px; }
.textlink:hover { color: var(--ink); text-decoration-color: currentColor; }
.arch-card .linklike { margin-top: 14px; }

/* ===== Option A menu: question-first picker (violet bloom kept; only the
   selected block goes white). Desktop = 4 stacked; mobile = chunky 2x2. ===== */
/* chunky question tiles: mobile 2x2, desktop one horizontal row of 4 */
.qchips { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: 640px; margin: 26px auto 12px; text-align: left; }
/* Odd chip count (three, since the full reading moved to an upsell): the last
 * one spans the row instead of sitting as a half-width orphan. */
.qchips .qchip:last-child:nth-child(odd) { grid-column: 1 / -1; min-height: 84px; }
.qchip { background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .28); border-radius: 13px; padding: 13px 14px; color: #fff; cursor: pointer; font-family: var(--sans); font-weight: 300; font-size: 14.5px; text-align: left; line-height: 1.3; transition: background .2s, color .2s; min-height: 108px; display: flex; flex-direction: column; justify-content: space-between; gap: 10px; }
.qchip:hover { background: rgba(255, 255, 255, .2); }
.qchip small { display: block; font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em; color: rgba(255, 255, 255, .6); text-transform: uppercase; }
.qchip.on { background: #fff; border-color: #fff; color: #111; }
.qchip.on small { color: var(--violet-deep); }
@media (min-width: 561px) {
  .qchips { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); }
  .qchips .qchip:last-child:nth-child(odd) { grid-column: auto; min-height: 122px; }
  .qchip { min-height: 122px; font-size: 14px; }
}
.qpanel { max-width: 640px; margin: 0 auto; background: #fff; border-radius: 14px; padding: 22px 22px 18px; color: #111; text-align: left; }
.qpanel[hidden] { display: none; }
.qp-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.qp-head b { font-weight: 500; font-size: 17px; }
.qp-price { font-family: var(--mono); font-size: 15px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.qp-price s { opacity: .5; font-size: 12px; }
.qp-desc { color: #4a4a4a; font-size: 13.5px; line-height: 1.55; margin: 9px 0 14px; }
.qp-sample { display: block; width: 100%; margin-top: 10px; background: none; border: none; cursor: pointer; text-align: center; font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--violet-deep); padding: 2px 0; }
.qp-sample:hover { opacity: .75; }
.qyears { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px; margin: 12px 0 2px; }
.qyear { border: 1px solid var(--hairline); border-radius: 999px; padding: 6px 0; background: none; cursor: pointer; font-family: var(--mono); font-size: 12px; color: #111; font-variant-numeric: tabular-nums; text-align: center; }
.qyear.on { background: #111; border-color: #111; color: #fff; }

/* pre-purchase confirm step inside the panel */
.qconfirm { border-top: 1px solid var(--hairline-2); margin-top: 16px; padding-top: 16px; }
.qc-chart { font-size: 13.5px; color: var(--steel); line-height: 1.55; margin-bottom: 12px; }
.qc-chart b { color: var(--ink); font-weight: 500; }
.qc-hold { color: var(--steel); background: rgba(0, 0, 0, .035); border-radius: 10px; padding: 12px 14px; }
.qconfirm .rk-q { margin-top: 2px; }
.qc-note { font-size: 12px; color: var(--ash); line-height: 1.6; margin-top: 10px; }
/* the final step is THE primary action: full-width violet, never the bloom's white */
.price-card .qconfirm .cta { display: block; width: 100%; max-width: none; margin-top: 8px; background: var(--violet); border-color: var(--violet); color: #fff; font-weight: 500; padding: 15px 12px; }
.price-card .qconfirm .cta:hover { background: var(--violet-deep); border-color: var(--violet-deep); opacity: 1; }

/* compat reading page: the two charts, side by side (deterministic header) */
.pair { display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; align-items: start; border: 1px solid var(--hairline-2); border-radius: 12px; padding: 18px 14px; margin: 18px 0 8px; }
.pair-x { font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--violet-deep); align-self: center; }
.pair-cap { font-family: var(--mono); font-size: 9px; letter-spacing: .26em; color: var(--steel); text-transform: uppercase; margin-bottom: 10px; text-align: center; }
.pair-pillars { display: flex; gap: 8px; justify-content: center; }
.pair-p { text-align: center; }
.pair-p .h { font-family: var(--cjk); font-size: 21px; line-height: 1.15; color: var(--ink); }
.pair-p .l { font-family: var(--mono); font-size: 8px; letter-spacing: .12em; color: var(--ash); text-transform: uppercase; margin-top: 5px; }
.pair-day { text-align: center; font-size: 12px; color: var(--steel); margin-top: 10px; }
@media (max-width: 560px) { .pair { grid-template-columns: 1fr; } .pair-x { justify-self: center; } }

/* three-part compat page: part stamps + separators */
#rp-body h1 { font-family: var(--mono); font-size: 12px; font-weight: 400; letter-spacing: .34em; text-transform: uppercase; color: var(--violet-deep); margin: 40px 0 6px; }
#rp-body h1:first-child { margin-top: 18px; }
#rp-body hr { border: none; border-top: 1px solid var(--hairline-2); margin: 34px 0 0; }
#rp-body em { font-style: italic; color: var(--ash); }

/* ---- Ipchun mismatch: "your animal is not the one you were told" ----------
 * Skin grammar held: hairline border, no shadow, no second violet bloom. The
 * revealed animal takes the established emotional-word treatment (italic serif,
 * deep violet), the discarded one is struck ash. Centered because it is a
 * single claim, not a data block. */
.mismatch-card { text-align: center; border-color: var(--hairline); }
.mismatch-card .eyebrow { display: block; margin-bottom: 24px; }
/* Two rows, three columns: the animals share a baseline (the hanja rides
 * inline so it cannot push its own column down) and each caption sits under
 * the word it belongs to. */
.mm-swap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: baseline;
           justify-items: center; column-gap: clamp(10px, 4vw, 22px); row-gap: 7px; margin-bottom: 24px; }
.mm-animal { font-size: clamp(24px, 7vw, 32px); line-height: 1.1; }
.mm-old { color: var(--ash); text-decoration: line-through; text-decoration-thickness: 1px; font-weight: 300; }
.mm-new { font-family: var(--serif); font-style: italic; color: var(--violet-deep); white-space: nowrap; }
.mm-hanja { font-family: var(--cjk); font-style: normal; font-size: .68em; color: var(--ink); margin-right: .3em; }
.mm-cap { font-family: var(--mono); font-size: 9.5px; letter-spacing: .17em; text-transform: uppercase;
          color: var(--ash); line-height: 1.5; }
.mm-arrow { color: var(--ash); font-size: 18px; }
.mm-why { font-size: 14.5px; font-weight: 300; color: var(--steel); line-height: 1.65; text-align: left;
          border-top: 1px solid var(--hairline-2); padding-top: 18px; margin-bottom: 18px; }
.mm-why b { font-weight: 500; color: var(--ink); }

/* upsell out of the entry tier: a line of text, not a second button, so it
 * cannot compete with the tier's own CTA */
.qp-upsell { font-size: 13px; color: var(--steel); margin-top: 14px; }
.qp-upsell button { background: none; border: 0; padding: 0; cursor: pointer;
  font: inherit; color: var(--violet-deep); text-decoration: underline;
  text-underline-offset: 3px; }

/* reading rating: quiet, after the reading, never competing with it */
.rp-rate { display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  border-top: 1px solid var(--hairline-2); padding-top: 18px; margin-top: 26px; }
.rp-rate .rr-q { font-family: var(--mono); font-size: 10.5px; letter-spacing: .22em;
  text-transform: uppercase; color: var(--ash); }
.rp-rate .rr-btn { font-family: var(--sans); font-size: 13px; font-weight: 300;
  padding: 6px 14px; border: 1px solid var(--hairline); border-radius: 999px;
  background: transparent; color: var(--ink); cursor: pointer; transition: background .2s; }
.rp-rate .rr-btn:hover { background: var(--wash); }

/* ---- legal pages (privacy / terms / refund) -----------------------------
 * Same paper-white grammar as the app, set for reading rather than scanning:
 * longer measure, real paragraph rhythm, no cards. A legal page that looks
 * bolted on reads as boilerplate nobody meant. */
.legal { max-width: 660px; margin: 0 auto; padding: 8px 20px 120px; }
/* brand header shares the reading column's measure and gutter on legal pages */
body:has(main.legal) .brand { max-width: 660px; padding-left: 20px; padding-right: 20px; }
@media (min-width: 900px) { body:has(main.legal) .brand { max-width: 660px; } }
.legal h1 { font-family: var(--sans); font-size: 34px; font-weight: 300; letter-spacing: -.01em; margin-bottom: 6px; }
.legal .legal-updated { font-family: var(--mono); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--ash); margin-bottom: 30px; }
.legal-lede { font-size: 17px; font-weight: 300; line-height: 1.62; color: var(--ink); border-left: 2px solid var(--violet-deep); padding-left: 18px; margin-bottom: 34px; }
.legal h2 { font-family: var(--mono); font-size: 12px; font-weight: 400; letter-spacing: .3em; text-transform: uppercase; color: var(--ink); margin: 36px 0 12px; }
.legal p { font-size: 15.5px; font-weight: 300; line-height: 1.68; color: var(--steel); margin-bottom: 14px; }
.legal p b { color: var(--ink); font-weight: 500; }
.legal ul { margin: 0 0 16px 20px; }
.legal li { font-size: 15.5px; font-weight: 300; line-height: 1.62; color: var(--steel); margin-bottom: 8px; }
.legal li b { color: var(--ink); font-weight: 500; }
.legal a { color: var(--violet-deep); text-underline-offset: 3px; }
.legal-table { width: 100%; border-collapse: collapse; margin: 4px 0 18px; font-size: 13.5px; }
.legal-table th { font-family: var(--mono); font-size: 9.5px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--ash); text-align: left; font-weight: 400; padding: 0 12px 8px 0; border-bottom: 1px solid var(--hairline); }
.legal-table td { padding: 11px 12px 11px 0; border-bottom: 1px solid var(--hairline-2);
  color: var(--steel); font-weight: 300; line-height: 1.5; vertical-align: top; }
.legal-foot { margin-top: 46px; padding-top: 20px; border-top: 1px solid var(--hairline-2); font-size: 14px; }
.foot-legal { margin-top: 6px; }
footer .foot-legal a { color: var(--steel); text-decoration: underline; text-underline-offset: 3px; }
a.brand-glyph { text-decoration: none; }

/* ===== C: commerce ===== */
/* Menu tiles: each one names the thing, shows its price, and carries a single
 * hanja watermark (問 one question, 年 the year, 合 the two of you) so the
 * three read as made objects rather than empty boxes. Desktop: three across.
 * Phone: full-width rows, glyph | label + title | price. */
.qchips { grid-template-columns: 1fr; gap: 8px; }
.qchips .qchip:last-child:nth-child(odd) { grid-column: auto; min-height: 0; }
.qchip { position: relative; overflow: hidden; min-height: 0; display: grid; align-items: center;
  grid-template-columns: 34px 1fr auto; grid-template-areas: "g s p" "g t p"; column-gap: 12px; row-gap: 3px;
  padding: 13px 16px 13px 12px; transition: background .2s, color .2s, border-color .2s, transform .2s; }
.qchip-g { grid-area: g; font-style: normal; font-family: var(--cjk); font-size: 25px; line-height: 1;
  color: rgba(255, 255, 255, .5); text-align: center; }
.qchip small { grid-area: s; }
.qchip-t { grid-area: t; font-family: var(--serif); font-style: italic; font-size: 18px; line-height: 1.15; }
.qchip-p { grid-area: p; font-family: var(--mono); font-weight: 400; font-size: 14px; letter-spacing: .02em;
  font-variant-numeric: tabular-nums; white-space: nowrap; }
.qchip.on .qchip-g { color: var(--violet); opacity: .55; }
.qchip.on .qchip-t { color: var(--violet-deep); }
.qchip:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (min-width: 561px) {
  .qchips { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .qchips .qchip:last-child:nth-child(odd) { min-height: 150px; }
  .qchip { min-height: 150px; display: flex; flex-direction: column; align-items: stretch;
    justify-content: flex-start; gap: 8px; padding: 16px 16px 15px; }
  .qchip-g { position: absolute; right: 14px; bottom: 12px; font-size: 34px; }
  .qchip-t { font-size: 20px; padding-right: 8px; text-wrap: balance; }
  .qchip-p { margin-top: auto; font-size: 15px; }
  .qchip:not(.on):hover { transform: translateY(-2px); }
}
@media (prefers-reduced-motion: reduce) { .qchip { transition: none; } .qchip:not(.on):hover { transform: none; } }

/* panel CTAs are buttons (they open the confirm step, they do not navigate) */
button.tier-cta { width: 100%; border: 0; font: inherit; font-size: 14.5px; font-weight: 500; padding: 13px 16px; cursor: pointer; }
button.tier-cta:focus-visible, .price-card .qconfirm .cta:focus-visible { outline: 2px solid var(--violet-deep); outline-offset: 3px; }

.qp-upsell button { text-align: left; }
/* the panel is always a white sheet inside the bloom: pin the light tokens so
 * a dark theme cannot turn its text white-on-white */
.qpanel { --ink: #111111; --steel: #5c5c5c; --ash: #8a8a8a; --hairline: rgba(0, 0, 0, .18);
  --hairline-2: rgba(0, 0, 0, .09); --wash: rgba(0, 0, 0, .04); --bg: #fafaf8; color-scheme: light; }

/* confirm step */
.qc-sub { font-size: 12.5px; color: var(--steel); line-height: 1.55; margin: -4px 0 12px; }
.qc-center { text-align: center; margin: 10px 0 0; }
.qc-link { background: none; border: 0; padding: 0; font: inherit; color: var(--violet-deep); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.qc-form { width: 100%; margin-top: 2px; }
.price-card .qconfirm .cta.qc-soon,
.price-card .qconfirm .cta.qc-soon:hover { background: rgba(122, 46, 230, .1); border-color: rgba(122, 46, 230, .18); color: var(--violet-deep); cursor: default; }
.qconfirm .rk-opt.on { background: var(--violet); border-color: var(--violet); }
.qconfirm .rk-q b { color: var(--ink); font-weight: 500; }

/* redeem step */
.rk-lock { margin: -2px 0 14px; color: var(--steel); }
/* write-now consent (EU/UK 14-day rule): unticked, the button waits for it */
.rk-consent { display: flex; gap: 10px; align-items: flex-start; margin: 18px 0 0; max-width: 560px;
  font-family: var(--sans); font-size: 13.5px; line-height: 1.55; color: var(--steel); cursor: pointer; }
.rk-consent input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--violet-deep); cursor: pointer; }
.rk-consent input:focus-visible { outline: 2px solid var(--violet-deep); outline-offset: 2px; }
.rk-go { margin-top: 14px; }
.cta.rk-go:disabled { opacity: .38; cursor: not-allowed; }
.rk-opt:focus-visible, .qyear:focus-visible { outline: 2px solid var(--violet-deep); outline-offset: 2px; }

/* my readings: open row + a real delete button beside it */
.mr-item { display: flex; align-items: stretch; border-bottom: 1px solid var(--hairline-2); }
.mr-item:hover { background: var(--wash); }
.mr-row:hover { background: none; }
.mr-title { min-width: 0; overflow-wrap: anywhere; }
.mr-del { flex: none; width: 40px; background: none; border: 0; cursor: pointer; color: var(--ash); font-size: 18px; line-height: 1; border-radius: 6px; }
.mr-del:hover, .mr-del:focus-visible { color: var(--ink); }

/* the private reading page is a modal <dialog> */
dialog#rpage { width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; color: var(--ink); }
#rpage::backdrop { background: var(--bg); }
#rpage .rp-stamp { margin: 0; font-weight: 400; line-height: 1.4; text-transform: uppercase; }
.rp-retry { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--hairline-2); }
.rp-retry p { font-size: 14.5px; color: var(--steel); margin-bottom: 4px; }
.rp-retry .cta { max-width: 340px; }

/* gift link under the year panel: a line of text, below the sample */
.qp-gift { display: block; margin-top: 12px; text-align: center; font-size: 13px;
  color: var(--violet-deep); text-decoration: underline; text-underline-offset: 3px; }
.qp-gift:hover { opacity: .75; }
.qp-gift:focus-visible { outline: 2px solid var(--violet-deep); outline-offset: 3px; border-radius: 2px; }
/* what is being sold, right above the checkout button */
.qc-frame { font-size: 12.5px; line-height: 1.55; color: var(--steel); margin: 4px 0 10px; }
/* compat: the buyer confirms the other person's agreement (unticked) */
.rk-consent.rk-partner { margin-top: 14px; }
/* support (Ko-fi): one quiet line after a delivered reading */
.rp-support { margin-top: 18px; font-size: 13px; color: var(--ash); }
.rp-support a { color: var(--steel); text-decoration: underline; text-underline-offset: 3px; }
.rp-support a:hover, .rp-support a:focus-visible { color: var(--ink); }
/* ===== /C ===== */

/* ===== B: funnel ===== */
/* permalink landing (js/boot.js flags it in <head>): reserve the result area
 * before the chart renders and drop landing-only ornaments, so nothing jumps */
.has-chart .marquee, .has-chart .proof-row { display: none; }
.has-chart #result[hidden] { display: block; visibility: hidden; min-height: 100vh; }

/* welcome back (remembered chart), above the hero */
.welcome-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 18px;
  margin: 18px 0 0; padding: 14px 18px; border: 1px solid var(--hairline); border-radius: 14px; background: #fff; }
.welcome-bar[hidden] { display: none; }
.wb-text { flex: 1 1 320px; font-size: 14.5px; color: var(--steel); line-height: 1.55; text-wrap: pretty; }
.wb-text b { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 1.12em; color: var(--violet-deep); }
.wb-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.wb-open { min-height: 40px; padding: 0 18px; border: 1px solid var(--ink); border-radius: 999px; background: var(--ink); color: #fff;
  font: inherit; font-size: 14px; font-weight: 400; cursor: pointer; transition: opacity .2s; }
.wb-open:hover { opacity: .85; }

/* form: friend context, city resolution, remember toggle */
.friend-note { margin: -4px 0 18px; padding: 10px 14px; border-left: 2px solid var(--violet); font-size: 14px; color: var(--steel); }
.friend-note b { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--violet-deep); }
.hint.hint-ok { color: var(--ink); }
.form .remember-check { margin-top: 12px; justify-content: center; color: var(--steel); flex-direction: row; flex-wrap: wrap;
  font-family: var(--sans); font-size: 12.5px; letter-spacing: 0; text-transform: none; }
.remember-check input { accent-color: var(--ink); width: 15px; height: 15px; }

/* recipient mode: sticky banner at the top of someone else's chart */
.recip-bar { position: sticky; top: 10px; z-index: 6; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 10px 16px; margin-bottom: 18px; padding: 12px 12px 12px 18px; border: 1px solid var(--hairline); border-radius: 14px;
  background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.recip-bar[hidden] { display: none; }
.rb-text { flex: 1 1 260px; font-size: 14px; color: var(--steel); line-height: 1.5; }
.rb-text b { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 1.1em; color: var(--violet-deep); }
.rb-btn { min-height: 40px; padding: 0 18px; border: 0; border-radius: 999px; background: var(--ink); color: #fff;
  font: inherit; font-size: 14px; font-weight: 400; cursor: pointer; white-space: nowrap; transition: opacity .2s; }
.rb-btn:hover { opacity: .85; }
.rb-short { display: none; }
/* phones: one compact row, so the sticky bar never eats the screen */
@media (max-width: 599px) {
  .recip-bar { flex-wrap: nowrap; padding: 8px 8px 8px 14px; gap: 10px; border-radius: 999px; }
  .rb-text { flex: 1 1 auto; min-width: 0; font-size: 13px; line-height: 1.3; }
  .rb-long { display: none; }
  .rb-short { display: inline; }
  .rb-btn { min-height: 36px; padding: 0 14px; font-size: 13px; }
}

/* proof strip: the math, always visible, straight under the card */
.proof-strip { margin: 6px auto 4px; max-width: 460px; text-align: left; border-top: 1px solid var(--hairline-2); padding-top: 14px; }
.ps-lines { list-style: none; display: grid; gap: 6px; }
.ps-lines li { font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; line-height: 1.5; color: var(--steel);
  padding-left: 14px; position: relative; overflow-wrap: anywhere; }
.ps-lines li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 1px; background: var(--ash); }
.ps-callout { margin-top: 10px; padding: 9px 12px; border-radius: 8px; background: var(--wash); font-size: 12.5px; line-height: 1.5; color: var(--ink); }
.ps-callout[hidden] { display: none; }
.proof-strip .ps-more { display: block; margin: 6px 0 0 12px; font-size: 12.5px; }
/* desktop: the card is a sticky column with the rarity line hidden, so
 * placeProof() moves the strip atop the reading column, under the long read */
@media (min-width: 1100px) {
  #result > .recip-bar { grid-column: 2; }
  #result > .proof-strip { max-width: 62ch; margin: -6px 0 30px; padding: 0 0 0 22px; border-top: 0; }
  #result > .proof-strip .ps-lines li { font-size: 11px; }
  #result > .proof-strip .ps-more { margin-left: 14px; }
}

/* Ipchun / Lunar New Year mismatch: the lighter Jan-1 variant */
.mismatch-card.mm-light { border-color: var(--hairline-2); }
.mm-light .mm-swap { margin-bottom: 18px; }
.mm-light .mm-animal { font-size: clamp(20px, 5.6vw, 26px); }

/* friend line + contextual CTAs (C handles clicks via [data-sku]) */
.friend-card .eyebrow { display: block; margin-bottom: 12px; }
.fc-title { font-family: var(--serif); font-style: italic; font-size: clamp(22px, 5.4vw, 28px); line-height: 1.2; color: var(--violet-deep); margin-bottom: 10px; }
.fc-body { font-size: 15px; color: var(--steel); line-height: 1.6; margin-bottom: 18px; }
.ctx-cta { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border: 1px solid var(--ink); border-radius: 999px;
  color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 400; transition: background .2s, color .2s; }
.ctx-cta:hover { background: var(--ink); color: #fff; }
.ctx-cta-row { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--hairline-2); }
.ctx-cta-row:empty { display: none; }
.compat-out .ctx-cta { margin-top: 12px; }
body[data-mode="recipient"] .ctx-cta, body[data-mode="recipient"] .ctx-cta-row { display: none; }

/* Ipchun reminder */
.rm-form { display: flex; gap: 10px; flex-wrap: wrap; }
.rm-form[hidden] { display: none; }
.rm-form input[type="email"] { flex: 1 1 220px; min-height: 46px; padding: 12px; border: 1px solid var(--hairline-2); border-radius: 8px;
  background: var(--bg); color: var(--ink); font: inherit; font-size: 16px; font-weight: 300; }
.rm-form input[type="email"]:focus { outline: none; border-color: var(--ink); }
.rm-form .ghost { flex: none; min-width: 120px; }
#a-title[tabindex="-1"]:focus { outline: none; }
/* ===== /B ===== */

/* ===== Lead: integration ===== */
/* A shared chart is someone else's: no purchase entry points on it (C blocks the confirm too). */
body[data-mode="recipient"] #side-cta { display: none !important; }
/* ...and nothing on it speaks as "my": "Share my card", the private link
 * (their birth data) and "Share this" would all re-share the sender's chart. */
body[data-mode="recipient"] .card-share, body[data-mode="recipient"] #dock-share,
body[data-mode="recipient"] #mm-share { display: none; }
/* decorative bleed (Today's card glow at 1100-1130px) must never add a sideways scroll */
body { overflow-x: clip; }
/* a date-only link from a static page: a prompt for the rest, not an error */
.err.err-ask { color: var(--ink); }
/* ===== /Lead ===== */

/* ===== S: season ===== */
/* "Your 2027": the free year card. Same grammar as the rest of the result:
 * hairline plates, mono stamps, the verdict in the italic display serif. No
 * fills, no second violet bloom; the gauge and the +/- tiles carry the claim. */
.yr-card[hidden] { display: none; }
.yr-eyebrow { display: block; margin-bottom: 14px; }
.yr-eyebrow span { font-family: var(--cjk); letter-spacing: .12em; color: var(--ink); }
.yr-verdict { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(26px, 6.4vw, 34px);
  line-height: 1.15; color: var(--violet-deep); text-wrap: balance; margin-bottom: 16px; }
.yr-gauge { display: inline-flex; border: 1px solid var(--hairline-2); border-radius: 999px; padding: 3px; margin-bottom: 22px; }
.yr-g { font-family: var(--mono); font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--ash);
  padding: 6px 12px; border-radius: 999px; }
.yr-g.on { background: var(--ink); color: #fff; }
.yr-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.yr-tile { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "h c" "h g" "w w"; column-gap: 14px; row-gap: 2px;
  align-items: end; border: 1px solid var(--hairline-2); border-radius: 12px; padding: 14px 16px 14px; }
.yr-th { grid-area: h; font-family: var(--cjk); font-size: 40px; line-height: 1; color: var(--ink); align-self: center; }
.yr-tc { grid-area: c; font-family: var(--mono); font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--ash); }
.yr-tg { grid-area: g; font-weight: 500; font-size: 16px; line-height: 1.25; color: var(--ink); }
.yr-tw { grid-area: w; display: flex; gap: 7px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--hairline-2);
  font-size: 13px; line-height: 1.45; color: var(--steel); }
.yr-tw i { flex: none; font-style: normal; font-family: var(--mono); font-size: 13px; width: 1ch; color: var(--ink); }
.yr-down .yr-tw i { color: var(--ash); }
.yr-basis { font-size: 14px; line-height: 1.6; color: var(--steel); margin-bottom: 4px; }
.yr-para { font-size: 15px; font-weight: 300; line-height: 1.7; color: var(--steel); max-width: 62ch;
  margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--hairline-2); }
.yr-para[hidden] { display: none; }
.yr-h { font-family: var(--mono); font-size: 11px; font-weight: 400; letter-spacing: .3em; text-transform: uppercase;
  color: var(--ink); margin: 26px 0 10px; }
.yr-mods { list-style: none; display: grid; gap: 0; }
.yr-mods li { display: grid; grid-template-columns: 88px 1fr; gap: 14px; align-items: baseline; padding: 11px 0;
  border-top: 1px solid var(--hairline-2); font-size: 14px; line-height: 1.55; color: var(--steel); }
.yr-mods li:last-child { border-bottom: 1px solid var(--hairline-2); }
.yr-tag { font-family: var(--cjk); font-size: 15px; color: var(--ink); white-space: nowrap; letter-spacing: .04em; }
.yr-months { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
.yr-ml { list-style: none; }
.yr-m { display: grid; grid-template-columns: 1fr auto; column-gap: 10px; row-gap: 3px; padding: 11px 0;
  border-top: 1px solid var(--hairline-2); }
.yr-mr { font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; color: var(--ink); font-variant-numeric: tabular-nums; }
.yr-mg { font-family: var(--cjk); font-size: 15px; color: var(--ink); line-height: 1; }
.yr-mw { grid-column: 1 / -1; font-size: 13px; line-height: 1.45; color: var(--steel); }
.yr-pace .yr-mr, .yr-pace .yr-mg { color: var(--steel); }
.yr-mp { grid-column: 1 / -1; font-size: 13px; line-height: 1.45; color: var(--ink); }
.yr-note { margin-top: 12px; }
.yr-own { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 20px;
  margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--hairline-2); }
.yr-share { display: flex; align-items: center; gap: 6px 14px; flex-wrap: wrap; }
.yr-share .share-links { gap: 8px; }
.yr-gift { flex-basis: 100%; padding: 0; }
/* the card's one purchase entry: filled ink, so it outranks the share pill */
.yr-own .yr-buy { background: var(--ink); color: #fff; }
.yr-own .yr-buy:hover { opacity: .88; }
body[data-mode="recipient"] .yr-own { display: none; }
@media (max-width: 599px) {
  .yr-card { padding: 28px 20px; }
  .yr-tiles { grid-template-columns: 1fr; }
  .yr-months { grid-template-columns: 1fr; }
  .yr-mods li { grid-template-columns: 1fr; gap: 3px; }
  .yr-own { flex-direction: column; align-items: stretch; text-align: center; }
  .yr-own .ctx-cta { justify-content: center; padding: 0 14px; font-size: 13.5px; white-space: nowrap; }
  .yr-share { flex-direction: column; }
}

/* landing: one quiet line under the hero copy, Nov 1 to Seollal */
.season-tease { margin: -12px 0 26px; }
.season-tease[hidden] { display: none; }
.st-btn { display: inline-flex; align-items: baseline; gap: 10px; padding: 0; border: 0; background: none; cursor: pointer;
  font: inherit; font-size: 14.5px; font-weight: 300; line-height: 1.5; color: var(--steel); text-align: left; }
.st-tag { flex: none; font-family: var(--cjk); font-size: 13px; letter-spacing: .1em; color: var(--ink);
  border: 1px solid var(--hairline); border-radius: 999px; padding: 1px 9px; }
.st-go { color: var(--ink); text-decoration: underline; text-decoration-color: var(--hairline); text-underline-offset: 3px; }
.st-btn:hover .st-go { text-decoration-color: currentColor; }
@media (min-width: 1100px) {
  .season-tease { grid-column: 1; grid-row: 4; margin: -16px 0 30px; }
  .hero:has(.season-tease:not([hidden])) .form { grid-row: 5; }
  .hero:has(.season-tease:not([hidden])) .hero-deck { grid-row: 1 / span 5; }
}
.foot-support[hidden] { display: none; }
/* ===== /S ===== */
