/* HanTalk · ハナトーク — 디자인 시스템 (20개 화면 와이어프레임 기준) */
:root {
  --bg: #F5F6FB;
  --bg-outer: #E9EBF6;
  --surface: #FFFFFF;
  --surface-2: #F1F3FA;
  --text: #1C2140;
  --text-2: #4A5070;
  --muted: #8A8FA8;
  --line: #E7E9F2;
  --primary: #4F5BFF;
  --primary-strong: #3C46E6;
  --primary-soft: #ECEEFF;
  --primary-grad: linear-gradient(135deg, #5C6CFF 0%, #4A4FE8 100%);
  --on-primary: #FFFFFF;
  --violet: #8B5CF6; --violet-soft: #F1EBFF;
  --blue: #3B82F6; --blue-soft: #E6F0FF;
  --mint: #16B39A; --mint-soft: #DFF6F1;
  --orange: #FF8A3D; --orange-soft: #FFF0E5;
  --gold: #F2A51A; --gold-soft: #FFF5DC;
  --pink: #F2557C; --pink-soft: #FFE9EF;
  --red: #EF4459; --red-soft: #FFE9EC;
  --green: #18A957; --green-soft: #E2F6EA;
  --bubble-mine: #4F5BFF;
  --bubble-theirs: #FFFFFF;
  --room-wall: #EEF0FF;
  --room-floor: #DCDDF5;
  --shadow: 0 4px 18px rgba(40, 48, 120, .07);
  --shadow-lg: 0 12px 34px rgba(40, 48, 120, .14);
  --radius: 18px;
  --font: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", "맑은 고딕", "Hiragino Sans", "Yu Gothic UI", "Meiryo", system-ui, sans-serif;
  --font-ja: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", "Meiryo", "Noto Sans JP", system-ui, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not(.sb) {
    --bg: #12131D; --bg-outer: #0B0C13; --surface: #1C1E2B; --surface-2: #252838; --text: #EEF0FA; --text-2: #C3C6DA; --muted: #8E92AB;
    --line: #2E3245; --primary-soft: #262B55; --violet-soft: #2D2547; --blue-soft: #1D2B47; --mint-soft: #173A35; --orange-soft: #3A2A1E;
    --gold-soft: #3A321D; --pink-soft: #3E2230; --red-soft: #432228; --green-soft: #1A3626; --bubble-theirs: #252838;
    --room-wall: #222538; --room-floor: #2B2E45; --shadow: 0 4px 18px rgba(0, 0, 0, .35); --shadow-lg: 0 12px 34px rgba(0, 0, 0, .45); color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg-outer); color: var(--text); font-family: var(--font); font-size: 15px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; word-break: keep-all; overflow-wrap: anywhere;
}
:lang(ja) { font-family: var(--font-ja); word-break: normal; line-break: strict; }
:lang(ko) { font-family: var(--font); word-break: keep-all; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
button:disabled { cursor: default; opacity: .45; }
input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.3; letter-spacing: -.2px; }
h2 { font-size: 21px; }
h3 { font-size: 16px; }
p { margin: 6px 0; }
ul { margin: 0; }

.app { max-width: 430px; min-height: 100vh; min-height: 100dvh; margin: 0 auto; background: var(--bg); position: relative; display: flex; flex-direction: column; box-shadow: 0 0 60px rgba(40, 48, 120, .10); }
.page { flex: 1; padding: 4px 16px 100px; display: flex; flex-direction: column; gap: 14px; }

/* 후리가나: 한자 위 작은 히라가나 */
ruby { ruby-position: over; ruby-align: center; }
rt { font-size: max(.52em, 8.5px); font-weight: 500; color: var(--muted); letter-spacing: 0; line-height: 1.1; user-select: none; -webkit-user-select: none; }
.mine .bubble rt { color: rgba(255, 255, 255, .8); }
html.no-fu .fu rt { display: none; }
:is(.orig, .tr, .mc-orig, .mc-tr, .q-question, .example, .d-val, .mission-text, .speech):has(ruby) { line-height: 2.05; }
html:not(.no-fu) .fw { cursor: pointer; border-radius: 5px; transition: background .2s; }
html:not(.no-fu) .fw rt { cursor: pointer; padding: 1px 0 2px; }
html:not(.no-fu) .fw:hover rt { color: var(--primary); text-decoration: underline dotted; text-underline-offset: 2px; }
.mine .bubble .fw:hover rt { color: #fff; }
.fw.saying { background: color-mix(in srgb, var(--primary) 18%, transparent); }
.fw.saying rt { color: var(--primary); font-weight: 800; }
.mine .bubble .fw.saying { background: rgba(255, 255, 255, .25); }
.mine .bubble .fw.saying rt { color: #fff; }
.fu[data-lang=ko] rt { font-size: max(.46em, 8px); letter-spacing: -.2px; }
.fu-btn { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; background: var(--surface-2); color: var(--muted); font-weight: 800; font-size: 15px; line-height: 1; }
.fu-btn rt { font-size: 8px; color: inherit; }
.fu-btn.on { background: var(--primary-soft); color: var(--primary); }

/* 유틸 */
.muted { color: var(--muted); }
.small { font-size: 13px; }
.tiny { font-size: 11.5px; }
.center { text-align: center; }
.right { margin-left: auto; }
.grow { flex: 1; min-width: 0; }
.row { display: flex; align-items: center; gap: 12px; }
.gap-6 { gap: 6px; } .gap-8 { gap: 8px; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.hidden { display: none !important; }
.big-emoji { font-size: 48px; line-height: 1.1; }
.ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pop-in { animation: pop .35s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes pop { from { transform: scale(.9); opacity: 0; } to { transform: none; opacity: 1; } }
.ic { width: 22px; height: 22px; flex: none; display: block; }
.chev { width: 18px; height: 18px; color: var(--muted); }
.country { color: var(--muted); font-size: 12.5px; font-weight: 500; margin-left: 2px; }
.online { color: var(--green); font-weight: 600; }
.primary-text { color: var(--primary); font-weight: 600; }

/* 상단바 · 탭바 */
.appbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 8px; padding: 10px 16px; min-height: 58px; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(12px); }
.appbar h1 { font-size: 22px; font-weight: 800; flex: 1; }
.appbar.sub h1 { font-size: 17px; font-weight: 700; text-align: center; }
.appbar.sub .appbar-actions { min-width: 38px; justify-content: flex-end; }
.appbar-actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.logo { display: inline-flex; align-items: center; gap: 8px; }
.logo b { font-size: 21px; font-weight: 800; letter-spacing: -.5px; color: var(--text); }
.coin-chip { display: inline-flex; align-items: center; gap: 4px; padding: 5px 11px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; }
.icon-btn { position: relative; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: var(--text-2); flex: none; }
.icon-btn:hover { background: var(--surface-2); }
.icon-btn.round { border-radius: 50%; }
.icon-btn.soft { background: var(--primary-soft); color: var(--primary); }
.icon-btn.on { color: var(--primary); }
.dot-badge { position: absolute; top: 3px; right: 2px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--red); color: #fff; font-size: 10px; font-style: normal; font-weight: 700; display: grid; place-items: center; border: 2px solid var(--bg); }

.tabbar { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 430px; z-index: 30; display: grid; grid-template-columns: repeat(5, 1fr);
  padding: 6px 6px calc(8px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); }
.tab { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 0; font-size: 11px; color: var(--muted); }
.tab-ic { position: relative; }
.tab-ic .ic { width: 24px; height: 24px; }
.tab-ic .dot-badge { top: -6px; right: -12px; border-color: var(--surface); }
.tab.on { color: var(--primary); font-weight: 700; }
.tab.on .ic { stroke-width: 2.3; }

/* 버튼 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; padding: 11px 18px; border-radius: 14px; font-weight: 700; background: var(--surface-2); color: var(--text); transition: transform .1s, filter .15s; }
.btn .ic { width: 20px; height: 20px; }
.btn:active:not(:disabled) { transform: scale(.97); }
.btn.primary { background: var(--primary-grad); color: var(--on-primary); box-shadow: 0 6px 16px rgba(79, 91, 255, .28); }
.btn.primary:hover:not(:disabled) { filter: brightness(1.05); }
.btn.primary:disabled { background: #C3C7EE; box-shadow: none; opacity: 1; }
.btn.soft { background: var(--primary-soft); color: var(--primary); }
.btn.ghost { background: var(--surface); border: 1.5px solid var(--line); color: var(--text-2); }
.btn.glass { background: rgba(255, 255, 255, .14); border: 1.5px solid rgba(255, 255, 255, .55); color: #fff; backdrop-filter: blur(6px); }
.btn.white { background: #fff; color: #3A2C8F; }
.btn.apple { background: #111; color: #fff; }
.btn.google { background: #fff; color: #1F1F1F; border: 1.5px solid var(--line); }
.btn.danger-soft { background: var(--red-soft); color: var(--red); }
.btn.lg { padding: 15px 20px; font-size: 16px; border-radius: 16px; }
.btn.sm { padding: 8px 13px; font-size: 13px; border-radius: 11px; }
.btn.xs { padding: 6px 11px; font-size: 12.5px; border-radius: 10px; }
.btn.wide { width: 100%; }
.link { color: var(--primary); font-weight: 700; padding: 4px; }
.link.light { color: rgba(255, 255, 255, .85); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.link.danger { color: var(--red); font-weight: 500; font-size: 13px; }
.center-link { display: block; margin: 6px auto 0; }
.mini { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; color: var(--primary); vertical-align: middle; }
.mini .ic { width: 17px; height: 17px; }
.mini:hover { background: var(--primary-soft); }

/* 칩 · 태그 · 세그먼트 */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips.center { justify-content: center; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1.5px solid var(--line); font-size: 13px; white-space: nowrap; color: var(--text-2); }
.chip.on { background: var(--primary-soft); border-color: transparent; color: var(--primary); font-weight: 700; }
.chip.sm { padding: 4px 10px; font-size: 13px; }
.chip.good { background: var(--mint-soft); border-color: transparent; color: var(--mint); font-weight: 600; }
.chip.warn { background: var(--pink-soft); border-color: transparent; color: var(--pink); font-weight: 600; }
.scroll-chips { display: flex; gap: 6px; overflow-x: auto; padding: 2px; scrollbar-width: none; }
.scroll-chips::-webkit-scrollbar { display: none; }
.tag { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-weight: 700; white-space: nowrap; vertical-align: middle; }
.tag.mint { background: var(--mint-soft); color: var(--mint); }
.tag.violet { background: var(--violet-soft); color: var(--violet); }
.tag.blue { background: var(--blue-soft); color: var(--blue); }
.tag.gold { background: var(--gold-soft); color: var(--gold); margin-left: 6px; }
.tag-demo { font-size: 9px; font-weight: 800; font-style: normal; margin-left: 6px; padding: 1px 5px; border-radius: 6px; background: var(--gold-soft); color: var(--gold); vertical-align: middle; letter-spacing: .4px; }
.seg-tabs { display: flex; gap: 4px; padding: 4px; background: var(--surface-2); border-radius: 14px; }
.seg-tabs button { flex: 1; padding: 8px 6px; border-radius: 11px; font-size: 13.5px; color: var(--muted); font-weight: 600; white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 4px; }
.seg-tabs button.on { background: var(--surface); color: var(--primary); box-shadow: var(--shadow); }
.seg-tabs.sm button { font-size: 12.5px; padding: 6px 8px; }
.seg-badge { font-style: normal; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--red); color: #fff; font-size: 10.5px; display: grid; place-items: center; }

/* 카드 · 공통 블록 */
.card { background: var(--surface); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); border: 1px solid var(--line); text-align: left; }
button.card { width: 100%; display: flex; align-items: center; gap: 12px; }
.section-title { font-size: 15.5px; font-weight: 800; margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.page-title { display: flex; flex-direction: column; gap: 2px; padding-top: 4px; }
.page-title h2 { font-size: 23px; font-weight: 800; }
.st-ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.st-ic .ic { width: 20px; height: 20px; }
.st-ic.lg { width: 46px; height: 46px; border-radius: 14px; }
.st-ic.lg .ic { width: 24px; height: 24px; }
.st-ic.blue { background: var(--blue-soft); color: var(--blue); }
.st-ic.violet { background: var(--violet-soft); color: var(--violet); }
.st-ic.orange { background: var(--orange-soft); color: var(--orange); }
.st-ic.gold { background: var(--gold-soft); color: var(--gold); }
.st-ic.mint { background: var(--mint-soft); color: var(--mint); }
.st-ic.pink { background: var(--pink-soft); color: var(--pink); }
.empty { text-align: center; padding: 40px 20px; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.loading { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 60px 20px; text-align: center; }
.loading svg.pet-svg { width: 130px; }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 4px solid var(--primary-soft); border-top-color: var(--primary); animation: spin .8s linear infinite; }
.spinner.sm { width: 16px; height: 16px; border-width: 3px; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.demo-note { display: flex; gap: 8px; align-items: flex-start; font-size: 12px; color: var(--text-2); background: var(--gold-soft); border-radius: 12px; padding: 10px 12px; margin: 0; }
.demo-note .ic { width: 16px; height: 16px; color: var(--gold); margin-top: 1px; }
.demo-strip { font-size: 11.5px; text-align: center; padding: 4px 10px; background: var(--gold-soft); color: var(--text-2); }
.bar { display: block; height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.bar.sm { height: 6px; }
.bar > i, .bar > b { display: block; height: 100%; border-radius: inherit; background: var(--primary-grad); transition: width .5s; }
.bar > .warm { background: linear-gradient(90deg, #FFB347, #FF8A3D); }
.bar > .pink { background: linear-gradient(90deg, #FF8FAB, #F2557C); }
.bar > .gold { background: linear-gradient(90deg, #FFD66B, #F2A51A); }
.bottom-cta { margin-top: auto; padding-top: 6px; }

/* 아바타 */
.av { position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--surface-2); }
.av .person { width: 100%; height: 100%; border-radius: 50%; display: block; }
.av-emoji { font-size: 22px; }
.av.sm { width: 34px; height: 34px; }
.av.lg { width: 52px; height: 52px; }
.av.xl { width: 84px; height: 84px; }
.av.xxl { width: 104px; height: 104px; }
.av-ai { position: absolute; bottom: -2px; right: -4px; font-size: 8.5px; font-style: normal; font-weight: 800; background: var(--violet); color: #fff; padding: 1px 4px; border-radius: 6px; border: 2px solid var(--surface); }
.av.sm .av-ai { display: none; }
.av-dot { position: absolute; bottom: 1px; right: 1px; width: 11px; height: 11px; border-radius: 50%; background: var(--green); border: 2px solid var(--surface); }

/* 1 스플래시 */
.splash { position: relative; flex: 1; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; color: #fff; overflow: hidden; }
.hero-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.splash-lang { position: relative; align-self: flex-end; margin: 14px 16px 0; display: flex; gap: 2px; padding: 3px; border-radius: 12px; background: rgba(255, 255, 255, .16); backdrop-filter: blur(8px); }
.splash-lang button { padding: 5px 10px; border-radius: 9px; font-size: 12.5px; color: rgba(255, 255, 255, .8); }
.splash-lang button.on { background: #fff; color: var(--primary); font-weight: 700; }
.splash-brand { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; margin-top: 18vh; }
.splash-brand svg { filter: drop-shadow(0 10px 24px rgba(20, 20, 80, .35)); }
.splash-brand h1 { font-size: 40px; font-weight: 900; letter-spacing: -1px; margin-top: 10px; text-shadow: 0 4px 18px rgba(20, 20, 80, .35); }
.splash-brand p { margin: 0; font-size: 17px; font-weight: 700; }
.splash-brand p.sub { font-size: 14px; font-weight: 500; opacity: .85; }
.splash-actions { position: relative; margin-top: auto; padding: 20px 20px calc(24px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 10px; }
.demo-row { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 12px; color: rgba(255, 255, 255, .75); margin-top: 4px; }
.demo-row button { display: inline-flex; align-items: center; gap: 5px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .16); color: #fff; font-size: 13px; font-weight: 600; }

/* 2~6 온보딩 */
.auth-page { flex: 1; display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; background: var(--surface); }
.auth-page .appbar { background: var(--surface); }
.step-bar { height: 4px; margin: 0 20px; background: var(--surface-2); border-radius: 4px; overflow: hidden; }
.step-bar i { display: block; height: 100%; background: var(--primary-grad); border-radius: 4px; transition: width .4s; }
.auth-body { flex: 1; display: flex; flex-direction: column; padding: 20px 22px 24px; gap: 10px; }
.auth-foot { text-align: center; padding: 12px 20px calc(24px + env(safe-area-inset-bottom)); color: var(--muted); font-size: 14px; }
.hero-title { font-size: 24px; font-weight: 800; letter-spacing: -.5px; line-height: 1.35; }
.grow-space { flex: 1; min-height: 12px; }
.form { display: flex; flex-direction: column; gap: 14px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 700; color: var(--text-2); }
.form input:not([type=checkbox]), .form select { padding: 13px 14px; border-radius: 13px; border: 1.5px solid var(--line); background: var(--bg); font-size: 16px; outline: none; color: var(--text); }
.form input:focus, .form select:focus { border-color: var(--primary); background: var(--surface); }
.form input:disabled { color: var(--muted); }
.form label.check { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 500; font-size: 13.5px; color: var(--text); }
.form label.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--primary); flex: none; }
.req { color: var(--primary); }
.opt { color: var(--muted); }
.form-err { color: var(--red); font-size: 13px; min-height: 1em; margin: 0; }
.lang-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lang-card { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 22px 10px 16px; border-radius: 20px; border: 2px solid var(--line); background: var(--surface); transition: border-color .15s, transform .15s; }
.lang-card b { font-size: 17px; }
.lang-card .pill { font-size: 12.5px; padding: 5px 14px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-weight: 700; }
.lang-card.on { border-color: var(--primary); background: var(--primary-soft); transform: translateY(-2px); }
.lang-card.on .pill { background: var(--primary); color: #fff; }
.flag { display: block; flex: none; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .08)); }
.lang-result { display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; padding: 12px; border-radius: 14px; background: var(--surface-2); font-size: 14px; color: var(--text-2); }
.lang-result .flag { display: inline-block; }
.lang-result .arrow { color: var(--primary); font-weight: 800; }
.avatar-edit { position: relative; align-self: center; }
.avatar-edit .shuffle { position: absolute; right: -6px; bottom: 0; width: 36px; height: 36px; background: var(--primary); color: #fff; border: 3px solid var(--surface); }
.avatar-edit .shuffle .ic { width: 18px; height: 18px; }
.avatar-presets { display: flex; justify-content: center; gap: 8px; margin: 6px 0 8px; }
.avatar-presets button { width: 40px; height: 40px; border-radius: 50%; border: 2px solid transparent; padding: 0; overflow: hidden; }
.avatar-presets button.on { border-color: var(--primary); }
.avatar-presets svg { width: 100%; height: 100%; display: block; }
.step-count { align-self: flex-start; font-size: 13px; font-weight: 700; color: var(--primary); background: var(--primary-soft); padding: 3px 10px; border-radius: 999px; }
.q-label { font-weight: 700; color: var(--text-2); font-size: 15px; }
.word-box { display: flex; flex-direction: column; align-items: center; padding: 18px; border-radius: 16px; background: var(--surface-2); font-size: 26px; font-weight: 800; }
.word-box small { font-size: 13px; font-weight: 500; color: var(--muted); }
.options { display: flex; flex-direction: column; gap: 9px; }
.option { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1.5px solid var(--line); text-align: left; font-size: 15px; font-weight: 600; transition: border-color .15s, background .15s; }
.option.center { justify-content: center; font-size: 22px; padding: 16px; }
.option:hover:not(:disabled) { border-color: #C9CDF9; }
.radio { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #C7CBDD; flex: none; position: relative; }
.opt-letter { color: var(--muted); font-weight: 700; }
.option.on { border-color: var(--primary); background: var(--primary-soft); }
.option.on .radio { border-color: var(--primary); }
.option.on .radio::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--primary); }
.option.is-right { border-color: var(--green); background: var(--green-soft); }
.option.is-right .radio { border-color: var(--green); background: var(--green); }
.option.is-wrong { border-color: var(--red); background: var(--red-soft); animation: shake .35s; }
.option.is-wrong .radio { border-color: var(--red); }
.option.dim { opacity: .5; }
.test-result { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding-top: 24px; }
.test-result svg { width: 150px; }
.result-level { padding: 10px 18px; border-radius: 14px; background: var(--primary-soft); color: var(--primary); font-size: 15px; }
.result-level b { font-size: 19px; margin-left: 4px; }
.interest-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 8px; }
.interest { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--text-2); }
.tile-art { width: 100%; aspect-ratio: 1.15; border-radius: 16px; display: grid; place-items: center; box-shadow: inset 0 0 0 3px transparent; transition: box-shadow .15s, transform .15s; }
.tile-art span { font-size: 34px; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .18)); }
.interest.on .tile-art { box-shadow: inset 0 0 0 3px var(--primary), 0 6px 16px rgba(79, 91, 255, .25); transform: translateY(-2px); }
.interest.on { color: var(--primary); }
.tick { position: absolute; top: 6px; right: 6px; width: 22px; height: 22px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; font-style: normal; }
.tick .ic { width: 14px; height: 14px; stroke-width: 3; }
.pet-pick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.pet-opt { display: flex; flex-direction: column; align-items: center; padding: 8px 4px; border-radius: 16px; border: 2px solid var(--line); font-size: 12.5px; font-weight: 700; color: var(--text-2); }
.pet-opt.on { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); }
.pet-opt svg { width: 100%; height: auto; }

/* 12 홈 */
.stat-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stat-tile { display: flex; align-items: center; gap: 10px; padding: 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.stat-tile small { display: block; font-size: 12px; color: var(--muted); }
.stat-tile b { font-size: 19px; font-weight: 800; }
.mission { background: linear-gradient(140deg, var(--surface) 55%, var(--primary-soft)); display: flex; flex-direction: column; gap: 10px; }
.mission-head { display: flex; align-items: center; gap: 8px; font-weight: 800; color: var(--primary); }
.mission-dot { width: 28px; height: 28px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; }
.mission-dot .ic { width: 17px; height: 17px; }
.mission-text { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.55; }
.mission-text b { color: var(--primary); }
.mission-actions { display: flex; justify-content: flex-end; }
.pet-card { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.pet-card-art { width: 96px; flex: none; }
.pet-card-art svg { width: 100%; height: auto; display: block; }
.pet-card .grow { display: flex; flex-direction: column; gap: 6px; }
.speech { position: relative; background: var(--primary-soft); border-radius: 14px; padding: 8px 12px; font-weight: 700; font-size: 16px; color: var(--text); }
.speech small { display: block; font-weight: 500; color: var(--muted); font-size: 12px; }
.mini-bars { display: flex; gap: 10px; font-size: 12px; }
.mini-bars span { flex: 1; display: flex; align-items: center; gap: 4px; }
.mini-bars .bar { flex: 1; }
.course { display: flex; flex-direction: column; gap: 8px; }
.course-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); text-align: left; }
.course-item b { display: block; font-size: 15px; }
.course-item small { color: var(--muted); font-size: 12.5px; }
.course-num { width: 24px; height: 24px; border-radius: 50%; background: var(--surface-2); color: var(--muted); font-size: 12px; font-weight: 800; display: grid; place-items: center; flex: none; }
.course-num.done { background: var(--green); color: #fff; }
.course-num .ic { width: 14px; height: 14px; stroke-width: 3; }
.quests { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.quest { display: flex; align-items: center; gap: 10px; }
.quest.claimed { opacity: .5; }
.q-ic { font-size: 20px; width: 36px; height: 36px; display: grid; place-items: center; background: var(--surface-2); border-radius: 11px; flex: none; }
.q-title { font-size: 14px; margin-bottom: 5px; }
.q-done { color: var(--green); }

/* 8 채팅 목록 */
.chat-list { list-style: none; padding: 0; display: flex; flex-direction: column; }
.chat-item { display: flex; align-items: center; gap: 12px; padding: 12px 4px; cursor: pointer; border-bottom: 1px solid var(--line); }
.chat-item:hover { background: var(--surface-2); border-radius: 12px; }
.ci-top { display: flex; align-items: center; gap: 4px; }
.ci-top b { font-size: 15.5px; }
.ci-time { margin-left: auto; font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.ci-bottom { display: flex; align-items: center; gap: 8px; margin-top: 2px; }
.ci-last { flex: 1; min-width: 0; font-size: 13.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.unread { min-width: 21px; height: 21px; padding: 0 6px; border-radius: 11px; background: var(--primary); color: #fff; font-size: 11.5px; font-weight: 800; font-style: normal; display: grid; place-items: center; }

/* 7 매칭 */
.match-stage { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding-top: 10px; }
.match-stage h2 { font-size: 21px; font-weight: 800; }
.match-anim { display: flex; align-items: center; justify-content: center; gap: 0; margin: 22px 0 8px; }
.match-anim .av { box-shadow: 0 0 0 5px var(--surface), var(--shadow-lg); }
.match-line { position: relative; width: 70px; height: 3px; background: repeating-linear-gradient(90deg, #C9CDF9 0 6px, transparent 6px 11px); }
.match-heart { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 32px; height: 32px; border-radius: 50%; background: var(--pink); color: #fff; display: grid; place-items: center; box-shadow: 0 4px 12px rgba(242, 85, 124, .45); }
.match-heart .ic { width: 17px; height: 17px; fill: #fff; }
.match-anim.searching .match-heart { animation: beat 1s ease-in-out infinite; }
.match-anim.searching .av:last-child { animation: blurin 1.4s ease-in-out infinite; }
@keyframes beat { 50% { transform: translate(-50%, -50%) scale(1.25); } }
@keyframes blurin { 0%, 100% { filter: blur(3px) grayscale(.6); opacity: .6; } 50% { filter: blur(0); opacity: 1; } }
.match-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; }
.match-card .row { width: 100%; }
.bio { margin: 0; font-size: 14px; color: var(--text-2); }

/* 17 친구 */
.friend-list { list-style: none; padding: 4px 14px; }
.friend { display: flex; align-items: center; gap: 12px; padding: 12px 0; }
.friend + .friend { border-top: 1px solid var(--line); }

/* 9 채팅 · 15 튜터 */
.chat { display: flex; flex-direction: column; height: 100vh; height: 100dvh; background: var(--bg); }
.chat-head { border-bottom: 1px solid var(--line); background: var(--surface); }
.chat-head .grow { line-height: 1.3; font-size: 15px; }
.mode-pill { font-size: 12px; font-weight: 700; padding: 6px 10px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); white-space: nowrap; }
.msgs { flex: 1; overflow-y: auto; padding: 14px 14px 16px; display: flex; flex-direction: column; gap: 12px; }
.chat-hint { align-self: center; font-size: 11.5px; color: var(--muted); background: var(--surface); border: 1px solid var(--line); padding: 5px 12px; border-radius: 999px; text-align: center; }
.load-more { align-self: center; flex: none; min-width: 120px; }
.msg { display: flex; align-items: flex-start; gap: 8px; }
.msg.mine { justify-content: flex-end; }
.msg-body { display: flex; flex-direction: column; gap: 4px; max-width: 78%; }
.msg.mine .msg-body { align-items: flex-end; }
.bubble { padding: 10px 14px; border-radius: 18px; cursor: pointer; box-shadow: 0 1px 3px rgba(30, 40, 100, .06); transition: transform .1s; }
.bubble:active { transform: scale(.98); }
.theirs .bubble { background: var(--bubble-theirs); border: 1px solid var(--line); border-top-left-radius: 6px; }
.mine .bubble { background: var(--bubble-mine); color: #fff; border-top-right-radius: 6px; }
.orig { font-size: 15.5px; }
.tr { font-size: 13px; margin-top: 6px; padding-top: 6px; border-top: 1px dashed color-mix(in srgb, currentColor 22%, transparent); color: var(--muted); }
.mine .tr { color: rgba(255, 255, 255, .82); }
.orig-toggle { font-size: 12px; margin-top: 4px; color: var(--muted); }
.orig-toggle summary { cursor: pointer; list-style: none; }
.orig-toggle summary::before { content: "▸ "; }
.orig-toggle[open] summary::before { content: "▾ "; }
.msg-time { font-size: 10.5px; color: var(--muted); padding: 0 4px; }
.shimmer { background: linear-gradient(90deg, currentColor 25%, transparent 50%, currentColor 75%); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 1.2s linear infinite; }
.mine .shimmer { background-image: linear-gradient(90deg, #fff 25%, rgba(255, 255, 255, .3) 50%, #fff 75%); }
@keyframes shimmer { to { background-position: -200% 0; } }
.correction { background: var(--green-soft); border-radius: 12px; padding: 8px 12px; font-size: 13.5px; text-align: left; }
.correction b { color: var(--green); font-size: 12px; }
.sticker { display: flex; flex-direction: column; align-items: center; width: 120px; }
.sticker svg { width: 110px; height: auto; }
.sticker-cap { font-size: 12px; font-weight: 700; background: var(--surface); border: 1px solid var(--line); padding: 2px 10px; border-radius: 999px; margin-top: -6px; white-space: nowrap; }
.typing { display: flex; gap: 4px; padding: 10px 14px; background: var(--bubble-theirs); border: 1px solid var(--line); border-radius: 18px; align-self: flex-start; margin-left: 42px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: blink 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 50% { opacity: .2; transform: translateY(-2px); } }
.composer { border-top: 1px solid var(--line); background: var(--surface); padding: 8px 10px calc(10px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 8px; }
.suggest { display: flex; gap: 6px; align-items: center; overflow-x: auto; scrollbar-width: none; }
.suggest::-webkit-scrollbar { display: none; }
.suggest > span { flex: none; font-size: 11.5px; color: var(--muted); }
.sticker-panel { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 4px 0; }
.sticker-panel button { display: flex; flex-direction: column; align-items: center; padding: 4px; border-radius: 12px; background: var(--surface-2); }
.sticker-panel svg { width: 64px; height: auto; }
.sticker-panel small { font-size: 11px; font-weight: 700; }
.composer-row { display: flex; gap: 8px; align-items: flex-end; }
.input-pill { flex: 1; display: flex; align-items: flex-end; gap: 4px; padding: 3px 4px 3px 14px; border-radius: 22px; background: var(--surface-2); border: 1.5px solid transparent; }
.input-pill:focus-within { border-color: var(--primary); background: var(--surface); }
.input-pill .icon-btn { width: 36px; height: 36px; }
#chat-input { flex: 1; resize: none; border: 0; background: transparent; outline: none; padding: 8px 0; max-height: 110px; font-size: 16px; line-height: 1.4; color: var(--text); }
.send-btn { width: 44px; height: 44px; border-radius: 50%; background: var(--primary-grad); color: #fff; display: grid; place-items: center; flex: none; box-shadow: 0 4px 12px rgba(79, 91, 255, .35); }
.send-btn .ic { width: 20px; height: 20px; }
.chat.tutor { background: linear-gradient(180deg, var(--primary-soft) 0, var(--bg) 220px); }
.chat.tutor .appbar { background: transparent; }
.tutor-hero { display: flex; align-items: center; gap: 14px; padding: 4px 18px 10px; }
.tutor-hero .av { box-shadow: 0 0 0 4px var(--surface), var(--shadow-lg); width: 88px; height: 88px; }
.tutor-hero b { font-size: 17px; }
.tutor-hero p { margin: 4px 0 0; color: var(--text-2); }
.tutor-controls { background: var(--surface); border-top: 1px solid var(--line); padding: 10px 12px calc(12px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 10px; }
.voice-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.voice-row .btn { justify-self: end; }
.mic-btn { width: 64px; height: 64px; border-radius: 50%; background: var(--primary-grad); color: #fff; display: grid; place-items: center; box-shadow: 0 8px 22px rgba(79, 91, 255, .4); }
.mic-btn .ic { width: 28px; height: 28px; }
.mic-btn.rec { background: linear-gradient(135deg, #FF6B8B, #F2557C); animation: pulse 1.2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(242, 85, 124, .5); } 100% { box-shadow: 0 0 0 18px rgba(242, 85, 124, 0); } }

/* 10 메시지 상세 */
.msg-card { display: flex; flex-direction: column; gap: 8px; }
.mc-orig { font-size: 22px; font-weight: 800; line-height: 1.4; }
.mc-tr { font-size: 15px; color: var(--text-2); }
.mc-actions { display: flex; gap: 8px; margin-top: 4px; }
.mc-actions .icon-btn { width: 38px; height: 38px; }
.mc-actions .ic { width: 19px; height: 19px; }
.d-row { display: grid; grid-template-columns: 88px 1fr; gap: 10px; font-size: 14.5px; padding: 6px 0; }
.d-row + .d-row { border-top: 1px solid var(--line); }
.d-label { color: var(--muted); font-size: 12.5px; padding-top: 2px; font-weight: 600; }
.alt-list, .points { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.alt-list li, .point { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--surface-2); border-radius: 14px; }

/* 학습 허브 */
.analysis { background: linear-gradient(140deg, var(--surface) 50%, var(--violet-soft)); }
.learn-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.learn-card { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 16px 14px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); text-align: left; }
.learn-card b { font-size: 15px; }
.learn-card small { font-size: 12px; color: var(--muted); }
.report-link .grow b { display: block; }
.report-link small { color: var(--muted); font-size: 12.5px; }

/* 11 단어 학습 */
.word-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 26px 16px; }
.wc-word { font-size: 46px; font-weight: 900; line-height: 1.2; margin-top: 6px; }
.wc-reading { color: var(--muted); font-size: 15px; }
.wc-meaning { font-size: 19px; font-weight: 700; color: var(--primary); margin-bottom: 6px; }
.example-card p { margin: 0 0 4px; font-size: 15px; }
.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; }
.pager .btn { min-width: 130px; }
.done-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding-top: 16px; }
.done-card svg.pet-svg { width: 150px; }
.done-card .btn { width: 100%; }
.big-score { font-size: 42px; font-weight: 900; color: var(--primary); }
.gain { font-weight: 800; color: var(--gold); margin: 0; }

/* 13 퀴즈 */
.quiz-progress { display: flex; align-items: center; gap: 10px; }
.quiz-progress .bar { flex: 1; }
.quiz-progress span { font-size: 13px; color: var(--muted); font-weight: 700; }
.q-prompt { margin: 0; font-size: 15px; font-weight: 600; color: var(--text-2); }
.q-question { font-size: 24px; font-weight: 800; line-height: 1.4; padding: 18px 14px; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.answer-line { min-height: 64px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 12px; border-radius: 14px; border: 2px dashed var(--line); background: var(--surface); }
.answer-line.ok { border: 2px solid var(--green); background: var(--green-soft); }
.answer-line.ng { border: 2px solid var(--red); background: var(--red-soft); }
.token-pool { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.token { padding: 10px 14px; border-radius: 12px; background: var(--surface); border: 1.5px solid var(--line); border-bottom-width: 4px; font-size: 16px; font-weight: 700; }
.token.on { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); }
.token.ghost { opacity: .25; }
.feedback { padding: 14px 16px; border-radius: var(--radius); display: flex; flex-direction: column; gap: 4px; }
.feedback.ok { background: var(--green-soft); }
.feedback.ok > b { color: var(--green); font-size: 17px; }
.feedback.ng { background: var(--red-soft); }
.feedback.ng > b { color: var(--red); font-size: 17px; }
.review { list-style: none; padding: 0; width: 100%; display: flex; flex-direction: column; gap: 6px; margin: 4px 0; }
.review li { display: flex; gap: 10px; padding: 9px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); text-align: left; font-size: 14px; }

/* 단어장 */
.items { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.item { display: flex; flex-direction: column; gap: 6px; }
.expr { font-size: 19px; }
.stars { color: var(--gold); font-size: 13px; letter-spacing: 1px; }
.stars span { color: var(--line); }
.meaning { font-size: 15px; }
.example { background: var(--surface-2); border-radius: 12px; padding: 8px 12px; font-size: 13.5px; }
.item-foot { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.item-foot .link { margin-left: auto; }

/* 16 리포트 */
.rings { display: flex; justify-content: space-around; gap: 6px; }
.ring { position: relative; width: 96px; height: 96px; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: var(--surface-2); stroke-width: 8; }
.ring-fg { fill: none; stroke-width: 8; stroke-linecap: round; transition: stroke-dashoffset .8s; }
.ring-text { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.ring-text small { font-size: 10.5px; color: var(--muted); }
.ring-text b { font-size: 17px; font-weight: 800; }
.ai-comment { display: flex; gap: 6px; align-items: flex-start; margin: 14px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--primary-soft); font-size: 13.5px; color: var(--text-2); }
.ai-comment .ic { width: 16px; height: 16px; color: var(--primary); margin-top: 2px; }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 12px 10px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 2px; }
.stat b { font-size: 21px; font-weight: 900; }
.stat span { font-size: 11.5px; color: var(--muted); line-height: 1.3; }
.week-chart { display: flex; align-items: flex-end; gap: 8px; height: 140px; padding-top: 18px; }
.wc-col { flex: 1; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; }
.wc-col i { width: 100%; max-width: 28px; border-radius: 8px 8px 4px 4px; background: var(--primary-grad); }
.wc-val, .wc-label { font-size: 10.5px; color: var(--muted); }
.mastery-stack { display: flex; height: 14px; border-radius: 99px; overflow: hidden; background: var(--surface-2); }
.mastery-stack i, .legend i { display: block; }
.m0 { background: #DDE0EE; } .m1 { background: #C3C9FF; } .m2 { background: #9EA8FF; } .m3 { background: #7681FF; } .m4 { background: #5560F2; } .m5 { background: #8B5CF6; }
.legend { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; font-size: 12px; color: var(--muted); }
.legend span { display: flex; align-items: center; gap: 4px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; }
.plain { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 6px; }

/* 18 알림 */
.notif-list { list-style: none; padding: 4px 12px; }
.notif { display: flex; align-items: center; gap: 12px; padding: 12px 2px; cursor: pointer; position: relative; }
.notif + .notif { border-top: 1px solid var(--line); }
.notif.unread::after { content: ""; position: absolute; left: 34px; top: 12px; width: 9px; height: 9px; border-radius: 50%; background: var(--red); border: 2px solid var(--surface); }
.notif-ic { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-size: 19px; flex: none; }
.notif-ic.chat { background: var(--blue-soft); }
.notif-ic.learn { background: var(--mint-soft); }
.notif-ic.event { background: var(--violet-soft); }
.notif b { font-size: 14px; font-weight: 600; }

/* 19 프리미엄 */
.premium-card { position: relative; display: flex; flex-direction: column; gap: 16px; padding: 26px 20px 22px; border-radius: 24px; color: #fff;
  background: radial-gradient(circle at 85% 10%, rgba(255, 200, 120, .35), transparent 40%), linear-gradient(160deg, #3B2F9E 0%, #2A2378 55%, #1C1854 100%); box-shadow: var(--shadow-lg); overflow: hidden; }
.premium-card h2 { font-size: 22px; font-weight: 800; line-height: 1.4; }
.crown { position: absolute; right: 18px; top: 16px; font-size: 40px; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .3)); }
.plan { background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22); border-radius: 18px; padding: 16px; }
.plan-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.plan-head span { display: flex; align-items: center; gap: 6px; font-weight: 800; font-size: 17px; }
.plan-head .ic { color: #FFD66B; }
.plan-head b { font-size: 16px; }
.plan ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 9px; font-size: 14.5px; }
.plan li { display: flex; align-items: center; gap: 10px; }
.ck { width: 22px; height: 22px; border-radius: 50%; background: #6E7BFF; display: grid; place-items: center; flex: none; }
.ck .ic { width: 14px; height: 14px; stroke-width: 3; }
.premium-on { text-align: center; font-weight: 700; padding: 10px; border-radius: 12px; background: rgba(255, 255, 255, .14); }
.premium-card .link { align-self: center; }
.premium-banner { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 18px; color: #fff; text-align: left; background: linear-gradient(120deg, #4A3DC4, #2A2378); box-shadow: var(--shadow); }
.premium-banner > span:first-child { font-size: 26px; }
.premium-banner b { display: block; }
.premium-banner small { opacity: .8; font-size: 12.5px; }
.premium-banner .chev { color: rgba(255, 255, 255, .7); }

/* 20 마이 · 설정 */
.profile-row .grow b { font-size: 17px; }
.profile-row small { display: block; color: var(--muted); font-size: 13px; }
.level-card { display: flex; flex-direction: column; gap: 10px; }
.level-pill { display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--primary-grad); color: #fff; font-weight: 800; font-size: 12.5px; }
.profile-stats { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }
.badge-row { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.badge-row::-webkit-scrollbar { display: none; }
.badge { flex: none; width: 70px; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 4px; border-radius: 14px; background: var(--surface-2); text-align: center; filter: grayscale(1); opacity: .45; }
.badge.on { filter: none; opacity: 1; background: var(--gold-soft); }
.badge span { font-size: 24px; }
.badge small { font-size: 10.5px; line-height: 1.25; }
.menu { padding: 6px 4px; }
.menu-row { width: 100%; display: flex; align-items: center; gap: 12px; padding: 13px 12px; border-radius: 12px; text-align: left; font-size: 15px; }
.menu-row:hover { background: var(--surface-2); }
.menu-ic { width: 34px; height: 34px; border-radius: 10px; background: var(--surface-2); color: var(--text-2); display: grid; place-items: center; }
.menu-ic .ic { width: 19px; height: 19px; }
.settings { display: flex; flex-direction: column; gap: 16px; }
.set-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; }
.set-item > span:first-child { flex: none; font-weight: 600; }
.set-item.col { flex-direction: column; align-items: stretch; gap: 6px; }
.switch-row { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.switch-row b { display: block; font-size: 14.5px; font-weight: 600; }
.switch-row small { color: var(--muted); font-size: 12.5px; }
.switch { appearance: none; width: 48px; height: 28px; border-radius: 14px; background: var(--line); position: relative; cursor: pointer; transition: background .2s; flex: none; margin: 0; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .2s; }
.switch:checked { background: var(--primary); }
.switch:checked::after { transform: translateX(20px); }
.faq details { padding: 12px 4px; }
.faq details + details { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { color: var(--text-2); font-size: 14px; margin: 8px 0 0; }
.terms ul { padding-left: 18px; display: flex; flex-direction: column; gap: 6px; color: var(--text-2); }

/* 펫 */
.pet-room { position: relative; height: 290px; border-radius: 24px; overflow: hidden; background: var(--room-wall); border: 1px solid var(--line); }
.room-window { position: absolute; top: 24px; left: 22px; width: 82px; height: 68px; border-radius: 12px; background: linear-gradient(180deg, #BFD9FF, #EAF3FF); border: 5px solid var(--surface); }
.room-window::after { content: "🌸"; position: absolute; right: -14px; bottom: -12px; font-size: 22px; }
.room-shelf { position: absolute; top: 112px; left: 24px; width: 80px; height: 7px; border-radius: 4px; background: #C9B6F2; }
.room-shelf::before { content: "📚🪴"; position: absolute; bottom: 6px; left: 8px; font-size: 20px; }
.room-floor { position: absolute; left: 0; right: 0; bottom: 0; height: 70px; background: var(--room-floor); }
.room-floor::before { content: ""; position: absolute; left: 50%; top: 14px; transform: translateX(-50%); width: 220px; height: 42px; border-radius: 50%; background: color-mix(in srgb, var(--primary) 16%, transparent); }
.pet-stage { position: absolute; left: 50%; bottom: 16px; width: 200px; transform: translateX(-50%); z-index: 2; cursor: pointer; }
.pet-stage svg { width: 100%; height: auto; display: block; }
.speech-bubble { position: absolute; top: 18px; right: 16px; z-index: 3; max-width: 54%; background: var(--surface); border-radius: 16px; padding: 8px 12px; box-shadow: var(--shadow); text-align: left; font-weight: 800; font-size: 17px; animation: floaty 3s ease-in-out infinite; }
.speech-bubble small { display: block; font-weight: 500; font-size: 11.5px; color: var(--muted); }
.speech-bubble::after { content: ""; position: absolute; left: 22px; bottom: -8px; border: 8px solid transparent; border-top-color: var(--surface); border-bottom: 0; }
@keyframes floaty { 50% { transform: translateY(-4px); } }
.float-heart { position: absolute; bottom: 60%; font-size: 22px; animation: rise 1.3s ease-out forwards; pointer-events: none; }
@keyframes rise { to { transform: translateY(-90px) scale(1.3); opacity: 0; } }
.pet-name { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; }
.pet-stats { display: flex; flex-direction: column; gap: 10px; }
.stat-line { display: grid; grid-template-columns: 84px 1fr 66px; align-items: center; gap: 8px; font-size: 13.5px; }
.stat-line b { text-align: right; font-size: 12.5px; color: var(--muted); }
.pet-actions { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.pa { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 2px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); font-size: 11.5px; font-weight: 700; }
.pa span { font-size: 24px; }
.pa small { position: absolute; top: 4px; right: 6px; font-size: 10px; color: var(--muted); }
.teach { display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
.teach-pet { width: 130px; margin: 0 auto; }
.teach-pet svg { width: 100%; height: auto; }
.speech-inline { font-weight: 700; color: var(--primary); }
.teach-word { font-size: 30px; font-weight: 900; }
.ok-text { color: var(--green); font-weight: 800; }
.ng-text { color: var(--red); font-weight: 800; }
.shop-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.shop-item { display: flex; flex-direction: column; align-items: center; gap: 3px; text-align: center; padding: 12px 6px; border-radius: 16px; background: var(--surface-2); border: 2px solid transparent; font-size: 13px; }
.shop-item.on { border-color: var(--primary); background: var(--primary-soft); }
.shop-item .btn { margin-top: 4px; width: 100%; }
.big-ic { font-size: 28px; }
.pet-thumb { width: 72px; }
.pet-thumb svg { width: 100%; height: auto; }
.evolve-pet { width: 170px; margin: 0 auto; }
.evolve-pet svg { width: 100%; height: auto; animation: pop .6s cubic-bezier(.2, 1.4, .4, 1); }
.pet-svg.idle { animation: breathe 2.6s ease-in-out infinite; transform-origin: 50% 95%; }
@keyframes breathe { 50% { transform: scale(1.03, .97); } }
.pet-svg.jump { animation: jump .6s cubic-bezier(.3, 1.6, .5, 1); transform-origin: 50% 95%; }
@keyframes jump { 30% { transform: translateY(-22px) scale(.96, 1.05); } 60% { transform: translateY(0) scale(1.05, .95); } }
.pet-egg .egg-body { animation: wobble 2.4s ease-in-out infinite; transform-origin: 100px 180px; }
@keyframes wobble { 0%, 60%, 100% { transform: rotate(0); } 70% { transform: rotate(-6deg); } 80% { transform: rotate(5deg); } 90% { transform: rotate(-3deg); } }
.spark { animation: twinkle 1.6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes twinkle { 50% { opacity: .3; transform: scale(.6); } }

/* 토스트 · 시트 · 축하 */
#toasts { position: fixed; top: 12px; left: 50%; transform: translateX(-50%); z-index: 100; width: min(400px, calc(100% - 32px)); display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast { pointer-events: auto; background: #1C2140; color: #fff; padding: 11px 16px; border-radius: 16px; font-size: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, .2); animation: toastIn .3s cubic-bezier(.2, 1.4, .4, 1); transition: opacity .3s, transform .3s; }
.toast.xp { background: var(--gold); color: #3A2600; }
.toast.gold { background: linear-gradient(90deg, #FFD66B, #FFB347); color: #3A2600; }
.toast.mint { background: var(--mint); }
.toast.blue { background: var(--primary); }
.toast.err { background: var(--red); }
.toast.clickable { cursor: pointer; }
.toast.out { opacity: 0; transform: translateY(-8px); }
@keyframes toastIn { from { opacity: 0; transform: translateY(-14px) scale(.96); } }
.sheet-wrap { position: fixed; inset: 0; z-index: 60; background: rgba(20, 22, 50, .4); display: flex; align-items: flex-end; justify-content: center; animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.sheet { width: 100%; max-width: 430px; max-height: 88vh; overflow-y: auto; background: var(--surface); border-radius: 24px 24px 0 0; padding: 8px 18px calc(20px + env(safe-area-inset-bottom)); animation: up .28s cubic-bezier(.2, 1, .3, 1); }
@keyframes up { from { transform: translateY(40px); opacity: .4; } }
.sheet-grip { width: 40px; height: 5px; border-radius: 3px; background: var(--line); margin: 4px auto 12px; }
.sheet h2 { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.sheet ul.small { padding-left: 18px; display: flex; flex-direction: column; gap: 6px; margin: 8px 0 16px; color: var(--text-2); }
.center-sheet { text-align: center; }
.celebrate { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 10px 0; }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 70; overflow: hidden; }
.confetti i { position: absolute; top: -12px; width: 9px; height: 14px; border-radius: 2px; animation: fall 2.4s cubic-bezier(.3, .6, .5, 1) forwards; }
@keyframes fall { to { top: 105%; transform: rotate(720deg) translateX(40px); } }

/* 14 미니게임 */
.game-overlay { position: fixed; inset: 0; z-index: 50; background: var(--bg); display: flex; flex-direction: column; max-width: 430px; margin: 0 auto; animation: fade .2s; }
.game-body { flex: 1; padding: 4px 16px 20px; display: flex; flex-direction: column; gap: 14px; overflow-y: auto; }
.game-guide { margin: 0; font-size: 15px; font-weight: 600; color: var(--text-2); }
.hud-count { font-size: 13px; font-weight: 800; color: var(--primary); background: var(--primary-soft); padding: 4px 10px; border-radius: 999px; }
.combo { color: var(--gold); font-weight: 800; }
.hg-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.hg-ja { font-size: 36px; font-weight: 900; }
.syl-row { display: flex; justify-content: center; gap: 10px; }
.syl { width: 66px; height: 66px; border-radius: 16px; border: 2.5px dashed #C9CDF0; background: var(--surface); display: grid; place-items: center; font-size: 34px; font-weight: 800; color: var(--primary); }
.syl.full { border-style: solid; border-color: var(--primary); background: var(--primary-soft); }
.syl-row.win .syl { border-color: var(--green); background: var(--green-soft); color: var(--green); animation: pop .4s; }
.jamo-pad { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.jamo { aspect-ratio: 1.15; border-radius: 16px; background: var(--primary-soft); color: var(--primary); border: 1.5px solid #D9DCFF; font-size: 28px; font-weight: 800; box-shadow: 0 3px 0 #D3D7FF; transition: transform .08s; }
.jamo:active { transform: translateY(2px); box-shadow: 0 1px 0 #D3D7FF; }
.jamo.hint { background: var(--gold-soft); border-color: var(--gold); color: var(--gold); animation: beat-soft 1s infinite; }
@keyframes beat-soft { 50% { transform: scale(1.06); } }
.shake { animation: shake .35s; border-color: var(--red) !important; color: var(--red) !important; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.game-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-top: auto; }
.mascot { display: flex; align-items: flex-end; gap: 4px; }
.mascot svg { width: 86px; height: auto; }
.mascot-say { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 7px 11px; font-size: 13px; font-weight: 600; margin-bottom: 40px; box-shadow: var(--shadow); max-width: 170px; }
.kana-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; text-align: center; }
.kana-char { font-size: 92px; font-weight: 800; line-height: 1.1; }
.timer { height: 8px; border-radius: 4px; background: var(--surface-2); overflow: hidden; margin-top: 12px; }
.timer-bar { height: 100%; width: 100%; background: linear-gradient(90deg, var(--mint), var(--primary)); transition: width .1s linear; }
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.match-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mcard { position: relative; aspect-ratio: 3 / 4; border-radius: 14px; perspective: 600px; }
.mcard span { position: absolute; inset: 0; border-radius: 14px; display: grid; place-items: center; padding: 6px; text-align: center; font-weight: 700; font-size: 14px; backface-visibility: hidden; transition: transform .35s; }
.mcard .back { background: var(--primary-grad); color: #fff; font-size: 26px; }
.mcard .front { background: var(--surface); border: 2px solid var(--line); transform: rotateY(180deg); }
.mcard .front.a { font-size: 17px; }
.mcard.flip .back { transform: rotateY(180deg); }
.mcard.flip .front { transform: rotateY(360deg); }
.mcard.done .front { border-color: var(--green); background: var(--green-soft); }

/* 스토리보드(iframe)에서는 스크롤바·애니메이션 최소화 */
html.sb { scrollbar-width: none; }
html.sb ::-webkit-scrollbar { display: none; }
html.sb body { background: var(--bg); }
html.sb .app { box-shadow: none; }
html.sb *, html.sb *::before, html.sb *::after { animation: none !important; transition: none !important; }
html.sb .appbar { backdrop-filter: none; }

@media (min-width: 480px) {
  body { background: radial-gradient(circle at 15% 10%, #E2E5FF, transparent 40%), radial-gradient(circle at 85% 90%, #F1E6FF, transparent 40%), var(--bg-outer); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ── AI 기능: 안전 표시 · 실시간 번역 · 튜터 미션 · 퀴즈 새 유형 ── */
.safety-banner { font-size: 12px; line-height: 1.4; padding: 6px 10px; margin-bottom: 4px; border-radius: 10px; background: var(--gold-soft); color: var(--text-2); max-width: 260px; }
.bubble.blocked { opacity: .55; background: var(--surface-2) !important; color: var(--text-2) !important; text-decoration: line-through; }
.blocked-note { font-size: 11.5px; color: var(--red); margin-top: 3px; max-width: 260px; text-align: right; }
.streaming::after { content: "▍"; margin-left: 1px; animation: blink 1s infinite; opacity: .7; }
.voice-row > .btn:first-child { justify-self: start; }
.missions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 0 18px 8px; }
.mission { font-size: 12px; padding: 3px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--text-2); }
.mission.done { background: var(--green-soft); border-color: transparent; color: var(--green); font-weight: 700; }
.hint-list { list-style: none; padding: 0; margin: 10px 0; display: grid; gap: 8px; }
.hint-list li { display: flex; align-items: center; gap: 6px; }
.hint { flex: 1; display: grid; gap: 2px; text-align: left; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); }
.fix-list { list-style: none; padding: 0; margin: 6px 0; display: grid; gap: 10px; }
.fix-list li.reviewed { opacity: .6; }
.fix-from { color: var(--muted); text-decoration: line-through; font-size: 14px; }
.fix-to { color: var(--green); font-weight: 700; }
.tr-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
ul.grammar { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.listen-btn { display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 10px auto 16px; padding: 18px 26px; border-radius: 22px; background: var(--primary-soft); color: var(--primary); font-weight: 700; font-size: 13px; }
.listen-btn .ic { width: 40px; height: 40px; }
.produce-input { width: 100%; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface); color: var(--text); font: inherit; font-size: 16px; resize: vertical; margin-bottom: 8px; }
.produce-input:focus { outline: none; border-color: var(--primary); }

/* ── 단계별 코스 ── */
.link-btn { font-size: 12.5px; font-weight: 700; color: var(--primary); white-space: nowrap; display: inline-flex; align-items: center; min-height: 32px; padding: 0 6px; margin: -6px -6px; }
.course-card .cc-title { display: block; font-size: 16px; margin: 1px 0; }
.course-card { border: 1.5px solid var(--primary-soft); }
.cstage { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 14px 6px; margin-bottom: 14px; }
.cstage.review { opacity: .92; }
.cstage-head { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 8px; }
.cstage-head h3 { margin: 0; font-size: 16px; }
.cunit { margin: 14px 0 8px; }
.cunit-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.cunit-icon { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: var(--violet-soft); color: var(--violet); font-weight: 800; font-size: 15px; }
.cnodes { display: grid; gap: 6px; padding-left: 14px; border-left: 2px dashed var(--line); margin-left: 14px; }
.cnode { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px; background: var(--surface-2); text-align: left; font-size: 14px; }
.cnode-dot { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 1.5px solid var(--line); font-size: 11px; font-weight: 800; color: var(--muted); flex: none; }
.cnode-dot .ic { width: 14px; height: 14px; }
.cnode.done .cnode-dot { background: var(--green); border-color: var(--green); color: #fff; }
.cnode.open .cnode-dot { border-color: var(--primary); color: var(--primary); }
.cnode.current { background: var(--primary-soft); box-shadow: inset 0 0 0 1.5px var(--primary); font-weight: 700; }
.cnode.locked { opacity: .5; }
.cnode.test { background: var(--gold-soft); }
.lesson-steps { display: flex; gap: 4px; margin-bottom: 14px; }
.lesson-steps span { flex: 1; text-align: center; font-size: 11.5px; font-weight: 700; padding: 6px 0; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.lesson-steps span.past { background: var(--green-soft); color: var(--green); }
.lesson-steps span.now { background: var(--primary); color: #fff; }
.char-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 8px; margin-bottom: 14px; }
.char-cell { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 4px; border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); }
.char-cell b { font-size: 28px; line-height: 1.15; }
.char-cell small { font-size: 11px; color: var(--muted); text-align: center; line-height: 1.25; }
.tip-card { background: var(--gold-soft); border-radius: 14px; padding: 12px 14px; font-size: 13.5px; line-height: 1.6; }
.lesson-words, .lesson-ex { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 8px; }
.lesson-words li { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--surface); border-radius: 14px; box-shadow: var(--shadow); }
.lesson-words b { font-size: 18px; }
.lesson-ex li { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.lesson-ex li:last-child { border-bottom: 0; }
.lesson-ex.card { padding: 6px 14px; }
.grammar-card h3 { font-size: 20px; margin: 8px 0 4px; }
.grammar-card p { line-height: 1.65; font-size: 14px; }
.opt-big { font-size: 18px; }
.speak-card { text-align: center; display: grid; gap: 6px; padding: 20px 16px; }
.speak-text { font-size: 22px; font-weight: 700; line-height: 1.5; }
.speak-actions { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 10px 0 4px; }
.pron-result { display: flex; align-items: center; gap: 14px; text-align: left; background: var(--surface-2); border-radius: 14px; padding: 12px; margin-top: 6px; }
.pron-score { font-size: 30px; font-weight: 800; min-width: 64px; text-align: center; color: var(--red); }
.pron-score.ok { color: var(--green); }
.pron-score small { font-size: 12px; margin-left: 1px; }
.pron-units { font-size: 18px; letter-spacing: 1px; margin: 2px 0; word-break: break-all; }
.pron-units .ok { color: var(--green); }
.pron-units .miss { color: var(--red); text-decoration: underline wavy; }
.row.center { justify-content: center; }

/* ── 한 줄 일기 · 쉐도잉 ── */
.stat-tiles.two { grid-template-columns: 1fr 1fr; }
.diary-card .chip { max-width: 100%; white-space: normal; text-align: left; }
.diary-text { font-size: 18px; line-height: 1.6; }
.diary-text del, .diary-list del { color: var(--red); text-decoration: line-through; background: var(--red-soft); border-radius: 3px; }
.diary-text ins, .diary-list ins { color: var(--green); text-decoration: none; font-weight: 700; background: var(--green-soft); border-radius: 3px; }
.better { background: var(--surface-2); border-radius: 12px; padding: 10px 12px; display: grid; gap: 4px; justify-items: start; }
.diary-reply { display: flex; align-items: flex-start; gap: 8px; }
.diary-reply .bubble { background: var(--bubble-theirs); border: 1px solid var(--line); border-radius: 16px; padding: 10px 14px; }
.diary-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.diary-list li { border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.diary-list li:last-child { border-bottom: 0; }
.seg-mini { display: inline-flex; background: var(--surface-2); border-radius: 999px; padding: 2px; }
.seg-mini button { font-size: 12px; padding: 4px 10px; border-radius: 999px; color: var(--muted); font-weight: 700; }
.seg-mini button.on { background: var(--surface); color: var(--primary); box-shadow: var(--shadow); }
.speak-text.blurred { filter: blur(7px); user-select: none; }

/* ── 대화 카드 (질문 카드 · 한국에선? 일본에선?) ───────── */
.deck-btn { font-size: 20px; line-height: 1; }
.cards-body { margin-top: 10px; }
.deck-list { display: grid; gap: 8px; }
.deck-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--surface-2); text-align: left; color: var(--text); }
.deck-row small { display: block; font-size: 11.5px; }
.deck-ic { flex: none; width: 36px; font-size: 24px; text-align: center; }
.qcards, .culture-list { display: grid; gap: 10px; margin-top: 10px; }
.qcard, .ccard { padding: 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.qcard.used, .ccard.used { border-color: var(--primary-soft); }
.qcard-text { font-size: 19px; font-weight: 800; line-height: 1.55; }
.qcard-reading { margin-top: 2px; }
.qcard-tr { color: var(--text-2); margin-top: 4px; }
.qcard-follow { list-style: none; padding: 8px 0 0; margin: 8px 0 0; border-top: 1px dashed var(--line); display: grid; gap: 6px; font-size: 13.5px; }
.qcard-follow small { display: block; padding-left: 16px; }
.qcard-frame { margin-top: 8px; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); font-size: 13.5px; }
.qcard-frame small, .cc-ask small { display: block; }
.cc-side { display: flex; gap: 8px; align-items: flex-start; margin-top: 8px; }
.cc-flag { flex: none; margin-top: 3px; padding: 2px 7px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); font-size: 11px; font-weight: 800; }
.cc-text { font-size: 15.5px; font-weight: 700; line-height: 1.5; }
.cc-note { margin-top: 8px; color: var(--text-2); }
.cc-ask { margin-top: 8px; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); font-size: 14px; }
