/* 말랑 — 밝고 귀여운 회화 앱. 굵은 고딕, 언어별 선명한 색, 말풍선 캐릭터. */

:root {
  --bg: #f3f4f9;
  --bg-2: #e9ebf3;
  --card: #ffffff;
  --card-2: #f5f6fb;
  --ink: #16172f;
  --ink-2: #4a4d6a;
  --ink-3: #8d90aa;
  --line: #e5e7f0;
  --line-2: #d4d7e5;
  --stage: #16172f;
  --stage-2: #262968;
  --stage-ink: #ffffff;
  --stage-dim: #a4a8cc;
  --sub-ko: #ffe27a;
  --good: #12b886;
  --warn: #f08c00;
  --flame: #ff7a1a;
  --shadow: 0 1px 2px rgba(22, 23, 47, 0.03), 0 10px 26px -18px rgba(22, 23, 47, 0.16);
  --shadow-lg: 0 24px 48px -24px rgba(22, 23, 47, 0.35);

  --f-ui: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  --f-target: var(--f-ui);

  --r: 20px;
  --r-lg: 28px;
  --gutter: 18px;
  --tab-h: 66px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}

/* 언어별 색: 영어 = 일렉트릭 블루, 일본어 = 코랄, 중국어 = 민트 */
/* 언어별 색: 영어 = 페리윙클 블루, 일본어 = 러블리 핑크, 중국어 = 민트 */
html[data-lang="en"] { --accent: #5b7cfa; --accent-2: #4361e6; --accent-ink: #fff; --grad: linear-gradient(140deg, #8aa2ff 0%, #5b7cfa 50%, #9277ff 100%); --bg-tint: #f2f4ff; }
html[data-lang="ja"] { --accent: #ff6f8b; --accent-2: #e8526f; --accent-ink: #fff; --grad: linear-gradient(140deg, #ffa58c 0%, #ff7f97 50%, #ff5f83 100%); --bg-tint: #fff4f5; --f-target: "Noto Sans JP", var(--f-ui); }
html[data-lang="zh"] { --accent: #20bf8e; --accent-2: #12a176; --accent-ink: #fff; --grad: linear-gradient(140deg, #5ddcb1 0%, #26c595 50%, #2fa9cc 100%); --bg-tint: #effbf6; --f-target: "Noto Sans SC", var(--f-ui); }
body { background: var(--bg-tint, var(--bg)); }
:root { --accent-soft: color-mix(in srgb, var(--accent) 12%, var(--card)); --accent-line: color-mix(in srgb, var(--accent) 30%, var(--line)); }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c0d19; --bg-2: #14152a; --card: #191a30; --card-2: #212340; --ink: #f2f3fa; --ink-2: #babcd4; --ink-3: #7f82a1;
    --line: #292b47; --line-2: #363959; --stage: #07081a; --stage-2: #1c1f55; --bg-tint: #0c0d19;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 30px -16px rgba(0, 0, 0, 0.7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0c0d19; --bg-2: #14152a; --card: #191a30; --card-2: #212340; --ink: #f2f3fa; --ink-2: #babcd4; --ink-3: #7f82a1;
  --line: #292b47; --line-2: #363959; --stage: #07081a; --stage-2: #1c1f55; --bg-tint: #0c0d19;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 30px -16px rgba(0, 0, 0, 0.7);
  color-scheme: dark;
}

/* ── 기본 ───────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font-family: var(--f-ui); font-size: 16px; line-height: 1.5;
  letter-spacing: -0.015em; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; overscroll-behavior-y: none;
}
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; }
ruby rt { font-size: 0.45em; letter-spacing: 0; color: var(--ink-3); font-weight: 600; }
.stage ruby rt { color: var(--stage-dim); }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 50%, transparent); outline-offset: 2px; border-radius: 10px; }
::selection { background: var(--accent-soft); }

.boot { min-height: 100dvh; display: grid; place-content: center; text-align: center; gap: 4px; }
.boot b { font-size: 28px; font-weight: 800; letter-spacing: -0.04em; }
.boot i { font-style: normal; color: var(--accent); font-weight: 700; }

.app { max-width: 560px; margin: 0 auto; min-height: 100dvh; position: relative; padding-bottom: calc(var(--tab-h) + var(--safe-b) + 28px); }

/* ── 머리 ───────────────────────────── */
.top {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: calc(env(safe-area-inset-top, 0px) + 10px) var(--gutter) 10px;
  background: color-mix(in srgb, var(--bg-tint, var(--bg)) 86%, transparent);
  backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px);
}
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.brand b { font-weight: 800; font-size: 21px; letter-spacing: -0.05em; }
.brand i { font-style: normal; font-size: 12px; font-weight: 800; color: var(--accent-ink); background: var(--accent); padding: 3px 9px; border-radius: 999px; letter-spacing: 0; }
.top-right { display: flex; align-items: center; gap: 6px; }
.streak-chip {
  display: inline-flex; align-items: center; gap: 4px; height: 34px; padding: 0 12px 0 9px; border-radius: 999px;
  background: var(--card); box-shadow: var(--shadow); font-weight: 800; font-size: 14px; font-variant-numeric: tabular-nums;
}
.streak-chip svg { width: 18px; height: 18px; color: var(--flame); }
.streak-chip.off svg { color: var(--ink-3); }

/* ── 아래 탭 ─────────────────────────── */
.tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; height: calc(var(--tab-h) + var(--safe-b)); padding-bottom: var(--safe-b);
  background: color-mix(in srgb, var(--card) 94%, transparent); backdrop-filter: saturate(1.6) blur(18px); -webkit-backdrop-filter: saturate(1.6) blur(18px);
  border-top: 1px solid var(--line);
}
.tabs nav { max-width: 560px; margin: 0 auto; height: var(--tab-h); display: grid; grid-template-columns: repeat(4, 1fr); }
.tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--ink-3); font-size: 11px; font-weight: 700; text-decoration: none; }
.tab svg { width: 25px; height: 25px; }
.tab.on { color: var(--accent); }
.tab .ti { display: grid; place-items: center; width: 52px; height: 30px; border-radius: 999px; transition: background 0.2s; }
.tab.on .ti { background: var(--accent-soft); }

/* ── 글자 ───────────────────────────── */
.page { padding: 6px var(--gutter) 24px; }
.enter { animation: rise 0.35s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.eyebrow { font-size: 13px; font-weight: 800; color: var(--accent); display: flex; align-items: center; gap: 6px; letter-spacing: -0.01em; }
.eyebrow .dot { display: none; }
.h1 { font-weight: 800; font-size: 28px; line-height: 1.25; letter-spacing: -0.045em; margin: 6px 0 4px; }
.h2 { font-weight: 800; font-size: 20px; line-height: 1.3; letter-spacing: -0.04em; margin: 0; }
.lede { color: var(--ink-2); font-size: 15px; margin: 4px 0 0; line-height: 1.55; }
.muted { color: var(--ink-3); }
.small { font-size: 13px; }
.t { font-family: var(--f-target); font-weight: 700; letter-spacing: -0.02em; line-height: 1.4; }
html[data-lang="ja"] .t, html[data-lang="zh"] .t { letter-spacing: 0.01em; }
.ko { font-size: 14px; color: var(--ink-2); line-height: 1.5; font-weight: 500; }
.roman { font-size: 13px; color: var(--accent); font-weight: 600; letter-spacing: 0; opacity: 0.9; }
.section { margin-top: 26px; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.section-head a, .link { font-size: 13px; color: var(--ink-3); text-decoration: none; font-weight: 700; }

/* ── 버튼 (눌리는 입체감) ─────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 54px; padding: 0 22px; border-radius: 16px;
  font-weight: 800; font-size: 16px; letter-spacing: -0.02em; text-decoration: none; white-space: nowrap; user-select: none; -webkit-user-select: none;
  transition: transform 0.08s ease, box-shadow 0.08s ease, background 0.2s, opacity 0.2s;
}
.btn svg { width: 19px; height: 19px; }
.btn-primary, .btn-accent { background: var(--accent); color: var(--accent-ink); box-shadow: 0 4px 0 var(--accent-2); }
.btn-primary:active, .btn-accent:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--accent-2); }
.btn-dark { background: var(--ink); color: var(--card); box-shadow: 0 4px 0 color-mix(in srgb, var(--ink) 70%, #000); }
.btn-line { background: var(--card); color: var(--ink); border: 2px solid var(--line-2); box-shadow: 0 3px 0 var(--line-2); }
.btn-line:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--line-2); }
.btn-ghost { color: var(--ink-2); }
.btn-white { background: #fff; color: #16172f; box-shadow: 0 4px 0 rgba(0, 0, 0, 0.18); }
.btn-white:active { transform: translateY(3px); box-shadow: 0 1px 0 rgba(0, 0, 0, 0.18); }
.btn-block { width: 100%; }
.btn-sm { height: 40px; padding: 0 15px; font-size: 14px; border-radius: 12px; }
.btn-sm.btn-primary, .btn-sm.btn-accent { box-shadow: 0 3px 0 var(--accent-2); }
.btn[disabled] { opacity: 0.45; pointer-events: none; }
.icon-btn { width: 42px; height: 42px; border-radius: 14px; display: inline-grid; place-items: center; color: var(--ink-2); transition: background 0.15s; }
.icon-btn:hover { background: var(--bg-2); }
.icon-btn svg { width: 23px; height: 23px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 13px; border-radius: 999px; flex: none; white-space: nowrap;
  background: var(--card); border: 1.5px solid var(--line-2); font-size: 13px; font-weight: 700; color: var(--ink-2);
}
.chip svg { width: 15px; height: 15px; flex: none; }
.chip.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.seg { display: inline-flex; padding: 4px; background: var(--bg-2); border-radius: 14px; gap: 2px; max-width: 100%; overflow-x: auto; }
.seg button { height: 34px; padding: 0 14px; border-radius: 10px; font-size: 13px; font-weight: 700; color: var(--ink-3); white-space: nowrap; }
.seg button.on { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); }
.play {
  width: 44px; height: 44px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent);
  transition: transform 0.1s, background 0.15s;
}
.play svg { width: 18px; height: 18px; }
.play:active { transform: scale(0.94); }
.play.on { background: var(--accent); color: var(--accent-ink); }

/* ── 카드 ───────────────────────────── */
.card { background: var(--card); border-radius: var(--r); padding: 18px; box-shadow: var(--shadow); }
.card + .card { margin-top: 12px; }
a.card { display: block; text-decoration: none; color: inherit; }
.row { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.row:last-child { border-bottom: 0; }
.row .grow, .grow { flex: 1; min-width: 0; }
.list-card { background: var(--card); border-radius: var(--r); padding: 4px 16px; box-shadow: var(--shadow); }

/* ── 오늘: 히어로 + 과제 ─────────────── */
.hero {
  position: relative; overflow: hidden; border-radius: var(--r-lg); padding: 18px 18px 20px; color: #fff; background: var(--grad);
  box-shadow: 0 20px 40px -22px color-mix(in srgb, var(--accent) 80%, #000); isolation: isolate;
}
.hero::before { content: ""; position: absolute; width: 260px; height: 260px; right: -70px; top: -90px; border-radius: 50%; background: rgba(255, 255, 255, 0.14); z-index: -1; }
.hero::after { content: ""; position: absolute; width: 160px; height: 160px; left: -60px; bottom: -80px; border-radius: 50%; background: rgba(255, 255, 255, 0.1); z-index: -1; }
.hero-top { display: flex; gap: 6px; flex-wrap: wrap; }
.pill-w { display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0 11px; border-radius: 999px; background: rgba(255, 255, 255, 0.2); font-size: 12px; font-weight: 800; }
.pill-w svg { width: 15px; height: 15px; }
.hero-main { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; margin-top: 12px; }
.hero-hi { font-size: 14px; font-weight: 700; opacity: 0.9; }
.hero-title { font-size: 27px; font-weight: 800; letter-spacing: -0.05em; line-height: 1.2; margin: 4px 0 6px; }
.hero-sub { font-size: 13px; font-weight: 700; opacity: 0.9; }
.hero .mascot { flex: none; margin: -6px -4px -8px 0; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.2)); }
.hero-bar { height: 10px; border-radius: 99px; background: rgba(255, 255, 255, 0.25); margin-top: 16px; overflow: hidden; }
.hero-bar i { display: block; height: 100%; border-radius: 99px; background: #fff; transition: width 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); }

.missions { display: grid; gap: 10px; }
.mission {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--r); background: var(--card); box-shadow: var(--shadow);
  text-decoration: none; color: inherit; transition: transform 0.12s;
}
.mission:active { transform: scale(0.985); }
.mission .mi-ic { width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); flex: none; }
.mission .mi-ic svg { width: 24px; height: 24px; }
.mission b { display: block; font-size: 16px; font-weight: 800; letter-spacing: -0.03em; }
.mission span.s { display: block; font-size: 13px; color: var(--ink-3); font-weight: 500; margin-top: 1px; }
.mission .mi-go { font-size: 13px; font-weight: 800; color: var(--accent); background: var(--accent-soft); padding: 5px 10px; border-radius: 999px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.mission.done .mi-ic { background: var(--good); color: #fff; }
.mission.done b { color: var(--ink-3); text-decoration: line-through; text-decoration-thickness: 2px; }
.mission.done .mi-go { color: var(--good); background: color-mix(in srgb, var(--good) 14%, var(--card)); }
.rest-card { display: flex; align-items: center; gap: 14px; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
.step { background: var(--card); border-radius: 16px; padding: 12px 6px 10px; text-align: center; box-shadow: var(--shadow); position: relative; }
.step .si { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 6px; background: var(--bg-2); color: var(--ink-3); }
.step .si svg { width: 18px; height: 18px; }
.step .l { font-size: 13px; font-weight: 800; }
.step .s { font-size: 11px; color: var(--ink-3); font-weight: 600; }
.step.now { box-shadow: 0 0 0 2px var(--accent), var(--shadow); }
.step.now .si { background: var(--accent); color: var(--accent-ink); }
.step.done .si { background: var(--good); color: #fff; }

.week { display: flex; gap: 8px; justify-content: space-between; }
.week .d { flex: 1; text-align: center; font-size: 12px; color: var(--ink-3); font-weight: 700; }
.week .c { width: 100%; max-width: 40px; aspect-ratio: 1; margin: 0 auto 6px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-2); color: var(--ink-3); font-size: 11px; font-weight: 800; }
.week .c svg { width: 18px; height: 18px; }
.week .c.part { background: var(--accent-soft); color: var(--accent); }
.week .c.full { background: var(--accent); color: var(--accent-ink); }
.week .d.today { color: var(--ink); }
.week .d.today .c { box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--accent); }

.quote-card { display: flex; gap: 14px; align-items: flex-start; }
.quote-card .t { font-size: 22px; }

.banner { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r); background: var(--card); box-shadow: var(--shadow); margin-top: 14px; font-size: 14px; }
.banner b { display: block; font-size: 14px; font-weight: 800; }
.banner span { font-size: 12px; color: var(--ink-3); }

/* ── 장면 카드 ───────────────────────── */
.scene-card {
  position: relative; display: flex; flex-direction: column; text-decoration: none; color: inherit; border-radius: var(--r); padding: 16px;
  background: var(--card); box-shadow: var(--shadow); overflow: hidden; isolation: isolate; transition: transform 0.12s; min-height: 150px;
}
.scene-card:active { transform: scale(0.985); }
.scene-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, color-mix(in srgb, var(--hue) 16%, transparent), transparent 70%); z-index: -1; }
.scene-card .ic { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; background: var(--hue); color: #fff; box-shadow: 0 8px 16px -8px var(--hue); }
.scene-card .ic svg { width: 26px; height: 26px; }
.scene-card .slug { font-size: 11px; font-weight: 700; color: var(--ink-3); letter-spacing: 0.02em; margin-top: 14px; text-transform: uppercase; }
.scene-card .title { font-size: 18px; font-weight: 800; letter-spacing: -0.04em; margin-top: 2px; line-height: 1.3; }
.scene-card .sub { font-family: var(--f-target); font-size: 15px; color: var(--ink-2); margin-top: 6px; font-weight: 600; }
.scene-card .meta { display: flex; gap: 6px; align-items: center; margin-top: auto; padding-top: 12px; font-size: 12px; color: var(--ink-3); font-weight: 700; flex-wrap: wrap; }
.scene-card .tag { background: color-mix(in srgb, var(--hue) 14%, var(--card)); color: color-mix(in srgb, var(--hue) 75%, var(--ink)); border-radius: 999px; padding: 3px 9px; }
.scene-card .done-mark { position: absolute; top: 14px; right: 14px; display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 800; color: var(--good); background: color-mix(in srgb, var(--good) 14%, var(--card)); padding: 4px 9px; border-radius: 999px; }
.scene-card .done-mark svg { width: 14px; height: 14px; }
.scene-card.big { flex-direction: row; gap: 14px; align-items: center; min-height: 0; }
.scene-card.big .slug { margin-top: 0; }
.scene-card.big .meta { padding-top: 8px; }
.scene-grid { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }

/* ── 장면 플레이어 ───────────────────── */
.player { position: fixed; inset: 0; z-index: 40; background: var(--bg-tint, var(--bg)); overflow-y: auto; animation: rise 0.25s ease both; }
.player-in { max-width: 560px; margin: 0 auto; padding: calc(env(safe-area-inset-top, 0px) + 6px) var(--gutter) calc(var(--safe-b) + 32px); }
.player-top { display: flex; align-items: center; gap: 8px; height: 54px; }
.player-top .ttl { font-weight: 800; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: -0.03em; }
.pbar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 4px 0 14px; }
.pbar span { height: 8px; border-radius: 99px; background: var(--line); }
.pbar span.on { background: var(--accent); }
.pbar span.done { background: var(--good); }
.step-label { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 800; color: var(--accent); background: var(--accent-soft); padding: 6px 12px; border-radius: 999px; margin-bottom: 12px; }
.step-label svg { width: 16px; height: 16px; }

.stage {
  position: relative; color: var(--stage-ink); border-radius: var(--r-lg); overflow: hidden; min-height: 330px; display: flex; flex-direction: column;
  padding: 16px 18px 18px; isolation: isolate; box-shadow: var(--shadow-lg);
  background: radial-gradient(120% 90% at 85% 0%, color-mix(in srgb, var(--accent) 55%, var(--stage-2)) 0%, var(--stage-2) 45%, var(--stage) 100%);
}
.stage .loc { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 800; letter-spacing: 0.04em; color: var(--stage-dim); background: rgba(255, 255, 255, 0.08); padding: 5px 10px; border-radius: 999px; text-transform: uppercase; }
.stage .loc svg { width: 13px; height: 13px; }
.cast { display: flex; justify-content: center; gap: 34px; margin: 18px 0 6px; }
.av { display: flex; flex-direction: column; align-items: center; gap: 6px; opacity: 0.45; transition: opacity 0.25s, transform 0.25s; }
.av .ring { width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center; background: var(--c); color: #fff; position: relative; }
.av .ring svg { width: 30px; height: 30px; }
.av span { font-size: 11px; font-weight: 800; color: var(--stage-dim); letter-spacing: 0.03em; }
.av.on { opacity: 1; transform: scale(1.08); }
.av.on .ring::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--c); opacity: 0.8; }
.av.on.talking .ring::after { animation: ring 1.1s ease-out infinite; }
.subs { flex: 1; min-height: 120px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 6px; text-align: center; padding: 8px 4px 0; }
.subs .st { font-family: var(--f-target); font-size: 24px; line-height: 1.4; font-weight: 700; text-shadow: 0 2px 6px rgba(0, 0, 0, 0.35); }
.subs .sr { font-size: 14px; color: var(--stage-dim); font-weight: 600; }
.subs .sk { font-size: 16px; color: var(--sub-ko); font-weight: 700; text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4); }
.subs .off { font-size: 13px; font-weight: 800; color: var(--stage-dim); letter-spacing: 0.04em; }
.line-dots { display: flex; gap: 5px; justify-content: center; margin-top: 14px; }
.line-dots i { width: 7px; height: 7px; border-radius: 99px; background: rgba(255, 255, 255, 0.2); transition: width 0.2s; }
.line-dots i.on { width: 20px; background: #fff; }
.line-dots i.past { background: rgba(255, 255, 255, 0.5); }

.eq { display: inline-flex; gap: 4px; align-items: center; height: 30px; }
.eq i { width: 4px; border-radius: 3px; background: currentColor; height: 6px; opacity: 0.9; }
.eq.on i { animation: eq 0.9s ease-in-out infinite; }
.eq.on i:nth-child(2) { animation-delay: 0.15s; } .eq.on i:nth-child(3) { animation-delay: 0.3s; }
.eq.on i:nth-child(4) { animation-delay: 0.45s; } .eq.on i:nth-child(5) { animation-delay: 0.6s; }
@keyframes eq { 0%, 100% { height: 6px; } 50% { height: 28px; } }
@keyframes ring { 0% { transform: scale(0.95); opacity: 0.9; } 100% { transform: scale(1.25); opacity: 0; } }

.controls { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 16px 0 6px; }
.controls .mid { display: flex; align-items: center; gap: 12px; }
.big-play { width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); box-shadow: 0 5px 0 var(--accent-2); }
.big-play:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--accent-2); }
.big-play svg { width: 28px; height: 28px; }
.tip { font-size: 14px; color: var(--ink-2); background: var(--card); border-radius: 18px; padding: 14px 16px; margin: 14px 0; line-height: 1.6; box-shadow: var(--shadow); font-weight: 500; }
.tip > div + div { margin-top: 4px; }
.tip b { color: var(--ink); font-weight: 800; }
.tip .k { font-family: var(--f-target); font-size: 18px; color: var(--accent); font-weight: 800; }
.tip.with-buddy { display: flex; gap: 12px; align-items: center; }
.tip.with-buddy .mascot { flex: none; }

.script-line { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: start; cursor: pointer; }
.script-line:last-child { border-bottom: 0; }
.script-line .who { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--c); color: #fff; }
.script-line .who svg { width: 18px; height: 18px; }
.script-line .t { font-size: 19px; }
.script-line.playing .t { color: var(--accent); }
.key { padding: 16px; background: var(--card); border-radius: var(--r); margin-top: 10px; box-shadow: var(--shadow); border-left: 5px solid var(--accent); }
.key .t { font-size: 19px; }
.key .note { font-size: 13px; color: var(--ink-3); margin-top: 6px; font-weight: 500; }

.write-card .prompt { font-size: 19px; font-weight: 800; letter-spacing: -0.03em; }
.answer-box { min-height: 62px; border: 2px dashed var(--line-2); border-radius: 16px; margin: 14px 0 12px; padding: 8px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.answer-box:empty::before { content: attr(data-ph); color: var(--ink-3); font-size: 13px; padding: 0 6px; font-weight: 600; }
.tiles { display: flex; flex-wrap: wrap; gap: 8px; }
.tile {
  font-family: var(--f-target); font-size: 18px; font-weight: 700; padding: 8px 14px; border-radius: 13px; background: var(--card);
  border: 2px solid var(--line-2); box-shadow: 0 3px 0 var(--line-2); transition: transform 0.08s, opacity 0.2s;
}
.tile:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--line-2); }
.tile.used { opacity: 0.2; pointer-events: none; }
.answer-box .tile { background: var(--accent-soft); border-color: var(--accent-line); box-shadow: 0 3px 0 var(--accent-line); }
.text-answer { width: 100%; min-height: 60px; margin: 14px 0 12px; padding: 14px; border-radius: 16px; border: 2px solid var(--line-2); background: var(--card-2); font-family: var(--f-target); font-size: 19px; font-weight: 600; resize: none; }
.text-answer:focus { outline: none; border-color: var(--accent); }
.result { border-radius: 16px; padding: 14px; margin-top: 12px; background: var(--card-2); }
.result .v { font-size: 14px; font-weight: 800; margin-bottom: 6px; }
.result .v.great, .result .v.good { color: var(--good); }
.result .v.retry { color: var(--warn); }
.result .t { font-size: 19px; }

.celebrate { text-align: center; padding: 26px 18px 22px; border-radius: var(--r-lg); background: var(--grad); color: #fff; position: relative; overflow: hidden; }
.celebrate .h1 { color: #fff; }
.celebrate p { margin: 6px 0 0; font-size: 14px; font-weight: 600; opacity: 0.92; }
.celebrate .mascot { filter: drop-shadow(0 12px 16px rgba(0, 0, 0, 0.2)); }
.confetti { position: absolute; inset: 0; pointer-events: none; }
.confetti i { position: absolute; width: 8px; height: 12px; border-radius: 2px; top: -14px; animation: fall 2.6s linear infinite; opacity: 0.9; }
@keyframes fall { to { transform: translateY(360px) rotate(540deg); } }
.keys-list { margin-top: 12px; }
.keys-list .kl { padding: 12px 0; border-top: 1px solid var(--line); }

/* ── 캐릭터 ─────────────────────────── */
.mascot { display: block; overflow: visible; }
.mascot .m-body { transform-origin: 60px 100px; animation: bob 3.2s ease-in-out infinite; }
.mascot .m-talk { display: none; }
.mascot .m-eyes { transform-origin: 60px 52px; animation: blink 4.5s infinite; }
.talking .mascot .m-idle, .mascot.talking .m-idle { display: none; }
.talking .mascot .m-talk, .mascot.talking .m-talk { display: inline; transform-origin: 60px 67px; animation: talk 0.26s ease-in-out infinite alternate; }
.talking .mascot .m-body, .mascot.talking .m-body { animation: bob 0.6s ease-in-out infinite; }
.mascot.mood-happy .m-body { animation: hop 0.9s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0) scale(1, 1); } 50% { transform: translateY(-3px) scale(1.01, 0.99); } }
@keyframes hop { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-9px) scale(0.98, 1.03); } 60% { transform: translateY(0) scale(1.04, 0.96); } }
@keyframes blink { 0%, 94%, 100% { transform: scaleY(1); } 96% { transform: scaleY(0.1); } }
@keyframes talk { from { transform: scaleY(0.45); } to { transform: scaleY(1.05); } }

/* ── 대화 ───────────────────────────── */
.buddy { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 10px 0 4px; }
.buddy .bubble { position: relative; background: var(--card); box-shadow: var(--shadow); border-radius: 20px; padding: 12px 16px; font-weight: 700; font-size: 15px; margin-bottom: 10px; max-width: 320px; }
.buddy .bubble .t { font-size: 17px; }
.buddy .bubble::after { content: ""; position: absolute; left: 50%; bottom: -8px; width: 16px; height: 16px; background: var(--card); transform: translateX(-50%) rotate(45deg); border-radius: 3px; }
.buddy .nm { font-size: 20px; font-weight: 800; margin-top: 6px; letter-spacing: -0.03em; }
.buddy .ps { font-size: 13px; color: var(--ink-3); font-weight: 600; }

.talk-head {
  position: sticky; top: 62px; z-index: 10; display: flex; align-items: center; gap: 10px; padding: 8px 0 10px;
  background: var(--bg-tint, var(--bg));
}
.talk-head .mini { width: 46px; height: 46px; flex: none; }
.talk-head .mini .mascot { width: 46px; height: 46px; }
.talk-head .who { flex: 1; min-width: 0; }
.talk-head .who b { font-size: 16px; font-weight: 800; display: block; line-height: 1.2; }
.talk-head .who span { font-size: 12px; color: var(--accent); font-weight: 700; }

.thread { padding: 8px 0 230px; display: flex; flex-direction: column; gap: 14px; }
.ai-row { display: flex; gap: 8px; align-items: flex-end; animation: rise 0.3s ease both; }
.ai-row .av-s { width: 38px; height: 38px; flex: none; }
.ai-row .av-s .mascot { width: 38px; height: 38px; }
.msg-ai { max-width: 86%; background: var(--card); border-radius: 22px 22px 22px 6px; padding: 14px 16px 10px; box-shadow: var(--shadow); }
.msg-ai .t { font-size: 20px; line-height: 1.45; transition: filter 0.4s, opacity 0.4s; }
.msg-ai .t.veil, .msg-ai .roman.veil { filter: blur(7px); opacity: 0.6; user-select: none; cursor: pointer; }
.msg-ai .roman { margin-top: 3px; }
.msg-ai .ko { margin-top: 5px; padding-top: 6px; border-top: 1px dashed var(--line); }
.msg-ai .acts { display: flex; gap: 6px; margin-top: 8px; align-items: center; flex-wrap: wrap; }
.msg-ai .acts .icon-btn { width: 34px; height: 34px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); }
.msg-ai .acts .icon-btn svg { width: 17px; height: 17px; }
.msg-ai .acts .chip { height: 30px; font-size: 12px; }
.msg-me { align-self: flex-end; max-width: 82%; text-align: right; animation: rise 0.25s ease both; }
.msg-me .bub { display: inline-block; text-align: left; background: var(--accent); color: var(--accent-ink); border-radius: 22px 22px 6px 22px; padding: 11px 16px; font-size: 16px; font-weight: 600; }
.msg-me .tag { font-size: 11px; color: var(--ink-3); margin-top: 4px; font-weight: 700; }
.msg-sys { text-align: center; font-size: 13px; color: var(--ink-3); font-weight: 600; }
.typing { display: inline-flex; gap: 5px; padding: 8px 2px 6px; }
.typing i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: blinkdot 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: 0.2s; } .typing i:nth-child(3) { animation-delay: 0.4s; }
@keyframes blinkdot { 0%, 80%, 100% { opacity: 0.25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }

.repeat-card {
  margin-left: 46px; background: var(--card); border-radius: 22px; padding: 16px; animation: rise 0.3s ease both;
  box-shadow: 0 0 0 2px var(--accent), var(--shadow);
}
.repeat-card .cue { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 800; color: var(--accent-ink); background: var(--accent); padding: 5px 11px; border-radius: 999px; }
.repeat-card .cue svg { width: 15px; height: 15px; }
.repeat-card .t { font-size: 23px; margin-top: 10px; }
.repeat-card .btns { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.repeat-card .heard { font-size: 13px; color: var(--ink-3); margin-top: 10px; font-weight: 600; }
.repeat-card.done { box-shadow: var(--shadow); opacity: 0.8; }
.repeat-card.done .btns { display: none; }
.repeat-card.done .cue { background: var(--good); }

.dock { position: fixed; left: 0; right: 0; bottom: calc(var(--tab-h) + var(--safe-b)); z-index: 25; pointer-events: none; }
.dock-in { max-width: 560px; margin: 0 auto; padding: 22px var(--gutter) 12px; pointer-events: auto; background: linear-gradient(to top, var(--bg-tint, var(--bg)) 70%, color-mix(in srgb, var(--bg-tint, var(--bg)) 0%, transparent)); }
.interim { text-align: center; min-height: 22px; font-size: 15px; color: var(--ink-2); margin-bottom: 10px; font-weight: 700; }
.dock-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; }
.mic {
  width: 80px; height: 80px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); position: relative;
  box-shadow: 0 6px 0 var(--accent-2), 0 18px 30px -12px color-mix(in srgb, var(--accent) 80%, #000); transition: transform 0.08s, box-shadow 0.08s;
}
.mic svg { width: 32px; height: 32px; }
.mic:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--accent-2); }
.mic.on { background: #ff4d5e; box-shadow: 0 6px 0 #d43142; }
.mic.on::before { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 3px solid #ff4d5e; animation: ring 1.1s ease-out infinite; }
.mic[disabled] { opacity: 0.4; }
.lang-toggle { justify-self: start; }
.dock-row .right { justify-self: end; display: flex; gap: 4px; }
.dock-row .right .icon-btn { background: var(--card); box-shadow: var(--shadow); border-radius: 50%; }
.type-row { display: flex; gap: 8px; margin-top: 12px; }
.type-row input { flex: 1; min-width: 0; height: 50px; border-radius: 16px; border: 2px solid var(--line-2); background: var(--card); padding: 0 16px; font-size: 16px; font-weight: 600; }
.type-row input:focus { outline: none; border-color: var(--accent); }
.type-row .btn { height: 50px; }

.topic-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.topic {
  text-align: left; border-radius: 20px; padding: 14px; background: var(--card); box-shadow: var(--shadow); min-height: 104px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 10px; transition: transform 0.12s;
}
.topic:active { transform: scale(0.97); }
.topic .ic { width: 38px; height: 38px; border-radius: 13px; display: grid; place-items: center; background: var(--hue, var(--accent)); color: #fff; }
.topic .ic svg { width: 21px; height: 21px; }
.topic b { font-size: 15px; font-weight: 800; display: block; letter-spacing: -0.03em; }
.topic span { font-size: 12px; color: var(--ink-3); line-height: 1.35; font-weight: 600; }
.topic.wide { grid-column: 1 / -1; flex-direction: row; align-items: center; min-height: auto; }

.notice { border-radius: var(--r); padding: 16px; background: var(--card); font-size: 14px; color: var(--ink-2); box-shadow: var(--shadow); }
.notice b { color: var(--ink); }
.notice code { font-size: 12px; background: var(--bg-2); padding: 2px 6px; border-radius: 6px; }

.wrap-card { border-radius: var(--r-lg); background: var(--grad); color: #fff; padding: 20px; position: relative; overflow: hidden; }
.wrap-card .eyebrow { color: #fff; opacity: 0.9; }
.wrap-card .t { font-size: 22px; margin-top: 8px; }
.wrap-card .ko { color: rgba(255, 255, 255, 0.9); }
.wrap-card .roman { color: rgba(255, 255, 255, 0.85); }
.wrap-card .play { background: rgba(255, 255, 255, 0.22); color: #fff; }
.wrap-list > div { border-top: 1px solid rgba(255, 255, 255, 0.2); }

/* ── 단어 ───────────────────────────── */
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat { background: var(--card); border-radius: 18px; padding: 14px; box-shadow: var(--shadow); }
.stat .n { font-size: 28px; line-height: 1; font-weight: 800; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.stat .l { font-size: 12px; color: var(--ink-3); margin-top: 6px; font-weight: 700; }
.stat.hl { background: var(--grad); color: #fff; }
.stat.hl .l { color: rgba(255, 255, 255, 0.85); }
.flash { min-height: 330px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px; padding: 28px 22px; }
.flash .t { font-size: 30px; line-height: 1.35; }
.flash .ko { font-size: 16px; }
.flash .hint { font-size: 19px; font-weight: 800; }
.rate-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.word-row .t { font-size: 19px; }
.word-row .ex { font-size: 13px; color: var(--ink-3); margin-top: 4px; font-weight: 500; }
.word-row .ex .t { font-size: 14px; color: var(--ink-2); }
.star { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: var(--ink-3); flex: none; }
.star svg { width: 20px; height: 20px; }
.star.on { color: var(--accent); }
.star.on svg { fill: currentColor; }
.empty { text-align: center; padding: 32px 10px; color: var(--ink-3); font-size: 14px; font-weight: 600; }
.empty .mascot { margin: 0 auto 10px; }
.empty .h2 { color: var(--ink); margin-bottom: 6px; }

/* ── 시트·토스트·폼 ───────────────────── */
.sheet-bg { position: fixed; inset: 0; z-index: 60; background: rgba(12, 13, 25, 0.45); animation: fade 0.2s ease both; }
@keyframes fade { from { opacity: 0; } }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 61; max-height: 92dvh; overflow-y: auto; background: var(--bg-tint, var(--bg));
  border-radius: 26px 26px 0 0; animation: up 0.28s cubic-bezier(0.2, 0.8, 0.2, 1) both; padding: 0 var(--gutter) calc(var(--safe-b) + 28px);
}
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
.sheet-in { max-width: 560px; margin: 0 auto; }
.sheet-head { position: sticky; top: 0; background: var(--bg-tint, var(--bg)); display: flex; align-items: center; justify-content: space-between; padding: 20px 0 12px; z-index: 1; }
.sheet-head::before { content: ""; position: absolute; top: 8px; left: 50%; width: 40px; height: 5px; margin-left: -20px; border-radius: 5px; background: var(--line-2); }
.group { margin-top: 18px; background: var(--card); border-radius: var(--r); padding: 6px 16px; box-shadow: var(--shadow); }
.group > .eyebrow { margin: 12px 0 2px; }
.field { display: grid; gap: 6px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.field:last-child { border-bottom: 0; }
.field > label, .field > .lbl { font-size: 13px; color: var(--ink-3); font-weight: 700; }
.field input[type="text"], .field input[type="number"], .field input[type="password"], .field select, .field textarea {
  width: 100%; border: 2px solid var(--line); background: var(--card-2); border-radius: 12px; padding: 10px 12px; font-size: 16px; font-weight: 600;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field textarea { min-height: 76px; resize: vertical; line-height: 1.5; }
.field.inline { grid-template-columns: 1fr auto; align-items: center; }
.voice-list { display: grid; gap: 8px; }
.voice { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 16px; border: 2px solid var(--line); background: var(--card); text-align: left; }
.voice.on { border-color: var(--accent); background: var(--accent-soft); }
.voice b { font-size: 16px; font-weight: 800; }
.voice span { display: block; font-size: 12px; color: var(--ink-3); font-weight: 600; }
.switch { width: 50px; height: 30px; border-radius: 999px; background: var(--line-2); position: relative; transition: background 0.2s; flex: none; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform 0.2s; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25); }
.switch.on { background: var(--accent); }
.switch.on::after { transform: translateX(20px); }
input[type="range"] { width: 100%; accent-color: var(--accent); }
.range-val { font-variant-numeric: tabular-nums; font-weight: 800; font-size: 14px; color: var(--accent); }

.toast {
  position: fixed; left: 0; right: 0; margin: 0 auto; width: fit-content; top: calc(env(safe-area-inset-top, 0px) + 68px); z-index: 80;
  background: var(--ink); color: var(--card); padding: 12px 18px; border-radius: 16px; font-size: 14px; font-weight: 700; max-width: calc(100vw - 32px);
  text-align: center; animation: rise 0.25s ease both; box-shadow: 0 14px 34px -12px rgba(0, 0, 0, 0.45); display: flex; align-items: center; gap: 10px;
}
.toast .mascot { flex: none; }
.install-steps { display: grid; gap: 10px; margin: 8px 0 0; padding: 0; counter-reset: s; }
.install-steps li { list-style: none; counter-increment: s; display: grid; grid-template-columns: 30px 1fr; gap: 10px; font-size: 14px; color: var(--ink-2); font-weight: 600; align-items: center; }
.install-steps li::before { content: counter(s); width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-size: 13px; font-weight: 800; }
.install-steps svg { width: 17px; height: 17px; vertical-align: -3px; }
.kbd-hint { display: none; text-align: center; font-size: 12px; color: var(--ink-3); margin-top: 8px; font-weight: 600; }
.kbd-hint kbd { font-family: inherit; font-weight: 800; border: 1.5px solid var(--line-2); border-bottom-width: 3px; border-radius: 6px; padding: 0 6px; background: var(--card); }

/* ── 태블릿 ─────────────────────────── */
@media (min-width: 760px) {
  :root { --gutter: 28px; }
  .app, .tabs nav, .dock-in, .player-in, .sheet-in { max-width: 760px; }
  .h1 { font-size: 34px; }
  .hero { padding: 24px 26px 26px; }
  .hero-title { font-size: 34px; }
  .missions { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
  .missions .mission { flex-direction: column; align-items: flex-start; gap: 10px; }
  .missions .mission .mi-go { margin-top: auto; }
  .scene-grid { grid-template-columns: repeat(3, 1fr); }
  .topic-grid { grid-template-columns: repeat(4, 1fr); }
  .stage { min-height: 400px; padding: 20px 28px 22px; }
  .subs .st { font-size: 30px; }
  .subs .sk { font-size: 18px; }
  .msg-ai .t { font-size: 22px; }
  .repeat-card .t { font-size: 26px; }
  .flash .t { font-size: 36px; }
  .quote-card .t { font-size: 26px; }
  .tab { flex-direction: row; gap: 4px; font-size: 13px; }
  .tab .ti { width: 40px; }
  .sheet { left: 50%; right: auto; width: min(760px, 100%); transform: translateX(-50%); animation: fade 0.22s ease both; }
}

/* ── PC 웹 · 큰 태블릿 가로: 왼쪽 메뉴 ── */
@media (min-width: 1080px) {
  :root { --rail: 108px; }
  body { padding-left: var(--rail); }
  .app { max-width: 860px; padding-bottom: 64px; }
  .dock-in, .player-in, .sheet-in { max-width: 860px; }
  .tabs { top: 0; bottom: 0; right: auto; width: var(--rail); height: 100dvh; padding: 0; border-top: 0; border-right: 1px solid var(--line); }
  .tabs nav { height: auto; display: flex; flex-direction: column; gap: 6px; padding-top: 86px; }
  .tab { flex-direction: column; height: 76px; gap: 4px; font-size: 12px; margin: 0 12px; border-radius: 18px; }
  .tab .ti { width: 56px; height: 34px; }
  .tab:hover { color: var(--ink); }
  .tab:hover .ti { background: var(--bg-2); }
  .tab.on .ti { background: var(--accent-soft); }
  .dock { bottom: 0; left: var(--rail); }
  .toast { left: var(--rail); }
  .player { left: var(--rail); }
  .scene-grid { grid-template-columns: repeat(3, 1fr); }
  .scene-card:hover, .topic:hover, .mission:hover { transform: translateY(-3px); }
  .kbd-hint { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.celebrate .mascot { margin: 0 auto; }
.av.me .ring { color: var(--accent); }
.script-line.me .who { background: var(--accent-soft); color: var(--accent); }
.voice .play { display: grid; width: 36px; height: 36px; }

/* ── 애인 카드 (오늘 화면 맨 위) ─────── */
.love-row { display: flex; align-items: flex-end; gap: 4px; margin-top: 10px; }
.love-av { flex: none; margin: 0 -6px -6px -8px; filter: drop-shadow(0 10px 12px rgba(0, 0, 0, 0.12)); }
.love-bubble {
  position: relative; flex: 1; min-width: 0; text-align: left; color: #16172f; background: #fff; border-radius: 22px 22px 22px 6px;
  padding: 14px 40px 12px 15px; margin-bottom: 34px; box-shadow: 0 10px 24px -14px rgba(0, 0, 0, 0.35);
}
.love-bubble .t { font-size: 17px; line-height: 1.4; }
.love-bubble .ko { font-size: 13px; margin-top: 3px; color: #4a4d6a; }
.love-bubble .roman { font-size: 12px; }
.love-bubble .lb-play { position: absolute; right: 10px; top: -12px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; box-shadow: 0 3px 0 var(--accent-2); }
.love-bubble .lb-play svg { width: 16px; height: 16px; }
.love-meter { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 13px; font-weight: 800; flex-wrap: wrap; }
.love-meter .lm-name { font-size: 15px; }
.love-meter .lm-lv { display: inline-flex; align-items: center; gap: 4px; background: rgba(255, 255, 255, 0.25); padding: 3px 10px; border-radius: 999px; }
.love-meter .lm-lv svg { width: 14px; height: 14px; color: #fff; }
.love-meter .lm-bar { flex-basis: 100%; height: 10px; border-radius: 99px; background: rgba(255, 255, 255, 0.3); overflow: hidden; }
.love-meter .lm-bar i { display: block; height: 100%; border-radius: 99px; background: #fff; }
.mascot .m-hearts { animation: floaty 1.6s ease-in-out infinite; transform-origin: 60px 20px; }
@keyframes floaty { 0%, 100% { transform: translateY(0); opacity: 1; } 50% { transform: translateY(-4px); opacity: 0.85; } }
.mascot .m-ears { transform-origin: 60px 45px; animation: wiggle 5s ease-in-out infinite; }
@keyframes wiggle { 0%, 88%, 100% { transform: rotate(0); } 92% { transform: rotate(-3deg); } 96% { transform: rotate(3deg); } }
.name-chips { display: flex; flex-wrap: wrap; gap: 6px; }
