/* ─── MysticPaws · Celestial Paws 메인 페이지 ───────────────
   DESIGN.md 기반 — Glassmorphism + Tactile Celestialism
   Cosmic Indigo(#6b46c1) · Doge Gold(#e9c349) · Midnight(#111224)
──────────────────────────────────────────────────────────── */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #111224;
  --surface-low: #191a2d;
  --surface: #1d1e31;
  --surface-high: #27283c;
  --glass: rgba(29, 30, 49, 0.4);
  --glass-strong: rgba(29, 30, 49, 0.7);
  --primary: #d0bcff;
  --primary-container: #6b46c1;
  --on-primary-container: #e1d2ff;
  --gold: #e9c349;
  --gold-soft: #f6e098;
  --on-gold: #241a00;
  --text: #e1e0fb;
  --text-soft: #cbc3d5;
  --outline: rgba(148, 142, 158, 0.28);
  --outline-strong: rgba(208, 188, 255, 0.35);
  --gold-line: rgba(233, 195, 73, 0.45);
  --font-serif: "Playfair Display", "Song Myung", "Apple SD Gothic Neo", serif;
  --font-body: "Gowun Dodum", "Plus Jakarta Sans", "Apple SD Gothic Neo", sans-serif;
  --font-mono: "Space Mono", monospace;
  --rad: 1rem;
  --rad-xl: 1.5rem;
  --glow-gold: 0 0 20px rgba(212, 175, 55, 0.35);
  --glow-purple: 0 0 15px rgba(208, 188, 255, 0.25);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  padding-bottom: 110px; /* 하단 네비 공간 */
  background:
    radial-gradient(ellipse 90% 55% at 50% -10%, #2c2158 0%, transparent 60%),
    radial-gradient(circle at 50% 40%, #1d1e31 0%, transparent 70%),
    radial-gradient(1px 1px at 22% 28%, rgba(225, 224, 251, 0.5), transparent),
    radial-gradient(1px 1px at 70% 16%, rgba(233, 195, 73, 0.45), transparent),
    radial-gradient(1px 1px at 42% 64%, rgba(225, 224, 251, 0.3), transparent),
    radial-gradient(1.5px 1.5px at 88% 48%, rgba(208, 188, 255, 0.4), transparent),
    radial-gradient(1px 1px at 12% 82%, rgba(233, 195, 73, 0.3), transparent),
    var(--bg);
}

.hidden { display: none !important; }

/* ── 떠오르는 파티클 ── */
.particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.particle {
  position: absolute;
  bottom: -24px;
  animation: rise linear forwards;
}
@keyframes rise {
  from { transform: translateY(0) rotate(0deg); opacity: 0.8; }
  to   { transform: translateY(-110vh) rotate(360deg); opacity: 0; }
}

/* ── 상단 앱바 ── */
.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 50;
  height: 64px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  background: rgba(29, 30, 49, 0.35);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 0 10px rgba(208, 188, 255, 0.25);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-container);
  border: 1px solid rgba(208, 188, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.brand-avatar img { width: 80%; height: 80%; }
.brand-name {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.02em;
}
.brand-name .gold { color: var(--gold); }
.energy-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(50, 51, 71, 0.4);
  border: 1px solid var(--outline);
  padding: 6px 14px;
  border-radius: 999px;
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--primary);
  transition: transform 0.2s ease, background 0.2s ease;
}
.energy-chip:hover { background: rgba(50, 51, 71, 0.7); }
.energy-chip:active { transform: scale(0.95); }

main, .hero, footer { position: relative; z-index: 1; }

/* ── 히어로 ── */
.hero {
  padding: 96px 20px 0;
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}
.mascot-orb {
  position: relative;
  width: 216px;
  height: 216px;
  margin: 20px auto 0;
  border-radius: 50%;
  border: 4px solid rgba(233, 195, 73, 0.4);
  padding: 6px;
  background: rgba(29, 30, 49, 0.3);
  backdrop-filter: blur(4px);
  box-shadow: var(--glow-gold);
}
.mascot-orb::before {
  content: "";
  position: absolute;
  top: -48px;
  left: 50%;
  transform: translateX(-50%);
  width: 260px;
  height: 260px;
  background: rgba(208, 188, 255, 0.1);
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
}
.mascot-orb-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  background: radial-gradient(circle at 50% 35%, #3b2a6b 0%, #1d1e31 80%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.mascot-orb-inner img {
  width: 74%;
  height: 74%;
  transition: transform 0.5s ease;
}
.mascot-orb:hover .mascot-orb-inner img { transform: scale(1.1); }
.orb-float {
  position: absolute;
  font-size: 28px;
  animation: coin-float 3s ease-in-out infinite;
  filter: drop-shadow(0 0 6px rgba(233, 195, 73, 0.5));
}
.orb-float.f1 { top: -8px; right: -6px; }
.orb-float.f2 { top: 48%; left: -26px; font-size: 22px; animation-delay: 0.5s; }
.orb-float.f3 { bottom: -6px; right: 14px; font-size: 19px; animation-delay: 1.2s; }
@keyframes coin-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-10px) rotate(6deg); }
}

.reader-chip {
  display: inline-block;
  margin-top: 26px;
  padding: 8px 24px;
  border-radius: 999px;
  background: rgba(175, 141, 17, 0.2);
  border: 1px solid rgba(233, 195, 73, 0.5);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--gold);
  text-transform: uppercase;
}
.hero-title {
  margin-top: 14px;
  font-family: var(--font-serif);
  font-size: clamp(40px, 9vw, 52px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--primary);
  text-shadow: 0 0 28px rgba(208, 188, 255, 0.4);
}
.hero-title .gold {
  color: var(--gold);
  text-shadow: 0 0 28px rgba(233, 195, 73, 0.4);
}
.glow-divider {
  width: 96px;
  height: 2px;
  margin: 18px auto;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
  opacity: 0.6;
}
.hero-sub {
  color: var(--text-soft);
  font-size: clamp(14px, 2.6vw, 17px);
  line-height: 1.7;
}
.hero-doge {
  display: inline-block;
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--text-soft);
  border: 1px dashed var(--outline);
  border-radius: 999px;
  padding: 7px 18px;
}
.home-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
}
.home-nav a {
  font-size: 13px;
  color: var(--text-soft);
  text-decoration: none;
  background: var(--glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--outline);
  border-radius: 999px;
  padding: 8px 18px;
  transition: transform 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.home-nav a:hover {
  transform: translateY(-2px);
  border-color: var(--outline-strong);
  color: var(--primary);
}

main {
  max-width: 560px;
  margin: 0 auto;
  padding: 40px 20px 40px;
}

.section-title {
  text-align: center;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(22px, 4.5vw, 28px);
  margin-bottom: 8px;
  color: var(--primary);
}
.section-guide {
  text-align: center;
  color: var(--text-soft);
  font-size: 14px;
  margin-bottom: 24px;
}

/* ── 모드 선택 — 세로 스택 글래스 카드 ── */
.mode-select { margin-bottom: 48px; }
.mode-buttons {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 20px;
}
.mode-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  text-align: left;
  padding: 22px 24px;
  cursor: pointer;
  color: var(--text);
  font-family: var(--font-body);
  background: rgba(29, 30, 49, 0.45);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--outline-strong);
  border-radius: var(--rad-xl);
  transition: transform 0.2s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.mode-btn:hover {
  transform: translateY(-4px);
  border-color: var(--gold-line);
  box-shadow: 0 0 22px rgba(233, 195, 73, 0.25);
}
.mode-btn:active { transform: translateY(-1px) scale(0.98); }
.mode-body { display: flex; flex-direction: column; gap: 6px; }
.mode-name {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--gold);
}
.mode-desc { font-size: 13.5px; line-height: 1.6; color: var(--text-soft); }
.mode-illust {
  width: 84px;
  height: 84px;
  flex-shrink: 0;
  border-radius: var(--rad);
  padding: 8px;
  background: rgba(107, 70, 193, 0.18);
  border: 1px solid rgba(208, 188, 255, 0.2);
}

/* ── 카드 스프레드 ── */
.spread { margin-bottom: 48px; }
.spread-style {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.spread-style button {
  background: transparent;
  border: 1px solid var(--outline);
  color: var(--text-soft);
  font-family: var(--font-body);
  font-size: 12.5px;
  border-radius: 999px;
  padding: 7px 16px;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.spread-style button:hover { transform: translateY(-2px); }
.spread-style button.active {
  border-color: var(--gold-line);
  color: var(--gold);
  background: rgba(233, 195, 73, 0.08);
}
.spread-count {
  text-align: center;
  color: var(--text-soft);
  font-size: 14px;
  margin-bottom: 24px;
}
.deck {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  perspective: 1200px;
  margin-bottom: 30px;
}
.card {
  width: 64px;
  height: 100px;
  cursor: pointer;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.65s cubic-bezier(0.4, 0.1, 0.2, 1);
  border-radius: 12px;
}
.card:not(.flipped):hover { transform: translateY(-10px) rotate(-3deg); }
.card.flipped { transform: rotateY(180deg); cursor: default; }
.card.dimmed { opacity: 0.3; pointer-events: none; transition: opacity 0.4s ease; }
.card-face {
  position: absolute;
  inset: 0;
  border-radius: 12px;
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.card-back-face {
  background: linear-gradient(160deg, #2a2150 0%, #14132b 100%);
  border: 1.5px solid var(--gold-line);
  box-shadow: 0 8px 20px rgba(5, 4, 18, 0.5);
}
.card-back-img { width: 58%; height: auto; }
.card-back-face::after {
  content: "✦";
  position: absolute;
  bottom: 8px;
  font-size: 11px;
  color: var(--gold);
  opacity: 0.85;
}
.card-front-face {
  transform: rotateY(180deg);
  background: linear-gradient(160deg, #f9f5ff 0%, #ece2ff 100%);
  border: 1.5px solid var(--primary);
  color: #4a3d6b;
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.55);
  padding: 8px;
  text-align: center;
}
.card-front-face .card-illust { width: 46px; height: 46px; }
.card-front-face .card-no {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 1.5px;
  margin-top: 4px;
  color: #8a7fb0;
}
.card-front-face .card-name {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 9px;
  margin-top: 2px;
  line-height: 1.3;
  color: #6b46c1;
}

/* 부채꼴 스프레드 */
.deck.fan {
  display: block;
  position: relative;
  height: 440px;
}
.deck.fan .card {
  position: absolute;
  left: calc(50% - 32px);
  top: 12px;
  transform-origin: 50% 620px;
  transform: rotate(calc(var(--fa) * 52deg));
}
.deck.fan .card:not(.flipped):hover {
  transform: rotate(calc(var(--fa) * 52deg)) translateY(-18px);
  z-index: 20;
}
.deck.fan .card.flipped {
  transform: rotate(calc(var(--fa) * 52deg)) rotateY(180deg) translateY(-14px);
  z-index: 10;
}

/* 셔플 딜링 */
.deck.deal .card {
  width: 84px;
  height: 132px;
  animation: deal-in 0.5s cubic-bezier(0.34, 1.4, 0.64, 1) backwards;
}
@keyframes deal-in {
  from {
    transform: translateY(-160px) rotate(540deg) scale(0.25);
    opacity: 0;
  }
}

/* ── 결과 ── */
.result { margin-bottom: 48px; }
.result-mascot { text-align: center; margin-bottom: 16px; }
.result-mascot img {
  width: 100px;
  height: 100px;
  animation: pop-in 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.reading {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}
.reading-card {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: rgba(29, 30, 49, 0.45);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--outline-strong);
  border-radius: var(--rad-xl);
  padding: 22px 24px;
  animation: pop-in 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.reading-card:nth-child(2) { border-color: var(--gold-line); animation-delay: 0.12s; }
.reading-card:nth-child(3) { border-color: rgba(193, 199, 207, 0.35); animation-delay: 0.24s; }
@keyframes pop-in {
  from { opacity: 0; transform: translateY(18px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.reading-illust {
  width: 66px;
  height: 66px;
  flex-shrink: 0;
  border-radius: var(--rad);
  padding: 8px;
  background: rgba(107, 70, 193, 0.18);
  border: 1px solid rgba(208, 188, 255, 0.2);
}
.reading-body { flex: 1; }
.reading-slot {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--on-primary-container);
  background: var(--primary-container);
  border-radius: 999px;
  padding: 4px 14px;
}
.reading-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 19px;
  color: var(--text);
  margin: 10px 0 8px;
}
.reading-text { font-size: 15px; line-height: 1.8; color: var(--text); }
.reading-keywords { margin-top: 12px; display: flex; gap: 8px; flex-wrap: wrap; }
.keyword {
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 999px;
  color: var(--text-soft);
  border: 1px solid var(--outline);
  background: rgba(25, 26, 45, 0.5);
}
.fortune-summary {
  text-align: center;
  background: rgba(29, 30, 49, 0.45);
  backdrop-filter: blur(20px);
  border: 1px dashed var(--gold-line);
  border-radius: var(--rad-xl);
  padding: 22px;
  margin-bottom: 28px;
  font-size: 15px;
  line-height: 1.9;
}
.fortune-summary .lucky {
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--gold);
}

/* ── 럭키 ── */
.doge { margin-bottom: 48px; }
.doge-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  margin-bottom: 32px;
}
.doge-face {
  background: rgba(29, 30, 49, 0.45);
  border: 3px solid rgba(233, 195, 73, 0.4);
  border-radius: 50%;
  padding: 20px;
  box-shadow: var(--glow-gold);
  animation: doge-bounce 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.doge-face img { width: 108px; height: 108px; display: block; }
@keyframes doge-bounce {
  0%   { transform: scale(0.3) rotate(-16deg); opacity: 0; }
  60%  { transform: scale(1.15) rotate(6deg); }
  100% { transform: scale(1) rotate(0); opacity: 1; }
}
.doge-bubble {
  position: relative;
  max-width: 520px;
  background: rgba(29, 30, 49, 0.55);
  backdrop-filter: blur(20px);
  border: 1px solid var(--gold-line);
  color: var(--text);
  border-radius: var(--rad-xl);
  padding: 22px 28px;
  font-size: 16px;
  line-height: 1.8;
  text-align: center;
  animation: bubble-pop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.doge-bubble::before {
  content: "";
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  border: 11px solid transparent;
  border-bottom-color: var(--gold-line);
  border-top: none;
}
@keyframes bubble-pop {
  from { transform: scale(0.7); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
.doge-lucky {
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--gold);
  font-size: 14px;
  border: 1px dashed var(--gold-line);
  border-radius: 999px;
  padding: 9px 22px;
}
.doge .ghost-btn { margin-top: 12px; }

/* ── 버튼 ── */
.primary-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  font-family: var(--font-serif);
  font-weight: 700;
  background: linear-gradient(to right, var(--gold), var(--gold-soft), var(--gold));
  color: var(--on-gold);
  font-size: 19px;
  border: none;
  border-radius: 999px;
  padding: 16px 42px;
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease;
  box-shadow: 0 0 25px rgba(233, 195, 73, 0.3);
}
.primary-btn:hover { filter: brightness(1.1); transform: translateY(-2px); }
.primary-btn:active { transform: scale(0.95); }
.ghost-btn {
  display: block;
  margin: 14px auto 0;
  background: transparent;
  border: 1px solid var(--outline);
  color: var(--text-soft);
  font-family: var(--font-body);
  font-size: 13px;
  border-radius: 999px;
  padding: 9px 24px;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.ghost-btn:hover { border-color: var(--outline-strong); color: var(--primary); transform: translateY(-2px); }

/* ── 본문 텍스트 · 글래스 패널 ── */
.learn { margin-top: 56px; }
.prose {
  background: rgba(29, 30, 49, 0.45);
  backdrop-filter: blur(20px);
  border: 1px solid var(--outline);
  border-radius: var(--rad-xl);
  padding: 26px 28px;
  margin-bottom: 12px;
  font-size: 15px;
  line-height: 1.9;
  color: var(--text);
}
.prose p { margin-bottom: 14px; }
.prose p:last-child { margin-bottom: 0; }
.prose ol { margin: 0 0 0 20px; }
.prose li { margin-bottom: 10px; }
.prose a { color: var(--primary); }
.prose strong { color: var(--gold); font-weight: 600; }
.intro-text .section-title { margin-top: 36px; }
.intro-text .section-title:first-child { margin-top: 0; }

.learn-intro {
  text-align: center;
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.8;
  margin: 0 auto 26px;
}
.learn-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.learn-card {
  display: block;
  text-decoration: none;
  color: var(--text);
  background: rgba(29, 30, 49, 0.45);
  backdrop-filter: blur(20px);
  border: 1px solid var(--outline);
  border-radius: var(--rad-xl);
  padding: 20px 22px;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.2s ease;
}
.learn-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold-line);
  box-shadow: 0 0 18px rgba(233, 195, 73, 0.18);
}
.learn-name {
  display: block;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 6px;
  color: var(--primary);
}
.learn-desc {
  display: block;
  font-size: 13px;
  color: var(--text-soft);
  line-height: 1.7;
}

/* ── FAQ ── */
.faq details {
  margin-bottom: 10px;
  background: rgba(29, 30, 49, 0.45);
  backdrop-filter: blur(20px);
  border: 1px solid var(--outline);
  border-radius: var(--rad);
  overflow: hidden;
}
.faq summary {
  cursor: pointer;
  font-size: 15px;
  color: var(--text);
  padding: 16px 22px;
  list-style: none;
}
.faq summary::before { content: "🐾 "; }
.faq summary::-webkit-details-marker { display: none; }
.faq details[open] { border-color: var(--outline-strong); }
.faq details[open] summary { color: var(--primary); }
.faq details p {
  padding: 0 22px 18px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-soft);
}
.faq details a { color: var(--primary); }

/* ── 푸터 ── */
footer {
  text-align: center;
  padding: 34px 20px 46px;
  color: var(--text-soft);
  font-size: 14px;
}
.footer-mascots img { width: 110px; height: auto; opacity: 0.95; }
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 20px;
  margin: 10px 0 14px;
}
.footer-nav a {
  color: var(--text-soft);
  text-decoration: none;
  font-size: 13px;
}
.footer-nav a:hover { color: var(--primary); text-decoration: underline; }
footer p:first-of-type { font-family: var(--font-serif); font-weight: 700; color: var(--text); }
.footer-small { margin-top: 6px; font-size: 12px; }

/* ── 하단 네비게이션 ── */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 50;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(29, 30, 49, 0.35);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 0.75rem 0.75rem 0 0;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
}
.bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  text-decoration: none;
  color: var(--text-soft);
  opacity: 0.75;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.bottom-nav a:hover { opacity: 1; }
.bottom-nav a:active { transform: scale(0.9); }
.bottom-nav .nav-icon { font-size: 21px; line-height: 1; }
.bottom-nav .nav-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.bottom-nav a.active {
  opacity: 1;
  background: var(--primary-container);
  color: var(--on-primary-container);
  border-radius: 999px;
  padding: 5px 18px;
  box-shadow: 0 0 15px #d4af37;
}

/* ── 모바일 ── */
@media (max-width: 540px) {
  .brand-name { font-size: 21px; }
  .mascot-orb { width: 180px; height: 180px; }
  .deck { gap: 7px; }
  .card { width: 44px; height: 68px; border-radius: 10px; }
  .card-face { border-radius: 10px; }
  .deck.fan { height: 250px; }
  .deck.fan .card {
    left: calc(50% - 22px);
    transform-origin: 50% 400px;
    transform: rotate(calc(var(--fa) * 32deg));
  }
  .deck.fan .card:not(.flipped):hover { transform: rotate(calc(var(--fa) * 32deg)) translateY(-14px); }
  .deck.fan .card.flipped { transform: rotate(calc(var(--fa) * 32deg)) rotateY(180deg) translateY(-10px); }
  .deck.deal .card { width: 60px; height: 94px; }
  .card-front-face .card-illust { width: 34px; height: 34px; }
  .card-front-face .card-no,
  .card-front-face .card-name { display: none; }
  .reading-card { padding: 16px; gap: 12px; }
  .reading-illust { width: 52px; height: 52px; }
  .doge-face img { width: 84px; height: 84px; }
  .mode-illust { width: 68px; height: 68px; }
}
