/* DearGenie — 밤에만 문을 여는 잡화점. 남색 · 황동 · 촛불의 금빛 (시안), 사용 설명서는 양피지. */

:root {
  --bg: #070b1c;
  --navy: #0c1330;
  --panel: #121a3c;
  --panel2: #18224a;
  --line: rgba(201, 164, 92, .26);
  --lineSoft: rgba(201, 164, 92, .13);
  --brass: #c9a45c;
  --gold: #f1d48e;
  --ink: #efe7d2;
  --ink2: #c3c2cf;
  --muted: #8e93b3;
  --parch: #ecdfbd;
  --parchInk: #3a2c15;
  --red: #e58a7b;
  --tabs: 62px;
  --serif: 'Cormorant Garamond', 'Gowun Batang', Georgia, serif;
  --ko: 'Gowun Batang', 'Cormorant Garamond', serif;
  --sans: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body { background: #03050f; color: var(--ink); font: 15.5px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ol, ul { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
textarea, input { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.shell { max-width: 480px; margin: 0 auto; min-height: 100dvh; background: var(--bg); position: relative; box-shadow: 0 0 80px rgba(0, 0, 0, .6); }
.main { min-height: 100dvh; padding-bottom: calc(var(--tabs) + env(safe-area-inset-bottom) + 20px); }

/* ── 탭 ── */
.tabs { position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; width: 100%; max-width: 480px; height: calc(var(--tabs) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); display: grid; grid-template-columns: repeat(3, 1fr); background: rgba(7, 11, 28, .92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--lineSoft); z-index: 50; }
.tabs a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--muted); font-size: 11px; letter-spacing: .06em; }
.tabs svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.tabs a.on { color: var(--gold); }
body.no-tabs .tabs { display: none; }
body.no-tabs .main { padding-bottom: 0; }

/* ── 단추 ── */
.btn { white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 50px; padding: 0 22px; border-radius: 999px; font-weight: 600; font-size: 15.5px; transition: transform .12s, opacity .2s, background .2s; }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .55; cursor: default; }
.btn-cta { background: linear-gradient(180deg, #f3d999, #c79f55); color: #2a1d06; box-shadow: 0 6px 24px rgba(201, 164, 92, .28), inset 0 1px 0 rgba(255, 255, 255, .5); }
.btn-ghost { border: 1px solid var(--line); color: var(--gold); }
.btn-block { width: 100%; }
.link { color: var(--muted); font-size: 13.5px; text-decoration: underline; text-underline-offset: 3px; }
.link.danger { color: var(--red); }
.muted { color: var(--muted); }
.tiny { font-size: 12.5px; color: var(--muted); line-height: 1.55; }
.err { color: var(--red); font-size: 14px; }
.warn { color: var(--gold); font-size: 14px; }
.spinner { width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid rgba(201, 164, 92, .3); border-top-color: var(--gold); animation: spin .8s linear infinite; display: inline-block; }
.btn-cta .spinner { border-color: rgba(42, 29, 6, .25); border-top-color: #2a1d06; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } }
@keyframes flicker { 0%, 100% { opacity: .85; } 42% { opacity: 1; } 55% { opacity: .72; } 70% { opacity: .95; } }

.logo { font-family: var(--serif); font-weight: 600; letter-spacing: .01em; color: var(--gold); line-height: 1; }
.logo sup { font: 500 11px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--brass); margin-left: 6px; vertical-align: super; }
.eyebrow { font-size: 11.5px; letter-spacing: .26em; text-transform: uppercase; color: var(--brass); }

/* ── 홈: 가게 ── */
.hero { position: relative; padding: min(112vw, 540px) 20px 22px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0 0 auto; height: min(177.8vw, 853px); background: #060918 url(/img/hero.jpg) center top / 100% auto no-repeat; }
.hero-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7, 11, 28, .6) 0%, rgba(7, 11, 28, 0) 15%, rgba(7, 11, 28, 0) 48%, rgba(7, 11, 28, .86) 64%, var(--bg) 74%); }
.hero-glow { position: absolute; left: 50%; top: min(108vw, 520px); width: 320px; height: 320px; transform: translate(-50%, -50%); background: radial-gradient(circle, rgba(241, 212, 142, .2), transparent 62%); animation: flicker 4.2s infinite; pointer-events: none; }
.hero-top { position: absolute; top: calc(18px + env(safe-area-inset-top)); left: 20px; right: 20px; display: flex; justify-content: space-between; align-items: flex-start; z-index: 2; }
.hero-top .logo { font-size: 34px; text-shadow: 0 2px 18px rgba(0, 0, 0, .8); }
.hero-top .sold { white-space: nowrap; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink2); text-align: right; line-height: 1.5; text-shadow: 0 1px 8px #000; }
.hero-top .sold b { display: block; font: 600 20px var(--serif); color: var(--gold); letter-spacing: .04em; }
.hero-body { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 14px; animation: fadeUp .7s ease both; }
.hero-body h1 { font: 600 30px/1.15 var(--serif); color: var(--ink); }
.hero-body h1 i { color: var(--gold); font-weight: 500; }

.say { font-family: var(--ko); font-size: 16.5px; line-height: 1.75; color: var(--ink); word-break: keep-all; }
.greet { border-left: 2px solid var(--brass); padding: 2px 0 2px 14px; }

.wishbox { background: rgba(12, 19, 48, .82); border: 1px solid var(--line); border-radius: 22px; padding: 14px 14px 12px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); display: flex; flex-direction: column; gap: 10px; }
.wishbox textarea { width: 100%; background: none; border: 0; outline: none; resize: none; font-family: var(--ko); font-size: 17px; line-height: 1.6; min-height: 58px; }
.wishbox textarea::placeholder { color: var(--muted); }
.wishbox-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.wishbox-foot small { color: var(--muted); font-size: 12px; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 20px; margin: 0 -20px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--lineSoft); background: rgba(18, 26, 60, .7); font-family: var(--ko); font-size: 14px; color: var(--ink2); }

.sec { padding: 26px 20px 0; }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.sec-head h2 { font: 600 23px var(--serif); color: var(--gold); }
.sec-head a { font-size: 13px; color: var(--muted); }
.rule { display: flex; align-items: center; gap: 12px; color: var(--brass); font-size: 12px; letter-spacing: .24em; text-transform: uppercase; margin: 30px 20px 0; }
.rule::before, .rule::after { content: ''; flex: 1; height: 1px; background: var(--line); }

.row { display: flex; gap: 14px; align-items: center; padding: 12px; border: 1px solid var(--lineSoft); border-radius: 18px; background: var(--navy); margin-bottom: 10px; }
.row .thumb { width: 58px; height: 78px; border-radius: 10px; object-fit: cover; flex: none; background: var(--panel); border: 1px solid var(--lineSoft); display: grid; place-items: center; }
.row .thumb svg { width: 26px; }
.row b { display: block; font: 700 16.5px/1.35 var(--ko); color: var(--ink); }
.row small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 3px; }
.row .rt { margin-left: auto; color: var(--brass); font-size: 20px; }

.howlink { display: block; text-align: center; margin: 22px 20px 0; color: var(--ink2); font-size: 14px; }
.howlink b { color: var(--gold); font-weight: 600; }
.fine { text-align: center; padding: 18px 28px 0; }

/* ── 보관함 ── */
.page-head { padding: calc(22px + env(safe-area-inset-top)) 20px 6px; }
.page-head h1 { font: 600 34px var(--serif); color: var(--gold); }
.page-head p { color: var(--muted); font-size: 14px; margin-top: 4px; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 16px 20px 0; }
.cell { position: relative; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: var(--navy); aspect-ratio: 3 / 4.4; display: block; }
.cell img, .cell .sigil { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cell .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 34px 12px 12px; background: linear-gradient(180deg, transparent, rgba(5, 8, 20, .92) 55%); }
.cell .cap i { font: normal 10px var(--sans); letter-spacing: .2em; color: var(--brass); }
.cell .cap b { display: block; font: 700 15px/1.35 var(--ko); color: var(--ink); word-break: keep-all; }
.empty { text-align: center; padding: 60px 34px; color: var(--muted); }
.empty b { display: block; font: 600 24px var(--serif); color: var(--gold); margin-bottom: 8px; }
.empty .btn { margin-top: 20px; }
.sigil { display: grid; place-items: center; background: radial-gradient(circle at 50% 42%, #1c2757, #0a1029 70%); }
.sigil svg { width: 38%; opacity: .9; animation: flicker 5s infinite; }

/* ── 소원: 상담 ── */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; padding: calc(12px + env(safe-area-inset-top)) 16px 12px; background: linear-gradient(180deg, var(--bg) 70%, transparent); }
.top a, .top button { color: var(--ink2); font-size: 14.5px; display: inline-flex; align-items: center; gap: 4px; min-height: 36px; }
.top .mid { font: 600 19px var(--serif); color: var(--gold); }
.talk { padding: 4px 18px 0; display: flex; flex-direction: column; gap: 14px; }
.msg { display: flex; gap: 10px; align-items: flex-start; animation: fadeUp .45s ease both; }
.msg .av { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; border: 1px solid var(--brass); box-shadow: 0 0 16px rgba(201, 164, 92, .3); }
.msg .bub { background: var(--panel); border: 1px solid var(--lineSoft); border-radius: 4px 18px 18px 18px; padding: 11px 15px; max-width: 86%; }
.msg .bub .ask { display: block; margin-top: 8px; color: var(--gold); }
.msg.me { justify-content: flex-end; }
.msg.me .bub { background: rgba(201, 164, 92, .14); border-color: var(--line); border-radius: 18px 4px 18px 18px; font-family: var(--ko); font-size: 16px; }
.who { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--brass); margin-bottom: 3px; }
.dots { display: inline-flex; gap: 5px; padding: 6px 2px; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--brass); animation: dot 1.2s infinite; }
.dots i:nth-child(2) { animation-delay: .18s; } .dots i:nth-child(3) { animation-delay: .36s; }
@keyframes dot { 0%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }

.reply { position: sticky; bottom: 0; padding: 14px 16px calc(14px + env(safe-area-inset-bottom)); background: linear-gradient(180deg, transparent, var(--bg) 26%); margin-top: 18px; }
.reply form { display: flex; gap: 8px; align-items: flex-end; background: var(--navy); border: 1px solid var(--line); border-radius: 24px; padding: 8px 8px 8px 16px; }
.reply textarea { flex: 1; background: none; border: 0; outline: none; resize: none; font-family: var(--ko); font-size: 16.500px; line-height: 1.5; max-height: 120px; padding: 7px 0; }
.reply button { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(180deg, #f3d999, #c79f55); color: #2a1d06; display: grid; place-items: center; flex: none; }
.reply button:disabled { opacity: .5; }
.reply svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* ── 제작 연출 ── */
.craft { margin: 26px 18px 0; padding: 34px 20px 30px; text-align: center; border: 1px solid var(--line); border-radius: 24px; background: radial-gradient(circle at 50% 36%, rgba(241, 212, 142, .13), transparent 60%), var(--navy); overflow: hidden; position: relative; }
.orb { width: 150px; height: 150px; margin: 0 auto 20px; position: relative; }
.orb svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.orb .r1 { animation: spin 14s linear infinite; }
.orb .r2 { animation: spin 9s linear infinite reverse; }
.orb .core { position: absolute; inset: 34%; border-radius: 50%; background: radial-gradient(circle, #fff3cf, #f1d48e 40%, rgba(241, 212, 142, 0) 72%); animation: flicker 1.9s infinite; filter: blur(.5px); }
.spark { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: var(--gold); left: 50%; top: 50%; animation: rise 2.8s linear infinite; opacity: 0; }
@keyframes rise { 0% { transform: translate(var(--x), 20px); opacity: 0; } 20% { opacity: 1; } 100% { transform: translate(calc(var(--x) * 1.8), -110px); opacity: 0; } }
.craft h3 { font: 600 22px var(--serif); color: var(--gold); }
.craft p { color: var(--ink2); font-size: 14.5px; margin-top: 6px; min-height: 24px; transition: opacity .4s; }

/* ── 물건 ── */
.item { margin: 26px 18px 0; border-radius: 26px; overflow: hidden; border: 1px solid var(--brass); background: var(--navy); position: relative; box-shadow: 0 0 60px rgba(201, 164, 92, .16); animation: reveal 1.1s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes reveal { from { opacity: 0; transform: translateY(26px) scale(.96); filter: brightness(2.2) blur(6px); } }
.item-art { position: relative; aspect-ratio: 4 / 5; background: #060918; }
.item-art img, .item-art .sigil { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 62%; }
.item-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7, 11, 28, .5), transparent 22%, transparent 55%, var(--navy) 99%); }
.item-no { position: absolute; top: 16px; left: 0; right: 0; text-align: center; z-index: 2; font-size: 11px; letter-spacing: .34em; color: var(--gold); text-shadow: 0 1px 10px #000; }
.item-name { position: relative; z-index: 2; margin-top: -74px; padding: 0 20px 22px; text-align: center; }
.item-name h2 { font: 700 29px/1.25 var(--ko); color: #fff6dc; word-break: keep-all; text-shadow: 0 2px 20px rgba(0, 0, 0, .9); }
.item-name p { font: italic 500 19px var(--serif); color: var(--gold); margin-top: 4px; }

.scroll { margin: 18px 18px 0; padding: 22px 20px 20px; border-radius: 6px; color: var(--parchInk); background: linear-gradient(180deg, #f2e7c8, var(--parch) 30%, #e2d2a6); box-shadow: 0 10px 40px rgba(0, 0, 0, .5), inset 0 0 40px rgba(120, 84, 30, .22); position: relative; }
.scroll::before, .scroll::after { content: ''; position: absolute; left: -5px; right: -5px; height: 9px; border-radius: 9px; background: linear-gradient(180deg, #a57f3d, #6d4f1f); }
.scroll::before { top: -5px; } .scroll::after { bottom: -5px; }
.scroll h3 { font: 700 13px var(--sans); letter-spacing: .22em; text-transform: uppercase; color: #7a5a22; margin: 16px 0 8px; }
.scroll h3:first-child { margin-top: 0; }
.scroll ol { padding-left: 22px; font-family: var(--ko); font-size: 15.500px; line-height: 1.75; word-break: keep-all; }
.scroll ol li { margin-bottom: 6px; }
.scroll p { font-family: var(--ko); font-size: 15.500px; line-height: 1.8; word-break: keep-all; }
.scroll .caution { font-size: 14.500px; padding: 10px 12px; border: 1px dashed rgba(122, 90, 34, .55); border-radius: 4px; }
.scroll .locked { font: 14px var(--sans); color: #7a5a22; text-align: center; padding-top: 6px; }

.buy { margin: 22px 18px 0; padding: 18px; border-radius: 22px; border: 1px solid var(--line); background: var(--navy); display: flex; flex-direction: column; gap: 12px; text-align: center; }
.price { font: 600 30px var(--serif); color: var(--gold); }
.price s { color: var(--muted); font: 500 19px var(--sans); margin-right: 10px; }
.price small { display: block; font: 13px var(--sans); color: var(--ink2); margin-top: 2px; }
.owned { margin: 22px 18px 0; display: flex; flex-direction: column; gap: 12px; }
.wishnote { margin: 22px 18px 0; padding: 14px 16px; border-left: 2px solid var(--brass); color: var(--ink2); }
.wishnote small { display: block; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--brass); margin-bottom: 4px; }
.wishnote p { font-family: var(--ko); }
.foot-links { display: flex; justify-content: center; gap: 22px; padding: 22px 0 10px; }

.care { margin: 18px 18px 0; padding: 14px 16px; border-radius: 16px; background: #1a2350; border: 1px solid rgba(160, 180, 255, .3); font-size: 14px; line-height: 1.6; color: #dfe4ff; }
.care b { display: block; margin-bottom: 4px; color: #fff; }
.care a { color: var(--gold); text-decoration: underline; }

/* ── Me · 안내 ── */
.menu { margin: 14px 20px 0; border: 1px solid var(--lineSoft); border-radius: 18px; background: var(--navy); overflow: hidden; }
.menu button, .menu a { display: flex; width: 100%; align-items: center; justify-content: space-between; padding: 15px 16px; border-bottom: 1px solid var(--lineSoft); text-align: left; font-size: 15.5px; }
.menu > :last-child { border-bottom: 0; }
.menu .danger { color: var(--red); }
.menu span { color: var(--muted); font-size: 13px; }
.steps { padding: 6px 20px 0; counter-reset: s; }
.step { position: relative; padding: 16px 0 16px 54px; border-bottom: 1px solid var(--lineSoft); counter-increment: s; }
.step::before { content: counter(s); position: absolute; left: 0; top: 14px; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--brass); color: var(--gold); display: grid; place-items: center; font: 600 20px var(--serif); }
.step b { display: block; font: 600 20px var(--serif); color: var(--gold); }
.step p { color: var(--ink2); font-size: 14.5px; }
.sisters { margin: 26px 20px 0; text-align: left; }
.sisters-title { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--brass); margin: 0 0 10px 4px; }
.sisters ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sisters a { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 16px; background: var(--navy); border: 1px solid var(--lineSoft); }
.sisters img { width: 44px; height: 44px; border-radius: 22%; background: #fff; }
.sisters b { display: block; font-size: 14px; }
.sisters small { color: var(--muted); font-size: 12.5px; line-height: 1.4; display: block; }

/* ── 시트 · 입장 ── */
.modal, .overlay { position: fixed; inset: 0; z-index: 90; background: rgba(2, 4, 12, .72); display: grid; place-items: end center; backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
@media (min-width: 560px) { .modal, .overlay { place-items: center; } .sheet { border-radius: 24px !important; } }
.sheet { width: 100%; max-width: 480px; background: var(--panel); border: 1px solid var(--line); border-bottom: 0; border-radius: 24px 24px 0 0; padding: 26px 20px calc(24px + env(safe-area-inset-bottom)); position: relative; max-height: 92dvh; overflow: auto; display: flex; flex-direction: column; gap: 12px; animation: fadeUp .3s ease both; }
.sheet h2 { font: 600 26px var(--serif); color: var(--gold); padding-right: 30px; }
.sheet-x { position: absolute; top: 14px; right: 14px; font-size: 26px; line-height: 1; color: var(--muted); width: 36px; height: 36px; }
.sheet textarea { width: 100%; border: 1px solid var(--line); border-radius: 14px; padding: 11px 13px; background: var(--navy); outline: none; resize: vertical; }
.sheet .av { width: 64px; height: 64px; border-radius: 50%; border: 1px solid var(--brass); object-fit: cover; }
.wall-img.big { width: 62%; }
.wall-img { width: 46%; margin: 0 auto; border-radius: 18px; border: 1px solid var(--brass); box-shadow: 0 10px 40px rgba(0, 0, 0, .6); -webkit-touch-callout: default; user-select: auto; }
.wall-steps { padding-left: 20px; font-size: 14.5px; line-height: 1.7; color: var(--ink2); }
.wall-steps b { color: var(--gold); font-weight: 600; }
.gbtn { min-height: 44px; display: grid; place-items: center; gap: 10px; }
.keep { display: flex; gap: 8px; align-items: center; justify-content: center; font-size: 14px; color: var(--ink2); }
.keep input { accent-color: var(--brass); width: 17px; height: 17px; }
.fb-stars { display: flex; gap: 6px; justify-content: center; }
.fb-stars button { font-size: 32px; color: #3a4372; line-height: 1; }
.fb-stars button.on { color: var(--gold); }

.dw-gate { position: fixed; inset: 0; z-index: 120; background: #060918 url(/img/hero.jpg) center top / cover no-repeat; display: grid; place-items: end center; overflow: auto; }
.dw-gate::before { content: ''; position: fixed; inset: 0; background: linear-gradient(180deg, rgba(7, 11, 28, .5), rgba(7, 11, 28, .2) 30%, rgba(7, 11, 28, .93) 62%, #070b1c); }
.gate-card { position: relative; width: 100%; max-width: 400px; display: flex; flex-direction: column; gap: 14px; text-align: center; padding: 30px 24px calc(34px + env(safe-area-inset-bottom)); }
.gate-card .logo { font-size: 46px; }
.gate-card p { color: var(--ink2); }
.gate-card p b { color: var(--ink); }
.gate-card input { height: 50px; border-radius: 999px; border: 1px solid var(--line); padding: 0 16px; text-align: center; outline: none; background: rgba(12, 19, 48, .85); }
.gate-card input:focus { border-color: var(--gold); }

.toast { position: fixed; left: 50%; bottom: calc(var(--tabs) + 24px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); background: rgba(241, 212, 142, .96); color: #2a1d06; padding: 10px 18px; border-radius: 99px; font-size: 14px; font-weight: 600; opacity: 0; pointer-events: none; transition: .25s; z-index: 200; max-width: 86vw; text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ── 설치 팝업 (install.js) ── */
.dwi { position: fixed; left: 0; right: 0; bottom: 0; z-index: 140; display: flex; justify-content: center; padding: 0 12px calc(var(--tabs) + 12px + env(safe-area-inset-bottom)); pointer-events: none; animation: fadeUp .4s ease both; }
.dwi-card { pointer-events: auto; width: min(440px, 100%); background: var(--panel2); color: var(--ink); border: 1px solid var(--line); border-radius: 18px; padding: 16px 16px 14px; box-shadow: 0 18px 50px rgba(0, 0, 0, .6); display: flex; flex-direction: column; gap: 12px; }
.dwi-head { display: flex; gap: 12px; align-items: flex-start; }
.dwi-head img { width: 48px; height: 48px; border-radius: 12px; flex: none; }
.dwi-head b { display: block; font-weight: 700; font-size: 16px; }
.dwi-head p { margin: 3px 0 0; font-size: 13px; line-height: 1.5; color: var(--ink2); }
.dwi-acts { display: flex; flex-wrap: wrap; gap: 6px; }
.dwi-btn { padding: 9px 14px; border-radius: 999px; font-size: 13px; }
.dwi-main { background: linear-gradient(180deg, #f3d999, #c79f55); color: #2a1d06; font-weight: 600; }
.dwi-ghost { border: 1px solid var(--line); color: var(--ink2); }
.dwi-more { font-size: 13.5px; color: var(--ink); }
.dwi-steps { margin: 0; padding-left: 20px; line-height: 1.9; }
.dwi-ico { display: inline-flex; vertical-align: -4px; padding: 2px 4px; border-radius: 6px; background: var(--navy); color: var(--gold); }
.dwi-guide { margin: 0 0 8px; line-height: 1.6; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; } }
