/* 핀덤 「우리 도시로 와 줘」 — 공연장 밤하늘의 남보라 + 고른 팬덤의 빛 색(--fan)이 화면 전체를 물들인다 */
@property --fan { syntax: '<color>'; inherits: true; initial-value: #ffd27a; }
:root {
  --fan: #ffd27a;
  --night: #0d0b29;
  --night-2: #151139;
  --dusk: #2a1d5e;
  --ink: #f6f2ff;
  --haze: #a9a3d6;
  --haze-2: #7d77ad;
  --line: rgba(255, 255, 255, .1);
  --glass: rgba(255, 255, 255, .055);
  --pin: #ff5c8a;
  --good: #63e6ae;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --font: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, system-ui, 'Noto Sans Thai', 'Leelawadee UI', Thonburi, sans-serif;
  --num: Unbounded, 'Pretendard Variable', Pretendard, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  transition: --fan .5s var(--ease);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body {
  margin: 0; color: var(--ink); font-family: var(--font);
  background: radial-gradient(130% 70% at 50% -10%, var(--dusk) 0%, #17123f 38%, var(--night) 70%) no-repeat, var(--night);
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none; word-break: keep-all; overflow-wrap: anywhere;
}
body { min-height: 100dvh; }
body.lock { overflow: hidden; }
#app { max-width: 480px; min-height: 100dvh; margin: 0 auto; display: flex; flex-direction: column; }
button { font: inherit; color: inherit; cursor: pointer; touch-action: manipulation; -webkit-user-select: none; user-select: none; }
button:disabled { cursor: default; }
:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 12px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
svg { display: block; }

/* 머리 줄 — 지구본 위에 떠 있고, 맨 위는 밤색으로 채운다(아이폰 홈 화면 앱 맨 위 흐림 방지) */
.top {
  position: sticky; top: 0; z-index: 20; height: calc(var(--safe-t) + 58px); padding: calc(var(--safe-t) + 12px) 18px 0;
  background: linear-gradient(to bottom, rgba(13, 11, 41, .94) 0%, rgba(13, 11, 41, .6) 55%, rgba(13, 11, 41, 0) 100%);
}
.top-row { display: flex; align-items: center; justify-content: space-between; height: 34px; }
.brand { display: flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; }
.brand svg { width: 17px; height: 23px; filter: drop-shadow(0 0 8px rgba(255, 92, 138, .6)); }
.wm { font-family: var(--num); font-weight: 600; font-size: 19px; letter-spacing: -.01em; }
.wm-ko { font-weight: 800; font-size: 19px; letter-spacing: -.03em; }
.lang { position: relative; display: block; }
.lang select {
  height: 34px; padding: 0 32px 0 14px; border-radius: 17px; border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(16, 13, 46, .55); color: var(--ink); font: inherit; font-size: 13px; font-weight: 650;
  -webkit-appearance: none; appearance: none; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.lang svg { position: absolute; right: 10px; top: 50%; width: 14px; height: 14px; transform: translateY(-50%); pointer-events: none; color: var(--haze); }

/* 무대 — 밤의 지구본 */
.stage { position: relative; height: clamp(300px, 43vh, 440px); margin-top: calc(-1 * (var(--safe-t) + 58px)); z-index: 1; }
body[data-view="city"] .stage { height: clamp(260px, 36vh, 340px); }
.globe-cvs { position: absolute; inset: 0; display: block; touch-action: pan-y; cursor: grab; }
.world { position: absolute; left: 0; right: 0; bottom: 36px; margin: 0; text-align: center; font-size: 12.5px; font-weight: 600; color: var(--haze); pointer-events: none; text-shadow: 0 1px 10px rgba(13, 11, 41, .9); }

/* 아래 판 */
.sheet {
  position: relative; z-index: 5; flex: 1; margin-top: -24px; padding: 22px 18px 28px; border-radius: 28px 28px 0 0;
  background: linear-gradient(180deg, rgba(31, 25, 76, .86) 0%, rgba(17, 14, 47, .97) 110px, #100d2d 100%);
  border-top: 1px solid rgba(255, 255, 255, .09);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 -30px 60px -40px var(--fan);
}
.sheet > * { transition: opacity .15s, transform .15s; }
.sheet.out > * { opacity: 0; transform: translateY(6px); }
.sheet:not(.out) > * { animation: rise .34s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }

.hl { margin: 0 0 6px; font-size: 31px; line-height: 1.08; letter-spacing: -.04em; font-weight: 800; }
.lead { margin: 0; max-width: 30ch; color: var(--haze); font-size: 14.5px; line-height: 1.5; }
.pick { margin-top: 18px; }
.pick h2, .pick-h h2 { margin: 0 0 10px; font-size: 14px; font-weight: 700; color: rgba(246, 242, 255, .82); letter-spacing: -.01em; }
.pick-h { display: flex; align-items: baseline; justify-content: space-between; }
.link { border: 0; background: none; padding: 4px 0; color: var(--haze); font-size: 13.5px; font-weight: 700; text-decoration: underline; text-decoration-color: rgba(169, 163, 214, .4); text-underline-offset: 3px; }

.chips { display: flex; gap: 7px; overflow-x: auto; margin: 0 -18px; padding: 2px 18px 6px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 7px; height: 44px; padding: 0 13px 0 11px; border-radius: 22px;
  border: 1px solid var(--line); background: var(--glass); font-size: 14px; letter-spacing: -.02em; font-weight: 700; white-space: nowrap; color: rgba(246, 242, 255, .86);
  transition: background .25s, border-color .25s, box-shadow .25s, color .25s;
}
.chip i { width: 9px; height: 9px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px var(--c); }
.chip[aria-checked="true"] {
  color: #fff; border-color: var(--c); background: color-mix(in srgb, var(--c) 20%, transparent);
  box-shadow: 0 0 0 1px var(--c) inset, 0 10px 30px -12px var(--c);
}

.place {
  display: flex; align-items: center; gap: 10px; width: 100%; height: 54px; padding: 0 16px; border-radius: 17px;
  border: 1px solid var(--line); background: var(--glass); text-align: left;
}
.place svg { flex: none; width: 21px; height: 21px; color: var(--fan); }
.pl-name { font-size: 18px; font-weight: 800; letter-spacing: -.02em; white-space: nowrap; }
.pl-sub { flex: 1; min-width: 0; color: var(--haze); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-act { color: var(--haze); font-size: 13.5px; font-weight: 700; }
.live { display: flex; align-items: center; gap: 8px; min-height: 20px; margin: 8px 2px 0; color: var(--haze); font-size: 13.5px; opacity: 0; transition: opacity .3s; }
.live.on { opacity: 1; }
.live i { width: 7px; height: 7px; border-radius: 50%; background: var(--fan); box-shadow: 0 0 10px var(--fan); animation: breathe 2.4s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: .35; } }

/* 불 켜기 — 응원봉처럼 빛이 차오르는 막대 */
.go { margin-top: 14px; }
.light {
  position: relative; display: flex; align-items: center; justify-content: center; width: 100%; height: 64px; padding: 0 18px;
  border-radius: 22px; overflow: hidden; isolation: isolate; color: #fff; font-size: 17px; font-weight: 800; letter-spacing: -.02em;
  border: 1px solid color-mix(in srgb, var(--fan) 62%, transparent);
  background: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .01)), color-mix(in srgb, var(--fan) 17%, #18133f);
  box-shadow: inset 0 0 26px -8px color-mix(in srgb, var(--fan) 75%, transparent), 0 18px 46px -18px var(--fan);
  transition: box-shadow .3s, border-color .3s, background .3s, transform .2s var(--ease);
  -webkit-touch-callout: none; touch-action: none;
}
.light-fill {
  position: absolute; inset: 0; z-index: -1; transform-origin: left; transform: scaleX(var(--p, 0));
  background: linear-gradient(90deg, color-mix(in srgb, var(--fan) 50%, transparent), var(--fan) 82%, #fff 100%);
}
.light-label { text-shadow: 0 1px 12px rgba(10, 8, 34, .45); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.light.charging { transform: scale(.985); box-shadow: inset 0 0 26px -8px var(--fan), 0 0 calc(20px + 50px * var(--p, 0)) -4px var(--fan); }
.light.wait .light-label { opacity: .75; }
.light.flash { animation: flash .6s var(--ease); }
@keyframes flash { 0% { box-shadow: 0 0 0 0 #fff, 0 0 80px 10px var(--fan); } 100% { box-shadow: 0 0 0 0 transparent, 0 18px 46px -18px var(--fan); } }
.light:disabled { color: var(--haze); border-color: var(--line); background: var(--glass); box-shadow: none; }
.light:focus-visible { outline-color: var(--fan); border-radius: 22px; }
.hint { min-height: 18px; margin: 10px 2px 0; color: var(--haze-2); font-size: 12.5px; line-height: 1.5; }
.hint.center { text-align: center; }

/* 초대·캡틴 띠 */
.banner {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 18px; margin-bottom: 4px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--fan) 24%, transparent), rgba(157, 140, 255, .1));
  border: 1px solid color-mix(in srgb, var(--fan) 45%, transparent);
}
.banner svg { flex: none; width: 22px; height: 26px; color: var(--fan); }
.banner p { margin: 0; font-size: 15.5px; font-weight: 750; line-height: 1.42; }

/* 번호 공개 — 공연 티켓 */
.reveal { padding-top: 2px; }
.rv-lbl { margin: 0; text-align: center; color: var(--fan); font-size: 14px; font-weight: 800; }
.ticket {
  position: relative; max-width: 390px; margin: 14px auto 0; border-radius: 22px;
  background: linear-gradient(160deg, color-mix(in srgb, var(--fan) 17%, #1d1749) 0%, #130f35 62%);
  border: 1px solid rgba(255, 255, 255, .11);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .75), 0 0 70px -34px var(--fan);
}
.ticket.fresh { animation: ticket .7s cubic-bezier(.2, .9, .25, 1.12) both; }
@keyframes ticket { from { opacity: 0; transform: translateY(18px) scale(.95); } }
.tk-main { position: relative; overflow: hidden; padding: 18px 22px 18px; border-radius: 22px 22px 0 0; }
.tk-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.tk-g { color: var(--fan); font-size: 14px; font-weight: 800; }
.tk-date { color: var(--haze-2); font-size: 12.5px; font-weight: 600; }
.tk-city { margin: 10px 0 0; font-size: 26px; font-weight: 850; letter-spacing: -.03em; }
.tk-num { margin: 8px 0 0; font-family: var(--num); font-weight: 800; font-size: clamp(50px, 16vw, 72px); line-height: 1; letter-spacing: -.03em; text-shadow: 0 0 40px var(--fan); }
.tk-num.pop { animation: pop .5s cubic-bezier(.34, 1.6, .64, 1); }
@keyframes pop { 40% { transform: scale(1.06); } }
.tk-line { margin: 12px 0 0; font-size: 15.5px; font-weight: 700; color: rgba(246, 242, 255, .9); }
.tk-sheen { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .17) 50%, transparent 62%); transform: translateX(-120%); }
.ticket.fresh .tk-sheen { animation: sheen 1.5s .55s ease-out forwards; }
@keyframes sheen { to { transform: translateX(120%); } }
.tk-stub { position: relative; padding: 16px 22px 18px; border-top: 2px dashed rgba(255, 255, 255, .17); }
.tk-stub::before, .tk-stub::after { content: ''; position: absolute; top: -12px; width: 22px; height: 22px; border-radius: 50%; background: #110e30; border: 1px solid rgba(255, 255, 255, .11); }
.tk-stub::before { left: -12px; clip-path: inset(0 0 0 50%); }
.tk-stub::after { right: -12px; clip-path: inset(0 50% 0 0); }
.meter { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.meter i { display: block; height: 100%; transform-origin: left; transform: scaleX(0); transition: transform 1.2s var(--ease); background: linear-gradient(90deg, color-mix(in srgb, var(--fan) 55%, transparent), var(--fan)); box-shadow: 0 0 12px var(--fan); border-radius: 4px; }
.tk-next { margin: 9px 0 0; color: var(--haze); font-size: 13px; font-weight: 600; }
.actions { display: grid; gap: 8px; max-width: 390px; margin: 18px auto 0; }
.actions .btn.primary { min-height: 56px; font-size: 16px; }
.actions .btn.quiet { min-height: 48px; }

/* 단추 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 16px; border-radius: 16px;
  font-size: 15px; font-weight: 800; letter-spacing: -.01em; text-decoration: none; transition: transform .15s var(--ease), background .2s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn.primary { border: 0; background: var(--fan); color: #120e30; box-shadow: 0 14px 34px -14px var(--fan); }
.btn.quiet { border: 1px solid rgba(255, 255, 255, .13); background: var(--glass); color: var(--ink); }
.btn.sm { min-height: 42px; padding: 0 14px; font-size: 14px; border-radius: 13px; }
.btn.wide { width: 100%; margin-top: 14px; }
.btn:active, .chip:active, .place:active, .stub-open:active { transform: scale(.98); }
.icon-btn { display: grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 21px; border: 1px solid rgba(255, 255, 255, .12); background: var(--glass); }
.icon-btn svg { width: 19px; height: 19px; }

/* 내 불빛 — 티켓 조각 */
.sec { margin: 0 0 12px; font-size: 15px; font-weight: 800; }
.stubs { display: grid; gap: 12px; }
.stub {
  position: relative; overflow: hidden; border-radius: 20px; border: 1px solid rgba(255, 255, 255, .09);
  background: linear-gradient(120deg, color-mix(in srgb, var(--c) 15%, #1b1648) 0%, #130f36 72%);
}
.stub::before { content: ''; position: absolute; left: 0; top: 14px; bottom: 14px; width: 4px; border-radius: 0 3px 3px 0; background: var(--c); box-shadow: 0 0 14px var(--c); }
.stub-open { display: grid; gap: 2px; width: 100%; padding: 16px 18px 6px 24px; border: 0; background: none; text-align: left; }
.stub-g { color: var(--c); font-size: 13px; font-weight: 800; }
.stub-city { font-size: 24px; font-weight: 850; letter-spacing: -.03em; }
.stub-num { font-family: var(--num); font-size: 15px; font-weight: 600; color: var(--haze); }
.stub-act { display: flex; align-items: center; gap: 8px; padding: 6px 14px 14px 24px; }
.stub-act .light { flex: 1; width: auto; height: 46px; font-size: 14.5px; border-radius: 15px; --fan: var(--c); }
.done { flex: 1; display: inline-flex; align-items: center; gap: 6px; color: var(--good); font-size: 14px; font-weight: 750; }
.done svg { width: 18px; height: 18px; }
.done.big { justify-content: center; }
.streak { display: inline-flex; align-items: center; gap: 4px; padding: 5px 10px; border-radius: 12px; background: rgba(255, 170, 90, .12); color: #ffb76b; font-size: 12.5px; font-weight: 800; white-space: nowrap; }
.streak svg { width: 14px; height: 14px; }

/* 도시 화면 */
.city { padding-bottom: 6px; }
.ct-bar { display: flex; justify-content: space-between; margin: -4px 0 12px; }
.ct-g { margin: 0; color: var(--fan); font-size: 14px; font-weight: 800; }
.ct-name { margin: 4px 0 0; font-size: 38px; line-height: 1.05; font-weight: 850; letter-spacing: -.045em; }
.ct-country { margin: 4px 0 0; color: var(--haze); font-size: 13.5px; }
.ct-count { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 10px; margin-top: 18px; }
.ct-count b { font-family: var(--num); font-size: 46px; font-weight: 800; line-height: 1; letter-spacing: -.03em; text-shadow: 0 0 34px var(--fan); }
.ct-count span { color: var(--haze); font-size: 14px; font-weight: 700; }
.ct-count em { font-style: normal; padding: 3px 9px; border-radius: 10px; background: color-mix(in srgb, var(--fan) 18%, transparent); color: var(--fan); font-size: 12.5px; font-weight: 800; }
.spark { margin: 16px 0 0; }
.spark div { display: grid; grid-template-columns: repeat(14, 1fr); gap: 4px; height: 40px; align-items: end; }
.spark i { display: block; height: calc(var(--h) * 100%); border-radius: 3px; background: color-mix(in srgb, var(--fan) 42%, transparent); }
.spark i.z { opacity: .35; }
.spark i.now { background: var(--fan); box-shadow: 0 0 10px var(--fan); }
.spark figcaption { margin-top: 6px; color: var(--haze-2); font-size: 11.5px; }
.track { margin-top: 22px; }
.tr-line { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .08); }
.tr-line i { display: block; height: 100%; width: calc(var(--t) * 100%); border-radius: 3px; background: var(--fan); box-shadow: 0 0 12px var(--fan); }
.track ol { position: relative; height: 24px; margin: 0; padding: 0; list-style: none; }
.track li { position: absolute; top: 0; left: calc(var(--x) * 100%); transform: translateX(-50%); padding-top: 8px; }
.track li:last-child { transform: translateX(-100%); }
.track li::before { content: ''; position: absolute; top: -10px; left: 50%; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: #2b2560; border: 2px solid #110e30; }
.track li:last-child::before { left: auto; right: 0; margin: 0; }
.track li.done::before { background: var(--fan); box-shadow: 0 0 10px var(--fan); }
.track li b { white-space: nowrap; font-size: 12px; font-weight: 750; color: var(--haze); font-variant-numeric: tabular-nums; }
.track li.done b { color: var(--fan); }
.track p { margin: 8px 0 0; color: var(--haze); font-size: 13px; }
.trio { display: grid; grid-template-columns: repeat(3, 1fr); margin: 20px 0 0; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trio div + div { border-left: 1px solid var(--line); padding-left: 14px; }
.trio dt { color: var(--haze-2); font-size: 12px; font-weight: 700; }
.trio dd { margin: 4px 0 0; font-size: 21px; font-weight: 800; font-variant-numeric: tabular-nums; }
.captain { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; margin: 16px 0 0; padding: 12px 14px; border-radius: 16px; background: color-mix(in srgb, var(--fan) 10%, transparent); border: 1px solid color-mix(in srgb, var(--fan) 35%, transparent); }
.captain svg { width: 17px; height: 17px; color: var(--fan); }
.captain span { color: var(--haze); font-size: 13.5px; font-weight: 700; }
.captain a { color: var(--ink); font-weight: 800; text-decoration: none; }
.captain small { color: var(--haze-2); font-size: 12.5px; }
.board h2, .promises h2 { margin: 28px 0 8px; font-size: 15px; font-weight: 800; }
.board ol, .promises ol { margin: 0; padding: 0; list-style: none; }
.board li { display: grid; grid-template-columns: 24px minmax(0, 1fr) 72px auto; gap: 10px; align-items: center; padding: 11px 0; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.board .rk { font-family: var(--num); font-size: 13px; font-weight: 600; color: var(--haze-2); }
.board .nm { font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.board .bar { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.board .bar i { display: block; height: 100%; width: calc(var(--w) * 100%); background: color-mix(in srgb, var(--fan) 55%, transparent); }
.board b { font-size: 14px; font-weight: 800; font-variant-numeric: tabular-nums; text-align: right; }
.board li.me .nm { color: var(--fan); }
.board li.me .bar i { background: var(--fan); box-shadow: 0 0 8px var(--fan); }
.board li.empty { display: block; color: var(--haze); }
.promises li { display: grid; grid-template-columns: 74px 1fr; gap: 12px; padding: 11px 0; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.promises b { font-family: var(--num); font-size: 14px; font-weight: 600; color: var(--haze); }
.promises li.done b { color: var(--fan); }
.promises span { color: var(--haze); font-size: 13.5px; line-height: 1.5; }
.dock {
  position: sticky; bottom: 0; z-index: 6; margin: 18px -18px -28px; padding: 18px 18px calc(var(--safe-b) + 16px);
  background: linear-gradient(to top, #100d2d 62%, rgba(16, 13, 45, 0));
}
.dock .btn.wide { margin-top: 0; }

/* 아래에서 올라오는 창 */
.overlay { position: fixed; inset: 0; z-index: 80; display: flex; align-items: flex-end; justify-content: center; background: rgba(6, 4, 20, 0); transition: background .24s; }
.overlay.on { background: rgba(6, 4, 20, .62); }
.overlay:not(.on) { pointer-events: none; }
.bs {
  width: 100%; max-width: 480px; max-height: 90dvh; display: flex; flex-direction: column; border-radius: 26px 26px 0 0;
  background: linear-gradient(180deg, #1d1750, #130f37 140px); border: 1px solid rgba(255, 255, 255, .1); border-bottom: 0;
  padding: 8px 18px calc(var(--safe-b) + 16px); transform: translateY(100%); transition: transform .3s cubic-bezier(.2, .9, .2, 1);
}
.overlay.on .bs { transform: none; }
.bs-grip { width: 40px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .18); margin: 0 auto 12px; }
.bs-head { display: flex; align-items: center; gap: 8px; }
.bs-head input { flex: 1; min-width: 0; height: 48px; padding: 0 16px; border-radius: 15px; border: 1px solid rgba(255, 255, 255, .13); background: rgba(255, 255, 255, .06); color: var(--ink); font: inherit; font-size: 16px; }
.bs-head input::placeholder { color: var(--haze-2); }
.bs-list { overflow-y: auto; margin-top: 6px; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.bs-list h3 { margin: 16px 4px 4px; color: var(--haze-2); font-size: 12.5px; font-weight: 800; }
.row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 54px; padding: 8px 4px; border: 0; border-bottom: 1px solid rgba(255, 255, 255, .06); background: none; text-align: left; }
.row i { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--c); box-shadow: 0 0 8px var(--c); }
.row b { font-size: 15.5px; font-weight: 750; white-space: nowrap; }
.row span { flex: 1; min-width: 0; color: var(--haze-2); font-size: 12.5px; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.empty { color: var(--haze); text-align: center; padding: 22px 0; }
.seg { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.seg button { height: 42px; border-radius: 13px; border: 1px solid rgba(255, 255, 255, .12); background: var(--glass); color: var(--haze); font-size: 14px; font-weight: 750; }
.seg button[aria-checked="true"] { color: #fff; border-color: var(--fan); background: color-mix(in srgb, var(--fan) 17%, transparent); }
.card-prev { display: flex; align-items: center; justify-content: center; min-height: 330px; margin: 14px 0; perspective: 900px; }
.tilt { position: relative; border-radius: 16px; overflow: hidden; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .25s var(--ease); box-shadow: 0 30px 60px -22px rgba(0, 0, 0, .8), 0 0 50px -24px var(--fan); }
.tilt img { display: block; }
.card-prev[data-kind="story"] img { height: min(52dvh, 470px); width: auto; }
.card-prev[data-kind="square"] img { width: min(78vw, 340px); height: auto; }
.card-prev:not(.ready) .tilt { width: 200px; height: 356px; background: linear-gradient(110deg, rgba(255, 255, 255, .04) 30%, rgba(255, 255, 255, .1) 50%, rgba(255, 255, 255, .04) 70%) 0 0 / 300% 100%; animation: shimmer 1.2s linear infinite; }
.card-prev:not(.ready) img { display: none; }
.tilt-sheen { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at var(--sx, 50%) 18%, rgba(255, 255, 255, .2), transparent 45%); mix-blend-mode: screen; }
.card-act { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 6px; }
.card-act .btn { min-height: 50px; padding: 0 8px; font-size: 14px; }

/* 불러오는 중 */
.skel { display: grid; gap: 12px; padding-top: 6px; }
.skel i { display: block; height: 18px; border-radius: 9px; background: linear-gradient(110deg, rgba(255, 255, 255, .04) 30%, rgba(255, 255, 255, .1) 50%, rgba(255, 255, 255, .04) 70%) 0 0 / 300% 100%; animation: shimmer 1.2s linear infinite; }
.skel i:first-child { width: 60%; height: 30px; }
.skel i:last-child { height: 64px; border-radius: 22px; margin-top: 20px; }
@keyframes shimmer { to { background-position: -300% 0; } }

.fine { padding: 16px 24px calc(var(--safe-b) + 22px); margin: 0; font-size: 11.5px; line-height: 1.65; color: #6c6699; text-align: center; background: #100d2d; }
.toast {
  position: fixed; left: 50%; bottom: calc(var(--safe-b) + 24px); z-index: 90; max-width: calc(100% - 32px); transform: translate(-50%, 20px);
  padding: 13px 18px; border-radius: 16px; background: rgba(32, 26, 80, .92); border: 1px solid rgba(255, 255, 255, .12); color: var(--ink);
  font-size: 14px; font-weight: 700; text-align: center; opacity: 0; pointer-events: none; transition: opacity .22s, transform .22s var(--ease);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .6);
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
