:root {
  --bg: #ffffff;
  --bg-soft: #f4f5f7;
  --bg-softer: #f9fafb;
  --line: #e7e9ec;
  --text: #17191c;
  --text-2: #4b5460;
  --text-3: #8a94a0;
  --brand: #ff5c2b;
  --brand-press: #f04a18;
  --brand-soft: #fff1eb;
  --brand-ink: #c2410c;
  --ok: #12b76a;
  --ok-soft: #e8f8f0;
  --warn: #f59e0b;
  --warn-soft: #fff6e5;
  --card: #ffffff;
  --shadow: 0 1px 2px rgba(20, 24, 31, .04), 0 6px 24px rgba(20, 24, 31, .06);
  --radius: 20px;
  --cta-h: 58px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111317; --bg-soft: #1c1f25; --bg-softer: #16191e; --line: #2a2e36;
    --text: #f1f3f5; --text-2: #b7bfc8; --text-3: #7d8792;
    --brand: #ff6a3d; --brand-press: #ff7d55; --brand-soft: #34201a; --brand-ink: #ffb197;
    --ok: #34d399; --ok-soft: #12291f; --warn: #fbbf24; --warn-soft: #2d2410;
    --card: #181b20; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25);
    color-scheme: dark;
  }
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body {
  font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
  font-size: 16px; line-height: 1.5; letter-spacing: -0.01em; word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; padding: 0; }
input { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
#app { max-width: 480px; margin: 0 auto; min-height: 100dvh; position: relative; }

/* ---------- 화면 ---------- */
.screen { padding: 12px 20px calc(var(--cta-h) + 84px + var(--safe-b)); animation: enter .28s cubic-bezier(.2,.8,.2,1); }
.screen.no-cta { padding-bottom: 48px; }
@keyframes enter { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }
.screen.back-anim { animation-name: enter-back; }
.screen.no-anim { animation: none; }
@keyframes enter-back { from { opacity: 0; transform: translateX(-18px); } to { opacity: 1; transform: none; } }

.topbar { height: 52px; display: flex; align-items: center; justify-content: space-between; margin: 0 -8px 4px; }
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; color: var(--text-2); }
.icon-btn:active { background: var(--bg-soft); }
.icon-btn svg { width: 24px; height: 24px; }
.progress { display: flex; gap: 4px; }
.progress i { width: 18px; height: 4px; border-radius: 2px; background: var(--line); }
.progress i.on { background: var(--brand); }

h1.title { font-size: 26px; line-height: 1.35; font-weight: 700; letter-spacing: -0.03em; margin: 8px 0 8px; }
p.sub { color: var(--text-2); margin: 0 0 24px; font-size: 16px; }
.eyebrow { font-size: 14px; font-weight: 600; color: var(--brand); margin: 4px 0 0; }
.section-title { font-size: 19px; font-weight: 700; margin: 36px 0 12px; letter-spacing: -0.02em; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.section-title small { font-size: 13px; color: var(--text-3); font-weight: 500; }
.muted { color: var(--text-3); }
.small { font-size: 13px; }

/* ---------- 하단 CTA ---------- */
.cta-wrap {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  padding: 12px 20px calc(12px + var(--safe-b));
  background: linear-gradient(to top, var(--bg) calc(100% - 14px), transparent);
  max-width: 480px; margin: 0 auto;
}
.cta-hint { text-align: center; font-size: 13px; color: var(--text-3); margin-bottom: 8px; min-height: 18px; }
.btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--cta-h); width: 100%; border-radius: 16px; font-size: 17px; font-weight: 700;
  background: var(--brand); color: #fff; transition: transform .08s, background .15s, opacity .15s;
}
.btn:active { transform: scale(.98); background: var(--brand-press); }
.btn[disabled] { opacity: .35; pointer-events: none; }
.btn.secondary { background: var(--bg-soft); color: var(--text); }
.btn.secondary:active { background: var(--line); }
.btn.ghost { background: transparent; color: var(--text-2); height: 48px; font-weight: 600; font-size: 15px; }
.btn.small { height: 44px; font-size: 15px; border-radius: 12px; }
.btn svg { width: 20px; height: 20px; }
.btn-row { display: flex; gap: 8px; }
.btn-row .btn { flex: 1; }
.link-btn { color: var(--text-3); font-size: 14px; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; padding: 8px 4px; }

/* ---------- 칩 ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  height: 38px; padding: 0 14px; border-radius: 19px; font-size: 15px; font-weight: 600;
  background: var(--bg-soft); color: var(--text-2); display: inline-flex; align-items: center; gap: 6px;
  transition: background .15s, color .15s, transform .08s;
}
.chip:active { transform: scale(.96); }
.chip.on { background: var(--brand-soft); color: var(--brand-ink); box-shadow: inset 0 0 0 1.5px var(--brand); }
.chip.no.on { background: var(--bg-soft); color: var(--text); box-shadow: inset 0 0 0 1.5px var(--text-2); text-decoration: line-through; text-decoration-thickness: 1.5px; }
.chip svg { width: 16px; height: 16px; }
.chips.quick { margin: -8px 0 16px; }
.chips.quick .chip { height: 32px; font-size: 13px; padding: 0 12px; }

.seg { display: flex; background: var(--bg-soft); border-radius: 14px; padding: 4px; gap: 4px; }
.seg button { flex: 1; height: 42px; border-radius: 10px; font-weight: 600; color: var(--text-3); font-size: 15px; display: flex; align-items: center; justify-content: center; gap: 6px; }
.seg button.on { background: var(--card); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.seg svg { width: 18px; height: 18px; }
.seg.four button { flex-direction: column; height: 60px; gap: 3px; font-size: 13px; }
.seg.four svg { width: 20px; height: 20px; }
.small-input { height: 48px; font-size: 15px; }
.share-label { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--brand-ink); }
.share-label svg { width: 16px; height: 16px; }
.share-box .url.big { font-size: 17px; font-weight: 700; color: var(--text); margin-top: 6px; }
.invite { margin: 12px 0 4px; padding: 16px; border-radius: var(--radius); box-shadow: inset 0 0 0 1.5px var(--brand); background: var(--brand-soft); }
.invite-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--brand-ink); }
.invite-top span:first-child { display: flex; align-items: center; gap: 6px; }
.invite-top svg { width: 16px; height: 16px; }
.invite-url { font-size: 16px; font-weight: 700; margin: 8px 0 12px; word-break: break-all; }

/* ---------- 주간 그리드 ---------- */
.week { margin-bottom: 18px; }
.week-head { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; color: var(--text-3); font-weight: 600; margin: 0 2px 8px; }
.grid { display: grid; grid-template-columns: 34px repeat(7, 1fr); gap: 5px; user-select: none; -webkit-user-select: none; }
.grid .rl { font-size: 12px; color: var(--text-3); font-weight: 600; display: flex; align-items: center; }
.grid .dh { text-align: center; font-size: 12px; color: var(--text-3); line-height: 1.25; padding-bottom: 2px; }
.grid .dh b { display: block; font-size: 15px; color: var(--text); font-weight: 700; }
.grid .dh.sat b { color: #3b82f6; } .grid .dh.sun b { color: #ef4444; }
.grid .dh .today-row { display: block; height: 18px; }
.grid .dh .today-row i { font-style: normal; display: inline-block; font-size: 10px; font-weight: 700; line-height: 16px; padding: 0 6px; border-radius: 8px; background: var(--text); color: var(--bg); }
.grid .dh.today b { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.cell {
  height: 46px; border-radius: 12px; background: var(--bg-soft); position: relative;
  transition: background .12s, transform .08s, box-shadow .12s; touch-action: none;
  display: grid; place-items: center;
}
.cell:active { transform: scale(.93); }
.cell.on { background: var(--brand); box-shadow: 0 4px 12px rgba(255, 92, 43, .28); }
.cell.on::after { content: ''; width: 16px; height: 16px; background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
.cell.off { background: transparent; box-shadow: inset 0 0 0 1px var(--line); opacity: .45; pointer-events: none; }
.cell.off::before { content: ''; position: absolute; left: 30%; right: 30%; top: 50%; height: 1px; background: var(--line); }
.cell .heat { position: absolute; top: 3px; right: 4px; min-width: 15px; height: 15px; border-radius: 8px; font-size: 10px; line-height: 15px; font-weight: 800; color: var(--brand-ink); background: var(--brand-soft); padding: 0 4px; text-align: center; }
.cell.on .heat { background: rgba(255,255,255,.95); color: var(--brand); }
.grid-legend { display: flex; gap: 14px; font-size: 12px; color: var(--text-3); margin: -4px 2px 16px; align-items: center; }
.grid-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 4px; vertical-align: -2px; margin-right: 4px; }

/* ---------- 입력 ---------- */
.field { margin-bottom: 26px; }
.field label { display: block; font-size: 14px; font-weight: 600; color: var(--text-2); margin-bottom: 8px; }
.input {
  width: 100%; height: 56px; border-radius: 14px; border: 0; background: var(--bg-soft);
  padding: 0 16px; font-size: 17px; outline: none; transition: box-shadow .15s;
}
.input:focus { box-shadow: inset 0 0 0 2px var(--brand); background: var(--card); }
.input::placeholder { color: var(--text-3); }
.search-results { margin-top: 8px; border-radius: 14px; overflow: hidden; }
.sr-item { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 14px 6px; border-bottom: 1px solid var(--line); text-align: left; gap: 10px; }
.sr-item:active { background: var(--bg-soft); }
.sr-item b { font-weight: 600; font-size: 16px; }
.lines { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.ln { font-size: 11px; font-weight: 700; color: #fff; padding: 2px 6px; border-radius: 6px; white-space: nowrap; }
.picked {
  display: flex; align-items: center; gap: 12px; padding: 16px; border-radius: 16px; background: var(--brand-soft);
  box-shadow: inset 0 0 0 1.5px var(--brand);
}
.picked .pin { width: 36px; height: 36px; border-radius: 12px; background: var(--brand); color: #fff; display: grid; place-items: center; flex: none; }
.picked .pin svg { width: 20px; height: 20px; }
.picked b { font-size: 17px; display: block; }
.picked .change { margin-left: auto; font-size: 14px; color: var(--brand-ink); font-weight: 600; }
.fold { border-radius: 16px; background: var(--bg-softer); box-shadow: inset 0 0 0 1px var(--line); padding: 4px 16px; }
.fold summary { list-style: none; padding: 14px 0; font-weight: 600; display: flex; justify-content: space-between; align-items: center; cursor: pointer; color: var(--text-2); }
.fold summary::-webkit-details-marker { display: none; }
.fold summary::after { content: '＋'; color: var(--text-3); }
.fold[open] summary::after { content: '－'; }
.fold .fold-body { padding-bottom: 16px; }
.fold .fold-body h4 { margin: 12px 0 8px; font-size: 13px; color: var(--text-3); font-weight: 600; }

/* ---------- 카드 ---------- */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; margin-bottom: 14px; position: relative; }
.card.flat { box-shadow: none; background: var(--bg-soft); }
.card.best { box-shadow: 0 0 0 2px var(--brand), var(--shadow); }
.ribbon { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; color: var(--brand); background: var(--brand-soft); padding: 4px 10px; border-radius: 10px; margin-bottom: 10px; }
.w-when { font-size: 22px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.3; }
.w-where { font-size: 16px; color: var(--text-2); margin-top: 2px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.w-where b { color: var(--text); font-weight: 700; }
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 8px; }
.badge.ok { color: var(--ok); background: var(--ok-soft); }
.badge.warn { color: #b45309; background: var(--warn-soft); }
@media (prefers-color-scheme: dark) { .badge.warn { color: var(--warn); } }
.badge.gray { color: var(--text-2); background: var(--bg-soft); }
.times { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 4px; }
.time { font-size: 13px; padding: 5px 10px; border-radius: 10px; background: var(--bg-soft); color: var(--text-2); display: inline-flex; gap: 4px; align-items: center; }
.time.me { background: var(--brand-soft); color: var(--brand-ink); font-weight: 600; }
.time b { font-weight: 700; color: var(--text); }
.time.me b { color: var(--brand-ink); }
.time svg { width: 13px; height: 13px; }
.time .after { color: var(--text-3); font-weight: 500; }
.confirm-card .times .time .after { color: rgba(255,255,255,.8); }
.fair { font-size: 13px; color: var(--text-3); margin-top: 6px; }
.w-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); gap: 10px; }
.ok-btn { height: 44px; padding: 0 18px; border-radius: 22px; font-weight: 700; font-size: 15px; background: var(--bg-soft); color: var(--text); display: inline-flex; align-items: center; gap: 6px; transition: transform .08s, background .15s; }
.ok-btn:active { transform: scale(.95); }
.ok-btn.on { background: var(--brand); color: #fff; }
.ok-btn svg { width: 18px; height: 18px; }
.host-confirm { font-size: 13px; color: var(--text-3); font-weight: 600; padding: 6px 2px; }

.avatars { display: flex; align-items: center; }
.av { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #fff; box-shadow: 0 0 0 2px var(--card); margin-left: -6px; flex: none; }
.av:first-child { margin-left: 0; }
.av.empty { background: var(--bg-soft); color: var(--text-3); box-shadow: 0 0 0 2px var(--card), inset 0 0 0 1.5px var(--line); }
.av.lg { width: 40px; height: 40px; font-size: 14px; }
.av-label { font-size: 13px; color: var(--text-3); margin-left: 8px; }

.status { display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: var(--radius); background: var(--bg-soft); margin: 4px 0 6px; }
.status .txt b { display: block; font-size: 16px; }
.status .txt span { font-size: 13px; color: var(--text-3); }
.status .act { margin-left: auto; flex: none; }
.pill-btn { height: 36px; padding: 0 14px; border-radius: 18px; background: var(--card); font-size: 14px; font-weight: 700; box-shadow: var(--shadow); display: inline-flex; align-items: center; gap: 6px; }
.pill-btn svg { width: 16px; height: 16px; }

.hub-row { display: flex; align-items: center; gap: 12px; padding: 14px 4px; border-bottom: 1px solid var(--line); width: 100%; text-align: left; }
.hub-row:last-child { border-bottom: 0; }
.hub-row .rank { width: 26px; height: 26px; border-radius: 9px; background: var(--bg-soft); display: grid; place-items: center; font-size: 13px; font-weight: 800; color: var(--text-3); flex: none; }
.hub-row.sel .rank { background: var(--brand); color: #fff; }
.hub-row .nm { font-weight: 700; }
.hub-row .meta { font-size: 13px; color: var(--text-3); }
.hub-row .right { margin-left: auto; text-align: right; font-size: 13px; color: var(--text-2); flex: none; }
.hub-row .right b { display: block; font-size: 15px; color: var(--text); }

/* ---------- 식당 ---------- */
.venue { display: flex; flex-direction: column; gap: 6px; }
.venue .v-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.venue .v-name { font-size: 17px; font-weight: 700; }
.venue .v-cat { font-size: 13px; color: var(--text-3); }
.venue .v-reason { font-size: 15px; color: var(--text-2); }
.vote-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.vote-row .ok-btn { height: 38px; padding: 0 14px; font-size: 14px; }
.sub-title { font-size: 14px; font-weight: 700; color: var(--text-2); margin: 4px 2px 10px; }
.venue.proposal { box-shadow: 0 0 0 1.5px var(--ok), var(--shadow); }
.small-picked { padding: 12px; margin-bottom: 4px; }
.small-picked .pin { width: 30px; height: 30px; border-radius: 10px; }
.small-picked b { font-size: 15px; }
.venue-pick { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.18); font-size: 15px; }
.venue-pick > span:first-child { font-size: 22px; }
.venue-pick .vp-sub { font-size: 12px; opacity: .85; }
.venue-pick a { margin-left: auto; background: #fff; color: var(--brand); font-weight: 700; font-size: 13px; padding: 6px 12px; border-radius: 10px; flex: none; }
.card.place { padding: 18px; }
.card.place.current { box-shadow: 0 0 0 2px var(--ok), var(--shadow); }
.place-labels { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.badge.brand { color: var(--brand-ink); background: var(--brand-soft); }
.place-name { font-size: 19px; font-weight: 800; letter-spacing: -0.02em; }
.place-name .muted { font-size: 14px; font-weight: 500; }
.place-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.place-actions .ok-btn { height: 38px; font-size: 14px; padding: 0 14px; }
.venue .v-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.venue .v-chips span { font-size: 12px; font-weight: 600; color: var(--brand-ink); background: var(--brand-soft); padding: 3px 9px; border-radius: 8px; }
.venue .v-top .badge { flex: none; }
.venue .v-links { display: flex; gap: 6px; margin-top: 8px; }
.venue .v-links a { flex: 1; height: 40px; border-radius: 12px; background: var(--bg-soft); display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600; gap: 6px; }
.venue .v-links a:active { background: var(--line); }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.applied { display: flex; flex-wrap: wrap; gap: 6px; margin: -2px 0 14px; }
.applied span { font-size: 12px; color: var(--text-2); background: var(--bg-soft); padding: 4px 10px; border-radius: 10px; }
.note { font-size: 12px; color: var(--text-3); margin-top: 6px; line-height: 1.6; }
.search-out { display: flex; gap: 8px; margin-top: 12px; }
.search-out a { flex: 1; text-align: center; padding: 12px 6px; border-radius: 14px; background: var(--bg-soft); font-size: 14px; font-weight: 600; }
.skeleton { height: 112px; border-radius: var(--radius); background: linear-gradient(90deg, var(--bg-soft), var(--bg-softer), var(--bg-soft)); background-size: 200% 100%; animation: shimmer 1.2s infinite; margin-bottom: 12px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- 홈 ---------- */
.hero { padding: 28px 0 8px; }
.hero .bowl { width: 84px; height: 84px; border-radius: 28px; background: var(--brand-soft); display: grid; place-items: center; font-size: 46px; margin-bottom: 22px; animation: bob 3s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-5px) rotate(-3deg); } }
.hero h1 { font-size: 32px; line-height: 1.3; letter-spacing: -0.04em; margin: 0 0 14px; font-weight: 800; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero p { color: var(--text-2); margin: 0; font-size: 17px; }
.steps { margin: 34px 0 8px; display: grid; gap: 10px; }
.step { display: flex; gap: 14px; align-items: center; padding: 16px; border-radius: 18px; background: var(--bg-softer); box-shadow: inset 0 0 0 1px var(--line); }
.step .n { width: 34px; height: 34px; border-radius: 12px; background: var(--card); box-shadow: var(--shadow); display: grid; place-items: center; font-size: 18px; flex: none; }
.step b { display: block; font-size: 15px; }
.step span { font-size: 13px; color: var(--text-3); }
.my-item { display: flex; align-items: center; gap: 12px; padding: 16px 4px; border-bottom: 1px solid var(--line); width: 100%; text-align: left; }
.my-item .ic { width: 42px; height: 42px; border-radius: 14px; background: var(--bg-soft); display: grid; place-items: center; font-size: 20px; flex: none; }
.my-item b { display: block; font-weight: 700; }
.my-item span { font-size: 13px; color: var(--text-3); }
.my-item .chev { margin-left: auto; color: var(--text-3); }

/* ---------- 공유/완료 ---------- */
.done-mark { width: 76px; height: 76px; border-radius: 50%; background: var(--brand); display: grid; place-items: center; margin: 36px auto 22px; animation: pop .5s cubic-bezier(.2,1.6,.4,1); box-shadow: 0 10px 30px rgba(255,92,43,.35); }
.done-mark svg { width: 40px; height: 40px; color: #fff; }
@keyframes pop { from { transform: scale(.3); opacity: 0; } }
.center { text-align: center; }
.share-box { margin: 26px 0 14px; padding: 18px; border-radius: 18px; background: var(--bg-soft); text-align: left; }
.share-box .msg { font-size: 15px; color: var(--text); white-space: pre-line; }
.share-box .url { font-size: 13px; color: var(--brand-ink); margin-top: 8px; word-break: break-all; }

.confirm-hero { text-align: center; padding: 18px 0 6px; }
.confirm-hero .big { font-size: 56px; animation: pop .6s cubic-bezier(.2,1.6,.4,1); }
.confirm-hero h1 { font-size: 24px; margin: 10px 0 6px; letter-spacing: -0.03em; }
.confirm-card { background: linear-gradient(160deg, var(--brand) 0%, #ff8a3d 100%); color: #fff; border-radius: 24px; padding: 24px; margin: 18px 0 14px; box-shadow: 0 12px 32px rgba(255, 92, 43, .3); }
.confirm-card .w-when { color: #fff; font-size: 26px; }
.confirm-card .w-where { color: rgba(255,255,255,.88); }
.confirm-card .w-where b { color: #fff; }
.confirm-card .times .time { background: rgba(255,255,255,.18); color: #fff; }
.confirm-card .times .time b { color: #fff; }
.confirm-card .times .time.me { background: #fff; color: var(--brand); }
.confirm-card .times .time.me b { color: var(--brand); }
.confirm-card .who { font-size: 14px; color: rgba(255,255,255,.9); margin-top: 14px; }

.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 50; overflow: hidden; }
.confetti i { position: absolute; top: -20px; width: 9px; height: 14px; border-radius: 2px; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(110vh) rotate(720deg); } }

/* ---------- 토스트·시트 ---------- */
#toast {
  position: fixed; left: 50%; bottom: calc(var(--cta-h) + 44px + var(--safe-b)); transform: translate(-50%, 20px);
  background: rgba(23, 25, 28, .92); color: #fff; padding: 12px 18px; border-radius: 14px; font-size: 15px; font-weight: 500;
  opacity: 0; transition: opacity .2s, transform .2s; z-index: 60; pointer-events: none; max-width: calc(100% - 40px); text-align: center;
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }
.sheet-bg { position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 70; animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 71; background: var(--card); border-radius: 24px 24px 0 0; padding: 24px 20px calc(20px + var(--safe-b)); max-width: 480px; margin: 0 auto; animation: up .25s cubic-bezier(.2,.8,.2,1); }
@keyframes up { from { transform: translateY(100%); } }
.sheet h3 { font-size: 20px; margin: 0 0 8px; letter-spacing: -0.02em; }
.sheet p { color: var(--text-2); margin: 0 0 20px; font-size: 15px; }
.sheet .opts { display: grid; gap: 8px; margin-bottom: 16px; }

.loader { display: grid; place-items: center; min-height: 70dvh; }
.loader span { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--bg-soft); border-top-color: var(--brand); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.foot-links { display: flex; justify-content: center; gap: 18px; margin-top: 28px; flex-wrap: wrap; }
.host-cta { display: flex; align-items: center; gap: 12px; margin-top: 24px; }
.host-cta .emo { font-size: 26px; }
.host-cta .pill-btn { flex: none; }
.story-btn { margin-top: 10px; height: 50px; font-size: 15px; background: linear-gradient(135deg, #f58529, #dd2a7b 55%, #8134af); }
.kakao-btn { display: flex; align-items: center; justify-content: center; gap: 8px; height: 50px; border-radius: 14px; background: #FEE500; color: #191919; font-weight: 700; font-size: 15px; margin-top: 22px; }
.login-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 18px; font-size: 13px; color: var(--text-3); }
.ad-wrap { margin: 28px -4px 0; }
.ad-label { font-size: 11px; color: var(--text-3); margin: 0 4px 4px; }
/* 광고가 안 채워지면(unfilled) 자리·라벨째 숨긴다 */
.ad-wrap:has(ins[data-ad-status="unfilled"]) { display: none; }
.inapp-banner { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--warn-soft); font-size: 13px; color: var(--text-2); margin-top: 10px; }
.inapp-banner button { margin-left: auto; font-weight: 700; color: var(--text); white-space: nowrap; }
@media (max-width: 360px) {
  .screen { padding-left: 16px; padding-right: 16px; }
  .grid { grid-template-columns: 30px repeat(7, 1fr); gap: 4px; }
  .cell { height: 42px; border-radius: 10px; }
  h1.title { font-size: 24px; }
}

/* ---------- 랜딩 ---------- */
.home .hero { padding-top: 12px; }
.eyebrow-pill { display: inline-block; font-size: 13px; font-weight: 700; color: var(--brand-ink); background: var(--brand-soft); padding: 6px 12px; border-radius: 999px; margin-bottom: 16px; }
.home .hero h1 { font-size: 34px; }
.home .hero p b { color: var(--text); }
.mock-wrap { position: relative; margin: 28px 0 20px; padding: 18px 4px 6px; }
.mock { transform: rotate(-1.5deg); margin: 0; box-shadow: 0 0 0 2px var(--brand), 0 18px 40px rgba(255, 92, 43, .18); }
.mock .w-when { font-size: 21px; }
.mock-ok { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 18px; background: var(--brand); color: #fff; font-size: 13px; font-weight: 700; }
.mock-ok svg { width: 15px; height: 15px; }
.mock-float { position: absolute; z-index: 2; font-size: 12px; font-weight: 700; padding: 7px 12px; border-radius: 12px; background: var(--card); box-shadow: var(--shadow); color: var(--text); }
.mock-float.f1 { top: 0; right: 8px; transform: rotate(3deg); }
.mock-float.f2 { bottom: -16px; left: 50%; transform: translateX(-50%) rotate(-2deg); }
.vs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 34px 0 4px; }
.vs-col { border-radius: 18px; padding: 16px 14px; font-size: 13.5px; }
.vs-col ol { margin: 8px 0 0; padding-left: 18px; line-height: 1.75; }
.vs-col.old { background: var(--bg-soft); color: var(--text-3); }
.vs-col.old li { text-decoration: line-through; text-decoration-color: var(--line); }
.vs-col.new { background: var(--brand-soft); color: var(--text); box-shadow: inset 0 0 0 1.5px var(--brand); }
.vs-col.new li { font-weight: 600; }
.vs-head { font-size: 14px; font-weight: 800; color: var(--text); }
.vs-col.old .vs-head { color: var(--text-2); }
.vs-foot { margin-top: 8px; font-size: 12px; color: var(--brand-ink); font-weight: 600; }
.feats { display: grid; gap: 12px; }
.feat { display: flex; gap: 14px; align-items: center; padding: 16px; border-radius: 18px; background: var(--card); box-shadow: var(--shadow); }
.feat b { display: block; font-size: 16px; margin-bottom: 4px; }
.feat span { font-size: 13.5px; color: var(--text-2); line-height: 1.55; }
.feat-vis { flex: none; width: 92px; height: 72px; border-radius: 14px; background: var(--bg-soft); display: flex; align-items: center; justify-content: center; }
.grid-vis { display: grid; grid-template-columns: repeat(7, 9px); gap: 3px; align-content: center; justify-content: center; }
.grid-vis i { height: 12px; border-radius: 3px; background: var(--line); }
.grid-vis i.on { background: #ffc3ad; }
.grid-vis i.all { background: var(--brand); }
.bars-vis { flex-direction: column; align-items: flex-start; gap: 5px; padding: 0 8px; }
.mb { display: flex; align-items: center; gap: 4px; font-size: 9px; color: var(--text-3); width: 100%; }
.mb span { width: 24px; flex: none; }
.mb i { height: 7px; border-radius: 4px; background: var(--brand); opacity: .75; max-width: 34px; }
.mb em { font-style: normal; font-weight: 700; color: var(--text-2); }
.chips-vis { flex-wrap: wrap; gap: 3px; padding: 6px; align-content: center; }
.mc { font-size: 9.5px !important; font-weight: 700; padding: 2px 6px; border-radius: 8px; background: var(--card); color: var(--text-2) !important; }
.mc.on { background: var(--brand-soft); color: var(--brand-ink) !important; }
.mc.no { text-decoration: line-through; }
.link-vis { padding: 8px; }
.bubble { font-size: 10px !important; line-height: 1.35 !important; background: var(--brand); color: #fff !important; padding: 7px 8px; border-radius: 10px 10px 10px 3px; font-weight: 600; }
.closing { margin: 30px 0 4px; padding: 22px 18px; border-radius: 20px; background: linear-gradient(135deg, var(--brand) 0%, #ff8a3d 100%); color: #fff; text-align: center; }
.closing b { display: block; font-size: 19px; letter-spacing: -0.02em; }
.closing span { font-size: 13.5px; opacity: .92; }
@media (max-width: 360px) { .vs { grid-template-columns: 1fr; } .home .hero h1 { font-size: 30px; } .feat-vis { width: 76px; } }
