/* 캐릭쌤 디자인 시스템 v3 — "신뢰 & 배움의 활력": 딥 인디고(60%) · 소프트 아이보리 배경(30%) · 웜 오렌지 CTA(10%).
   (v2 "Lecture Lab"의 레드 토큰 이름 --red-*은 호환을 위해 유지하고 값만 오렌지 강조색으로 바꿨다.)
   토큰·규칙 정본: docs/charac/06_design_system.md. 40~60대 사용자를 위해 본문 18px, 최소 16px, 버튼 52px, WCAG AA 대비를 지킨다. */
:root {
  --navy: #1E293B;           /* 메인(딥 인디고 블루): GNB·브랜드 요소 */
  --indigo: #1E3A8A;         /* 메인 보조: 링크·라벨·보조 버튼 (아이보리 대비 10.0:1) */
  --ink: #0F172A;            /* 제목·본문 다크 차콜 (순수 검정 대신) */
  --ink-2: #1E293B;
  --muted: #475569;          /* 아이보리 바탕 대비 7.2:1 */
  --paper: #F8FAFC;          /* 전체 배경: 라이트 스레이트/아이보리 */
  --paper-2: #F1F5F9;        /* 강의 카드 영역·소프트 섹션 */
  --paper-3: #E2E8F0;
  --line: #E2E8F0;
  --line-2: #CBD5E1;
  --red: #EA580C;            /* 강조(웜 오렌지): 점·큰 글자 강조·할인율 */
  --red-600: #EA580C;        /* 주 버튼(CTA) 바탕 + 흰 글자(굵은 17px 이상) */
  --red-700: #C2410C;        /* 작은 강조 글자·hover (흰 바탕 대비 5.2:1) */
  --red-50: #FFF7ED;
  --red-100: #FFEDD5;
  --blue: #1E3A8A;           /* 링크·보조 버튼 */
  --blue-50: #EFF6FF;
  --tag-blue: #2563EB;       /* 상태 태그(모집중 등) */
  --green: #166534;          /* 상태 태그(수강중·자격증 발급) */
  --green-50: #F0FDF4;
  --amber: #9a5200;
  --amber-50: #fff6e8;
  --shadow: 0 4px 10px rgba(15, 23, 42, .07), 0 1px 3px rgba(15, 23, 42, .05);
  --shadow-lg: 0 18px 50px rgba(15, 23, 42, .14);
  --r-card: 16px;
  --r-input: 12px;
  --r-pill: 999px;
  --wrap: 1200px;
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 18px; line-height: 1.7; letter-spacing: -.02em; -webkit-font-smoothing: antialiased; word-break: keep-all; overflow-wrap: anywhere; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); line-height: 1.25; letter-spacing: -.045em; }
p { margin: 0; }
small, .small { font-size: 16px; }
button, input, select, textarea { font: inherit; letter-spacing: inherit; color: inherit; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: var(--r-pill); background: var(--ink); color: #fff; }
.skip:focus { top: 12px; }

/* ---------- 레이아웃 ---------- */
.wrap { width: min(var(--wrap), calc(100% - 64px)); margin: 0 auto; }
.wrap-narrow { width: min(820px, calc(100% - 64px)); margin: 0 auto; }
.section { padding: 96px 0; }
.section-tight { padding: 56px 0; }
.section-soft { background: var(--paper-2); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 40px; }
.section-head > p { max-width: 380px; color: var(--muted); font-size: 17px; }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stack > * + * { margin-top: 16px; }
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.muted { color: var(--muted); }
.center { text-align: center; }

.grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.split-l { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
.split-r { grid-template-columns: minmax(0, 1.4fr) minmax(0, .9fr); align-items: start; }
.studio { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 0; padding: 0; }
.studio-side { padding: 28px; background: var(--paper-2); border-left: 1px solid var(--line); }

/* ---------- 글자 ---------- */
.kicker { display: inline-flex; align-items: center; gap: 10px; color: var(--indigo); font-size: 15px; font-weight: 800; letter-spacing: .06em; }
.kicker::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--red); flex: none; }
.kicker-blue { color: var(--blue); }
.kicker-blue::before { background: var(--blue); }
.display { margin-top: 18px; font-size: clamp(42px, 5.4vw, 72px); font-weight: 800; line-height: 1.1; letter-spacing: -.065em; }
.title-1 { margin-top: 16px; font-size: clamp(34px, 3.6vw, 48px); font-weight: 800; line-height: 1.18; letter-spacing: -.06em; }
.title-2 { font-size: clamp(26px, 2.6vw, 32px); font-weight: 800; letter-spacing: -.05em; }
.title-3 { font-size: 22px; font-weight: 700; }
.dot-end { position: relative; display: inline-block; }
.dot-end::after { content: ""; display: inline-block; width: .17em; height: .17em; margin-left: .06em; border-radius: 50%; background: var(--red); vertical-align: baseline; }
.hl { color: var(--red-600); }
.lede { color: var(--muted); font-size: 19px; line-height: 1.75; }
.lead-in { max-width: 640px; }

/* ---------- 버튼 ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border: 1.5px solid transparent; border-radius: var(--r-pill); font-size: 17px; font-weight: 800; line-height: 1.2; cursor: pointer; text-decoration: none !important; transition: background .15s, border-color .15s, transform .15s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn.is-disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--red-600); color: #fff; box-shadow: 0 8px 18px rgba(234, 88, 12, .25); }
.btn-primary:hover { background: var(--red-700); }
.btn-primary .arrow { display: inline-grid; place-items: center; width: 28px; height: 28px; margin-right: -12px; border-radius: 50%; background: rgba(255, 255, 255, .22); font-size: 16px; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #18181e; }
.btn-ghost { border-color: var(--line-2); background: #fff; color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-soft { background: var(--blue-50); color: var(--blue); }
.btn-soft:hover { background: #DBEAFE; }
.btn-danger { border-color: var(--red-700); background: #fff; color: var(--red-700); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 16px; }
.btn-block { width: 100%; }
.link-play { display: inline-flex; align-items: center; gap: 10px; color: var(--blue); font-weight: 800; }
.link-play .ring { display: inline-grid; place-items: center; width: 34px; height: 34px; border: 1.5px solid var(--blue); border-radius: 50%; font-size: 12px; }
.text-link { font-weight: 700; }

/* ---------- 칩·배지·상태 ---------- */
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: var(--r-pill); background: #fff; color: var(--ink-2); font-size: 16px; font-weight: 600; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 12px; border-radius: var(--r-pill); background: var(--paper-3); color: var(--ink-2); font-size: 16px; font-weight: 700; line-height: 1.6; white-space: nowrap; }
.badge-red { background: var(--red-50); color: var(--red-700); }
.badge-blue { background: var(--blue-50); color: var(--tag-blue); }
.badge-green { background: var(--green-50); color: var(--green); }
.badge-amber { background: var(--amber-50); color: var(--amber); }
.badge-dark { background: var(--ink); color: #fff; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.stepnum { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--red-600); color: #fff; font-size: 16px; font-weight: 800; }

/* ---------- 카드 ---------- */
.card { position: relative; overflow: hidden; padding: 28px; border: 1px solid var(--line); border-radius: var(--r-card); background: #fff; }
.card-soft { background: var(--paper-2); }
.card-link { display: block; color: inherit; text-decoration: none !important; transition: border-color .15s, box-shadow .15s, transform .15s; }
.card-link:hover { border-color: var(--line-2); box-shadow: var(--shadow); transform: translateY(-2px); }
.bignum { position: absolute; z-index: 0; right: -6px; bottom: -26px; color: #E2E8F0; font-size: 132px; font-weight: 900; line-height: 1; letter-spacing: -.08em; pointer-events: none; user-select: none; }
.bignum-red { color: #FFEDD5; }
.card > *:not(.bignum) { position: relative; z-index: 1; }
.panel { padding: 32px; border-radius: 24px; background: var(--red-50); border: 1px solid var(--red-100); }

/* ---------- 헤더 ---------- */
.site-top { position: sticky; top: 0; z-index: 40; border-bottom: 1px solid rgba(255, 255, 255, .08); background: var(--navy); color: #fff; }
.site-top .bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none !important; }
.brand svg { flex: none; }
.brand-name { display: block; font-size: 21px; font-weight: 800; line-height: 1.1; letter-spacing: -.06em; }
.brand-sub { display: block; color: var(--muted); font-size: 13px; font-weight: 700; letter-spacing: 0; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a, .nav button.navbtn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 0; border-radius: var(--r-pill); background: transparent; color: rgba(255, 255, 255, .88); font-size: 16px; font-weight: 700; cursor: pointer; text-decoration: none; }
.nav a:hover, .nav button.navbtn:hover { background: rgba(255, 255, 255, .10); color: #fff; }
.nav a[aria-current="page"] { background: rgba(255, 255, 255, .16); color: #fff; }
.top-right { display: flex; align-items: center; gap: 8px; }
.who { position: relative; }
.who summary { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1px solid rgba(255, 255, 255, .35); color: #fff; border-radius: var(--r-pill); font-size: 16px; font-weight: 700; cursor: pointer; list-style: none; }
.who summary::-webkit-details-marker { display: none; }
.who summary .who-short { display: none; }
.who .menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 50; width: 260px; padding: 10px; border: 1px solid var(--line); border-radius: var(--r-card); background: #fff; box-shadow: var(--shadow-lg); }
.who .menu a, .who .menu button { display: flex; width: 100%; min-height: 46px; align-items: center; padding: 0 12px; border: 0; border-radius: 10px; background: none; color: var(--ink); font-size: 16px; font-weight: 600; text-align: left; cursor: pointer; text-decoration: none; }
.who .menu a:hover, .who .menu button:hover { background: var(--paper-2); }
.who .menu .menu-meta { padding: 6px 12px 10px; border-bottom: 1px solid var(--line); margin-bottom: 6px; color: var(--muted); font-size: 16px; overflow-wrap: anywhere; }
.site-top .brand { color: #fff; }
.site-top .btn-ghost { border-color: rgba(255, 255, 255, .45); background: transparent; color: #fff; }
.site-top .btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }
.mnav { display: none; }
.mnav summary { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; cursor: pointer; list-style: none; }
.mnav summary::-webkit-details-marker { display: none; }
.mnav .sheet { position: absolute; left: 0; right: 0; top: 76px; z-index: 45; padding: 16px 20px 24px; border-bottom: 1px solid var(--line); background: #fff; box-shadow: var(--shadow-lg); }
.mnav .sheet a, .mnav .sheet button { display: flex; width: 100%; min-height: 52px; align-items: center; border: 0; border-bottom: 1px solid var(--line); background: none; color: var(--ink); font-size: 18px; font-weight: 700; text-align: left; text-decoration: none; }

/* ---------- 히어로 ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); background: linear-gradient(#ffffff 0%, var(--paper) 100%); }
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; gap: 40px; min-height: 660px; padding: 64px 0 72px; }
.hero-copy { position: relative; z-index: 3; }
.hero-course .wrap { min-height: 0; padding: 56px 0 64px; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }
.hero-copy .lede { max-width: 520px; margin-top: 24px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 36px; }
.hero-ghost { position: absolute; left: -20px; bottom: -40px; z-index: 0; color: #EEF2F7; font-size: clamp(120px, 15vw, 230px); font-weight: 900; line-height: 1; letter-spacing: -.08em; pointer-events: none; user-select: none; }
.stage { position: relative; z-index: 2; justify-self: center; width: min(500px, 100%); aspect-ratio: 1 / 1.08; }
.stage::before { content: ""; position: absolute; inset: 8% 4% 6%; border-radius: 46% 46% 40% 42%; background: radial-gradient(circle at 50% 38%, rgba(250, 0, 48, .10), rgba(248, 248, 250, .85) 56%, transparent 74%); }
.stage-img { position: absolute; inset: 4% 8% 0; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 14px; }
.stage-img figure { margin: 0; overflow: hidden; border-radius: 22px; background: var(--paper-2); border: 1px solid var(--line); }
.stage-img figure:first-child { grid-row: span 2; }
.stage-img img { width: 100%; height: 100%; object-fit: cover; }
/* 기본은 강사 본인(실사), 마우스를 올리거나 탭하면 캐릭터로 바뀐다 */
.morph { position: relative; cursor: pointer; }
.morph img { position: absolute; inset: 0; transition: opacity .55s ease, transform .7s cubic-bezier(.2, .8, .2, 1), filter .55s ease; }
.morph-char { opacity: 0; transform: scale(1.08); filter: blur(6px); }
.morph.is-char .morph-real { opacity: 0; transform: scale(.96); filter: blur(6px); }
.morph.is-char .morph-char { opacity: 1; transform: none; filter: none; }
.morph figcaption { position: absolute; z-index: 2; left: 10px; bottom: 10px; display: grid; padding: 5px 11px; border-radius: 999px; background: rgba(255, 255, 255, .92); box-shadow: var(--shadow); font-size: 13px; font-weight: 800; }
.morph figcaption span { grid-area: 1 / 1; transition: opacity .35s ease; }
.morph .tag-char { opacity: 0; color: var(--red-600); }
.stage-img figure:first-child figcaption { top: 10px; bottom: auto; }
.morph.is-char .tag-real { opacity: 0; }
.morph.is-char .tag-char { opacity: 1; }
@media (hover: hover) {
  .morph:hover .morph-real { opacity: 0; transform: scale(.96); filter: blur(6px); }
  .morph:hover .morph-char { opacity: 1; transform: none; filter: none; }
  .morph:hover .tag-real { opacity: 0; }
  .morph:hover .tag-char { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) { .morph img { transition: opacity .2s; transform: none !important; filter: none !important; } }
.mini { position: absolute; z-index: 4; display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 12px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: var(--shadow); }
.mini .ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--red-600); color: #fff; font-size: 18px; font-weight: 800; }
.mini small { display: block; color: var(--muted); font-size: 13px; line-height: 1.2; }
.mini strong { display: block; font-size: 16px; line-height: 1.3; }
.mini-voice { left: -6%; bottom: 22%; }
.mini-done { right: -4%; bottom: 6%; }
.bubble { position: absolute; z-index: 4; right: 2%; top: 9%; padding: 9px 14px; border: 1px solid var(--line); border-radius: 18px 18px 18px 4px; background: #fff; box-shadow: var(--shadow); color: var(--blue); font-size: 14px; font-weight: 800; }
.stage-cap { position: absolute; z-index: 4; left: 6%; bottom: -2%; display: flex; gap: 8px; align-items: flex-start; font-size: 15px; line-height: 1.35; }
.stage-cap::before { content: ""; width: 9px; height: 9px; margin-top: 6px; border-radius: 50%; background: var(--green); }
.stage-cap small { display: block; color: var(--muted); font-size: 13px; }

/* ---------- 흐르는 띠 ---------- */
.marquee { overflow: hidden; border-bottom: 1px solid var(--line); background: var(--paper-2); }
.marquee-track { display: flex; width: max-content; gap: 34px; padding: 14px 0; animation: ticker 32s linear infinite; color: #7a7a85; font-size: 15px; font-weight: 800; letter-spacing: .08em; }
.marquee-track span { display: flex; align-items: center; gap: 34px; white-space: nowrap; }
.marquee-track span::after { content: "✦"; color: var(--red); font-size: 14px; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- 강의 카드 ---------- */
.course-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-card); background: #fff; color: inherit; text-decoration: none !important; transition: box-shadow .15s, transform .15s, border-color .15s; }
.course-card:hover { border-color: var(--line-2); box-shadow: var(--shadow); transform: translateY(-2px); }
.course-cover { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--paper-2); }
.course-cover img { width: 100%; height: 100%; object-fit: cover; }
.course-cover .cover-text { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 22px; background: linear-gradient(135deg, #fff 0%, var(--red-50) 100%); }
.course-cover .cover-text strong { font-size: 24px; line-height: 1.25; letter-spacing: -.05em; }
.course-cover .cover-num { position: absolute; right: 8px; top: -18px; color: rgba(250, 0, 48, .08); font-size: 140px; font-weight: 900; letter-spacing: -.08em; }
.course-cover .tagline { position: absolute; left: 14px; top: 14px; }
.course-body { display: flex; flex: 1; flex-direction: column; gap: 10px; padding: 22px 22px 24px; }
.course-body h3 { font-size: 21px; font-weight: 700; line-height: 1.35; }
.course-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--muted); font-size: 16px; }
.course-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }
.price { font-size: 22px; font-weight: 800; letter-spacing: -.04em; }
.price small { margin-left: 4px; color: var(--muted); font-size: 15px; font-weight: 600; }
.stars { color: var(--red-700); font-weight: 800; }

/* ---------- 필터·검색 ---------- */
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 32px; }
.filters a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 20px; border: 1.5px solid var(--line-2); border-radius: var(--r-pill); color: var(--ink-2); font-size: 16px; font-weight: 700; text-decoration: none; }
.filters a[aria-current="true"] { border-color: var(--ink); background: var(--ink); color: #fff; }
.search { display: flex; flex: 1 1 320px; gap: 8px; max-width: 460px; margin-left: auto; }
.search input { flex: 1; min-width: 0; }

/* ---------- 폼 ---------- */
.field { display: block; }
.field + .field { margin-top: 22px; }
.field > span, .label { display: block; margin-bottom: 8px; font-size: 17px; font-weight: 700; }
.field .help, .help { display: block; margin-top: 6px; color: var(--muted); font-size: 16px; }
.input, .field input:not([type=checkbox]):not([type=radio]):not([type=file]), .field select, .field textarea { width: 100%; min-height: 52px; padding: 12px 16px; border: 1.5px solid var(--line-2); border-radius: var(--r-input); background: #fff; font-size: 17px; }
.field textarea { min-height: 140px; resize: vertical; line-height: 1.6; }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 4px rgba(0, 60, 220, .12); }
.check { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; font-size: 17px; cursor: pointer; }
.check input { flex: none; width: 24px; height: 24px; margin-top: 2px; accent-color: var(--red-600); }
.choice-grid { display: grid; gap: 12px; }
.choice { position: relative; display: block; padding: 18px 20px; border: 1.5px solid var(--line-2); border-radius: var(--r-card); background: #fff; cursor: pointer; }
.choice:has(input:checked) { border-color: var(--red-600); box-shadow: 0 0 0 3px var(--red-100); }
.choice input { position: absolute; right: 16px; top: 16px; width: 22px; height: 22px; accent-color: var(--red-600); }
.choice strong { display: block; padding-right: 30px; font-size: 18px; }
.choice small { color: var(--muted); }
.form-status { min-height: 1.6em; margin-top: 12px; color: var(--ink-2); font-size: 16px; font-weight: 600; }
.form-status.is-error { color: var(--red-700); }
.form-status.is-ok { color: var(--green); }
.notice { padding: 16px 20px; border-radius: var(--r-input); background: var(--blue-50); color: #1b2f73; font-size: 16px; }
.notice-amber { background: var(--amber-50); color: #6b3a00; }
.notice-red { background: var(--red-50); color: var(--red-700); }
.notice-green { background: var(--green-50); color: #145431; }

/* 파일 올리기 */
.drop { display: grid; place-items: center; gap: 10px; padding: 34px 20px; border: 2px dashed var(--line-2); border-radius: var(--r-card); background: var(--paper-2); text-align: center; transition: border-color .15s, background .15s; }
.drop.is-over { border-color: var(--red-600); background: var(--red-50); }
.drop strong { font-size: 19px; }
.files { margin: 16px 0 0; padding: 0; list-style: none; }
.files li { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.files li + li { margin-top: 10px; }
.files .fi { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--red-50); color: var(--red-700); font-weight: 800; }
.files .fname { font-weight: 700; overflow-wrap: anywhere; }
.files .fmeta { color: var(--muted); font-size: 16px; }
.meter { position: relative; height: 10px; overflow: hidden; border-radius: var(--r-pill); background: var(--paper-3); }
.meter > span { position: absolute; inset: 0 auto 0 0; border-radius: inherit; background: var(--red-600); transition: width .25s; }
.meter-green > span { background: var(--green); }

/* 단계 안내 */
.steps { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin: 0 0 36px; padding: 0; list-style: none; counter-reset: step; }
.steps li { padding-top: 12px; border-top: 4px solid var(--line); color: var(--muted); font-size: 16px; font-weight: 700; line-height: 1.35; }
.steps li b { display: block; font-size: 14px; letter-spacing: .04em; }
.steps li.done { border-color: var(--ink); color: var(--ink-2); }
.steps li.current { border-color: var(--red-600); color: var(--red-700); }

/* 표 */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-card); background: #fff; }
.table { width: 100%; border-collapse: collapse; font-size: 17px; }
.table th, .table td { padding: 16px 18px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.table th { background: var(--paper-2); color: var(--ink-2); font-size: 16px; font-weight: 800; white-space: nowrap; }
.table tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table .act { text-align: right; white-space: nowrap; }

/* 지표 */
.stat { padding: 24px; border: 1px solid var(--line); border-radius: var(--r-card); background: #fff; }
.stat strong { display: block; font-size: 34px; font-weight: 800; letter-spacing: -.05em; }
.stat span { color: var(--muted); font-size: 16px; font-weight: 700; }

/* 탭 */
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 28px; padding-bottom: 0; border-bottom: 1px solid var(--line); }
.tabs a { display: inline-flex; align-items: center; min-height: 52px; padding: 0 18px; border-bottom: 3px solid transparent; color: var(--muted); font-size: 17px; font-weight: 800; text-decoration: none; }
.tabs a[aria-current="page"] { border-color: var(--red-600); color: var(--ink); }

/* 아코디언(FAQ·커리큘럼) */
.acc { border-top: 1px solid var(--line); }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; padding: 14px 4px; font-size: 19px; font-weight: 700; cursor: pointer; list-style: none; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "+"; display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--paper-2); font-size: 22px; font-weight: 500; }
.acc details[open] summary::after { content: "−"; background: var(--red-50); color: var(--red-700); }
.acc .acc-body { padding: 0 4px 24px; color: var(--ink-2); }

/* 커리큘럼 목록 */
.curri { border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; background: #fff; }
.curri + .curri { margin-top: 14px; }
.curri-head { display: flex; align-items: center; gap: 14px; padding: 18px 22px; background: var(--paper-2); }
.curri-head .badge { flex: none; }
.curri-head strong { font-size: 18px; }
.curri ol { margin: 0; padding: 0; list-style: none; }
.curri li { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 60px; padding: 10px 22px; border-top: 1px solid var(--line); }
.curri li a { font-weight: 700; }
.curri .meta { display: flex; flex: none; align-items: center; gap: 10px; color: var(--muted); font-size: 16px; }
.curri-soon .curri-head { background: #fff; color: var(--muted); }
.curri-soon .curri-head strong { color: var(--muted); }
.badge-soon { margin-left: auto; background: var(--paper-2); color: var(--muted); }

/* 대화상자 */
dialog.modal { width: min(600px, calc(100% - 28px)); max-height: 92vh; overflow: auto; padding: 32px; border: 0; border-radius: 22px; color: var(--ink); box-shadow: var(--shadow-lg); }
dialog.modal::backdrop { background: rgba(20, 20, 26, .55); }
.modal-x { float: right; margin: -8px -8px 0 0; }
.modal-x button { display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: var(--paper-2); font-size: 26px; cursor: pointer; }
.modal fieldset { margin: 20px 0; padding: 8px 18px; border: 1px solid var(--line); border-radius: 14px; }
.modal legend { padding: 0 6px; font-weight: 800; }
.biz { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; line-height: 1.7; }

/* 플레이어 */
.player-shell { background: #17171c; color: #f4f4f6; }
.player-shell .wrap { padding: 28px 0 36px; }
.player-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.player-head a { color: #d8d8de; font-weight: 700; }
.player-head h1 { color: #fff; font-size: clamp(22px, 2.4vw, 30px); }
.player-head .sub { color: #b9b9c2; font-size: 16px; }
.player { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); }
.slide-frame { position: relative; width: 100%; }
.slide-stage, .slide-frame:not(:has(.slide-stage)) { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 14px; background: #fff; }
.slide-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #fff; }
/* 슬라이드 클릭 = 재생/일시정지(iframe 위 투명 버튼). 멈춤 상태면 가운데 큰 ▶ */
.stage-hit { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; width: 100%; padding: 0; border: 0; background: transparent; cursor: pointer; }
.stage-hit .big-play { display: grid; place-items: center; width: 92px; height: 92px; padding-left: 6px; border-radius: 50%; background: rgba(234, 88, 12, .92); color: #fff; font-size: 38px; box-shadow: 0 14px 40px rgba(0, 0, 0, .35); opacity: 0; transform: scale(.85); transition: opacity .2s, transform .2s; }
.player.is-paused .stage-hit .big-play { opacity: 1; transform: none; }
.stage-hit:focus-visible { outline: 3px solid var(--red); outline-offset: -3px; }
.avatar-pip { position: absolute; right: 14px; bottom: 14px; z-index: 3; width: 22%; aspect-ratio: 9 / 10; overflow: hidden; border: 3px solid #fff; border-radius: 16px; background: #000; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.avatar-pip video { width: 100%; height: 100%; object-fit: cover; }
.caption { min-height: 64px; margin-top: 14px; padding: 14px 18px; border-radius: 12px; background: #000; color: #fff; font-size: 20px; line-height: 1.55; text-align: center; }
.controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; }
.cbtn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 52px; min-height: 52px; padding: 0 16px; border: 1px solid #44444e; border-radius: var(--r-pill); background: #24242b; color: #fff; font-size: 16px; font-weight: 800; cursor: pointer; }
.cbtn:hover { background: #30303a; }
.cbtn-main { background: var(--red-600); border-color: var(--red-600); }
.cbtn-main:hover { background: var(--red-700); }
.seek { flex: 1 1 240px; display: flex; align-items: center; gap: 12px; color: #c9c9d1; font-size: 15px; font-variant-numeric: tabular-nums; }
.seek input[type=range] { flex: 1; accent-color: var(--red); height: 32px; }
.cselect { min-height: 52px; padding: 0 14px; border: 1px solid #44444e; border-radius: var(--r-pill); background: #24242b; color: #fff; font-size: 16px; font-weight: 700; }
.player-aside { margin-top: 26px; }
.session-list { margin: 0; padding: 0; list-style: none; }
.session-list li a { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 14px; border-radius: 12px; color: #e6e6ea; font-weight: 600; text-decoration: none; }
.session-list li a:hover { background: #24242b; }
.session-list li a[aria-current="page"] { background: #2d2d36; color: #fff; }
.session-list .chap { margin: 18px 0 6px; padding: 0 14px; color: #a9a9b3; font-size: 15px; font-weight: 800; }
.player-shell .muted { color: #b9b9c2; }

/* 슬라이드형(기존 강의) 무대 */
.lms-stage { min-height: 460px; max-height: 72vh; overflow: auto; padding: 40px 44px; border-radius: 14px; background: #fff; color: var(--ink); }

/* 퀴즈 */
.quiz { padding: 32px; border-radius: 18px; background: #fff; color: var(--ink); }
.quiz fieldset { margin: 0 0 22px; padding: 0; border: 0; }
.quiz legend { margin-bottom: 12px; font-size: 19px; font-weight: 800; }
.quiz .opt { display: flex; align-items: center; gap: 12px; min-height: 56px; margin-top: 8px; padding: 10px 16px; border: 1.5px solid var(--line-2); border-radius: 14px; cursor: pointer; }
.quiz .opt input { width: 22px; height: 22px; accent-color: var(--red-600); }
.quiz .opt.correct { border-color: var(--green); background: var(--green-50); }
.quiz .opt.wrong { border-color: var(--red-700); background: var(--red-50); }
.quiz .explain { margin-top: 10px; color: var(--ink-2); font-size: 16px; }

/* 별점 입력 */
.rate { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.rate input { position: absolute; opacity: 0; }
.rate label { font-size: 34px; line-height: 1; color: var(--line-2); cursor: pointer; }
.rate input:checked ~ label, .rate label:hover, .rate label:hover ~ label { color: var(--red-600); }
.rate input:focus-visible + label { outline: 3px solid var(--blue); border-radius: 6px; }

/* 아바타 */
.avatar { display: block; overflow: hidden; border-radius: 18px; background: var(--paper-2); }
.avatar img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.avatar-card { padding: 12px 12px 16px; border: 1px solid var(--line); border-radius: var(--r-card); background: #fff; text-align: center; }
.avatar-card strong { display: block; margin-top: 10px; font-size: 18px; }
.avatar-card small { display: block; color: var(--muted); font-size: 15px; line-height: 1.45; }
.avatar-mini { width: 56px; height: 56px; flex: none; overflow: hidden; border-radius: 50%; background: var(--red-50); }
.avatar-mini img { width: 100%; height: 100%; object-fit: cover; }

/* 관리자 */
.admin-band { background: #0F172A; color: #fff; }
.admin-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 48px; font-size: 16px; font-weight: 800; }
.admin-band .tag { display: inline-flex; align-items: center; gap: 8px; }
.admin-band .tag::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #4d7cff; }
.admin-band a { color: #cdd6ff; }
.side-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 40px; align-items: start; }
.side-nav { position: sticky; top: 100px; display: grid; gap: 4px; }
.side-nav a { display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: 0 14px; border-radius: 12px; color: var(--ink-2); font-size: 16px; font-weight: 700; text-decoration: none; }
.side-nav a:hover { background: var(--paper-2); }
.side-nav a[aria-current="page"] { background: var(--ink); color: #fff; }
.side-nav .count { min-width: 28px; padding: 0 8px; border-radius: var(--r-pill); background: var(--red-600); color: #fff; font-size: 14px; text-align: center; }
.page-title { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.page-title h1 { font-size: clamp(28px, 3vw, 38px); font-weight: 800; }
.page-title p { margin-top: 8px; color: var(--muted); }
.next-action { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 28px; border-radius: var(--r-card); background: var(--ink); color: #fff; }
.next-action strong { display: block; font-size: 20px; }
.next-action p { color: #cfcfd6; font-size: 16px; }

/* 수료증 */
.cert { position: relative; max-width: 960px; margin: 0 auto; padding: 64px 72px; border: 1px solid var(--line); border-radius: 18px; background: #fff; text-align: center; box-shadow: var(--shadow); }
.cert::before { content: ""; position: absolute; inset: 14px; border: 2px solid var(--red-100); border-radius: 12px; pointer-events: none; }
.cert h1 { margin-top: 18px; font-size: 44px; font-weight: 800; letter-spacing: -.04em; }
.cert .who { display: block; margin: 34px 0 10px; font-size: 32px; font-weight: 800; }

/* 푸터 */
.site-foot { border-top: 1px solid var(--line); background: #fff; }
.site-foot .wrap { display: grid; grid-template-columns: 1.1fr 1.9fr; gap: 40px; padding: 48px 0 40px; }
.site-foot p { color: var(--muted); font-size: 15px; line-height: 1.8; }
.site-foot .foot-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 12px; font-size: 15px; font-weight: 700; }
.site-foot .copy { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 0 28px; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; }
.to-top { flex: none; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: var(--r-pill); background: var(--blue-50); color: var(--blue); font-size: 15px; font-weight: 800; }

/* 나타나기 */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s, transform .7s cubic-bezier(.16, 1, .3, 1); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* 빈 상태 */
.empty { padding: 56px 24px; border: 1.5px dashed var(--line-2); border-radius: var(--r-card); text-align: center; }
.empty p { margin: 8px 0 20px; color: var(--muted); }

/* 리치 텍스트 */
.prose { max-width: 760px; font-size: 18px; line-height: 1.8; }
.prose h1, .prose h2, .prose h3 { margin: 1.6em 0 .6em; }
.prose h2 { font-size: 26px; }
.prose h3 { font-size: 21px; }
.prose p, .prose ul, .prose ol, .prose pre, .prose table, .prose blockquote, .prose figure { margin: 0 0 1.1em; }
.prose pre { overflow: auto; padding: 18px; border-radius: 12px; background: #17171c; color: #f2f2f5; font-size: 15px; }
.prose code { font-size: .92em; }
.prose img { border-radius: 10px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 16px; }
.prose th, .prose td { padding: 10px 12px; border: 1px solid var(--line); }
.prose blockquote { padding: 12px 18px; border-left: 4px solid var(--red-600); background: var(--paper-2); }

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

@media (max-width: 1080px) {
  .grid-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .split-l, .split-r, .studio { grid-template-columns: 1fr; }
  .studio-side { border-left: 0; border-top: 1px solid var(--line); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero .wrap, .hero-course .wrap { grid-template-columns: 1fr; min-height: 0; padding-top: 48px; }
  .stage { width: min(460px, 92%); }
  .side-layout { grid-template-columns: 1fr; }
  .side-nav { position: static; display: flex; overflow-x: auto; padding-bottom: 6px; }
  .side-nav a { flex: none; }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .nav, .top-right .btn-primary { display: none; }
  .mnav { display: block; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-head { flex-direction: column; align-items: flex-start; }
  .site-foot .wrap { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 18px; }
  .wrap, .wrap-narrow { width: calc(100% - 40px); }
  .section { padding: 64px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .grid-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .studio > div:first-child { padding: 24px !important; }
  .btn { min-height: 56px; }
  .hero-actions .btn { width: 100%; }
  .mini-voice { left: -2%; }
  .mini-done { right: -2%; }
  .avatar-pip { position: relative; right: auto; bottom: auto; width: 46%; margin: 12px auto 0; }
  /* 모바일: 아바타는 슬라이드 아래, 제어바는 슬라이드 위쪽에 탭으로 나타났다 사라진다 */
  .player .controls { position: absolute; top: 0; left: 0; right: 0; z-index: 4; margin: 0; padding: 10px; border-radius: 14px 14px 0 0; background: rgba(15, 23, 42, .88); gap: 8px; opacity: 0; pointer-events: none; transform: translateY(-6px); transition: opacity .2s, transform .2s; }
  .player.show-ctl .controls { opacity: 1; pointer-events: auto; transform: none; }
  .player .controls { flex-wrap: wrap; row-gap: 4px; padding: 8px 10px 4px; }
  .player .controls .cbtn { flex: none; min-height: 40px; min-width: 40px; padding: 0 10px; font-size: 14px; }
  .player .controls .cselect, .player .controls #cc, .player .controls #fs { display: none; }
  .player .controls .seek { flex: 1 1 100%; min-width: 0; gap: 8px; font-size: 13px; }
  .player .controls .seek span { flex: none; white-space: nowrap; }
  .player .controls .seek input[type=range] { width: 100%; min-width: 0; }
  .stage-hit { align-items: end; padding-bottom: 14px; }
  .stage-hit .big-play { width: 56px; height: 56px; font-size: 24px; }
  .card, .panel { padding: 22px; }
  dialog.modal { padding: 24px 20px; }
  .lms-stage { padding: 24px 20px; }
  .cert { padding: 40px 24px; }
  .who summary .who-email { display: none; }
  .who summary .who-short { display: inline; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .table { font-size: 16px; }
  .table th, .table td { padding: 12px; }
}

/* 내 강의실 카드 */
.my-card { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 28px; align-items: start; }
@media (max-width: 640px) { .my-card { grid-template-columns: 1fr; gap: 16px; } }

/* ---------- 로그인·회원가입 (/login) ---------- */
.auth { border-bottom: 1px solid var(--line); background: linear-gradient(#fff 0%, #fbfbfc 100%); }
.auth-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); align-items: center; gap: 64px; min-height: calc(100vh - 77px); padding: 56px 0 72px; }
.auth-side-title { margin: 14px 0 16px; font-size: clamp(36px, 4vw, 54px); font-weight: 900; line-height: 1.15; letter-spacing: -.04em; }
.auth-side .muted { max-width: 420px; }
.auth-morph { width: min(300px, 70%); aspect-ratio: 1; margin: 36px 0 0; overflow: hidden; border: 1px solid var(--line); border-radius: 28px; background: var(--paper-2); box-shadow: var(--shadow); }
.auth-morph img { width: 100%; height: 100%; object-fit: cover; }
.auth-card { padding: 40px 36px 32px; box-shadow: var(--shadow-lg); }
.auth-lead { margin-top: 8px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 26px 0 22px; padding: 4px; border-radius: var(--r-pill); background: var(--paper-2); }
.auth-tabs button { min-height: 46px; border: 0; border-radius: var(--r-pill); background: transparent; color: var(--muted); font-size: 16px; font-weight: 800; cursor: pointer; }
.auth-tabs button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 2px 8px rgba(20, 20, 30, .08); }
.auth-google { gap: 12px; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: var(--muted); font-size: 14px; font-weight: 600; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-submit { margin-top: 24px; }
.auth-turnstile:not(:empty) { margin-top: 20px; }
.auth-link { display: block; margin: 14px auto 0; padding: 6px; border: 0; background: none; color: var(--blue); font-size: 15px; font-weight: 700; cursor: pointer; }
.auth-link:hover { text-decoration: underline; }
.auth-fine { margin-top: 12px; text-align: center; }
.auth-icon { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 18px; border-radius: 50%; background: var(--red-50); color: var(--red-600); font-size: 26px; }
.auth-foot { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); text-align: center; }
@media (max-width: 900px) {
  .auth-grid { grid-template-columns: 1fr; gap: 0; min-height: 0; padding: 28px 0 48px; }
  .auth-side { display: none; }
  .auth-card { padding: 28px 20px 24px; }
}

/* ---------- 강의 전용 캐릭터(노우버스 직강: 콩닥쌤) ---------- */
.guide-row { display: flex; align-items: center; gap: 12px; margin-top: 22px; }
.guide-row small { display: block; font-size: 13px; line-height: 1.3; }
.guide-row strong { display: block; font-size: 17px; line-height: 1.3; }
.gate-guide { display: block; width: 112px; height: 112px; margin: 0 auto 16px; border-radius: 50%; object-fit: cover; background: #fffaf0; box-shadow: var(--shadow); }

/* 말하는 아바타: 기본 몸 + 입 5종 + 눈 감김을 겹치고, data-mouth·is-blink로 보이는 층을 바꾼다(talker.js) */
.player-main.has-talker { display: grid; grid-template-columns: minmax(0, 1fr) minmax(180px, 22%); gap: 18px; align-items: start; }
.talker { position: sticky; top: 96px; margin: 0; overflow: hidden; border-radius: 14px; background: #fffaf0; }
.talker-stack { position: relative; aspect-ratio: 1; }
.talker-stack img { position: absolute; inset: 0; width: 100%; height: 100%; }
.talker .t-mouth, .talker .t-eyes { visibility: hidden; }
.talker[data-mouth="a"] .t-mouth[data-m="a"], .talker[data-mouth="i"] .t-mouth[data-m="i"], .talker[data-mouth="u"] .t-mouth[data-m="u"],
.talker[data-mouth="e"] .t-mouth[data-m="e"], .talker[data-mouth="o"] .t-mouth[data-m="o"], .talker.is-blink .t-eyes { visibility: visible; }
.talker.is-talking .talker-stack { animation: talker-bob 2.4s ease-in-out infinite; }
@keyframes talker-bob { 50% { transform: translateY(-1.5%) rotate(-.6deg); } }
.talker figcaption { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: #fff; color: var(--ink); font-size: 15px; font-weight: 800; }
.talker-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); }
.talker.is-talking .talker-dot { background: var(--red-600); }
@media (prefers-reduced-motion: reduce) { .talker.is-talking .talker-stack { animation: none; } }
@media (max-width: 900px) {
  .player-main.has-talker { grid-template-columns: 1fr; }
  .talker { position: relative; top: 0; display: flex; align-items: center; order: -1; width: 100%; border-radius: 14px; }
  .talker-stack { width: 112px; flex: none; }
  .talker figcaption { flex: 1; align-self: stretch; }
}

/* 크레딧 충전(/my/credits): 충전 금액 선택 카드 */
.pack-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.pack { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 18px 18px 16px; border: 2px solid var(--line); border-radius: var(--r-card); background: #fff; cursor: pointer; text-align: left; font: inherit; color: inherit; }
.pack:hover { border-color: var(--line-2); }
.pack[aria-pressed="true"] { border-color: var(--red-600); background: var(--red-50); }
.pack .pack-krw { font-size: 22px; font-weight: 800; color: var(--ink); }
.pack .pack-credits { font-size: 15px; color: var(--muted); }
.pack .pack-bonus { position: absolute; top: 12px; right: 12px; padding: 2px 8px; border-radius: var(--r-pill); background: var(--red-600); color: #fff; font-size: 12px; font-weight: 700; }
.balance-big { font-size: 40px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
@media (max-width: 720px) { .pack-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
