@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css');
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+KR:wght@500;700;900&family=JetBrains+Mono:wght@500;700&family=Playfair+Display:wght@700;800&display=swap');

:root {
  --ink: #12201C;
  --ink-2: #1E3530;
  --forest: #1F4A40;
  --paper: #F5F2EB;
  --card: #FFFFFF;
  --line: #E4DED2;
  --line-2: #EFEAE0;
  --mute: #7B7F78;
  --mute-2: #A6A79F;
  --brass: #B8893F;
  --brass-soft: #F3E8D3;
  --accent: #D4532B;
  --ok: #2F8A5F;
  --serif: 'Noto Serif KR', serif;
  --sans: 'Pretendard Variable', Pretendard, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', monospace;
  --logo: 'Playfair Display', 'Noto Serif KR', serif; /* 홈 상단 MGM. 로고와 같은 고대비 세리프 */
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: #DCD6CA; font-family: var(--sans); color: var(--ink); overflow-x: hidden; }
::selection { background: var(--brass-soft); }
body { display: flex; justify-content: center; }
/* 한국어는 단어 중간에서 끊기지 않게 합니다. */
h1, h2, h3, h4, b, p, dd, dt, small, label, button, span { word-break: keep-all; overflow-wrap: anywhere; }
button:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }

/* 이미지가 없을 때 쓰는 자리표시자 */
.imgph { display: grid; place-items: center; background: repeating-linear-gradient(135deg, var(--line-2) 0 8px, #F7F5F0 8px 16px); }
.imgph i { width: 20px; height: 20px; border: 1.5px solid var(--mute-2); border-radius: 3px; position: relative; opacity: .6; }
.imgph i::after { content: ''; position: absolute; right: 2px; bottom: 2px; width: 8px; height: 5px; border: 1.5px solid var(--mute-2); border-left: 0; border-bottom: 0; }
button { font-family: inherit; color: inherit; border: 0; background: none; padding: 0; cursor: pointer; }
input, select, textarea { font-family: inherit; color: inherit; }
img { display: block; }

#root { width: 100%; max-width: 440px; height: 100dvh; position: relative; background: var(--paper); overflow: hidden; box-shadow: 0 0 0 1px rgba(0,0,0,.04), 0 30px 80px rgba(18,32,28,.18); }

.app { position: absolute; inset: 0; display: flex; flex-direction: column; }
.scroll { flex: 1; overflow-y: auto; overflow-x: hidden; scrollbar-width: none; }
.scroll::-webkit-scrollbar { display: none; }

/* Top bar */
.topbar { height: 56px; flex: none; display: flex; align-items: center; padding: 0 16px; gap: 8px; background: var(--paper); position: relative; z-index: 5; }
.topbar.dark { background: var(--ink); color: var(--paper); }
.topbar.clear { position: absolute; top: 0; left: 0; right: 0; background: linear-gradient(rgba(0,0,0,.45), transparent); color: #fff; }
.topbar h1 { font-size: 17px; font-weight: 700; margin: 0; flex: 1; letter-spacing: -0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; margin: 0 -10px; flex: none; }
.icon-btn:active { background: rgba(0,0,0,.06); }

.logo { display: flex; align-items: baseline; gap: 6px; flex: 1; }
.logo b { font-family: var(--serif); font-weight: 900; font-size: 22px; letter-spacing: -0.01em; }
.logo b i { font-style: normal; color: var(--brass); }
.logo span { font-size: 11px; font-weight: 600; color: var(--mute); letter-spacing: 0.02em; }

/* 홈 상단 — 로고를 정가운데에 놓고 아이콘은 양 끝에 붙입니다. */
.topbar.home-top { position: relative; justify-content: center; height: 88px; padding: 0 8px; background: var(--paper); flex: none; }
.topbar.home-top .logo { flex: none; display: flex; justify-content: center; align-items: center; height: 100%; }
.topbar.home-top .logo img { height: 52px; width: auto; display: block; }
.topbar.home-top .icon-btn.abs { position: absolute; top: 50%; transform: translateY(-50%); margin: 0; }

/* Bottom tabs */
.tabs { flex: none; height: 64px; display: grid; grid-template-columns: repeat(5, 1fr); background: var(--card); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 11px; font-weight: 600; color: var(--mute-2); transition: color .15s; }
.tab.on { color: var(--ink); }
.tab.on svg { stroke: var(--ink); }
.tab:active { opacity: .6; }

/* Sections */
.sec { padding: 28px 20px 4px; }
.sec-h { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 14px; }
.sec-h h2 { margin: 0; font-size: 19px; font-weight: 800; letter-spacing: -0.03em; }
.sec-h .eyebrow { font-family: var(--mono); font-size: 10px; color: var(--brass); letter-spacing: .12em; display: block; margin-bottom: 4px; font-weight: 700; }
.more { font-size: 13px; color: var(--mute); font-weight: 600; display: flex; align-items: center; gap: 2px; }

/* Banner */
.banner { position: relative; height: 380px; margin: 4px 16px 0; border-radius: 4px; overflow: hidden; background: var(--ink); color: #fff; }
.banner-track { display: flex; height: 100%; transition: transform .6s cubic-bezier(.6,.05,.2,1); }
.banner-slide { flex: none; width: 100%; height: 100%; position: relative; }
.banner-slide img { width: 100%; height: 100%; object-fit: cover; }
.banner-slide::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18,32,28,.05) 30%, rgba(18,32,28,.88) 100%); }
.banner-cap { position: absolute; left: 20px; right: 20px; bottom: 44px; z-index: 2; }
.banner-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; padding: 5px 9px; background: var(--brass); color: #fff; letter-spacing: .02em; }
.banner-cap h3 { font-family: var(--serif); font-weight: 700; font-size: 28px; line-height: 1.25; margin: 12px 0 8px; white-space: pre-line; letter-spacing: -0.02em; }
.banner-cap p { margin: 0; font-size: 13px; opacity: .82; }
.banner-dots { position: absolute; left: 20px; bottom: 20px; z-index: 3; display: flex; gap: 6px; align-items: center; }
.banner-dots i { width: 18px; height: 2px; background: rgba(255,255,255,.35); transition: all .3s; }
.banner-dots i.on { width: 32px; background: #fff; }
.banner-count { position: absolute; right: 20px; bottom: 14px; z-index: 3; font-family: var(--mono); font-size: 11px; opacity: .8; }

/* Quick menu */
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 20px 16px 0; background: var(--card); border: 1px solid var(--line); border-radius: 4px; }
.quick button { padding: 16px 4px 14px; display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; letter-spacing: -0.02em; }
.quick button + button { border-left: 1px solid var(--line-2); }
.quick .qi { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); }

/* Site cards */
.hscroll { display: flex; gap: 12px; overflow-x: auto; padding: 0 20px 6px; margin: 0 -20px; scroll-snap-type: x mandatory; scroll-padding-left: 20px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.hscroll::after { content: ''; flex: none; width: 4px; }

/* 슬로우 마키 — 좌우 풀블리드로 흐르게 */
.marquee { overflow: hidden; margin: 0 -20px; padding: 2px 0 4px; touch-action: pan-y; -webkit-user-select: none; user-select: none; }
.marquee-track { display: flex; gap: 12px; padding-left: 20px; width: max-content; will-change: transform; }
.marquee .site-card { flex: none; width: 240px; scroll-snap-align: none; }
.marquee .site-card:last-child { margin-right: 20px; }
@media (prefers-reduced-motion: reduce) { .marquee-track { transform: none !important; } }
.hscroll::-webkit-scrollbar { display: none; }
.site-card { flex: none; width: 240px; scroll-snap-align: start; text-align: left; transition: transform .18s; }
.site-card:active { transform: scale(.985); }
.site-card .ph { aspect-ratio: 3 / 2; height: auto; border-radius: 4px; overflow: hidden; position: relative; background: var(--line); }
.site-card .ph img { width: 100%; height: 100%; object-fit: cover; }
.site-card h4 { margin: 10px 0 3px; font-size: 16px; font-weight: 700; letter-spacing: -0.03em; }
.site-card .meta { font-size: 12.5px; color: var(--mute); }
.site-card .price { font-size: 13px; font-weight: 700; margin-top: 4px; }

.badge { display: inline-flex; align-items: center; height: 22px; padding: 0 7px; font-size: 11px; font-weight: 700; border-radius: 2px; letter-spacing: -0.01em; }
.badge.on { background: var(--accent); color: #fff; }
.badge.rest { background: var(--ink); color: #fff; }
.badge.soon { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.badge.type { background: var(--brass-soft); color: #7A5A22; }
.badge.half { background: var(--brass); color: #fff; }
.badge.vip { background: #111; color: var(--brass-soft); letter-spacing: .08em; }
.ph .badge.vip { left: auto; right: 10px; }
.ph:has(.fav-heart) .badge.vip { right: 52px; top: 14px; }
.fav-heart { position: absolute; top: 8px; right: 8px; z-index: 2; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgba(18,32,28,.28); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); cursor: pointer; transition: transform .18s ease, background .18s; }
.fav-heart svg { filter: drop-shadow(0 1px 2px rgba(0,0,0,.25)); transition: transform .2s cubic-bezier(.3,1.6,.5,1); }
.fav-heart.on { background: rgba(255,255,255,.92); }
.fav-heart.on svg { filter: none; transform: scale(1.08); }
.fav-heart:active { transform: scale(.88); }
.fav-heart:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.badge.done { background: #EEF0EC; color: var(--mute); }
.badge.data { background: #E7F0F4; color: #23405A; }
.ph .badge { position: absolute; left: 10px; top: 10px; }
.reward-chip { position: absolute; right: 10px; bottom: 10px; background: rgba(18,32,28,.82); color: #fff; font-size: 11px; font-weight: 700; padding: 4px 8px; border-radius: 2px; backdrop-filter: blur(4px); }

/* Counselor */
.cs-row { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line-2); }
.cs-row:last-child { border-bottom: 0; }
.avatar { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--forest); color: var(--brass-soft); font-family: var(--serif); font-weight: 700; font-size: 18px; position: relative; flex: none; }
.avatar.sm { width: 36px; height: 36px; font-size: 14px; }
.avatar .dot { position: absolute; right: 1px; bottom: 1px; width: 11px; height: 11px; border-radius: 50%; background: var(--ok); border: 2px solid var(--card); }
.cs-info { flex: 1; min-width: 0; }
.cs-info b { font-size: 15px; font-weight: 700; }
.cs-info small { display: block; font-size: 12px; color: var(--mute); margin-top: 2px; }
.pill-btn { height: 36px; padding: 0 14px; border-radius: 18px; border: 1px solid var(--line); font-size: 13px; font-weight: 700; background: var(--card); display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.pill-btn.dark { background: var(--ink); color: #fff; border-color: var(--ink); }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 4px; padding: 4px 16px; }

/* News */
.news-row { display: flex; gap: 14px; padding: 17px 0; border-bottom: 1px solid var(--line-2); text-align: left; width: 100%; align-items: flex-start; }
.news-row:last-child { border-bottom: 0; }
.news-row .nt { flex: 1; min-width: 0; }
.news-row .cat { font-size: 11px; font-weight: 700; color: var(--brass); }
.news-row h4 { font-size: 15px; font-weight: 600; line-height: 1.5; margin: 5px 0 7px; letter-spacing: -0.03em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-row.noimg h4 { font-size: 16px; -webkit-line-clamp: 3; }
.news-row .d { font-size: 12px; color: var(--mute-2); }
.news-row img, .news-row .imgph { width: 84px; height: 84px; object-fit: cover; border-radius: 3px; flex: none; }
.news-row .imgph i { width: 16px; height: 16px; }

/* Filters */
.chips { display: flex; gap: 6px; overflow-x: auto; padding: 0 20px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; height: 34px; padding: 0 14px; border-radius: 17px; border: 1px solid var(--line); background: var(--card); font-size: 13px; font-weight: 600; color: var(--ink-2); }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Site list (vertical) */
.site-row { display: block; width: 100%; text-align: left; margin-bottom: 22px; }
.site-row .ph { aspect-ratio: 3 / 2; height: auto; border-radius: 4px; overflow: hidden; position: relative; }
.site-row .ph img { width: 100%; height: 100%; object-fit: cover; }
.site-row .ph .imgph { width: 100%; height: 100%; }
.site-row .ph .imgph i { width: 26px; height: 26px; }
.site-row .row-b { display: flex; justify-content: space-between; align-items: flex-start; margin-top: 12px; gap: 8px; }
.site-row h4 { font-size: 18px; margin: 0 0 4px; font-weight: 800; letter-spacing: -0.03em; }
.site-row .meta { font-size: 13px; color: var(--mute); }
.site-row .price { font-size: 14px; font-weight: 700; margin-top: 6px; }

/* Detail */
.hero { position: relative; height: 340px; background: var(--ink); }
.hero img { width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.25), transparent 30%, transparent 55%, rgba(18,32,28,.7)); pointer-events: none; }
.hero-pg { position: absolute; right: 16px; bottom: 16px; z-index: 2; color: #fff; font-family: var(--mono); font-size: 11px; background: rgba(0,0,0,.4); padding: 4px 8px; border-radius: 2px; }
.hero-vr { position: absolute; left: 16px; bottom: 16px; z-index: 2; height: 38px; padding: 0 14px 0 10px; border-radius: 19px; background: #fff; color: var(--ink); font-size: 13px; font-weight: 800; display: flex; align-items: center; gap: 6px; }
.dt-head { padding: 20px 20px 18px; background: var(--card); border-bottom: 1px solid var(--line); }
.dt-head h2 { font-family: var(--serif); font-size: 26px; font-weight: 700; margin: 10px 0 6px; letter-spacing: -0.02em; }
.dt-head .addr { font-size: 13px; color: var(--mute); }
.dt-head .price { font-size: 17px; font-weight: 800; margin-top: 12px; letter-spacing: -0.02em; }

.dt-actions { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--card); border-bottom: 1px solid var(--line); }
.dt-actions button { padding: 14px 0 12px; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; }
.dt-actions button.on { color: var(--accent); }

.tts-bar { margin: 16px 20px 0; background: var(--ink); color: var(--paper); border-radius: 4px; padding: 14px 16px; display: flex; align-items: center; gap: 14px; }
.tts-play { width: 44px; height: 44px; border-radius: 50%; background: var(--brass); display: grid; place-items: center; flex: none; }
.tts-bar b { font-size: 14px; display: block; }
.tts-bar small { font-size: 12px; opacity: .65; }
.wave { display: flex; gap: 2px; align-items: center; height: 20px; margin-left: auto; }
.wave i { width: 2px; background: var(--brass); border-radius: 1px; height: 6px; }
.wave.play i { animation: wv 0.9s ease-in-out infinite; }
.tts-line { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.45; }
@keyframes wv { 0%,100% { height: 4px; } 50% { height: 18px; } }

.spec { display: grid; grid-template-columns: 84px 1fr; row-gap: 12px; font-size: 14px; }
.spec dt { color: var(--mute); }
.spec dd { margin: 0; font-weight: 600; }
.spec dd, .spec dt { word-break: keep-all; }
.points { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.points div { background: var(--card); border: 1px solid var(--line); padding: 14px 12px; font-size: 13.5px; font-weight: 600; letter-spacing: -0.02em; border-radius: 3px; display: flex; gap: 8px; align-items: flex-start; line-height: 1.45; }
.points div span { font-family: var(--mono); color: var(--brass); font-size: 11px; padding-top: 2px; flex: none; }

.reward-box { background: var(--brass-soft); border-radius: 4px; padding: 18px; display: flex; gap: 14px; align-items: center; }
.reward-box b { font-size: 15px; }
.reward-box p { font-size: 12.5px; margin: 4px 0 0; color: #6E5524; line-height: 1.5; }

.bottom-cta { flex: none; display: flex; gap: 8px; padding: 10px 16px; background: var(--card); border-top: 1px solid var(--line); padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
.btn { height: 52px; border-radius: 4px; font-size: 15px; font-weight: 800; display: flex; align-items: center; justify-content: center; gap: 6px; letter-spacing: -0.02em; }
.btn.primary { background: var(--ink); color: #fff; flex: 1; }
.btn.accent { background: var(--accent); color: #fff; flex: 1; }
.btn.ghost { border: 1px solid var(--line); background: var(--card); padding: 0 16px; }
.btn:disabled { opacity: .35; }

/* VR */
.vr { position: absolute; inset: 0; background: #000; z-index: 50; touch-action: none; user-select: none; overflow: hidden; }
.vr-pano { position: absolute; inset: 0; background-repeat: repeat-x; background-size: auto 100%; cursor: grab; }
.vr-pano:active { cursor: grabbing; }
.vr-ui { position: absolute; left: 0; right: 0; top: 0; padding: 12px 16px; display: flex; align-items: center; gap: 10px; color: #fff; background: linear-gradient(rgba(0,0,0,.6), transparent); }
.vr-hint { position: absolute; left: 50%; bottom: 120px; transform: translateX(-50%); color: #fff; font-size: 13px; background: rgba(0,0,0,.5); padding: 8px 14px; border-radius: 18px; display: flex; gap: 8px; align-items: center; transition: opacity .4s; white-space: nowrap; }
.vr-spots { position: absolute; left: 0; right: 0; bottom: 0; padding: 16px; display: flex; gap: 8px; background: linear-gradient(transparent, rgba(0,0,0,.75)); overflow-x: auto; }
.vr-spots button { flex: none; height: 36px; padding: 0 14px; border-radius: 18px; background: rgba(255,255,255,.15); color: #fff; font-size: 13px; font-weight: 600; border: 1px solid rgba(255,255,255,.25); backdrop-filter: blur(6px); }
.vr-spots button.on { background: #fff; color: var(--ink); }
.rv-box { position: absolute; inset: 0; touch-action: auto; }
.rv .vr-ui, .rv .vr-spots, .rv .rv-pan { z-index: 5; }
.rv .vr-ui { pointer-events: none; } .rv .vr-ui > * { pointer-events: auto; }
.rv-state { position: absolute; inset: 0; z-index: 3; background-size: cover; background-position: center; display: grid; place-items: center; padding: 90px 28px 110px; }
.rv-state::before { content: ''; position: absolute; inset: 0; background: rgba(12,20,18,.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.rv-state-in { position: relative; color: #fff; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; max-width: 300px; }
.rv-state-in b { font-size: 15.5px; font-weight: 800; line-height: 1.45; text-wrap: pretty; }
.rv-state-in small { font-size: 12.5px; line-height: 1.6; opacity: .72; text-wrap: pretty; }
.rv-badge { width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; font-weight: 900; font-size: 19px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); }
.rv-state-acts { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 8px; }
.rv-ghost { height: 38px; padding: 0 14px; border-radius: 19px; border: 1px solid rgba(255,255,255,.35); color: #fff; background: rgba(255,255,255,.08); font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; text-decoration: none; }
.rv-spin { display: block; width: 28px; height: 28px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,.25); border-top-color: #fff; animation: vspin .8s linear infinite; }
.rv-pan { position: absolute; right: 14px; bottom: 84px; display: flex; gap: 6px; }
.rv-pan button { width: 40px; height: 40px; border-radius: 50%; background: rgba(0,0,0,.45); border: 1px solid rgba(255,255,255,.25); display: grid; place-items: center; backdrop-filter: blur(6px); }
.compass { position: absolute; right: 16px; top: 70px; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,.4); color: #fff; display: grid; place-items: center; font-family: var(--mono); font-size: 10px; }
.compass i { position: absolute; top: 4px; left: 50%; width: 2px; height: 10px; background: var(--accent); margin-left: -1px; transform-origin: 1px 20px; }

/* Chat */
.chat-body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: #EEEAE1; }
.msg { max-width: 78%; font-size: 14px; line-height: 1.55; padding: 10px 13px; border-radius: 14px; white-space: pre-wrap; letter-spacing: -0.01em; }
.msg.them { background: #fff; align-self: flex-start; border-top-left-radius: 3px; }
.msg.me { background: var(--ink); color: #fff; align-self: flex-end; border-top-right-radius: 3px; }
.msg-meta { font-size: 10.5px; color: var(--mute); margin-top: -4px; }
.msg-meta.me { align-self: flex-end; }
.typing { display: flex; gap: 4px; padding: 14px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--mute-2); animation: ty 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes ty { 0%,100% { opacity: .3; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-3px); } }
.chat-input { flex: none; display: flex; gap: 8px; padding: 10px 12px; background: var(--card); border-top: 1px solid var(--line); align-items: center; }
.chat-input input { flex: 1; height: 44px; border-radius: 22px; border: 1px solid var(--line); padding: 0 16px; font-size: 14px; background: var(--paper); outline: none; }
.send { width: 44px; height: 44px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; flex: none; }
.send:disabled { background: var(--mute-2); }
.quick-q { display: flex; gap: 6px; overflow-x: auto; padding: 8px 12px 0; background: var(--card); scrollbar-width: none; }
.quick-q::-webkit-scrollbar { display: none; }
.quick-q button { flex: none; font-size: 12.5px; padding: 7px 11px; border-radius: 16px; background: var(--paper); border: 1px solid var(--line); font-weight: 600; }

/* Forms */
.field { margin-bottom: 22px; }
.field > label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 10px; color: var(--ink-2); }
.input { width: 100%; height: 50px; border: 1px solid var(--line); border-radius: 4px; padding: 0 14px; font-size: 15px; background: var(--card); outline: none; }
.input:focus { border-color: var(--ink); }
.seg { display: grid; gap: 6px; }
.seg button { height: 46px; border: 1px solid var(--line); background: var(--card); border-radius: 4px; font-size: 14px; font-weight: 600; }
.seg button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.seg button:disabled { color: var(--mute-2); background: var(--line-2); text-decoration: line-through; }
.days { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -20px; padding: 0 20px; }
.days::-webkit-scrollbar { display: none; }
.days button { flex: none; width: 54px; height: 66px; border: 1px solid var(--line); background: var(--card); border-radius: 4px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.days button small { font-size: 11px; color: var(--mute); }
.days button b { font-size: 18px; font-weight: 800; font-family: var(--mono); }
.days button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.days button.on small { color: rgba(255,255,255,.6); }
.days button.sun small { color: var(--accent); }
.site-pick { display: flex; gap: 10px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 4px; background: var(--card); width: 100%; text-align: left; margin-bottom: 6px; }
.site-pick.on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.site-pick img { width: 52px; height: 52px; object-fit: cover; border-radius: 3px; }
.site-pick b { font-size: 14px; display: block; }
.site-pick small { font-size: 12px; color: var(--mute); }

.check { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line); flex: none; margin-left: auto; display: grid; place-items: center; }
.on > .check { background: var(--ink); border-color: var(--ink); }

/* Done ticket */
.ticket { margin: 20px; background: var(--card); border-radius: 6px; overflow: hidden; border: 1px solid var(--line); }
.ticket-top { background: var(--ink); color: #fff; padding: 22px 20px; }
.ticket-top small { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; color: var(--brass); }
.ticket-top h3 { font-family: var(--serif); font-size: 22px; margin: 6px 0 0; }
.ticket-cut { height: 0; border-top: 2px dashed var(--line); margin: 0 14px; position: relative; }
.ticket-cut::before, .ticket-cut::after { content: ''; position: absolute; top: -11px; width: 20px; height: 20px; border-radius: 50%; background: var(--paper); }
.ticket-cut::before { left: -24px; } .ticket-cut::after { right: -24px; }
.ticket-body { padding: 20px; }
.qr { width: 148px; height: 148px; margin: 4px auto 10px; display: grid; grid-template-columns: repeat(21, 1fr); gap: 0; padding: 8px; border: 1px solid var(--line); }
.qr i { background: var(--ink); }
.qr i.o { background: transparent; }

/* Calculator */
.calc-tabs { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0 20px; border-bottom: 1px solid var(--line); }
.calc-tabs button { height: 46px; font-size: 14px; font-weight: 700; color: var(--mute-2); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.calc-tabs button.on { color: var(--ink); border-color: var(--ink); }
.range { width: 100%; accent-color: var(--ink); height: 28px; }
.calc-out { background: var(--ink); color: var(--paper); padding: 22px 20px; border-radius: 4px; }
.calc-out small { font-size: 12px; opacity: .6; }
.calc-out .big { font-family: var(--mono); font-size: 30px; font-weight: 700; margin: 6px 0 14px; letter-spacing: -0.02em; }
.calc-out .big em { font-family: var(--sans); font-style: normal; font-size: 16px; margin-left: 4px; opacity: .8; }
.calc-out dl { display: grid; grid-template-columns: 1fr auto; row-gap: 8px; margin: 0; font-size: 13px; border-top: 1px solid rgba(255,255,255,.12); padding-top: 14px; }
.calc-out dt { opacity: .6; } .calc-out dd { margin: 0; font-family: var(--mono); font-weight: 500; }
.lbl-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; }
.lbl-row b { font-family: var(--mono); font-size: 15px; }

/* My */
.my-head { background: var(--ink); color: var(--paper); padding: 24px 20px 26px; }
.my-head h2 { font-family: var(--serif); font-size: 24px; margin: 0 0 4px; }
.my-head small { opacity: .6; font-size: 13px; }
.point-card { margin-top: 18px; background: var(--ink-2); border-radius: 4px; padding: 16px; display: flex; align-items: center; justify-content: space-between; }
.point-card b { font-family: var(--mono); font-size: 24px; color: var(--brass); }
.list-btn { width: 100%; display: flex; align-items: center; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line-2); font-size: 15px; font-weight: 600; text-align: left; }
.list-btn .cnt { margin-left: auto; font-size: 13px; color: var(--mute); font-weight: 600; display: flex; align-items: center; gap: 4px; }

/* Admin */
.admin { background: #F2F3F1; }
.adm-tabs { display: flex; background: var(--ink); padding: 0 12px; gap: 4px; flex: none; }
.adm-tabs button { color: rgba(255,255,255,.5); font-size: 14px; font-weight: 700; padding: 12px 10px 14px; border-bottom: 2px solid transparent; }
.adm-tabs button.on { color: #fff; border-color: var(--brass); }
.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.kpi { background: #fff; border-radius: 4px; padding: 14px; border: 1px solid #E3E5E1; }
.kpi small { font-size: 12px; color: var(--mute); font-weight: 600; }
.kpi b { display: block; font-family: var(--mono); font-size: 22px; margin: 6px 0 2px; letter-spacing: -0.02em; }
.kpi .d { font-size: 11.5px; font-weight: 700; color: var(--ok); }
.kpi .d.neg { color: var(--accent); }
.panel { background: #fff; border: 1px solid #E3E5E1; border-radius: 4px; padding: 16px; margin-top: 10px; }
.panel h5 { margin: 0 0 14px; font-size: 14px; font-weight: 800; display: flex; justify-content: space-between; align-items: center; }
.panel h5 small { font-weight: 600; color: var(--mute); font-size: 11.5px; }
.bars { display: flex; align-items: flex-end; gap: 3px; height: 110px; }
.bars i { flex: 1; background: var(--forest); border-radius: 1px 1px 0 0; min-height: 2px; position: relative; }
.bars i.pk { background: var(--brass); }
.bars-x { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 9.5px; color: var(--mute-2); margin-top: 6px; }
.hbar { display: grid; grid-template-columns: 110px 1fr 38px; align-items: center; gap: 10px; font-size: 12.5px; margin-bottom: 10px; }
.hbar .tr { height: 8px; background: #EEF0EC; border-radius: 4px; overflow: hidden; }
.hbar .tr i { display: block; height: 100%; background: var(--forest); border-radius: 4px; }
.hbar b { font-family: var(--mono); font-size: 12px; text-align: right; }
.sched { display: grid; grid-template-columns: 48px 1fr auto; gap: 10px; padding: 12px 0; border-bottom: 1px solid #EEF0EC; align-items: center; }
.sched:last-child { border: 0; }
.sched .t { font-family: var(--mono); font-size: 12.5px; font-weight: 700; }
.sched b { font-size: 13.5px; display: block; }
.sched small { font-size: 12px; color: var(--mute); }
.st { font-size: 11px; font-weight: 700; padding: 4px 8px; border-radius: 2px; }
.st.done { background: #E8F2EC; color: var(--ok); }
.st.ing { background: var(--brass-soft); color: #7A5A22; }
.st.plan { background: #EEF0EC; color: var(--mute); }
table.tbl { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.tbl th { text-align: left; color: var(--mute); font-weight: 600; padding: 0 0 8px; border-bottom: 1px solid #EEF0EC; }
.tbl td { padding: 10px 0; border-bottom: 1px solid #EEF0EC; }
.tbl td.n { font-family: var(--mono); text-align: right; }
.tbl th.n { text-align: right; }

.empty { text-align: center; padding: 60px 20px; color: var(--mute); font-size: 14px; }

.toast { position: absolute; left: 50%; bottom: 90px; transform: translateX(-50%); background: var(--ink); color: #fff; font-size: 13px; padding: 11px 16px; border-radius: 22px; z-index: 100; white-space: nowrap; animation: tin .25s ease-out; }
@keyframes tin { from { opacity: 0; transform: translate(-50%, 8px); } }

.sheet-bg { position: absolute; inset: 0; background: rgba(18,32,28,.5); z-index: 60; display: flex; align-items: flex-end; animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.sheet { width: 100%; background: var(--paper); border-radius: 14px 14px 0 0; padding: 10px 20px 24px; max-height: 85%; overflow-y: auto; animation: up .28s cubic-bezier(.2,.8,.2,1); }
@keyframes up { from { transform: translateY(100%); } }
.rv-opt { width: 100%; display: flex; align-items: center; gap: 12px; padding: 14px; margin-bottom: 8px; border: 1px solid var(--line); border-radius: 8px; background: #fff; text-align: left; color: var(--ink); }
.rv-opt:active { background: var(--line); }
.rv-logo { width: 38px; height: 38px; border-radius: 9px; display: grid; place-items: center; font-weight: 900; font-size: 17px; flex: none; }
.rv-opt.kakao .rv-logo { background: #FEE500; color: #191600; }
.rv-opt.naver .rv-logo { background: #03C75A; color: #fff; }
.rv-opt.photo .rv-logo { background: var(--ink); }
.rv-t { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.rv-t b { font-size: 15px; font-weight: 800; }
.rv-t small { font-size: 12px; color: var(--mute); }
.rv-ext { font-size: 16px; color: var(--mute); }
.rv-note { margin-top: 6px; font-size: 11.5px; line-height: 1.55; color: var(--mute); }
.sheet .grab { width: 40px; height: 4px; background: var(--line); border-radius: 2px; margin: 0 auto 16px; }

.search-box { margin: 4px 16px 0; height: 48px; border-radius: 24px; background: var(--card); border: 1px solid var(--line); display: flex; align-items: center; padding: 0 16px; gap: 10px; }
.search-box input { border: 0; outline: 0; background: none; flex: 1; font-size: 14.5px; }

/* media grid */
.mediagrid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mediacell { position: relative; height: 116px; border-radius: 3px; overflow: hidden; border: 1px solid var(--line); background: var(--line-2); }
.mediacell.wide { grid-column: 1 / -1; height: 200px; }
.mediacell img { width: 100%; height: 100%; object-fit: cover; }
.mediacell .mtag { position: absolute; left: 0; bottom: 0; right: 0; padding: 18px 10px 8px; font-size: 12px; font-weight: 700; color: #fff; text-align: left; background: linear-gradient(transparent, rgba(18,32,28,.82)); }

.lightbox { position: absolute; inset: 0; background: #101A17; z-index: 80; display: flex; flex-direction: column; animation: fade .2s; }
.lightbox .lb-top { flex: none; display: flex; align-items: center; gap: 8px; padding: 10px 8px 10px 18px; color: #fff; background: rgba(255,255,255,.06); }
.lightbox .lb-top b { flex: 1; font-size: 15px; text-align: left; }
.lightbox img { flex: 1; min-height: 0; width: 100%; object-fit: contain; padding: 14px; }
.lightbox .lb-bot { flex: none; text-align: center; color: rgba(255,255,255,.7); font-size: 13px; padding: 10px 20px 24px; }

/* 뉴스 카테고리 (앱 공용) */
.ncat { display: inline-flex; align-items: center; height: 21px; padding: 0 7px; font-size: 11px; font-weight: 800; border-radius: 2px; letter-spacing: -0.01em; white-space: nowrap; }
.ncat.cat1 { background: #E7F0F4; color: #23405A; }
.ncat.cat2 { background: var(--brass-soft); color: #7A5A22; }
.ncat.cat3 { background: #E7F2EB; color: #1F5F42; }
.ncat.cat4 { background: #EFEAF6; color: #4B3A73; }
.nlead { background: var(--line-2); border-radius: 4px; padding: 20px; }
.nlead b { display: block; font-size: 17px; font-weight: 700; line-height: 1.45; margin-top: 10px; letter-spacing: -0.02em; text-wrap: pretty; }
.leadcard { display: block; text-align: left; padding: 0 20px; width: 100%; transition: opacity .15s; }
.leadcard:active { opacity: .7; }
.leadcard .leadsum { font-size: 13.5px; color: var(--mute); line-height: 1.7; margin-bottom: 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-wrap: pretty; }
.leadcard .leadtitle { font-family: var(--serif); font-size: 20px; font-weight: 700; line-height: 1.42; margin: 6px 0 10px; letter-spacing: -0.02em; text-wrap: pretty; }
.leadcard .leadby { font-size: 12px; color: var(--mute-2); margin-top: 12px; }
.summ { background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--brass); border-radius: 3px; padding: 16px; }
.summ b { font-size: 12px; color: var(--brass); letter-spacing: .04em; }
.summ p { margin: 8px 0 0; font-size: 15px; line-height: 1.8; color: #2C3632; text-wrap: pretty; }

/* 품질 다듬기 — 그림자·여백·상태 */
.banner { box-shadow: 0 14px 36px rgba(18,32,28,.16); }
.quick button:active { background: var(--line-2); }
.card, .pcell, .chartwrap, .deals, .points div, .mediacell { transition: border-color .15s, box-shadow .15s; }
.pcell:hover, .chartwrap:hover { border-color: var(--line-2); }
.bottom-cta { box-shadow: 0 -6px 20px rgba(18,32,28,.05); }
.topbar { transition: background .2s; }
.sec-h h2 { line-height: 1.35; }
.article p:first-of-type::first-letter { font-size: 1.05em; }

/* 스크롤바 (데스크톱에서 앱을 볼 때) */
@media (min-width: 480px) {
  .scroll::-webkit-scrollbar { width: 6px; }
  .scroll::-webkit-scrollbar-thumb { background: rgba(18,32,28,.14); border-radius: 3px; }
  .scroll::-webkit-scrollbar-track { background: transparent; }
}

.foot { padding: 32px 20px 36px; font-size: 11.5px; color: var(--mute-2); line-height: 1.7; }
.foot b { font-family: var(--serif); color: var(--mute); font-size: 14px; }

.screen-enter { animation: sc .28s cubic-bezier(.2,.8,.2,1); }
@keyframes sc { from { opacity: 0; transform: translateX(16px); } }

.article h2 { font-family: var(--serif); font-size: 23px; line-height: 1.4; margin: 10px 0 10px; letter-spacing: -0.02em; text-wrap: pretty; }
.article p { font-size: 15.5px; line-height: 1.85; margin: 0 0 18px; color: #2C3632; letter-spacing: -0.01em; text-wrap: pretty; }

/* ── 멤버십 · 휴대폰 소액결제 ── */
.mono { font-family: var(--mono); }
.mbadge { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 11px; font-size: 11px; font-weight: 800; letter-spacing: .02em; }
.mbadge.general { background: var(--line-2); color: var(--mute); }
.mbadge.partner { background: var(--forest); color: #fff; }
.mbadge.gold { background: linear-gradient(135deg,#E9CF8A,#C9A04E); color: #3A2A08; }
.mbadge.ruby { background: linear-gradient(135deg,#B3264A,#7E1430); color: #fff; }
.mbadge.vip { background: #111; color: var(--brass); box-shadow: inset 0 0 0 1px var(--brass); }
.mbadge.general.dk { background: rgba(255,255,255,.12); color: rgba(255,255,255,.8); }
.mb-now { background: var(--ink); color: var(--paper); border-radius: 6px; padding: 18px; }
.mb-now small { font-size: 12px; opacity: .6; }
.mb-now b { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
.mb-now p { margin: 8px 0 0; font-size: 13px; line-height: 1.6; opacity: .72; }
.tier-card { width: 100%; text-align: left; background: var(--card); border: 1.5px solid var(--line); border-radius: 6px; padding: 16px; transition: border-color .15s, box-shadow .15s; }
.tier-card.on { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(18,32,28,.06); }
.tier-card.vip.on { border-color: var(--brass); box-shadow: 0 0 0 3px rgba(184,137,63,.14); }
.tier-card.gold.on { border-color: #C9A04E; box-shadow: 0 0 0 3px rgba(201,160,78,.15); }
.tier-card.ruby.on { border-color: #9B1D3D; box-shadow: 0 0 0 3px rgba(155,29,61,.12); }
.tc-mgm { float: right; font-size: 11.5px; font-weight: 800; padding: 3px 8px; border-radius: 3px; background: var(--line-2); color: var(--mute); }
.tc-mgm.on { background: var(--ink); color: var(--brass-soft); }
.tc-h { display: flex; align-items: center; gap: 8px; }
.tc-mine { font-size: 11px; font-weight: 700; color: var(--ok, #2F8A5F); }
.tc-price { margin-left: auto; font-size: 13px; color: var(--mute); }
.tc-price b { font-family: var(--mono); font-size: 20px; color: var(--ink); }
.tc-q { margin-top: 12px; font-size: 14px; color: var(--ink-2); }
.tc-q b { font-weight: 800; }
.tier-card ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 5px; }
.tier-card li { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--mute); }
.tier-card li svg { color: var(--brass); flex: none; }
.mb-compare { margin-top: 6px; border: 1px solid var(--line); border-radius: 6px; background: var(--card); overflow: hidden; }
.mb-compare .row { display: grid; grid-template-columns: 1.5fr repeat(5, 1fr); gap: 2px; padding: 11px 10px; border-top: 1px solid var(--line-2); font-size: 12.5px; text-align: center; color: var(--ink-2); }
.mb-compare .row span:first-child { text-align: left; color: var(--mute); }
.mb-compare .row.h { border-top: 0; background: var(--paper); font-weight: 800; font-size: 12px; }
.mb-compare p { margin: 0; padding: 10px 14px 12px; font-size: 11.5px; color: var(--mute-2); border-top: 1px solid var(--line-2); }
.kv-row { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-2); font-size: 13.5px; }
.kv-row:last-child { border-bottom: 0; }
.kv-row span { color: var(--mute); }
.sheet-wrap { position: absolute; inset: 0; z-index: 60; background: rgba(10,18,16,.5); display: flex; align-items: flex-end; animation: fadeIn .2s; }
.sheet { width: 100%; max-height: 92%; overflow-y: auto; background: var(--paper); border-radius: 14px 14px 0 0; padding: 6px 20px calc(20px + env(safe-area-inset-bottom)); animation: sheetUp .28s cubic-bezier(.2,.8,.2,1); }
.sheet-h { display: flex; align-items: center; justify-content: space-between; height: 54px; }
.sheet-h b { font-size: 17px; font-weight: 800; }
.pay-sum { display: flex; justify-content: space-between; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 14px 16px; margin-bottom: 20px; font-size: 13.5px; color: var(--mute); }
.pay-sum b { font-family: var(--mono); font-size: 18px; color: var(--ink); }
.agree { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; font-size: 13.5px; font-weight: 600; padding: 4px 0 10px; }
.agree .box { width: 22px; height: 22px; border-radius: 4px; border: 1.5px solid var(--line); display: grid; place-items: center; flex: none; background: var(--card); }
.agree.on .box { background: var(--ink); border-color: var(--ink); }
.pay-note { font-size: 12px; color: var(--mute); line-height: 1.6; margin: 0 0 16px; }
.pay-done { text-align: center; padding: 10px 0 20px; }
.pay-done .ok { width: 56px; height: 56px; border-radius: 50%; background: var(--ok, #2F8A5F); display: inline-grid; place-items: center; }
.pay-done h3 { margin: 14px 0 6px; font-size: 19px; font-weight: 800; letter-spacing: -0.02em; }
.pay-done p { margin: 0; font-size: 14px; color: var(--mute); }
.btn.ghost { flex: none; }
a.btn.ghost { width: 100%; }
@keyframes sheetUp { from { transform: translateY(100%); } to { transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* 시스템관리 연동 — 공지 띠 · 점검 화면 */
.notice-strip { flex: none; display: flex; align-items: center; gap: 8px; background: var(--ink); color: #fff; font-size: 12.5px; padding: 8px 16px; }
.notice-strip b { flex: none; font-size: 11px; font-weight: 800; color: var(--brass); letter-spacing: .04em; }
.notice-strip span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app.maint { align-items: center; justify-content: center; text-align: center; padding: 32px; background: var(--paper); }
.app.maint img { height: 56px; width: auto; margin-bottom: 28px; }
.app.maint h2 { margin: 0 0 10px; font-size: 22px; font-weight: 800; letter-spacing: -0.03em; }
.app.maint p { margin: 0 0 18px; font-size: 14px; line-height: 1.7; color: var(--mute); text-wrap: pretty; }
.app.maint .until { font-size: 13px; color: var(--mute); background: var(--card); border: 1px solid var(--line); border-radius: 4px; padding: 10px 14px; }
.app.maint .until b { font-family: var(--mono); color: var(--ink); margin-left: 6px; }
.app.maint small { margin-top: 22px; font-size: 12px; color: var(--mute-2); }

/* VIP 파트너 통계 · 상담관리 */
.list-btn.locked-row { color: var(--mute); }
.list-btn.locked-row .cnt { color: var(--brass); font-weight: 700; font-size: 12px; }
.desk-lock { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 32px 28px 60px; }
.desk-lock h3 { margin: 16px 0 8px; font-size: 19px; font-weight: 800; letter-spacing: -0.03em; }
.desk-lock p { margin: 0 0 24px; font-size: 14px; color: var(--mute); line-height: 1.65; text-wrap: pretty; }
.desk-notice { display: flex; gap: 8px; background: var(--brass-soft); color: #6E5524; font-size: 12.5px; line-height: 1.55; padding: 10px 12px; border-radius: 4px; margin-bottom: 12px; }
.desk-notice b { flex: none; font-weight: 800; color: #5A4419; }

/* 현장 상세 — 홍보영상 */
.promo { position: relative; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: #111; }
.promo video, .promo iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.promo-cover { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; }
.promo-cover img { width: 100%; height: 100%; object-fit: cover; }
.promo-cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 45%, rgba(0,0,0,.65)); }
.promo-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -60%); width: 58px; height: 58px; border-radius: 50%; background: rgba(255,255,255,.94); display: grid; place-items: center; z-index: 2; box-shadow: 0 6px 20px rgba(0,0,0,.3); padding-left: 3px; }
.promo-cap { position: absolute; left: 14px; right: 14px; bottom: 12px; z-index: 2; display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; color: #fff; text-align: left; }
.promo-cap b { font-size: 15px; font-weight: 800; letter-spacing: -0.02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.promo-cap small { flex: none; font-family: var(--mono); font-size: 11.5px; background: rgba(0,0,0,.55); padding: 2px 6px; border-radius: 2px; }
.promo .noposter { display: block; width: 100%; height: 100%; background: repeating-linear-gradient(135deg, #2a302d 0 8px, #232825 8px 16px); }
.promo.empty-promo { aspect-ratio: auto; height: 120px; background: var(--card); border: 1px dashed var(--line); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; font-size: 13px; color: var(--mute); }
.promo-list { display: flex; gap: 10px; overflow-x: auto; margin-top: 10px; scrollbar-width: none; }
.promo-list::-webkit-scrollbar { display: none; }
.promo-item { flex: none; width: 140px; text-align: left; }
.promo-item .pt { position: relative; display: block; width: 140px; height: 79px; border-radius: 4px; overflow: hidden; background: #111; border: 2px solid transparent; }
.promo-item.on .pt { border-color: var(--brass); }
.promo-item .pt img { width: 100%; height: 100%; object-fit: cover; }
.promo-item .pt em { position: absolute; right: 4px; bottom: 4px; font-style: normal; font-family: var(--mono); font-size: 10px; color: #fff; background: rgba(0,0,0,.65); padding: 1px 4px; border-radius: 2px; }
.promo-item b { display: block; font-size: 12.5px; font-weight: 700; margin-top: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.spin.light { display: block; width: 22px; height: 22px; border-radius: 50%; border: 2.5px solid rgba(0,0,0,.15); border-top-color: var(--ink); animation: vspin .8s linear infinite; }
@keyframes vspin { to { transform: rotate(360deg); } }

.yt-out { position: absolute; right: 8px; top: 8px; z-index: 3; font-size: 11px; font-weight: 700; color: #fff; background: rgba(0,0,0,.6); padding: 4px 8px; border-radius: 3px; text-decoration: none; opacity: 0; transition: opacity .2s; }
.promo:hover .yt-out, .vframe:hover .yt-out, .promo:focus-within .yt-out { opacity: 1; }
@media (hover: none) { .yt-out { opacity: .85; } }

/* ───────── MGM등록 (고객정보 전달) ───────── */
.dt-title { display: flex; align-items: flex-start; gap: 12px; }
.dt-title h2 { flex: 1; min-width: 0; }
.mgm-btn { flex: none; margin-top: 12px; height: 34px; padding: 0 12px 0 11px; border-radius: 3px; background: var(--ink); color: #fff; display: inline-flex; align-items: center; box-shadow: 0 0 0 1px var(--ink), inset 0 0 0 1px rgba(184,137,63,.55); transition: transform .15s; }
.mgm-btn:active { transform: scale(.96); }
.mgm-mark { display: inline-flex; align-items: baseline; gap: .28em; line-height: 1; white-space: nowrap; }
.mgm-mark b { font-family: var(--logo); font-weight: 800; letter-spacing: .01em; font-size: 1em; }
.mgm-mark b::after { content: '.'; color: var(--brass); }
.mgm-mark span { font-family: var(--serif); font-weight: 700; font-size: .78em; letter-spacing: .02em; }
.mgm-btn .mgm-mark span { color: var(--brass-soft); }

.mgm-sheet { padding-bottom: calc(22px + env(safe-area-inset-bottom)); }
.mgm-sh { display: flex; align-items: center; height: 40px; margin-bottom: 10px; }
.mgm-site { display: flex; gap: 12px; align-items: center; padding: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 6px; margin-bottom: 16px; }
.mgm-site img, .mgm-site .imgph { width: 56px; height: 42px; object-fit: cover; border-radius: 3px; flex: none; }
.mgm-site b { display: block; font-size: 14.5px; font-weight: 800; letter-spacing: -.02em; }
.mgm-site small { font-size: 12px; color: var(--mute); }

.mgm-route { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; padding: 12px 14px; border-radius: 6px; background: var(--ink); color: #fff; }
.mgm-node { flex: 1; display: flex; align-items: center; gap: 9px; min-width: 0; }
.mgm-node .av { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.12); font-family: var(--serif); font-weight: 700; font-size: 14px; flex: none; }
.mgm-node .av.vip { background: var(--brass); }
.mgm-node small { display: block; font-size: 10.5px; opacity: .6; }
.mgm-node b { font-size: 13.5px; font-weight: 800; white-space: nowrap; }
.mgm-node b em { font-style: normal; font-family: var(--mono); font-size: 9.5px; color: var(--brass-soft); border: 1px solid rgba(243,232,211,.4); padding: 1px 4px; border-radius: 2px; margin-left: 3px; vertical-align: 2px; }
.mgm-arrow { flex: none; width: 26px; height: 1px; background: rgba(255,255,255,.4); position: relative; }
.mgm-arrow::after { content: ''; position: absolute; right: 0; top: -3px; width: 6px; height: 6px; border-top: 1px solid rgba(255,255,255,.6); border-right: 1px solid rgba(255,255,255,.6); transform: rotate(45deg); }

.mgm-sheet .field { margin-bottom: 16px; }
.mgm-sheet .field > label { margin-bottom: 8px; }
.mgm-sheet .field > label i { font-style: normal; color: var(--accent); }
.mgm-sheet .field > label span { font-weight: 500; color: var(--mute-2); font-size: 12px; margin-left: 4px; }
.mgm-sheet .input.mono { font-family: var(--mono); letter-spacing: .02em; }
.mgm-sheet .input.ta { height: 78px; padding: 12px 14px; resize: none; font-size: 14px; line-height: 1.55; }
.input.bad { border-color: var(--accent); }
.ferr { font-size: 12px; color: var(--accent); margin-top: 6px; }
.mgm-agree { width: 100%; display: flex; gap: 10px; align-items: flex-start; text-align: left; font-size: 12.5px; line-height: 1.55; color: var(--ink-2); padding: 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--card); margin-bottom: 14px; }
.mgm-agree.bad { border-color: var(--accent); }
.mgm-agree .cb { width: 20px; height: 20px; border-radius: 4px; border: 1.5px solid var(--mute-2); flex: none; display: grid; place-items: center; margin-top: 1px; }
.mgm-agree.on .cb { background: var(--ink); border-color: var(--ink); }
.mgm-dup { font-size: 12.5px; line-height: 1.6; color: #8A341A; background: #FBE9E2; border-radius: 6px; padding: 11px 13px; margin-bottom: 12px; }
.mgm-dup b { display: block; margin-bottom: 2px; }
.mgm-cta { width: 100%; height: 54px; border-radius: 6px; background: var(--ink); color: #fff; font-size: 16px; font-weight: 800; display: flex; align-items: center; justify-content: center; text-decoration: none; letter-spacing: -.01em; }
.mgm-cta:disabled { background: var(--mute-2); }
.mgm-sub { width: 100%; height: 46px; margin-top: 8px; font-size: 14px; font-weight: 700; color: var(--mute); }
.mgm-fine { font-size: 11.5px; color: var(--mute-2); text-align: center; margin-top: 10px; line-height: 1.5; }

.mgm-done { text-align: center; padding: 6px 0 0; }
.mgm-seal { width: 60px; height: 60px; border-radius: 50%; background: var(--forest); display: grid; place-items: center; margin: 0 auto 14px; box-shadow: 0 0 0 6px var(--brass-soft); animation: up .4s cubic-bezier(.3,1.5,.5,1); }
.mgm-done h3, .mgm-lock h3 { font-family: var(--serif); font-size: 21px; margin: 0 0 8px; letter-spacing: -.02em; }
.mgm-done > p, .mgm-lock p { font-size: 13.5px; color: var(--mute); line-height: 1.6; margin: 0 0 18px; text-wrap: pretty; }
.mgm-done > p b, .mgm-lock p b { color: var(--ink); }
.mgm-receipt { display: grid; grid-template-columns: auto 1fr; gap: 9px 14px; text-align: left; background: var(--card); border: 1px dashed var(--line); border-radius: 6px; padding: 14px 16px; font-size: 13px; margin: 0 0 14px; }
.mgm-receipt dt { color: var(--mute); }
.mgm-receipt dd { margin: 0; font-weight: 700; text-align: right; }
.mgm-next { text-align: left; margin-bottom: 18px; }
.mgm-next small { font-size: 11px; font-weight: 700; color: var(--mute-2); letter-spacing: .06em; }
.mgm-next ol { list-style: none; margin: 8px 0 0; padding: 0; display: flex; gap: 4px; }
.mgm-next li { flex: 1; text-align: center; font-size: 11px; font-weight: 700; color: var(--mute-2); padding-top: 9px; border-top: 3px solid var(--line); white-space: nowrap; }
.mgm-next li.on { color: var(--ink); border-color: var(--brass); }
.mgm-lock { text-align: center; padding: 10px 4px 0; }
.mgm-lockico { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 14px; background: var(--brass-soft); color: #7A5A22; }

.mgm-my { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.mgm-my:last-child { border-bottom: 0; }
.mgm-my > div { flex: 1; min-width: 0; }
.mgm-my b { font-size: 14px; display: block; }
.mgm-my small { font-size: 12px; color: var(--mute); }
.mgm-st { font-size: 11.5px; font-weight: 800; padding: 4px 8px; border-radius: 3px; background: var(--line-2); color: var(--ink-2); white-space: nowrap; }
.mgm-st.st-0 { background: #FBE9E2; color: #A23F1F; }
.mgm-st.st-1, .mgm-st.st-2 { background: var(--brass-soft); color: #7A5A22; }
.mgm-st.st-3, .mgm-st.st-4, .mgm-st.st-5 { background: #E3ECE8; color: var(--forest); }
.mgm-st.st-6 { background: var(--forest); color: #fff; }
.mgm-st.st-hold { background: #EEF0EC; color: var(--mute); }
/* ───────── 간편 회원가입 (네이버 · 카카오 · 구글) ───────── */
.au-wrap { z-index: 90; }
.au-sheet { padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
.au-lead { padding: 4px 0 20px; }
.au-reason { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-radius: 13px; background: var(--brass-soft); color: #7A5A22; font-size: 12px; font-weight: 800; margin-bottom: 12px; }
.au-lead h3 { margin: 0 0 8px; font-family: var(--serif); font-size: 23px; font-weight: 700; letter-spacing: -0.03em; }
.au-lead p { margin: 0; font-size: 13.5px; line-height: 1.65; color: var(--mute); }
.au-btns { display: grid; gap: 10px; }
.au-btn { position: relative; height: 54px; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 15.5px; font-weight: 700; letter-spacing: -0.02em; transition: transform .12s, filter .12s; }
.au-btn > span:first-child { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); }
.au-btn:active { transform: scale(.985); }
.au-btn:disabled { filter: saturate(.6) opacity(.75); cursor: default; }
.au-btn.naver { background: #03C75A; color: #fff; }
.au-btn.kakao { background: #FEE500; color: rgba(0,0,0,.85); }
.au-btn.google { background: #fff; color: #1F1F1F; border: 1px solid #DADCE0; }
.sm-n { display: inline-grid; place-items: center; font-weight: 900; font-family: Arial, sans-serif; color: #fff; background: #03C75A; border-radius: 3px; line-height: 1; }
.au-btn.naver .sm-n { background: transparent; }
.sm-k { display: inline-grid; place-items: center; }
.sm-k i { width: 82%; height: 68%; background: #191919; border-radius: 50%; position: relative; }
.sm-k i::after { content: ''; position: absolute; left: 22%; bottom: -22%; border: 4px solid transparent; border-top: 5px solid #191919; border-left-width: 2px; transform: skewX(-12deg); }
.sm-g { display: inline-grid; place-items: center; font-family: Arial, sans-serif; font-weight: 900; line-height: 1; background: conic-gradient(from -45deg, #EA4335 0 25%, #4285F4 25% 50%, #34A853 50% 75%, #FBBC05 75%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.au-perk { margin-top: 20px; background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 14px 16px; }
.au-perk small { font-size: 12px; color: var(--mute); }
.au-perk small b { color: var(--ink); }
.au-perk ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; }
.au-perk li { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; }
.au-perk li svg { color: var(--ok); flex: none; }
.au-fine { font-size: 11.5px; color: var(--mute); line-height: 1.6; margin: 14px 0 0; text-align: center; }
.au-prov { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 6px; background: var(--card); border: 1px solid var(--line); margin-bottom: 18px; }
.au-prov > div { flex: 1; min-width: 0; }
.au-prov b { display: block; font-size: 14px; }
.au-prov small { font-size: 12.5px; color: var(--mute); }
.au-prov button { font-size: 12.5px; font-weight: 700; color: var(--mute); text-decoration: underline; text-underline-offset: 3px; }
.au-agree { border-top: 1px solid var(--line); margin: 4px 0 14px; padding-top: 12px; }
.au-agree .agree { font-weight: 500; font-size: 13px; padding: 5px 0; }
.au-agree .agree.all { font-weight: 800; font-size: 14.5px; padding: 2px 0 10px; border-bottom: 1px solid var(--line-2); margin-bottom: 6px; }
.au-exist { background: #E3ECE8; border-radius: 6px; padding: 14px 16px; margin-bottom: 16px; }
.au-exist b { font-size: 14px; color: var(--forest); }
.au-exist p { margin: 4px 0 0; font-size: 12.5px; color: var(--ink-2); line-height: 1.55; }
.au-exist.warn { background: #FBE9E2; }
.au-exist.warn b { color: #A23F1F; }
.mgm-dot { display: inline-grid; place-items: center; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--accent); color: #fff; font-size: 10.5px; font-weight: 800; margin-left: 4px; }
