/* 12/5 헤이 부누 홈 v3 — 홈 전용(문서 페이지는 styles.css 그대로).
   폰 모양 화면을 쓰지 않는다: 앱 UI 조각은 HTML 로 다시 그리고, 지도 영상은 가로 가득 깐다. 보라는 포인트만. */
:root {
  --sec: clamp(100px, 11vw, 160px); /* 구역 위아래 여백 — 모든 구역 같은 리듬 */
  --bg: #ffffff;
  --bg-2: #f4f4f7;
  --ink: #141318;
  --ink-2: #66656f;
  --ink-3: #a3a2ac;
  --line: #e6e5eb;
  --accent: #6c52f2;
  --night: #0b0a0f;
  --night-ink: #f4f3f8;
  --night-ink-2: #8f8e99;
  --card: #ffffff;
  --face: #ffffff;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #0e0d12;
    --bg-2: #16151c;
    --ink: #f3f2f7;
    --ink-2: #a5a4b0;
    --ink-3: #5f5e69;
    --line: #26252e;
    --accent: #9b88ff;
    --card: #1c1b23;
    --face: #f7f6fb;
    color-scheme: dark;
  }
}
:root[data-theme='dark'] {
  --bg: #0e0d12;
  --bg-2: #16151c;
  --ink: #f3f2f7;
  --ink-2: #a5a4b0;
  --ink-3: #5f5e69;
  --line: #26252e;
  --accent: #9b88ff;
  --card: #1c1b23;
  --face: #f7f6fb;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
  font-size: 17px;
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; text-wrap: balance; letter-spacing: -0.04em; line-height: 1.12; font-weight: 700; }
p { margin: 0; }
.wrap { width: min(1200px, 100% - 48px); margin-inline: auto; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.num { font-variant-numeric: tabular-nums; }
video::-webkit-media-controls, video::-webkit-media-controls-start-playback-button { display: none !important; -webkit-appearance: none; }

/* ── 떠 있는 알약 메뉴 ── */
.nav { position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 30; width: min(1200px, 100% - 28px); display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 7px 7px 7px 16px; border-radius: 999px; background: rgba(20, 19, 26, 0.62); color: #f4f3f8; backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); border: 1px solid rgba(255, 255, 255, 0.08); }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 16px; letter-spacing: -0.03em; text-decoration: none; }
.brand img { width: 26px; height: 26px; border-radius: 7px; }
.nav nav { display: flex; align-items: center; gap: 26px; font-size: 14.5px; }
.nav nav > a { text-decoration: none; opacity: 0.72; }
.nav nav > a:hover { opacity: 1; }
@media (max-width: 760px) { .nav nav > a { display: none; } }
.dl { position: relative; }
.dl-btn { display: inline-flex; align-items: center; height: 36px; padding: 0 16px; border-radius: 999px; background: #f4f3f8; color: #141318; font-weight: 600; font-size: 14.5px; text-decoration: none; }
.dl-pop { position: absolute; right: 0; top: calc(100% + 14px); width: 264px; padding: 22px 22px 18px; border-radius: 22px; background: #ffffff; color: #141318; box-shadow: 0 28px 70px -24px rgba(10, 8, 30, 0.45); text-align: center; opacity: 0; visibility: hidden; transform: translateY(-6px) scale(0.98); transform-origin: top right; transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s; }
.dl-pop::before { content: ''; position: absolute; inset: -16px 0 auto; height: 16px; }
.dl-pop img { width: 196px; height: 196px; margin: 0 auto; }
.dl-pop p { margin-top: 14px; font-size: 14px; line-height: 1.5; }
.dl-pop .links { margin-top: 10px; font-size: 12.5px; color: #8a8994; }
.dl-pop .links a { color: #55545e; text-underline-offset: 3px; }
@media (hover: hover) and (min-width: 761px) { .dl:hover .dl-pop, .dl:focus-within .dl-pop { opacity: 1; visibility: visible; transform: none; } }
@media (max-width: 760px), (hover: none) { .dl-pop { display: none; } }

/* ── 1. 첫 화면: 밤의 잠금화면 ── */
.hero { position: relative; min-height: max(100svh, 720px); background: var(--night); color: var(--night-ink); overflow: hidden; display: grid; align-items: center; padding: 110px 0 64px; }
.hero::before { content: ''; position: absolute; right: -12%; bottom: -30%; width: 70vw; height: 70vw; max-width: 980px; max-height: 980px; border-radius: 50%; background: radial-gradient(closest-side, rgba(108, 82, 242, 0.22), transparent 72%); pointer-events: none; }
.hero .wrap { position: relative; display: grid; gap: 56px; align-items: center; }
@media (min-width: 980px) { .hero .wrap { grid-template-columns: 1.05fr 0.95fr; } }
.hero h1 { font-size: clamp(52px, 8.4vw, 124px); line-height: 1; letter-spacing: -0.06em; font-weight: 700; }
.hero h1 span { color: var(--night-ink-2); }
.hero .lead { margin-top: 28px; max-width: 27em; color: var(--night-ink-2); font-size: clamp(16px, 1.6vw, 19px); }
.stores { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }
.store { display: inline-flex; align-items: center; gap: 9px; height: 52px; padding: 0 20px 0 16px; border-radius: 14px; text-decoration: none; font-weight: 600; font-size: 15.5px; line-height: 1.15; border: 1px solid var(--line); color: var(--ink); }
.store small { display: block; font-size: 10.5px; font-weight: 500; opacity: 0.6; }
.store svg { width: 22px; height: 22px; flex: none; }
.store.solid { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.hero .store { color: var(--night-ink); border-color: rgba(255, 255, 255, 0.16); }
.hero .store.solid { background: var(--night-ink); color: var(--night); border-color: var(--night-ink); }

/* 잠금화면 장면(HTML 로 그린 앱 화면 조각) */
.scene { position: relative; display: grid; justify-items: center; gap: 22px; padding-top: 10px; }
.island { display: flex; align-items: center; justify-content: space-between; gap: 18px; width: min(380px, 88vw); height: 64px; padding: 0 18px 0 12px; border-radius: 999px; background: #000; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.07), 0 24px 50px -20px rgba(0, 0, 0, 0.9); }
.island .l { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; }
.bus { display: inline-grid; place-items: center; min-width: 44px; height: 26px; padding: 0 8px; border-radius: 8px; background: #3d6ff0; color: #fff; font-weight: 700; font-size: 14px; }
.island .r { font-weight: 700; font-size: 24px; color: #c9bdff; letter-spacing: -0.03em; }
.clock { text-align: center; line-height: 1; }
.clock small { display: block; font-size: 15px; color: var(--night-ink-2); font-weight: 500; margin-bottom: 8px; }
.clock b { font-size: clamp(84px, 11vw, 136px); font-weight: 650; letter-spacing: -0.05em; }
.widget { width: min(400px, 90vw); padding: 18px 22px; border-radius: 26px; background: rgba(255, 255, 255, 0.09); border: 1px solid rgba(255, 255, 255, 0.08); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 6px 14px; }
.widget .stop { font-size: 13px; color: var(--night-ink-2); }
.widget .dir { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; }
.widget .left { grid-row: 1 / span 2; grid-column: 2; text-align: right; }
.widget .left b { display: block; font-size: 30px; font-weight: 700; letter-spacing: -0.03em; color: #c9bdff; line-height: 1.1; }
.widget .left span { font-size: 13px; color: var(--night-ink-2); }
.widget .bar { grid-column: 1 / -1; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.1); overflow: hidden; margin-top: 8px; }
.widget .bar i { display: block; height: 100%; width: var(--p, 40%); background: #c9bdff; border-radius: 4px; transition: width 0.6s ease; }

/* ── 5. 달력·앨범 콜라주 ── */
.collage { background: var(--bg-2); padding: var(--sec) 0; overflow: hidden; }
.collage .wrap { display: grid; gap: 56px; align-items: center; }
@media (min-width: 980px) { .collage .wrap { grid-template-columns: 0.8fr 1.2fr; } }
.collage h2 { font-size: clamp(36px, 4.8vw, 64px); margin-top: 14px; }
.collage .copy p { margin-top: 18px; color: var(--ink-2); font-size: 18px; max-width: 24em; }
.tiles { position: relative; height: clamp(380px, 46vw, 560px); }
.tiles figure { position: absolute; margin: 0; border-radius: 28px; overflow: hidden; background: #fff; box-shadow: 0 40px 80px -40px rgba(20, 16, 40, 0.38); }
.tiles .cal { width: 58%; left: 0; top: 4%; transform: rotate(-3deg); }
.tiles .alb { width: 52%; right: 0; top: 18%; transform: rotate(4deg); }
.tiles .chip { position: absolute; left: 30%; bottom: 0; display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 999px; background: var(--ink); color: var(--bg); font-weight: 600; font-size: 15px; transform: rotate(-2deg); }

/* ── 7. 물어볼 수 있는 것들(가로로 흐르는 띠) ── */
.ticker { padding: 40px 0 var(--sec); overflow: hidden; display: grid; gap: 14px; }
.ticker .row { display: flex; gap: 14px; width: max-content; animation: slide 46s linear infinite; }
.ticker .row.rev { animation-direction: reverse; animation-duration: 54s; }
.ticker span { white-space: nowrap; padding: 14px 22px; border-radius: 999px; border: 1px solid var(--line); font-size: clamp(16px, 1.6vw, 20px); font-weight: 500; }
.ticker span:nth-child(3n) { background: var(--ink); color: var(--bg); border-color: var(--ink); }
@keyframes slide { to { transform: translateX(-50%); } }

/* ── 10. 끝 ── */
.meet { min-height: min(72vh, 680px); display: grid; place-items: center; padding: var(--sec) 0; text-align: center; } /* 제목+버튼 세로·가로 가운데(12/5) */
.meet h2 { margin: 0; font-size: clamp(36px, 5.4vw, 72px); letter-spacing: -0.055em; }
.meet .stores { justify-content: center; }

.bunu .breath { transform-origin: 50% 55%; animation: breathe 4.2s ease-in-out infinite; }
.bunu .eyes { transform-origin: 50% 47%; animation: blink 5.3s infinite; }
.bunu .star { transform-origin: 82px 16px; animation: twinkle 2.6s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.035); } }
@keyframes blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(0.1); } }
@keyframes twinkle { 0%, 100% { transform: scale(0.85); opacity: 0.85; } 50% { transform: scale(1.1) rotate(12deg); opacity: 1; } }

footer.foot { padding: 28px 0 48px; font-size: 13.5px; color: var(--ink-3); }
footer.foot .wrap { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 24px; }
footer.foot nav { display: flex; gap: 18px; }
footer.foot a { text-decoration: none; }
footer.foot a:hover { color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ===== v4(12/5 사용자 피드백) ===== */
/* 첫 화면: 잠금화면 위로 알림이 번갈아 쌓임 */
.feed { position: relative; width: min(400px, 90vw); height: 236px; display: grid; align-content: start; gap: 10px; }
.feed .nt { display: grid; grid-template-columns: 38px 1fr auto; gap: 1px 12px; align-items: center; padding: 13px 16px; border-radius: 22px; background: rgba(255, 255, 255, 0.93); color: #141318; box-shadow: 0 20px 40px -22px rgba(0, 0, 0, 0.7); animation: ntIn 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.feed .nt.old { opacity: 0.55; transform: scale(0.96); transition: opacity 0.4s, transform 0.4s; }
.feed .nt img { grid-row: 1 / span 2; width: 38px; height: 38px; border-radius: 10px; }
.feed .nt b { font-size: 14.5px; }
.feed .nt time { font-size: 12px; color: #8a8994; }
.feed .nt span { grid-column: 2 / -1; font-size: 13.5px; color: #55545e; line-height: 1.45; }
@keyframes ntIn { from { opacity: 0; transform: translateY(-18px) scale(0.96); } to { opacity: 1; transform: none; } }

/* 지도 장면(SVG 로 직접 그림) */
.mapscene { position: relative; overflow: hidden; background: #edf0f5; color: #141318; }
.mapscene svg.map { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.mapscene .over { position: relative; z-index: 2; pointer-events: none; }
.mapscene .over a { pointer-events: auto; }
.group-map { min-height: min(94vh, 920px); }
.group-map::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(237, 240, 245, 0.97) 0%, rgba(237, 240, 245, 0.85) 30%, rgba(237, 240, 245, 0) 58%); pointer-events: none; }
.group-map .over { padding-top: clamp(100px, 11vw, 150px); }
.group-map h2, .replay-map h2 { font-size: clamp(40px, 6vw, 88px); letter-spacing: -0.055em; margin-top: 14px; }
.mapscene .lead { margin-top: 18px; max-width: 28em; font-size: 18px; color: #4d4c56; }
.maptoast { position: absolute; z-index: 3; right: max(20px, calc((100vw - 1200px) / 2)); bottom: 7%; width: min(340px, calc(100vw - 40px)); display: grid; gap: 8px; }
.maptoast .nt { display: grid; grid-template-columns: 36px 1fr auto; gap: 1px 12px; align-items: center; padding: 12px 16px; border-radius: 20px; background: #fff; box-shadow: 0 24px 50px -24px rgba(20, 16, 40, 0.45); animation: ntIn 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.maptoast .nt img { grid-row: 1 / span 2; width: 36px; height: 36px; border-radius: 10px; }
.maptoast .nt b { font-size: 14.5px; }
.maptoast .nt time { font-size: 12px; color: #8a8994; }
.maptoast .nt span { grid-column: 2 / -1; font-size: 13.5px; color: #55545e; }
.replay-map { min-height: min(100vh, 980px); }
.replay-map::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(100deg, rgba(237, 240, 245, 0.96) 0%, rgba(237, 240, 245, 0.8) 30%, rgba(237, 240, 245, 0) 55%); pointer-events: none; }
.replay-map .over { padding: clamp(110px, 12vw, 160px) 0 0; }
.replay-map .verdict { margin-top: 36px; max-width: 400px; padding: 20px 22px; border-radius: 22px; background: #fff; box-shadow: 0 24px 50px -30px rgba(20, 16, 40, 0.35); }
.verdict .tag { display: inline-block; font-size: 12.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: #141318; color: #fff; }
.verdict b { display: block; margin-top: 12px; font-size: 22px; letter-spacing: -0.03em; }
.verdict p { margin-top: 6px; color: #66656f; font-size: 15.5px; }
@media (max-width: 760px) {
  .group-map::before { background: linear-gradient(180deg, rgba(237, 240, 245, 0.97) 0%, rgba(237, 240, 245, 0.9) 42%, rgba(237, 240, 245, 0) 70%); }
  .replay-map::before { background: linear-gradient(180deg, rgba(237, 240, 245, 0.97) 0%, rgba(237, 240, 245, 0.9) 45%, rgba(237, 240, 245, 0) 72%); }
  .group-map, .replay-map { min-height: 860px; }
}

/* 부누 AI: 움직이는 대화 두 개 */
.ai { padding: var(--sec) 0 clamp(48px, 6vw, 72px); }
.ai .head { display: grid; gap: 28px; align-items: end; }
@media (min-width: 980px) { .ai .head { grid-template-columns: auto 1fr; gap: 48px; } }
.ai .head { align-items: center; }
/* 빛 번짐은 필터 대신 둥근 그라데이션 — 가장자리가 투명으로 끝나 사각 경계가 안 생김 */
.ai .big { position: relative; width: clamp(130px, 14vw, 180px); }
.ai .big::before { content: ''; position: absolute; inset: -45%; border-radius: 50%; background: radial-gradient(closest-side, rgba(156, 123, 255, 0.22), rgba(156, 123, 255, 0.08) 55%, rgba(156, 123, 255, 0) 100%); pointer-events: none; }
.ai .big .bunu { position: relative; width: 100%; height: auto; display: block; overflow: visible; }
.ai h2 { font-size: clamp(28px, 3.2vw, 46px); letter-spacing: -0.045em; line-height: 1.25; }
.ai .sub { margin-top: 10px; font-size: clamp(17px, 1.7vw, 22px); color: var(--ink-3); letter-spacing: -0.03em; font-weight: 500; }
@media (min-width: 980px) { .ai h2, .ai .sub { white-space: nowrap; } }
.board { display: grid; gap: 22px; margin-top: 64px; }
@media (min-width: 980px) { .board { grid-template-columns: 1fr 1fr; } }
.panel { border-radius: 30px; background: var(--card); border: 1px solid var(--line); padding: 22px 22px 18px; display: grid; grid-template-rows: auto 1fr auto; height: 600px; overflow: hidden; position: relative; }
.panel h3 { font-size: 15px; font-weight: 600; color: var(--ink-2); letter-spacing: -0.01em; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.log { display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; overflow: hidden; padding: 14px 0 6px; }
.log > * { animation: ntIn 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) both; flex: none; }
.msg { max-width: 84%; padding: 11px 15px; border-radius: 20px; font-size: 15.5px; line-height: 1.5; }
.msg.them { align-self: flex-start; background: var(--bg-2); border-top-left-radius: 6px; }
.msg.me { align-self: flex-end; background: var(--ink); color: var(--bg); border-top-right-radius: 6px; }
.msg.me b { color: #b9a9ff; }
.msg.bot { align-self: flex-start; background: #f1edff; color: #1f1640; border-top-left-radius: 6px; }
.who { font-size: 12px; color: var(--ink-3); margin-bottom: -6px; display: flex; align-items: center; gap: 6px; }
.who i { font-style: normal; font-size: 15px; }
.dots { align-self: flex-start; display: flex; gap: 5px; padding: 14px 16px; border-radius: 20px; background: #f1edff; }
.dots i { width: 7px; height: 7px; border-radius: 50%; background: #9c8ce8; animation: dot 1s infinite; }
.dots i:nth-child(2) { animation-delay: 0.15s; } .dots i:nth-child(3) { animation-delay: 0.3s; }
@keyframes dot { 0%, 60%, 100% { transform: translateY(0); opacity: 0.5; } 30% { transform: translateY(-4px); opacity: 1; } }
.rec { align-self: stretch; display: grid; grid-template-columns: 26px 1fr auto; gap: 1px 12px; align-items: center; padding: 12px 14px; border-radius: 16px; border: 1px solid var(--line); background: var(--card); }
.rec .rk { grid-column: 1; grid-row: 1 / span 2; font-weight: 700; font-size: 18px; color: var(--accent); }
.rec b { grid-column: 2; grid-row: 1; font-size: 16.5px; letter-spacing: -0.02em; }
.rec span { grid-column: 2; grid-row: 2; font-size: 13px; color: var(--ink-2); }
.rec em { grid-column: 3; grid-row: 1 / span 2; font-style: normal; font-size: 12.5px; font-weight: 600; padding: 6px 11px; border-radius: 999px; background: var(--bg-2); }
.inputbar { display: flex; align-items: center; gap: 10px; margin-top: 8px; padding: 8px 8px 8px 16px; border-radius: 999px; border: 1px solid var(--line); font-size: 15px; min-height: 48px; color: var(--ink); }
.inputbar .tx { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inputbar .tx:empty::before { content: '부누에게 물어보세요'; color: var(--ink-3); }
.inputbar .caret { width: 2px; height: 18px; background: var(--accent); margin-left: -8px; visibility: hidden; }
.inputbar.typing .caret { visibility: visible; } /* 입력하는 동안만, 깜빡임 없이(12/5) */
.inputbar .send { width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: var(--bg); display: grid; place-items: center; font-size: 15px; flex: none; }

/* 시리 대화 */
.siri2 { background: var(--night); color: var(--night-ink); padding: var(--sec) 0; overflow: hidden; }
.siri2 .wrap { display: grid; gap: 56px; align-items: center; }
@media (min-width: 980px) { .siri2 .wrap { grid-template-columns: 0.9fr 1.1fr; } }
.siri2 h2 { font-size: clamp(44px, 6.6vw, 100px); letter-spacing: -0.06em; line-height: 1.04; }
.siri2 h2 span { color: #55545f; }
.siri2 .copy p { margin-top: 24px; color: var(--night-ink-2); font-size: 18px; max-width: 26em; }
.siri2 .kicker { color: #b9a9ff; }
.siriscreen { position: relative; height: 620px; border-radius: 36px; background: linear-gradient(180deg, #15141c, #0f0e14); border: 1px solid rgba(255, 255, 255, 0.06); padding: 30px 28px 120px; display: flex; flex-direction: column; justify-content: flex-end; gap: 16px; overflow: hidden; }
.siriscreen .u { align-self: flex-end; max-width: 88%; font-size: clamp(20px, 2.2vw, 26px); font-weight: 600; letter-spacing: -0.03em; text-align: right; }
.siriscreen .u .pending { color: #6d6c78; }
.siriscreen .b { align-self: flex-start; max-width: 92%; display: flex; gap: 12px; align-items: flex-start; font-size: 17px; line-height: 1.55; color: #dcd9e8; }
.siriscreen .b svg { width: 34px; height: 34px; flex: none; }
.siriscreen > * { animation: ntIn 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.result { align-self: stretch; display: grid; gap: 2px; padding: 16px 18px; border-radius: 20px; background: #fff; color: #141318; }
.result div { display: grid; grid-template-columns: 26px 1fr; gap: 0 10px; align-items: center; padding: 6px 0; }
.result i { width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-style: normal; font-size: 13px; font-weight: 700; }
.result b { font-size: 15.5px; }
.result span { grid-column: 2; font-size: 13px; color: #66656f; }

/* 그룹 채팅 — 약속 초안 카드(부누 draft_event) */
.evcard { align-self: flex-start; width: 84%; display: grid; grid-template-columns: 34px 1fr; gap: 1px 10px; align-items: center; padding: 14px; border-radius: 18px; border: 1px solid var(--line); background: var(--card); }
.evcard .ic { grid-row: 1 / span 2; font-size: 22px; }
.evcard b { font-size: 16px; letter-spacing: -0.02em; }
.evcard span:not(.ic) { font-size: 13px; color: var(--ink-2); }
.evcard em { grid-column: 1 / -1; margin-top: 10px; font-style: normal; text-align: center; font-size: 14px; font-weight: 600; padding: 10px; border-radius: 12px; background: var(--accent); color: #fff; transition: background 0.2s, color 0.2s; }
.evcard em.tap { animation: tap 0.45s ease both; }
.evcard em.ok { background: #f1edff; color: #5b43d6; }

/* 리뷰 보기 눌림 → 리뷰 화면 */
.rec em { transition: transform 0.15s, background 0.15s, color 0.15s; position: relative; }
.rec em.tap { animation: tap 0.45s ease both; background: var(--accent); color: #fff; }
@keyframes tap { 0% { transform: scale(1); } 40% { transform: scale(0.88); } 100% { transform: scale(1); } }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; height: 74%; background: var(--card); border-top: 1px solid var(--line); border-radius: 26px 26px 0 0; box-shadow: 0 -18px 40px rgba(20, 19, 24, 0.10); padding: 12px 24px 20px; transform: translateY(104%); transition: transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1); }
.panel.sheet-on .sheet { transform: none; }
.board .log, .board .sheet { transition: opacity 0.35s ease, transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1); }
.board.fading .log, .board.fading .sheet { opacity: 0; } /* 스토리 넘어갈 때 페이드 */
.sheet .grab { display: block; width: 40px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 auto 16px; }
.sheet .sh b { display: block; font-size: 21px; letter-spacing: -0.03em; }
.sheet .sh span { font-size: 13.5px; color: var(--ink-2); }
.sheet .score { display: flex; align-items: center; gap: 10px; margin: 14px 0 6px; padding-bottom: 14px; border-bottom: 1px solid var(--line); font-size: 13.5px; color: var(--ink-2); }
.sheet .score strong { font-size: 30px; color: var(--ink); letter-spacing: -0.03em; }
.sheet .stars { color: #7b5cff; letter-spacing: 1px; font-size: 14px; }
.sheet ul { list-style: none; margin: 0; padding: 0; }
.sheet li { padding: 11px 0; border-bottom: 1px solid var(--line); }
.sheet li:last-child { border-bottom: 0; }
.sheet li p { margin: 3px 0 0; font-size: 14.5px; line-height: 1.5; }

/* 시리 화면 가운데 부누 — 상태별 움직임 */
.sbunu { position: absolute; left: 50%; bottom: 20px; width: 92px; height: 92px; margin-left: -46px; }
.sbunu::before { content: ''; position: absolute; inset: -60%; border-radius: 50%; background: radial-gradient(closest-side, rgba(156, 123, 255, 0.35), rgba(156, 123, 255, 0) 100%); transition: opacity 0.4s; opacity: 0.6; }
.sbunu.listen::before, .sbunu.talk::before { opacity: 1; }
.sbunu svg { position: relative; width: 100%; height: 100%; overflow: visible; }
.sbunu .bd, .sbunu .ey, .sbunu .mo { transform-box: fill-box; transform-origin: center; }
.sbunu .hp, .sbunu .mo, .sbunu .lg, .sbunu .ck { opacity: 0; }
.sbunu .ey { animation: blink 4.2s infinite; }
.sbunu.listen .bd { animation: listen 1.2s ease-in-out infinite; }
.sbunu.listen .ey { animation: blink 1.9s infinite; }
.sbunu.talk .bd { animation: bob 0.36s ease-in-out infinite alternate; }
.sbunu.talk .sm { opacity: 0; }
.sbunu.talk .mo { opacity: 1; animation: talk 0.18s ease-in-out infinite alternate; }
.sbunu.done .bd { animation: hop 0.6s cubic-bezier(0.3, 1.6, 0.5, 1) both; }
.sbunu.done .ey, .sbunu.done .sm { opacity: 0; animation: none; }
.sbunu.done .hp, .sbunu.done .lg, .sbunu.done .ck { opacity: 1; }
@keyframes listen { 0%, 100% { transform: scale(1) rotate(0); } 50% { transform: scale(1.08) rotate(-4deg); } }
@keyframes bob { from { transform: translateY(0) scale(1, 1); } to { transform: translateY(-4px) scale(1.03, 0.97); } }
@keyframes talk { from { transform: scaleY(0.25); } to { transform: scaleY(1); } }
@keyframes hop { 0% { transform: translateY(0) scale(1); } 40% { transform: translateY(-10px) scale(1.08); } 100% { transform: translateY(0) scale(1); } }

/* 고객지원 한 줄 */
.mini { padding: 40px 0 56px; font-size: 14px; color: var(--ink-3); }
.mini .wrap { display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 24px; }
.mini nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.mini a { text-decoration: none; color: var(--ink-2); }
.mini a:hover { color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  .feed .nt, .log > *, .siriscreen > *, .maptoast .nt, .sbunu *, .rec em.tap { animation: none !important; }
  .sheet { transition: none; }
}
@media (max-width: 760px) {
  .mapscene { display: flex; flex-direction: column; min-height: 0 !important; }
  .mapscene::before { display: none; }
  .mapscene svg.map { position: relative; order: 2; height: auto; }
  .mapscene svg.map[data-map='group'] { aspect-ratio: 1600 / 900; }
  .mapscene svg.map[data-map='trip'] { aspect-ratio: 1600 / 1000; }
  .mapscene .over { order: 1; padding: 96px 0 28px; }
  .maptoast { position: relative; order: 3; right: auto; bottom: auto; margin: 16px auto 40px; min-height: 140px; }
}
.replay-map .lead { max-width: none; }
@media (max-width: 760px) { .meet { min-height: 0; } }
