/* ============================================================
   Sakura Design System — 일본어 학습 사이트
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;700&family=Noto+Serif+JP:wght@400;700&family=Noto+Sans+KR:wght@300;400;500;700&display=swap');

/* ── 디자인 토큰 ── */
:root {
  --pink:       #e8a0b4;
  --pink-light: #fde8ef;
  --pink-dark:  #c4607e;
  --navy:       #1a1f3c;
  --navy-mid:   #2d3561;
  --cream:      #fdf8f5;
  --white:      #ffffff;
  --text:       #2c2c3e;
  --muted:      #8a8a9a;
  --border:     #ede0e6;
  --gold:       #d4a853;
  --gold-light: #fff3cc;
  --green:      #4a7c59;
  --green-light:#eef4f0;
  --radius-sm:  8px;
  --radius-md:  12px;
  --radius-lg:  16px;
  --radius-xl:  24px;
  --shadow-sm:  0 1px 4px rgba(0,0,0,.06);
  --shadow-md:  0 4px 16px rgba(0,0,0,.08);
  --shadow-lg:  0 8px 32px rgba(0,0,0,.12);
  --transition: .15s ease;
}

/* ── 리셋 & 베이스 ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans KR', 'Noto Sans JP', sans-serif;
  background: var(--cream);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { max-width: 100%; }

/* ── 헤더 / 네비게이션 ── */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 200;
  box-shadow: 0 1px 8px rgba(200,100,130,.07);
}
.header-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 0 24px;
  display: flex; align-items: center; gap: 20px;
  height: 64px;
}
.site-logo {
  font-family: 'Noto Serif JP', serif;
  font-size: 22px; font-weight: 700;
  color: var(--navy); letter-spacing: 2px;
  display: flex; align-items: center; gap: 6px;
  flex-shrink: 0;
}
.site-logo .dot { color: var(--pink-dark); }
.site-nav { display: flex; gap: 2px; flex: 1; align-items: center; }
.nav-item { position: relative; }
.nav-link {
  padding: 6px 16px; border-radius: var(--radius-xl);
  font-size: 14px; font-weight: 400; color: var(--muted);
  transition: all var(--transition);
  display: inline-flex; align-items: center; gap: 5px;
  cursor: pointer; text-decoration: none;
}
.nav-link:hover  { color: var(--navy); background: var(--pink-light); }
.nav-link.active { color: var(--pink-dark); background: var(--pink-light); font-weight: 700; }
.nav-link.has-submenu::after {
  content: '▾'; font-size: 9px; margin-left: 2px;
  opacity: .55; transition: transform .15s;
}
.nav-item:hover .nav-link.has-submenu::after { transform: rotate(180deg); }
.nav-link .soon {
  font-size: 9px; background: var(--border); color: var(--muted);
  padding: 1px 5px; border-radius: 4px; letter-spacing: .3px;
}

/* ── 하위 메뉴 ── */
.nav-submenu {
  position: absolute; top: calc(100% + 4px); left: 0;
  min-width: 200px;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-md); box-shadow: var(--shadow-lg);
  padding: 6px; z-index: 300;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .15s, transform .15s, visibility .15s;
}
.nav-submenu::before {
  content: ''; position: absolute;
  top: -8px; left: 0; right: 0; height: 8px;
}
.nav-item:hover > .nav-submenu,
.nav-item:focus-within > .nav-submenu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.nav-submenu a {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px;
  font-size: 13px; font-weight: 400; color: var(--text);
  border-radius: 6px; text-decoration: none;
  white-space: nowrap; transition: background .12s, color .12s;
}
.nav-submenu a:hover {
  background: var(--pink-light); color: var(--pink-dark);
}
.nav-submenu a.active {
  background: var(--pink-light); color: var(--pink-dark); font-weight: 700;
}
.nav-submenu a .ico {
  font-size: 15px; width: 20px; text-align: center;
  flex-shrink: 0;
}
.nav-submenu a .soon {
  margin-left: auto; font-size: 9px;
  background: var(--border); color: var(--muted);
  padding: 1px 6px; border-radius: 4px;
}
.nav-submenu .nav-sep {
  height: 1px; background: var(--border); margin: 4px 6px;
}
.nav-submenu .nav-sub-label {
  font-size: 10px; color: var(--muted); font-weight: 700;
  padding: 6px 12px 2px; letter-spacing: .5px;
}
.header-right { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.streak-badge {
  display: flex; align-items: center; gap: 4px;
  background: var(--gold-light); border: 1px solid #f0c84a;
  border-radius: var(--radius-xl); padding: 4px 12px;
  font-size: 13px; font-weight: 700; color: #b8860b;
}
.user-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--pink-dark), var(--navy-mid));
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 14px; font-weight: 700; cursor: pointer;
}

/* ── 페이지 컨테이너 ── */
.page-wrap { max-width: 1200px; margin: 0 auto; padding: 32px 24px; }

/* ── 히어로 배너 ── */
.hero-banner {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 60%, #3d4a8a 100%);
  color: white; padding: 48px 24px; position: relative; overflow: hidden;
}
.hero-banner::before {
  content: 'さ き ら は な';
  position: absolute; right: 4%; top: 50%; transform: translateY(-50%);
  font-family: 'Noto Serif JP', serif;
  font-size: 80px; font-weight: 700;
  color: rgba(255,255,255,.04); letter-spacing: 16px;
  pointer-events: none;
}
.hero-inner      { max-width: 1200px; margin: 0 auto; }
.hero-greeting   { font-size: 13px; color: var(--pink); margin-bottom: 8px; letter-spacing: .5px; }
.hero-title      { font-size: 30px; font-weight: 700; margin-bottom: 10px; line-height: 1.35; }
.hero-sub        { font-size: 14px; color: rgba(255,255,255,.6); margin-bottom: 28px; }
.hero-stats      { display: flex; gap: 16px; flex-wrap: wrap; }
.stat-pill {
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius-md); padding: 12px 20px; text-align: center; min-width: 96px;
}
.stat-pill .val  { font-size: 22px; font-weight: 700; color: var(--pink); }
.stat-pill .lbl  { font-size: 11px; color: rgba(255,255,255,.55); margin-top: 2px; }

/* ── 카드 ── */
.card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.card-header {
  padding: 16px 22px 13px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.card-title { font-size: 15px; font-weight: 700; color: var(--navy); }
.card-body  { padding: 20px 22px; }

/* ── 배지 / 칩 ── */
.badge {
  display: inline-flex; align-items: center;
  font-size: 11px; font-weight: 700; padding: 3px 10px;
  border-radius: var(--radius-xl); letter-spacing: .3px;
}
.badge-pink  { background: var(--pink-light);  color: var(--pink-dark); }
.badge-navy  { background: #e8eaf6;            color: var(--navy-mid); }
.badge-gold  { background: var(--gold-light);  color: #9a6c00; }
.badge-green { background: var(--green-light); color: var(--green); }

/* ── 진행 바 ── */
.prog-bar {
  height: 5px; border-radius: 3px;
  background: var(--border); overflow: hidden;
}
.prog-fill {
  height: 100%; border-radius: 3px;
  background: var(--pink-dark); transition: width .4s ease;
}
.prog-fill.navy   { background: var(--navy-mid); }
.prog-fill.gold   { background: var(--gold); }
.prog-fill.green  { background: var(--green); }

/* ── 버튼 ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 22px; border-radius: var(--radius-xl);
  font-size: 14px; font-weight: 700; cursor: pointer; border: none;
  transition: all var(--transition); letter-spacing: .2px;
}
.btn-primary { background: var(--pink-dark); color: white; }
.btn-primary:hover { background: #a84e6a; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-navy    { background: var(--navy); color: white; }
.btn-navy:hover    { background: var(--navy-mid); transform: translateY(-1px); }
.btn-outline { background: transparent; border: 2px solid var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: white; }
.btn-ghost   { background: var(--pink-light); color: var(--pink-dark); }
.btn-ghost:hover   { background: var(--pink); color: white; }
.btn-sm { padding: 6px 14px; font-size: 12px; border-radius: var(--radius-md); }
.btn-lg { padding: 13px 30px; font-size: 16px; }

/* ── 히라가나/가타카나 셀 ── */
.kana-cell {
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  cursor: pointer; transition: all var(--transition);
  background: var(--white); padding: 4px; aspect-ratio: 1;
}
.kana-cell:hover {
  border-color: var(--pink); background: var(--pink-light);
  transform: translateY(-2px); box-shadow: 0 4px 10px rgba(200,100,130,.15);
}
.kana-cell.learned { background: var(--navy); border-color: var(--navy); }
.kana-cell.learned .kana-jp { color: white; }
.kana-cell.learned .kana-ko { color: rgba(255,255,255,.6); }
.kana-cell.in-progress { background: var(--pink-light); border-color: var(--pink); }
.kana-cell .kana-jp {
  font-family: 'Noto Serif JP', serif; font-size: 18px;
  font-weight: 700; line-height: 1; color: var(--text);
}
.kana-cell .kana-ko { font-size: 9px; color: var(--muted); margin-top: 2px; }

/* ── 미션 아이템 ── */
.mission-item {
  border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 14px 16px; display: flex; align-items: center; gap: 14px;
  cursor: pointer; transition: all var(--transition); color: inherit;
}
.mission-item:hover { border-color: var(--pink); background: var(--pink-light); }
.mission-icon {
  width: 46px; height: 46px; border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; flex-shrink: 0;
}
.mission-icon.pink  { background: var(--pink-light); }
.mission-icon.navy  { background: #e8eaf6; }
.mission-icon.gold  { background: var(--gold-light); }
.mission-icon.green { background: var(--green-light); }
.mission-info { flex: 1; min-width: 0; }
.mission-name { font-size: 14px; font-weight: 700; color: var(--navy); }
.mission-desc { font-size: 12px; color: var(--muted); margin-top: 2px; }
.mission-prog { margin-top: 6px; }
.mission-prog-label { font-size: 10px; color: var(--muted); margin-top: 2px; }

/* ── 레벨 카드 ── */
.level-card {
  padding: 20px 22px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  color: white; border-radius: var(--radius-lg);
}
.level-top   { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.level-icon  { font-size: 30px; }
.level-label { font-size: 10px; color: rgba(255,255,255,.55); }
.level-name  { font-size: 18px; font-weight: 700; color: var(--pink); }
.level-xp-bar { height: 6px; border-radius: 3px; background: rgba(255,255,255,.15); overflow: hidden; }
.level-xp-fill { height: 100%; border-radius: 3px; background: var(--pink); }
.level-xp-text { font-size: 11px; color: rgba(255,255,255,.5); margin-top: 6px; text-align: right; }

/* ── 달력 스트릭 ── */
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-day {
  aspect-ratio: 1; border-radius: 6px; background: var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; color: var(--muted);
}
.cal-day.done  { background: var(--pink-dark); color: white; }
.cal-day.today { background: var(--navy); color: white; font-weight: 700; }

/* ── 링 차트 ── */
.ring-wrap { position: relative; width: 100px; height: 100px; }
.ring-wrap svg { transform: rotate(-90deg); }
.ring-bg  { fill: none; stroke: var(--border); stroke-width: 8; }
.ring-fg  { fill: none; stroke: var(--pink-dark); stroke-width: 8; stroke-linecap: round; stroke-dasharray: 251.2; }
.ring-text {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  text-align: center;
}
.ring-pct { font-size: 20px; font-weight: 700; color: var(--navy); line-height: 1; }
.ring-sub { font-size: 10px; color: var(--muted); }

/* ── 게임 공통 ── */
.game-wrap {
  min-height: calc(100vh - 64px);
  display: flex; flex-direction: column;
  align-items: center; padding: 24px;
  gap: 20px;
}
.game-header {
  width: 100%; max-width: 640px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.game-title  { font-size: 20px; font-weight: 700; color: var(--navy); }
.game-score-bar {
  display: flex; align-items: center; gap: 16px;
}
.score-item { text-align: center; }
.score-val  { font-size: 22px; font-weight: 700; color: var(--navy); line-height: 1; }
.score-lbl  { font-size: 10px; color: var(--muted); margin-top: 1px; }

/* 게임 카드 (대형 문자 표시) */
.game-card {
  width: 100%; max-width: 400px;
  background: var(--white); border: 2px solid var(--border);
  border-radius: 24px; padding: 40px 32px;
  text-align: center; box-shadow: var(--shadow-lg);
  transition: all var(--transition);
}
.game-kana {
  font-family: 'Noto Serif JP', serif;
  font-size: 120px; font-weight: 700; line-height: 1;
  color: var(--navy); user-select: none;
}
.game-hint { font-size: 14px; color: var(--muted); margin-top: 8px; }

/* 정답 버튼 그리드 */
.answer-grid {
  width: 100%; max-width: 400px;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.answer-btn {
  padding: 16px 12px; border-radius: var(--radius-md);
  font-size: 22px; font-weight: 700;
  border: 2px solid var(--border); background: var(--white);
  cursor: pointer; transition: all var(--transition);
  color: var(--text);
}
.answer-btn:hover     { border-color: var(--pink); background: var(--pink-light); transform: translateY(-2px); }
.answer-btn.correct   { border-color: var(--green); background: var(--green-light); color: var(--green); }
.answer-btn.incorrect { border-color: #e53e3e; background: #fff5f5; color: #e53e3e; }
.answer-btn:disabled  { cursor: default; transform: none; }

/* 결과 화면 */
.result-screen {
  width: 100%; max-width: 400px; text-align: center;
  background: var(--white); border-radius: 24px;
  padding: 48px 32px; box-shadow: var(--shadow-lg);
}
.result-emoji  { font-size: 64px; margin-bottom: 16px; }
.result-title  { font-size: 26px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.result-score  { font-size: 48px; font-weight: 700; color: var(--pink-dark); line-height: 1; }
.result-sub    { font-size: 14px; color: var(--muted); margin-top: 8px; margin-bottom: 24px; }
.result-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ── 햄버거 버튼 (기본 데스크탑에서는 숨김) ── */
.nav-toggle {
  display: none;
  background: transparent; border: none;
  width: 40px; height: 40px; padding: 0;
  flex-direction: column; align-items: center; justify-content: center;
  gap: 5px; cursor: pointer;
  margin-left: 6px;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--navy); border-radius: 1px;
  transition: transform .25s, opacity .15s;
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* 모바일 드로워 백드롭 */
.nav-backdrop {
  display: none;
  position: fixed; inset: 64px 0 0 0;
  background: rgba(26,31,60,.4);
  z-index: 199;
  opacity: 0; transition: opacity .2s;
}
.nav-backdrop.open { display: block; opacity: 1; }
body.nav-open { overflow: hidden; }

/* ── 반응형 ── */

/* 태블릿 / 작은 데스크탑 */
@media (max-width: 1024px) {
  .header-inner { padding: 0 18px; }
  .page-wrap, .hira-section, .vocab-section { padding: 24px 18px; }
}

/* 모바일: 햄버거 + 풀스크린 드로워 */
@media (max-width: 860px) {
  .nav-toggle { display: flex; }

  .site-nav {
    display: none;
    position: fixed; top: 64px; left: 0; right: 0; bottom: 0;
    flex-direction: column; align-items: stretch;
    background: var(--white);
    padding: 12px 14px 80px;
    overflow-y: auto; -webkit-overflow-scrolling: touch;
    z-index: 220;
    border-top: 1px solid var(--border);
    gap: 4px;
  }
  .site-nav.open { display: flex; }

  .nav-item { width: 100%; position: static; }
  .nav-link {
    width: 100%; padding: 12px 14px;
    font-size: 15px; font-weight: 700; color: var(--navy);
    border-radius: 10px; justify-content: flex-start;
    background: var(--cream);
  }
  .nav-link.active { background: var(--pink-light); }
  .nav-link.has-submenu::after { content: '▾'; margin-left: auto; opacity: .55; }
  .nav-item:hover .nav-link.has-submenu::after { transform: none; } /* 호버 회전 없음 */

  .nav-submenu {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: none; background: transparent;
    padding: 4px 0 10px 8px; margin: 0;
    min-width: 0;
  }
  .nav-submenu::before { display: none; }
  .nav-submenu a {
    padding: 10px 14px; font-size: 14px;
    border-radius: 8px;
  }
  .nav-submenu a:hover { background: var(--pink-light); }

  /* 모바일에서는 hover로 안 열고 항상 펼친 상태 (드로워 자체가 메뉴) */
  .nav-item:hover .nav-submenu,
  .nav-item:focus-within .nav-submenu {
    opacity: 1; visibility: visible; transform: none;
  }

  /* 헤더 우측: 스트릭 배지 글자 줄임, 아바타는 유지 */
  .streak-badge { font-size: 11px; padding: 3px 9px; }
  .header-right { gap: 8px; }

  /* 페이지 공통 */
  .page-wrap, .hira-section, .vocab-section { padding: 20px 14px; }
  .hero-banner { padding: 28px 16px; }
  .hero-title  { font-size: 20px; line-height: 1.4; }
  .hero-sub    { font-size: 13px; }
  .hero-stats  { gap: 8px; }
  .stat-pill   { padding: 9px 14px; min-width: 0; flex: 1; }
  .stat-pill .val { font-size: 18px; }
  .stat-pill .lbl { font-size: 10px; }

  /* 2단 그리드는 모두 단일 컬럼 */
  .page-grid-2 { grid-template-columns: 1fr !important; }

  /* 인라인 스타일로 박힌 그리드 패턴 모두 단일 컬럼화 */
  [style*="grid-template-columns:1fr 320px"],
  [style*="grid-template-columns:1fr 340px"],
  [style*="grid-template-columns: 1fr 320px"],
  [style*="grid-template-columns: 1fr 340px"] {
    grid-template-columns: 1fr !important;
  }

  /* 카드 헤더 줄바꿈 */
  .card-header, .table-section-head, .kana-table-header, .word-table-head { flex-wrap: wrap; gap: 8px; padding: 14px 16px; }
  .scope-head, .quiz-header, .flash-header, .mem-header, .rd-header, .ls-header, .fall-hud { flex-wrap: wrap; gap: 10px; }

  /* 가나 셀 살짝 축소 */
  .kana-cell .kana-jp { font-size: 16px; }

  /* 게임 카드 / 버튼 폭 */
  .game-card, .answer-grid, .opts-grid { max-width: 100%; }

  /* 버튼 터치 영역 */
  .btn { padding: 11px 22px; min-height: 42px; }
  .btn-sm { padding: 8px 14px; min-height: 36px; }
}

/* 작은 폰 */
@media (max-width: 480px) {
  .site-logo { font-size: 19px; letter-spacing: 1px; }
  .hero-title { font-size: 18px; }
  .hero-banner::before { display: none; }   /* 배경 워터마크 가리기 */

  /* 스탯 4개 → 2x2 */
  .hero-stats { display: grid; grid-template-columns: 1fr 1fr; }

  /* 게임 큰 글자 축소 */
  .game-kana { font-size: 72px; }

  /* 푸터 패딩 축소 */
  .site-footer { padding: 28px 18px 20px; }
  .footer-text { font-size: 12px; line-height: 1.75; }
  .footer-title { font-size: 12px; }

  /* 홈 페이지 가나 미니 그리드 10열 → 5열 */
  #kana-grid-home { grid-template-columns: repeat(5, 1fr) !important; }

  /* 히라가나/가타카나 표 셀 축소 */
  .kana-cell-lg { min-width: 46px; width: auto; height: 50px; padding: 3px; }
  .kana-cell-lg .kc-jp { font-size: 17px; }
  .kana-cell-lg.long .kc-jp { font-size: 12px; }
  .kana-cell-lg .kc-ko { font-size: 9px; }
  .kana-row-group { padding: 8px 10px; gap: 4px; flex-wrap: wrap; }
  .row-label-badge { width: 28px; min-width: 28px; height: 28px; font-size: 11px; }

  /* 짝맞추기 카드 더 작게 */
  .mem-card .m-text { font-size: 18px; }
  .mem-card.is-ko .m-text { font-size: 14px; }

  /* 플래시카드 (가나) */
  .flip-scene { width: 280px; height: 200px; }
  .flip-front .kana-big { font-size: 84px; }
  .flip-back .reading { font-size: 44px; }

  /* 짝맞추기 그리드는 JS로 4~8열 설정 → 모바일에선 4열로 통일 */
  #mem-grid { grid-template-columns: repeat(4, 1fr) !important; }

  /* 타임어택 / 낙하 / 퀴즈 옵션 버튼 글자 축소 */
  .opt-btn, .sp-btn, .fall-btn { font-size: 14px; padding: 14px 8px; }
  .opt-btn .opt-word, .sp-btn .sp-word-text, .fall-btn .fb-word-text { font-size: 18px; }
}

/* 매우 좁은 화면 */
@media (max-width: 360px) {
  .header-right .streak-badge { display: none; }
  .site-logo { font-size: 18px; }
}

/* ── 사이트 푸터 ── */
.site-footer {
  background: var(--white);
  border-top: 1px solid var(--border);
  margin-top: 56px;
  padding: 36px 24px 28px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.footer-section { display: flex; flex-direction: column; gap: 8px; }
.footer-title {
  font-size: 13px; font-weight: 700; color: var(--navy);
  display: flex; align-items: center; gap: 6px;
}
.footer-text {
  font-size: 12.5px; color: var(--text); opacity: .75;
  line-height: 1.85; margin: 0; max-width: none;
}
.footer-text a { color: var(--pink-dark); text-decoration: none; border-bottom: 1px dashed var(--pink); }
.footer-text a:hover { color: #a84e6a; }
.footer-meta {
  margin-top: 6px; padding-top: 16px; border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px;
}
.footer-meta .logo-mini {
  font-family: 'Noto Serif JP', serif; font-size: 15px; font-weight: 700;
  color: var(--navy); letter-spacing: 2px;
}
.footer-meta .logo-mini .dot { color: var(--pink-dark); }
.footer-meta .footer-tagline {
  font-size: 11px; color: var(--muted); letter-spacing: .3px;
}

/* ── 애니메이션 ── */
@keyframes fadeIn    { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes shake     { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
@keyframes pop       { 0% { transform: scale(1); } 50% { transform: scale(1.12); } 100% { transform: scale(1); } }
@keyframes slideUp   { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.anim-fade   { animation: fadeIn .25s ease both; }
.anim-shake  { animation: shake .3s ease both; }
.anim-pop    { animation: pop .25s ease both; }
.anim-slide  { animation: slideUp .35s ease both; }
