/* 기운패 — 흰 바탕·검은 글자·프리텐다드 한 벌. 색은 카드와 그림에만 둔다 */
@property --a { syntax: '<angle>'; inherits: true; initial-value: 74deg }
:root {
  --bg: #FFFFFF;
  --gray: #F4F4F2;
  --dark: #141414;
  --ink: #191919;
  --ink2: #3B3B3B;
  --sub: #6B6B6B;
  --line: #E4E4E2;
  --red: #C23B2E;
  --brass: #B78F45;
  --han: "Gowun Batang", "Apple SD Gothic Neo", serif;
  --sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  --w: 1240px;
}
* { box-sizing: border-box; margin: 0; padding: 0 }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth }
body {
  overflow-x: clip;
  background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.6; letter-spacing: -.01em;
  word-break: keep-all; overflow-wrap: break-word; -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
body.noscroll { overflow: hidden }
h1, h2, h3, p, li, dd, dt { text-wrap: pretty }
h1, h2 { font-weight: 700; letter-spacing: -.03em; text-wrap: balance; line-height: 1.25 }
a { color: inherit }
img, svg { display: block; max-width: 100% }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit }
button { cursor: pointer; background: none; border: 0 }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px }
.skip { position: absolute; left: 8px; top: 8px; background: var(--ink); color: #fff; padding: 10px 14px; z-index: 50; border-radius: 8px }
.skip.sr-only:not(:focus) { width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%) }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0) }

/* 머리줄 */
.top { display: flex; justify-content: space-between; align-items: center; max-width: var(--w); margin: 0 auto; padding: 10px 24px }
.logo { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; font-size: 21px; letter-spacing: -.04em; text-decoration: none; min-height: 44px }
.logo-mark { display: grid; grid-template-columns: repeat(5, 5px); gap: 2px; align-items: end; height: 18px }
.logo-mark i { display: block; width: 5px; border-radius: 3px; background: var(--c) }
.nav { display: flex; gap: 4px }
.nav a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; text-decoration: none; font-size: 16px; font-weight: 600; color: var(--ink2); border-radius: 10px }
.nav a:hover { background: var(--gray) }
.nav a[hidden] { display: none }
.dexn:not(:empty) { font-variant-numeric: tabular-nums; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 700; display: inline-grid; place-items: center; letter-spacing: 0 }
#app { max-width: var(--w); margin: 0 auto; padding: 0 24px 40px; outline: none; display: block }
body[data-view="home"] #app { max-width: none; padding: 0 }

/* 단추 */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 28px; border-radius: 14px; font-size: 17px; font-weight: 700; text-decoration: none; transition: transform .12s, background-color .15s, color .15s }
.btn:active { transform: scale(.98) }
.btn-main { background: var(--ink); color: #fff }
.btn-main:hover { background: #000 }
.btn-sub { background: var(--gray); color: var(--ink) }
.btn-sub:hover { background: #E9E9E6 }
.sec-dark .btn-sub { background: #2A2A2A; color: #fff }
.btn-wide { width: 100% }
.btn[disabled] { opacity: .55; pointer-events: none }
.linkbtn { min-height: 44px; padding: 0 8px; font-size: 16px; font-weight: 600; color: var(--ink2); text-decoration: underline; text-underline-offset: 4px }
.cta { display: flex; gap: 10px; flex-wrap: wrap }
.eyebrow { font-size: 15px; font-weight: 600; color: var(--sub) }
.lead { font-size: 19px; color: var(--ink2); line-height: 1.6 }
.fine { font-size: 14px; color: var(--sub); line-height: 1.6 }
.note { font-size: 15px; color: var(--sub); margin-top: 10px }
.center { text-align: center }

/* 기운패 카드 */
.pae { position: relative; aspect-ratio: 600 / 1000; container-type: inline-size; width: 100%; filter: drop-shadow(0 18px 24px rgba(30, 24, 14, .18)) }
.pae-face { position: absolute; inset: 0 }
.pae-svg { width: 100%; height: 100% }
.pae-no { position: absolute; left: 16%; top: 13.6%; font-size: 4.6cqw; font-weight: 700; color: #6A5530; line-height: 1; letter-spacing: 0 }
.pae-seal { position: absolute; left: 74.33%; top: 12.2%; width: 11%; height: 6.6%; display: flex; flex-direction: column; align-items: center; justify-content: center; font-family: var(--han); font-weight: 700; color: #FFF4E6; font-size: 4.3cqw; line-height: 1.05; letter-spacing: 0 }
.pae-seal i { font-style: normal }
.pae-rare { display: none }
.pae-name { position: absolute; left: 6%; right: 6%; top: 61%; text-align: center; font-weight: 800; font-size: 10.6cqw; line-height: 1.15; letter-spacing: -.04em; color: #241E15 }
.pae-name small { display: block; font-weight: 500; font-size: 4.7cqw; letter-spacing: -.01em; color: #6A5A3E; margin-bottom: .6cqw }
.pae-line { position: absolute; left: 14%; right: 14%; top: 72.6%; text-align: center; font-size: 4.6cqw; line-height: 1.42; color: #3E362A; text-wrap: balance }
.pae-cnt { position: absolute; left: 4%; right: 4%; top: 91.1%; text-align: center; font-size: 4.6cqw; font-weight: 600; color: #6A5A3E; white-space: nowrap; line-height: 1; letter-spacing: 0 }
.pae--mini .pae-no { display: none }
.pae--mini .pae-name { top: 61%; font-size: 11.4cqw }
.pae--mini .pae-name small { font-size: 5.8cqw }
.pae--bare .pae-no, .pae--bare .pae-name, .pae--bare .pae-seal i { display: none }
.pae-svg image { transform-box: fill-box; transform-origin: 50% 100%; animation: bob 5.5s ease-in-out infinite }
@keyframes bob { 0%, 100% { transform: translateY(0) } 50% { transform: translateY(-1.6%) } }

/* 뒤집는 카드 */
.pae--flip { perspective: 1600px }
.pae-turn { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform 1s cubic-bezier(.2, .7, .15, 1) }
.pae--flip .pae-face { backface-visibility: hidden; -webkit-backface-visibility: hidden }
.pae-back { transform: rotateY(180deg) }
.pae--flip.is-back .pae-turn { transform: rotateY(180deg) }
.pae-backname { position: absolute; left: 0; right: 0; top: 82%; text-align: center; font-weight: 800; font-size: 8cqw; color: #6E5121; letter-spacing: .24em; padding-left: .24em }
.land { animation: land .7s cubic-bezier(.2, .7, .2, 1) }
@keyframes land { from { transform: scale(.94) rotate(-1.5deg) } to { transform: none } }

/* ── 첫 화면: 펼쳐지는 병풍 ── */
.hero { text-align: center; padding: 64px 24px 0; overflow: hidden }
.hero h1 { font-size: clamp(40px, 6.4vw, 92px); line-height: 1.18; letter-spacing: -.045em }
.hero h1 .thin { font-weight: 400 }
.hero .lead { margin-top: 22px }
.hero .cta { justify-content: center; margin-top: 32px }
.fold { --pw: min(196px, calc((100vw - 48px) / (var(--nw, var(--n)) * .97))); position: relative; margin: 52px auto 0; perspective: 1500px; perspective-origin: 50% 30%; padding-bottom: 70px }
.fold-stage { --a: 74deg; position: relative; margin: 0 auto; height: calc(var(--pw) * 1.5455); width: calc(var(--n) * var(--pw) * cos(var(--a))); transform-style: preserve-3d; transition: --a 1.8s cubic-bezier(.2, .8, .2, 1) }
.fold.is-open .fold-stage { --a: var(--open, 16deg) }
.fold-p { position: absolute; left: 0; top: 0; width: var(--pw); height: 100%; transform-origin: 0 50%;
  transform: translateX(calc(var(--i) * var(--pw) * cos(var(--a)))) translateZ(calc(var(--o) * -1 * var(--pw) * sin(var(--a)))) rotateY(calc(var(--s) * var(--a)));
  background-image: var(--art); background-repeat: no-repeat; background-size: calc(var(--pw) * var(--bw)) auto; background-position: calc(var(--pw) * var(--bx)) calc(var(--pw) * -.0545);
  box-shadow: inset 0 0 0 calc(var(--pw) * .024) #4B3020, inset 0 0 0 calc(var(--pw) * .032) #B8924E }
.fold-p::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(0, 0, 0, var(--sh0)), rgba(0, 0, 0, var(--sh1))) }
.fold-p:nth-child(odd) { --sh0: 0; --sh1: .22 }
.fold-p:nth-child(even) { --sh0: .08; --sh1: 0 }
.fold-p img { position: absolute; left: 9%; right: 9%; bottom: 19%; width: 82%; height: 42%; object-fit: contain; object-position: 50% 100%; animation: bob 5s ease-in-out infinite }
.fold-p:nth-child(2n) img { animation-delay: -1.7s }
.fold-p:nth-child(3n) img { animation-delay: -3.1s }
.fold-p span { position: absolute; left: 0; right: 0; bottom: 5.5%; text-align: center; color: #fff; font-size: 16px; font-weight: 700; text-shadow: 0 1px 3px rgba(0, 0, 0, .5); z-index: 1 }
.fold-p.is-empty span { color: rgba(255, 255, 255, .8); font-weight: 600 }
.fold-p span { display: flex; justify-content: center; align-items: center; gap: 5px; padding: 0 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.fold-hit { position: absolute; inset: 0; z-index: 2; transition: background-color .15s }
.fold-hit:hover, .fold-hit:active { background: rgba(255, 255, 255, .1) }
.fold-hit:focus-visible { outline: 3px solid #fff; outline-offset: -6px; border-radius: 2px }
.folds { margin: 18px auto 0 }
.fold-join { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: #fff }
.fold-join em { font-style: normal; font-size: 34px; font-weight: 300; line-height: 1; margin-top: 18%; text-shadow: 0 1px 3px rgba(0, 0, 0, .4) }
.fold-join span { font-weight: 700 }
.room-cta { text-align: center; margin-top: 22px }
.room-cta .fine { margin-top: 10px }
.room-hook { font-size: 17px; font-weight: 600; color: var(--ink2); margin-bottom: 14px; word-break: keep-all }
.sheet-cta { margin-top: 18px }
.fold--room { margin-top: 22px; padding-bottom: 26px }
.fold--room + .fold--room { margin-top: 0 }
.fold--room::before { bottom: 10px }
.fold::before { content: ""; position: absolute; left: 50%; bottom: 46px; width: calc(var(--n) * var(--pw) * .95); height: 44px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(0, 0, 0, .2), rgba(0, 0, 0, 0)) }

.sec { padding: 128px 24px }
.sec-in { max-width: var(--w); margin: 0 auto }
.sec h2 { font-size: clamp(30px, 3.8vw, 54px); line-height: 1.22; letter-spacing: -.04em }
.sec-sub { font-size: 19px; color: var(--sub); margin-top: 14px }
.sec-gray { background: var(--gray) }
.sec-dark { background: var(--dark); color: #fff }
.sec-dark .sec-sub { color: #A8A8A8 }

/* 패 한 장 — 가운데 카드 + 양쪽 지시선 */
.anat { text-align: center }
.anat-stage { position: relative; width: 360px; margin: 72px auto 0 }
.anat-notes { list-style: none }
.anat-notes li { position: absolute; top: var(--y); width: 280px; transform: translateY(-.8em) }
.anat-notes b { display: block; font-size: 19px; font-weight: 700; line-height: 1.6 }
.anat-notes span { display: block; font-size: 16px; color: #B8B8B8; line-height: 1.5 }
.anat-notes .l { right: calc(100% + 40px); text-align: right }
.anat-notes .r { left: calc(100% + 40px); text-align: left }
.anat-notes li::before, .anat-notes li::after { content: ""; position: absolute; top: .8em; pointer-events: none }
.anat-notes .l::after { left: calc(100% + 10px); width: calc(30px + var(--x) * 360px); border-top: 1px solid #8C8C8C }
.anat-notes .r::after { right: calc(100% + 10px); width: calc(30px + (1 - var(--x)) * 360px); border-top: 1px solid #8C8C8C }
.anat-notes li::before { width: 9px; height: 9px; margin-top: -4px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px var(--dark); z-index: 2 }
.anat-notes .l::before { left: calc(100% + 40px + var(--x) * 360px - 4px) }
.anat-notes .r::before { right: calc(100% + 40px + (1 - var(--x)) * 360px - 4px) }

/* 방 안 자리 — 왼쪽 제목, 오른쪽 큰 이름 목록 */
.seats { display: grid; grid-template-columns: 5fr 7fr; gap: 72px; align-items: start }
.seats .note { margin-top: 28px }
.seatlist { list-style: none; border-top: 1px solid #D6D6D2 }
.seatlist li { display: grid; grid-template-columns: 76px 1fr; gap: 0 22px; align-items: center; padding: 20px 0; border-bottom: 1px solid #D6D6D2 }
.seatlist img { grid-row: span 2; width: 76px; height: 76px; object-fit: contain; object-position: 50% 100% }
.seatlist b { font-size: clamp(26px, 2.8vw, 40px); font-weight: 700; letter-spacing: -.04em; line-height: 1.2 }
.seatlist b em { font-style: normal; font-weight: 400; color: var(--sub); margin-left: 12px }
.seatlist p { font-size: 17px; color: var(--ink2); margin-top: 3px }

/* 기운 친구 — 한 줄로 선 열 친구 */
.friends { text-align: center }
.lineup { list-style: none; display: grid; grid-template-columns: repeat(10, 1fr); row-gap: 36px; margin-top: 72px }
.lineup li { display: flex; flex-direction: column; align-items: center }
.lineup img { width: 100%; max-width: 116px; height: 116px; padding: 0 6px; object-fit: contain; object-position: 50% 100% }
.lineup i { align-self: stretch; height: 2px; background: var(--ink); margin-top: 2px }
.lineup b { font-size: 18px; font-weight: 700; margin-top: 14px }
.lineup span { font-size: 14px; color: var(--sub); margin-top: 1px }

/* 카드첩 소개 — 큰 숫자 */
.dexpromo { display: grid; grid-template-columns: 1fr 1.15fr; gap: 80px; align-items: center }
.bignum { font-size: clamp(120px, 15vw, 220px); font-weight: 200; letter-spacing: -.06em; line-height: .9; margin-left: -.05em }
.bignum small { font-size: .2em; font-weight: 600; letter-spacing: -.02em; margin-left: .3em; vertical-align: .3em }
.dexpromo h2 { margin-top: 30px }
.dexpromo .btn { margin-top: 32px }
.dexmini { display: grid; grid-template-columns: repeat(10, 1fr); gap: 6px }
.dexmini .thumb b { display: none }
.sec-gray .thumb.is-locked { background: #fff }

.thumb { position: relative; display: block; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: linear-gradient(180deg, var(--s0) 0, var(--s1) 70%, var(--g) 70%) }
.thumb img { position: absolute; left: 12%; right: 12%; bottom: 8%; width: 76%; height: 76%; object-fit: contain; object-position: 50% 100% }
.thumb b { position: absolute; left: 6px; top: 5px; font-family: var(--han); font-size: 13px; color: #fff; background: rgba(194, 59, 46, .92); padding: 1px 4px; border-radius: 3px; line-height: 1.3; letter-spacing: 0 }
.thumb.is-locked { background: #ECECE9; display: grid; place-items: center }
.thumb.is-locked b { position: static; background: none; color: #85857F; font-family: var(--sans); font-weight: 600 }

/* 입력 */
.make { max-width: 540px; margin: 0 auto; padding: 48px 0 30px; text-align: center }
.make h1 { font-size: clamp(32px, 4.6vw, 48px); letter-spacing: -.04em }
.make .lead { margin-top: 12px; font-size: 17px }
.form { margin-top: 34px; text-align: left; display: grid; gap: 22px }
.field { display: grid; gap: 8px; border: 0 }
.field > span, .field legend { font-size: 15px; font-weight: 700; color: var(--ink2); margin-bottom: 8px }
.field input:not([type=radio]):not([type=checkbox]), .field select, .copybox {
  width: 100%; min-height: 56px; padding: 0 16px; font-size: 17px; background: #fff; border: 1.5px solid #D6D6D3; border-radius: 12px; appearance: none; -webkit-appearance: none
}
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--ink2) 50%), linear-gradient(135deg, var(--ink2) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 34px }
.field select:disabled { opacity: .5 }
.field input:focus, .field select:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px rgba(25, 25, 25, .1) }
.ymd { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 8px }
.hm { display: grid; grid-template-columns: 1fr 1fr; gap: 8px }
.seg { display: inline-grid; grid-template-columns: 1fr 1fr; background: var(--gray); border-radius: 12px; padding: 4px; margin-bottom: 10px; width: 100% }
.seg label { position: relative }
.seg input { position: absolute; opacity: 0; inset: 0 }
.seg span { display: flex; align-items: center; justify-content: center; min-height: 44px; border-radius: 9px; font-weight: 600; color: var(--sub); cursor: pointer }
.seg input:checked + span { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .12) }
.seg input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 1px }
.check { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 16px; color: var(--ink2); cursor: pointer }
.check input { width: 22px; height: 22px; accent-color: var(--ink); flex: none }
.check[hidden] { display: none }
.field legend small, .field > span small { font-size: 14px; font-weight: 500; color: var(--sub); margin-left: 6px }
.field select:invalid { color: var(--sub) }
.field select option { color: var(--ink) }
.hm:has(> select[hidden]) { grid-template-columns: 1fr }
.late-note { font-size: 15px; color: var(--sub); margin: 2px 0 4px }
.late summary { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; font-weight: 600; color: var(--sub); cursor: pointer; text-decoration: underline; text-underline-offset: 4px; list-style: none }
.late summary::-webkit-details-marker { display: none }
.late[hidden] { display: none }
.err { color: var(--red); font-weight: 600; font-size: 16px; min-height: 1.4em; text-align: center }
.form .fine { text-align: center }

/* 공개 */
.reveal { text-align: center; padding: 40px 0 40px }
.reveal h1 { font-size: clamp(28px, 4vw, 44px); margin-top: 8px; letter-spacing: -.04em }
.guess { display: flex; justify-content: center; gap: 8px; margin-top: 26px; flex-wrap: wrap; transition: opacity .3s }
.guess.is-done { opacity: 0; pointer-events: none; height: 0; margin: 0; overflow: hidden }
.guess-b { width: 62px; min-height: 76px; border-radius: 14px; background: var(--s); border: 1.5px solid transparent; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-weight: 700; font-size: 16px; color: var(--c); transition: transform .12s, border-color .15s }
.guess-b:hover { border-color: var(--c) }
.guess-b:active { transform: scale(.96) }
.reveal .linkbtn { margin-top: 10px }
.reveal-stage { width: min(78vw, 340px); margin: 28px auto 0 }
.reveal-res { font-size: 22px; font-weight: 700; letter-spacing: -.03em; margin-top: 22px; min-height: 1.5em }

/* 내 패 */
.me { display: grid; grid-template-columns: 380px 1fr; gap: 72px; padding: 40px 0 20px; align-items: start }
.me-card { position: sticky; top: 16px; width: 100%; max-width: 380px; margin: 0 auto }
.me-act { display: grid; gap: 10px; margin-top: 28px }
.me-text h1 { font-size: clamp(34px, 4.8vw, 60px); margin-top: 8px; letter-spacing: -.045em }
.me-tag { font-size: 21px; color: var(--ink2); margin-top: 12px }
.me-rare { margin-top: 16px; font-size: 16px; color: var(--ink2); display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap }
.me-rare b, .badge b, .hapline b { flex: none; background: var(--ink); color: #fff; font-size: 13px; font-weight: 700; padding: 3px 8px; border-radius: 6px; letter-spacing: 0 }
.block { margin-top: 52px }
.block h2 { font-size: 26px; letter-spacing: -.035em }
.beadread { list-style: none; margin-top: 16px; display: grid; gap: 14px }
.beadread li { display: flex; gap: 12px; align-items: flex-start }
.beadread li > .el-ic { margin-top: 3px; flex: none }
.beadread li > svg + svg { margin-left: -8px }
.beadread p { font-size: 17px; color: var(--ink2) }
.beadread b { display: block; color: var(--ink); font-weight: 700 }
.traits { margin-top: 16px; padding-left: 0; list-style: none; display: grid; gap: 8px }
.traits li { position: relative; padding-left: 20px; font-size: 17px; color: var(--ink2) }
.traits li::before { content: ""; position: absolute; left: 2px; top: .64em; width: 7px; height: 7px; border-radius: 50%; background: var(--ink) }
.kv { margin-top: 20px; display: grid }
.kv > div { display: grid; grid-template-columns: 128px 1fr; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line) }
.kv dt { font-size: 15px; font-weight: 700; color: var(--sub); padding-top: 1px }
.kv dd { font-size: 17px; color: var(--ink2) }
.pillars summary { cursor: pointer; font-weight: 700; font-size: 20px; letter-spacing: -.03em; min-height: 44px; display: flex; align-items: center }
.pillars { border-top: 1px solid var(--line); padding-top: 8px }
.pillars summary { list-style: none; justify-content: space-between }
.pillars summary::-webkit-details-marker { display: none }
.pillars summary::after { content: "+"; font-size: 26px; font-weight: 300; line-height: 1 }
.pillars[open] summary::after { content: "−" }
/* 왜 이 패일까 */
.steps { list-style: none; margin-top: 18px; display: grid; gap: 34px }
.step-h { display: flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 700; color: var(--ink); letter-spacing: -.02em }
.step-h em { flex: none; display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff; font-style: normal; font-size: 15px; font-weight: 700 }
.step-d { font-size: 16px; color: var(--ink2); margin-top: 8px; word-break: keep-all }
.step-d b { color: var(--ink); white-space: nowrap }
.aside { font-size: 15px; color: var(--sub); margin-top: 10px; word-break: keep-all }
.eight { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 14px }
.eight .col { display: grid; gap: 6px; justify-items: stretch; text-align: center; padding: 10px 6px 12px; border-radius: 14px; background: var(--gray) }
.eight .col.is-me { background: #fff; box-shadow: inset 0 0 0 2px var(--ink) }
.col-h { font-size: 14px; font-weight: 700; color: var(--sub) }
.col-f { font-size: 13px; line-height: 1.35; color: var(--ink2); min-height: 2.7em; display: grid; place-items: center; word-break: keep-all }
.col-f b { font-size: 15px; color: var(--ink) }
.gl { display: grid; justify-items: center; gap: 2px; padding: 8px 2px 7px; border-radius: 10px; background: color-mix(in srgb, var(--c) 13%, #fff); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 30%, transparent) }
.gl b { font-family: var(--han); font-size: 28px; line-height: 1.1; font-weight: 700; color: color-mix(in srgb, var(--c) 82%, #000); letter-spacing: 0 }
.gl small { font-size: 13px; font-weight: 600; color: var(--ink2); white-space: nowrap }
.gl.is-q { background: #fff; box-shadow: inset 0 0 0 1px var(--line) }
.gl.is-q b { color: #B5B5B2; font-family: inherit }
.why .elcount { margin-top: 14px }
.why .beadread { margin-top: 18px }
.me2 { list-style: none; margin-top: 14px; display: grid; gap: 10px }
.me2 li { display: flex; gap: 14px; align-items: center }
.me2 .gl { flex: none; width: 74px }
.me2 p { font-size: 15px; color: var(--sub); word-break: keep-all }
.me2 p b { display: block; font-size: 17px; color: var(--ink) }
.real { margin-top: 30px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line) }
.real summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; min-height: 56px; font-size: 16px; color: var(--ink2); padding-right: 30px; position: relative }
.real summary::-webkit-details-marker { display: none }
.real summary::after { content: "+"; position: absolute; right: 2px; font-size: 24px; font-weight: 300; color: var(--ink) }
.real[open] summary::after { content: "−" }
.real summary b { flex: none; background: var(--ink); color: #fff; font-size: 13px; padding: 3px 8px; border-radius: 6px }
.real ul { list-style: none; display: grid; gap: 10px; padding: 0 0 18px }
.real li { position: relative; padding-left: 16px; font-size: 15px; color: var(--ink2); word-break: keep-all }
.real li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 5px; height: 5px; border-radius: 50%; background: var(--sub) }
.sub-h { font-size: 17px; font-weight: 700; margin-top: 30px; letter-spacing: -.02em }
.sub-h + .kv { margin-top: 8px }
.kv dd small { display: block; font-size: 15px; color: var(--sub); margin-top: 4px }
.scape { margin-top: 14px; font-size: 17px; color: var(--ink2) }
.scape b { display: block; font-size: 22px; color: var(--ink); letter-spacing: -.03em }
.scape-t { margin-top: 8px; font-size: 17px; color: var(--ink2) }
.today-card { display: flex; gap: 14px; align-items: center; margin-top: 16px; padding: 14px 16px; border-radius: 16px; background: var(--gray) }
.today-card img { width: 64px; height: auto; flex: none }
.today-card small { display: block; font-size: 14px; color: var(--sub) }
.today-card b { display: block; font-size: 19px; letter-spacing: -.02em; margin-top: 2px }
.today-type { margin-top: 14px; font-size: 17px; color: var(--ink2) }
.today-type b { display: block; font-size: 19px; color: var(--ink) }
.reveal-hint { font-size: 15px; color: var(--sub); margin-top: 10px; word-break: keep-all }
.reveal-hint[hidden] { display: none }
.nw { white-space: nowrap }
.roomlist { list-style: none; margin-top: 14px; border-top: 1px solid var(--line) }
.roomlist a { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 58px; border-bottom: 1px solid var(--line); text-decoration: none; font-size: 18px }
.roomlist a:hover b { text-decoration: underline; text-underline-offset: 4px }
.roomlist span { font-size: 15px; color: var(--sub); flex: none }
.me-next { margin-top: 56px; padding: 34px 30px; background: var(--dark); color: #fff; border-radius: 20px }
.me-next h2 { font-size: 26px; letter-spacing: -.035em }
.me-next p { color: #B8B8B8; font-size: 17px; margin: 10px 0 24px }
.me-next .btn-main { background: #fff; color: var(--ink) }
.me-next .btn-main:hover { background: #EDEDEB }
.pil { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; text-align: center }
.pil li { background: var(--gray); border-radius: 12px; padding: 14px 4px; display: grid; gap: 2px }
.pil span { font-size: 14px; color: var(--sub) }
.pil b { font-family: var(--han); font-size: 28px; letter-spacing: 0 }
.pil small { font-size: 14px; color: var(--sub) }
.me-links { margin-top: 36px; display: flex; gap: 18px; flex-wrap: wrap }
.me-links a { font-size: 16px; font-weight: 600; color: var(--ink2); min-height: 44px; display: inline-flex; align-items: center; text-underline-offset: 4px }

/* 방 */
.room { padding: 34px 0 10px }
.room-head { text-align: center }
.room-head h1 { font-size: clamp(34px, 4.8vw, 60px); margin-top: 4px; letter-spacing: -.045em }
.room-count { font-size: 18px; color: var(--ink2); margin-top: 8px }
.room-count b { color: var(--ink) }
.tapnote { text-align: center; font-size: 15px; color: var(--sub); margin-top: 14px; min-height: 1em }
.room-act { display: flex; justify-content: center; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 20px }
.joined { text-align: center; font-size: 16px; color: var(--ink); font-weight: 600; margin-top: 12px }
.room .block { max-width: 820px; margin-left: auto; margin-right: auto; margin-top: 60px }
.guiin-card { display: flex; gap: 16px; align-items: center; width: 100%; text-align: left; margin-top: 16px; padding: 16px; border-radius: 16px; background: var(--gray); transition: background-color .15s }
.guiin-card:hover { background: #ECECE9 }
.guiin-card .thumb { width: 84px; flex: none }
.g-text { display: grid; gap: 3px }
.g-text small { font-size: 14px; font-weight: 700; color: var(--sub) }
.g-text b { font-size: 24px; letter-spacing: -.035em }
.g-text span { font-size: 16px; color: var(--ink2); text-wrap: balance }
.guiin.is-locked p { margin-top: 10px; font-size: 17px; color: var(--sub) }
.titles { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; margin-top: 14px }
.titles li { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; padding: 16px 0; border-top: 1px solid var(--line); align-items: baseline }
.t-name { font-weight: 700; font-size: 21px; letter-spacing: -.035em; display: inline-flex; align-items: center; gap: 6px }
.t-title { color: var(--sub); font-size: 21px; font-weight: 400; letter-spacing: -.035em }
.titles p { grid-column: 1 / -1; font-size: 16px; color: var(--ink2) }
.titles small { display: block; font-size: 15px; color: var(--sub); margin-top: 4px }
.diag h2 { font-size: 32px; letter-spacing: -.04em }
.diag-line { font-size: 18px; color: var(--ink2); margin-top: 8px; text-wrap: balance }
.elcount { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 20px }
.elcount li { display: grid; justify-items: center; gap: 2px; padding: 14px 4px; background: var(--gray); border-radius: 12px }
.elcount span { font-size: 14px; color: var(--sub) }
.elcount b { font-size: 26px; font-variant-numeric: tabular-nums }
.elcount .is-zero { opacity: .5 }
.badge { display: flex; gap: 10px; align-items: baseline; margin-top: 14px; font-size: 16px; color: var(--ink2) }
.missing { list-style: none; margin-top: 16px; display: grid; gap: 10px }
.missing li { display: flex; gap: 10px; align-items: center; font-size: 16px; color: var(--ink2) }
.missing .el-ic { flex: none }

/* 병풍(방 화면) */
.byeong-wrap { display: grid; gap: 14px; max-width: 1040px; margin: 30px auto 0 }
.byeong { position: relative; width: 100% }
.byeong-svg { position: absolute; inset: 0; width: 100%; height: 100% }
.byeong-svg image { animation-duration: 4.5s }
.byeong-svg image:nth-of-type(2n) { animation-delay: -1.6s }
.byeong-svg image:nth-of-type(3n) { animation-delay: -3s }
.byeong-hits { position: absolute; inset: 3.3% var(--pad); display: grid; grid-template-columns: repeat(var(--n), 1fr) }
.hit { display: flex; align-items: flex-end; justify-content: center; padding: 0 4px 4.5%; border-radius: 2px; color: #fff; transition: background-color .15s }
button.hit:hover { background: rgba(255, 255, 255, .08) }
.hit em { font-style: normal; font-size: 15px; font-weight: 700; line-height: 1.2; text-shadow: 0 1px 2px rgba(0, 0, 0, .45); display: inline-flex; align-items: center; gap: 6px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.hit.is-empty em { color: rgba(255, 255, 255, .8); font-weight: 600 }
.me-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px var(--red); flex: none }

/* 카드첩 */
.dex { padding: 34px 0; text-align: center }
.dex h1 { font-size: clamp(34px, 4.8vw, 56px); margin-top: 4px; letter-spacing: -.045em }
.dex h1 b { font-weight: 800 }
.dex .lead { margin-top: 10px; font-size: 17px }
.dexgrid { list-style: none; display: grid; grid-template-columns: repeat(10, 1fr); gap: 10px; margin: 32px 0 30px }
.dexgrid li { display: grid; gap: 4px; font-size: 14px; color: var(--ink2) }
.dexgrid button { display: grid; gap: 4px; font-size: 14px; color: var(--ink2); border-radius: 10px }
.dexgrid button:hover .thumb { transform: translateY(-2px) }
.dexgrid .thumb { transition: transform .15s }

/* 아래 판 */
.sheet { position: fixed; inset: 0; z-index: 40 }
.sheet-back { position: absolute; inset: 0; background: rgba(0, 0, 0, .5); opacity: 0; transition: opacity .25s }
.sheet-body { position: absolute; left: 50%; bottom: 0; width: min(100%, 560px); max-height: 90vh; overflow: auto; background: #fff; border-radius: 24px 24px 0 0; padding: 32px 22px calc(26px + env(safe-area-inset-bottom)); transform: translate(-50%, 100%); transition: transform .3s cubic-bezier(.2, .7, .2, 1); text-align: center }
.sheet.is-open .sheet-back { opacity: 1 }
.sheet.is-open .sheet-body { transform: translate(-50%, 0) }
.sheet-x { position: absolute; right: 8px; top: 8px; width: 44px; height: 44px; border-radius: 50% }
.sheet-x::before, .sheet-x::after { content: ""; position: absolute; left: 13px; top: 21px; width: 18px; height: 2px; background: var(--ink); transform: rotate(45deg) }
.sheet-x::after { transform: rotate(-45deg) }
.sheet h2 { font-size: 26px; margin-top: 6px; letter-spacing: -.035em }
.sheet .form { margin-top: 20px }
.sheet .btn-wide { margin-top: 18px }
.pair-sub { font-size: 16px; color: var(--ink2); margin-top: 8px }
.pair-one { width: min(64vw, 270px); margin: 4px auto 18px }
.pair-two { display: flex; align-items: center; justify-content: center; gap: 4px; margin: 4px auto 14px }
.pair-two .pae { width: min(34vw, 170px) }
.hap-seal { width: 46px; height: 46px; border-radius: 8px; background: var(--red); color: #FFF4E6; font-family: var(--han); font-size: 26px; display: grid; place-items: center; flex: none; margin: 0 -10px; z-index: 2; transform: rotate(-8deg); box-shadow: 0 3px 8px rgba(80, 20, 10, .3); animation: stamp .5s cubic-bezier(.2, 1.4, .4, 1) .2s both }
@keyframes stamp { from { transform: scale(1.8) rotate(-20deg); opacity: 0 } to { transform: rotate(-8deg); opacity: 1 } }
.pair-x { width: 22px; height: 2px; background: var(--brass); flex: none }
.pair-kind { font-size: 15px; font-weight: 700; color: var(--sub); margin-top: 4px }
.pair-scene { font-size: 19px; font-weight: 600; letter-spacing: -.03em; line-height: 1.5; margin-top: 14px; color: var(--ink) }
.pair-mine { font-size: 17px; color: var(--ink2); margin-top: 12px }
.pair-common, .pair-tip, .hapline { font-size: 16px; color: var(--ink2); margin-top: 12px; display: flex; gap: 10px; justify-content: center; align-items: baseline; flex-wrap: wrap }
.pair-common b, .pair-tip b { font-size: 14px; font-weight: 700; color: var(--sub) }
.saved { width: min(100%, 320px); margin: 16px auto 4px; border-radius: 12px; box-shadow: 0 6px 18px rgba(0, 0, 0, .15) }
.copybox { min-height: 120px; padding: 12px; margin-top: 16px; resize: none }

.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 14px 20px; border-radius: 12px; font-size: 16px; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 60; max-width: calc(100% - 32px); text-align: center }
.toast.is-on { opacity: 1; transform: translate(-50%, 0) }

.foot { max-width: var(--w); margin: 0 auto; padding: 44px 24px calc(44px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); text-align: center; display: grid; gap: 4px }
.foot p { font-size: 14px; color: var(--sub); text-wrap: balance }
.foot-links { display: flex; gap: 18px; justify-content: center; margin-top: 8px }
.foot-links a { min-height: 44px; display: inline-flex; align-items: center; font-weight: 600; color: var(--ink2) }
.foot-links span { min-height: 44px; display: inline-flex; align-items: center }
.empty { text-align: center }
.empty .btn { margin-top: 22px }
.el-ic { display: inline-block; vertical-align: -4px }

/* 화면 폭 */
@media (max-width: 1100px) {
  .anat-notes li { width: 210px }
  .anat-notes .l { right: calc(100% + 30px) }
  .anat-notes .r { left: calc(100% + 30px) }
  .anat-notes .l::after { width: calc(20px + var(--x) * 360px) }
  .anat-notes .r::after { width: calc(20px + (1 - var(--x)) * 360px) }
  .anat-notes .l::before { left: calc(100% + 30px + var(--x) * 360px - 4px) }
  .anat-notes .r::before { right: calc(100% + 30px + (1 - var(--x)) * 360px - 4px) }
}
@media (max-width: 900px) {
  .sec { padding: 96px 24px }
  .anat-stage { width: min(78vw, 320px); margin-top: 48px }
  .anat-notes { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 20px; margin: 44px auto 0; max-width: 560px }
  .anat-notes li { position: static; width: auto; transform: none; text-align: center !important }
  .anat-notes li::before, .anat-notes li::after { display: none }
  .seats { grid-template-columns: 1fr; gap: 40px }
  .seats > div:first-child { text-align: center }
  .lineup { grid-template-columns: repeat(5, 1fr); margin-top: 48px }
  .me { grid-template-columns: 1fr; gap: 36px }
  .me-card { position: static; max-width: 360px }
  .me-text { text-align: left }
  .me-text .eyebrow, .me-text h1, .me-tag { text-align: center }
  .me-rare { justify-content: center }
  .dexpromo { grid-template-columns: 1fr; text-align: center; gap: 44px }
  .dexgrid { grid-template-columns: repeat(6, 1fr) }
}
@media (max-width: 640px) {
  body { font-size: 16px }
  #app { padding: 0 16px 30px }
  .top { padding: 8px 12px 8px 16px }
  .lead { font-size: 17px }
  .hero { padding: 40px 16px 0 }
  .hero h1 { font-size: 40px; line-height: 1.22 }
  .hero .lead { margin-top: 16px }
  .hero .cta { margin-top: 26px }
  .cta .btn { flex: 1 1 100% }
  .fold { margin-top: 40px; padding-bottom: 48px; perspective: 900px }
  .fold::before { bottom: 28px }
  .fold-p span { font-size: 14px }
  .sec { padding: 80px 16px }
  .sec h2 { font-size: 30px }
  .sec-sub { font-size: 17px }
  .anat-notes { grid-template-columns: 1fr; gap: 18px }
  .anat-stage { width: min(calc(100vw - 32px), 340px) }
  .anat-notes b { font-size: 17px }
  .anat-notes span { font-size: 15px }
  .seatlist li { grid-template-columns: 60px 1fr; gap: 0 16px; padding: 16px 0 }
  .seatlist img { width: 60px; height: 60px }
  .seatlist b { font-size: 24px }
  .seatlist b em { margin-left: 8px }
  .seatlist p { font-size: 16px }
  .lineup { row-gap: 28px }
  .lineup img { height: 78px; padding: 0 3px }
  .lineup b { font-size: 16px; margin-top: 10px }
  .lineup span { font-size: 13px }
  .bignum { font-size: 128px }
  .dexmini { gap: 4px }
  .titles { grid-template-columns: 1fr }
  .kv > div { grid-template-columns: 1fr; gap: 2px }
  .dexgrid { grid-template-columns: repeat(5, 1fr); gap: 8px }
  .room-act .btn { flex: 1 1 100% }
  .hit em { font-size: 14px }
}
@media (max-width: 360px) {
  .reveal h1 { font-size: 25px }
  .hero h1 { font-size: 34px }
  .guess-b { width: 52px }
  .guess { gap: 6px }
  .dexgrid { grid-template-columns: repeat(4, 1fr) }
}

/* 움직임 끄기 */
.still *, .still *::before, .still *::after { animation: none !important; transition: none !important }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important }
}
@media print { .top, .foot, .room-act, .me-act { display: none } }
@media (max-width: 400px) { .reveal-stage { width: calc(100vw - 32px); max-width: 320px } }
@media (min-width: 700px) { .reveal-stage { width: min(340px, max(260px, calc((100vh - 360px) * .6))) } }

/* 기운 지도 (12/2) */
.kmap-wrap .sec-note { font-size: 16px; color: var(--sub); margin-top: 6px; word-break: keep-all }
.kmap { display: block; width: 100%; max-width: 460px; height: auto; margin: 14px auto 4px; overflow: visible }
.kmap .mnode { cursor: pointer }
.kmap .mnode text { font: 700 12.5px var(--sans); fill: var(--ink); paint-order: stroke; stroke: #fff; stroke-width: 4px; stroke-linejoin: round }
.kmap .mnode.is-me text { font-size: 13.5px }
.kmap .mnode:focus { outline: none }
.kmap .mnode:focus-visible circle:first-of-type { stroke: var(--ink); stroke-width: 4 }
.kmap .mtag { cursor: pointer }
.kmap .mtag rect { fill: #fff; stroke: #191919; stroke-width: 1.5 }
.kmap .mtag text { font: 800 12.5px var(--sans); fill: #191919; text-anchor: middle; font-variant-numeric: tabular-nums }
.kmap .mtag.is-hot rect { fill: #C2412F; stroke: #C2412F }
.kmap .mtag.is-hot text { fill: #fff }
.bonds { list-style: none; margin: 8px 0 0; padding: 0 }
.bonds li + li { border-top: 1px solid var(--line) }
.bonds button { display: grid; grid-template-columns: 52px 1fr; grid-template-rows: auto auto; column-gap: 12px; width: 100%; text-align: left; padding: 12px 2px; min-height: 56px }
.bonds .bs { grid-row: 1 / 3; align-self: center; font-size: 24px; font-weight: 800; font-variant-numeric: tabular-nums; text-align: center; border-radius: 12px; background: var(--gray); padding: 6px 0 }
.bonds .bs.is-hot { background: #C2412F; color: #fff }
.bonds .bn { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap }
.bonds .bn strong { font-size: 17px }
.bonds .bn em { font-style: normal; font-size: 15px; font-weight: 700; color: var(--ink2) }
.bonds small { font-size: 14px; color: var(--sub); word-break: keep-all }
.fills { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px }
.fills li > button, .fills li.is-empty { display: flex; gap: 10px; align-items: flex-start; width: 100%; text-align: left; padding: 12px 14px; border-radius: 14px; background: var(--gray); font-size: 16px; line-height: 1.5; word-break: keep-all }
.fills li.is-empty { background: #fff; border: 1px dashed #CFCFCB }
.fills .el-ic { flex: none; margin-top: 2px }
.fills small { display: block; font-size: 14px; color: var(--sub) }
.fillnote { font-size: 16px; color: var(--ink2); margin-top: 6px }

/* 단순화 (12/2) */
.howto { max-width: 640px }
.steps3 { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px }
.steps3 li { display: grid; grid-template-columns: 40px 1fr 72px; gap: 14px; align-items: center; padding: 16px; border-radius: 18px; background: var(--gray) }
.steps3 li > b { width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 18px; font-weight: 800 }
.steps3 strong { display: block; font-size: 19px; font-weight: 800 }
.steps3 span { display: block; font-size: 15px; color: var(--sub); line-height: 1.5; margin-top: 2px; word-break: keep-all }
.steps3 .thumb { width: 72px }
.steps3 i { font-style: normal; display: grid; place-items: center; height: 72px; border-radius: 14px; background: #fff; font-weight: 800; text-align: center }
.s3-date { font-size: 14px; letter-spacing: -.02em; border: 1.5px solid var(--line) }
.s3-score { background: #C2412F !important; color: #fff; font-size: 28px; font-variant-numeric: tabular-nums }
.s3-score small { font-size: 13px; margin-left: 1px }
.likes { margin-top: 18px; padding: 14px 16px; border-radius: 14px; background: var(--gray); font-size: 16px; line-height: 1.55; word-break: keep-all }
.likes b { display: block; font-size: 14px; color: var(--sub); margin-bottom: 2px }
details.more { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 0 }
details.more > summary { list-style: none; cursor: pointer; display: flex; flex-direction: column; justify-content: center; min-height: 64px; padding: 12px 34px 12px 0; position: relative }
details.more > summary::-webkit-details-marker { display: none }
details.more > summary::after { content: "+"; position: absolute; right: 2px; top: 50%; transform: translateY(-50%); font-size: 26px; font-weight: 300 }
details.more[open] > summary::after { content: "−" }
details.more > summary b { font-size: 19px; font-weight: 800 }
details.more > summary span { font-size: 15px; color: var(--sub) }
details.more[open] { padding-bottom: 20px }
details.more .why { margin-top: 0; padding-top: 0; border: 0 }
.kmap-wrap.is-locked { background: var(--gray); border-radius: 18px; padding: 20px }
.steps3 strong { white-space: nowrap }
@media (max-width: 360px) { .steps3 li { grid-template-columns: 34px 1fr 60px; gap: 10px; padding: 14px 12px } .steps3 li > b { width: 34px; height: 34px; font-size: 16px } .steps3 .thumb, .steps3 i { width: 60px; height: 60px } .steps3 strong { font-size: 18px } .s3-date { font-size: 13px; letter-spacing: -.04em } }
