/* ============================================================
   뉴톡 — Mobile-first styles (max-width: 480px)
   ============================================================ */

:root {
  --bg:       #FAFAF7;
  --surface:  #FFFFFF;
  --surface-2:#F4F2EC;

  --ink:      #0F1419;
  --ink-2:    #5B6470;
  --ink-3:    #9AA0AA;
  --line:     #ECE8DE;
  --line-2:   #E2DED3;

  --primary:       #FF5A1F;
  --primary-soft:  #FFF2EC;
  --primary-ink:   #C43E0A;

  --c-science:     #2563EB;
  --c-economy:     #D97706;
  --c-current:     #DC2626;
  --c-environment: #059669;
  --c-culture:     #7C3AED;

  --r-lg: 20px;
  --r:    14px;
  --r-sm: 10px;

  --shadow-sm: 0 2px 6px rgba(15,20,25,0.05);
  --shadow:    0 8px 24px rgba(15,20,25,0.08);
  --shadow-md: 0 16px 40px rgba(15,20,25,0.10);
  --shadow-lg: 0 24px 60px rgba(15,20,25,0.12);

  --font-sans: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont,
               system-ui, 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* ==========================================================
   MOBILE FRAME — body가 모바일 폭에 고정됨
   데스크탑에선 가운데 정렬된 "폰 모크업" 처럼 보임
   ========================================================== */
html {
  background: #E4DFD2;
  min-height: 100vh;
}

body {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--bg);
  position: relative;
  font-family: var(--font-sans);
  color: var(--ink);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'ss01', 'ss02';
  letter-spacing: -0.01em;
  /* 하단 sticky 광고 자리 확보 */
  padding-bottom: 72px;
}

@media (min-width: 560px) {
  body {
    box-shadow: 0 0 0 1px var(--line),
                0 30px 100px rgba(15,20,25,0.12);
  }
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.wrap {
  padding: 0 20px;
  margin: 0;
}

/* ============================================
   TOPBAR
   ============================================ */
.topbar {
  background: rgba(250, 250, 247, 0.92);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
}
.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  flex-shrink: 0;
  object-fit: cover;
  display: block;
  box-shadow: 0 2px 6px rgba(15,20,25,0.08);
  background: var(--surface);
}
.brand-stack {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  min-width: 0;
  flex: 1 1 auto;
}
.brand-name {
  font-weight: 900;
  font-size: 19px;
  letter-spacing: -0.04em;
  color: var(--ink);
}
.brand-name span { color: var(--primary); }
.brand-tagline {
  font-size: 10px;
  font-weight: 600;
  color: var(--ink-3);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.date-pill {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--ink-2);
  padding: 5px 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  white-space: nowrap;
}

/* ============================================
   HERO
   ============================================ */
.hero {
  padding: 48px 0 8px;
  position: relative;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.hero-eyebrow::before {
  content: '';
  width: 7px;
  height: 7px;
  background: var(--primary);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(1.3); }
}
.hero-title {
  font-size: 40px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.045em;
  color: var(--ink);
  word-break: keep-all;
  text-wrap: balance;
}
.hero-title .accent {
  background: linear-gradient(120deg, var(--primary) 0%, #FF8A3D 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  margin-top: 18px;
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.75;
  font-weight: 500;
  word-break: keep-all;
}

/* 히어로 우측 플로팅 사용법 카드 */
.hero-inner {
  position: relative;
}
.hero-guide-link {
  position: absolute;
  top: 20px;
  right: 38px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 94px;
  height: 94px;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: 20px;
  text-align: center;
  color: var(--ink);
  box-shadow: 0 8px 20px rgba(15, 20, 25, 0.08);
  transition: background 0.25s, border-color 0.25s, color 0.25s, box-shadow 0.25s;
  z-index: 3;
  animation: guideFloat 4s ease-in-out infinite;
  will-change: transform;
}
.hero-guide-link:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  box-shadow: 0 18px 32px rgba(255, 90, 31, 0.28);
  animation-play-state: paused;
}

@keyframes guideFloat {
  0%   { transform: translateY(0) rotate(-1.2deg); }
  25%  { transform: translateY(-4px) rotate(0.6deg); }
  50%  { transform: translateY(-8px) rotate(1.2deg); }
  75%  { transform: translateY(-4px) rotate(0.6deg); }
  100% { transform: translateY(0) rotate(-1.2deg); }
}

/* 아이콘은 살짝 다른 박자로 움직여서 더 생동감 */
.hero-guide-icon {
  animation: guideIconWiggle 2.4s ease-in-out infinite;
  transform-origin: center bottom;
}
@keyframes guideIconWiggle {
  0%, 100% { transform: rotate(-6deg) scale(1); }
  50%      { transform: rotate(6deg) scale(1.08); }
}
.hero-guide-icon {
  font-size: 28px;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(15, 20, 25, 0.1));
}
.hero-guide-text {
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.02em;
  word-break: keep-all;
}
.hero-guide-arrow { display: none; }

/* 제목만 카드랑 안 겹치게 오른쪽 여유 확보 — sub는 카드 아래 영역이라 필요없음 */
.hero-title {
  padding-right: 148px;
}

@media (max-width: 400px) {
  .hero-guide-link {
    top: 48px;
    right: 28px;
    width: 84px;
    height: 84px;
    border-radius: 18px;
  }
  .hero-guide-icon { font-size: 24px; }
  .hero-guide-text { font-size: 10.5px; }
  .hero-title { padding-right: 128px; }
}

/* ============================================
   KOREAN TEXT WRAPPING — 전체 기본값
   ============================================ */
.card-title,
.card-summary,
.article-title,
.article-subtitle,
.article-lead,
.article-subheading,
.article-paragraph,
.info-box-title,
.info-box-body,
.outro-message,
.outro-title,
.outro-desc,
.guide-h1,
.guide-h2,
.guide-lead,
.guide-card p {
  word-break: keep-all;
  overflow-wrap: break-word;
}
.article-title,
.hero-title,
.outro-message,
.info-box-title,
.card-title {
  text-wrap: balance;
}

/* ============================================
   DATE TAB BAR
   ============================================ */
.datebar {
  border-top: 1px solid var(--line);
}
.datebar-inner {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 0 8px 24px;
  padding-right: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.datebar-inner::-webkit-scrollbar { display: none; }
.datebar-inner > .date-tab:last-child {
  margin-right: 24px;
}
.date-tab {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  background: transparent;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  transition: all 0.18s;
  white-space: nowrap;
  flex-shrink: 0;
}
.date-tab:hover {
  border-color: var(--ink-3);
  color: var(--ink);
}
.date-tab.active {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
  font-weight: 700;
}

/* ============================================
   CATEGORY BAR
   ============================================ */
.catbar {
  position: sticky;
  top: 63px;
  background: rgba(250, 250, 247, 0.92);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  z-index: 50;
}
.catbar .catbar-inner {
  display: flex;
  gap: 6px;
  padding-top: 12px;
  padding-bottom: 12px;
  padding-left: 24px;
  padding-right: 0;         /* overflow-x 스크롤 컨테이너에선 padding-right 무시되는 브라우저 있음 */
  overflow-x: auto;
  scrollbar-width: none;
}
/* 우측 여백은 마지막 버튼에 margin 으로 확실히 — 스크롤 중에도 유지됨 */
.catbar .catbar-inner > .cat-btn:last-child {
  margin-right: 24px;
}
.catbar-inner::-webkit-scrollbar { display: none; }
.cat-btn {
  padding: 8px 14px;
  background: transparent;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  transition: all 0.18s;
  white-space: nowrap;
  flex-shrink: 0;
}
.cat-btn:hover {
  background: var(--surface);
  color: var(--ink);
}
.cat-btn.active {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}

/* ============================================
   MAIN GRID (1-col always on mobile)
   ============================================ */
.main { padding: 28px 0 60px; }

.grid {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* ============================================
   CARD
   ============================================ */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  display: flex;
  flex-direction: column;
  color: inherit;
}
.card:active {
  transform: scale(0.98);
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.card-thumb {
  aspect-ratio: 5 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.card-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 25%, rgba(255,255,255,0.5), transparent 55%);
  pointer-events: none;
}
.card-emoji {
  font-size: 78px;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 6px 12px rgba(15, 20, 25, 0.15));
}
/* 실제 썸네일 이미지 — 파일 로드 실패 시 onerror 로 .card-emoji 로 폴백 */
.card-thumb-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 1;
}
.card-date {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 11px;
  background: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
  z-index: 3;
  box-shadow: 0 2px 6px rgba(15, 20, 25, 0.08);
}
.card-views {
  position: absolute;
  bottom: 12px;
  right: 12px;
  padding: 5px 11px;
  background: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-2);
  letter-spacing: 0.02em;
  z-index: 3;
  box-shadow: 0 2px 6px rgba(15, 20, 25, 0.08);
}
.card-body {
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.card-cat {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.card-title {
  font-size: 17px;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: -0.025em;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-summary {
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Category colors */
.cat-science     { color: var(--c-science); }
.cat-economy     { color: var(--c-economy); }
.cat-current     { color: var(--c-current); }
.cat-environment { color: var(--c-environment); }
.cat-culture     { color: var(--c-culture); }

.empty-state {
  padding: 48px 20px;
  text-align: center;
  background: var(--surface);
  border: 1px dashed var(--line-2);
  border-radius: var(--r-lg);
  color: var(--ink-3);
  font-size: 14px;
}

/* ============================================
   AD SLOTS
   ============================================ */
.ad-slot {
  position: relative;
  background:
    repeating-linear-gradient(
      45deg,
      #F6F3EC,
      #F6F3EC 10px,
      #F0ECE2 10px,
      #F0ECE2 20px
    );
  border: 1.5px dashed var(--line-2);
  border-radius: var(--r-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--ink-3);
  text-align: center;
  padding: 28px 20px;
}
.ad-slot::before {
  content: 'AD · 광고';
  position: absolute;
  top: 10px;
  left: 14px;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--ink-2);
  background: rgba(255,255,255,0.9);
  padding: 3px 9px;
  border-radius: 999px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.ad-slot-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-2);
  margin-top: 6px;
}
.ad-slot-size {
  font-size: 10.5px;
  font-family: 'SF Mono', Menlo, monospace;
  color: var(--ink-3);
  margin-top: 3px;
  letter-spacing: 0.05em;
}

.ad-banner {
  aspect-ratio: 16/5;
  min-height: 100px;
  margin: 18px 0 4px;
}
.ad-native {
  aspect-ratio: 5/3;
  min-height: 180px;
}
.ad-rect {
  aspect-ratio: 6/5;
  min-height: 250px;
  margin: 32px 0;
}

/* Sticky bottom ad */
.ad-sticky {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  background: rgba(255,255,255,0.97);
  border-top: 1px solid var(--line);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  z-index: 90;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 60px;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.06);
}
.ad-sticky-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding-left: 4px;
}
.ad-sticky-label {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--ink-3);
  text-transform: uppercase;
  margin-bottom: 2px;
}
.ad-sticky-text {
  font-size: 12px;
  color: var(--ink-2);
  font-weight: 600;
}
.ad-sticky-size {
  font-size: 10px;
  color: var(--ink-3);
  font-family: monospace;
}
.ad-sticky-close {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--ink-2);
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-weight: 700;
}
.ad-sticky.closed { display: none; }

/* ============================================
   ARTICLE DETAIL PAGE
   ============================================ */
.article-main { padding: 24px 0 80px; }
.article-wrap { padding: 0 20px; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  margin-bottom: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2);
  transition: all 0.2s;
}
.back-link:hover {
  border-color: var(--ink);
  color: var(--ink);
  transform: translateX(-2px);
}
.back-arrow { font-weight: 700; }

.article-category {
  display: inline-block;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.article-title {
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.22;
  color: var(--ink);
  margin-bottom: 12px;
}
.article-subtitle {
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-2);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.article-lead {
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  font-weight: 500;
  margin: 0 0 28px;
  padding: 20px 22px;
  background: var(--surface-2);
  border-left: 3px solid var(--primary);
  border-radius: 0 var(--r) var(--r) 0;
}

/* Byline */
.byline {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.byline-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FFFFFF 0%, #F4F2EC 100%);
  border: 2px solid var(--line);
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(15,20,25,0.08);
}
.byline-avatar svg {
  width: 76px;
  height: auto;
  display: block;
  margin-top: -4px;
}
.byline-avatar img.character-img,
.byline-avatar video.character-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
}
/* 비디오 캐릭터 래퍼가 byline에 들어올 때 */
.byline-avatar .character-media {
  width: 100%;
  height: 100%;
}
.byline-avatar .character-media .character-still,
.byline-avatar .character-media .character-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
}
.byline-info { display: flex; flex-direction: column; gap: 3px; }
.byline-name { font-size: 16px; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; }
.byline-date { font-size: 12.5px; color: var(--ink-3); font-weight: 500; }

/* Article hero image */
.article-hero {
  margin: 0 0 32px;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
}
.article-hero-emoji {
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 120px;
  position: relative;
}
.article-hero-emoji::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 25%, rgba(255,255,255,0.45), transparent 55%);
  pointer-events: none;
}
/* 실제 히어로 이미지 — 없으면 .article-hero-emoji 로 폴백 */
.article-hero-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 360px;
  object-fit: cover;
}
.article-hero-caption {
  padding: 12px 18px;
  background: var(--surface);
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--ink-3);
  text-align: center;
  font-weight: 500;
}

/* Article body */
.article-body {
  font-size: 16.5px;
  line-height: 1.92;
  color: var(--ink);
}
.article-subheading {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.35;
  color: var(--ink);
  margin: 36px 0 14px;
}
.article-subheading:first-child { margin-top: 0; }
.article-paragraph { margin-bottom: 18px; }

/* ============================================
   3D INFO BOXES (trivia / logic)
   ============================================ */
.info-box {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px 24px 28px;
  margin: 36px 0 36px;
  box-shadow: var(--shadow-lg);
}
.info-box.trivia-box {
  background: linear-gradient(180deg, #FFF9EC 0%, #FFF4D8 100%);
  border: 1px solid #FFE8A8;
}
.info-box.logic-box {
  background: linear-gradient(180deg, #F0F7FF 0%, #E6F0FE 100%);
  border: 1px solid #C5D9F7;
}

/* 인포 박스에선 캐릭터/말풍선 제거 — 깔끔하게 */
.info-box-char,
.info-box-bubble { display: none; }

@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50%      { transform: translateY(-6px) rotate(2deg); }
}

.info-box-label {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 11px;
  background: var(--ink);
  color: white;
  border-radius: 999px;
  margin-bottom: 12px;
}
.info-box.logic-box .info-box-label { background: var(--c-science); }
.info-box-title {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.35;
  color: var(--ink);
  margin-bottom: 10px;
}
.info-box-body {
  font-size: 14.5px;
  line-height: 1.78;
  color: var(--ink-2);
}

.logic-question {
  font-size: 15.5px;
  line-height: 1.7;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 16px;
  word-break: keep-all;
}

/* ===== 객관식 선택지 ===== */
.logic-options {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.logic-options li { margin: 0; }

.logic-option {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 16px;
  background: rgba(255, 255, 255, 0.7);
  border: 1.5px solid rgba(37, 99, 235, 0.18);
  border-radius: var(--r);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  line-height: 1.55;
  transition: all 0.18s;
  word-break: keep-all;
}
.logic-option:hover:not(.correct):not(.wrong):not(.dimmed) {
  background: white;
  border-color: var(--c-science);
  transform: translateX(2px);
}
.logic-option-num {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--c-science);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  margin-top: 1px;
}
.logic-option-text { flex: 1; }

/* 공개된 상태 */
.logic-options.revealed .logic-option { cursor: default; }
.logic-option.correct {
  background: #E6F9EE;
  border-color: #10B981;
  color: #065F46;
}
.logic-option.correct .logic-option-num {
  background: #10B981;
}
.logic-option.wrong {
  background: #FEF2F2;
  border-color: #EF4444;
  color: #991B1B;
}
.logic-option.wrong .logic-option-num {
  background: #EF4444;
}
.logic-option.dimmed {
  opacity: 0.45;
}

/* 정답 해설 박스 */
.logic-result {
  margin-top: 8px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.85);
  border-radius: var(--r);
  border-left: 3px solid var(--c-science);
  animation: fadeInUp 0.3s ease-out;
}
.logic-result.hidden { display: none; }
.logic-verdict {
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.02em;
  margin-bottom: 8px;
}
.logic-verdict.is-correct { color: #10B981; }
.logic-verdict.is-wrong { color: #DC2626; }
.logic-explanation {
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink);
  font-weight: 500;
  word-break: keep-all;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* 기존 오픈형 fallback (옵션 없는 경우만) */
.logic-answer {
  background: rgba(255, 255, 255, 0.7);
  border-radius: var(--r);
  padding: 12px 16px;
  border: 1px solid rgba(37, 99, 235, 0.2);
}
.logic-answer summary {
  cursor: pointer;
  font-weight: 800;
  font-size: 12.5px;
  color: var(--c-science);
  letter-spacing: 0.04em;
  list-style: none;
}
.logic-answer summary::-webkit-details-marker { display: none; }
.logic-answer summary::before {
  content: '▸ ';
  font-size: 11px;
}
.logic-answer[open] summary::before { content: '▾ '; }
.logic-answer p {
  margin-top: 10px;
  font-size: 14px;
  color: var(--ink);
  font-weight: 600;
}

/* ============================================
   OUTRO
   ============================================ */
.article-outro {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
  margin: 72px 0 32px;
  padding: 52px 28px 44px;
  background: linear-gradient(180deg, #FFF2EC 0%, #FFE4D6 100%);
  border-radius: var(--r-lg);
  border: 1px solid #FFD0B8;
  isolation: isolate;
}
.outro-char {
  width: 220px;
  aspect-ratio: 1 / 1;
  position: relative;
  animation: bob 3.2s ease-in-out infinite;
  /* darken이 multiply보다 근접백색(off-white) 제거에 더 효과적 */
  mix-blend-mode: darken;
}
/* 비디오 래퍼가 outro에 들어올 때 — 정사각형 꽉 채우고 물체비 유지 */
.outro-char .character-media {
  width: 100%;
  height: 100%;
}
.outro-char .character-media .character-still,
.outro-char .character-media .character-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* 레터박스(검정 띠) 방지 — 비디오 비율 불일치 시 크롭 */
  /* 근접백색(예: #FAF8F2)을 순백으로 밀어내서 darken이 깔끔하게 처리하게 함 */
  filter: contrast(1.08) brightness(1.04);
}
.outro-char svg,
.outro-char img.character-img {
  display: block;
  width: 100%;
  height: auto;
}
.outro-signoff {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 340px;
}
.outro-message {
  font-size: 17px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.55;
  letter-spacing: -0.025em;
}
.outro-credit {
  font-size: 12.5px;
  color: var(--primary-ink);
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* ============================================
   ARTICLE NAV
   ============================================ */
.article-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 28px;
}
.nav-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: all 0.2s;
  min-height: 72px;
}
.nav-item:hover:not(.nav-empty) {
  border-color: var(--ink);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.nav-empty { display: none; }
.nav-next { align-items: flex-end; text-align: right; }
.nav-dir {
  font-size: 11px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.nav-t {
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.4;
  letter-spacing: -0.02em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-bottom-cta {
  margin-top: 36px;
  text-align: center;
}
.cta-btn {
  display: inline-block;
  padding: 13px 28px;
  background: var(--ink);
  color: white;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 700;
  transition: all 0.2s;
}
.cta-btn:hover {
  background: var(--primary);
  transform: translateY(-2px);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  border-top: 1px solid var(--line);
  padding: 36px 0 48px;
  background: var(--surface);
  text-align: center;
}
.footer .brand-small {
  font-weight: 900;
  font-size: 16px;
  letter-spacing: -0.04em;
  margin-bottom: 8px;
  color: var(--ink);
}
.footer .brand-small span { color: var(--primary); }
.footer .mini {
  font-size: 12.5px;
  color: var(--ink-2);
  line-height: 1.7;
}
.footer .mini.faint {
  color: var(--ink-3);
  font-size: 11px;
  margin-top: 4px;
}

/* Character image/video 공통 */
.character-img {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
}

/* ===== 비디오 캐릭터 — PNG 위에 비디오 페이드인 ===== */
.character-media {
  position: relative;
  display: block;
  width: 100%;
  line-height: 0;
  pointer-events: none;
}
.character-media .character-still {
  display: block;
  width: 100%;
  height: auto;
  position: relative;
  z-index: 1;
}
.character-media .character-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
  background: transparent;
  opacity: 0;
  transition: opacity 0.5s ease-out;
  outline: none;
}
.character-media .character-video.is-ready {
  opacity: 1;
}

/* 비디오 컨트롤 숨김 */
.character-media .character-video::-webkit-media-controls,
.character-media .character-video::-webkit-media-controls-panel,
.character-media .character-video::-webkit-media-controls-play-button,
.character-media .character-video::-webkit-media-controls-start-playback-button {
  display: none !important;
  -webkit-appearance: none;
}

/* ============================================
   INLINE ARTICLE MEDIA (image / video)
   ============================================ */
.article-inline-media {
  margin: 32px 0;
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.article-inline-media img,
.article-inline-media video {
  width: 100%;
  height: auto;
  display: block;
  background: var(--surface);
}
.article-inline-media figcaption {
  padding: 12px 18px;
  background: var(--surface-2);
  font-size: 12.5px;
  color: var(--ink-2);
  text-align: center;
  border-top: 1px solid var(--line);
  line-height: 1.55;
  word-break: keep-all;
}

/* 이미지 로드 전/실패 시 폴백 — 깔끔한 단색 배경 */
.article-inline-image-placeholder {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #FAF8F2 0%, #F0ECE0 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--ink-3);
  padding: 24px;
}
.article-inline-image-placeholder .emoji {
  font-size: 64px;
  filter: drop-shadow(0 4px 8px rgba(15, 20, 25, 0.08));
}
.article-inline-image-placeholder .label {
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  word-break: keep-all;
  max-width: 80%;
  color: var(--ink-2);
}
.article-inline-image-placeholder .hint {
  font-size: 10.5px;
  color: var(--ink-3);
  opacity: 0.5;
  font-family: 'SF Mono', Menlo, monospace;
}

/* ============================================
   INTERACTIVE TERM TOOLTIPS
   ============================================ */
.term {
  color: var(--primary-ink);
  background: var(--primary-soft);
  border-bottom: 1.5px dashed var(--primary);
  padding: 1px 4px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 700;
  transition: all 0.15s;
  display: inline;
}
.term::after {
  content: '?';
  display: inline-block;
  margin-left: 3px;
  width: 13px;
  height: 13px;
  line-height: 13px;
  text-align: center;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  font-size: 9px;
  font-weight: 800;
  vertical-align: 1px;
}
.term:hover, .term:active, .term.active {
  background: var(--primary);
  color: white;
}
.term.active::after {
  background: white;
  color: var(--primary);
}

#termTooltip {
  position: fixed;
  background: var(--ink);
  color: white;
  padding: 12px 16px;
  border-radius: var(--r);
  font-size: 13.5px;
  line-height: 1.6;
  max-width: 260px;
  z-index: 200;
  box-shadow: 0 12px 32px rgba(0,0,0,0.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s;
  word-break: keep-all;
  font-weight: 500;
}
#termTooltip.show {
  opacity: 1;
  pointer-events: auto;
}
#termTooltip::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 6px solid var(--ink);
}
#termTooltip .term-word {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 4px;
  display: block;
}

/* ============================================
   KAKAO ADFIT 실제 광고 컨테이너
   ============================================ */
.kakao-ad-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 8px 0;
  width: 100%;
  overflow: hidden;
}
.kakao-ad-wrap .kakao_ad_area {
  max-width: 100%;
}

/* ============================================
   AD SLOTS (placeholder — 승인 대기 중인 유닛용)
   ============================================ */
.ad-slot {
  position: relative;
  background:
    repeating-linear-gradient(45deg,
      #F6F3EC 0, #F6F3EC 10px,
      #F0ECE2 10px, #F0ECE2 20px);
  border: 1.5px dashed var(--line-2);
  border-radius: var(--r-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--ink-3);
  text-align: center;
  padding: 32px 22px;
  margin: 8px 0;
}
.ad-slot::before {
  content: 'AD · 광고';
  position: absolute;
  top: 10px;
  left: 14px;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--ink-2);
  background: rgba(255,255,255,0.92);
  padding: 3px 9px;
  border-radius: 999px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.ad-slot-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-2);
}
.ad-slot-size {
  font-size: 10.5px;
  font-family: 'SF Mono', Menlo, monospace;
  color: var(--ink-3);
  margin-top: 4px;
  letter-spacing: 0.03em;
}
.ad-slot-note {
  font-size: 10.5px;
  color: var(--ink-3);
  margin-top: 10px;
  opacity: 0.8;
}
.ad-native   { min-height: 200px; aspect-ratio: 16/11; }
.ad-rect     { min-height: 250px; aspect-ratio: 6/5; }
.ad-banner   { aspect-ratio: 16/5; min-height: 100px; }

/* ============================================
   TOPBAR GUIDE LINK
   ============================================ */
.topbar-actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.topbar-actions .date-pill {
  font-size: 10.5px;
  padding: 5px 10px;
}
.guide-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--primary-ink);
  padding: 5px 10px;
  background: var(--primary-soft);
  border: 1px solid #FFD0B8;
  border-radius: 999px;
  white-space: nowrap;
  transition: all 0.2s;
}
.guide-link:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* ============================================
   KAKAO LOGIN BUTTON
   ============================================ */
.kakao-login-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-sans);
  font-size: 10.5px;
  font-weight: 700;
  color: #3C1E1E;
  padding: 5px 10px 5px 8px;
  background: #FEE500;
  border: 1px solid #E6CF00;
  border-radius: 999px;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.kakao-login-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}
.kakao-login-btn:active {
  transform: translateY(0);
}
.kakao-login-btn .kakao-icon {
  width: 14px;
  height: 14px;
  color: #3C1E1E;
  flex-shrink: 0;
}

/* ============================================
   USER MENU (logged-in state)
   ============================================ */
.user-menu {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 4px 4px 6px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  max-width: 180px;
}
.user-menu .user-avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.user-menu .user-nickname {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--ink);
  max-width: 72px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.user-menu .user-logout-btn {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 600;
  color: var(--ink-2);
  background: white;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 3px 8px;
  cursor: pointer;
  transition: all 0.15s;
}
.user-menu .user-logout-btn:hover {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}

/* ============================================
   WELCOME TOAST
   ============================================ */
.welcome-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(0);
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 440px;
  width: calc(100% - 32px);
  padding: 14px 16px 14px 14px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(15,20,25,0.18);
  animation: welcomeToastIn 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
.welcome-toast.closing {
  animation: welcomeToastOut 0.35s ease-in forwards;
}
@keyframes welcomeToastIn {
  from { opacity: 0; transform: translateX(-50%) translateY(20px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
@keyframes welcomeToastOut {
  from { opacity: 1; transform: translateX(-50%) translateY(0); }
  to   { opacity: 0; transform: translateX(-50%) translateY(20px); }
}
.welcome-toast-emoji {
  font-size: 28px;
  line-height: 1;
  flex-shrink: 0;
}
.welcome-toast-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}
.welcome-toast-body strong {
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
}
.welcome-toast-body span {
  font-size: 12px;
  color: var(--ink-2);
  line-height: 1.4;
}
.welcome-toast-close {
  width: 24px;
  height: 24px;
  border: none;
  background: transparent;
  font-size: 20px;
  line-height: 1;
  color: var(--ink-3);
  cursor: pointer;
  flex-shrink: 0;
  border-radius: 50%;
  transition: background 0.15s;
}
.welcome-toast-close:hover {
  background: var(--surface-2);
  color: var(--ink);
}

/* ============================================
   FOOTER NAV (legal links)
   ============================================ */
.footer-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 12px 0 6px;
}
.footer-nav a {
  font-size: 10.5px;
  font-weight: 500;
  color: var(--ink-3);
  text-decoration: none;
  padding: 2px 2px;
  letter-spacing: -0.005em;
  transition: color 0.15s;
}
.footer-nav a:hover {
  color: var(--primary);
}
.footer-nav .footer-sep {
  font-size: 9px;
  color: var(--line-2);
  user-select: none;
}

/* ============================================
   LEGAL PAGES (terms, privacy) — Editorial style
   ============================================ */
.legal-main {
  padding: 28px 0 96px;
  min-height: 60vh;
  background:
    radial-gradient(ellipse 80% 40% at 50% 0%, rgba(255,90,31,0.04) 0%, transparent 60%),
    var(--bg);
}
.legal-wrap {
  padding: 0 22px;
}

/* ---------- HEADER ---------- */
.legal-header {
  padding: 20px 0 28px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.legal-eyebrow {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 5px 11px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.legal-h1 {
  font-size: 32px;
  font-weight: 900;
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: -0.035em;
  margin-bottom: 12px;
  word-break: keep-all;
}
.legal-updated {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--ink-3);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}
.legal-updated::before {
  content: "●";
  color: var(--primary);
  font-size: 8px;
}

/* ---------- SECTIONS ---------- */
.legal-section {
  margin-bottom: 36px;
  counter-increment: legal-section-counter;
}
.legal-main {
  counter-reset: legal-section-counter;
}

/* Intro (first section with colored callout) */
.legal-intro {
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--ink-2);
  padding: 18px 20px;
  background: linear-gradient(135deg, var(--primary-soft) 0%, #FFF9F3 100%);
  border-radius: 14px;
  border: 1px solid #FFE0CC;
  word-break: keep-all;
  margin: 0;
}

/* H2: section title with big orange number */
.legal-h2 {
  position: relative;
  font-size: 18px;
  font-weight: 900;
  color: var(--ink);
  line-height: 1.35;
  letter-spacing: -0.025em;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--ink);
  word-break: keep-all;
}

/* H3: sub-section */
.legal-h3 {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--primary-ink);
  margin: 20px 0 10px;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.legal-h3::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 14px;
  background: var(--primary);
  border-radius: 2px;
}

/* Paragraph body */
.legal-section > p {
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--ink-2);
  margin-bottom: 10px;
  word-break: keep-all;
}

/* ---------- LISTS ---------- */
.legal-list {
  list-style: none;
  padding-left: 0;
  margin: 10px 0 0;
}
.legal-list > li {
  position: relative;
  padding: 10px 0 10px 26px;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--ink-2);
  word-break: keep-all;
  border-bottom: 1px dashed var(--line);
}
.legal-list > li:last-child {
  border-bottom: none;
}

/* Bullet list (ul) */
ul.legal-list > li::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 19px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
}

/* Numbered list (ol) */
ol.legal-list {
  counter-reset: legal-item-counter;
}
ol.legal-list > li {
  counter-increment: legal-item-counter;
  padding-left: 34px;
}
ol.legal-list > li::before {
  content: counter(legal-item-counter);
  position: absolute;
  left: 0;
  top: 11px;
  width: 22px;
  height: 22px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10.5px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.legal-list strong {
  color: var(--ink);
  font-weight: 800;
}

/* Sublist — indented dash style */
.legal-sublist {
  list-style: none;
  padding-left: 0;
  margin: 10px 0 2px 4px;
  background: var(--surface-2);
  border-radius: 10px;
  padding: 10px 14px;
}
.legal-sublist > li {
  position: relative;
  padding-left: 18px;
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--ink-2);
  margin-bottom: 6px;
  word-break: keep-all;
}
.legal-sublist > li:last-child {
  margin-bottom: 0;
}
.legal-sublist > li::before {
  content: "—";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--primary);
  font-weight: 800;
}

/* ---------- TABLE ---------- */
.legal-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-top: 14px;
  font-size: 12.5px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.legal-table th,
.legal-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
  line-height: 1.55;
  word-break: keep-all;
}
.legal-table th {
  background: var(--ink);
  color: white;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.legal-table tr:last-child td {
  border-bottom: none;
}
.legal-table td:first-child {
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}

/* ---------- FOOTER NAV (bottom of legal page) ---------- */
.legal-footer-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 48px;
  padding-top: 28px;
  border-top: 2px dashed var(--line);
  align-items: stretch;
}
.legal-nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 800;
  color: var(--ink-2);
  text-decoration: none;
  padding: 13px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: all 0.2s;
  letter-spacing: -0.005em;
}
.legal-nav-link:hover {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

/* ============================================
   CARD "읽음" BADGE (for article_views feature)
   ============================================ */
.card.card-read {
  position: relative;
}
.card-read-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  font-weight: 800;
  color: white;
  background: rgba(15, 20, 25, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 4px 8px 4px 6px;
  border-radius: 999px;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.card-read-badge::before {
  content: "✓";
  font-size: 11px;
  font-weight: 900;
  color: #6EE7B7;
}
.card.card-read .card-thumb-img,
.card.card-read .card-emoji {
  opacity: 0.78;
}

/* ============================================
   GUIDE PAGE
   ============================================ */
.guide-main { padding: 32px 0 80px; }
.guide-wrap { padding: 0 20px; }
.guide-hero {
  text-align: center;
  padding: 40px 20px 32px;
}
.guide-eyebrow {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.guide-h1 {
  font-size: 34px;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 14px;
}
.guide-lead {
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-2);
  max-width: 400px;
  margin: 0 auto;
}
.guide-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}
.guide-card.accent-parent { background: linear-gradient(180deg, #FFF9EC 0%, #FFF4D8 100%); border-color: #FFE8A8; }
.guide-card.accent-kid { background: linear-gradient(180deg, #F0F7FF 0%, #E6F0FE 100%); border-color: #C5D9F7; }
.guide-card.accent-tips { background: linear-gradient(180deg, #FFF2EC 0%, #FFE4D6 100%); border-color: #FFD0B8; }
.guide-h2 {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.guide-h2 .emoji { font-size: 24px; }
.guide-card ul { list-style: none; padding: 0; margin: 0; }
.guide-card li {
  padding: 10px 0;
  border-bottom: 1px dashed rgba(0,0,0,0.08);
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--ink);
  display: flex;
  gap: 10px;
  align-items: flex-start;
  word-break: keep-all;
}
.guide-card li:last-child { border-bottom: none; }
.guide-card li strong { font-weight: 800; color: var(--primary-ink); display: block; margin-bottom: 2px; }
.guide-bullet {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--ink);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  margin-top: 2px;
}
.guide-characters {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin: 24px 0 32px;
  flex-wrap: wrap;
}
.guide-character {
  width: 84px;
  height: 84px;
  filter: drop-shadow(0 12px 16px rgba(15,20,25,0.12));
  display: flex;
  align-items: center;
  justify-content: center;
}
.guide-character img,
.guide-character svg {
  width: 100%;
  height: auto;
  display: block;
}
.guide-character.emoji-placeholder {
  font-size: 56px;
  background: var(--surface);
  border: 2px dashed var(--line-2);
  border-radius: 50%;
  filter: none;
}
.guide-cta {
  text-align: center;
  margin-top: 32px;
}

/* ============================================
   TINY PHONE (< 360px, e.g., iPhone SE)
   ============================================ */
@media (max-width: 400px) {
  .info-box { min-height: 180px; padding: 24px 20px 26px; margin: 48px 0 36px; }
  .info-box.trivia-box { padding-right: 100px; }
  .info-box.logic-box  { padding-left: 100px; }
  .info-box-char { width: 150px; top: -68px; }
  .info-box.trivia-box .info-box-char { right: -8px; }
  .info-box.logic-box  .info-box-char { left: -8px; }
  .info-box.trivia-box .info-box-bubble { right: 118px; }
  .info-box.logic-box  .info-box-bubble { left: 118px; }
}

@media (max-width: 360px) {
  .hero-title { font-size: 34px; }
  .card-emoji { font-size: 68px; }
  .article-title { font-size: 26px; }
  .article-hero-emoji { height: 180px; font-size: 100px; }
  .byline-avatar { width: 64px; height: 64px; }
  .byline-avatar svg { width: 68px; }
  .info-box { min-height: 170px; padding: 22px 18px 24px; }
  .info-box.trivia-box { padding-right: 90px; }
  .info-box.logic-box  { padding-left: 90px; }
  .info-box-char { width: 130px; top: -60px; }
  .info-box.trivia-box .info-box-bubble { right: 102px; font-size: 11px; padding: 6px 12px; }
  .info-box.logic-box  .info-box-bubble { left: 102px; font-size: 11px; padding: 6px 12px; }
  .outro-char { width: 170px; }
  .outro-message { font-size: 16px; }
}
