/* The Great Leaders — 휴대폰 웹 신문 시안 (2025 No. 17)
   색: 솔숲 초록 · 분필 흰색 · 은행잎 노랑. 글꼴: Anybody(제목·단추), Newsreader(제호·본문·인용). */

:root {
  --pine: #173A2D;
  --pine-2: #22503F;
  --chalk: #F6F8F4;
  --ginkgo: #FFD43B;
  --ginkgo-l: #FFF3C4;
  --sky-l: #DDEEF8;
  --sprout: #1F9150;
  --sub: #4E6259;
  --line: rgba(23, 58, 45, .16);
  --on-dark-line: rgba(246, 248, 244, .16);

  --g: 20px;
  --bar: 56px;
  --stick: var(--bar);
  --app: min(100vw, 430px);
  --cw: calc(var(--app) - 64px);
  --body-size: 18px;

  --display: "Anybody", "Pretendard Variable", Pretendard, "Arial Narrow", system-ui, sans-serif;
  --serif: "Newsreader", "Pretendard Variable", Pretendard, Georgia, "Times New Roman", serif;
}
@media (max-width: 360px) { :root { --g: 16px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html { scroll-behavior: smooth; }   /* 움직임은 늘 켜짐(2026-11-26 사용자: "항상 켜져 있게"). 휴대폰 설정도 따르지 않는다 */
body {
  margin: 0;
  background: var(--chalk);
  color: var(--pine);
  font-family: var(--display);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
.app { position: relative; min-height: 100vh; background: var(--chalk); overflow-x: clip; }
@media (min-width: 480px) {
  body { background: #D5DED8; }
  .app { max-width: 430px; margin: 0 auto; box-shadow: 0 0 0 1px rgba(23, 58, 45, .12); }
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--pine); outline-offset: 2px; box-shadow: 0 0 0 6px var(--ginkgo); border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.ico { width: 24px; height: 24px; flex: none; }
.iconbtn {
  width: 48px; height: 48px; flex: none;
  display: inline-grid; place-items: center;
  padding: 0; border: 0; border-radius: 999px;
  background: none; cursor: pointer;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px;
  border: 0; border-radius: 999px;
  background: var(--pine); color: var(--chalk);
  font-size: 16px; font-weight: 700; text-decoration: none; cursor: pointer;
}
.btn--on-dark { background: var(--ginkgo); color: var(--pine); }

/* ---------- 머리띠(맨 위 줄) ---------- */
.topbar, .abar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  max-width: 430px; margin: 0 auto;
  height: var(--bar);
  display: flex; align-items: center; gap: 10px;
  padding: 0 4px 0 var(--g);
  transition: transform .3s ease, background-color .25s ease, color .25s ease, box-shadow .25s ease;
}
.topbar { color: var(--chalk); }
.topbar[data-mode="solid"] { background: var(--chalk); color: var(--pine); box-shadow: 0 1px 0 var(--line); }
.topbar__mast, .abar__mast {
  font-family: var(--serif); font-size: 19px; font-weight: 600; letter-spacing: -.005em;
  text-decoration: none; white-space: nowrap;
  min-width: 0; overflow: hidden; text-overflow: ellipsis;   /* 글자를 크게 해도 메뉴 단추를 밀어내지 않게 */
}
.topbar__mast, .badge { opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility 0s linear .25s; }
.topbar[data-mode="solid"] .topbar__mast,
.topbar[data-mode="solid"] .badge { opacity: 1; visibility: visible; transition: opacity .25s ease, visibility 0s; }
.badge {
  flex: none;
  padding: 2px 9px; border-radius: 999px;
  background: var(--ginkgo); color: var(--pine);
  font-size: 13px; font-weight: 800; text-decoration: none; font-variant-numeric: tabular-nums;
}
.topbar .menu-btn, .abar .menu-btn { margin-left: auto; }
/* 띠가 아직 투명할 때 분필색 메뉴 단추가 노란 2025 위로 지나가도 보이게: 밤하늘색 테두리(어두운 하늘에서는 안 보임) */
.topbar .menu-btn .ico { transition: filter .25s ease; }
.topbar[data-mode="hero"] .menu-btn .ico {
  filter: drop-shadow(0 0 .6px #1B1456) drop-shadow(0 0 .6px #1B1456) drop-shadow(0 0 2.5px rgba(27, 20, 86, .7));
}
.topbar.is-hidden, .abar.is-hidden { transform: translateY(-100%); box-shadow: none; }
.abar { padding-left: 4px; background: var(--chalk); box-shadow: 0 1px 0 var(--line); }
.abar__mast { margin-left: 2px; }

/* ---------- 대문: 불 켜지는 학교 → 흐려지며 목차 ----------
   CSS 기본 모습이 "마지막 장면"이다: 흐린 학교, 위에 2025와 제호, 아래에 분야 목차.
   처음 들어온 사람에게만 app.js가 첫 장면 모습으로 돌려놓았다가 이 모습까지 움직인다. */
:root { --year-size: min(30vw, 120px); }
.hero {
  --row: clamp(44px, 6.4svh, 54px);                        /* svh를 모르면 아래 @supports가 vh로 */
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;                                       /* 대문은 한 화면(2026-11-25 사용자: "정보를 한 화면에 끝내야지") */
  padding: calc(var(--bar) + 2px) var(--g) calc(10px + env(safe-area-inset-bottom, 0px));
  color: var(--chalk);
  background: linear-gradient(180deg,
    #1B1456 0%, #2B1E78 18%, #4A36B8 31%, #7458C6 39%,
    #B985B0 42.5%, #EDA37F 45%, #FFC96B 47.5%,
    #5B5A4C 52%, #1B3026 60%, #0E211A 100%);
}
/* 별: 마지막 장면에서는 2025 위쪽 띠의 별만 남긴다(2025 글자 사이나 바로 위에 별이 보이면 '20·25'처럼 읽힌다).
   2025 글자 꼭대기보다 6px 이상 위에서 별이 사라지게 맨 위 줄(--bar) 아래 -16px~-8px에서 흐려진다.
   첫 장면과 그 앞 로딩 화면에서는 --sky-open이 1이라 하늘 전체에 보이고, 2025가 올라갈 때 0으로 걷힌다. */
.hero__sky {
  --sky-open: 0;
  position: absolute; inset: 0 0 58% 0; z-index: 0; pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, #000 calc(var(--bar) - 16px + var(--sky-open) * 100%),
    transparent calc(var(--bar) - 8px + var(--sky-open) * 100%));
  mask-image: linear-gradient(180deg, #000 calc(var(--bar) - 16px + var(--sky-open) * 100%),
    transparent calc(var(--bar) - 8px + var(--sky-open) * 100%));
}
/* 로딩 중에는 2025가 아직 안 보이므로 별을 다 보여 준다(첫 장면이 시작할 때 별이 한꺼번에 툭 늘지 않게) */
html.js .hero:not(.is-ready) .hero__sky { --sky-open: 1; }
.star {
  position: absolute; left: var(--x); top: var(--y);
  width: var(--s); height: var(--s); border-radius: 50%;
  background: #FFFDF0; opacity: .8;
  animation: twinkle 3.4s ease-in-out infinite; animation-delay: var(--d);
}
@keyframes twinkle { 50% { opacity: .25; } }

/* 2025: 첫 장면에서는 나무 뒤에서 솟고, 마지막에는 맨 위로 올라가 제호와 한 덩어리가 된다 */
.hero__year { position: relative; z-index: 4; pointer-events: none; }
.year {
  --wdth: 150; --wght: 900;
  display: block; width: max-content;
  margin-left: -.062em;                                     /* 2의 잉크가 제호의 T와 줄이 맞게(글자 왼쪽 빈 틈만큼) */
  font-family: var(--display);
  font-size: var(--year-size);
  font-stretch: calc(var(--wdth) * 1%);
  font-weight: var(--wght);
  line-height: .74;
  letter-spacing: -.01em;
  color: var(--ginkgo);
  font-variant-numeric: lining-nums;
}
/* 마지막 장면: 학교 그림이 조금 올라가 불 켜진 창문이 날짜와 목차 사이 빈칸에 온다(--scene-dy는 app.js가 잰다) */
.hero__scene { position: absolute; inset: 0; z-index: 2; transform: translateY(var(--scene-dy, 0px)); }
.hero__paint, .hero__light, .hero__frost {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 76% 100%;
  pointer-events: none; user-select: none;
}
/* 마지막 장면에서는 흐린 그림만 보인다(또렷한 그림과 불빛은 첫 장면에서만 켠다) */
.hero__paint, .hero__light { visibility: hidden; }
/* 가리개 그림(mask-image)은 index.html 머리의 <style>에 글자(data URI)로 들어 있다(build_mockup.py의 bleed_style,
   이 규칙과 같은 '.hero.is-bleeding .hero__paint'에만). 파일 주소로 두면 컴퓨터에서 바로 열 때 막혀
   첫 장면에 학교가 안 보이고, 휴대폰에서도 한 번 더 받는다. 여기서는 크기·자리만 정한다. */
.hero.is-bleeding .hero__paint {
  --m: calc(var(--bleed, 1) * 560%);
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: 50% 50%; mask-position: 50% 50%;
  -webkit-mask-size: var(--m); mask-size: var(--m);
}
/* 흐린 학교 그림(불 켜진 채로 살짝 흐려 둔 그림) + 분필색 안개.
   안개는 목차 바로 위에서 짙어져 목차 뒤는 하얗고, 그 위 빈칸은 엷어서 흐린 학교 불빛이 비친다.
   --toc-y(목차 제목의 위치)와 --date-y(날짜 줄 아래 끝)는 app.js가 잰다. 키 작은 화면에서도 안개는
   날짜 줄 12px 위보다 높이 올라가지 않는다(제호·학교 이름·날짜가 안개에 묻혀 흐려지지 않게).
   안개 판은 대문보다 위로 25% 더 길어서(판의 20%) 'calc(20% + 대문 기준 위치)'가 대문의 그 자리다.
   윗부분은 부드럽게 사라져, 아래에서 밀어 올려도 경계선이 없다. */
.hero__veil {
  position: absolute; left: 0; right: 0; top: -25%; bottom: 0; z-index: 3; pointer-events: none;
  background: linear-gradient(180deg,
    rgba(246, 248, 244, .06) 0%,
    rgba(246, 248, 244, .08) calc(20% + max(var(--toc-y, 60%) - 100px, var(--date-y, 0px) - 12px)),
    rgba(246, 248, 244, .62) calc(20% + max(var(--toc-y, 60%) - 26px, var(--date-y, 0px) + 10px)),
    rgba(246, 248, 244, .93) calc(20% + max(var(--toc-y, 60%) - 2px, var(--date-y, 0px) + 20px)),
    rgba(246, 248, 244, .97) calc(20% + var(--toc-y, 60%) + 180px),
    var(--chalk) 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 20%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 20%);
}
.hero.is-opening :is(.hero__paint, .hero__light, .hero__frost) { will-change: opacity; }
.hero.is-opening :is(.hero__veil, .hero__scene, .year, .hero__mast) { will-change: transform, opacity; }
/* 첫 장면에서 아래쪽 제호를 읽기 쉽게 하는 그늘(마지막 장면에서는 없음) */
.hero__shade {
  position: absolute; left: 0; right: 0; bottom: 0; height: 34%; z-index: 3; opacity: 0;
  background: linear-gradient(to top, rgba(10, 30, 24, .7), rgba(10, 30, 24, 0));
  pointer-events: none;
}
.hero__mast { position: relative; z-index: 4; margin-top: 16px; }
.mast__title {
  margin: 0 0 12px;
  font-family: var(--serif); font-size: 34px; font-weight: 600; line-height: 1.02; letter-spacing: -.012em;
}
/* 학교 이름 줄도 날짜 줄과 같은 부드러운 그늘: 휴대폰 글자를 크게 해 이름이 두 줄이 되면 'School'이
   밝은 노을 띠 위에 오기 때문(그늘이 없으면 1.5배에서 4:1, 2배에서 3:1 아래로 흐려진다) */
.mast__school {
  display: flex; align-items: center; gap: 10px; margin: 0 0 6px; font-size: 15px; font-weight: 600;
  text-shadow: 0 0 2px rgba(27, 20, 86, .75), 0 1px 10px rgba(27, 20, 86, .6);
}
.mast__school img { width: 32px; height: 32px; border-radius: 50%; background: var(--chalk); }
/* 날짜 줄: 키 작은 화면에서는 밝은 하늘 띠 위에 오므로 조금 굵게 + 부드러운 그늘 */
.mast__date {
  margin: 0; font-size: 14px; font-weight: 600; color: var(--chalk);
  text-shadow: 0 0 2px rgba(27, 20, 86, .75), 0 1px 10px rgba(27, 20, 86, .6);
}

/* 분야 목차: 글자가 한 자씩 떨어져 자리 잡고, 밑줄이 왼쪽에서 쭉 그어진다 */
.toc { position: relative; z-index: 4; margin-top: auto; padding-top: 18px; color: var(--pine); }
.toc__title { margin: 0 0 2px; font-size: 15px; font-weight: 700; color: var(--pine); }
.toc__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 2px; }
.toc__top .toc__title { margin: 0; }
.toc__letter {
  position: relative; display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 700; color: var(--pine);
  text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px;
}
.toc__letter::after { content: ""; position: absolute; inset: -13px -8px; }   /* 누르는 자리는 44px(글자는 작게) */
.toc__lettericon { width: 18px; height: 18px; flex: none; }
.toc__list { margin: 0; padding: 0; list-style: none; }
.toc__item {
  --rule: 1;
  position: relative;
  display: flex; align-items: center; gap: 12px;
  min-height: var(--row);                                   /* 휴대폰 글자를 키우면 줄이 같이 커진다 */
  text-decoration: none;
}
.toc__item::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px;
  background: rgba(23, 58, 45, .2);
  transform: scaleX(var(--rule)); transform-origin: 0 50%;
}
.toc__list li:last-child .toc__item::after { content: none; }   /* 대문 아래 끝선과 두 줄로 겹치지 않게 */
.toc__name {
  flex: 1; min-width: 0; white-space: nowrap;
  font-size: 32px; font-weight: 800; line-height: 1; letter-spacing: -.012em;
}
.toc__name .w { display: inline-block; white-space: nowrap; }
.toc__name i { display: inline-block; font-style: normal; }
.toc__count {
  flex: none; min-width: 30px; height: 30px; padding: 0 8px; border-radius: 999px;
  display: inline-grid; place-items: center;
  background: var(--ginkgo); font-size: 14px; font-weight: 800; font-variant-numeric: tabular-nums;
}
/* 누르는 순간: 줄 전체가 은행잎빛으로 살짝 */
.toc__item::before {
  content: ""; position: absolute; inset: 2px -8px; border-radius: 10px; z-index: -1;
  background: rgba(255, 212, 59, .32); opacity: 0; transition: opacity .12s ease;
}
.toc__item:active::before { opacity: 1; transition: none; }

/* '눌러서 건너뛰기' 안내: 첫 장면 동안만 보이고, 손가락을 막지 않는다(누르면 그 밑의 대문이 받아 건너뛴다) */
.hero__skip {
  position: absolute; right: var(--g); bottom: 6px; z-index: 5; margin: 0;
  font-size: 13px; font-weight: 600; color: rgba(246, 248, 244, .8);
  opacity: 0; visibility: hidden; pointer-events: none;
}
html.js .hero:not(.is-ready) :is(.hero__scene, .hero__year, .hero__mast, .hero__veil, .toc) { visibility: hidden; }

/* 키가 작은 휴대폰: 제호를 조금 줄여 목차와 겹치지 않게 */
@media (max-height: 700px) {
  .hero__mast { margin-top: 10px; }
  .toc { padding-top: 10px; }
  .mast__title { font-size: 28px; margin-bottom: 8px; }
  .mast__school { font-size: 14px; margin-bottom: 2px; }
  .mast__school img { width: 26px; height: 26px; }
  .mast__date { font-size: 13px; }
  .toc__name { font-size: 28px; --fit-max: 28px; }           /* app.js의 글자 맞추기도 28px에서 시작 */
}
/* ---------- 옆으로 넘기는 카드(기사 끝 'More from') ---------- */
.row__track {
  display: flex; gap: 12px;
  padding: 6px var(--g) 18px;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--g);
  scrollbar-width: none;
}
.row__track::-webkit-scrollbar { display: none; }

.card {
  position: relative; flex: 0 0 var(--cw); min-height: 376px;
  display: flex; flex-direction: column;
  padding: 22px 20px 20px; border-radius: 20px; overflow: hidden;
  color: var(--pine); text-decoration: none;
  scroll-snap-align: start;
}
.tone-ginkgo { background: var(--ginkgo-l); }
.tone-sky { background: var(--sky-l); }
.card__title { display: block; font-size: 26px; font-weight: 750; font-stretch: 90%; line-height: 1.08; letter-spacing: -.005em; }
.card__deck { display: block; font-family: var(--serif); font-size: 17px; line-height: 1.38; }
.card__by { display: block; font-size: 15px; font-weight: 700; }

/* A 낱말 포스터 */
.poster__word {
  display: block; margin: 2px 0 0 -2px;
  font-size: 88px; font-weight: 850; line-height: .92; letter-spacing: -.02em;
  white-space: nowrap; overflow: hidden;
}
.poster__text { margin-top: auto; display: flex; flex-direction: column; gap: 8px; padding-top: 20px; }

/* B 사진 도장 */
.card--photo .card__title { margin-top: auto; }
.card--photo .card__deck { margin-top: 8px; }
.card--photo .card__by { margin-top: 12px; }
.stamp {
  display: block; width: var(--w); max-width: 100%;
  margin: 8px 0 22px 6px; padding: 6px;
  background: var(--chalk); border-radius: 3px;
  transform: rotate(var(--rot));
  box-shadow: 4px 5px 0 rgba(23, 58, 45, .22);
}
.stamp img { width: 100%; height: auto; }

/* C 인터뷰 */
.card--interview { background: var(--pine); color: var(--chalk); }
.iv__q { display: block; margin: -6px 0 14px -4px; font-size: 120px; font-weight: 900; font-stretch: 130%; line-height: .82; color: var(--ginkgo); }
.iv__name { display: block; font-size: 38px; font-weight: 800; line-height: 1; white-space: nowrap; overflow: hidden; }
.iv__meta { display: block; margin-top: 8px; font-size: 15px; line-height: 1.35; color: rgba(246, 248, 244, .78); }
.iv__quote { display: block; margin-top: auto; padding-top: 18px; font-family: var(--serif); font-style: italic; font-size: 21px; line-height: 1.32; }
.card--interview .card__by { margin-top: 14px; color: rgba(246, 248, 244, .9); }

/* D 의견·사설 */
.card--opinion { background: var(--sky-l); }
.op__label { display: block; font-size: 15px; font-weight: 800; }
.op__mark { position: absolute; right: 16px; top: 10px; font-family: var(--serif); font-size: 150px; line-height: .8; color: rgba(23, 58, 45, .16); }
.card__title--serif { font-family: var(--serif); font-size: 28px; font-weight: 500; font-stretch: normal; line-height: 1.16; letter-spacing: -.005em; }
.card--opinion .card__title--serif, .card--calm .card__title--serif { margin-top: auto; }
.card--opinion .card__by, .card--calm .card__by { margin-top: 14px; }

/* E 차분한 기사(전쟁·난민) */
.card--calm { background: var(--chalk); box-shadow: inset 0 0 0 1.5px var(--pine); }
.card--calm .card__deck { margin-top: 10px; color: var(--sub); }

/* ---------- 기자단 쪽 /2025/newsroom/ (2026-11-25 대문 아래에서 옮김) ---------- */
.newsroom__count { margin: 18px 0 6px; font-family: var(--serif); font-size: 19px; line-height: 1.4; }
.grade h2 { margin: 18px 0 10px; font-size: 15px; font-weight: 700; color: var(--sub); }
.names { display: flex; flex-wrap: wrap; gap: 8px; }
.name {
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 7px 0 14px; border-radius: 999px;
  box-shadow: inset 0 0 0 1.5px var(--line);
  font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap;
}
.name b { min-width: 24px; height: 24px; border-radius: 999px; display: inline-grid; place-items: center; background: var(--ginkgo-l); font-size: 13px; font-weight: 800; }

/* ---------- 지난 호 쪽 /editions/ (2026-11-25 대문 아래에서 옮김) ---------- */
.eds { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; }
.ed { min-height: 172px; padding: 18px 16px; border-radius: 20px; display: flex; flex-direction: column; text-decoration: none; }
.ed--now { background: var(--pine); color: var(--chalk); }
.ed--soon { box-shadow: inset 0 0 0 2px rgba(23, 58, 45, .3); color: var(--sub); }
.ed__year { font-size: 40px; font-weight: 900; font-stretch: 116%; line-height: .9; }
.ed--now .ed__year { color: var(--ginkgo); }
.ed__no { margin-top: 6px; font-size: 16px; font-weight: 700; }
.ed__note { margin-top: auto; font-size: 14px; line-height: 1.3; }

/* 켜고 끄는 단추 */

/* ---------- 메뉴 ---------- */
.menu {
  position: fixed; inset: 0; z-index: 80;
  max-width: 430px; margin: 0 auto;
  display: flex; flex-direction: column;
  padding: 0 var(--g) calc(28px + env(safe-area-inset-bottom));
  overflow-y: auto; background: var(--pine); color: var(--chalk);
  scroll-padding-top: calc(var(--bar) + 8px);   /* 키보드로 거꾸로 옮겨도 고른 줄이 위 줄 밑에 숨지 않게 */
}
.menu[hidden] { display: none; }
/* 위 줄(제호 + 닫기 X)은 메뉴를 내려도 맨 위에 붙어 있다: 키 작은 화면에서 아래 '움직임 줄이기'까지
   내리면 X가 화면 밖으로 사라지던 것. 열 때마다 맨 위부터 보이게 하는 것은 app.js의 openMenu(). */
.menu__top {
  display: flex; align-items: center; height: var(--bar); margin-right: -12px;
  position: sticky; top: 0; z-index: 1; background: inherit; flex-shrink: 0;
  box-shadow: 0 1px 0 rgba(246, 248, 244, .14);   /* 밑으로 지나가는 줄이 잘리는 자리를 가는 선으로 */
}
/* 휴대폰 글자를 아주 크게 해도 제호가 두 줄로 넘쳐 목록을 덮지 않게 한 줄로 */
.menu__mast { font-family: var(--serif); font-size: 19px; font-weight: 600; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.menu__close { margin-left: auto; }
/* 메뉴: 분야 이름 아래 기사 제목을 글로만(2026-11-27 사용자). 맨 위는 '내 공부'. 모양은 AI 판단 */
.me { margin: 14px 0 6px; padding: 16px 16px 14px; border-radius: 18px; background: var(--pine-2); box-shadow: inset 0 0 0 1px var(--on-dark-line); }
.me__row { display: flex; gap: 18px; }
.me__stat { margin: 0; display: flex; align-items: baseline; gap: 6px; font-size: 14px; color: rgba(246, 248, 244, .8); }
.me__stat b { font-size: 28px; font-weight: 800; font-stretch: 112%; color: var(--ginkgo); font-variant-numeric: tabular-nums; line-height: 1; }
.me__bar { display: block; height: 6px; margin-top: 12px; border-radius: 3px; overflow: hidden; background: rgba(246, 248, 244, .16); }
.me__bar i { display: block; width: var(--mp, 0%); height: 100%; border-radius: 3px; background: var(--ginkgo); transition: width .6s cubic-bezier(.2, .8, .2, 1); }
.me__go { display: flex; flex-direction: column; gap: 2px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--on-dark-line); text-decoration: none; }
.me__go[hidden] { display: none; }
.me__golabel { font-size: 13px; font-weight: 700; color: var(--ginkgo); }
.me__gotitle { font-family: var(--serif); font-size: 17px; line-height: 1.3; }
.menu__sections { display: flex; flex-direction: column; }
.menu__grp { padding: 18px 0 6px; border-bottom: 1px solid var(--on-dark-line); }
.menu__sec { margin: 0 0 4px; font-size: 22px; font-weight: 800; font-stretch: 112%; line-height: 1.1; }
.menu__sec a, .menu__sec--plain { display: flex; align-items: center; gap: 10px; min-height: 40px; text-decoration: none; }
.menu__icon { width: 22px; height: 22px; color: var(--ginkgo); flex: none; }
.menu__list { list-style: none; margin: 0; padding: 0; }
.menu__art { position: relative; display: flex; flex-direction: column; gap: 3px; padding: 10px 28px 10px 32px; text-decoration: none; }
.menu__t { font-family: var(--serif); font-size: 17px; line-height: 1.3; }
.menu__by { font-size: 12.5px; color: rgba(246, 248, 244, .62); }
.menu__art.is-done::after { content: ""; position: absolute; right: 2px; top: 13px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--ginkgo) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23173A2D' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat; }
.menu__art.is-now .menu__t { color: var(--ginkgo); }
.menu__art.is-now .menu__by::before { content: "Reading now · "; color: var(--ginkgo); font-weight: 700; }
.menu__foot { margin-top: 8px; padding-top: 18px; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; font-size: 14px; }
.menu__foot p { margin: 0 0 4px; color: rgba(246, 248, 244, .75); }
.menu__more { display: flex; flex-direction: column; align-items: flex-start; }
.menu__more a { padding: 9px 0; font-size: 15px; font-weight: 700; }
.menu__replay { min-height: 44px; padding: 10px 0; font-size: 15px; font-weight: 700; }
.menu__install { background: none; border: 0; color: inherit; font: inherit; font-size: 15px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; text-align: left; }

/* ---------- 알림 ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 90;
  transform: translateX(-50%);
  width: max-content; max-width: calc(var(--app) - 40px);
  padding: 12px 18px; border-radius: 14px;
  background: var(--pine); color: var(--chalk);
  box-shadow: 0 0 0 2px var(--ginkgo);
  font-size: 15px; font-weight: 600; text-align: center; text-wrap: balance;
}
.toast[hidden] { display: none; }
/* 메뉴가 열려 있을 때만 알림 밑이 눌린다: 메뉴의 '움직임 줄이기' 단추가 알림에 가려도 바로 눌리게.
   메뉴가 닫혀 있으면 알림이 누름을 받아, 알림을 누른 손가락이 그 밑의 링크로 잘못 가지 않게 한다. */
.menu:not([hidden]) ~ .toast { pointer-events: none; }
.page-article .toast { bottom: calc(96px + env(safe-area-inset-bottom)); }

/* ---------- 기사 화면 ---------- */
.page-article .app { padding-top: var(--bar); }
.sticky {
  position: fixed; top: var(--stick); left: 0; right: 0; z-index: 49;
  max-width: 430px; margin: 0 auto; height: 52px;
  display: flex; align-items: center; gap: 10px;
  padding: 0 6px 0 var(--g);
  background: var(--chalk); box-shadow: 0 1px 0 var(--line);
  transform: translateY(calc(-100% - var(--stick)));
  transition: transform .3s ease, top .3s ease;
}
.sticky.is-on { transform: none; }
.st__title { flex: 1; min-width: 0; font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st__q { font-size: 14px; color: var(--sub); white-space: nowrap; font-variant-numeric: tabular-nums; }
.st__bar { position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--sprout); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
.aa-btn { width: 44px; height: 44px; font-size: 17px; font-weight: 800; }

.art__head { padding: 14px var(--g) 0; }
.art__section { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 15px; font-weight: 700; text-decoration: none; }
.art__secicon { width: 22px; height: 22px; }
.art__title { margin: 6px 0 16px; font-size: 36px; font-weight: 800; font-stretch: 86%; line-height: 1.02; letter-spacing: -.012em; }
.art__by { margin: 0; font-size: 15px; font-weight: 700; }
.art__time { margin: 2px 0 18px; font-size: 14px; color: var(--sub); }
.art__tools {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.listen {
  display: inline-flex; align-items: center; gap: 8px; flex: none;
  height: 44px; padding: 0 18px 0 14px;
  border: 0; border-radius: 999px; background: var(--pine); color: var(--chalk);
  font-size: 16px; font-weight: 700; cursor: pointer;
}
.listen__icon { width: 18px; height: 18px; color: var(--ginkgo); }
.ai-note { font-size: 12.5px; line-height: 1.2; color: var(--sub); }
.art__tools .aa-btn { margin-left: auto; }
.art__art { margin: 20px var(--g) 0; padding: 14px 16px; border-radius: 20px; background: var(--sky-l); }

.art__body { padding: 22px var(--g) 8px; font-family: var(--serif); font-size: var(--body-size); line-height: 1.6; }
.art__body p { margin: 0 0 1em; }
.art__body h2 { margin: 1.6em 0 .5em; font-family: var(--display); font-size: calc(var(--body-size) + 3px); font-weight: 800; line-height: 1.2; }
.art__body strong { font-weight: 700; }

/* 인터뷰 */
.art__ivhead { display: flex; align-items: flex-end; gap: 14px; margin: 6px 0 14px; }
.art__ivhead > div { flex: 1; min-width: 0; }
.art__teacher { margin: 0; font-size: 46px; font-weight: 850; font-stretch: 88%; line-height: .94; letter-spacing: -.015em; }
.art__subject { margin: 10px 0 0; font-size: 15px; color: var(--sub); }
.art__stamp {
  flex: none; width: var(--w); margin: 0 4px 4px 0; padding: 6px;
  background: #fff; border-radius: 3px; transform: rotate(3deg);
  box-shadow: 4px 5px 0 rgba(23, 58, 45, .22);
}
.art__stamp img { width: 100%; height: auto; }
.page-interview .art__by { margin-top: 4px; }
.qa__q { margin: 30px 0 14px; padding: 13px 16px 14px; border-radius: 14px; background: var(--ginkgo-l); font-family: var(--display); }
.qa .qa__q:first-child { margin-top: 6px; }
.qa__qn { display: block; margin-bottom: 3px; font-size: 13px; font-weight: 800; color: var(--sub); font-variant-numeric: tabular-nums; }
.qa__q p { margin: 0; font-size: calc(var(--body-size) - 1px); font-weight: 600; line-height: 1.4; }
.qa__a { position: relative; padding-left: 28px; }
.qa__an { position: absolute; left: 0; top: .05em; font-family: var(--display); font-size: 17px; font-weight: 900; color: var(--sprout); }

/* 기사 끝 */
.art__end { margin-top: 28px; padding: 28px 0 120px; border-top: 1px solid var(--line); }
.end__label { margin: 0 var(--g) 10px; font-size: 15px; font-weight: 700; color: var(--sub); }
.next { display: block; margin: 0 var(--g); padding: 18px 20px; border-radius: 20px; background: var(--ginkgo-l); text-decoration: none; }
.next__title { display: block; font-size: 22px; font-weight: 800; font-stretch: 90%; line-height: 1.1; }
.next__by { display: block; margin-top: 8px; font-size: 14px; color: var(--sub); }
/* 기사 끝 분야 목차(2026-11-27: 큰 More from 카드 대신) */
.sec-toc { margin: 34px var(--g) 18px; padding: 16px 16px 6px; border-radius: 20px; background: var(--chalk); border: 1px solid var(--line); }
.sec-toc__head { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-size: 19px; font-weight: 800; color: var(--pine); }
.sec-toc__icon { width: 22px; height: 22px; flex: none; }
.sec-toc__n { margin-left: auto; font-size: 13px; font-weight: 600; color: var(--sub); }
.sec-toc__list { list-style: none; margin: 0; padding: 0; }
.sec-toc__item + .sec-toc__item { border-top: 1px solid var(--line); }
.sec-toc__item > a, .sec-toc__item.is-now { display: flex; gap: 12px; align-items: baseline; padding: 12px 0; min-height: 44px; text-decoration: none; color: inherit; }
.sec-toc__item > a:active { opacity: .6; }
.sec-toc__num { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 800; background: var(--ginkgo-l); color: var(--pine); transform: translateY(-2px); }
.sec-toc__item.is-now .sec-toc__num { background: var(--pine); color: var(--ginkgo); }
.sec-toc__t { font-size: 16px; font-weight: 700; line-height: 1.3; text-wrap: balance; }
.sec-toc__by { display: block; margin-top: 3px; font-size: 13px; font-weight: 500; color: var(--sub); }
.sec-toc__item.is-now .sec-toc__by { color: var(--pine); font-weight: 700; }
.art__end > .btn { margin: 6px var(--g) 0; }

/* 듣기 막대 */
.player {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  max-width: 430px; margin: 0 auto;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 6px calc(10px + env(safe-area-inset-bottom)) 12px;
  background: var(--pine); color: var(--chalk);
}
.player[hidden] { display: none; }
.player__play { flex: none; width: 48px; height: 48px; border: 0; border-radius: 50%; display: grid; place-items: center; background: var(--ginkgo); color: var(--pine); cursor: pointer; }
.player__mid { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.player__title { font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player__line { display: block; height: 4px; border-radius: 2px; overflow: hidden; background: rgba(246, 248, 244, .25); }
.player__line i { display: block; width: var(--pp, 0%); height: 100%; background: var(--ginkgo); }
.player__time { font-size: 12.5px; color: rgba(246, 248, 244, .8); font-variant-numeric: tabular-nums; }


/* ---------- 누르면 쑥 들어가는 모양 (2026-11-25 교감 선생님 말씀) ----------
   손가락을 대는 순간 줄·카드가 살짝 작아지며 눌리고, 떼면 톡 돌아온다. app.js가 .is-pressed를 붙인다. */
:is(.toc__item, .menu__art, .sl__item, .card, .next, .sec__chip, .name, .ed) {
  transition: transform .26s cubic-bezier(.2, .9, .3, 1.3);
}
:is(.toc__item, .menu__art, .sl__item, .card, .next, .sec__chip, .name, .ed).is-pressed {
  transform: scale(.965);
  transition: transform .07s ease-out;
}
.toc__item.is-pressed::before { opacity: 1; transition: none; }
.menu__art { isolation: isolate; }
.menu__art::before, .sl__item::before {
  content: ""; position: absolute; inset: 2px -8px; border-radius: 12px; z-index: -1;
  opacity: 0; transition: opacity .15s ease;
}
.menu__art::before { background: rgba(255, 212, 59, .18); }
.sl__item::before { background: rgba(255, 212, 59, .32); }
:is(.menu__art, .sl__item).is-pressed::before { opacity: 1; transition: none; }
.sec__chip.is-pressed { background: var(--ginkgo); }

/* ---------- 분야 목록 쪽 (section-*.html): 뉴스 앱처럼 제목 왼쪽, 작은 사진 오른쪽 ---------- */
:root { --label: #17703D; }                                   /* 흰 바탕 위 작은 초록 글씨(대비 5:1 이상) */
.page-section .app { padding-top: var(--bar); }
.sec { padding: 4px var(--g) 56px; }
.sec { animation: sec-in .34s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes sec-in { from { opacity: 0; transform: translateX(28px); } }
.sec__head {
  display: flex; align-items: center; gap: 10px;
  padding: 18px 0 14px; border-bottom: 2.5px solid var(--pine);
}
.sec__icon { width: 30px; height: 30px; flex: none; }
.sec__name { flex: 1; min-width: 0; margin: 0; font-size: 34px; font-weight: 800; line-height: 1; letter-spacing: -.012em; }
.sec__n {
  flex: none; padding: 5px 11px; border-radius: 999px;
  background: var(--ginkgo); font-size: 14px; font-weight: 800; white-space: nowrap;
}
.sl { margin: 0; padding: 0; list-style: none; }
.sl li + li .sl__item { border-top: 1px solid var(--line); }
.sl__item {
  position: relative; isolation: isolate;
  display: flex; align-items: center; gap: 14px;
  min-height: 112px; padding: 16px 0;
  color: inherit; text-decoration: none;
}
.sl__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.sl__label { font-size: 13px; font-weight: 700; color: var(--label); }
.sl__title {
  font-size: 18px; font-weight: 720; line-height: 1.24; letter-spacing: -.004em;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.sl__thumb {
  flex: none; width: 104px; height: 80px; border-radius: 10px; overflow: hidden;
  display: grid; place-items: center; background: var(--ginkgo-l);
}
.sl__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sl__thumb.tone-sky { background: var(--sky-l); }
.sl__thumb--q { background: var(--pine); color: var(--ginkgo); font-size: 40px; font-weight: 900; font-stretch: 130%; }
.sl__thumb--op { background: var(--sky-l); font-family: var(--serif); font-size: 76px; line-height: 1; padding-top: 30px; }
.sl__word { padding: 0 6px; font-weight: 850; font-stretch: 80%; line-height: 1; letter-spacing: -.01em; text-align: center; overflow-wrap: anywhere; }
@media (max-width: 360px) {
  .sl__thumb { width: 92px; height: 72px; }
  .sl__title { font-size: 17px; }
  .sec__name { font-size: 30px; }
}
.sec__more { margin-top: 28px; }
.sec__morehead { margin: 0 0 10px; font-size: 15px; font-weight: 700; }
.sec__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.sec__chip {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
  border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--pine);
  font-size: 15px; font-weight: 700; text-decoration: none;
}

/* 분야 띠: 목록 맨 위에 늘 붙어 있다. 옆으로 밀어 다른 분야로, 'Contents'는 대문 목차로 (2026-11-25 사용자: 밑에 있으면 가기 힘들다) */
.tabs {
  position: sticky; top: var(--stick); z-index: 40;
  display: flex; gap: 2px; padding: 0 calc(var(--g) - 10px) 0 0;
  overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  background: var(--chalk); box-shadow: 0 1px 0 var(--line);
  transition: top .3s ease;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs__item {
  position: relative; flex: none;
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 10px;
  font-size: 15px; font-weight: 700; white-space: nowrap; text-decoration: none; color: var(--sub);
}
.tabs__item.is-on { color: var(--pine); }
.tabs__item.is-on::after {
  content: ""; position: absolute; left: 10px; right: 10px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0;
  background: var(--pine);
}
/* 'Contents'는 띠를 옆으로 밀어도 왼쪽에 붙어 있다: 어느 분야에 있든 한 번에 목차로 */
.tabs__home {
  position: sticky; left: 0; z-index: 1;
  color: var(--pine); background: var(--chalk);
  margin-right: 8px; padding: 0 14px 0 var(--g);
}
.tabs__home::after {                                          /* 밑으로 지나가는 분야 이름이 스르르 사라지게 */
  content: ""; position: absolute; left: 100%; top: 0; bottom: 1px; width: 18px; pointer-events: none;
  background: linear-gradient(90deg, var(--chalk), rgba(246, 248, 244, 0));
  border-left: 1px solid var(--line);
}
.tabs__item:active { background: rgba(255, 212, 59, .3); }

/* 목록 끝: 다음 분야로 이어 읽기 */
.sec__next {
  display: flex; flex-direction: column; gap: 6px;
  margin-top: 28px; padding: 18px 20px 20px; border-radius: 18px;
  background: var(--pine); color: var(--chalk); text-decoration: none;
  transition: transform .26s cubic-bezier(.2, .9, .3, 1.3);
}
.sec__next.is-pressed { transform: scale(.965); transition: transform .07s ease-out; }
.sec__nextlabel { font-size: 14px; font-weight: 600; color: rgba(246, 248, 244, .78); }
.sec__nextname { display: flex; align-items: center; gap: 10px; font-size: 28px; font-weight: 800; line-height: 1.05; letter-spacing: -.012em; }
.sec__nexticon { width: 26px; height: 26px; flex: none; color: var(--ginkgo); }

/* ---------- 따라 읽기 (2026-11-25 사용자: 기사 그 자리에서, 읽는 글씨가 강조되며 넘어가게) ----------
   읽는 동안: 아직 안 읽은 글은 옅게, 읽은 글은 진하게, 지금 낱말은 은행잎 노랑 형광펜. */
html.ra-on .rw { opacity: .6; transition: opacity .3s ease; }
html.ra-on .rw.is-said, html.ra-on .rw.is-now { opacity: 1; }
html.ra-on .rw[data-w] { cursor: pointer; }
html.ra-on .rw.is-now {
  background: var(--ginkgo); border-radius: 4px;
  box-shadow: 0 0 0 2px var(--ginkgo);
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
html.ra-on .art__body { padding-bottom: 120px; }
.ra-follow {
  position: fixed; left: 50%; bottom: calc(86px + env(safe-area-inset-bottom)); z-index: 61; transform: translateX(-50%);
  min-height: 40px; padding: 0 18px; border: 0; border-radius: 999px;
  background: var(--pine); color: var(--chalk); font-weight: 700; font-size: 14px; cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .22);
}
.ra-follow[hidden] { display: none; }
.player__mid { cursor: pointer; }
.player__play .ico { width: 22px; height: 22px; }

/* 기사 위 큰 사진·그림 (2026-11-25, 모든 기사에 쪽이 생기며) */
.art__pic { margin: 20px var(--g) 0; border-radius: 20px; overflow: hidden; background: var(--sky-l); }
.art__pic img { display: block; width: 100%; height: auto; max-height: 62vh; object-fit: cover; }

/* 점검 고침 (2026-11-25, UI UX Pro Max 점검표) */
a, button, input, label { touch-action: manipulation; }                 /* 누르면 바로 반응(두 번 눌러 확대 기다림 없앰) */
.name { min-height: 44px; }
.abar__mast { min-height: 44px; display: inline-flex; align-items: center; }
.qa__an { color: var(--label); }                                          /* 초록 'A' 글자 대비 3.8 → 5.9 */
.qa__a { line-height: 1.55; }                                             /* 답 글 줄 간격 1.4 → 1.55 */
.player__line { position: relative; cursor: pointer; }
.player__line::before { content: ""; position: absolute; inset: -14px 0; }  /* 얇은 막대도 누르기 쉽게 */

/* 점검 고침 2 (2026-11-25, UI UX Pro Max 넘겨주기 전 점검표) */
html { scroll-padding-top: calc(var(--bar) + 12px); }                     /* 붙어 있는 머리띠가 가리지 않게 */
html.ra-on { scroll-padding-bottom: 100px; }                              /* 듣기 막대가 가리지 않게 */
.art__title, .card__title, .next__title, .sl__title, .sec__head h1, .qa__q p { text-wrap: balance; }
.art__body p { text-wrap: pretty; }                                       /* 마지막 줄에 낱말 하나만 남지 않게 */
.sl__title { -webkit-line-clamp: 5; }                                     /* 분야 목록 제목을 자르지 않고 다 보이게 */
.skip {
  position: absolute; left: 8px; top: -80px; z-index: 100;
  padding: 12px 16px; border-radius: 12px; background: var(--pine); color: var(--chalk);
  font-weight: 700; text-decoration: none;
}
.skip:focus { top: 8px; }
.player.is-loading .player__time { color: var(--ginkgo); }
.player.is-error .player__time { color: var(--ginkgo); white-space: normal; }
.sl__deck { font-family: var(--serif); font-size: 15px; line-height: 1.3; }
@media (max-width: 360px) { .sec__name { --fit-max: 30px; } }   /* 글자 맞추기도 30px에서 시작 */
.sl__by { font-size: 14px; color: var(--sub); }                         /* 분야 목록: 기자 이름만(2026-11-25 사용자) */

/* 글 읽기 좋게: 줄 간격·문단·소제목 (2026-11-25 사용자: "줄간격 문장 문단을 보기 좋게") */
.art__body { line-height: 1.62; letter-spacing: .003em; word-spacing: .02em; font-optical-sizing: auto; }  /* 2026-11-26 사용자 "자간·줄 간격 봐 줘": 한 줄 40자 안팎이라 1.7은 헐거움 → 1.62 */
.art__body p { margin: 0 0 1.2em; hyphens: manual; -webkit-hyphens: manual; }  /* 문단 사이는 줄 사이보다 확실히 넓게. 영어를 배우는 학생이 읽으니 낱말을 줄 끝에서 자르지 않음(2026-11-26) */
.art__body:not(.qa) > p:first-child { font-size: 1.08em; line-height: 1.56; }  /* 첫 문단은 조금 크게(들어가는 글) */
.art__body h2 { margin: 1.9em 0 .6em; line-height: 1.22; }
.art__body h2 + p { margin-top: 0; }
.qa__a { line-height: 1.62; margin-bottom: 0; }
.qa__q { margin-top: 34px; }
.art__body .qa__q p { margin: 0; hyphens: manual; }                    /* 질문 칸 안은 문단 간격 없이 */
.art__head .art__by { margin-bottom: 18px; }                              /* 읽는 시간 줄을 뺀 자리만큼 아래 여백 */

/* ---------- 숫자 기사 그래프 (2026-11-25 사용자 "다 해줘"; 모양은 AI 제안) ----------
   막대 하나의 색(학교 초록, 바탕과 대비 3:1 이상). 값은 막대 옆에 글자로 늘 보인다(색만으로 뜻을 전하지 않음).
   화면에 들어오면 막대가 왼쪽에서 자란다. 움직임 줄이기면 처음부터 다 자란 모양. */
.chart {
  margin: .4em 0 1.9em; padding: 18px 16px 16px;
  border: 1px solid var(--line); border-radius: 14px; background: #fff;
  font-family: var(--display);
}
.chart__title { display: block; margin: 0 0 14px; font-size: 17px; font-weight: 800; line-height: 1.25; color: var(--pine); text-wrap: balance; }
.chart__rows { display: grid; gap: 16px; }
.chart__row { display: grid; grid-template-columns: 1fr auto; column-gap: 12px; row-gap: 6px; align-items: end; }
.chart__label { font-size: 15px; font-weight: 500; line-height: 1.3; color: var(--pine); }
.chart__val { font-size: 15px; font-weight: 800; color: var(--pine); white-space: nowrap; font-variant-numeric: tabular-nums; }
.chart__track { grid-column: 1 / -1; display: block; height: 14px; border-radius: 4px; background: rgba(23, 58, 45, .08); overflow: hidden; }
.chart__bar {
  display: block; height: 100%; width: calc(var(--v) * 100%); min-width: 4px;
  background: var(--sprout); border-radius: 0 4px 4px 0; transform-origin: left center;
}
.chart__note { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 15px; line-height: 1.35; color: var(--sub); }
.chart.is-armed .chart__bar { transform: scaleX(0); }
.chart.is-armed.is-in .chart__bar { transform: scaleX(1); transition: transform 1s cubic-bezier(.2, .8, .2, 1) calc(.15s + var(--i) * .18s); }
/* 물 100방울: 99칸은 옅게, 쓸 수 있는 민물 1칸은 은행잎 노랑 + 초록 테 */
.waffle { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; max-width: 280px; margin: 0 auto; }
.waffle__c { display: block; aspect-ratio: 1; border-radius: 3px; background: rgba(23, 58, 45, .14); }
.waffle__c.is-one, .waffle__key { background: var(--ginkgo); box-shadow: inset 0 0 0 2px var(--pine); }
.waffle__key { flex: none; width: 16px; height: 16px; border-radius: 3px; }
.chart.is-armed .waffle__c { opacity: 0; transform: scale(.4); }
.chart.is-armed.is-in .waffle__c { opacity: 1; transform: none; transition: opacity .3s ease calc(var(--i) * 9ms), transform .3s ease calc(var(--i) * 9ms); }
.chart.is-armed.is-in .waffle__c.is-one { animation: waffle-one .7s cubic-bezier(.3, 1.6, .5, 1) 1.25s both; transition: none; }
@keyframes waffle-one { 0% { opacity: 0; transform: scale(.4); } 100% { opacity: 1; transform: scale(1); } }

/* ---------- 분야 그림표: 쪽에 들어오면 한 번 움직인다 (2026-11-25 사용자; 모양은 AI 제안) ----------
   선이 그려진 뒤 분야마다 한 가지 더. app.js가 움직여도 될 때만 .is-play를 붙인다. */
.sec__icon { width: 34px; height: 34px; overflow: visible; }
.si * { transform-box: fill-box; transform-origin: center; }
.si.is-play .si-draw > * { stroke-dasharray: 1; animation: si-draw .8s cubic-bezier(.45, 0, .2, 1) both; }
.si.is-play .si-draw > :nth-child(2) { animation-delay: .18s; }
.si.is-play .si-draw > :nth-child(3) { animation-delay: .32s; }
.si.is-play .si-draw > :nth-child(4) { animation-delay: .44s; }
@keyframes si-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
/* 과학: 플라스크 안에서 거품이 올라온다 */
.si-bub { stroke-width: 1.2; }
.si.is-play .si-bub { animation: si-bub 1.1s ease-out .75s both; }
.si.is-play .si-bub--2 { animation-delay: .95s; }
.si.is-play .si-bub--3 { animation-delay: 1.15s; }
@keyframes si-bub { 0% { opacity: 0; transform: translateY(4px) scale(.3); } 60% { opacity: 1; } 100% { opacity: 1; transform: none; } }
/* 세계: 지구가 한 바퀴 돈다(경도선이 좁아졌다 넓어짐) */
.si--global.is-play .si-draw > path { animation: si-draw .8s cubic-bezier(.45, 0, .2, 1) .18s both, si-turn 1.2s ease-in-out .9s both; }
@keyframes si-turn { 0%, 100% { transform: scaleX(1); } 25% { transform: scaleX(.15); } 50% { transform: scaleX(-1); } 75% { transform: scaleX(.15); } }
/* 건강: 맥박 선을 따라 점이 달린다 */
/* 건강: 하트가 두 번 콩닥 */
.si--health.is-play { animation: si-beat .9s ease-in-out .85s both; }
@keyframes si-beat { 15% { transform: scale(1.16); } 30% { transform: scale(1); } 45% { transform: scale(1.1); } 60% { transform: none; } }
@keyframes si-run { 0% { opacity: 1; offset-distance: 0%; } 90% { opacity: 1; } 100% { opacity: 0; offset-distance: 100%; } }
/* 인터뷰: 말풍선 안 점 세 개가 하나씩 */
.si.is-play .si-dot { animation: si-pop .35s cubic-bezier(.3, 1.6, .5, 1) .8s both; }
.si.is-play .si-dot:nth-of-type(2) { animation-delay: .95s; }
.si.is-play .si-dot:nth-of-type(3) { animation-delay: 1.1s; }
@keyframes si-pop { from { opacity: 0; transform: scale(0); } }
/* 사회·문화·연예: 다 그려지면 살짝 통 */
.si--society.is-play, .si--culture.is-play { animation: si-hop .5s cubic-bezier(.3, 1.6, .5, 1) .85s both; }
@keyframes si-hop { 40% { transform: translateY(-3px) scale(1.06); } }
/* 연예: 슬레이트 윗판이 '탁' 닫힌다 */
.si--entertainment.is-play .si-draw > :nth-child(2) { animation: si-draw .5s ease .3s both, si-clap .6s ease-in .85s both; transform-origin: 0% 100%; }
@keyframes si-clap { 0% { transform: rotate(0); } 35% { transform: rotate(-16deg); } 75% { transform: rotate(2deg); } 100% { transform: rotate(0); } }
@keyframes si-wiggle { 25% { transform: rotate(-14deg); } 60% { transform: rotate(10deg); } }

/* ---------- 마지막 장면: 학교 창문 불이 하나씩 꺼진다 (2026-11-25 사용자; 모양은 AI 제안) ----------
   대문 맨 아래(바닥 글 바로 위). 화면에 들어오면 불이 하나씩 꺼지고 "Good night"이 떠오른다.
   app.js가 움직여도 될 때만 .is-armed를 붙인다(움직임 줄이기면 불 꺼진 마지막 모습만). */
.night {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; min-height: 620px;
  padding: 52px var(--g) 36px; color: var(--chalk);
  background: linear-gradient(180deg, #0B1035 0%, #16154A 30%, #1E2A55 46%, #1B3026 62%, #0E211A 86%, var(--pine) 100%);
}
.night__sky { position: absolute; inset: 0 0 52% 0; z-index: 0; pointer-events: none; }
.night__scene { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.night__paint, .night__light {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 76% 100%; user-select: none;
}
.night__paint { filter: brightness(.34) saturate(.7); transition: filter 1.6s ease; }
.night__light { opacity: 0; }
.night.is-armed .night__paint { filter: brightness(.46) saturate(.8); }
.night.is-armed .night__light { opacity: 1; }
.night.is-armed.is-in .night__paint { filter: brightness(.34) saturate(.7); transition-delay: 4.4s; }
.night.is-armed.is-in .night__light {
  opacity: 0; transition: opacity .45s ease;
  transition-delay: calc(.9s + var(--o) * .5s);
}
.night.is-armed.is-in .night__light:last-child { transition-delay: 4.4s; }   /* 마지막 한 칸은 조금 늦게 */
.night__text { position: relative; z-index: 2; flex: 1; display: flex; flex-direction: column; align-items: flex-start; }
.night__title { margin: 0 0 10px; font-family: var(--serif); font-size: 34px; font-weight: 600; line-height: 1.1; letter-spacing: -.01em; }
.night__line { margin: 0; max-width: 24ch; font-size: 17px; line-height: 1.45; color: rgba(246, 248, 244, .86); }
.night__top { margin-top: auto; }
.night.is-armed .night__title, .night.is-armed .night__line { opacity: 0; transform: translateY(10px); }
.night.is-armed.is-in .night__title, .night.is-armed.is-in .night__line {
  opacity: 1; transform: none; transition: opacity 1s ease 4.9s, transform 1s cubic-bezier(.2, .8, .2, 1) 4.9s;
}
.night.is-armed.is-in .night__line { transition-delay: 5.3s; }
.night__nw { white-space: nowrap; }

/* 꾸밈 이모티콘 (2026-11-25 사용자 "필요한 부분에 이모티콘도"; 자리는 AI 제안). 화면 읽기는 건너뜀(aria-hidden).
   기사 문단 안에는 넣지 않는다(따라 읽기). 휴대폰 이모티콘 글꼴을 그대로 쓴다. */
.emo {
  display: inline-block; margin: 0 .32em 0 0;
  font-family: "Noto Color Emoji", "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
  font-weight: 400; font-style: normal; line-height: 1; letter-spacing: 0;
}
:is(.night__title, .ed__note, .newsroom__count, .sec__nextlabel) .emo { margin: 0 0 0 .12em; }
.night__title .emo { font-size: .8em; }

/* 대문 목차 그림표 (2026-11-25 사용자 "큰 목록 타이틀에 위화감 없는 아이콘, 단색"; 모양은 분야 쪽과 같은 선 그림).
   글자와 같은 솔숲 초록 한 색, 글자 키에 맞춘 크기. 화면 읽기는 건너뜀(aria-hidden). */
.toc__item { gap: 10px; }
.toc__icon { flex: none; width: 30px; height: 30px; color: var(--pine); stroke-width: 2; margin-right: 2px; }
@media (max-width: 360px) { .toc__icon { width: 27px; height: 27px; } }

/* ---------- 디자인 수정 2차 (2026-11-25 사용자 "시안만 반영해서 수정") ---------- */
/* 그래프 글자도 Aa 단추(--body-size, 기본 18px)를 따라 커진다 */
.chart__title { font-size: calc(var(--body-size) * .95); }
.chart__label, .chart__val, .chart__note { font-size: calc(var(--body-size) * .83); }
.chart__src { display: block; margin-top: 10px; font-size: max(13px, calc(var(--body-size) * .72)); line-height: 1.35; color: var(--sub); }
/* 기자 쪽: 이름 머리글자 동그라미 + 학년 한 줄 */
.rep__badge {
  flex: none; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; background: var(--pine); color: var(--ginkgo);
  font-family: var(--display); font-size: 17px; font-weight: 800;
}
.rep__about { margin: 12px 0 0; font-size: 15px; color: var(--sub); }
/* 마지막 분야 끝의 짧은 밤 장면 */
.night--mini { min-height: 480px; padding-top: 40px; }
.night__kicker { margin: 0 0 8px; font-size: 15px; font-weight: 600; color: rgba(246, 248, 244, .8); }
.night--mini .night__title { font-size: 30px; }
.night.is-armed .night__kicker { opacity: 0; }
.night.is-armed.is-in .night__kicker { opacity: 1; transition: opacity .8s ease 4.6s; }
.sec--reporter .sec__name { white-space: nowrap; }

/* ---------- UI·UX 점검 3차 (2026-11-25 사용자 "UI UX 디자인 확인, 수정사항 살펴줘") ---------- */
/* 1) 메뉴: 키 작은 갤럭시(360x780~800)에서 맨 아래 'Replay the opening'이 잘려 보이던 것 → 줄을 조금 낮춰 한 화면에 */
/* 2) 마지막 장면: 글이 뜨기까지 5초는 길다 → 불이 조금 빨리 꺼지고 3.5초쯤에 글이 뜬다 */
.night.is-armed.is-in .night__light { transition-delay: calc(.5s + var(--o) * .36s); }
.night.is-armed.is-in .night__light:last-child { transition-delay: 3.1s; }
.night.is-armed.is-in .night__paint { transition-delay: 3.1s; }
.night.is-armed.is-in .night__title, .night.is-armed.is-in .night__line { transition-delay: 3.5s; }
.night.is-armed.is-in .night__line { transition-delay: 3.8s; }
.night.is-armed.is-in .night__kicker { transition-delay: 3.3s; }
/* 3) 마지막 장면 아래 끝이 바닥 글(솔숲 초록)과 딱 끊겨 보이던 것 → 초록으로 스며들게 */
.night::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 110px; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(23, 58, 45, 0), var(--pine));
}
.night__text { z-index: 2; }
/* 5) 낱말 포스터 카드: 큰 낱말과 제목 사이 빈칸에 그 기사의 수채화 그림을 작게(바탕색에 스며들게) */
.poster__art {
  flex: 1 1 auto; min-height: 0; width: 100%; max-height: 150px; margin: 14px 0 0;
  object-fit: contain; object-position: 100% 50%; mix-blend-mode: multiply;
}
.poster__art + .poster__text { padding-top: 12px; }
.poster__art { flex: none; width: auto; height: 140px; max-height: none; align-self: flex-end; border-radius: 14px; object-fit: cover; mix-blend-mode: normal; box-shadow: 0 0 0 1px rgba(23, 58, 45, .08); }

/* ---------- 없는 쪽(404) (2026-11-25 본 만들기) ---------- */
.nf { padding-top: 32px; }
.nf__title { margin: 0 0 10px; font-size: 32px; font-weight: 800; line-height: 1.08; letter-spacing: -.012em; text-wrap: balance; }
.nf__line { margin: 0 0 22px; font-size: 16px; line-height: 1.45; color: var(--sub); }
.nf__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.nf .sec__chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px;
  border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--pine);
  color: var(--pine); font-size: 15px; font-weight: 700; white-space: nowrap; text-decoration: none;
}
.sec__chipicon { width: 20px; height: 20px; flex: none; }

/* ---------- 대문 한 화면으로 옮긴 것들 (2026-11-25 밤 사용자: "정보를 한 화면에 끝내야지, 어디든 넣어야지") ---------- */
/* 기자단 쪽 아래: 만든 사람(예전 대문 바닥) */
.credits { margin-top: 36px; padding: 24px 20px 22px; border-radius: 20px; background: var(--pine); color: var(--chalk); }
.credits__title { margin: 0 0 14px; font-family: var(--serif); font-size: 26px; font-weight: 600; line-height: 1.1; }
.credits__list { margin: 0 0 16px; display: grid; gap: 10px; }
.credits__list div { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--on-dark-line); }
.credits__list dt { font-size: 15px; color: rgba(246, 248, 244, .78); }
.credits__list dd { margin: 0; font-size: 15px; font-weight: 700; text-align: right; }
.credits__about { margin: 0; font-size: 14px; line-height: 1.5; color: rgba(246, 248, 244, .78); }
/* 표지 기사 쪽 그림(휴대폰에 X): 예전 대문 표지 칸에서 옮김 */
.phonex { display: block; width: 100%; height: auto; max-height: 230px; }
/* 교장 선생님 글 쪽: 교장 선생님 사진(예전 대문의 교장 선생님 칸) */
/* 교장 선생님 글: 제목 아래 사진 + 이름 + 직함 한 줄(2026-11-26 사용자: 사진만 왼쪽에 붙어 있어 어색) */
.art__author { display: flex; align-items: center; gap: 16px; margin: 2px 0 18px; }
.art__face { flex: none; width: 76px; height: 76px; border-radius: 50%; object-fit: cover; object-position: 50% 30%; box-shadow: 0 0 0 4px var(--ginkgo-l); }
.art__who { display: grid; gap: 3px; margin: 0; min-width: 0; }
.art__name { font-size: 20px; font-weight: 800; line-height: 1.1; }
.art__role { font-size: 14px; font-weight: 600; line-height: 1.3; color: var(--sub); }
p.art__section { margin: 0; }
/* 표지 기사 표시(분야 목록 맨 위) */
.sl__label { white-space: nowrap; }

/* 기사 끝 Notes: 인쇄본의 별표(*) 풀이·출처(2026-11-25 점검: 본문 가운데 섞여 있던 것을 옮김). 따라 읽기 칠하기에서는 빠진다 */
.art__notes { margin: 6px var(--g) 0; }
.art__notes::before { content: ""; display: block; width: 36px; height: 2px; margin-bottom: 12px; background: var(--line); }
.notes__head { margin: 0 0 6px; font-size: 14px; font-weight: 700; color: var(--sub); }
.art__notes p { margin: 0 0 6px; font-size: max(13px, calc(var(--body-size) * .78)); line-height: 1.5; color: var(--sub); overflow-wrap: anywhere; }

/* svh를 모르는 옛 브라우저: 대문 목차 줄 높이를 vh로 */
@supports not (height: 1svh) { .hero { --row: clamp(44px, 6.4vh, 54px); } }

/* 첫 장면 중 분야 줄을 마우스로 누를 때: 떨어지는 글자 조각(span.w, i)은 끝날 때 한 낱말로 합쳐져 사라지므로
   누르는 자리는 그 밖의 이름 칸이 받게 한다(안 그러면 누른 것이 사라져 클릭이 없어진다) */
.toc__name * { pointer-events: none; }

/* ---------- 공부 도움(Study) — 2026-11-26 사용자: "학생 글 다듬지 말고 스터디 단추", "단어를 꾹 누르면 뜻",
   "디자인이 어색하지 않게", "촌스럽다 → 테두리, 볼록, 누르면 뽁뽁이처럼 들어가게, 카드는 금색 테두리, 뒤집어 보는 느낌".
   모양은 AI 판단: 신문 몸통은 그대로, 누르는 것만 볼록·반투명, 낱말 카드는 금테 카드.
   2026-11-27 다시 짬(계획/공부 기능 다시 설계.md): 글에는 표시 없음 → 아래 칸(뜻·낱말 소리) → 끊어 읽기(덩어리 한 줄씩,
   'Listen'을 누르면 읽는 덩어리 글자가 커짐: 선생님) → 미션은 화면 전체(문제 하나씩 → 낱말 카드 → 상자·포인트 → 성공) ---------- */
:root {
  --gold: linear-gradient(135deg, #FBEFB8 0%, #D8AE35 28%, #FFF4C2 50%, #B98A17 74%, #F2D477 100%);
  --gold-ink: #A87B12;
  --gold-text: #7A5A00;                                    /* 작은 금색 글자(대비 약 6.3:1). --gold는 바탕에만 */
  --ko: "Pretendard Variable", Pretendard, system-ui, sans-serif;         /* Study 안의 한국어 */
  --raise: inset 0 1px 0 rgba(255, 255, 255, .95), 0 1px 0 rgba(23, 58, 45, .05), 0 4px 10px -3px rgba(23, 58, 45, .22);
  --sink: inset 0 2px 5px rgba(23, 58, 45, .26), inset 0 0 0 1px rgba(23, 58, 45, .05);
}

/* 볼록한 단추: 평소엔 반투명 유리, 누르면 쏙 들어감 */
.art__tools .listen, .study-btn, .art__tools .aa-btn, .art__tools .share-btn {
  -webkit-tap-highlight-color: transparent;
  transition: transform .14s cubic-bezier(.3, 1.6, .5, 1), box-shadow .14s, background-color .2s, border-color .2s;
}
.study-btn, .art__tools .aa-btn, .art__tools .share-btn {
  border: 1px solid rgba(23, 58, 45, .18);
  background: linear-gradient(180deg, rgba(255, 255, 255, .85), rgba(255, 255, 255, .45));
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  box-shadow: var(--raise);
  color: var(--pine);
}
.art__tools .aa-btn, .art__tools .share-btn { width: 44px; height: 44px; }
.art__tools .share-btn .ico { width: 21px; height: 21px; }
.study-btn:active, .art__tools .aa-btn:active, .art__tools .share-btn:active {
  transform: translateY(1px) scale(.95); box-shadow: var(--sink);
  background: linear-gradient(180deg, rgba(236, 242, 237, .9), rgba(255, 255, 255, .6));
}

/* Listen: 진한 초록 볼록 단추, 듣는 동안은 눌린 채로 */
.art__tools .listen {
  border: 1px solid #0F2A20;
  background: linear-gradient(180deg, #2C5E4A 0%, #173A2D 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 5px 12px -4px rgba(23, 58, 45, .55);
}
.art__tools .listen:active, .art__tools .listen.is-on {
  transform: translateY(1px) scale(.96);
  background: linear-gradient(180deg, #143327 0%, #1D4535 100%);
  box-shadow: inset 0 3px 7px rgba(0, 0, 0, .4), inset 0 -1px 0 rgba(255, 255, 255, .08);
}
.art__tools .listen.is-on:active { transform: translateY(2px) scale(.93); }

/* Study 단추 */
.art__tools .study-btn { margin-left: auto; }
.art__tools .study-btn + .aa-btn { margin-left: 0; }
.study-btn {
  flex: none; display: inline-flex; align-items: center; gap: 6px;
  height: 44px; padding: 0 15px 0 12px; border-radius: 999px;
  font-size: 15px; font-weight: 800; cursor: pointer;
}
.study-btn svg { width: 18px; height: 18px; flex: none; }
.study-btn[aria-pressed="true"] {
  border-color: #C99A12;
  background: linear-gradient(180deg, #FFD43B 0%, #FFE27A 100%);
  box-shadow: inset 0 2px 6px rgba(140, 100, 0, .38), inset 0 -1px 0 rgba(255, 255, 255, .6);
  transform: translateY(1px);
}
.study-btn[aria-pressed="true"]:active { transform: translateY(2px) scale(.95); box-shadow: inset 0 3px 8px rgba(140, 100, 0, .45); }
@media (max-width: 374px) { .art__tools { gap: 6px; } .listen { padding: 0 14px 0 12px; } }
.player__ai { font-size: 11.5px; font-weight: 600; opacity: .7; }

/* 꾹 누르기: 글자 고르기·길게 누름 메뉴가 뜨지 않게. 누른 낱말은 칸이 열린 동안만 옅은 노랑(표시가 아니라 '눌렀다'는 대답) */
.art__body .rw { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.rw.g-on { background: var(--ginkgo-l); border-radius: 3px; box-shadow: 0 0 0 2px var(--ginkgo-l); }

/* 숨김 지킴(다른 규칙이 hidden을 이기지 않게), 코드로 준 초점은 테두리 없이, Study 안 한국어 글꼴 */
.ms[hidden], .ms [hidden], .gloss [hidden], .st [hidden], .st-invite [hidden] { display: none !important; }
.ms [tabindex="-1"]:focus, .gloss [tabindex="-1"]:focus { outline: none; box-shadow: none; }
.gloss [lang="ko"], .st [lang="ko"], .st-invite [lang="ko"], .ms [lang="ko"] {
  font-family: var(--ko); word-break: keep-all; overflow-wrap: break-word; letter-spacing: -.012em;
}

/* 위 '읽기 전에' 띠: Study를 켰을 때만 */
.st--top {
  display: none; margin: 20px var(--g) 0; padding: 14px 16px;
  border: 1px solid rgba(201, 154, 18, .3); border-radius: 18px; background: #FFFDF4;
}
html.study-on .st--top { display: block; animation: st-in .28s cubic-bezier(.2, .8, .2, 1) both; }
.st--top.is-out { display: block; animation: st-out .16s ease both; }
@keyframes st-in { from { opacity: 0; transform: translateY(6px); } }
@keyframes st-out { to { opacity: 0; } }
.st__intro { margin: 0; font-size: 15.5px; line-height: 1.6; color: var(--pine-2); }
.st__label { margin: 12px 0 4px; font-size: 13px; font-weight: 800; color: var(--gold-text); }
.st__label:first-child { margin-top: 0; }
.st__find { margin: 0; font-family: var(--serif); font-size: calc(var(--body-size) + 1px); font-weight: 600; line-height: 1.3; letter-spacing: -.005em; color: var(--pine); }
.st__findko { margin: 4px 0 0; font-size: 14px; line-height: 1.55; color: var(--sub); }
.st__rule { margin: 12px 0 10px; border: 0; border-top: 1px dashed rgba(201, 154, 18, .45); }
.st__tip, .st__go { display: flex; align-items: flex-start; gap: 8px; margin: 0; font-size: 14px; line-height: 1.5; }
.st__tip { color: var(--sub); }
.st__go { margin-top: 8px; font-weight: 700; color: var(--gold-text); }
.st__tip svg, .st__go svg { flex: none; width: 16px; height: 16px; margin-top: 2px; color: var(--gold-text); }
/* 소리가 안 나는 화면 안내(띠·낱말 칸·미션 카드) */
.st__nosnd, .gw__nosnd {
  margin: 12px 0 0; padding: 10px 12px; border-radius: 12px; background: #F3F5F1;
  font-size: 13.5px; line-height: 1.55; color: var(--sub);
}
.gw__ext { color: var(--label); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }

/* 문제 보기의 ✓ 톡, ✕ 흔들림(미션에서 다시 씀) */
@keyframes ck-pop { from { scale: 0; } }
@keyframes ck-shake { 25% { translate: -4px 0; } 75% { translate: 4px 0; } }

/* 낱말 칸(화면 아래에서 올라옴): 낱말 + 스피커 → 뜻 → (긴 문장이면) 끊어 읽기 줄 */
.gloss {
  position: fixed; z-index: 62; left: 50%; bottom: 0; width: min(100vw, 430px);
  transform: translate(-50%, 100%); transition: transform .3s cubic-bezier(.2, 1.15, .4, 1);
  padding: 10px var(--g) calc(18px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, #FFFEF8, #fff 60%); border-radius: 22px 22px 0 0;
  box-shadow: 0 -1px 0 rgba(201, 154, 18, .45), 0 -10px 30px rgba(23, 58, 45, .2);
  max-height: 70vh; overflow: auto; overscroll-behavior: contain;
}
.gloss::before { content: ""; display: block; flex: none; width: 40px; height: 4px; margin: 0 auto 10px; border-radius: 2px; background: var(--line); }
.gloss.is-open { transform: translate(-50%, 0); }
.gloss__x { position: absolute; top: 8px; right: 6px; z-index: 1; }
.gloss__word { margin: 0; min-width: 0; font-family: var(--serif); font-size: 28px; font-weight: 600; line-height: 1.15; letter-spacing: -.005em; color: var(--pine); overflow-wrap: anywhere; }
.gloss__word.is-long { font-size: 24px; }
.gloss__label { margin: 0; font-size: 14px; font-weight: 700; color: var(--gold-text); }
.gloss__dict { display: inline-block; margin: 2px 0 2px; padding: 4px 0; font-size: 13.5px; font-weight: 700; color: var(--label); text-underline-offset: 3px; }

.gw__head { display: flex; align-items: center; gap: 10px; min-height: 48px; margin: 0 44px 6px 0; }
/* 스피커: 보이는 동그라미 40px, 누르는 자리 44px */
.gw__spk, .mc__spk {
  flex: none; position: relative; display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 0; border-radius: 50%; background: none; color: var(--pine); cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.gw__spk::before {
  content: ""; position: absolute; inset: 2px; border-radius: 50%;
  background: var(--ginkgo-l); border: 1px solid rgba(201, 154, 18, .35);
  box-shadow: inset 0 1px 0 #fff, 0 2px 6px -2px rgba(120, 85, 0, .35);
  transition: transform .14s cubic-bezier(.3, 1.6, .5, 1);
}
.gw__spk:active::before { transform: scale(.9); }
.gw__spk svg, .mc__spk svg { position: relative; width: 22px; height: 22px; }
.gw__spk .mx, .mc__spk .mx { display: none; }
.gw__spk.is-muted, .mc__spk.is-muted { color: var(--sub); }
.gw__spk.is-muted::before { background: #F3F5F1; border-color: var(--line); }
.is-muted .w1, .is-muted .w2 { display: none; }
.is-muted .mx { display: inline; }
.is-talking .w1, .is-talking .w2 { animation: spk-wave .9s ease-in-out infinite; }
.is-talking .w2 { animation-delay: .15s; }
@keyframes spk-wave { 50% { opacity: .2; } }
.gw__ko { margin: 0 0 6px; font-size: calc(var(--body-size) + 1px); font-weight: 600; line-height: 1.45; color: var(--pine-2); }
.gw__meta { margin: 0 0 2px; font-size: 13.5px; line-height: 1.5; color: var(--sub); }
.gw__meta i { font-family: var(--serif); font-size: 15px; color: var(--pine); }
.gw__lc {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  width: 100%; min-height: 50px; margin: 16px 0 2px; padding: 0 10px 0 14px;
  border: 1px solid rgba(201, 154, 18, .3); border-left: 3px solid #E2B300; border-radius: 6px 14px 14px 6px;
  background: #FFFCF0; color: var(--pine); font-size: 15px; font-weight: 700; text-align: left; cursor: pointer;
  -webkit-tap-highlight-color: transparent; transition: transform .14s cubic-bezier(.3, 1.6, .5, 1), background-color .2s;
}
.gw__lc:active { transform: scale(.98); background: #FFF6D6; }
.gw__lc svg { flex: none; width: 18px; height: 18px; color: var(--gold-text); }

/* 끊어 읽기(Look closer): 같은 칸 안에서 바뀜. 위 · 가운데(이것만 스크롤) · 아래 */
.gloss.is-look { display: flex; flex-direction: column; max-height: 86vh; overflow: hidden; padding-bottom: 0; }
.gloss.is-look .gloss__body { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.lc__top { flex: none; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 12px; margin: 0 0 10px; }
.lc__back {
  grid-column: 1 / -1; justify-self: start; display: inline-flex; align-items: center; gap: 2px;
  max-width: calc(100% - 48px); min-height: 44px; margin: -6px 0 0 -8px; padding: 0 10px 0 2px;
  border: 0; border-radius: 999px; background: none; color: var(--label); font-size: 15px; font-weight: 700; cursor: pointer;
}
.lc__back span { min-width: 0; font-family: var(--serif); font-size: 17px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lc__back svg { flex: none; width: 20px; height: 20px; }
.lc__back:active { background: rgba(23, 112, 61, .08); }
.lc__play {
  grid-column: 2; position: relative; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 16px 0 12px;
  border: 1px solid #0F2A20; border-radius: 999px; color: var(--chalk); font-size: 15px; font-weight: 800; cursor: pointer;
  background: linear-gradient(180deg, #2C5E4A 0%, #173A2D 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 4px 10px -4px rgba(23, 58, 45, .55);
  -webkit-tap-highlight-color: transparent; transition: transform .14s cubic-bezier(.3, 1.6, .5, 1), box-shadow .14s;
}
.lc__play::before { content: ""; position: absolute; inset: -4px -2px; }
.lc__play:active { transform: translateY(1px) scale(.96); box-shadow: inset 0 3px 7px rgba(0, 0, 0, .4); }
.lc__play svg { width: 18px; height: 18px; color: var(--ginkgo); }
.lc__eq { display: none; fill: currentColor; }
.lc__play.is-on .lc__pi { display: none; }
.lc__play.is-on .lc__eq { display: block; }
.lc__eq rect { transform-box: fill-box; transform-origin: 50% 50%; animation: lc-eq .8s ease-in-out infinite; }
.lc__eq rect:nth-child(2) { animation-delay: .16s; }
.lc__eq rect:nth-child(3) { animation-delay: .32s; }
@keyframes lc-eq { 0%, 100% { transform: scaleY(.35); } 50% { transform: scaleY(1); } }
.lc__scroll {
  position: relative; flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; margin: 0 calc(var(--g) * -1); padding: 4px var(--g) 20px;
  /* 위아래 가장자리에서 글이 뚝 잘리지 않고 스르르 사라지게 */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 6px, #000 calc(100% - 20px), transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 6px, #000 calc(100% - 20px), transparent 100%);
}
.lc__sub { margin: 0 0 10px; font-size: 14px; line-height: 1.5; color: var(--sub); }
/* 덩어리 한 줄씩: 하늘색 칸(선생님이 짚은 파란색). 읽어 주는 동안 지금 덩어리는 커지고 은행잎 노랑 */
.lc { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.lc__row {
  padding: 10px 12px 10px 14px; border-left: 3px solid #8FC1E3; border-radius: 0 12px 12px 0; background: #EAF4FB;
  transition: background-color .22s ease, border-color .22s ease;
}
.lc__en {
  display: block; font-family: var(--serif); font-size: var(--body-size); font-weight: 500; line-height: 1.4; color: var(--pine);
  transition: font-size .22s cubic-bezier(.2, .8, .2, 1), color .22s ease;
}
.lc.is-playing .lc__en { color: rgba(23, 58, 45, .5); }
.lc.is-playing .is-done .lc__en, .lc.is-playing .is-now .lc__en { color: var(--pine); }
.lc__row.is-now { background: var(--ginkgo-l); border-left-color: #E2B300; box-shadow: 0 6px 16px -10px rgba(120, 85, 0, .5); }
.lc__row.is-now .lc__en { font-size: calc(var(--body-size) * 1.3); font-weight: 600; line-height: 1.3; }
.lc__whole {
  margin: 0; padding: 12px 14px; border-left: 3px solid #8FC1E3; border-radius: 0 12px 12px 0; background: #EAF4FB;
  font-family: var(--serif); font-size: var(--body-size); font-weight: 500; line-height: 1.5; color: var(--pine);
  transition: font-size .22s cubic-bezier(.2, .8, .2, 1), background-color .22s ease, border-color .22s ease;
}
.lc__whole.is-now { font-size: calc(var(--body-size) * 1.2); background: var(--ginkgo-l); border-left-color: #E2B300; }
.lc__act { flex: none; padding: 12px 0 calc(12px + env(safe-area-inset-bottom)); }
.lc__act:empty { padding-top: 0; }
.lc__more {
  display: flex; align-items: center; justify-content: center; width: 100%; min-height: 48px; padding: 0 16px;
  border: 1.5px solid rgba(201, 154, 18, .45); border-radius: 14px; background: #fff; color: var(--pine);
  font-size: 15px; font-weight: 700; cursor: pointer; box-shadow: var(--raise);
  -webkit-tap-highlight-color: transparent; transition: transform .14s cubic-bezier(.3, 1.6, .5, 1), box-shadow .14s;
}
.lc__more:active { transform: translateY(1px) scale(.98); box-shadow: var(--sink); }
.lc__full {
  margin: 12px 0 4px; padding: 12px 14px; border: 1px solid rgba(201, 154, 18, .28); border-radius: 14px; background: #FFFAEB;
  font-size: 15.5px; line-height: 1.6; color: var(--pine-2); animation: lc-in .22s ease-out both;
}
@keyframes lc-in { from { opacity: 0; transform: translateY(6px); } }

/* ---------- 검사 뒤 고침(2026-11-26) ---------- */
/* 좁은 폰(화면 확대·글자 크게 설정, 폭 340px 이하)에서 단추 줄이 넘치지 않게 */
@media (max-width: 340px) {
  .art__tools { gap: 6px; flex-wrap: wrap; row-gap: 8px; }
  .art__tools .listen { gap: 6px; padding: 0 11px 0 9px; }
  .study-btn { gap: 4px; padding: 0 10px 0 8px; }
  .art__tools .aa-btn, .art__tools .share-btn { width: 38px; height: 38px; }
}
/* 기사 끝 미션 카드: Study와 상관없이 늘 보임(2026-11-27, 모양은 AI 판단: 낱말 카드 뒷면처럼 솔숲 초록 + 금테).
   오른쪽 위 금빛 딱지는 모을 수 있는 포인트(11-27 선생님: 상자가 열리며 포인트) */
.st-invite {
  position: relative;
  display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 14px; row-gap: 16px;
  margin: 30px var(--g) 10px; padding: 20px 18px 18px 16px;
  border: 2px solid transparent; border-radius: 22px; color: var(--chalk);
  background: linear-gradient(160deg, #24513F, #143327) padding-box, var(--gold) border-box;
  box-shadow: inset 0 0 0 4px #1C4535, inset 0 0 0 5px rgba(242, 212, 119, .3), 0 12px 24px -14px rgba(23, 58, 45, .7);
}
.inv__pts {
  position: absolute; top: -13px; right: 18px; display: inline-flex; align-items: center; gap: 4px;
  height: 26px; padding: 0 11px 0 8px; border-radius: 999px; border: 1px solid #C99A12;
  background: var(--gold); color: #3B2A00; font-family: var(--display); font-size: 13px; font-weight: 800; white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 4px 10px -4px rgba(120, 85, 0, .55);
}
.inv__pts svg { width: 14px; height: 14px; flex: none; }
.st-invite.is-done .inv__pts { background: var(--pine); color: var(--ginkgo); border-color: rgba(255, 212, 59, .55); box-shadow: 0 4px 10px -4px rgba(0, 0, 0, .5); }
.inv__nosnd {
  margin: 8px 0 0; padding: 8px 10px; border-radius: 10px; background: rgba(246, 248, 244, .1);
  font-size: 13px; line-height: 1.5; color: rgba(246, 248, 244, .86);
}
.inv__nosnd .gw__ext { color: var(--ginkgo); }
.st-invite.is-glow::after {
  content: ""; position: absolute; inset: -2px; border-radius: 24px; pointer-events: none;
  animation: inv-glow 1.2s ease-out 1 both;
}
@keyframes inv-glow {
  0% { box-shadow: 0 0 0 0 rgba(255, 212, 59, .6); }
  60% { box-shadow: 0 0 0 8px rgba(255, 212, 59, .25); }
  100% { box-shadow: 0 0 0 14px rgba(255, 212, 59, 0); }
}
.inv__icon {
  display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%;
  background: var(--gold); color: #3B2A00; box-shadow: inset 0 0 0 3px #FFF1BD, inset 0 0 0 4px rgba(120, 85, 0, .35);
}
.inv__icon svg { width: 26px; height: 26px; }
.inv__txt { min-width: 0; }
.inv__t { margin: 0; font-family: var(--display); font-size: 21px; font-weight: 800; line-height: 1.15; color: var(--chalk); }
.inv__ko {
  margin: 5px 0 0; font-family: var(--display); font-size: max(14px, calc(var(--body-size) - 3px)); font-weight: 500; line-height: 1.55;
  color: rgba(246, 248, 244, .84); word-break: keep-all; letter-spacing: -.012em;
}
.inv__go {
  grid-column: 1 / -1; height: 50px; border-radius: 999px; cursor: pointer;
  border: 1px solid #C99A12; color: var(--pine); font-family: var(--display); font-size: 16px; font-weight: 800;
  background: linear-gradient(180deg, #FFE477 0%, #FFD43B 55%, #F2C51F 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .75), 0 6px 14px -6px rgba(0, 0, 0, .55);
  transition: transform .14s cubic-bezier(.3, 1.6, .5, 1), box-shadow .14s;
  -webkit-tap-highlight-color: transparent;
}
.inv__go:active { transform: translateY(2px) scale(.97); box-shadow: inset 0 3px 7px rgba(120, 85, 0, .45); }
.st-invite.is-done .inv__go { background: rgba(246, 248, 244, .08); color: var(--chalk); border-color: rgba(246, 248, 244, .45); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12); }
.st-invite.is-done .inv__go:active { box-shadow: inset 0 3px 7px rgba(0, 0, 0, .35); }

/* ---------- 미션 층: 화면 전체로 따로 열림. 한 화면에 한 가지(문제 하나 / 낱말 카드 한 장 / 성공) ---------- */
html.ms-open, html.ms-open body { overflow: hidden; overscroll-behavior: none; }
.ms {
  position: fixed; top: 0; bottom: 0; left: 50%; width: var(--app); z-index: 70;
  display: flex; flex-direction: column; background: var(--chalk); color: var(--pine);
  transform: translate(-50%, 100%); transition: transform .32s cubic-bezier(.4, 0, 1, 1);
  overscroll-behavior: contain; touch-action: manipulation;
  box-shadow: 0 -8px 40px rgba(23, 58, 45, .18);
}
.ms.is-up { transform: translate(-50%, 0); transition: transform .42s cubic-bezier(.2, .8, .2, 1); }
.ms::before {   /* 성공하면 바탕이 솔숲 초록으로 스르르 */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .45s ease;
  background: linear-gradient(165deg, #2A5B48, #143327);
}
.ms.is-win::before { opacity: 1; }
.ms__head, .ms__kick, .ms__stage, .ms__foot { position: relative; z-index: 1; }
.ms__head {
  flex: none; display: flex; align-items: center; gap: 10px;
  height: calc(56px + env(safe-area-inset-top)); padding: env(safe-area-inset-top) var(--g) 0 8px;
}
.ms__x { width: 44px; height: 44px; color: var(--pine); }
.ms__prog { flex: 1; display: flex; gap: 6px; min-width: 0; }
.ms__prog i { flex: 1; height: 6px; border-radius: 3px; background: rgba(23, 58, 45, .12); overflow: hidden; }
.ms__prog b { display: block; width: 0; height: 100%; border-radius: inherit; transition: width .4s cubic-bezier(.2, .8, .2, 1); }
.ms__prog i.is-now b { width: 100%; background: var(--ginkgo); }
.ms__prog i.is-done b { width: 100%; background: var(--gold); }
.ms__prog.no-tr b { transition: none; }
/* 이번 판 포인트: 솔숲 바탕 금빛 별, 모일 때마다 톡 */
.ms__pts {
  flex: none; display: inline-flex; align-items: center; gap: 5px; height: 32px; padding: 0 12px 0 9px; border-radius: 999px;
  background: var(--pine); color: var(--ginkgo); font-family: var(--display); font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums;
  box-shadow: inset 0 0 0 1px rgba(255, 212, 59, .4), 0 3px 8px -4px rgba(23, 58, 45, .6);
}
.ms__pts svg { width: 16px; height: 16px; flex: none; }
.ms__pts b { min-width: 1.2em; text-align: right; font-weight: 800; }
.ms__pts.is-pop { animation: pts-pop .45s cubic-bezier(.3, 1.8, .5, 1); }
@keyframes pts-pop { 40% { transform: scale(1.22); } }
.ms__kick {
  flex: none; margin: 0; padding: 0 var(--g) 2px; font-family: var(--display); font-size: 13px; font-weight: 800; line-height: 1.4;
  color: var(--gold-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ms__stage {
  flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 12px var(--g) 16px;
  /* 글이 많아 내려야 할 때 위아래 끝이 뚝 잘리지 않고 스르르(밝은 바탕·성공 초록 바탕 모두) */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 12px, #000 calc(100% - 16px), transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 12px, #000 calc(100% - 16px), transparent 100%);
}
.ms__foot {
  flex: none; display: flex; align-items: center; justify-content: center;
  min-height: calc(76px + env(safe-area-inset-bottom)); padding: 10px var(--g) calc(12px + env(safe-area-inset-bottom));
}
.ms__btn {
  width: 100%; min-height: 54px; padding: 8px 18px; border: 1px solid #C99A12; border-radius: 16px; cursor: pointer;
  background: var(--gold); color: #3B2A00; font-size: 17px; font-weight: 800; line-height: 1.3;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .75), 0 6px 14px -6px rgba(0, 0, 0, .45);
  -webkit-tap-highlight-color: transparent; transition: transform .14s cubic-bezier(.3, 1.6, .5, 1), box-shadow .14s;
}
.ms__btn:active { transform: translateY(2px) scale(.98); box-shadow: inset 0 3px 7px rgba(120, 85, 0, .4); }
.ms__hint2 { margin: 0; font-size: 14px; line-height: 1.5; color: var(--sub); text-align: center; }
.ms__fx { position: absolute; inset: 0; z-index: 3; pointer-events: none; overflow: hidden; }
.ms__bits { position: absolute; left: 50%; top: 26%; width: 0; height: 0; }
.ms__bits i { position: absolute; left: 0; top: 0; }
.ms__float {
  position: absolute; z-index: 4; pointer-events: none; padding: 2px 9px; border-radius: 999px;
  background: var(--pine); color: var(--ginkgo); font-family: var(--display); font-size: 14px; font-weight: 800; white-space: nowrap;
}

/* 문제 화면 */
.ms__label { margin: 0; font-family: var(--display); font-size: 13px; font-weight: 800; color: var(--sub); }
.ms__label--w { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.ms__count { font-variant-numeric: tabular-nums; color: var(--gold-text); }
.ms__q {
  margin: 6px 0 10px; font-family: var(--display); font-size: calc(var(--body-size) + 3px); font-weight: 800; line-height: 1.22;
  letter-spacing: -.01em; color: var(--pine); text-wrap: pretty;
}
.ms__opts { display: grid; gap: 10px; margin-top: 14px; }
.ms__o {
  position: relative; display: block; width: 100%; min-height: 56px; padding: 14px 48px 14px 18px; border-radius: 16px;
  border: 1.5px solid var(--line); background: #fff; box-shadow: var(--raise); cursor: pointer; text-align: left;
  font-family: var(--serif); font-size: var(--body-size); font-weight: 500; line-height: 1.35; color: var(--pine);
  -webkit-tap-highlight-color: transparent;
  transition: transform .12s ease, box-shadow .12s ease, opacity .25s ease, background-color .2s, border-color .2s;
}
.ms__o:active { transform: translateY(1px) scale(.985); box-shadow: var(--sink); }
.ms__o.is-right { border-color: var(--sprout); background: linear-gradient(180deg, #DDF1E5, #EEF8F1); box-shadow: inset 0 2px 5px rgba(31, 145, 80, .22); font-weight: 600; }
.ms__o.is-wrong { border-color: #C2453A; background: linear-gradient(180deg, #F9E2DF, #FBEEEC); box-shadow: inset 0 2px 5px rgba(194, 69, 58, .18); animation: ck-shake .32s; }
.ms__o.is-right::after, .ms__o.is-wrong::after {
  position: absolute; right: 14px; top: 50%; margin-top: -13px; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; color: #fff; font-family: var(--display); font-size: 14px; font-weight: 800; line-height: 1;
  animation: ck-pop .35s cubic-bezier(.3, 1.8, .5, 1) both;
}
.ms__o.is-right::after { content: "✓"; background: var(--sprout); }
.ms__o.is-wrong::after { content: "✕"; background: #C2453A; }
.ms__o.no-anim, .ms__o.no-anim::after { animation: none; }
.ms__o.is-dim { opacity: .45; }
.ms__o[aria-disabled="true"], .ms__o.is-wrong { cursor: default; }
.ms__o[aria-disabled="true"]:active, .ms__o.is-wrong:active { transform: none; box-shadow: var(--raise); }
.ms__fb { margin-top: 14px; padding: 12px 14px; border-radius: 14px; }
.ms__fb.is-right { background: #E9F5EE; }
.ms__fb.is-wrong { background: #FBEDEB; }
.ms__fbh { margin: 0; font-size: 16px; font-weight: 800; line-height: 1.45; }
.ms__fb.is-right .ms__fbh { color: var(--label); }
.ms__fb.is-wrong .ms__fbh { color: #B23A30; }
.ms__why { margin: 6px 0 0; font-size: 14.5px; line-height: 1.6; color: var(--pine-2); }
.ms__quote { font-family: var(--serif); font-size: 16px; font-style: italic; color: var(--pine); letter-spacing: 0; word-break: normal; }
.ms__evh { margin: 8px 0 6px; font-size: 13.5px; font-weight: 700; color: var(--sub); }
.ms__hint { margin: 6px 0 0; font-size: 14.5px; line-height: 1.6; color: var(--pine-2); }
.ms__ev {
  margin: 0; padding: 10px 14px; border-left: 3px solid #C99A12; border-radius: 0 12px 12px 0; background: #fff;
  font-family: var(--serif); font-size: 16px; line-height: 1.45; color: var(--pine);
}

/* 낱말 카드: 한 장씩. 누르면 뒤집혀 뜻 + 소리 */
.ms__sub { margin: 4px 0 16px; font-size: 14.5px; line-height: 1.5; color: var(--sub); }
.mc { position: relative; width: 100%; max-width: 380px; height: clamp(260px, 40vh, 340px); margin: 0 auto; }
.mc__flip {
  position: absolute; inset: 0; display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none;
  perspective: 1200px; cursor: pointer; font: inherit; color: inherit; -webkit-tap-highlight-color: transparent;
}
.mc__flip:focus-visible { outline: none; box-shadow: none; }
.mc__flip:focus-visible .mc__in { outline: 3px solid var(--pine); outline-offset: 4px; border-radius: 22px; }
.mc__in { position: relative; display: block; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform 560ms cubic-bezier(.2, .8, .2, 1); }
.mc.is-back .mc__in { transform: rotateY(180deg); }
.mc__f, .mc__b {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 28px 24px; border: 2px solid transparent; border-radius: 22px; text-align: center;
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
}
/* 앞면(영어): 크림색 종이 + 금테 + 안쪽 가는 금줄 */
.mc__f {
  background: linear-gradient(180deg, #FFFEF8, #FFF7E2) padding-box, var(--gold) border-box;
  box-shadow: inset 0 0 0 5px #FFFDF4, inset 0 0 0 6px rgba(201, 154, 18, .4), 0 14px 26px -14px rgba(120, 85, 0, .55);
}
.mc__f::before, .mc__f::after { content: "✦"; position: absolute; font-size: 11px; line-height: 1; color: #C99A12; }
.mc__f::before { left: 16px; top: 15px; }
.mc__f::after { right: 16px; bottom: 15px; }
.mc__w {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
  font-family: var(--serif); font-size: clamp(24px, 8.4vw, 34px); font-weight: 600; line-height: 1.18; color: var(--pine); text-wrap: balance;
}
.mc__tap { position: absolute; left: 50%; bottom: 18px; translate: -50% 0; display: grid; place-items: center; width: 30px; height: 30px; color: rgba(201, 154, 18, .9); }
.mc__tap svg { width: 20px; height: 20px; }
/* 뒷면: 솔숲 초록 + 금테 */
.mc__b {
  transform: rotateY(180deg); color: var(--chalk);
  background: linear-gradient(160deg, #24513F, #143327) padding-box, var(--gold) border-box;
  box-shadow: inset 0 0 0 5px #173A2D, inset 0 0 0 6px rgba(255, 212, 59, .45), 0 14px 26px -14px rgba(23, 58, 45, .7);
}
.mc__ko { display: block; font-size: 24px; font-weight: 700; line-height: 1.35; color: var(--chalk); }
.mc__ko.is-long { font-size: 20px; }
.mc__rule { display: block; width: 44px; height: 1px; margin: 14px auto 12px; background: rgba(255, 212, 59, .5); }
.mc__ctx { display: block; font-family: var(--serif); font-size: 15.5px; line-height: 1.45; color: rgba(246, 248, 244, .9); }
.mc__ctx b { font-weight: 700; color: var(--ginkgo); }
.mc__spk { position: absolute; top: 12px; right: 12px; z-index: 2; }
.mc__spk::before {
  content: ""; position: absolute; inset: 2px; border-radius: 50%; background: rgba(255, 255, 255, .9);
  border: 1px solid rgba(201, 154, 18, .35); box-shadow: 0 2px 6px -2px rgba(120, 85, 0, .35); transition: background-color .3s, transform .14s;
}
.mc__spk:active::before { transform: scale(.9); }
.mc.is-back .mc__spk { color: var(--chalk); }
.mc.is-back .mc__spk::before { background: rgba(246, 248, 244, .12); border-color: rgba(255, 212, 59, .35); box-shadow: none; }
.ms__nosnd { margin-top: 14px; }

/* 미션 성공: 바탕이 솔숲 초록, 도장 쿵 */
.ms.is-win .ms__x { color: var(--chalk); }
.ms.is-win .ms__prog i { background: rgba(246, 248, 244, .16); }
.ms.is-win .ms__pts { box-shadow: inset 0 0 0 1px rgba(255, 212, 59, .7); }
.ms.is-win .ms__kick { white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; color: rgba(255, 212, 59, .9); }
.ms__win { display: flex; flex-direction: column; align-items: center; padding: 8px 0 4px; text-align: center; color: var(--chalk); }
.ms__win.is-pending > * { opacity: 0; }
.ms .win__stamp {
  display: grid; place-items: center; width: 84px; height: 84px; margin: 6px auto 14px; border-radius: 50%;
  background: var(--gold); color: #3B2A00;
  box-shadow: inset 0 0 0 5px #FFF1BF, inset 0 0 0 6px rgba(120, 85, 0, .4), 0 0 0 6px rgba(255, 212, 59, .18), 0 0 40px rgba(255, 212, 59, .45);
}
.ms .win__stamp svg { width: 42px; height: 42px; }
.ms__win:not(.is-pending) .win__stamp { animation: win-stamp .6s .25s cubic-bezier(.3, 1.7, .5, 1) both; }
@keyframes win-stamp { from { transform: scale(2.2) rotate(-25deg); opacity: 0; } }
.ms__win:not(.is-pending) > :not(.win__stamp) { animation: win-up .45s cubic-bezier(.2, .8, .2, 1) both; }
.ms__win:not(.is-pending) > :nth-child(2) { animation-delay: .5s; }
.ms__win:not(.is-pending) > :nth-child(3) { animation-delay: .6s; }
.ms__win:not(.is-pending) > :nth-child(4) { animation-delay: .7s; }
.ms__win:not(.is-pending) > :nth-child(5) { animation-delay: .8s; }
.ms__win:not(.is-pending) > :nth-child(6) { animation-delay: .9s; }
@keyframes win-up { from { opacity: 0; transform: translateY(10px); } }
.ms .win__big { margin: 0; font-family: var(--display); font-size: 30px; font-weight: 800; line-height: 1.05; color: var(--ginkgo); }
.ms .win__ko { margin: 10px 0 0; font-size: 15px; line-height: 1.6; color: rgba(246, 248, 244, .9); }
.ms .win__ko b { color: var(--ginkgo); font-weight: 800; }
.win__pts {
  margin: 12px 0 0; padding: 6px 14px; border-radius: 999px; border: 1px solid rgba(255, 212, 59, .45); background: rgba(255, 212, 59, .12);
  font-size: 14px; font-weight: 600; line-height: 1.45; color: rgba(246, 248, 244, .92);
}
.win__pts b { color: var(--ginkgo); font-weight: 800; }
.ms__talk {
  width: 100%; margin: 16px 0 0; padding: 12px 14px; border-radius: 16px; text-align: left;
  border: 1px solid rgba(255, 212, 59, .35); background: rgba(246, 248, 244, .08);
}
.ms__talkh { margin: 0 0 4px; font-family: var(--display); font-size: 12px; font-weight: 800; letter-spacing: .02em; color: var(--ginkgo); }
.ms__talken { margin: 0; font-family: var(--serif); font-size: calc(var(--body-size) - 1px); line-height: 1.4; color: var(--chalk); }
.ms__talkko { margin: 6px 0 0; font-size: 14px; line-height: 1.5; color: rgba(246, 248, 244, .8); }
.ms__proof { margin: 14px 0 0; font-family: var(--display); font-size: 12.5px; font-weight: 600; color: rgba(246, 248, 244, .7); }

/* 좁은 화면(300~340px): 보기 여백과 카드 높이를 줄여 한 화면에 */
@media (max-width: 340px) {
  .ms__o { padding: 12px 44px 12px 14px; min-height: 52px; }
  .ms__o.is-right::after, .ms__o.is-wrong::after { right: 10px; }
  .mc { height: clamp(230px, 38vh, 300px); }
  .mc__f, .mc__b { padding: 24px 18px; }
  .ms__q { margin-bottom: 6px; }
  .ms__pts { padding: 0 10px 0 8px; }
}

/* ---------- 한글 해석·듣기 막대 단추 (2026-11-27 사용자: "한글 번역은 어떻게 안되나?",
   "리슨을 듣다가 스터디하고 싶으면 다시 올라가야 되잖아 → 밑에 플레이 버튼에 리슨와 스터디") 모양은 AI 판단 ---------- */
.art__tools .ko-btn {
  flex: none; height: 44px; padding: 0 13px; border-radius: 999px;
  border: 1px solid rgba(23, 58, 45, .18);
  background: linear-gradient(180deg, rgba(255, 255, 255, .85), rgba(255, 255, 255, .45));
  box-shadow: var(--raise); color: var(--pine);
  font-family: var(--ko); font-size: 15px; font-weight: 700; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform .14s cubic-bezier(.3, 1.6, .5, 1), box-shadow .14s, background-color .2s;
}
.art__tools .ko-btn:active { transform: translateY(1px) scale(.95); box-shadow: var(--sink); }
.art__tools .ko-btn[aria-pressed="true"] {
  border-color: #C99A12; background: linear-gradient(180deg, #FFD43B 0%, #FFE27A 100%);
  box-shadow: inset 0 2px 6px rgba(140, 100, 0, .38), inset 0 -1px 0 rgba(255, 255, 255, .6); transform: translateY(1px);
}
.art__tools .study-btn + .ko-btn { margin-left: 0; }
.art__tools:not(:has(.study-btn)) .ko-btn { margin-left: auto; }
@media (max-width: 374px) { .art__tools .ko-btn { padding: 0 10px; } }

/* 문단 밑 한글: 켰을 때만. 영어 글을 가리지 않게 작고 옅게, 왼쪽 노란 줄 */
.art__body .ko { display: none; }
.ko-on .art__body .ko {
  display: block; margin: -4px 0 22px; padding: 2px 0 2px 12px;
  border-left: 3px solid var(--ginkgo);
  font-family: var(--ko); font-size: calc(var(--body-size) * .84); line-height: 1.65; color: var(--sub);
  word-break: keep-all; overflow-wrap: anywhere;
}
.ko-on .art__body .ko--head { margin-top: -2px; font-weight: 600; }
.ko-on .art__body .qa__q + .ko { color: var(--pine); }

/* 듣기 막대 아래 줄: Study · 한글 */
.player { flex-wrap: wrap; row-gap: 8px; }
.player__tools { flex-basis: 100%; display: flex; gap: 8px; padding: 0 6px 0 0; }
.player__tools button {
  flex: 1; height: 38px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(246, 248, 244, .28); background: rgba(246, 248, 244, .08); color: var(--chalk);
  font-size: 14.5px; font-weight: 800; -webkit-tap-highlight-color: transparent;
  transition: transform .12s ease, background-color .2s, color .2s;
}
.player__tools .player__ko { font-family: var(--ko); font-weight: 700; }
.player__tools button:active { transform: scale(.96); }
.player__tools button[aria-pressed="true"] { background: var(--ginkgo); border-color: var(--ginkgo); color: var(--pine); }
.page-article:has(.player__tools) .toast { bottom: calc(142px + env(safe-area-inset-bottom)); }
/* 한글 단추가 생겨 단추 줄이 길어짐: 갤럭시 폭(360~400px)에서 한 줄에 들어가게 조금씩 줄인다 */
@media (max-width: 400px) {
  .art__tools { gap: 6px; }
  .art__tools .listen { padding: 0 13px 0 11px; gap: 6px; }
  .art__tools .study-btn { padding: 0 12px; }
  .art__tools .study-btn svg { display: none; }
  .art__tools .ko-btn { width: 44px; padding: 0; }
  .art__tools .aa-btn, .art__tools .share-btn { width: 40px; height: 40px; }
}

/* ===== 미션 다시 다듬기(2026-11-27 밤 사용자: "디자인 심플하게 핵심 키워드만", "문제도 클릭하고 자동으로 넘어가야지 밑에 다음꺼 없애라",
   "카드도 단어 보고 넘기고 바로 다음카드 … 액션 … 진동 … 황금색 주변에 감도는 빛 … 역동감") 모양·시간은 AI 판단 ===== */
.ms__foot:empty { min-height: 0; padding: 0 0 env(safe-area-inset-bottom); }
/* 문제: 맞힌 보기가 금빛으로 반짝 → 저절로 다음 */
.ms__step--q.is-solved .ms__o.is-right { animation: ms-right .7s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes ms-right {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 196, 0, .7); }
  35% { transform: scale(1.04); box-shadow: 0 0 0 10px rgba(255, 196, 0, 0), 0 0 26px 4px rgba(255, 196, 0, .55); }
  100% { transform: scale(1); box-shadow: 0 0 18px 2px rgba(255, 196, 0, .35); }
}
.ms__step--q.is-solved .ms__o.is-dim { opacity: .35; transition: opacity .3s; }

/* 낱말 카드: 낱말과 뜻만, 뒤에 카드가 쌓여 있고, 둘레에 금빛이 감돈다 */
.ms__step--w { display: flex; flex-direction: column; min-height: 100%; }
.ms__step--w .ms__label--w { margin-bottom: 18px; }
.mc { isolation: isolate; height: clamp(280px, 46vh, 380px); margin-top: 8px; touch-action: pan-y; }
.mc.has-more::before, .mc.has-more::after {   /* 뒤에 기다리는 카드 두 장 */
  content: ""; position: absolute; inset: 0; z-index: -2; border-radius: 22px; pointer-events: none;
  background: linear-gradient(180deg, #FFFDF4, #FBEFCB); border: 2px solid rgba(201, 154, 18, .55);
}
.mc.has-more::before { transform: translateY(12px) scale(.95); opacity: .9; }
.mc.has-more::after { transform: translateY(23px) scale(.9); opacity: .55; }
.mc__flip::before {   /* 감도는 금빛: 카드 둘레를 천천히 도는 빛 */
  content: ""; position: absolute; inset: -9px; z-index: -1; border-radius: 30px; pointer-events: none;
  background: conic-gradient(from var(--mc-a, 0deg), rgba(255, 212, 59, 0) 0deg, rgba(255, 212, 59, .95) 60deg, rgba(255, 170, 0, .2) 140deg,
    rgba(255, 212, 59, 0) 200deg, rgba(255, 230, 140, .9) 290deg, rgba(255, 212, 59, 0) 360deg);
  filter: blur(10px); opacity: .75; animation: mc-spin 3.2s linear infinite;
}
@property --mc-a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes mc-spin { to { --mc-a: 360deg; } }
.mc.is-back .mc__flip::before { opacity: 1; filter: blur(12px); animation-duration: 2.2s; }
.mc__flip::after {   /* 뒤집힐 때 금빛 고리가 퍼짐 */
  content: ""; position: absolute; inset: 0; z-index: 3; border-radius: 22px; pointer-events: none; opacity: 0;
  box-shadow: 0 0 0 0 rgba(255, 212, 59, .9), 0 0 40px 10px rgba(255, 200, 40, .6);
}
.mc.is-burst .mc__flip::after { animation: mc-burst .75s ease-out; }
@keyframes mc-burst {
  0% { opacity: 1; box-shadow: 0 0 0 0 rgba(255, 212, 59, .95), 0 0 30px 6px rgba(255, 200, 40, .7); }
  100% { opacity: 0; box-shadow: 0 0 0 26px rgba(255, 212, 59, 0), 0 0 60px 20px rgba(255, 200, 40, 0); }
}
.mc.is-burst .mc__in { animation: mc-pop .6s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes mc-pop { 0% { scale: 1; } 45% { scale: 1.05; } 100% { scale: 1; } }
/* 앞면: 낱말 하나, 크게 */
.mc__w { font-size: clamp(28px, 9.6vw, 40px); }
/* 뒷면: 위에 작은 금빛 낱말, 가운데 큰 뜻, 오른쪽 아래 넘기기 표시 */
.mc__kw { display: block; margin-bottom: 12px; font-family: var(--serif); font-size: 17px; font-weight: 600; color: var(--ginkgo); letter-spacing: .01em; }
.mc__ko { font-size: 28px; }
.mc__ko.is-long { font-size: 22px; }
.mc__next {
  position: absolute; right: 16px; bottom: 12px; font-size: 30px; line-height: 1; color: rgba(255, 212, 59, .85);
  animation: mc-nudge 1.1s ease-in-out infinite;
}
@keyframes mc-nudge { 50% { transform: translateX(5px); } }
/* 금빛 더 진하게, 카드는 화면 가운데에 크게(2026-11-27 밤, AI 판단) */
.ms__step--w .mc { margin: auto; height: clamp(300px, 54vh, 440px); }
.mc__flip::before { inset: -14px; filter: blur(14px); opacity: .95; }
.mc.is-back .mc__flip::before { filter: blur(16px); }
.mc.has-more::before { transform: translateY(15px) scale(.94); }
.mc.has-more::after { transform: translateY(29px) scale(.88); }
.mc { margin-bottom: 30px; }

/* ===== 첫 안내(사용법, tour.js) 2026-11-27 밤: 뒤는 흐리게(가우시안), 가리킨 단추만 또렷, 금빛 점선 화살표. 모양은 AI 판단 ===== */
html.tour-on, html.tour-on body { overflow: hidden; }
.tour { position: fixed; inset: 0; z-index: 120; cursor: pointer; -webkit-tap-highlight-color: transparent; opacity: 0; transition: opacity .35s ease; }
.tour.is-on { opacity: 1; }
.tour.is-out { opacity: 0; transition: opacity .38s ease; pointer-events: none; }
.tour__veil {
  position: absolute; inset: 0;
  background: rgba(10, 28, 21, .46);
  -webkit-backdrop-filter: blur(7px) saturate(.85); backdrop-filter: blur(7px) saturate(.85);
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
}
.tour__ring {   /* 가리킨 단추 둘레: 가는 금테 + 숨 쉬는 빛 */
  position: absolute; left: 0; top: 0; pointer-events: none;
  border: 1.5px solid rgba(255, 212, 59, .95);
  box-shadow: 0 0 0 4px rgba(255, 212, 59, .18), 0 0 22px 4px rgba(255, 200, 40, .45);
  animation: tour-breathe 1.8s ease-in-out infinite;
}
@keyframes tour-breathe { 50% { box-shadow: 0 0 0 8px rgba(255, 212, 59, .08), 0 0 30px 8px rgba(255, 200, 40, .55); } }
.tour__arrow { position: absolute; inset: 0; overflow: visible; pointer-events: none; }
.tour__line { fill: none; stroke: #FFE07A; stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 1.5 7; filter: drop-shadow(0 0 3px rgba(255, 200, 40, .7)); }
.tour__draw { stroke-dasharray: 1; stroke-dashoffset: 0; }
.tour__arrow.is-draw .tour__draw { animation: tour-draw .62s cubic-bezier(.55, .05, .3, 1) .12s both; }
@keyframes tour-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.tour__head { fill: none; stroke: #FFE07A; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 3px rgba(255, 200, 40, .7)); }
.tour__arrow.is-draw .tour__head { animation: tour-pop .26s cubic-bezier(.3, 1.8, .5, 1) .7s both; transform-box: fill-box; transform-origin: center; }
@keyframes tour-pop { from { opacity: 0; transform: scale(.3); } to { opacity: 1; transform: none; } }
.tour__dot0 { fill: #FFE07A; }
.tour__arrow.is-draw .tour__dot0 { animation: tour-pop .2s ease-out both; }
.tour__bub {
  position: absolute; padding: 16px 18px 15px; border-radius: 18px; pointer-events: none;
  background: rgba(255, 255, 255, .97); color: var(--pine);
  box-shadow: 0 0 0 1px rgba(255, 212, 59, .55), 0 18px 40px -16px rgba(0, 0, 0, .55);
  transition: opacity .17s ease, transform .17s ease;
  animation: tour-in .34s cubic-bezier(.2, .8, .2, 1) both;
}
@keyframes tour-in { from { opacity: 0; transform: translateY(8px) scale(.97); } }
.tour.is-swap .tour__bub, .tour.is-swap .tour__arrow { opacity: 0; transform: translateY(4px); transition: opacity .15s ease, transform .15s ease; }
.tour__t { margin: 0 0 4px; font-family: var(--display); font-size: 15px; font-weight: 800; line-height: 1.3; color: #9A7200; }
.tour__ko { margin: 0; font-family: "Pretendard Variable", Pretendard, system-ui, sans-serif; font-size: 17px; font-weight: 600; line-height: 1.5; word-break: keep-all; }
.tour__foot {
  position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 12px;
  padding: 14px var(--g) calc(18px + env(safe-area-inset-bottom)); color: rgba(246, 248, 244, .85);
}
.tour__dots { display: inline-flex; gap: 6px; }
.tour__dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(246, 248, 244, .35); transition: width .3s cubic-bezier(.2, .8, .2, 1), background .3s; }
.tour__dots i.is-on { width: 20px; border-radius: 4px; background: var(--ginkgo); }
.tour__hint { flex: 1; font-size: 14px; font-weight: 500; animation: tour-hint 2s ease-in-out infinite; }
@keyframes tour-hint { 50% { opacity: .55; } }
.tour__skip {
  flex: none; min-height: 40px; padding: 0 14px; border: 1px solid rgba(246, 248, 244, .35); border-radius: 999px; cursor: pointer;
  background: rgba(246, 248, 244, .08); color: var(--chalk); font: 600 14px/1 "Pretendard Variable", Pretendard, system-ui, sans-serif;
}
.tour__hint { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 340px) { .tour__hint { font-size: 13px; } .tour__skip { padding: 0 11px; font-size: 13px; } }

/* ===== 기사 단추 한 칸(2026-11-29 사용자: "리슨이랑 스터디도 아이콘으로", "공유·스터디·글자 커지는 거 … 한 칸에 모아")
   한 덩어리 유리 막대 안에 동그란 아이콘 단추 다섯. Listen만 진한 초록(제일 중요), 켠 것(Study·한글)은 노랑. 모양은 AI 판단 ===== */
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.art__tools { gap: 12px; padding: 12px 0; }
.art__tools .tbar {
  flex: none; display: flex; align-items: center; gap: 4px; padding: 4px;
  border-radius: 999px; border: 1px solid rgba(23, 58, 45, .14);
  background: linear-gradient(180deg, rgba(255, 255, 255, .92), rgba(246, 248, 244, .7));
  box-shadow: var(--raise);
}
.art__tools .tbar .tb {
  flex: none; display: inline-grid; place-items: center; gap: 0;
  width: 46px; height: 46px; min-width: 0; margin: 0; padding: 0; border-radius: 50%;
  border: 0; background: transparent; box-shadow: none; color: var(--pine);
  -webkit-backdrop-filter: none; backdrop-filter: none; cursor: pointer;
}
.art__tools .tbar .tb:active { transform: scale(.9); background: rgba(23, 58, 45, .08); box-shadow: var(--sink); }
.art__tools .tbar .tb .ico, .art__tools .tbar .tb__ico { display: block; width: 23px; height: 23px; }
.art__tools .tbar .aa-btn { font-family: var(--display); font-size: 17px; font-weight: 800; letter-spacing: -.02em; }
.art__tools .tbar .tb__ga { font-family: var(--ko); font-size: 19px; font-weight: 800; line-height: 1; }
/* Listen: 진한 초록 동그라미 + 노란 재생표, 듣는 동안은 일시정지표 */
.art__tools .tbar .listen {
  margin-right: 4px; background: linear-gradient(180deg, #2C5E4A 0%, #173A2D 100%); color: var(--ginkgo);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 4px 10px -4px rgba(23, 58, 45, .6);
}
.art__tools .tbar .listen .listen__icon { width: 20px; height: 20px; color: var(--ginkgo); }
.art__tools .tbar .listen:not(.is-on) .listen__icon { transform: translateX(1px); }
.art__tools .tbar .listen.is-on { background: linear-gradient(180deg, #143327 0%, #1D4535 100%); box-shadow: inset 0 3px 7px rgba(0, 0, 0, .4); }
.art__tools .tbar .listen:active { background: #143327; }
/* 켠 상태(Study·한글): 노란 동그라미 */
.art__tools .tbar .tb[aria-pressed="true"] {
  background: linear-gradient(180deg, #FFD43B 0%, #FFE27A 100%); color: #3B2A00; transform: none;
  box-shadow: inset 0 2px 5px rgba(140, 100, 0, .35);
}
.art__tools .tbar .study-btn svg { display: block; }
.art__tools .ai-note { margin-left: 2px; }
@media (max-width: 340px) {
  .art__tools .tbar { gap: 2px; padding: 3px; }
  .art__tools .tbar .tb { width: 44px; height: 44px; }
  .art__tools .tbar .listen { margin-right: 2px; }
}

/* ===== 미션 문제는 화면 가운데(2026-11-29 사용자: "문제가 좀 가운데 … 밑에 여백이 없도록 … 가운데로 배치") ===== */
.ms__step--q { display: flex; flex-direction: column; justify-content: center; min-height: 100%; padding-bottom: 4vh; }

/* ===== 미션 'Question 1 of 3'를 단추처럼 또렷하게(2026-11-29 사용자: "아이콘 … 크게 … 뒤에 배경 … 버튼처럼 테두리") 모양은 AI 판단 ===== */
.ms__label--q {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 9px;
  margin-bottom: 6px; padding: 5px 16px 5px 5px; border-radius: 999px;
  border: 1.5px solid #C99A12; background: linear-gradient(180deg, #FFF6D2 0%, #FFE88F 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), 0 4px 10px -5px rgba(140, 100, 0, .55);
  font-size: 16px; font-weight: 800; letter-spacing: .005em; color: var(--pine);
}
.ms__label--q b { font-size: 20px; font-weight: 900; line-height: 1; color: #8A5E00; }
.ms__qico {
  flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--pine); color: var(--ginkgo); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2);
}
.ms__qico svg { width: 20px; height: 20px; }
.ms__step--q .ms__label--q + .ms__q { margin-top: 12px; }

/* ===== 미션 문제 화면 다시 디자인(2026-11-29 사용자: "영어 퀴즈 문제 디자인 … 너무 밋밋 … 스킬을 이용해서")
   생각: 문제는 '교실 칠판'에 분필로 쓴 것처럼(솔숲 초록 판 + 분필 흰 글 + 은행잎 노랑 밑줄), 보기는 답안지처럼 A·B·C 동그라미.
   한 군데(칠판)만 힘을 주고 나머지는 조용히. 모양·색은 AI 판단 ===== */
.ms__board {
  position: relative; margin: 0 0 18px; padding: 16px 18px 24px; border-radius: 22px; overflow: hidden;
  color: var(--chalk);
  background:
    radial-gradient(120% 70% at 12% 0%, rgba(255, 255, 255, .09), transparent 60%),
    radial-gradient(60% 40% at 92% 100%, rgba(255, 255, 255, .06), transparent 70%),
    radial-gradient(30% 22% at 70% 30%, rgba(255, 255, 255, .035), transparent 70%),
    linear-gradient(170deg, #285743 0%, #1B4334 55%, #173A2D 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07), inset 0 0 0 6px rgba(10, 30, 22, .28),
    0 18px 32px -18px rgba(23, 58, 45, .75);
  animation: board-in .5s cubic-bezier(.2, .9, .25, 1.15) both;
}
@keyframes board-in { from { opacity: 0; transform: translateY(10px) scale(.97); } }
.ms__board .ms__label--q { margin: 0 0 4px; box-shadow: 0 4px 12px -6px rgba(0, 0, 0, .5); }
.ms__board .ms__q {
  position: relative; margin: 14px 0 0; padding-bottom: 14px;
  color: var(--chalk); font-size: calc(var(--body-size) + 6px); line-height: 1.18; letter-spacing: -.012em;
  text-shadow: 0 0 1px rgba(246, 248, 244, .35);
}
.ms__board .ms__q::after {   /* 분필로 쓱 그은 노란 밑줄 */
  content: ""; position: absolute; left: 0; bottom: 0; width: 72px; height: 5px; border-radius: 3px;
  background: var(--ginkgo); opacity: .92; transform: rotate(-1.2deg); transform-origin: 0 50%;
  animation: chalk-line .55s .25s cubic-bezier(.3, .8, .3, 1) both;
}
@keyframes chalk-line { from { transform: rotate(-1.2deg) scaleX(0); } }
.ms__board .ms__q:focus { outline: none; }
.ms__board .ms__q:focus-visible { outline: 2px solid var(--ginkgo); outline-offset: 4px; border-radius: 4px; }

/* 보기: 답안지 동그라미 A·B·C(글은 그대로, 글자는 CSS가 붙임) */
.ms__step--q .ms__opts { counter-reset: opt; gap: 12px; margin-top: 0; }
.ms__step--q .ms__o {
  display: flex; align-items: center; gap: 14px; min-height: 60px; padding: 12px 46px 12px 12px;
  border: 1.5px solid rgba(23, 58, 45, .16); border-radius: 18px; background: #fff;
  box-shadow: 0 1px 0 rgba(23, 58, 45, .06), 0 8px 18px -14px rgba(23, 58, 45, .55);
}
.ms__step--q .ms__o::before {
  counter-increment: opt; content: counter(opt, upper-alpha);
  flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  border: 2px solid var(--pine); color: var(--pine); background: #fff;
  font-family: var(--display); font-size: 16px; font-weight: 900; line-height: 1;
  transition: background-color .15s, color .15s, border-color .15s;
}
.ms__step--q .ms__o:active { transform: translateY(1px) scale(.985); border-color: var(--pine); box-shadow: var(--sink); }
.ms__step--q .ms__o:active::before { background: var(--pine); color: var(--ginkgo); }
.ms__step--q .ms__o.is-right { border-color: var(--sprout); background: linear-gradient(180deg, #E4F4EA, #F2FAF5); }
.ms__step--q .ms__o.is-right::before { background: var(--sprout); border-color: var(--sprout); color: #fff; }
.ms__step--q .ms__o.is-wrong { border-color: #C2453A; background: linear-gradient(180deg, #FBE7E4, #FDF3F1); }
.ms__step--q .ms__o.is-wrong::before { border-color: #C2453A; color: #C2453A; background: #fff; }
.ms__step--q .ms__o.is-wrong:active::before { background: #fff; color: #C2453A; }
/* 참·거짓처럼 보기가 둘이면 나란히 */
.ms__step--q .ms__opts:has(> .ms__o:nth-child(2):last-child) { grid-template-columns: 1fr 1fr; }
.ms__step--q .ms__opts:has(> .ms__o:nth-child(2):last-child) .ms__o {
  flex-direction: column; justify-content: center; gap: 8px; min-height: 104px; padding: 14px 10px; text-align: center; font-weight: 600;
}
.ms__step--q .ms__opts:has(> .ms__o:nth-child(2):last-child) .ms__o::after { top: 10px; right: 10px; margin-top: 0; }
@media (max-width: 340px) {
  .ms__board { padding: 14px 14px 20px; border-radius: 18px; }
  .ms__step--q .ms__o { gap: 10px; padding: 10px 40px 10px 10px; }
  .ms__step--q .ms__o::before { width: 32px; height: 32px; font-size: 15px; }
}
@media (max-width: 374px) { .ms__board .ms__q { font-size: calc(var(--body-size) + 3px); } }
