/* 물음표 미디어 공통 스타일. 색은 회사 로고(네이비 #263246, 노랑 #FFC23D)에서 가져왔다. */
:root {
  --bg: #f6f7fb;
  --surface: #ffffff;
  --surface-alt: #eef1f6;
  --border: #e1e5ee;
  --text: #1b2433;
  --text-2: #4a5568;
  --muted: #6b7486;
  --navy: #263246;
  --accent: #263246;
  --accent-soft: #e7ebf3;
  --accent-text: #263246;
  --yellow: #ffc23d;
  --yellow-soft: #fff4d6;
  --yellow-text: #8a5a00;
  --shadow-sm: 0 1px 2px rgba(20, 28, 45, 0.05);
  --shadow-md: 0 8px 24px rgba(20, 28, 45, 0.08);
  --radius: 16px;
}

[data-theme="dark"] {
  --bg: #0f141d;
  --surface: #171e2a;
  --surface-alt: #202939;
  --border: #2a3446;
  --text: #eef1f6;
  --text-2: #c3cad6;
  --muted: #8d97a8;
  --accent: #ffc23d;
  --accent-soft: rgba(255, 194, 61, 0.14);
  --accent-text: #ffd57a;
  --yellow-soft: rgba(255, 194, 61, 0.14);
  --yellow-text: #ffd57a;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard", "Noto Sans KR", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: var(--surface); padding: 8px 12px; border-radius: 8px; z-index: 100; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }

/* 머리 */
.hd {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.hd-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 800; letter-spacing: -0.02em; font-size: 17px; }
.brand img { height: 30px; width: auto; }
[data-theme="dark"] .brand .logo-light { display: none; }
.brand .logo-dark { display: none; }
[data-theme="dark"] .brand .logo-dark { display: block; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { text-decoration: none; font-size: 14px; font-weight: 600; color: var(--text-2); padding: 8px 10px; border-radius: 10px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); background: var(--surface-alt); }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--surface); border: 1px solid var(--border); color: var(--text-2);
  height: 36px; min-width: 36px; padding: 0 10px; border-radius: 999px;
  font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
}
.icon-btn:hover { color: var(--text); border-color: var(--accent); }
.menu-btn { display: none; }
@media (max-width: 720px) {
  .menu-btn { display: inline-flex; }
  .nav { display: none; position: absolute; top: 60px; left: 0; right: 0; flex-direction: column; align-items: stretch; padding: 8px 20px 16px; background: var(--bg); border-bottom: 1px solid var(--border); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 10px; font-size: 15px; }
}

/* 첫 화면 */
.hero { padding: 64px 0 40px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 800; letter-spacing: 0.04em;
  color: var(--yellow-text); background: var(--yellow-soft);
  padding: 5px 12px; border-radius: 999px;
}
.hero h1 { font-size: clamp(30px, 5.4vw, 52px); line-height: 1.18; letter-spacing: -0.035em; font-weight: 850; margin: 16px 0 14px; }
.hero h1 .hl { background: linear-gradient(transparent 62%, var(--yellow) 62%); padding: 0 2px; }
[data-theme="dark"] .hero h1 .hl { background: linear-gradient(transparent 62%, rgba(255, 194, 61, 0.45) 62%); }
.hero p.lead { font-size: 17px; color: var(--text-2); max-width: 640px; }
.stats { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.stat {
  display: flex; flex-direction: column; text-decoration: none;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  padding: 12px 18px; min-width: 120px; box-shadow: var(--shadow-sm);
}
.stat b { font-size: 24px; font-weight: 850; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stat span { font-size: 13px; color: var(--muted); font-weight: 600; }
.stat:hover { border-color: var(--accent); }

/* 칸 */
.sec { padding: 40px 0; }
.sec-hd { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.sec-hd h2 { font-size: clamp(22px, 3vw, 28px); letter-spacing: -0.03em; font-weight: 850; }
.sec-hd p { color: var(--muted); font-size: 14px; margin-top: 4px; }
.more { font-size: 14px; font-weight: 700; color: var(--accent-text); text-decoration: none; white-space: nowrap; }
.more:hover { text-decoration: underline; }

/* 복사 타일 */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 900px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .tiles { grid-template-columns: 1fr; } }
.tile {
  display: flex; flex-direction: column; gap: 10px; justify-content: space-between;
  text-align: left; font: inherit; cursor: pointer;
  padding: 18px; border-radius: var(--radius); border: 1px solid transparent;
  min-height: 132px; transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.tile:active { transform: scale(0.99); }
.tile .q { font-size: 15px; font-weight: 650; line-height: 1.5; }
.tile .meta { display: flex; justify-content: space-between; align-items: center; font-size: 12px; font-weight: 700; opacity: 0.85; }
.tile .pill { background: rgba(255, 255, 255, 0.7); padding: 3px 9px; border-radius: 999px; }
.k1 { background: #fff4d6; color: #7a4f00; }
.k2 { background: #dff5ea; color: #0b6b47; }
.k3 { background: #fde8f1; color: #a3164f; }
.k4 { background: #e2f0fd; color: #0a5687; }
.k5 { background: #ece8fd; color: #4b2a9e; }
.k6 { background: #ffeadb; color: #8f3410; }
[data-theme="dark"] .tile { background: var(--surface); color: var(--text); border-color: var(--border); }
[data-theme="dark"] .tile .pill { background: var(--accent-soft); color: var(--accent-text); }

/* 레이블 카드 */
.labels { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (max-width: 640px) { .labels { grid-template-columns: 1fr; } }
.label {
  display: flex; flex-direction: column; gap: 8px; text-decoration: none;
  background: var(--surface); border: 1px solid var(--border); border-radius: 20px;
  padding: 22px; box-shadow: var(--shadow-sm); position: relative;
}
a.label:hover { border-color: var(--accent); box-shadow: var(--shadow-md); }
.label .kind { font-size: 12px; font-weight: 800; color: var(--muted); letter-spacing: 0.02em; }
.label h3 { font-size: 21px; letter-spacing: -0.02em; font-weight: 850; }
.label p { color: var(--text-2); font-size: 14.5px; }
.label .go { margin-top: auto; padding-top: 6px; font-size: 14px; font-weight: 750; color: var(--accent-text); }
.badge { display: inline-block; font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 6px; background: var(--yellow-soft); color: var(--yellow-text); }
.label .badge { position: absolute; top: 18px; right: 18px; }

/* 의견함 */
.box { background: var(--navy); color: #fff; border-radius: 24px; padding: 30px; display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
[data-theme="dark"] .box { background: var(--surface-alt); }
.box h2 { font-size: 24px; letter-spacing: -0.02em; }
.box p { opacity: 0.85; font-size: 15px; margin-top: 4px; }
.btn { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font-weight: 800; font-size: 15px; padding: 12px 20px; border-radius: 999px; background: var(--yellow); color: #1b2433; border: 0; cursor: pointer; }
.btn:hover { filter: brightness(1.05); }
.btn[aria-disabled="true"] { opacity: 0.6; cursor: default; }

/* 프롬프트 페이지 */
.page-hd { padding: 44px 0 20px; }
.page-hd h1 { font-size: clamp(26px, 4vw, 36px); letter-spacing: -0.03em; font-weight: 850; line-height: 1.25; margin: 12px 0 8px; }
.page-hd p { color: var(--text-2); max-width: 700px; }
.crumb { font-size: 13px; color: var(--muted); }
.crumb a { text-decoration: none; }
.crumb a:hover { text-decoration: underline; }
.notice { margin-top: 16px; padding: 12px 16px; background: var(--surface-alt); border-radius: 12px; font-size: 13.5px; color: var(--text-2); }
.controls {
  position: sticky; top: 60px; z-index: 20;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  padding: 12px 0; margin-bottom: 20px; border-bottom: 1px solid var(--border);
}
.search { position: relative; margin-bottom: 10px; }
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search input {
  width: 100%; padding: 12px 84px 12px 42px; font: inherit; font-size: 16px;
  color: var(--text); background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; outline: none; box-shadow: var(--shadow-sm);
}
.search input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.search .count { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-size: 12px; font-weight: 700; color: var(--muted); }
.tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: 0 0 auto; text-decoration: none; padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text-2);
  font-size: 13px; font-weight: 650; white-space: nowrap;
}
.tab:hover { border-color: var(--accent); color: var(--text); }
.tab[aria-current="page"] { background: var(--navy); border-color: var(--navy); color: #fff; }
[data-theme="dark"] .tab[aria-current="page"] { background: var(--yellow); border-color: var(--yellow); color: #1b2433; }

.cat { margin-bottom: 44px; scroll-margin-top: 170px; }
.cat-hd { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.cat-hd h2 { font-size: 20px; font-weight: 850; letter-spacing: -0.02em; }
.cat-hd h2 a { text-decoration: none; }
.cat-hd h2 a:hover { text-decoration: underline; }
.cat-hd .n { font-size: 13px; font-weight: 650; color: var(--muted); white-space: nowrap; }
.pbox { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; margin-bottom: 14px; box-shadow: var(--shadow-sm); }
.pbox-label { font-size: 12px; font-weight: 800; color: var(--accent-text); margin-bottom: 10px; }
.plist { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 8px; }
.pitem {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 11px 12px; background: var(--surface-alt); border: 1px solid transparent; border-radius: 10px;
  cursor: pointer; text-align: left; font: inherit; color: var(--text);
}
.pitem:hover { border-color: var(--accent); }
.pitem .t { font-size: 14px; line-height: 1.45; color: var(--text-2); }
.copy { flex: 0 0 auto; font-size: 11px; font-weight: 800; color: var(--accent-text); background: var(--accent-soft); padding: 4px 8px; border-radius: 6px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 6px; scroll-margin-top: 170px; }
.card:target { border-color: var(--yellow); box-shadow: 0 0 0 3px var(--yellow-soft); }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.num { font-size: 12px; font-weight: 850; color: var(--accent-text); background: var(--accent-soft); padding: 2px 8px; border-radius: 6px; font-variant-numeric: tabular-nums; text-decoration: none; }
.card h3 { font-size: 15.5px; font-weight: 750; line-height: 1.4; }
.card p { font-size: 14px; color: var(--text-2); line-height: 1.55; }
.empty { display: none; text-align: center; padding: 60px 20px; color: var(--muted); }
.other-cats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.is-hidden { display: none !important; }
@media (max-width: 600px) { .plist, .grid { grid-template-columns: 1fr; } }

/* 일반 글 페이지 */
.doc { max-width: 720px; padding: 44px 0 60px; }
.doc h1 { font-size: 30px; letter-spacing: -0.03em; margin-bottom: 18px; }
.doc h2 { font-size: 19px; margin: 28px 0 8px; }
.doc p, .doc li { color: var(--text-2); font-size: 15.5px; }
.doc ul { padding-left: 20px; }

/* 발 */
.ft { border-top: 1px solid var(--border); margin-top: 40px; padding: 30px 0 40px; font-size: 13px; color: var(--muted); }
.ft-in { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.ft strong { color: var(--text); font-size: 15px; }
.ft-links { display: flex; gap: 14px; flex-wrap: wrap; }
.ft-links a { text-decoration: none; }
.ft-links a:hover { text-decoration: underline; }
.ft dl { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; margin-top: 8px; }
.ft .fine { margin-top: 14px; }

/* 알림·위로 */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(16px);
  background: var(--navy); color: #fff; padding: 10px 18px; border-radius: 999px;
  font-size: 14px; font-weight: 700; opacity: 0; pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease; z-index: 50; box-shadow: var(--shadow-md);
}
[data-theme="dark"] .toast { background: var(--yellow); color: #1b2433; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.top-btn {
  position: fixed; right: 20px; bottom: 24px; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
  box-shadow: var(--shadow-md); cursor: pointer; display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.2s ease; z-index: 40;
}
.top-btn.visible { opacity: 1; pointer-events: auto; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* 인라인 스타일 대신 쓰는 작은 클래스 (CSP가 style 속성을 막는다) */
.hd-actions { display: flex; align-items: center; gap: 6px; }
.sub-h { font-size: 18px; margin-bottom: 8px; }
.doc .small { margin-top: 24px; font-size: 13px; }
.doc .gap { margin-top: 20px; }

/* ===== 물음표 미디어 3대 기둥 + 홈 봇 앵커 + 1분 심리테스트 ===== */
.pet-hero { padding: 20px 0 18px; }
.pet-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; flex-wrap: wrap; margin-bottom: 10px;
}
.pet-bar-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pet-bar-title strong { font-size: 16px; font-weight: 850; letter-spacing: -0.02em; }
.pet-bar-title span { font-size: 13px; color: var(--muted); }
.pet-frame-wrap {
  border-radius: 20px; overflow: hidden;
  border: 1px solid var(--border); background: #0b0f1a;
  box-shadow: var(--shadow-md);
}
.pet-frame {
  display: block; width: 100%; border: 0;
  height: 540px;
}
@media (max-width: 720px) {
  .pet-hero { padding: 14px 0 12px; }
  .pet-frame { height: 340px; }
}

.hub-intro { padding: 14px 0 10px; }
.hub-intro h1 {
  font-size: clamp(24px, 4.2vw, 38px); line-height: 1.24;
  letter-spacing: -0.03em; font-weight: 850; margin: 10px 0 8px;
}
.hub-intro h1 .hl { background: linear-gradient(transparent 62%, var(--yellow) 62%); padding: 0 2px; }
[data-theme="dark"] .hub-intro h1 .hl { background: linear-gradient(transparent 62%, rgba(255, 194, 61, 0.45) 62%); }
.hub-intro p.lead { font-size: 15.5px; color: var(--text-2); max-width: 680px; }

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 820px) { .pillars { grid-template-columns: 1fr; } }

/* 필터 바 */
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0 20px; }
.filter-btn {
  font: inherit; font-size: 13px; font-weight: 700; cursor: pointer;
  padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text-2);
}
.filter-btn:hover { border-color: var(--accent); color: var(--text); }
.filter-btn.is-active {
  background: var(--navy); border-color: var(--navy); color: #fff;
}
[data-theme="dark"] .filter-btn.is-active {
  background: var(--yellow); border-color: var(--yellow); color: #1b2433;
}

/* 뉴스 · 툰 상세 카드 */
.article-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.analogy-box {
  margin: 14px 0; padding: 14px 16px; border-radius: 14px;
  background: var(--yellow-soft); color: var(--text);
  border: 1px solid color-mix(in srgb, var(--yellow) 45%, transparent);
  font-size: 14.5px; line-height: 1.6;
}
.analogy-box strong { display: block; font-size: 12px; color: var(--yellow-text); margin-bottom: 4px; }
.gloss-wrap { margin: 22px 0; }
.gloss-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin-top: 8px; }
.gloss-chip {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 12px 14px; box-shadow: var(--shadow-sm);
}
.gloss-chip b { display: block; font-size: 13.5px; color: var(--accent-text); margin-bottom: 4px; }
.gloss-chip span { font-size: 13px; color: var(--text-2); line-height: 1.45; }

/* 4컷 인스타툰 패널 */
.toon-panels { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 18px 0; }
@media (max-width: 580px) { .toon-panels { grid-template-columns: 1fr; } }
.toon-cut {
  background: var(--surface); border: 2px solid var(--border);
  border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 6px;
}
.toon-cut-meta { display: flex; justify-content: space-between; font-size: 11.5px; font-weight: 800; color: var(--muted); }
.toon-cut p { font-size: 14.5px; font-weight: 600; color: var(--text); line-height: 1.5; margin: 0; }

/* 강의노트 단계 도식 */
.step-flow { display: flex; flex-direction: column; gap: 8px; margin: 16px 0; }
.step-item {
  background: var(--surface-alt); border-left: 4px solid var(--yellow);
  padding: 10px 14px; border-radius: 0 10px 10px 0;
  font-size: 14px; font-weight: 650; color: var(--text);
}
.tag-row { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0 4px; }
.tag-pill {
  font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px;
  background: var(--surface-alt); color: var(--text-2);
}

/* 1분 심리테스트 */
.quiz-box {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 20px; padding: 24px; box-shadow: var(--shadow-md);
  margin-top: 14px;
}
.quiz-prog-row { display: flex; justify-content: space-between; font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 8px; }
.quiz-prog-track { height: 8px; border-radius: 999px; background: var(--surface-alt); overflow: hidden; margin-bottom: 18px; }
.quiz-prog-fill { height: 100%; background: var(--yellow); transition: width 0.2s ease; }
.quiz-q { font-size: 20px; font-weight: 850; letter-spacing: -0.02em; margin-bottom: 16px; line-height: 1.38; }
.quiz-opts { display: flex; flex-direction: column; gap: 10px; }
.quiz-opt {
  width: 100%; text-align: left; font: inherit; font-size: 15px; font-weight: 650;
  padding: 15px 18px; border-radius: 14px; cursor: pointer;
  background: var(--surface-alt); border: 1.5px solid transparent; color: var(--text);
  transition: border-color 0.12s ease, transform 0.1s ease;
}
.quiz-opt:hover { border-color: var(--accent); transform: translateY(-1px); }
.quiz-result-head {
  padding: 18px; border-radius: 16px; background: var(--yellow-soft); margin-bottom: 16px;
}
.quiz-result-head .badge { position: static; margin-bottom: 8px; }
.quiz-result-head h2 { margin: 4px 0 6px; font-size: 22px; }
.quiz-result-head p { margin: 0; color: var(--text-2); font-size: 14.5px; }
.quiz-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.btn-sec {
  display: inline-flex; align-items: center; gap: 6px; text-decoration: none;
  font-weight: 750; font-size: 14px; padding: 11px 18px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer;
}
.btn-sec:hover { border-color: var(--accent); }
.doc .lead-p { font-size: 16.5px; color: var(--text); font-weight: 600; margin-bottom: 14px; }
.doc .gap-sm, .article-grid.gap-sm { margin-top: 14px; }

/* 3모드 테마 토글 버튼 */
.theme-btn { white-space: nowrap; font-size: 12.5px; padding: 0 11px; }

/* 오늘의 10초 AI 용어 띠 */
.glossary-strip { padding: 4px 0 8px; }
.glossary-card {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 14px 18px; box-shadow: var(--shadow-sm);
}
.glossary-main { flex: 1 1 360px; display: flex; flex-direction: column; gap: 4px; }
.glossary-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.glossary-term { font-size: 15.5px; font-weight: 850; color: var(--accent-text); letter-spacing: -0.02em; }
.glossary-one { font-size: 14px; font-weight: 600; color: var(--text); margin: 0; }
.glossary-analogy { font-size: 13px; color: var(--text-2); margin: 0; }
.glossary-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.btn-mini {
  font: inherit; font-size: 12.5px; font-weight: 750; cursor: pointer;
  padding: 7px 12px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface-alt); color: var(--text);
}
.btn-mini:hover { border-color: var(--accent); color: var(--accent-text); }

/* 놀이터 스탬프 여권 바 */
.stamp-wrap { padding: 8px 0 14px; }
.stamp-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 12px 16px; box-shadow: var(--shadow-sm);
}
.stamp-head { display: flex; flex-direction: column; gap: 2px; }
.stamp-head strong { font-size: 14px; font-weight: 850; color: var(--text); }
.stamp-sub { font-size: 12.5px; color: var(--muted); }
.stamp-unlock { font-size: 12.5px; font-weight: 750; color: var(--yellow-text); }
.stamp-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.stamp-chip {
  text-decoration: none; font-size: 12.5px; font-weight: 700;
  padding: 5px 11px; border-radius: 999px;
  background: var(--surface-alt); border: 1px solid var(--border); color: var(--text-2);
}
.stamp-chip:hover { border-color: var(--accent); color: var(--text); }
.stamp-chip.is-done {
  background: var(--yellow-soft); border-color: var(--yellow); color: var(--yellow-text);
}
