/* Bom & Yeon site styles. Mobile first (375px). */
:root {
  --night: #0E0F1A; --night2: #151729; --surface: rgba(26, 28, 46, .78); --surface-solid: #1A1C2E;
  --moon: #EDE6D6; --mute: rgba(237, 230, 214, .72); --faint: rgba(237, 230, 214, .5);
  --gold: #C9A45C; --gold2: #E2C483; --red: #C8443C; --hair: rgba(201, 164, 92, .28);
  --wood: #6FA86B; --fire: #D9675C; --earth: #C9A45C; --metal: #C3C7CE; --water: #6E97CA;
  --serif: "Gowun Batang", Georgia, "Times New Roman", serif; --sans: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --hanja: "Noto Serif KR", "Gowun Batang", serif; --r: 14px; --wrap: 1120px; --read: 680px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--night) url(/assets/img/hanji.webp) repeat; background-size: 512px; color: var(--moon); font: 400 17px/1.65 var(--sans); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold2); text-underline-offset: 3px; }
a:hover { color: var(--moon); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 700; line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(34px, 8.6vw, 60px); }
h2 { font-size: clamp(26px, 6vw, 40px); }
h3 { font-size: 21px; }
p { margin: 0 0 1em; }
.hz { font-family: var(--hanja); font-weight: 700; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--night); padding: 8px 12px; z-index: 100; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--gold2); outline-offset: 3px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.read { max-width: var(--read); }
main { position: relative; z-index: 1; }
section { padding: 56px 0; }
.kicker { font: 600 12px/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin: 0 0 12px; }
.lede { color: var(--mute); font-size: 18px; max-width: 60ch; }
.center { text-align: center; } .center .lede { margin-left: auto; margin-right: auto; }
.muted { color: var(--mute); } .small { font-size: 14px; }

/* ambient canvas */
#sky { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }

/* header */
.top { position: sticky; top: 0; z-index: 50; background: rgba(14, 15, 26, .82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--hair); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 60px; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--moon); text-decoration: none; font: 700 19px/1 var(--serif); }
.seal { display: inline-grid; place-items: center; width: 34px; height: 34px; background: var(--red); color: #fff4e8; border-radius: 6px; font: 700 12px/1 var(--hanja); letter-spacing: -.05em; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .18); transform: rotate(-4deg); }
.nav { display: none; gap: 4px; }
.nav a { color: var(--mute); text-decoration: none; padding: 8px 12px; border-radius: 999px; font: 500 15px/1 var(--sans); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--moon); background: rgba(201, 164, 92, .14); }
.menu-btn { appearance: none; border: 1px solid var(--hair); background: transparent; color: var(--moon); width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; cursor: pointer; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform .25s; }
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; }
.menu-btn span::before { top: -6px; } .menu-btn span::after { top: 6px; }
.menu-open .menu-btn span { background: transparent; }
.menu-open .menu-btn span::before { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-btn span::after { transform: translateY(-6px) rotate(-45deg); }
.drawer { display: none; border-top: 1px solid var(--hair); padding: 8px 20px 18px; }
.menu-open .drawer { display: block; }
.drawer a { display: block; padding: 12px 0; color: var(--moon); text-decoration: none; font: 600 18px/1.2 var(--serif); border-bottom: 1px solid rgba(201, 164, 92, .12); }
@media (min-width: 900px) { .nav { display: flex; } .menu-btn, .drawer, .menu-open .drawer { display: none; } }

/* buttons */
.btn { --b: var(--gold); position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 14px 24px; border: 0; border-radius: 999px; background: linear-gradient(180deg, var(--gold2), var(--gold)); color: #17130A; font: 700 16px/1.1 var(--sans); text-decoration: none; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, filter .18s; box-shadow: 0 6px 22px rgba(201, 164, 92, .25); -webkit-tap-highlight-color: transparent; }
.btn::after { content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent); transform: skewX(-20deg); transition: left .6s ease; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(201, 164, 92, .35); color: #17130A; }
.btn:hover::after { left: 120%; }
.btn:active { transform: translateY(1px) scale(.98); box-shadow: 0 3px 12px rgba(201, 164, 92, .25); }
.btn--ghost { background: transparent; color: var(--moon); box-shadow: inset 0 0 0 1.5px var(--gold); }
.btn--ghost:hover { color: var(--moon); background: rgba(201, 164, 92, .12); box-shadow: inset 0 0 0 1.5px var(--gold2); }
.btn--block { width: 100%; }
.btn .ripple { position: absolute; border-radius: 50%; transform: scale(0); background: rgba(255, 255, 255, .45); animation: ripple .6s ease-out forwards; pointer-events: none; }
@keyframes ripple { to { transform: scale(4); opacity: 0; } }
.link-arrow { font-weight: 600; text-decoration: none; }
.link-arrow::after { content: " →"; transition: margin .2s; }
.link-arrow:hover::after { margin-left: 4px; }

/* forms */
.selects { display: grid; grid-template-columns: 1.3fr .8fr 1fr; gap: 8px; }
.selects--2 { grid-template-columns: 1fr 1fr; }
select, .input { width: 100%; min-height: 52px; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(201, 164, 92, .45); background: rgba(14, 15, 26, .85); color: var(--moon); font: 500 16px/1.2 var(--sans); appearance: none; -webkit-appearance: none; }
select { background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 30px; }
select:focus, .input:focus { border-color: var(--gold2); outline: none; box-shadow: 0 0 0 3px rgba(201, 164, 92, .25); }
.field-label { display: block; font: 600 13px/1.3 var(--sans); color: var(--mute); margin: 0 0 8px; letter-spacing: .04em; }
.err { color: #F09A92; font-size: 14px; min-height: 1.2em; margin: 8px 0; }
.form-stack { display: grid; gap: 12px; }
.note { font-size: 13px; color: var(--faint); margin: 10px 0 0; }

/* cards and surfaces */
.card { background: var(--surface); border: 1px solid var(--hair); border-radius: var(--r); padding: 24px 20px; backdrop-filter: blur(4px); }
.grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .grid--2 { grid-template-columns: 1fr 1fr; } .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } .grid--5 { grid-template-columns: repeat(5, 1fr); } }

/* hero */
.hero { position: relative; min-height: min(92svh, 860px); display: flex; align-items: flex-end; padding: 0 0 40px; overflow: hidden; }
.hero__art { position: absolute; inset: 0; z-index: -1; -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 100%); mask-image: linear-gradient(180deg, #000 70%, transparent 100%); }
.hero__art img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 30%; animation: breathe 9s ease-in-out infinite; transform-origin: 70% 60%; }
.hero__art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14, 15, 26, .25) 0%, rgba(14, 15, 26, .35) 35%, rgba(14, 15, 26, .92) 70%, var(--night) 100%); }
@media (max-width: 899px) {
  .hero { display: block; min-height: 0; padding: 0 0 36px; }
  .hero__art { bottom: auto; height: min(100vw, 560px); }
  .hero__art img { object-position: 50% 20%; }
  .hero__art::after { background: linear-gradient(180deg, rgba(14, 15, 26, .1) 0%, rgba(14, 15, 26, 0) 35%, rgba(14, 15, 26, .75) 68%, var(--night) 96%); }
  .hero__body { position: relative; padding-top: calc(min(100vw, 560px) - 110px); }
  .hero h1 { text-shadow: 0 2px 18px rgba(14, 15, 26, .9); }
}
@media (min-width: 900px) { .hero { align-items: center; padding: 60px 0; } .hero__art::after { background: linear-gradient(90deg, rgba(14, 15, 26, .95) 0%, rgba(14, 15, 26, .7) 38%, rgba(14, 15, 26, .05) 70%), linear-gradient(180deg, transparent 75%, var(--night) 100%); } .hero__body { max-width: 520px; } }
.hero h1 em { font-style: normal; color: var(--gold2); }
.hero .sub { color: var(--mute); font-size: 18px; margin-bottom: 22px; }
.hero__form { display: grid; gap: 12px; }
.cue { display: inline-block; margin-top: 18px; color: var(--mute); font-size: 15px; }
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.025); } }

/* paper door reveal */
.stage { position: relative; max-width: 520px; margin: 0 auto; border-radius: 18px; overflow: hidden; min-height: 560px; isolation: isolate; }
.stage__glow { position: absolute; inset: 0; background: radial-gradient(60% 45% at 50% 40%, rgba(226, 196, 131, .45), transparent 70%); opacity: 0; transition: opacity 1.2s ease .5s; z-index: 0; }
.stage.is-open .stage__glow { opacity: 1; }
.door { position: absolute; top: 0; bottom: 0; width: 50.5%; z-index: 3; background: #2a1f14 url(/assets/img/door.webp) center / cover no-repeat; transition: transform 1.25s cubic-bezier(.7, 0, .25, 1); box-shadow: inset 0 0 40px rgba(0, 0, 0, .35); display: grid; place-items: center; }
.door--l { left: 0; border-right: 2px solid #1b130b; }
.door--r { right: 0; transform: scaleX(-1); border-right: 2px solid #1b130b; }
.stage.is-open .door--l { transform: translateX(-102%); }
.stage.is-open .door--r { transform: scaleX(-1) translateX(-102%); }
.door__shadow { align-self: start; margin-top: 16%; font: 700 clamp(64px, 18vw, 110px)/1 var(--hanja); color: rgba(40, 24, 10, .0); text-shadow: 0 0 0 rgba(40, 24, 10, .0); transition: color .5s, text-shadow .5s; }
.door--r .door__shadow { transform: scaleX(-1); }
.stage.is-reading .door__shadow { color: rgba(48, 26, 8, .78); text-shadow: 0 0 22px rgba(255, 228, 170, .9), 0 0 4px rgba(48, 26, 8, .5); }
.stage__status { position: absolute; left: 0; right: 0; bottom: 18px; z-index: 4; text-align: center; color: #2c1e10; font: 700 15px/1.3 var(--serif); transition: opacity .4s; }
.stage.is-open .stage__status { opacity: 0; }
.stage__fox { position: absolute; z-index: 5; width: 120px; left: -140px; bottom: 50px; pointer-events: none; }
.stage.is-reading .stage__fox { animation: foxrun 1.6s ease-in-out forwards; }
@keyframes foxrun { 0% { transform: translateX(0) rotate(0); opacity: 0; } 15% { opacity: 1; } 50% { transform: translateX(calc(260px + 25vw)) translateY(-30px) rotate(-6deg); } 100% { transform: translateX(calc(560px + 50vw)) translateY(0) rotate(0); opacity: 0; } }
.soul-card { position: relative; z-index: 1; padding: 34px 22px 26px; text-align: center; background: linear-gradient(180deg, rgba(26, 28, 46, .7), rgba(14, 15, 26, .92)); min-height: 560px; }
.soul-card .el { font: 600 12px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--el, var(--gold)); }
.soul-card .big { font: 700 112px/1 var(--hanja); color: var(--el, var(--gold)); margin: 14px 0 6px; text-shadow: 0 0 40px color-mix(in srgb, var(--el, #C9A45C) 55%, transparent); }
.stage.is-open .soul-card .big { animation: pop .8s cubic-bezier(.2, 1.5, .4, 1) .9s both; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
.soul-card h2 { margin-bottom: 2px; }
.soul-card .nick { color: var(--gold2); font: italic 400 18px/1.3 var(--serif); }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; list-style: none; padding: 0; margin: 16px 0; }
.chips li, .chip { border: 1px solid var(--hair); border-radius: 999px; padding: 6px 12px; font-size: 14px; color: var(--moon); background: rgba(201, 164, 92, .08); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 18px; }

/* speaking characters */
.say { display: flex; gap: 12px; align-items: flex-start; text-align: left; margin: 16px 0; }
.say--yeon { flex-direction: row-reverse; }
.av { position: relative; flex: 0 0 56px; width: 56px; height: 56px; border-radius: 50%; overflow: hidden; border: 2px solid var(--gold); background: var(--surface-solid); animation: bob 4.8s ease-in-out infinite; }
.av--yeon { border-color: #E9B7A0; animation-delay: -2.1s; }
.av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.av img + img { opacity: 0; animation: blink 5.2s steps(1) infinite; }
.av--yeon img + img { animation-duration: 6.4s; animation-delay: -1.3s; }
@keyframes blink { 0%, 93% { opacity: 0; } 94%, 97% { opacity: 1; } 98%, 100% { opacity: 0; } }
@keyframes bob { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-2px) scale(1.02); } }
.bubble { position: relative; background: var(--moon); color: #16161F; border-radius: 16px; padding: 10px 14px 12px; font-size: 16px; line-height: 1.5; max-width: 560px; box-shadow: 0 6px 18px rgba(0, 0, 0, .3); }
.bubble b { display: block; font: 700 11px/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: #8A6A2E; margin-bottom: 2px; }
.say--yeon .bubble { background: #F6DCCF; }
.say--yeon .bubble b { color: #9C4A36; }
.bubble::before { content: ""; position: absolute; top: 18px; left: -7px; border: 8px solid transparent; border-left: 0; border-right-color: var(--moon); }
.say--yeon .bubble::before { left: auto; right: -7px; border-right: 0; border-left: 8px solid #F6DCCF; border-top-color: transparent; border-bottom-color: transparent; }

/* product shelf */
.shelf { display: grid; grid-auto-flow: column; grid-auto-columns: 78%; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 20px 18px; margin: 0 -20px; scrollbar-width: none; }
.shelf::-webkit-scrollbar { display: none; }
@media (min-width: 760px) { .shelf { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); overflow: visible; margin: 0; padding: 4px 0; } }
@media (min-width: 1100px) { .shelf { grid-template-columns: repeat(5, 1fr); } }
.pcard { scroll-snap-align: start; display: flex; flex-direction: column; background: var(--surface-solid); border: 1px solid var(--hair); border-radius: var(--r); overflow: hidden; text-decoration: none; color: var(--moon); transition: transform .25s ease, box-shadow .25s ease, border-color .25s; }
.pcard:hover { transform: translateY(-4px) rotate(-.4deg); box-shadow: 0 14px 30px rgba(0, 0, 0, .45); border-color: var(--gold); color: var(--moon); }
.pcard img { aspect-ratio: 720 / 894; object-fit: cover; width: 100%; transition: transform .5s ease; }
.pcard:hover img { transform: scale(1.04); }
.pcard__b { padding: 14px 14px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pcard h3 { font-size: 18px; margin: 0; }
.pcard p { font-size: 14px; color: var(--mute); margin: 0; flex: 1; }
.pcard .price { font: 700 15px/1 var(--sans); color: var(--gold2); }
.pcard .for { font-size: 12px; color: var(--gold); letter-spacing: .06em; text-transform: uppercase; min-height: 1em; }

/* tabs */
.tabs { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 14px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: 0 0 auto; border: 1px solid rgba(201, 164, 92, .45); background: transparent; color: var(--moon); border-radius: 999px; padding: 10px 15px; font: 600 14px/1 var(--sans); cursor: pointer; white-space: nowrap; transition: background .2s, transform .15s; }
.tab:active { transform: scale(.96); }
.tab[aria-selected="true"] { background: var(--gold); color: var(--night); border-color: var(--gold); }
.spcard { min-height: 170px; }
.spcard .t { font: 700 13px/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin: 0 0 10px; }
.spcard .x { font: 700 24px/1.35 var(--serif); margin: 0 0 12px; }
.spcard .w { font-size: 13px; color: var(--faint); margin: 0; }
.is-pop { animation: spPop .35s ease; }
@keyframes spPop { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* crush match */
.match { text-align: center; margin-top: 18px; }
.match svg { width: 100%; max-width: 380px; height: auto; display: block; margin: 0 auto; overflow: visible; }
.thread { fill: none; stroke: var(--red); stroke-width: 2.5; stroke-linecap: round; }
.match.is-go .thread { transition: stroke-dashoffset 1.3s cubic-bezier(.6, 0, .3, 1); }
.orb { fill: rgba(14, 15, 26, .6); stroke-width: 1.5; stroke: var(--gold); }
.orb-t { font-family: var(--hanja); font-weight: 700; font-size: 38px; text-anchor: middle; dominant-baseline: central; fill: var(--gold); }
.orb-l { font: 12px var(--sans); fill: var(--mute); text-anchor: middle; }
.heart { opacity: 0; transform-origin: 150px 62px; transform-box: view-box; }
.heart path { fill: var(--red); }
.match.is-done .heart { animation: heart .5s cubic-bezier(.2, 1.6, .4, 1) forwards; }
@keyframes heart { from { opacity: 0; transform: scale(.2); } to { opacity: 1; transform: scale(1.4); } }
.score { font: 700 64px/1 var(--serif); color: var(--gold); font-variant-numeric: tabular-nums; margin: 6px 0; }
.verdict { font: 700 23px/1.25 var(--serif); color: var(--gold2); }
.twin { display: inline-block; margin-top: 10px; padding: 6px 10px; border: 1px solid var(--red); border-radius: 6px; color: #E89A92; font: 600 12px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; }

/* souls grid */
.souls { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 700px) { .souls { grid-template-columns: repeat(5, 1fr); } }
.soul-tile { --el: var(--gold); display: block; text-align: center; padding: 18px 10px 16px; border: 1px solid var(--hair); border-radius: var(--r); background: var(--surface); text-decoration: none; color: var(--moon); transition: transform .2s, border-color .2s, box-shadow .2s; }
.soul-tile:hover { transform: translateY(-3px); border-color: var(--el); box-shadow: 0 10px 24px rgba(0, 0, 0, .35); color: var(--moon); }
.soul-tile .hz { display: block; font-size: 46px; line-height: 1.1; color: var(--el); }
.soul-tile b { display: block; font: 700 16px/1.3 var(--serif); margin-top: 6px; }
.soul-tile small { color: var(--mute); font-size: 13px; }
.el-wood { --el: var(--wood); } .el-fire { --el: var(--fire); } .el-earth { --el: var(--earth); } .el-metal { --el: var(--metal); } .el-water { --el: var(--water); }

/* fox divider */
.fox-div { display: flex; align-items: center; gap: 14px; justify-content: center; padding: 8px 0; opacity: .9; }
.fox-div::before, .fox-div::after { content: ""; height: 1px; flex: 1; max-width: 240px; background: linear-gradient(90deg, transparent, var(--hair), transparent); }
.fox-div img { width: 64px; height: auto; animation: bob 5s ease-in-out infinite; }

/* webtoon */
.webtoon { max-width: 520px; margin: 0 auto; display: grid; gap: 14px; }
.panel { position: relative; margin: 0; border-radius: 10px; overflow: hidden; border: 1px solid var(--hair); background: var(--surface-solid); }
.panel img { width: 100%; height: auto; }
.panel .bubbles { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; padding: 14px 12px; gap: 10px; pointer-events: none; }
.panel .bubble { max-width: 86%; font-size: 15px; }
.panel .bubble--r { align-self: flex-end; background: #F6DCCF; }
.panel .bubble--r b { color: #9C4A36; }
.panel .bubble::before { display: none; }
.panel .bubble--nar { background: rgba(14, 15, 26, .92); color: var(--gold2); border: 1px solid rgba(201, 164, 92, .55); border-radius: 6px; font-family: var(--serif); }
.panel .bubble--nar b { color: var(--gold); }
.rise { opacity: 0; transform: translateY(40px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); }
.rise.from-l { transform: translateX(-50px); } .rise.from-r { transform: translateX(50px); }
.rise.is-in { opacity: 1; transform: none; }
.panel .bubble { opacity: 0; transform: translateY(8px) scale(.96); transition: opacity .45s .35s, transform .45s .35s; }
.panel .bubble + .bubble { transition-delay: .75s; }
.panel.is-in .bubble { opacity: 1; transform: none; }

/* product page */
.phero { padding: 28px 0 40px; }
.phero__grid { display: grid; gap: 22px; align-items: center; }
@media (min-width: 860px) { .phero__grid { grid-template-columns: 420px 1fr; gap: 48px; } }
.phero__cover { border-radius: 16px; overflow: hidden; border: 1px solid var(--hair); box-shadow: 0 24px 60px rgba(0, 0, 0, .5); max-width: 420px; margin: 0 auto; }
.phero__cover img { animation: breathe 10s ease-in-out infinite; }
.price-row { display: flex; align-items: baseline; gap: 10px; margin: 6px 0 16px; }
.price-row strong { font: 700 30px/1 var(--serif); color: var(--gold2); }
.gift { border: 1px dashed var(--gold); border-radius: 12px; padding: 12px 14px; font-size: 14px; color: var(--mute); margin: 12px 0 0; }
.gift b { color: var(--gold2); display: block; margin-bottom: 2px; }
.chapters { list-style: none; padding: 0; margin: 0; counter-reset: ch; display: grid; gap: 10px; }
.chapters li { counter-increment: ch; display: grid; grid-template-columns: 40px 1fr; gap: 12px; padding: 14px; border: 1px solid var(--hair); border-radius: 12px; background: var(--surface); }
.chapters li::before { content: counter(ch, decimal-leading-zero); font: 700 20px/1.2 var(--serif); color: var(--gold); }
.chapters b { display: block; font-family: var(--serif); font-size: 18px; }
.chapters span { color: var(--mute); font-size: 15px; }
.faq details { border-bottom: 1px solid var(--hair); padding: 14px 0; }
.faq summary { cursor: pointer; font: 700 18px/1.35 var(--serif); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-size: 22px; line-height: 1; transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 10px 0 0; color: var(--mute); }
.preview-out { margin-top: 26px; }
.chapter-text { max-width: var(--read); margin: 0 auto; }
.chapter-text h3 { margin-top: 30px; color: var(--gold2); }
.chapter-text p { font-size: 18px; line-height: 1.75; }
.chapter-lock { text-align: center; padding: 26px 18px; border: 1px solid var(--hair); border-radius: var(--r); background: linear-gradient(180deg, rgba(26, 28, 46, .4), rgba(26, 28, 46, .95)); margin-top: 18px; }
.sticky-buy { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(14, 15, 26, .94); border-top: 1px solid var(--hair); display: flex; align-items: center; justify-content: space-between; gap: 12px; transform: translateY(110%); transition: transform .35s ease; }
.sticky-buy.is-on { transform: none; }
.sticky-buy p { margin: 0; font-size: 14px; color: var(--mute); }
.sticky-buy strong { color: var(--moon); display: block; font-family: var(--serif); font-size: 16px; }
.sticky-buy .btn { min-height: 44px; padding: 10px 18px; font-size: 15px; }

/* article pages */
.ahero { padding: 40px 0 24px; text-align: center; }
.ahero .big { margin: 0 0 12px; font: 700 clamp(96px, 26vw, 150px)/1 var(--hanja); color: var(--el, var(--gold)); text-shadow: 0 0 50px color-mix(in srgb, var(--el, #C9A45C) 45%, transparent); animation: glow 5s ease-in-out infinite; }
@keyframes glow { 0%, 100% { opacity: .92; } 50% { opacity: 1; filter: brightness(1.12); } }
.crumbs { font-size: 13px; color: var(--faint); margin-bottom: 14px; }
.crumbs a { color: var(--mute); }
.prose { max-width: var(--read); margin: 0 auto; }
.prose h2 { font-size: 28px; margin-top: 42px; }
.prose p, .prose li { font-size: 18px; line-height: 1.75; }
.prose ul { padding-left: 20px; }
.flags { list-style: none; padding: 0 !important; display: grid; gap: 10px; }
.flags li { padding: 12px 14px 12px 44px; position: relative; background: rgba(200, 68, 60, .1); border: 1px solid rgba(200, 68, 60, .35); border-radius: 12px; }
.flags li::before { content: "🚩"; position: absolute; left: 14px; top: 12px; }
.pair-list { display: flex; flex-wrap: wrap; gap: 8px; }
.pair-list a { text-decoration: none; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 18px 0 0; }
.cta-band { text-align: center; padding: 40px 20px; border: 1px solid var(--hair); border-radius: 20px; background: radial-gradient(80% 120% at 50% 0%, rgba(201, 164, 92, .18), rgba(26, 28, 46, .85)); }

/* compatibility */
.ring { --s: 0; width: 170px; height: 170px; border-radius: 50%; margin: 10px auto 16px; display: grid; place-items: center; background: conic-gradient(var(--red) calc(var(--s) * 1%), rgba(237, 230, 214, .12) 0); position: relative; }
.ring::before { content: ""; position: absolute; inset: 10px; border-radius: 50%; background: var(--night); }
.ring span { position: relative; font: 700 46px/1 var(--serif); color: var(--gold2); }
.ring small { font-size: 18px; }
.duo { display: flex; justify-content: center; align-items: center; gap: 18px; font: 700 64px/1 var(--hanja); }
.duo i { font: 400 28px/1 var(--serif); color: var(--red); font-style: normal; animation: bob 3s ease-in-out infinite; }
.matrix-wrap { overflow-x: auto; margin: 0 -20px; padding: 0 20px; }
.matrix { border-collapse: collapse; margin: 0 auto; font-size: 13px; }
.matrix th, .matrix td { padding: 0; text-align: center; border: 1px solid rgba(201, 164, 92, .14); }
.matrix th { font: 700 18px/1 var(--hanja); padding: 8px 6px; color: var(--gold); }
.matrix td a { display: block; min-width: 42px; padding: 10px 4px; text-decoration: none; color: var(--moon); font-variant-numeric: tabular-nums; }
.matrix td a:hover { outline: 2px solid var(--gold); }
.picker { display: grid; gap: 10px; grid-template-columns: 1fr auto 1fr; align-items: center; }
.picker .x { font: 700 24px/1 var(--serif); color: var(--red); }

/* mbti */
.mbti-pick { display: grid; gap: 12px; }
.chipset { display: flex; flex-wrap: wrap; gap: 6px; }
.chipset button { border: 1px solid var(--hair); background: transparent; color: var(--moon); border-radius: 999px; padding: 8px 11px; font: 600 13px/1 var(--sans); cursor: pointer; }
.chipset button[aria-pressed="true"] { background: var(--gold); color: var(--night); border-color: var(--gold); }
.mbti-line { font: 700 22px/1.4 var(--serif); min-height: 64px; }
.mbti-acc details { border: 1px solid var(--hair); border-radius: 12px; margin-bottom: 8px; background: var(--surface); }
.mbti-acc summary { cursor: pointer; padding: 14px 16px; font: 700 18px/1 var(--serif); }
.mbti-acc ul { list-style: none; margin: 0; padding: 0 16px 14px; display: grid; gap: 8px; }
.mbti-acc li { font-size: 15px; color: var(--mute); }
.mbti-acc li b { color: var(--moon); }

/* 2027 */
.ycard { --el: var(--gold); border-top: 3px solid var(--el); }
.ycard .hz { color: var(--el); font-size: 34px; }
.ycard h3 { margin: 4px 0 8px; }
.ycard dl { margin: 0; display: grid; gap: 8px; }
.ycard dt { font: 700 12px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-top: 8px; }
.ycard dd { margin: 0; color: var(--mute); font-size: 15px; }
.ycard .line { font: italic 400 17px/1.4 var(--serif); color: var(--moon); margin-top: 12px; }

/* reading page */
.rd-head { text-align: center; padding: 34px 0 10px; }
.cross { margin-top: 30px; }
.bars { display: grid; gap: 8px; margin: 14px 0; }
.bar { display: grid; grid-template-columns: 64px 1fr 34px; align-items: center; gap: 10px; font-size: 14px; }
.bar i { display: block; height: 10px; border-radius: 6px; background: var(--c); width: 0; transition: width 1s ease; }
.bar .tr { background: rgba(237, 230, 214, .1); border-radius: 6px; }

/* footer */
.foot { position: relative; z-index: 1; border-top: 1px solid var(--hair); padding: 40px 0 90px; margin-top: 40px; background: rgba(14, 15, 26, .7); }
.foot__grid { display: grid; gap: 22px; }
@media (min-width: 760px) { .foot__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.foot h4 { font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); font-family: var(--sans); }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.foot a { color: var(--mute); text-decoration: none; font-size: 15px; }
.foot a:hover { color: var(--moon); }
.foot .ent { margin-top: 24px; font-size: 14px; color: var(--faint); }
.foot-meet { display: flex; gap: 10px; align-items: center; }

/* fox page transition */
.fox-run { position: fixed; z-index: 90; top: 45%; left: -160px; width: 140px; pointer-events: none; opacity: 0; }
.fox-run.go { animation: foxcross .55s ease-in forwards; }
@keyframes foxcross { 0% { opacity: 0; transform: translateX(0); } 20% { opacity: 1; } 100% { opacity: 1; transform: translateX(calc(100vw + 320px)); } }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 40px); opacity: 0; background: var(--moon); color: var(--night); padding: 10px 16px; border-radius: 999px; font-weight: 600; z-index: 95; transition: .3s; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.ok { color: #A9D8A2; font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .rise, .panel .bubble { opacity: 1 !important; transform: none !important; }
  #sky, .fox-run { display: none !important; }
  .av img + img { opacity: 0 !important; }
}
#buyTop { display: flex; flex-wrap: wrap; gap: 10px; }
.chapter-text .kicker { font-size: 12px; line-height: 1.2; }
.chapter-text .gift { font-size: 14px; line-height: 1.5; }
.chapter-text h4, .card h4 { font: 700 17px/1.3 var(--serif); color: var(--gold2); margin: 18px 0 6px; }
select { padding: 12px 26px 12px 12px; background-position: calc(100% - 15px) 50%, calc(100% - 10px) 50%; }
.selects { grid-template-columns: 1.45fr 1fr 1.15fr; }
@media (max-width: 520px) { .picker { grid-template-columns: 1fr; } .picker .x { text-align: center; } }

/* ---------- v2 personalization ---------- */
.field-label small { font-weight: 400; letter-spacing: 0; color: var(--faint); }
.name-field { display: block; margin-top: 4px; }
.perso { list-style: none; padding: 0; margin: 18px 0; display: grid; gap: 10px; }
.perso li { border: 1px solid var(--hair); border-radius: 12px; padding: 12px 14px; background: rgba(26, 28, 46, .55); }
.perso b { display: block; font-family: var(--serif); color: var(--gold2); font-size: 17px; }
.perso span { color: var(--mute); font-size: 15px; }
.code-card { margin-top: 22px; border: 1px dashed var(--gold); border-radius: var(--r); padding: 16px; text-align: center; }
.code-card .kicker { margin-bottom: 6px; }
.code-card:not(.is-yours) .code { opacity: .55; }
.code { font: 700 clamp(22px, 6.4vw, 30px)/1.2 var(--sans); letter-spacing: .06em; color: var(--gold2); margin: 6px 0; overflow-wrap: anywhere; }
.code--sm { font-size: 18px; }
.tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; list-style: none; padding: 0; margin: 14px 0; }
.tags li { border: 1px solid var(--gold); border-radius: 999px; padding: 5px 12px; font-size: 14px; color: var(--moon); }
.cover-card { margin: 18px auto 10px; max-width: 520px; text-align: center; border: 1px solid var(--hair); border-radius: 18px; padding: 26px 18px 20px;
  background: radial-gradient(120% 70% at 50% 0%, rgba(201, 164, 92, .16), rgba(26, 28, 46, .85) 60%); }
.cover-card .cv-name { font: 700 26px/1.2 var(--serif); margin: 0 0 4px; overflow-wrap: anywhere; }
.cover-card .cv-dm { font-size: 96px; line-height: 1; margin: 8px 0 4px; }
.cover-card h1 { font-size: 34px; margin-bottom: 2px; }
.cover-card .bars { text-align: left; margin: 16px auto; max-width: 400px; }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 18px auto 6px; max-width: 360px; }
.pillar { border: 1px solid var(--hair); border-radius: 12px; padding: 10px 4px; display: grid; gap: 2px; background: rgba(14, 15, 26, .45); }
.pillar .pl-l { font: 600 11px/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.pillar .hz { font-size: 40px; line-height: 1.1; }
.pillar .pl-e { font-size: 12px; line-height: 1.35; color: var(--mute); }
.rd-actions { margin: 14px 0 26px; }
.chapter-text .chap .kicker { margin-top: 30px; margin-bottom: -18px; }
.add-their { margin: 30px 0; }
.story-sheet { position: fixed; inset: 0; z-index: 200; background: rgba(5, 6, 12, .86); display: flex; align-items: center; justify-content: center; padding: 16px; overflow-y: auto; }
.story-box { width: min(420px, 100%); background: var(--surface-solid); border: 1px solid var(--hair); border-radius: var(--r); padding: 14px; }
.story-box img { width: 100%; max-height: 66vh; object-fit: contain; border-radius: 10px; margin-bottom: 10px; }

/* ---------- print / Save as PDF (reading page) ---------- */
@media print {
  @page { margin: 14mm; }
  html, body { background: #fff !important; color: #1b1b1b !important; font-size: 11.5pt; }
  #sky, .top, .foot, .skip, .crumbs, .no-print, .sticky-buy, .toast, .fox-run, .story-sheet, #rdAsk, .rd-actions, .actions, form, .btn { display: none !important; }
  section { padding: 0 !important; }
  .wrap, .read, .chapter-text { max-width: none !important; padding: 0 !important; }
  .rise, .panel .bubble { opacity: 1 !important; transform: none !important; transition: none !important; }
  .card, .cover-card, .pillar, .perso li, .tags li { background: #fff !important; border-color: #b9a06a !important; box-shadow: none !important; backdrop-filter: none !important; }
  .cover-card { break-after: page; color: #1b1b1b; }
  .muted, .pillar .pl-e, .bar { color: #555 !important; }
  .tags li, .cv-name, .cover-card h1, .chapter-text h3 + p { color: #1b1b1b !important; }
  .kicker, .code, .chapter-text h3, .chapter-text h4, .pillar .pl-l { color: #8a6a2a !important; }
  .chapter-text p { font-size: 11.5pt; line-height: 1.55; color: #1b1b1b; }
  .chap, .say { break-inside: avoid-page; }
  .chapter-text h3 { break-after: avoid; }
  .webtoon { max-width: 300px; margin: 10px auto !important; gap: 8px; }
  .panel { break-inside: avoid; border-color: #ccc; }
  .bar .tr { background: #eee !important; }
  .bar i { -webkit-print-color-adjust: exact; print-color-adjust: exact; transition: none !important; }
  .hz { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .bubble { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  a { color: #1b1b1b; text-decoration: none; }
}
