/* 인류의지혜 섬 — 3D 월드 스타일
   토큰: 디자인 체계 v4(docs/DESIGN_SYSTEM_v4.md, 2026-10-10) — 먹(ink)·흰 종이·빨강(서명색) 한두 곳.
   옛 이름(--orange·--blue 등)은 다른 파일·스크립트(bgm.js 등)가 참조하므로 이름은 두고 값만 v4로 바꾼다.
   주황(#f7941d)은 UI에 쓰지 않는다(로고 안에서만). 세부 모양은 css/v4.css가 마지막에 덮는다. */
:root {
  --sky-top: #a9cfec;
  --sky-low: #dcebf6;
  /* v4 기본 토큰 */
  --v4-ink: #172334;
  --v4-ink-2: #3A4555;
  --v4-muted: #5F6B7A;
  --v4-mist: #EFF2F6;
  --v4-line: #DFE4EA;
  --v4-red: #B8202B;
  --v4-red-soft: #FBEDEE;
  --v4-focus: #2f6fd6;
  --v4-float: 0 24px 60px -24px rgba(23, 35, 52, .35);
  /* 옛 이름 → v4 값 */
  --blue: var(--v4-ink);
  --blue-deep: var(--v4-ink);
  --orange: var(--v4-ink);        /* 주 버튼·초점: 먹 */
  --orange-ink: var(--v4-ink);    /* 옛 강조 글자: 먹. 빨강은 v4.css에서 숫자·선택·진행에만 따로 준다 */
  --on-orange: #ffffff;
  --charcoal: var(--v4-ink-2);
  --ink: var(--v4-ink);
  --muted: var(--v4-muted);
  --paper: #ffffff;
  --mist: var(--v4-mist);
  --line: var(--v4-line);
  --ok: #2f7a55;
  --red: var(--v4-red);
  --red-soft: var(--v4-red-soft);
  --serif: "Noto Serif KR", "Nanum Myeongjo", "AppleMyungjo", serif;
  --body: "Pretendard Variable", Pretendard, "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  --display: var(--body);          /* 귀여운 제목 글꼴(Jua)은 UI에 쓰지 않는다 */
  --head: var(--body);
  --panel-w: min(470px, 42vw);
  --r-lg: 16px;
  --r-md: 10px;
  --shadow: var(--v4-float);
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-low) 70%, #e9f2f9 100%);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
img { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--blue-deep); }
/* 초점: 3px 먹 고리 + 안쪽 흰 띠(흰 패널·3D 바다·먹 버튼 어디서나 보이게). v4.css가 모든 구성요소에 같은 고리를 맞춘다 */
:focus-visible { outline: 3px solid var(--v4-ink); outline-offset: 3px; box-shadow: 0 0 0 3px #fff; }
a:focus-visible { border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

.skip {
  position: fixed; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 10px; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ── 로딩 ─────────────────────────────── */
.loader {
  position: fixed; inset: 0; z-index: 90;
  display: grid; place-content: center; justify-items: center; gap: 14px;
  background: linear-gradient(180deg, var(--sky-top), var(--sky-low));
  transition: opacity .5s ease, visibility .5s;
}
.loader-duron { width: 180px; height: auto; animation: hop 1.1s ease-in-out infinite; }
.loader-line { margin: 0; font-family: var(--display); font-size: 22px; color: var(--blue-deep); }
.loader-bar { width: 220px; height: 10px; border-radius: 99px; background: #fff; overflow: hidden; box-shadow: inset 0 0 0 2px var(--line); }
.loader-bar span { display: block; height: 100%; width: 8%; background: var(--orange); border-radius: inherit; transition: width .3s ease; }
body:not(.is-loading) .loader { opacity: 0; visibility: hidden; pointer-events: none; }
body.mode-text .loader, body.loader-gone .loader { display: none; }
@keyframes hop { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

/* ── 무대 ─────────────────────────────── */
.stage { position: fixed; inset: 0; }
#scene { width: 100%; height: 100%; display: block; touch-action: none; }
body.mode-2d #scene { display: none; }
/* 첫 방문 포스터: 3D를 불러오기 전 섬 전경 */
body.poster .stage { background: url("../assets/poster-wide.webp") center 58% / cover no-repeat; }
@media (max-aspect-ratio: 4/5) { body.poster .stage { background-image: url("../assets/poster-tall.webp"); background-size: cover; background-position: center 38%; background-color: #4fb8d8; } }
body.poster .guide, body.poster .minimap, body.poster .enter-prompt { display: none; }
body.poster-shot .hud, body.poster-shot .guide, body.poster-shot .dock, body.poster-shot .minimap, body.poster-shot .enter-prompt, body.poster-shot .intro, body.poster-shot .toasts { display: none !important; }

/* ── 상단 HUD ─────────────────────────── */
.hud {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  display: flex; align-items: center; gap: 14px;
  padding: max(12px, env(safe-area-inset-top)) 18px 0;
  pointer-events: none;
}
.hud > * { pointer-events: auto; }
.brand {
  display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink);
  background: rgba(255, 255, 255, .92); padding: 7px 14px 7px 10px; border-radius: 18px;
  box-shadow: var(--shadow);
}
.brand img { width: 36px; height: auto; }
.brand span { display: grid; line-height: 1.15; }
.brand b { font-weight: 800; font-size: 18px; letter-spacing: -.02em; }
.brand small { font-size: 12px; color: var(--muted); }

.stampcard {
  display: flex; align-items: center; gap: 10px;
  border: 0; background: rgba(255, 255, 255, .92); border-radius: 18px; padding: 8px 14px;
  box-shadow: var(--shadow);
}
.stampcard-title { font-size: 14px; color: var(--muted); white-space: nowrap; }
.stampcard-title b { font-family: var(--display); font-weight: 400; font-size: 20px; color: var(--ink); }
.stamps { display: flex; gap: 6px; }
.stamp {
  width: 26px; height: 22px; border-radius: 9px 9px 9px 3px;
  border: 2px dashed #b9cadb; background: transparent;
  display: grid; place-items: center; font-size: 11px; color: transparent;
}
.stamp.on { border: 0; background: var(--orange); color: #fff; animation: stampIn .45s cubic-bezier(.3, 1.6, .5, 1); }
.stamp.on::after { content: "✓"; font-weight: 700; color: #fff; font-size: 13px; }
@keyframes stampIn { from { transform: scale(1.8) rotate(-12deg); opacity: 0; } to { transform: none; opacity: 1; } }

.hud-actions { margin-left: auto; display: flex; gap: 10px; align-items: center; }
button, .btn { word-break: keep-all; }
.ghost-btn {
  white-space: nowrap;
  border: 0; background: rgba(255, 255, 255, .8); border-radius: 14px; padding: 9px 14px;
  font-size: 14px; font-weight: 600; color: var(--blue-deep); box-shadow: var(--shadow);
}
.cta {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  background: var(--orange); color: var(--on-orange); font-weight: 800; font-size: 16px; white-space: nowrap;
  padding: 11px 20px; border-radius: 18px 18px 18px 5px;
  box-shadow: 0 10px 22px -10px rgba(23, 35, 52, .35);
}
.cta:hover { background: #26364C; }

/* ── 첫 화면 안내(작게: 두런이·한 줄 인사·버튼 하나·링크 하나) ── */
.intro {
  position: fixed; z-index: 40; left: 28px; top: 50%; transform: translateY(-50%);
  width: min(400px, calc(100vw - 56px)); display: grid; grid-template-columns: 96px 1fr; gap: 0 16px; align-items: center;
  background: rgba(255, 255, 255, .97); border-radius: 28px 28px 28px 8px; padding: 22px 24px 22px 16px;
  box-shadow: 0 30px 60px -28px rgba(70, 50, 30, .45);
  animation: introIn .45s cubic-bezier(.2, .9, .25, 1) both;
}
@keyframes introIn { from { opacity: 0; transform: translateY(-44%); } to { opacity: 1; transform: translateY(-50%); } }
.intro-duron { width: 96px; height: auto; }
.intro h2 { font-family: var(--display); font-weight: 400; font-size: 26px; word-break: keep-all; line-height: 1.28; margin: 0 0 14px; color: #172334; }
.intro-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.intro-actions .btn { text-decoration: none; }
.intro-link { font-size: 14px; font-weight: 600; color: #5b6875; text-decoration: underline; text-underline-offset: 3px; padding-block: 6px; }
.intro-link[hidden] { display: none; }
body.intro-open .guide, body.intro-open .enter-prompt, body.intro-open .minimap { opacity: 0; pointer-events: none; }

/* 소개 카드 보조 */
.linkbtn { border: 0; background: none; padding: 0; color: var(--blue-deep); font: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.intro-actions .btn { text-decoration: none; }
.band { margin: 16px 0 0; padding: 10px 14px; border-radius: 14px 14px 14px 4px; background: #EFF2F6; font-size: 14px; color: var(--ink); }
.band b { color: var(--orange-ink); }
.form-note { margin: 0; font-size: 13px; color: var(--muted); }
.inquiry label em { font-style: normal; font-weight: 500; color: var(--muted); font-size: 12px; }
.more-fields { border: 2px dashed var(--line); border-radius: 14px; padding: 10px 12px; }
.more-fields summary { cursor: pointer; font-weight: 700; font-size: 14px; color: var(--blue-deep); }
.more-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; margin-top: 10px; }
.foot a { color: inherit; }

/* ── 두런이 가이드 ───────────────────────── */
.guide {
  position: fixed; left: 18px; bottom: 92px; z-index: 15;
  display: flex; align-items: flex-end; gap: 4px; max-width: min(430px, calc(100vw - 260px));
  pointer-events: none;
}
.guide img { width: 82px; height: auto; flex: none; filter: drop-shadow(0 8px 10px rgba(20, 52, 84, .25)); }
.guide-bubble {
  margin: 0 0 40px; position: relative;
  background: #fff; border-radius: 20px 20px 20px 6px; padding: 12px 16px;
  font-family: var(--display); font-size: 18px; line-height: 1.45; color: var(--ink);
  box-shadow: var(--shadow);
}
.guide-bubble::before {
  content: ""; position: absolute; left: -9px; bottom: 6px;
  border: 9px solid transparent; border-right-color: #fff; border-left: 0;
}
body.panel-open .guide { opacity: 0; transform: translateY(10px); transition: .2s; }

/* ── 존 진입 버튼 ─────────────────────────── */
.enter-prompt {
  position: fixed; left: 50%; bottom: 108px; z-index: 16; transform: translateX(-50%);
  border: 0; border-radius: 18px 18px 18px 5px; padding: 12px 20px;
  background: var(--blue-deep); color: #fff; font-weight: 700; font-size: 16px;
  box-shadow: 0 12px 26px -12px rgba(28, 87, 134, .9);
}
.enter-prompt kbd {
  font-family: var(--body); font-size: 12px; background: rgba(255, 255, 255, .22);
  border-radius: 6px; padding: 2px 6px; margin-left: 8px;
}

/* ── 독 ─────────────────────────────── */
.dock {
  position: fixed; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); z-index: 18; transform: translateX(-50%);
  display: flex; gap: 4px; padding: 6px; border-radius: 20px;
  background: rgba(255, 255, 255, .94); box-shadow: var(--shadow);
  max-width: calc(100vw - 540px); overflow-x: auto; scrollbar-width: none;
}
.dock::-webkit-scrollbar { display: none; }
.dock button {
  flex: none; display: flex; align-items: center; gap: 7px;
  border: 0; background: transparent; border-radius: 14px; padding: 9px 13px;
  font-size: 14px; font-weight: 600; color: var(--ink); white-space: nowrap;
}
.dock button:hover, .dock button[aria-current="true"] { background: var(--mist); }
.dock .dock-desk { background: #EFF2F6; color: var(--orange-ink); }
.dock .sh { display: none; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; background: var(--blue); }
.dot.done { box-shadow: 0 0 0 3px #FBEDEE; background: var(--orange); }
.dot-desk { background: var(--orange); }

/* ── 미니맵 ─────────────────────────────── */
.minimap {
  position: fixed; right: 18px; bottom: 18px; z-index: 17;
  width: 240px; height: 200px; border-radius: 22px;
  background: rgba(255, 255, 255, .9); box-shadow: var(--shadow); cursor: pointer;
}
body.mode-2d .minimap { display: none; }

/* ── 패널 ─────────────────────────────── */
.panel {
  position: fixed; z-index: 30; top: 76px; right: 18px; bottom: 18px; width: var(--panel-w);
  display: flex; flex-direction: column;
  background: var(--paper); border-radius: var(--r-lg) var(--r-lg) var(--r-lg) 8px;
  box-shadow: 0 30px 60px -24px rgba(20, 52, 84, .55);
  transform: translateX(calc(100% + 40px)); transition: transform .38s cubic-bezier(.2, .9, .25, 1);
  outline: none;
}
body.panel-open .panel { transform: none; }
body.panel-open .minimap { opacity: 0; pointer-events: none; }
body.panel-open .dock { left: calc((100% - var(--panel-w) - 36px) / 2); }
.panel-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px 10px 24px; border-bottom: 1px solid var(--line);
}
.panel-place { margin: 0; font-family: var(--display); font-size: 17px; color: var(--blue-deep); }
.panel-close {
  border: 0; background: var(--mist); border-radius: 12px; padding: 7px 14px; font-weight: 600; font-size: 14px;
}
.panel-body { overflow-y: auto; padding: 6px 24px 28px; overscroll-behavior: contain; }

.zone h1, .zone h2 {
  text-wrap: balance;
  font-family: var(--head); font-weight: 800; color: var(--ink);
  letter-spacing: -.01em; line-height: 1.22;
}
.zone h1 { font-size: 32px; margin: 18px 0 10px; }
.zone h2 { font-size: 28px; margin: 18px 0 8px; }
.zone h3 { font-size: 18px; margin: 26px 0 8px; }
.zone .lead { font-size: 16px; color: #33414e; margin: 0 0 12px; }
.zone .note { font-size: 13px; color: var(--muted); }
.textlink { font-weight: 600; }
/* 문장 속 링크 터치 영역(N-14) */
.zone p a, .zone small a, .band .linkbtn, .direct a, .textlink, .chat-fallback a { padding-block: 4px; }

.badges { list-style: none; padding: 0; margin: 12px 0 16px; display: flex; flex-wrap: wrap; gap: 6px; }
.badges li { font-size: 13px; font-weight: 600; padding: 5px 11px; border-radius: 12px 12px 12px 4px; background: var(--mist); color: var(--blue-deep); }
.badges li:nth-child(2) { background: #EFF2F6; color: var(--orange-ink); }

.instructor { display: grid; grid-template-columns: 112px 1fr; gap: 14px; margin: 18px 0; align-items: start; }
.instructor img { width: 112px; height: 140px; object-fit: cover; object-position: top; border-radius: 18px 18px 18px 6px; background: var(--mist); }
.instructor figcaption { display: grid; gap: 6px; font-size: 14px; }
.instructor b { font-size: 17px; font-weight: 800; }
.instructor q { color: #33414e; }
.instructor span { font-size: 12.5px; color: var(--muted); }

.howto, .axes { padding: 0; list-style: none; margin: 0; display: grid; gap: 8px; }
.howto li, .axes li { font-size: 14.5px; padding: 10px 12px; border-radius: 12px; background: #f6f9fc; }
.howto b, .axes b { display: block; font-size: 15px; }

.zone-cta { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 6px; }
.btn {
  border: 2px solid var(--line); background: #fff; color: var(--ink);
  border-radius: 16px 16px 16px 5px; padding: 11px 18px; font-weight: 700; font-size: 15px;
  text-decoration: none; display: inline-flex; align-items: center;
}
.btn:hover { border-color: var(--blue); }
.btn-main { background: var(--orange); border-color: var(--orange); color: var(--on-orange); }
.btn-main:hover { background: #26364C; border-color: #26364C; }

/* 강의실 */
.videos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 14px 0; }
.video { margin: 0; }
.video button {
  position: relative; display: block; width: 100%; padding: 0; border: 0; background: #000;
  border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 9;
}
.video img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .92; }
.video button::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px;
  border-radius: 50%; background: rgba(23, 35, 52, .92) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 7l9 5-9 5z' fill='%23fff'/%3E%3C/svg%3E") center/26px no-repeat;
}
.video iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 12px; display: block; }
.video figcaption { font-size: 13px; line-height: 1.4; margin-top: 6px; }
.video figcaption small { display: block; color: var(--muted); font-size: 12px; }
.video.is-wide { grid-column: 1 / -1; }

.callout { margin: 18px 0; padding: 14px 16px; border-radius: 18px 18px 18px 6px; background: var(--mist); }
.callout h3 { margin: 0 0 4px; font-size: 16px; color: var(--blue-deep); }
.callout p { margin: 0 0 10px; font-size: 14px; }

/* 진단 */
.diag fieldset { border: 0; padding: 0; margin: 0 0 14px; }
.diag legend { font-weight: 700; font-size: 15px; margin-bottom: 6px; }
.diag label {
  display: inline-flex; align-items: center; gap: 6px; margin: 0 6px 6px 0;
  padding: 7px 12px; border-radius: 12px; border: 2px solid var(--line); font-size: 14px; cursor: pointer;
}
.diag label:has(input:checked) { border-color: var(--blue); background: var(--mist); }
.diag input { accent-color: var(--blue); width: 20px; height: 20px; margin: 0; }
.diag label { min-height: 44px; }
.diag-result:empty { display: none; }
.diag-result { margin: 18px 0; padding: 16px; border-radius: 18px; background: #f6f9fc; }
.diag-summary { font-family: var(--head); font-weight: 800; font-size: 19px; margin: 0 0 10px; }
.rule { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.rule li { background: #fff; border-radius: 12px; padding: 10px 12px; border-left: 5px solid var(--blue); font-size: 14px; }
.rule li[data-kind="권장"] { border-left-color: #9fb3c6; }
.rule li[data-kind="확인 필요"] { border-left-color: #c9b26b; }
.rule li[data-kind="노력의무"] { border-left-color: #7fb0d8; }
.rule li[data-kind="해당 시 의무"] { border-left-color: #7fb0d8; }
.rule b { display: block; font-size: 15px; }
.rule .tag { display: inline-block; font-size: 12px; font-weight: 700; padding: 1px 8px; border-radius: 8px; background: var(--mist); color: var(--blue-deep); margin-right: 6px; }
.rule li[data-kind="권장"] .tag { background: #eef1f4; color: #4c5966; }
.rule li[data-kind="확인 필요"] .tag { background: #f7f0da; color: #6c5a1e; }
.rule small { display: block; color: var(--muted); margin-top: 3px; }
.rule details { margin-top: 4px; font-size: 13px; color: #33414e; }
.rule details summary { cursor: pointer; color: var(--blue-deep); font-weight: 700; padding-block: 4px; }
.rule details p { margin: 4px 0 0; }
.diag-top { margin: 0 0 12px; }

.ox { padding-left: 20px; display: grid; gap: 12px; }
.ox li { font-size: 15px; }
.ox .ox-btns { display: flex; gap: 6px; margin-top: 6px; }
.ox .ox-btns button {
  width: 52px; height: 40px; border-radius: 12px; border: 2px solid var(--line); background: #fff;
  font-family: var(--display); font-size: 20px;
}
.ox .ox-btns button[aria-pressed="true"].right { background: #e7f5ec; border-color: var(--ok); }
.ox .ox-btns button[aria-pressed="true"].wrong { background: #fdeeee; border-color: #c94b4b; }
.ox .ox-why { font-size: 13.5px; color: #33414e; margin: 6px 0 0; }

/* 자료실 */
.downloads { list-style: none; padding: 0; display: grid; gap: 8px; }
.dl a, .dl.is-pending {
  display: grid; gap: 2px; padding: 12px 14px; border-radius: 14px; text-decoration: none; color: var(--ink);
  background: #f6f9fc; border: 2px solid transparent;
}
.dl a:hover { border-color: var(--blue); }
.dl b { font-size: 15px; }
.dl span { font-size: 13px; color: var(--muted); }
.dl.is-pending { opacity: .7; }
.kit-box { margin: 18px 0; padding: 14px 16px; border-radius: 18px; background: #EFF2F6; }
.kit-box h3 { margin: 0 0 4px; color: var(--orange-ink); }
.kit-box p { margin: 0; font-size: 14px; }
.courses { display: grid; gap: 14px; }
.course-group h4 { margin: 8px 0 6px; font-size: 15px; color: var(--blue-deep); }
.course-group ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.course-group li { font-size: 14px; padding: 8px 10px; border-radius: 10px; background: #f6f9fc; }
.course-group li small { display: block; color: var(--muted); font-size: 12.5px; }

/* 명예의 전당 */
.press { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.press button { border: 0; padding: 0; background: none; text-align: left; width: 100%; }
.press img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: top; border-radius: 12px; display: block; background: var(--mist); }
.press b { display: block; font-size: 14px; line-height: 1.35; margin-top: 6px; }
.press small { color: var(--muted); font-size: 12px; }
.sub-h { margin: 22px 0 4px; font-size: 17px; }
.voice-cards { margin-top: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }  /* width 속성(540) 때문에 1fr 칸이 늘어나지 않게 */
.voice-cards img { height: auto; aspect-ratio: 1 / 1; object-position: center; border-radius: 14px; }
/* 교육생이 가장 많이 한 말 상위 5개(REVIEW-KW): 파스텔 칩 · 실제 센 수 · 누르면 일반형 후기 페이지 해당 키워드 */
.voice-kw { margin: 10px 0 4px; }
.voice-kw-cap { margin: 0 0 6px; font-size: 13px; font-weight: 700; color: var(--muted); }
.voice-kw-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.voice-kw-list a, .voice-kw-list span {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px;
  border-radius: 16px 16px 16px 5px; background: #EFF2F6; color: var(--ink); font-size: 14px; font-weight: 600; text-decoration: none;
  transition: transform .15s, box-shadow .15s;
}
.voice-kw-list li:nth-child(2) a, .voice-kw-list li:nth-child(2) span { background: #e2f3ef; }
.voice-kw-list li:nth-child(3) a, .voice-kw-list li:nth-child(3) span { background: #e3ecfb; }
.voice-kw-list li:nth-child(4) a, .voice-kw-list li:nth-child(4) span { background: #efe9fb; }
.voice-kw-list li:nth-child(5) a, .voice-kw-list li:nth-child(5) span { background: #ffe9dc; }
.voice-kw-list b { font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--ink); }
.voice-kw-list a:hover { transform: translateY(-1px); box-shadow: 0 0 0 2px rgba(31, 43, 54, .12); }
@media (prefers-reduced-motion: reduce) { .voice-kw-list a { transition: none; } .voice-kw-list a:hover { transform: none; } }

/* 상담 */
.ai-notice { font-size: 13px; padding: 8px 12px; border-radius: 10px; background: var(--mist); color: var(--blue-deep); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.chips button { border: 2px solid var(--line); background: #fff; border-radius: 14px 14px 14px 4px; padding: 7px 12px; font-size: 14px; }
.chips button:hover { border-color: var(--blue); }
body.no-chat #ai-notice, body.no-chat #chat-chips, body.no-chat #chat-open { display: none; }
.chat-fallback { margin-top: 12px; padding: 12px 14px; border-radius: 14px; background: #EFF2F6; font-size: 14px; }
.chat-fallback a { margin-right: 12px; font-weight: 600; }
.faq details { border-bottom: 1px solid var(--line); padding: 10px 0; }
.faq summary { font-weight: 600; cursor: pointer; font-size: 15px; }
.faq p { margin: 6px 0 0; font-size: 14px; color: #33414e; }

/* 섭외 폼 */
.direct a { margin-right: 14px; font-weight: 700; }
.inquiry { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; margin-top: 12px; }
.inquiry label { display: grid; gap: 4px; font-size: 13.5px; font-weight: 600; }
.inquiry .wide { grid-column: 1 / -1; }
.inquiry input, .inquiry select, .inquiry textarea {
  width: 100%; border: 2px solid var(--line); border-radius: 12px; padding: 9px 11px; background: #fff; font-weight: 400; font-size: 15px;
}
.inquiry input:focus, .inquiry select:focus, .inquiry textarea:focus { border-color: var(--blue); outline: none; }
.inquiry [aria-invalid="true"] { border-color: #c94b4b; }
.inquiry .consent { display: flex; gap: 8px; align-items: flex-start; font-weight: 500; }
.inquiry .consent input { width: 20px; height: 20px; margin-top: 2px; flex: none; }
.inquiry .consent small { display: block; font-weight: 400; color: var(--muted); font-size: 12.5px; }
.honeypot { position: absolute; left: -9999px; }
.form-status { margin: 0; font-size: 14px; font-weight: 600; }
.form-status[data-state="error"] { color: #b23b3b; }
.form-status[data-state="success"], .form-status[data-state="preview"] { color: var(--ok); }
.form-status a { text-decoration: underline; white-space: nowrap; }
.form-live-flag { margin: 0; padding: 8px 12px; border-radius: 10px; background: #fde8e8; color: #8a1f11; font-size: 14px; font-weight: 700; }

/* ── 2D 지도 ─────────────────────────────── */
.map2d { position: absolute; inset: 0; }
.map2d svg { position: absolute; left: 16px; right: 16px; top: 76px; bottom: 84px; width: calc(100% - 32px); height: calc(100% - 160px); overflow: visible; }
body.panel-open .map2d svg { width: calc(100% - var(--panel-w) - 56px); }
.map2d .pin .ico { font-family: var(--body); font-weight: 700; }
.map2d .pin { cursor: pointer; }
.map2d .pin text { font-family: var(--display); fill: var(--ink); paint-order: stroke; stroke: #fff; stroke-width: .35px; stroke-linejoin: round; }
.map2d .pin:focus-visible circle { stroke: var(--orange); stroke-width: 5; }
.map2d .me { transition: transform .9s cubic-bezier(.3, .8, .3, 1); }

/* ── 토스트 ─────────────────────────────── */
.toasts { position: fixed; top: 80px; left: 50%; transform: translateX(-50%); z-index: 60; display: grid; gap: 8px; pointer-events: none; }
.toast {
  display: flex; align-items: center; gap: 10px;
  background: var(--ink); color: #fff; padding: 10px 16px 10px 10px; border-radius: 18px 18px 18px 5px;
  box-shadow: var(--shadow); font-size: 15px; animation: toastIn .35s ease-out;
}
.toast img { width: 34px; height: 34px; object-fit: contain; }
.toast b { color: #B8202B; font-weight: 700; margin-right: 4px; }
.toast button { pointer-events: auto; border: 0; background: var(--orange); color: var(--on-orange); border-radius: 10px; padding: 5px 10px; font-weight: 700; margin-left: 6px; }
@keyframes toastIn { from { transform: translateY(-12px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ── 모달 ─────────────────────────────── */
dialog { border: 0; border-radius: var(--r-lg); padding: 26px; box-shadow: 0 40px 80px -30px rgba(20, 52, 84, .6); }
dialog::backdrop { background: rgba(28, 87, 134, .35); backdrop-filter: blur(2px); }
.mode-help { width: min(480px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow: auto; color: var(--ink); }
.mode-help h2 { margin: 0 0 12px; }
.mode-help p { line-height: 1.65; }
.kit { max-width: 440px; text-align: center; }
.kit img { width: 130px; height: auto; margin: -6px auto 0; display: block; }
.kit h2 { font-family: var(--head); font-weight: 800; font-size: 24px; margin: 8px 0; }
.kit-list { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 6px; text-align: left; }
.kit-list a { display: block; padding: 10px 12px; border-radius: 12px; background: #f6f9fc; font-weight: 600; text-decoration: none; }
.kit .zone-cta { justify-content: center; }
.kit-close { position: absolute; top: 12px; right: 12px; border: 0; background: var(--mist); border-radius: 10px; padding: 6px 12px; font-weight: 600; font-size: 13px; }
.lightbox { padding: 12px; width: min(92vw, 860px); max-width: none; max-height: 94vh; overflow: auto; }
.lightbox img { display: block; width: 100%; max-width: none; height: auto; margin: 0 auto; border-radius: 12px; }

.foot { position: fixed; left: -9999px; }

/* ── 텍스트 모드(스크린리더·검색·JS 없음 대비) ── */
html:has(body.mode-text), body.mode-text { height: auto; }
body.mode-text { overflow: visible; background: #f6f9fc; }
body.mode-text .stage, body.mode-text .guide, body.mode-text .dock, body.mode-text .minimap,
body.mode-text .enter-prompt, body.mode-text .panel-head { display: none !important; }
body.mode-text .hud { position: sticky; background: rgba(246, 249, 252, .95); padding-bottom: 10px; }
body.mode-text .panel { position: static; transform: none; width: auto; max-width: 760px; margin: 16px auto 60px; box-shadow: none; }
body.mode-text .panel-body { overflow: visible; }
body.mode-text .zone { display: block !important; border-bottom: 1px solid var(--line); padding-bottom: 20px; }
body.mode-text .foot { position: static; max-width: 760px; margin: 0 auto 40px; font-size: 13px; color: var(--muted); padding: 0 16px; }

/* ── 모바일 ─────────────────────────────── */
@media (min-width: 761px) and (max-width: 1024px) {
  :root { --panel-w: min(440px, 56vw); }
  .hud { gap: 8px; padding-left: 12px; padding-right: 12px; }
  .brand small { display: none; }
  .ghost-btn, .cta, .stampcard-title { white-space: nowrap; }
  .ghost-btn { padding: 8px 11px; font-size: 13px; }
  .cta { padding: 10px 14px; font-size: 15px; }
  .stamps { gap: 4px; }
  .stamp { width: 20px; height: 18px; }
  .dock { left: 12px; right: 12px; transform: none; max-width: none; justify-content: flex-start; }
  .dock.scrolls { -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
  .minimap { width: 180px; height: 150px; bottom: 84px; right: 12px; }
  .guide { bottom: 84px; max-width: calc(100vw - 230px); }
  .guide-bubble { font-size: 16px; }
  .enter-prompt { bottom: 200px; }
  .intro { left: 50%; transform: translate(-50%, -46%); }
  @keyframes introIn { from { opacity: 0; transform: translate(-50%, -40%); } to { opacity: 1; transform: translate(-50%, -46%); } }
  body.panel-open .dock { left: 12px; right: calc(var(--panel-w) + 36px); }
}

@media (max-width: 760px) {
  .hud { gap: 6px; padding: max(10px, env(safe-area-inset-top)) 10px 0; }
  .brand span { display: none; }
  #mode-btn { display: inline-flex; }
  .hud { flex-wrap: wrap; }
  .brand { padding: 6px 10px 6px 8px; border-radius: 14px; }
  .brand img { width: 32px; }
  .brand b { font-size: 17px; }
  .brand small { display: none; }
  .stampcard { padding: 6px 10px; border-radius: 14px; gap: 6px; }
  .stampcard-title { font-size: 13px; }
  .stamps { display: none; }
  .stampcard-title b { font-size: 16px; }
  .stamp { width: 18px; height: 16px; border-radius: 7px 7px 7px 2px; }
  .stamp.on::after { font-size: 10px; }
  .hud-actions { gap: 6px; }
  .ghost-btn { padding: 7px 10px; font-size: 12.5px; }
  .cta { padding: 9px 14px; font-size: 14px; border-radius: 14px 14px 14px 4px; }
  .guide { left: 10px; bottom: 76px; max-width: calc(100vw - 20px); }
  .guide img { width: 58px; }
  .guide-bubble { font-size: 15px; padding: 9px 12px; margin-bottom: 28px; }
  .dock { bottom: max(10px, env(safe-area-inset-bottom)); left: 10px; right: 10px; transform: none; max-width: none; }
  .dock { justify-content: space-between; gap: 2px; padding: 5px; border-radius: 18px; }
  .dock button { flex-direction: column; gap: 3px; padding: 6px 4px; min-width: 44px; flex: 1 1 0; font-size: 12px; line-height: 1.1; border-radius: 12px; }
  .dock .lg { display: none; }
  .dock .sh { display: inline; }
  .dock.scrolls { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
  .minimap { display: none; }
  .enter-prompt { top: auto; bottom: 212px; padding: 9px 16px; font-size: 15px; }
  .enter-prompt kbd { display: none; }
  body.panel-open .dock { left: 10px; }
  .intro {
    left: 12px; right: 12px; top: auto; bottom: calc(14px + env(safe-area-inset-bottom)); width: auto; transform: none;
    grid-template-columns: 72px 1fr; gap: 0 12px; padding: 16px 16px 16px 12px; border-radius: 24px; animation: none;
  }
  .intro-duron { width: 72px; }
  .intro h2 { font-size: 21px; margin-bottom: 10px; }
  .more-grid { grid-template-columns: 1fr; }
  body.intro-open .dock { opacity: 0; pointer-events: none; }
  .panel {
    top: auto; left: 0; right: 0; bottom: 0; width: auto; height: 84vh; height: 84dvh;
    border-radius: 24px 24px 0 0; transform: translateY(105%);
  }
  .panel-body { padding: 4px 18px calc(28px + env(safe-area-inset-bottom)); }
  .zone h1 { font-size: 27px; }
  .zone h2 { font-size: 24px; }
  .videos, .press { grid-template-columns: 1fr; }
  .inquiry { grid-template-columns: 1fr; }
  .instructor { grid-template-columns: 88px 1fr; }
  .instructor img { width: 88px; height: 110px; }
  .toasts { top: 62px; width: calc(100vw - 24px); }
  .toast { font-size: 14px; padding: 8px 12px 8px 8px; }
  .toast img { width: 28px; height: 28px; }
  .textmode-link { display: inline-block; }
}
@media (max-width: 380px) {
  .chat-btn { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ── 종합교육원 4부문(W-gfx, 2026-10-03) ── */
.dot-public { background: #2e9c8f; } .dot-corp { background: #2f6fd6; } .dot-ai { background: #7b5cd6; } .dot-life { background: #f08a1c; }
.divisions { list-style: none; padding: 0; margin: 0 0 6px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.divisions button, .division-links button {
  width: 100%; text-align: left; border: 1px solid var(--line); background: #fff; border-radius: 14px; padding: 12px 12px 12px 16px;
  font: inherit; color: var(--ink); cursor: pointer; position: relative; display: grid; gap: 3px; transition: border-color .15s, transform .15s, box-shadow .15s;
}
.divisions button::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 4px; border-radius: 0 4px 4px 0; background: var(--div, var(--blue)); }
.divisions button:hover, .division-links button:hover { border-color: var(--div, var(--blue)); transform: translateY(-1px); box-shadow: 0 8px 18px -12px rgba(20,52,84,.5); }
.divisions b, .division-links b { font-size: 15px; }
.divisions span, .division-links span { font-size: 12.5px; color: var(--muted); line-height: 1.4; }
/* --div는 점·선·배경용, 글자는 흰 바탕 4.5:1 이상인 --div-ink(WEB99·AD: 공공 #2e9c8f 글자 3.35:1, 평생 #f08a1c 2.5:1) */
.zone-division { --div: var(--blue); --div-ink: #1c5786; }
.zone-division[data-division="public"] { --div: #2e9c8f; --div-ink: #1f6f66; } .zone-division[data-division="corp"] { --div: #2f6fd6; --div-ink: #2559b0; }
.zone-division[data-division="ai"] { --div: #7b5cd6; --div-ink: #5f43b8; } .zone-division[data-division="life"] { --div: #f08a1c; --div-ink: #9a4d06; }
.division-tag { margin: 0 0 4px; font-size: 12px; font-weight: 700; letter-spacing: .02em; color: var(--div-ink, var(--blue-deep)); }
.zone-division h2 { margin-top: 0; }
.division-tagline { font-weight: 600; color: var(--ink); }
.division-desc { font-size: 14.5px; color: #3b4a57; }
.division-courses { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.division-courses li { font-size: 14px; padding: 9px 12px 9px 14px; border-radius: 10px; background: #f6f9fc; border-left: 3px solid var(--div); }
.division-courses li b { font-weight: 600; }
.division-courses li small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.division-courses li em { font-style: normal; font-size: 11.5px; margin-left: 6px; padding: 1px 6px; border-radius: 99px; background: #fff; color: var(--div-ink, var(--blue-deep)); border: 1px solid currentColor; }
.division-courses li.is-empty { border-left-color: var(--line); color: var(--muted); }
.division-links { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.division-links button { --div: inherit; }
@media (max-width: 420px) { .divisions, .division-links { grid-template-columns: 1fr; } }
.division-tracks { display: grid; gap: 8px; }
.track { border: 1px solid var(--line); border-radius: 14px; background: #fff; padding: 0 12px; }
.track summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 0; font-size: 15px; }
.track summary::-webkit-details-marker { display: none; }
.track summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); margin: -4px 4px 0 0; transition: transform .2s; }
.track[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
.track summary b { flex: 1; } .track summary span { font-size: 12px; color: var(--muted); }
.track > p { margin: -4px 0 8px; font-size: 13.5px; color: #3b4a57; }
.track .division-courses { padding-bottom: 12px; }

/* 교육생 후기 카드: 모바일도 2칸(1칸이면 카드 6장이 너무 길어짐) — PM 2026-10-03 */
@media (max-width: 900px) { #z-hall .voice-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } }

/* ── WEB99(2026-10-03 밤): 터치 영역 44px · 패널과 상담 병아리 겹침 · 토스트 위치 · 첫 안내 3초 정보 ── */
.ghost-btn, .cta, .stampcard, .brand, .panel-close, .kit-close, .dock button { min-height: 44px; }
.ghost-btn, .panel-close, .kit-close { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; }
.dock button { min-width: 44px; }
.intro-link { display: inline-flex; align-items: center; min-height: 44px; padding-block: 0; }
.band .linkbtn, .intro .linkbtn { display: inline-flex; align-items: center; min-height: 44px; margin-block: -12px; }
.zone p a, .zone small a, .direct a, .textlink, .chat-fallback a { padding-block: 12px; }
.ox .ox-btns button { min-height: 44px; min-width: 52px; }
.toast button { min-height: 44px; padding: 0 14px; }
.npc-hint button, .npc-chip-next, .npc-dock-people { min-height: 44px; }
.intro-areas { margin: -4px 0 4px; font-size: 15px; font-weight: 700; color: #172334; }
.intro-trust { margin: 0 0 12px; font-size: 13px; line-height: 1.45; color: #5b6875; }
.intro-trust .linkbtn { color: #1c5786; font-weight: 700; }
/* 존 패널이 열리면 오른쪽 아래 상담 병아리를 숨긴다(폼 '보내기'·과정 목록을 가리던 문제). 상단 '상담'은 패널을 닫고 연다 */
body.panel-open #chick-agent { display: none; }
/* 패널이 열린 태블릿·데스크톱: 알림을 패널 왼쪽 섬 쪽 가운데로(패널 제목을 가리던 문제) */
@media (min-width: 761px) { body.panel-open .toasts { left: calc((100% - var(--panel-w) - 36px) / 2); max-width: calc(100% - var(--panel-w) - 60px); } }
/* 텍스트 모드에서는 섬 놀이 요소(다음 할 일·동물 친구·이름표)를 숨긴다 */
body.mode-text .npc-dock, body.mode-text .npc-tags, body.mode-text .npc-dir { display: none !important; }
@media (max-width: 760px) {
  .ghost-btn { padding: 0 10px; }
  .cta { padding: 0 14px; }
  .stampcard { padding: 0 10px; }
  .brand { padding: 0 10px 0 8px; }
  .dock button { padding: 4px 4px; }
  .intro-areas { font-size: 14px; }
  .intro-trust { font-size: 12.5px; }
}
.chips button { min-height: 44px; }
.faq details { padding: 0; }
.faq summary { display: flex; align-items: center; min-height: 44px; padding: 8px 0; }
.faq details[open] p { padding-bottom: 10px; }
.more-fields summary { display: flex; align-items: center; min-height: 44px; }
.inquiry select, .inquiry input:not([type="checkbox"]):not([type="radio"]) { min-height: 44px; }
.zone p a, .zone small a, .direct a, .textlink, .chat-fallback a { padding-block: 13px; }
.zone .ai-notice a, .zone .consent a { padding-block: 16px; }
.foot a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px; }
.intro-trust span { display: block; }
.intro-trust .linkbtn { margin-block: -10px -12px; }

/* ── WEB99 2차(AD 재채점 반영, 2026-10-04) ── */
/* 차분한 시작: '섬 둘러보기' 직후 10초는 상단 띠·알림 하나·하단 바만 */
body.calm-start .npc-dock, body.calm-start .npc-tags, body.calm-start .minimap, body.calm-start .guide,
body.calm-start .gfx-hint, body.calm-start .enter-prompt, body.calm-start #chick-agent { opacity: 0 !important; visibility: hidden !important; pointer-events: none !important; }
.npc-dock, .minimap, .guide, .gfx-hint { transition: opacity .5s ease, visibility .5s; }
/* 알림이 떠 있는 동안 두런이 말풍선은 숨김(한 번에 한 사람만 말하기) */
body.has-toast .guide-bubble { opacity: 0; transition: opacity .2s; }
/* 첫 화면(포스터·안내창)에는 상담 병아리를 띄우지 않는다: 마스코트는 안내창 하나 */
body.poster #chick-agent, body.intro-open #chick-agent { display: none !important; }
/* 안내창 신뢰 줄: 14px/600 먹색 */
.intro-trust { font-size: 14px; font-weight: 600; color: #1c1917; line-height: 1.5; }
.intro-trust .linkbtn { color: #1c5786; font-weight: 700; }
@media (max-width: 760px) { .intro-trust { font-size: 13.5px; } .dock button { font-size: 11.5px; letter-spacing: -.02em; } }
/* 2D 지도 장소 이름(HTML 글자, 작은 화면에서도 14px) */
.map2d-labels { position: absolute; inset: 0; pointer-events: none; }
.map2d-label {
  position: absolute; transform: translate(-50%, -100%); white-space: nowrap; pointer-events: auto; cursor: pointer;
  font-family: var(--display); font-size: 16px; line-height: 1.2; color: var(--ink);
  text-shadow: 0 0 3px #fff, 0 0 3px #fff, 0 0 2px #fff, 0 0 1px #fff;
}
.map2d-label.below { transform: translate(-50%, 0); }
@media (max-width: 760px) { .map2d-label { font-size: 14px; } }
body.mode-text .map2d-labels { display: none; }
/* '설계 과정' 배지: 작고 차분하게(회색, 테두리 없음) */
.division-courses li em { color: #4d5b68; background: #eef2f6; border: 0; font-weight: 600; font-size: 11px; padding: 2px 7px; }
/* 강의실 썸네일: 영상 속 밝은 강사 장면 + 통일 제목 띠(영상에 박힌 자막을 가린다) */
.video img { opacity: 1; }
.video .v-band {
  position: absolute; left: 0; right: 0; bottom: 0; height: 24%; display: flex; align-items: center; padding: 0 12px;
  background: rgba(255, 255, 255, .96); color: var(--ink); font-size: 13px; font-weight: 700; letter-spacing: -.01em; text-align: left;
}
.video .v-band::before { content: ""; width: 4px; height: 14px; border-radius: 2px; background: var(--orange); margin-right: 8px; flex: none; }
.video button::after { top: 38%; }
.video.is-wide .v-band { font-size: 15px; height: 20%; }
/* 강의실 썸네일: 사진 없는 디자인 제목 카드(PM 2026-10-04 — 영상 장면 컷 대신). 크림·파스텔 바탕 + 굵은 제목 + 작은 병아리 */
.video button { background: var(--tone, #EFF2F6); }
.video button::after { content: none; }
.vcard { position: absolute; inset: 0; display: grid; grid-template-rows: auto 1fr auto; padding: 12px 14px 12px; text-align: left; color: #172334; overflow: hidden;
  background: radial-gradient(circle at 88% 82%, rgba(255, 255, 255, .75) 0 26%, transparent 27%), var(--tone, #EFF2F6); }
.vcard-topic { justify-self: start; font-size: 11.5px; font-weight: 700; color: #4d5b68; background: rgba(255, 255, 255, .8); border-radius: 99px; padding: 2px 9px; }
.vcard-title { align-self: center; max-width: 74%; font-family: var(--display); font-weight: 400; font-size: 21px; line-height: 1.25; word-break: keep-all; text-wrap: balance; }
.vcard-meta { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: #172334; }
.vcard-play { width: 26px; height: 26px; border-radius: 50%; background: var(--orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 7l9 5-9 5z' fill='%2315212c'/%3E%3C/svg%3E") center/16px no-repeat; }
.video .vcard .vcard-face { position: absolute; right: 6%; bottom: 8%; width: 22%; height: auto; object-fit: contain; opacity: 1; filter: drop-shadow(0 6px 8px rgba(80, 50, 30, .18)); }
.video.is-wide .vcard { padding: 18px 20px; }
.video.is-wide .vcard-title { font-size: 30px; max-width: 70%; }
.video.is-wide .vcard .vcard-face { width: 17%; }
.video button:hover .vcard-play, .video button:focus-visible .vcard-play { transform: scale(1.08); }
@media (prefers-reduced-motion: no-preference) { .vcard-play { transition: transform .15s; } }
/* ── WEB99 3차(AD 2차 재채점 반영) ── */
/* 알림: 흰 바탕·먹 글자·한 줄(어두운 띠가 화면에서 가장 무거웠음) */
.toast { background: rgba(255, 255, 255, .97); color: var(--ink); border: 1px solid var(--line); box-shadow: 0 10px 24px -14px rgba(20, 52, 84, .45); }
.toast b { color: var(--orange-ink); }
@media (max-width: 760px) { .toasts { left: 12px; right: 12px; width: auto; transform: none; justify-items: center; } .toast { padding: 6px 12px 6px 6px; max-width: 100%; } }
/* 강의실 대표 카드: 가운데가 비지 않게 높이 280 이하 */
.video.is-wide button { max-height: 280px; }
/* 음성 자막(voice.js가 붙이는 .vcap)도 알림과 같은 밝은 스타일, 차분한 시작 동안은 숨김 */
body .vcap { background: rgba(255, 255, 255, .97) !important; color: var(--ink) !important; border: 1px solid var(--line) !important; box-shadow: 0 10px 24px -14px rgba(20, 52, 84, .45) !important; }
body .vcap b { color: var(--orange-ink) !important; }
body .vcap small { color: #4d5b68 !important; border-color: #cfd8e0 !important; }
body.calm-start .vcap { display: none !important; }
