@charset "utf-8";
/* ============================================================
   MINDY WORLD · 타로 심리 운세 놀이터
   공통 스타일시트 (외부 CDN 없이 시스템 폰트만 사용)
   ============================================================ */

:root {
  --night-0: #fff8fa;
  --night-1: #fff1f6;
  --night-2: #fdf2ff;
  --night-3: #f6ecff;
  --line: rgba(169, 140, 205, 0.22);
  --line-strong: rgba(169, 140, 205, 0.46);
  --gold: #c078a0;
  --gold-bright: #7c4fa6;
  --gold-deep: #d9a3bf;
  --rose: #ef9fba;
  --lilac: #a687d6;
  --cream: #463a52;
  --muted: #7f7189;
  --muted-dim: #a99bb2;
  --panel: rgba(255, 255, 255, 0.86);
  --radius-lg: 26px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --font-sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
    "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", "Noto Sans CJK KR",
    "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Nanum Myeongjo", NanumMyeongjo, "AppleMyungjo", "Apple SD Gothic Neo",
    "Noto Serif CJK KR", "Noto Sans CJK KR", "Batang", "BatangChe",
    "Palatino Linotype", "Times New Roman", serif;
  --shadow-soft: 0 22px 55px rgba(190, 150, 190, 0.18);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #fff8fa;
  color: var(--cream);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: -0.01em;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 640px at 8% -10%, rgba(255, 195, 218, 0.55), transparent 62%),
    radial-gradient(820px 600px at 96% 2%, rgba(206, 184, 250, 0.5), transparent 62%),
    radial-gradient(760px 560px at 50% 104%, rgba(255, 226, 201, 0.55), transparent 66%),
    linear-gradient(180deg, #fff9fb 0%, #fdf4ff 48%, #fff7f2 100%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.5;
  background-image: radial-gradient(rgba(190, 150, 205, 0.10) 1px, transparent 1px);
  background-size: 4px 4px;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--gold-bright);
  text-decoration: none;
  text-underline-offset: 3px;
}

a:hover {
  text-decoration: underline;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.32;
  letter-spacing: -0.015em;
}

p {
  margin: 0;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

[hidden] {
  display: none !important;
}

::selection {
  background: rgba(232, 201, 138, 0.3);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 10px 18px;
  background: var(--gold);
  color: #16112c;
  border-radius: 999px;
  font-weight: 700;
  transition: top 0.2s var(--ease);
}

.skip-link:focus {
  top: 14px;
}

.wrap {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.wrap-narrow {
  width: min(820px, calc(100% - 40px));
  margin-inline: auto;
}

/* ---------------- 상단 내비게이션 ---------------- */

.site-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  background: rgba(7, 6, 15, 0.55);
  border-bottom: 1px solid rgba(232, 201, 138, 0.1);
  backdrop-filter: blur(16px) saturate(130%);
  -webkit-backdrop-filter: blur(16px) saturate(130%);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}

.site-nav.is-scrolled {
  background: rgba(7, 6, 15, 0.86);
  border-color: rgba(232, 201, 138, 0.2);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--cream);
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  width: 38px;
  height: 38px;
  flex: none;
  color: var(--gold);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 1.06rem;
  letter-spacing: 0.02em;
  color: var(--gold-bright);
}

.brand-sub {
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted-dim);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 26px);
}

.nav-menu a {
  position: relative;
  padding: 6px 2px;
  color: var(--muted);
  font-size: 0.94rem;
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.nav-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  transform: scaleX(0.4);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}

.nav-menu a:hover,
.nav-menu a.is-active {
  color: var(--gold-bright);
  text-decoration: none;
}

.nav-menu a:hover::after,
.nav-menu a.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--gold);
}

.nav-toggle svg {
  width: 20px;
  height: 20px;
}

/* ---------------- 버튼 ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.96rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: transform 0.2s var(--ease), box-shadow 0.25s var(--ease),
    background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.2s var(--ease);
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-bright) 0%, var(--gold) 45%, var(--gold-deep) 100%);
  color: #221a35;
  box-shadow: 0 12px 30px rgba(232, 201, 138, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.btn-primary:hover {
  box-shadow: 0 16px 38px rgba(232, 201, 138, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--line-strong);
  color: var(--gold-bright);
}

.btn-ghost:hover {
  background: rgba(232, 201, 138, 0.1);
  border-color: var(--gold);
}

.btn-small {
  padding: 10px 18px;
  font-size: 0.86rem;
}

.btn-block {
  width: 100%;
}

.btn[disabled],
.btn[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* ---------------- 히어로 ---------------- */

.hero {
  position: relative;
  padding: calc(72px + clamp(46px, 8vw, 96px)) 0 clamp(56px, 8vw, 104px);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  width: 620px;
  height: 620px;
  right: -160px;
  top: -180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(185, 167, 232, 0.22), transparent 65%);
  filter: blur(10px);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  align-items: center;
  gap: clamp(30px, 5vw, 70px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}

.hero h1 {
  margin: 18px 0 20px;
  font-size: clamp(2.15rem, 5.4vw, 3.75rem);
  line-height: 1.24;
  color: #fffdf8;
  text-shadow: 0 6px 40px rgba(185, 167, 232, 0.25);
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(120deg, #f8e8c4 0%, #e8c98a 40%, #d8a9c4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  max-width: 47ch;
  color: var(--muted);
  font-size: clamp(0.98rem, 1.3vw, 1.06rem);
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
  margin-top: 34px;
  color: var(--muted-dim);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

.hero-facts li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero-facts li::before {
  content: "✦";
  color: var(--gold-deep);
  font-size: 0.72rem;
}

/* 히어로 카드 비주얼 */

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 430px;
}

.hero-moon {
  position: absolute;
  width: clamp(220px, 30vw, 320px);
  height: clamp(220px, 30vw, 320px);
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 252, 240, 0.96) 0%, rgba(246, 227, 184, 0.72) 26%,
      rgba(214, 186, 214, 0.28) 48%, rgba(120, 98, 180, 0.12) 66%, transparent 72%);
  box-shadow: 0 0 90px rgba(246, 227, 184, 0.28), 0 0 180px rgba(150, 120, 220, 0.25);
  filter: blur(0.4px);
  animation: moon-breathe 9s ease-in-out infinite;
}

.hero-moon::after {
  content: "";
  position: absolute;
  width: 78%;
  height: 78%;
  left: 14%;
  top: 8%;
  border-radius: 50%;
  background: radial-gradient(circle at 62% 40%, rgba(255, 255, 255, 0.34), transparent 55%);
}

@keyframes moon-breathe {
  0%, 100% { transform: scale(1); opacity: 0.95; }
  50% { transform: scale(1.04); opacity: 1; }
}

.hero-deck {
  position: relative;
  width: clamp(170px, 21vw, 212px);
  aspect-ratio: 5 / 8;
  z-index: 2;
}

.hero-card {
  position: absolute;
  inset: 0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.55);
  transition: transform 0.6s var(--ease);
}

.hero-card svg {
  width: 100%;
  height: 100%;
}

.hero-card:nth-child(1) {
  transform: translate(-46px, 16px) rotate(-13deg) scale(0.94);
  opacity: 0.8;
}

.hero-card:nth-child(2) {
  transform: translate(44px, 10px) rotate(11deg) scale(0.94);
  opacity: 0.8;
}

.hero-card:nth-child(3) {
  transform: translateY(-6px) rotate(-1.5deg);
  animation: card-float 7s ease-in-out infinite;
}

@keyframes card-float {
  0%, 100% { transform: translateY(-6px) rotate(-1.5deg); }
  50% { transform: translateY(-18px) rotate(1deg); }
}

.hero-spark {
  position: absolute;
  width: 100%;
  height: 100%;
  inset: 0;
  pointer-events: none;
  z-index: 3;
}

/* ---------------- 공통 섹션 ---------------- */

.section {
  position: relative;
  padding: clamp(56px, 8.5vw, 112px) 0;
  scroll-margin-top: 86px;
}

.section + .section {
  border-top: 1px solid rgba(232, 201, 138, 0.08);
}

.section-head {
  max-width: 640px;
  margin-bottom: clamp(28px, 4vw, 46px);
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.section-head h2 {
  margin: 14px 0 14px;
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
  color: #fffdf8;
}

.section-head p {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.85;
}

.section-head.center .eyebrow::before {
  display: none;
}

/* ---------------- 타로 패널 ---------------- */

.tarot-panel {
  position: relative;
  padding: clamp(20px, 3.6vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(165deg, rgba(38, 31, 78, 0.66), rgba(12, 10, 26, 0.86)),
    radial-gradient(600px 300px at 80% -10%, rgba(185, 167, 232, 0.16), transparent 70%);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.tarot-panel::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(232, 201, 138, 0.09);
  border-radius: calc(var(--radius-lg) - 8px);
  pointer-events: none;
}

.theme-row {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding-bottom: clamp(20px, 3vw, 30px);
  margin-bottom: clamp(22px, 3vw, 34px);
  border-bottom: 1px dashed rgba(232, 201, 138, 0.16);
}

.theme-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.25s var(--ease);
}

.theme-btn .theme-icon {
  color: var(--gold-deep);
  font-size: 1rem;
  line-height: 1;
}

.theme-btn:hover {
  color: var(--gold-bright);
  border-color: var(--line-strong);
  background: rgba(232, 201, 138, 0.06);
}

.theme-btn.is-active {
  background: linear-gradient(135deg, rgba(246, 227, 184, 0.96), rgba(232, 201, 138, 0.9));
  border-color: transparent;
  color: #241c38;
  font-weight: 700;
  box-shadow: 0 8px 22px rgba(232, 201, 138, 0.22);
}

.theme-btn.is-active .theme-icon {
  color: #5a4630;
}

.tarot-body {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: clamp(26px, 4.5vw, 56px);
  align-items: start;
}

.deck-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.deck-stage {
  position: relative;
  width: clamp(196px, 62vw, 268px);
  margin: 4px auto 0;
}

.deck-stage::before {
  content: "";
  position: absolute;
  inset: 12% -18% -6%;
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 60%, rgba(185, 167, 232, 0.28), transparent 70%);
  filter: blur(16px);
  pointer-events: none;
}

.deck {
  position: relative;
  width: 100%;
  aspect-ratio: 5 / 8;
  perspective: 1500px;
}

.deck-layer {
  position: absolute;
  inset: 0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.5);
  transition: transform 0.7s var(--ease), opacity 0.4s var(--ease);
  transform-origin: 50% 92%;
  will-change: transform;
}

.deck-layer svg {
  width: 100%;
  height: 100%;
}

.deck-layer.l-3 {
  transform: translate(-13px, 12px) rotate(-7deg);
  opacity: 0.62;
}

.deck-layer.l-2 {
  transform: translate(12px, 8px) rotate(6deg);
  opacity: 0.82;
}

.deck-layer.l-1 {
  transform: translateY(0) rotate(0);
  cursor: pointer;
}

.deck:hover .deck-layer.l-1 {
  transform: translateY(-8px);
}

.deck.is-shuffling .deck-layer.l-1 {
  animation: shuffle-a 0.52s var(--ease) 2;
}

.deck.is-shuffling .deck-layer.l-2 {
  animation: shuffle-b 0.52s var(--ease) 2;
}

.deck.is-shuffling .deck-layer.l-3 {
  animation: shuffle-c 0.52s var(--ease) 2;
}

@keyframes shuffle-a {
  0% { transform: translateY(0) rotate(0); }
  35% { transform: translate(-34px, -14px) rotate(-11deg); }
  70% { transform: translate(22px, -4px) rotate(7deg); }
  100% { transform: translateY(0) rotate(0); }
}

@keyframes shuffle-b {
  0% { transform: translate(12px, 8px) rotate(6deg); }
  35% { transform: translate(38px, -20px) rotate(12deg); }
  70% { transform: translate(-24px, 2px) rotate(-6deg); }
  100% { transform: translate(12px, 8px) rotate(6deg); }
}

@keyframes shuffle-c {
  0% { transform: translate(-13px, 12px) rotate(-7deg); }
  35% { transform: translate(-44px, 2px) rotate(-14deg); }
  70% { transform: translate(30px, -16px) rotate(9deg); }
  100% { transform: translate(-13px, 12px) rotate(-7deg); }
}

/* 뽑힌 카드 (앞/뒤 3D 플립) */

.draw-card {
  position: absolute;
  inset: 0;
  z-index: 5;
  opacity: 0;
  transform: translateY(26px) scale(0.94);
  pointer-events: none;
  transition: opacity 0.45s var(--ease), transform 0.6s var(--ease);
}

.draw-card.is-dealt {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.draw-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.85s cubic-bezier(0.3, 0.75, 0.25, 1);
}

.draw-card.is-flipped .draw-inner {
  transform: rotateY(180deg);
}

.draw-face {
  position: absolute;
  inset: 0;
  border-radius: 14px;
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.55);
}

.draw-face svg {
  width: 100%;
  height: 100%;
}

.draw-front {
  transform: rotateY(180deg);
}

.deck-caption {
  min-height: 44px;
  text-align: center;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.7;
}

.deck-caption strong {
  color: var(--gold-bright);
  font-weight: 600;
}

/* 결과 */

.result-col {
  min-height: 100%;
}

.result-empty {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  height: 100%;
  min-height: 380px;
  padding: clamp(22px, 4vw, 38px);
  border: 1px dashed rgba(232, 201, 138, 0.22);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.015);
  text-align: center;
}

.result-empty .empty-icon {
  font-size: 1.7rem;
  color: var(--gold);
  letter-spacing: 0.4em;
}

.result-empty h3 {
  font-size: 1.12rem;
  color: var(--cream);
}

.result-empty p {
  color: var(--muted-dim);
  font-size: 0.88rem;
}

.empty-steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 6px;
}

.empty-steps li {
  padding: 6px 13px;
  border: 1px solid rgba(232, 201, 138, 0.14);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.78rem;
}

.result-card {
  position: relative;
  padding: clamp(20px, 3.2vw, 34px);
  border: 1px solid rgba(232, 201, 138, 0.26);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(168deg, rgba(46, 37, 92, 0.86), rgba(14, 11, 30, 0.94)),
    radial-gradient(400px 260px at 100% 0%, rgba(232, 201, 138, 0.14), transparent 70%);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.42);
  animation: result-in 0.6s var(--ease) both;
}

@keyframes result-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.result-card::before,
.result-card::after {
  content: "";
  position: absolute;
  width: 34px;
  height: 34px;
  border-color: rgba(232, 201, 138, 0.5);
  border-style: solid;
  pointer-events: none;
}

.result-card::before {
  top: 12px;
  left: 12px;
  border-width: 1px 0 0 1px;
  border-radius: 10px 0 0 0;
}

.result-card::after {
  bottom: 12px;
  right: 12px;
  border-width: 0 1px 1px 0;
  border-radius: 0 0 10px 0;
}

.result-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(232, 201, 138, 0.22);
  background: rgba(232, 201, 138, 0.07);
  color: var(--gold-bright);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.pill.reversed {
  border-color: rgba(233, 168, 189, 0.32);
  background: rgba(233, 168, 189, 0.1);
  color: #f3c3d2;
}

.result-date {
  margin-left: auto;
  color: var(--muted-dim);
  font-size: 0.74rem;
}

.result-name {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  font-size: clamp(1.42rem, 3.4vw, 1.95rem);
  color: #fffdf8;
}

.result-name .num {
  font-family: var(--font-serif);
  font-size: 0.72em;
  color: var(--gold);
  letter-spacing: 0.08em;
}

.result-name .en {
  font-family: var(--font-sans);
  font-size: 0.6em;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--muted-dim);
  text-transform: uppercase;
}

.keyword-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 14px 0 16px;
}

.keyword-chips span {
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #ded9ef;
  font-size: 0.76rem;
}

.result-theme-line {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: rgba(185, 167, 232, 0.1);
  border: 1px solid rgba(185, 167, 232, 0.18);
  color: #e7e0fb;
  font-size: 0.92rem;
  line-height: 1.8;
}

.result-theme-line strong {
  display: block;
  margin-bottom: 3px;
  color: var(--lilac);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.result-text {
  color: #ded9ef;
  font-size: 0.95rem;
  line-height: 1.9;
}

.advice-box {
  margin-top: 18px;
  padding: 14px 16px 14px 18px;
  border-left: 2px solid var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: linear-gradient(90deg, rgba(232, 201, 138, 0.1), rgba(232, 201, 138, 0.02));
}

.advice-box h4 {
  margin-bottom: 5px;
  color: var(--gold);
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.advice-box p {
  color: #f0ebdf;
  font-size: 0.92rem;
  line-height: 1.8;
}

.lucky-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.lucky {
  display: flex;
  flex: 1 1 140px;
  align-items: center;
  gap: 11px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.lucky .lucky-label {
  display: block;
  color: var(--muted-dim);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
}

.lucky .lucky-value {
  color: var(--cream);
  font-size: 0.9rem;
  font-weight: 600;
}

.swatch {
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 50%;
  background: var(--c, #fff);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08), 0 0 16px var(--c, transparent);
}

.lucky-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  color: var(--gold-bright);
  font-family: var(--font-serif);
  font-size: 0.95rem;
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(232, 201, 138, 0.14);
}

/* ---------------- 심리테스트 ---------------- */

.test-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2.6vw, 26px);
}

.test-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(170deg, rgba(34, 28, 70, 0.7), rgba(11, 9, 24, 0.9));
  text-align: left;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.test-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: 0 26px 50px rgba(0, 0, 0, 0.4);
}

.test-thumb {
  position: relative;
  height: clamp(140px, 18vw, 180px);
  overflow: hidden;
  background: linear-gradient(135deg, #2a1f57, #13102c 60%, #241a44);
}

.test-thumb svg {
  width: 100%;
  height: 100%;
}

.test-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(11, 9, 24, 0.92));
}

.test-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px clamp(18px, 2.6vw, 26px) clamp(20px, 2.6vw, 26px);
}

.test-badge {
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(185, 167, 232, 0.14);
  color: #d9cffb;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
}

.test-card h3 {
  font-size: clamp(1.12rem, 2.2vw, 1.36rem);
  color: #fffdf8;
}

.test-card p {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.75;
}

.test-meta {
  display: flex;
  gap: 12px;
  margin-top: 4px;
  color: var(--muted-dim);
  font-size: 0.76rem;
}

.test-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  color: var(--gold-bright);
  font-size: 0.86rem;
  font-weight: 600;
}

.test-cta .arrow {
  transition: transform 0.25s var(--ease);
}

.test-card:hover .test-cta .arrow {
  transform: translateX(4px);
}

/* 퀴즈 패널 */

.quiz-shell {
  position: relative;
  margin-top: clamp(26px, 4vw, 44px);
  padding: clamp(20px, 3.4vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(168deg, rgba(40, 33, 80, 0.66), rgba(12, 10, 28, 0.92));
  box-shadow: var(--shadow-soft);
  animation: result-in 0.45s var(--ease) both;
}

.quiz-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.quiz-top h3 {
  font-size: clamp(1.1rem, 2.4vw, 1.32rem);
  color: #fffdf8;
}

.quiz-close {
  margin-left: auto;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 0.8rem;
  transition: all 0.2s var(--ease);
}

.quiz-close:hover {
  color: var(--gold-bright);
  border-color: var(--line-strong);
}

.quiz-progress {
  position: relative;
  height: 3px;
  margin-bottom: 24px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.quiz-progress span {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--lilac), var(--gold));
  transition: width 0.4s var(--ease);
}

.quiz-count {
  margin-bottom: 10px;
  color: var(--muted-dim);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.quiz-question {
  margin-bottom: 20px;
  font-size: clamp(1.15rem, 2.6vw, 1.5rem);
  color: #fffdf8;
  line-height: 1.5;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.quiz-option {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 15px 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.025);
  color: #e6e1f4;
  text-align: left;
  font-size: 0.94rem;
  line-height: 1.55;
  transition: all 0.22s var(--ease);
}

.quiz-option:hover {
  border-color: var(--line-strong);
  background: rgba(232, 201, 138, 0.06);
  transform: translateX(3px);
}

.quiz-option.is-selected {
  border-color: var(--gold);
  background: rgba(232, 201, 138, 0.14);
  color: #fff;
}

.quiz-option .opt-key {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  flex: none;
  border-radius: 50%;
  border: 1px solid rgba(232, 201, 138, 0.3);
  color: var(--gold);
  font-size: 0.74rem;
  font-weight: 700;
}

.quiz-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 20px;
}

.quiz-back {
  padding: 8px 4px;
  border: 0;
  background: none;
  color: var(--muted-dim);
  font-size: 0.84rem;
}

.quiz-back:hover {
  color: var(--gold-bright);
}

.quiz-hint {
  color: var(--muted-dim);
  font-size: 0.78rem;
}

/* 퀴즈 결과 */

.quiz-result {
  animation: result-in 0.5s var(--ease) both;
}

.qr-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(16px, 3vw, 26px);
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(232, 201, 138, 0.14);
}

.qr-emoji {
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(64px, 9vw, 84px);
  height: clamp(64px, 9vw, 84px);
  flex: none;
  border-radius: 50%;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  background: radial-gradient(circle at 35% 30%, rgba(246, 227, 184, 0.22), rgba(185, 167, 232, 0.08));
  border: 1px solid rgba(232, 201, 138, 0.3);
  box-shadow: 0 0 40px rgba(232, 201, 138, 0.12);
}

.qr-title {
  flex: 1 1 240px;
}

.qr-kicker {
  color: var(--gold);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.qr-title h4 {
  margin: 5px 0 6px;
  font-size: clamp(1.35rem, 3.2vw, 1.8rem);
  color: #fffdf8;
}

.qr-tagline {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

.qr-temp {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  margin-top: 8px;
  color: var(--gold-bright);
  font-family: var(--font-serif);
  font-size: 1.5rem;
}

.qr-temp small {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--muted-dim);
}

.qr-tempbar {
  height: 6px;
  margin-top: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}

.qr-tempbar span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #7f6bd4, #e9a8bd, #f6e3b8);
  transition: width 1s var(--ease);
}

.qr-desc {
  margin: 20px 0 0;
  color: #ded9ef;
  font-size: 0.95rem;
  line-height: 1.9;
}

.qr-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}

.qr-chips span {
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(185, 167, 232, 0.12);
  color: #ded5fb;
  font-size: 0.76rem;
}

.qr-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.qr-block {
  padding: 15px 17px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.qr-block h5 {
  margin: 0 0 6px;
  color: var(--gold);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.qr-block p,
.qr-block li {
  color: #e2dcef;
  font-size: 0.88rem;
  line-height: 1.8;
}

.qr-block ul {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.qr-block li::before {
  content: "· ";
  color: var(--gold-deep);
}

.qr-tip {
  margin-top: 14px;
  padding: 15px 17px;
  border-left: 2px solid var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: rgba(232, 201, 138, 0.07);
  color: #f1ebdd;
  font-size: 0.9rem;
  line-height: 1.8;
}

.qr-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

/* ---------------- 콘텐츠 / 가이드 ---------------- */

.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2.4vw, 22px);
  margin-bottom: clamp(24px, 4vw, 40px);
}

.guide-card {
  padding: clamp(20px, 3vw, 28px);
  border: 1px solid rgba(232, 201, 138, 0.14);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.022);
}

.guide-card .g-num {
  font-family: var(--font-serif);
  color: var(--gold-deep);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
}

.guide-card h3 {
  margin: 10px 0 8px;
  font-size: 1.12rem;
  color: var(--cream);
}

.guide-card p {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.85;
}

.prose {
  max-width: 70ch;
  color: #cfc8e2;
  font-size: 0.96rem;
  line-height: 1.95;
}

.prose p + p {
  margin-top: 16px;
}

.prose strong {
  color: var(--gold-bright);
  font-weight: 600;
}

.prose h3 {
  margin: 32px 0 10px;
  font-size: 1.24rem;
  color: #fffdf8;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 860px;
}

.faq-item {
  border: 1px solid rgba(232, 201, 138, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.022);
  overflow: hidden;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 17px 20px;
  color: #f0ebdf;
  font-size: 0.95rem;
  font-weight: 500;
  list-style: none;
  cursor: pointer;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  flex: none;
  color: var(--gold);
  font-size: 1.2rem;
  line-height: 1;
  transition: transform 0.25s var(--ease);
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  padding: 0 20px 18px;
  color: var(--muted);
  font-size: 0.89rem;
  line-height: 1.85;
}

/* ---------------- 푸터 ---------------- */

.site-footer {
  position: relative;
  margin-top: clamp(40px, 7vw, 80px);
  padding: clamp(40px, 6vw, 68px) 0 34px;
  border-top: 1px solid rgba(232, 201, 138, 0.14);
  background: linear-gradient(180deg, rgba(10, 8, 22, 0.4), rgba(6, 5, 13, 0.9));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr;
  gap: clamp(22px, 4vw, 44px);
}

.footer-brand p {
  margin-top: 14px;
  max-width: 34ch;
  color: var(--muted-dim);
  font-size: 0.84rem;
  line-height: 1.8;
}

.footer-col h4 {
  margin-bottom: 12px;
  color: var(--gold);
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col a {
  color: var(--muted);
  font-size: 0.86rem;
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--gold-bright);
  text-decoration: none;
}

.footer-info {
  color: var(--muted-dim);
  font-size: 0.8rem;
  line-height: 1.9;
}

.footer-info strong {
  color: #d7d0e6;
  font-weight: 500;
}

.footer-disclaimer {
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: #6f6888;
  font-size: 0.76rem;
  line-height: 1.8;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 16px;
  color: #6f6888;
  font-size: 0.76rem;
}

/* ---------------- 서브 페이지 ---------------- */

.page-hero {
  padding: calc(72px + clamp(36px, 6vw, 70px)) 0 clamp(24px, 4vw, 40px);
  border-bottom: 1px solid rgba(232, 201, 138, 0.1);
}

.page-hero h1 {
  margin: 14px 0 12px;
  font-size: clamp(1.9rem, 4.4vw, 2.9rem);
  color: #fffdf8;
}

.page-hero p {
  max-width: 62ch;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.85;
}

.page-body {
  padding: clamp(34px, 5vw, 60px) 0 clamp(50px, 7vw, 90px);
}

.policy {
  max-width: 780px;
}

.policy > p,
.policy li {
  color: #cfc8e2;
  font-size: 0.94rem;
  line-height: 1.95;
}

.policy h2 {
  margin: 38px 0 12px;
  padding-top: 22px;
  border-top: 1px solid rgba(232, 201, 138, 0.1);
  font-size: 1.22rem;
  color: #fffdf8;
}

.policy h2:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.policy h3 {
  margin: 22px 0 8px;
  font-size: 1.02rem;
  color: var(--gold-bright);
  font-family: var(--font-sans);
  font-weight: 600;
}

.policy p + p {
  margin-top: 12px;
}

.policy ul {
  margin: 10px 0 14px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.policy ul li {
  position: relative;
  padding-left: 14px;
}

.policy ul li::before {
  content: "·";
  position: absolute;
  left: 2px;
  color: var(--gold-deep);
}

.policy .note {
  margin-top: 18px;
  padding: 15px 18px;
  border-radius: var(--radius-sm);
  background: rgba(185, 167, 232, 0.07);
  border: 1px solid rgba(185, 167, 232, 0.16);
  color: #dcd5ef;
  font-size: 0.87rem;
  line-height: 1.85;
}

.policy .updated {
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--muted-dim);
  font-size: 0.82rem;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  gap: clamp(26px, 5vw, 60px);
  align-items: start;
}

.about-aside {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.025);
}

.about-aside h3 {
  font-size: 1rem;
  color: var(--cream);
  margin-bottom: 10px;
}

.about-aside dl {
  margin: 0;
  display: grid;
  gap: 10px;
}

.about-aside dt {
  color: var(--muted-dim);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.about-aside dd {
  margin: 2px 0 0;
  color: #ded9ef;
  font-size: 0.88rem;
}

/* 문의 폼 */

.contact-form {
  display: grid;
  gap: 14px;
  margin-top: 24px;
  padding: clamp(20px, 3.4vw, 30px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.025);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(8, 7, 18, 0.6);
  color: var(--cream);
  font: inherit;
  font-size: 0.92rem;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.field textarea {
  min-height: 150px;
  resize: vertical;
  line-height: 1.75;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(8, 7, 18, 0.85);
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.form-note {
  color: var(--muted-dim);
  font-size: 0.78rem;
  line-height: 1.7;
}

/* ---------------- 토스트 ---------------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: calc(100% - 32px);
  padding: 12px 20px;
  border: 1px solid rgba(232, 201, 138, 0.3);
  border-radius: 999px;
  background: rgba(18, 14, 36, 0.96);
  color: var(--gold-bright);
  font-size: 0.86rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translate(-50%, 16px);
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

.toast.is-on {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------------- 스크롤 등장 ---------------- */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ---------------- 반응형 ---------------- */

@media (max-width: 1000px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    order: -1;
    min-height: 300px;
    margin-bottom: 10px;
  }

  .hero-moon {
    width: 230px;
    height: 230px;
  }

  .hero-deck {
    width: 158px;
  }

  .hero-card:nth-child(1) {
    transform: translate(-38px, 12px) rotate(-13deg) scale(0.94);
  }

  .hero-card:nth-child(2) {
    transform: translate(36px, 8px) rotate(11deg) scale(0.94);
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 20px 18px;
    background: rgba(9, 7, 20, 0.98);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
  }

  .nav-menu.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav-menu a {
    padding: 13px 2px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.98rem;
  }

  .nav-menu a::after {
    display: none;
  }

  .tarot-body {
    grid-template-columns: 1fr;
  }

  .result-empty {
    min-height: 0;
    padding: 26px 20px;
  }

  .test-grid {
    grid-template-columns: 1fr;
  }

  .guide-grid {
    grid-template-columns: 1fr;
  }

  .qr-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  body {
    font-size: 15.5px;
  }

  .wrap,
  .wrap-narrow {
    width: calc(100% - 32px);
  }

  .brand-sub {
    display: none;
  }

  .hero {
    padding-top: calc(72px + 30px);
  }

  .hero-visual {
    min-height: 232px;
  }

  .hero-moon {
    width: 168px;
    height: 168px;
  }

  .hero-deck {
    width: 118px;
  }

  .hero-actions .btn {
    flex: 1 1 100%;
  }

  .hero-facts {
    gap: 6px 14px;
    font-size: 0.76rem;
  }

  .theme-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .theme-btn {
    justify-content: center;
    padding: 10px 8px;
    font-size: 0.84rem;
  }

  .theme-btn[data-theme="daily"] {
    grid-column: 1 / -1;
  }

  .deck-stage {
    width: min(240px, 68vw);
  }

  .result-card {
    padding: 20px 17px;
  }

  .result-date {
    width: 100%;
    margin-left: 0;
  }

  .lucky {
    flex: 1 1 calc(50% - 5px);
    padding: 10px 11px;
    gap: 8px;
  }

  .lucky .lucky-value {
    font-size: 0.84rem;
  }

  .result-actions .btn {
    flex: 1 1 calc(50% - 4px);
    padding: 12px 10px;
    font-size: 0.84rem;
  }

  .qr-actions .btn {
    flex: 1 1 100%;
  }

  .quiz-top {
    position: relative;
    padding-right: 64px;
  }

  .quiz-close {
    position: absolute;
    top: 0;
    right: 0;
    margin-left: 0;
  }

  .quiz-top h3 {
    flex: 1 1 100%;
    margin-top: 2px;
  }

  .quiz-option {
    padding: 13px 14px;
    font-size: 0.9rem;
  }

  .quiz-option .opt-key {
    width: 22px;
    height: 22px;
    font-size: 0.68rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .field-row {
    grid-template-columns: 1fr;
  }

  .page-hero h1 {
    font-size: 1.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ============================================================
   작은 도구 · 행운의 로또 6/45
   ============================================================ */

.tool-panel {
  position: relative;
  padding: clamp(20px, 3.6vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(165deg, rgba(38, 31, 78, 0.66), rgba(12, 10, 26, 0.86)),
    radial-gradient(600px 300px at 80% -10%, rgba(185, 167, 232, 0.16), transparent 70%);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.tool-panel::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(232, 201, 138, 0.09);
  border-radius: calc(var(--radius-lg) - 8px);
  pointer-events: none;
}

.tool-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: clamp(16px, 2.6vw, 24px);
  margin-bottom: clamp(18px, 3vw, 28px);
  border-bottom: 1px dashed rgba(232, 201, 138, 0.16);
}

.tool-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
}

.tool-emoji {
  font-size: 1.5rem;
  line-height: 1;
}

.tool-title h3 {
  font-size: clamp(1.15rem, 2.6vw, 1.42rem);
  color: #fffdf8;
}

.tool-title p {
  flex: 1 1 100%;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.7;
}

.game-count {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.8rem;
}

.seg-group {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
}

.seg-btn {
  min-width: 38px;
  padding: 6px 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  transition: all 0.2s var(--ease);
}

.seg-btn:hover {
  color: var(--gold-bright);
}

.seg-btn.is-active {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  color: #241c38;
  box-shadow: 0 4px 14px rgba(232, 201, 138, 0.2);
}

.lotto-body {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(22px, 4vw, 44px);
  align-items: start;
}

.mode-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.mode-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  font-size: 0.82rem;
  transition: all 0.2s var(--ease);
}

.mode-btn span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--cream);
  font-size: 0.7rem;
}

.mode-btn:hover {
  color: var(--gold-bright);
  border-color: var(--line-strong);
}

.mode-btn.is-active {
  border-color: rgba(232, 201, 138, 0.55);
  background: rgba(232, 201, 138, 0.12);
  color: var(--gold-bright);
}

.mode-btn[data-mode="exclude"].is-active {
  border-color: rgba(233, 168, 189, 0.5);
  background: rgba(233, 168, 189, 0.12);
  color: #f3c3d2;
}

.mode-clear {
  margin-left: auto;
  padding: 8px 4px;
  border: 0;
  background: none;
  color: var(--muted-dim);
  font-size: 0.78rem;
}

.mode-clear:hover {
  color: var(--gold-bright);
}

.num-grid {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 6px;
}

.num-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.18s var(--ease);
}

.num-btn:hover {
  border-color: var(--line-strong);
  color: var(--gold-bright);
  transform: translateY(-1px);
}

.num-btn.is-fixed {
  background: linear-gradient(140deg, var(--gold-bright), var(--gold-deep));
  border-color: transparent;
  color: #241c38;
  box-shadow: 0 0 0 2px rgba(232, 201, 138, 0.2), 0 6px 14px rgba(232, 201, 138, 0.18);
}

.num-btn.is-excluded {
  border-style: dashed;
  border-color: rgba(233, 168, 189, 0.28);
  background: rgba(233, 168, 189, 0.05);
  color: #7d6a83;
  text-decoration: line-through;
}

.pick-hint {
  margin-top: 12px;
  color: var(--muted-dim);
  font-size: 0.78rem;
  line-height: 1.7;
}

.lotto-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.games {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 190px;
}

.games-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 190px;
  padding: 20px;
  border: 1px dashed rgba(232, 201, 138, 0.2);
  border-radius: var(--radius-md);
  color: var(--muted-dim);
  font-size: 0.86rem;
  text-align: center;
  line-height: 1.7;
}

.game-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
  animation: result-in 0.4s var(--ease) both;
}

.game-label {
  flex: none;
  width: 46px;
  color: var(--muted-dim);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
}

.ball-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ball {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(32px, 4.4vw, 40px);
  height: clamp(32px, 4.4vw, 40px);
  border-radius: 50%;
  font-size: clamp(0.78rem, 1.4vw, 0.92rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  background: #444;
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.45), inset 0 -3px 6px rgba(0, 0, 0, 0.25), 0 6px 14px rgba(0, 0, 0, 0.35);
  transform: scale(0.4);
  opacity: 0;
}

.game-row.is-in .ball {
  animation: ball-pop 0.42s cubic-bezier(0.2, 1.4, 0.4, 1) both;
  animation-delay: calc(var(--i) * 55ms);
}

@keyframes ball-pop {
  0% { transform: scale(0.4) translateY(8px); opacity: 0; }
  60% { transform: scale(1.08) translateY(-2px); opacity: 1; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}

.ball.yellow { background: linear-gradient(150deg, #ffe07a, #e3a81f); color: #4a3606; }
.ball.blue { background: linear-gradient(150deg, #8fc0f2, #2f6ec4); }
.ball.red { background: linear-gradient(150deg, #f19a9a, #c04343); }
.ball.gray { background: linear-gradient(150deg, #cfd3dc, #7c808c); }
.ball.green { background: linear-gradient(150deg, #a4dcae, #3f9a63); }

.lotto-note {
  margin-top: 16px;
  color: var(--muted-dim);
  font-size: 0.76rem;
  line-height: 1.75;
  text-align: center;
}

/* ============================================================
   작은 도구 · 오늘 뭐 먹지? 룰렛
   ============================================================ */

.preset-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  padding-bottom: clamp(18px, 3vw, 26px);
  margin-bottom: clamp(20px, 3vw, 30px);
  border-bottom: 1px dashed rgba(232, 201, 138, 0.16);
}

.preset-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  font-size: 0.88rem;
  transition: all 0.22s var(--ease);
}

.preset-btn .p-emoji {
  font-size: 0.98rem;
}

.preset-btn:hover {
  color: var(--gold-bright);
  border-color: var(--line-strong);
  background: rgba(232, 201, 138, 0.06);
}

.preset-btn.is-active {
  background: linear-gradient(135deg, rgba(246, 227, 184, 0.96), rgba(232, 201, 138, 0.9));
  border-color: transparent;
  color: #241c38;
  font-weight: 700;
  box-shadow: 0 8px 22px rgba(232, 201, 138, 0.2);
}

.roulette-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
  gap: clamp(24px, 4.5vw, 52px);
  align-items: center;
}

.wheel-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.wheel-wrap {
  position: relative;
  width: min(360px, 78vw);
  aspect-ratio: 1;
  margin-top: 8px;
}

.wheel-wrap::before {
  content: "";
  position: absolute;
  inset: -6%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(185, 167, 232, 0.28), transparent 68%);
  filter: blur(18px);
  pointer-events: none;
}

.wheel {
  position: relative;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 22px 40px rgba(0, 0, 0, 0.5));
  transition: transform 4.2s cubic-bezier(0.14, 0.85, 0.08, 1);
  will-change: transform;
}

.wheel-pointer {
  position: absolute;
  top: -12px;
  left: 50%;
  z-index: 3;
  width: 0;
  height: 0;
  transform: translateX(-50%);
  border-left: 13px solid transparent;
  border-right: 13px solid transparent;
  border-top: 22px solid var(--gold);
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
}

.wheel-center {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(76px, 19vw, 92px);
  height: clamp(76px, 19vw, 92px);
  transform: translate(-50%, -50%);
  border: 4px solid #14102c;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--gold-bright), var(--gold-deep));
  color: #241c38;
  font-family: var(--font-serif);
  font-size: clamp(0.92rem, 2.2vw, 1.05rem);
  font-weight: 700;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45), inset 0 2px 0 rgba(255, 255, 255, 0.5);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.wheel-center:hover:not(:disabled) {
  transform: translate(-50%, -50%) scale(1.05);
}

.wheel-center:disabled {
  opacity: 0.7;
  cursor: wait;
}

.wheel-caption {
  color: var(--muted-dim);
  font-size: 0.8rem;
  text-align: center;
}

.roulette-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.roulette-result {
  padding: clamp(20px, 3vw, 28px);
  border: 1px solid rgba(232, 201, 138, 0.26);
  border-radius: var(--radius-md);
  background: linear-gradient(165deg, rgba(46, 37, 92, 0.8), rgba(14, 11, 30, 0.9));
  text-align: center;
}

.rr-label {
  display: block;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
}

.roulette-result strong {
  display: block;
  margin: 8px 0 6px;
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 4.6vw, 2.3rem);
  color: #fffdf8;
  line-height: 1.35;
  word-break: keep-all;
}

.roulette-result.is-spinning strong {
  animation: soft-pulse 0.9s ease-in-out infinite;
}

@keyframes soft-pulse {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

.rr-sub {
  color: var(--muted-dim);
  font-size: 0.82rem;
}

.roulette-result.is-done {
  border-color: rgba(232, 201, 138, 0.55);
  box-shadow: 0 0 40px rgba(232, 201, 138, 0.12);
}

.add-item {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.add-item label {
  color: var(--muted);
  font-size: 0.8rem;
}

.add-row {
  display: flex;
  gap: 8px;
}

.add-row input {
  flex: 1;
  min-width: 0;
  padding: 11px 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(8, 7, 18, 0.6);
  color: var(--cream);
  font: inherit;
  font-size: 0.9rem;
}

.add-row input:focus {
  outline: none;
  border-color: var(--gold);
}

.item-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-height: 132px;
  overflow: auto;
  scrollbar-width: thin;
}

.item-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 0.76rem;
}

.item-chip.is-custom {
  border-color: rgba(232, 201, 138, 0.28);
  color: var(--gold-bright);
}

.item-chip button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--gold-bright);
  font-size: 0.62rem;
  line-height: 1;
}

.item-chip button:hover {
  background: rgba(233, 168, 189, 0.2);
}

@media (max-width: 860px) {
  .lotto-body,
  .roulette-body {
    grid-template-columns: 1fr;
  }

  .roulette-body {
    gap: 26px;
  }

  .wheel-wrap {
    width: min(330px, 82vw);
  }
}

@media (max-width: 620px) {
  .num-grid {
    gap: 5px;
  }

  .num-btn {
    font-size: 0.74rem;
  }

  .tool-top {
    align-items: flex-start;
  }

  .game-count {
    width: 100%;
    justify-content: space-between;
  }

  .game-row {
    gap: 6px;
    padding: 9px 8px;
  }

  .game-label {
    width: 34px;
    font-size: 0.64rem;
  }

  .ball-row {
    gap: 4px;
  }

  .ball {
    width: clamp(30px, 9vw, 36px);
    height: clamp(30px, 9vw, 36px);
    font-size: 0.76rem;
  }

  .preset-row {
    justify-content: flex-start;
  }

  .preset-btn {
    padding: 9px 14px;
    font-size: 0.84rem;
  }

  .wheel-wrap {
    width: min(300px, 78vw);
  }

  .roulette-result {
    padding: 18px 16px;
  }
}

/* ============================================================
   놀이 도구 탭
   ============================================================ */

.tool-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: clamp(18px, 3vw, 26px);
}

.tool-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
  transition: all 0.22s var(--ease);
}

.tool-tab .t-emoji {
  font-size: 1.05rem;
  line-height: 1;
}

.tool-tab:hover {
  color: var(--gold-bright);
  border-color: var(--line-strong);
  background: rgba(232, 201, 138, 0.06);
}

.tool-tab.is-active {
  background: linear-gradient(135deg, rgba(246, 227, 184, 0.96), rgba(232, 201, 138, 0.9));
  border-color: transparent;
  color: #241c38;
  font-weight: 700;
  box-shadow: 0 10px 26px rgba(232, 201, 138, 0.22);
}

.tool-pane {
  animation: result-in 0.4s var(--ease) both;
}

/* ============================================================
   직장인 커피 내기
   ============================================================ */

.coffee-modes .seg-btn {
  min-width: 84px;
  padding: 8px 12px;
}

.coffee-setup {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 3vw, 28px);
  padding-bottom: clamp(18px, 3vw, 24px);
  margin-bottom: clamp(20px, 3vw, 28px);
  border-bottom: 1px dashed rgba(232, 201, 138, 0.14);
}

.coffee-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.coffee-block > label {
  color: var(--muted);
  font-size: 0.8rem;
}

.coffee-block > label span {
  color: var(--muted-dim);
}

.coffee-block input {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(8, 7, 18, 0.6);
  color: var(--cream);
  font: inherit;
  font-size: 0.9rem;
}

.coffee-block input:focus {
  outline: none;
  border-color: var(--gold);
}

.person-input-row {
  display: flex;
  gap: 8px;
}

.person-input-row input {
  flex: 1;
  min-width: 0;
}

.people-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 28px;
}

.person-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px;
  border: 1px solid rgba(232, 201, 138, 0.24);
  border-radius: 999px;
  background: rgba(232, 201, 138, 0.08);
  color: var(--gold-bright);
  font-size: 0.8rem;
}

.person-chip button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--gold-bright);
  font-size: 0.6rem;
  line-height: 1;
}

.person-chip button:hover {
  background: rgba(233, 168, 189, 0.24);
}

.people-empty {
  color: var(--muted-dim);
  font-size: 0.8rem;
}

.ladder-wrap {
  width: 100%;
  overflow-x: auto;
  padding: 4px 0 8px;
}

.ladder-svg {
  width: 100%;
  height: auto;
  min-width: 300px;
}

.ladder-svg text {
  font-family: var(--font-sans);
  font-size: 15px;
  fill: #e6e1f4;
}

.ladder-svg .ladder-top text {
  font-weight: 600;
  fill: var(--gold-bright);
  font-size: 16px;
}

.ladder-svg .ladder-bottom text {
  font-size: 18px;
}

.ladder-actions {
  display: flex;
  justify-content: center;
  margin-top: 12px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(8px, 1.6vw, 14px);
  max-width: 520px;
  margin: 0 auto;
}

.coffee-card {
  position: relative;
  aspect-ratio: 3 / 4;
  perspective: 900px;
  padding: 0;
  border: 0;
  background: none;
}

.coffee-card-name {
  position: absolute;
  top: -20px;
  left: 0;
  right: 0;
  color: var(--muted);
  font-size: 0.68rem;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
}

.cards-grid {
  margin-top: 26px;
}

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.65s cubic-bezier(0.3, 0.75, 0.2, 1);
}

.coffee-card.is-flipped .card-inner {
  transform: rotateY(180deg);
}

.card-face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border-radius: 14px;
  border: 1px solid rgba(232, 201, 138, 0.3);
  background: linear-gradient(160deg, #262054, #120f2b);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.4);
}

.card-face svg {
  width: 62%;
  height: auto;
}

.card-face .card-tag {
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  color: var(--gold);
}

.card-back {
  transform: rotateY(180deg);
}

.card-back.safe {
  border-color: rgba(111, 183, 154, 0.4);
  background: linear-gradient(160deg, #1c3a34, #101d24);
}

.card-back.safe .card-tag {
  color: #a4dcae;
}

.card-back.loser {
  border-color: rgba(232, 201, 138, 0.65);
  background: linear-gradient(160deg, #4a3520, #241a2c);
  box-shadow: 0 0 34px rgba(232, 201, 138, 0.24), 0 12px 26px rgba(0, 0, 0, 0.4);
}

.coffee-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}

.coffee-result {
  margin-top: clamp(18px, 3vw, 26px);
}

.coffee-result .rr-sub {
  display: block;
  margin-top: 4px;
}

@media (max-width: 860px) {
  .coffee-setup {
    grid-template-columns: 1fr;
  }

  .cards-grid {
    max-width: 420px;
  }
}

@media (max-width: 620px) {
  .tool-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .tool-tab {
    flex-direction: column;
    gap: 3px;
    padding: 10px 4px;
    font-size: 0.76rem;
    text-align: center;
  }

  .tool-tab .t-emoji {
    font-size: 1.15rem;
  }

  .coffee-modes {
    width: 100%;
  }

  .coffee-modes .seg-btn {
    flex: 1;
    min-width: 0;
  }

  .ladder-svg text {
    font-size: 20px;
  }

  .ladder-svg .ladder-top text {
    font-size: 21px;
  }

  .ladder-svg .ladder-bottom text {
    font-size: 22px;
  }

  .cards-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 7px;
    max-width: 100%;
  }

  .card-face .card-tag {
    font-size: 0.52rem;
  }
}

/* ============================================================
   타로 테마 확장 · 공유 · 비교
   ============================================================ */

.theme-switch {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-bottom: 14px;
}

.theme-group-btn {
  padding: 9px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 0.86rem;
  transition: all 0.22s var(--ease);
}

.theme-group-btn:hover {
  color: var(--gold-bright);
  border-color: var(--line-strong);
}

.theme-group-btn.is-active {
  background: rgba(185, 167, 232, 0.14);
  border-color: rgba(185, 167, 232, 0.42);
  color: #eae3ff;
  font-weight: 600;
}

.friend-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  margin-bottom: 18px;
  border: 1px solid rgba(185, 167, 232, 0.32);
  border-radius: 16px;
  background: rgba(185, 167, 232, 0.09);
  color: #e7e0fb;
  font-size: 0.9rem;
  line-height: 1.7;
}

.friend-note strong {
  color: var(--gold-bright);
}

.friend-note-emoji {
  flex: none;
  font-size: 1.2rem;
}

.compare-card {
  margin-top: 18px;
  padding: 16px 18px;
  border: 1px solid rgba(185, 167, 232, 0.28);
  border-radius: 16px;
  background: rgba(185, 167, 232, 0.07);
}

.compare-kicker {
  display: block;
  color: var(--lilac);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.compare-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  text-align: center;
}

.compare-side span {
  display: block;
  color: var(--muted-dim);
  font-size: 0.66rem;
  letter-spacing: 0.04em;
}

.compare-side strong {
  display: block;
  margin-top: 3px;
  color: #fffdf8;
  font-family: var(--font-serif);
  font-size: 1.02rem;
  line-height: 1.4;
}

.compare-side small {
  color: var(--muted);
  font-size: 0.68rem;
}

.compare-score {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 6px;
}

.compare-score strong {
  color: var(--gold-bright);
  font-family: var(--font-serif);
  font-size: 1.9rem;
  line-height: 1;
}

.compare-score span {
  margin-top: 2px;
  color: var(--muted-dim);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
}

.compare-desc {
  margin-top: 12px;
  color: #ded9ef;
  font-size: 0.85rem;
  line-height: 1.75;
}

.btn-quiet {
  padding: 10px 12px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted-dim);
  font-size: 0.8rem;
}

.btn-quiet:hover {
  color: var(--gold-bright);
  background: rgba(255, 255, 255, 0.04);
}

.save-note {
  margin-top: 10px;
  color: var(--muted-dim);
  font-size: 0.74rem;
  line-height: 1.7;
}

.save-note a {
  color: var(--gold);
}

@media (max-width: 620px) {
  .result-actions-4 .btn {
    flex: 1 1 calc(50% - 4px);
    padding: 11px 8px;
    font-size: 0.8rem;
  }

  .result-actions-4 .btn-quiet {
    flex: 1 1 100%;
  }

  .theme-group-btn {
    flex: 1;
    padding: 9px 10px;
    font-size: 0.82rem;
  }

  .compare-grid {
    gap: 4px;
  }

  .compare-side strong {
    font-size: 0.92rem;
  }

  .compare-score strong {
    font-size: 1.55rem;
  }
}

/* ============================================================
   내 운세 기록장
   ============================================================ */

.journal-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.journal-summary {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted-dim);
  font-size: 0.78rem;
}

.journal-summary strong {
  color: var(--gold-bright);
  font-size: 0.9rem;
}

.journal-day {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.journal-date {
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(232, 201, 138, 0.14);
  color: var(--gold);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.journal-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.025);
}

.j-emoji {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 50%;
  border: 1px solid rgba(232, 201, 138, 0.24);
  background: rgba(232, 201, 138, 0.08);
  font-size: 1.05rem;
}

.j-main {
  flex: 1;
  min-width: 0;
}

.j-type {
  color: var(--muted-dim);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
}

.j-main h5 {
  margin: 2px 0 4px;
  color: #fdfaf2;
  font-family: var(--font-serif);
  font-size: 1.02rem;
  font-weight: 600;
}

.j-summary {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.65;
}

.j-memo {
  width: 100%;
  margin-top: 9px;
  padding: 8px 11px;
  border: 1px dashed rgba(232, 201, 138, 0.22);
  border-radius: 9px;
  background: rgba(8, 7, 18, 0.4);
  color: var(--gold-bright);
  font: inherit;
  font-size: 0.8rem;
}

.j-memo::placeholder {
  color: #6f6888;
}

.j-memo:focus {
  outline: none;
  border-style: solid;
  border-color: var(--gold);
}

.j-del {
  flex: none;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  background: transparent;
  color: var(--muted-dim);
  font-size: 0.68rem;
}

.j-del:hover {
  border-color: rgba(233, 168, 189, 0.4);
  color: #f3c3d2;
}

.journal-empty {
  padding: clamp(24px, 5vw, 46px);
  border: 1px dashed rgba(232, 201, 138, 0.2);
  border-radius: var(--radius-md);
  text-align: center;
}

.j-empty-icon {
  font-size: 2rem;
}

.journal-empty h4 {
  margin: 10px 0 8px;
  color: var(--cream);
  font-size: 1.08rem;
}

.journal-empty p {
  color: var(--muted-dim);
  font-size: 0.87rem;
  line-height: 1.8;
}

.j-empty-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}

.journal-note {
  color: #6f6888;
  font-size: 0.74rem;
  text-align: center;
}

@media (max-width: 620px) {
  .tool-tabs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 5px;
  }

  .tool-tab {
    padding: 9px 2px;
    font-size: 0.7rem;
  }

  .tool-tab .t-emoji {
    font-size: 1.05rem;
  }

  .journal-item {
    padding: 12px;
    gap: 10px;
  }

  .j-emoji {
    width: 32px;
    height: 32px;
    font-size: 0.95rem;
  }

  .journal-item h5 {
    font-size: 0.98rem;
  }
}

/* ============================================================
   MINDY WORLD · 파스텔 테마 오버라이드
   ============================================================ */

h1, h2, h3, h4 {
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: -0.025em;
}

.site-nav {
  background: rgba(255, 250, 252, 0.78);
  border-bottom: 1px solid rgba(205, 170, 215, 0.2);
}

.site-nav.is-scrolled {
  background: rgba(255, 250, 252, 0.96);
  border-color: rgba(205, 170, 215, 0.32);
}

.brand-name { color: #7c4fa6; }
.brand-sub { color: #b497c6; }
.brand-mark { color: #c078a0; }
.brand-mark path { fill: #d38cb0; }
.brand-mark circle { fill: #b58ce0; }
.nav-toggle {
  background: #fff;
  border-color: rgba(200, 165, 215, 0.35);
  color: #a4568c;
}
.nav-menu a { color: #7f7189; }
.nav-menu a:hover, .nav-menu a.is-active { color: #a4568c; }
.nav-menu a::after { background: linear-gradient(90deg, transparent, #d38cb0, transparent); }

.hero::before {
  background: radial-gradient(circle, rgba(255, 190, 214, 0.45), transparent 65%);
}

.hero h1 { color: #43304f; text-shadow: none; }
.hero h1 em {
  background: linear-gradient(120deg, #ef8fb4 0%, #d187c0 45%, #a17bd8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-lead { color: #7f7189; }
.hero-moon {
  background: radial-gradient(circle at 35% 30%, #fffdf8 0%, #ffe9cf 30%, rgba(255, 206, 220, 0.6) 55%, rgba(220, 190, 250, 0.18) 72%, transparent 78%);
  box-shadow: 0 0 70px rgba(255, 200, 215, 0.55), 0 0 150px rgba(205, 175, 245, 0.35);
}
.hero-moon::after { background: radial-gradient(circle at 62% 40%, rgba(255, 255, 255, 0.7), transparent 55%); }
.hero-card { box-shadow: 0 20px 40px rgba(140, 105, 160, 0.3); }
.hero-spark circle { fill: #e79ab8; }
.hero-spark g[stroke] { stroke: #d9a3bf; }

.section + .section { border-top-color: rgba(205, 170, 215, 0.18); }
.section-head h2 { color: #43304f; }
.section-head p { color: #7f7189; }
.eyebrow { color: #b4588a; }
.eyebrow::before { background: linear-gradient(90deg, transparent, #d38cb0); }

.tarot-panel {
  background: linear-gradient(165deg, #ffffff 0%, #fdf5ff 55%, #fff7f3 100%);
  border-color: rgba(210, 175, 220, 0.5);
  box-shadow: var(--shadow-soft);
}
.tarot-panel::before { border-color: rgba(215, 180, 225, 0.4); }

.theme-btn {
  background: #fff;
  border-color: rgba(205, 170, 220, 0.4);
  color: #7f7189;
}
.theme-btn:hover { background: #fff2f9; color: #a4568c; border-color: #e8bfdc; }
.theme-btn.is-active {
  background: linear-gradient(135deg, #f7a6c4, #b794e4);
  color: #fff;
  box-shadow: 0 8px 22px rgba(215, 140, 180, 0.32);
}
.theme-btn.is-active .theme-icon { color: #fff; }

.theme-group-btn { background: #fff; border-color: rgba(205, 170, 220, 0.4); color: #7f7189; }
.theme-group-btn.is-active { background: #f6ebff; border-color: #d9bdec; color: #7c4fa6; }

.deck-layer { box-shadow: 0 16px 30px rgba(130, 100, 160, 0.28); }
.deck-caption { color: #8a7b93; }

.result-empty {
  background: rgba(255, 255, 255, 0.62);
  border-color: #e6cfea;
}
.result-empty h3 { color: #5a4566; }
.result-empty p { color: #a99bb2; }
.empty-steps li { border-color: #e9d5ee; color: #8a7b93; background: #fff; }

.result-card {
  background: linear-gradient(168deg, #ffffff 0%, #fff7fc 60%, #fbf4ff 100%);
  border-color: #eccfe6;
  box-shadow: 0 22px 48px rgba(190, 150, 190, 0.2);
}
.result-card::before, .result-card::after { border-color: #e0aecb; }

.pill { background: #f7ecff; border-color: #e3d1f6; color: #7c4fa6; }
.pill.reversed { background: #ffeef4; border-color: #f4c8da; color: #b45c85; }
.result-date { color: #a99bb2; }
.result-name { color: #43304f; }
.result-name .num { color: #c078a0; }
.result-name .en { color: #a99bb2; }
.keyword-chips span { background: #f9f1ff; border-color: #eddef8; color: #6f5a80; }
.result-theme-line { background: #f7efff; border-color: #e8d8f8; color: #5d4a70; }
.result-theme-line strong { color: #8a5aa8; }
.result-text { color: #5b4b68; }

.advice-box {
  background: linear-gradient(90deg, #fff2f8, rgba(255, 242, 248, 0));
  border-left-color: #ef9fba;
}
.advice-box h4 { color: #c06a90; }
.advice-box p { color: #55445f; }

.lucky { background: #fff; border-image: none; border-color: #f2e5f3; }
.lucky .lucky-label { color: #a99bb2; }
.lucky .lucky-value { color: #5b4b68; }
.lucky-num { border-color: #e8d0e8; color: #a4568c; background: #fff; }
.result-actions { border-top-color: #f1e3f2; }
.save-note { color: #a99bb2; }
.save-note a { color: #b4588a; }

.btn-primary {
  background: linear-gradient(135deg, #f59ebd 0%, #cf8fce 50%, #b08ae0 100%);
  color: #fff;
  box-shadow: 0 12px 28px rgba(215, 140, 180, 0.3);
}
.btn-primary:hover { box-shadow: 0 16px 34px rgba(215, 140, 180, 0.4); }
.btn-ghost { background: #fff; border-color: #e6cfea; color: #8a5aa8; }
.btn-ghost:hover { background: #fdf3ff; border-color: #cfa8e4; color: #7c4fa6; }
.btn-quiet { color: #a99bb2; }

.friend-note { background: #fbf1ff; border-color: #e3cbf2; color: #5d4a70; }
.friend-note strong { color: #a4568c; }
.compare-card { background: #fbf2ff; border-color: #e6d2f4; }
.compare-kicker { color: #8a5aa8; }
.compare-side span, .compare-score span { color: #a99bb2; }
.compare-side strong { color: #43304f; }
.compare-side small { color: #8a7b93; }
.compare-score strong { color: #b4588a; }
.compare-desc { color: #5b4b68; }

.test-card {
  background: #fff;
  border-color: #f0dcea;
  box-shadow: 0 14px 32px rgba(200, 160, 200, 0.12);
}
.test-card:hover { border-color: #dcb9dd; box-shadow: 0 24px 44px rgba(200, 150, 190, 0.2); }
.test-thumb { background: linear-gradient(135deg, #ffe9f2, #f3e7ff); }
.test-badge { background: #f7e9ff; color: #7c4fa6; }
.test-card h3 { color: #43304f; }
.test-card p { color: #8a7b93; }
.test-meta { color: #a99bb2; }
.test-cta { color: #b4588a; }

.quiz-shell { background: #fff; border-color: #efd9ec; }
.quiz-top h3 { color: #43304f; }
.quiz-close { border-color: #eedbec; color: #8a7b93; }
.quiz-close:hover { color: #a4568c; border-color: #e0b8d8; }
.quiz-progress { background: #f7e9f4; }
.quiz-question { color: #43304f; }
.quiz-option { background: #fff; border-color: #f1e2ef; color: #5b4b68; }
.quiz-option:hover { background: #fff4fa; border-color: #e3b8d8; }
.quiz-option.is-selected { background: #f8edff; border-color: #c9a2e0; color: #5a3f6e; }
.opt-key { border-color: #e3b8d8; color: #b4588a; }
.quiz-count, .quiz-hint, .quiz-back { color: #a99bb2; }

.qr-emoji { background: radial-gradient(circle at 35% 30%, #fff, #ffeafa); border-color: #f2cfe0; }
.qr-kicker { color: #b4588a; }
.qr-title h4 { color: #43304f; }
.qr-tagline { color: #8a7b93; }
.qr-temp { color: #c06a90; }
.qr-temp small { color: #a99bb2; }
.qr-tempbar { background: #f8eaf3; }
.qr-desc { color: #5b4b68; }
.qr-chips span { background: #f8edff; color: #6f5a80; }
.qr-block { background: #fffafd; border-color: #f4e7f1; }
.qr-block h5 { color: #b4588a; }
.qr-block p, .qr-block li { color: #5b4b68; }
.qr-tip { background: #fff3f9; border-left-color: #ef9fba; color: #5b4b68; }

.guide-card { background: #fff; border-color: #f2e1ee; }
.guide-card h3 { color: #43304f; }
.guide-card p { color: #8a7b93; }
.g-num { color: #c078a0; }

.prose { color: #5b4b68; }
.prose strong { color: #a4568c; }
.prose h3 { color: #43304f; }

.faq-item { background: #fff; border-color: #f2e1ee; }
.faq-item summary { color: #43304f; }
.faq-item summary::after { color: #c078a0; }
.faq-item p { color: #7f7189; }

.site-footer {
  background: linear-gradient(180deg, #fff3f8, #f7efff);
  border-top-color: #f0dcec;
}
.footer-col h4 { color: #b4588a; }
.footer-col a { color: #7f7189; }
.footer-col a:hover { color: #a4568c; }
.footer-brand p, .footer-info { color: #8a7b93; }
.footer-info strong { color: #5b4b68; }
.footer-disclaimer { color: #a99bb2; border-top-color: #f0e2ee; }
.footer-bottom { color: #a99bb2; }

.page-hero { border-bottom-color: #f2dfef; }
.page-hero h1 { color: #43304f; }
.page-hero p { color: #7f7189; }
.policy > p, .policy li { color: #5b4b68; }
.policy h2 { color: #43304f; border-top-color: #f2e2f0; }
.policy h3 { color: #a4568c; }
.policy .note { background: #fbf2ff; border-color: #e7d3f3; color: #5d4a70; }
.policy .updated { color: #a99bb2; border-top-color: #f2e2f0; }
.about-aside { background: #fff; border-color: #f1deee; }
.about-aside dt { color: #a99bb2; }
.about-aside dd { color: #5b4b68; }
.contact-form { background: #fff; border-color: #f1deee; }
.field label { color: #8a7b93; }
.field input, .field select, .field textarea,
.add-row input, .coffee-block input {
  background: #fffafd;
  border-color: #efdcee;
  color: #4a3b52;
}
.field input:focus, .field select:focus, .field textarea:focus,
.add-row input:focus, .coffee-block input:focus { border-color: #c9a2e0; background: #fff; }
.form-note { color: #a99bb2; }

.toast {
  background: #fff;
  border-color: #eccfea;
  color: #8a5aa8;
  box-shadow: 0 16px 36px rgba(180, 140, 180, 0.24);
}

.tool-panel {
  background: linear-gradient(165deg, #ffffff, #fdf5ff 60%, #fff7f4);
  border-color: rgba(210, 175, 220, 0.5);
}
.tool-panel::before { border-color: rgba(215, 180, 225, 0.4); }
.tool-title h3 { color: #43304f; }
.tool-title p { color: #8a7b93; }
.tool-top { border-bottom-color: #f0dded; }
.game-count { color: #8a7b93; }
.seg-group { background: #fff; border-color: #f0dcee; }
.seg-btn { color: #8a7b93; }
.seg-btn.is-active { background: linear-gradient(135deg, #f7a6c4, #b794e4); color: #fff; }
.mode-btn { background: #fff; border-color: #f0dcee; color: #8a7b93; }
.mode-btn span { background: #f8ecf7; color: #7c4fa6; }
.mode-btn.is-active { background: #f8ecff; border-color: #d9bdec; color: #7c4fa6; }
.mode-btn[data-mode="exclude"].is-active { background: #fff0f6; border-color: #f2bfd6; color: #b45c85; }
.mode-clear { color: #a99bb2; }
.num-btn { background: #fff; border-color: #f1e3f0; color: #8a7b93; }
.num-btn:hover { border-color: #d9b8e2; color: #a4568c; }
.num-btn.is-fixed { background: linear-gradient(140deg, #f7a6c4, #c98fd9); border-color: transparent; color: #fff; }
.num-btn.is-excluded { background: #fff5f9; border-color: #f3c8da; color: #b98aa2; }
.pick-hint { color: #a99bb2; }
.games-empty { border-color: #ecd8ee; color: #a99bb2; }
.game-row { background: #fff; border-color: #f2e5f3; }
.game-label { color: #a99bb2; }

.preset-row { border-bottom-color: #f0dded; }
.preset-btn { background: #fff; border-color: #f0dcee; color: #8a7b93; }
.preset-btn:hover { background: #fff3fa; border-color: #e5bcd8; color: #a4568c; }
.preset-btn.is-active { background: linear-gradient(135deg, #f7a6c4, #b794e4); color: #fff; }
.wheel-caption { color: #a99bb2; }
.wheel-center { border-color: #fff; background: linear-gradient(140deg, #f9aecb, #b794e4); color: #fff; }
.roulette-result { background: linear-gradient(165deg, #ffffff, #fff5fb); border-color: #edcfe6; }
.rr-label { color: #b4588a; }
.roulette-result strong { color: #43304f; }
.rr-sub { color: #a99bb2; }
.roulette-result.is-done { border-color: #e0aecb; box-shadow: 0 0 34px rgba(230, 160, 200, 0.2); }
.add-item label { color: #8a7b93; }
.item-chip { background: #fff; border-color: #f1e4f0; color: #7f7189; }
.item-chip.is-custom { border-color: #e5c8ea; color: #8a5aa8; }
.item-chip button { background: #f8edf6; color: #a4568c; }

.coffee-block > label { color: #8a7b93; }
.people-empty { color: #a99bb2; }
.person-chip { background: #fff0f7; border-color: #f2c6da; color: #b4588a; }
.person-chip button { background: #ffe2ef; color: #b4588a; }
.ladder-svg text { fill: #5b4b68; }
.ladder-svg .ladder-top text { fill: #b4588a; }
.cards-grid { margin-top: 26px; }
.card-face { background: linear-gradient(160deg, #fff, #fdf2ff); border-color: #ecd7ee; }
.card-face .card-tag { color: #b4588a; }
.card-back.safe { background: linear-gradient(160deg, #f1fbf5, #eaf8f0); border-color: #bfe4cd; }
.card-back.safe .card-tag { color: #4f9a70; }
.card-back.loser { background: linear-gradient(160deg, #fff1f7, #ffe7f1); border-color: #f2b7d0; }
.coffee-card-name { color: #8a7b93; }

.journal-summary { color: #a99bb2; }
.journal-date { color: #b4588a; border-bottom-color: #f2e2f0; }
.journal-item { background: #fff; border-color: #f2e5f3; }
.j-emoji { background: #fff2f9; border-color: #f2d2e2; }
.j-type { color: #a99bb2; }
.j-main h5 { color: #43304f; }
.j-summary { color: #8a7b93; }
.j-memo { background: #fffafd; border-color: #edd8ea; color: #8a5aa8; }
.j-memo::placeholder { color: #b3a5ba; }
.j-del { border-color: #f0e0ec; color: #a99bb2; }
.journal-empty { border-color: #ecd8ec; background: #fffafd; }
.journal-empty h4 { color: #43304f; }
.journal-empty p { color: #a99bb2; }
.journal-note { color: #b3a5ba; }

@media (max-width: 860px) {
  .nav-menu { background: rgba(255, 250, 252, 0.99); border-bottom-color: #f0dcec; }
  .nav-menu a { border-bottom-color: #f7eaf4; }
}

/* 테스트 썸네일 (파스텔 이모지) */
.test-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  height: clamp(104px, 13vw, 132px);
  position: relative;
  overflow: hidden;
}
.test-thumb::before {
  content: "";
  position: absolute;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  filter: blur(2px);
  top: -60px;
  right: -30px;
}
.test-thumb::after { display: none; }
.test-thumb .t-emoji {
  position: relative;
  z-index: 1;
  font-size: clamp(2.4rem, 5vw, 3rem);
  filter: drop-shadow(0 8px 14px rgba(170, 110, 160, 0.22));
}
.test-thumb.t-love { background: linear-gradient(135deg, #ffe1ee, #ffd9e8 45%, #f3e6ff); }
.test-thumb.t-attach { background: linear-gradient(135deg, #fff0dc, #ffe4ef 50%, #efe4ff); }
.test-thumb.t-charm { background: linear-gradient(135deg, #ffe6f2, #f3e6ff 55%, #e8f4ff); }
.test-thumb.t-age { background: linear-gradient(135deg, #fff4d9, #ffe8ee 55%, #e9f0ff); }
.test-thumb.t-shadow { background: linear-gradient(135deg, #efe4ff, #ffe0ec 55%, #fff2e4); }
.test-thumb.t-past { background: linear-gradient(135deg, #fff0d6, #ffe7e1 50%, #efe6ff); }
.test-thumb.t-money { background: linear-gradient(135deg, #e8f7ec, #fff4dc 55%, #ffe9f2); }

/* ============================================================
   운세 · 위로 문구 · 검색 · 즐겨찾기
   ============================================================ */

.nav-search {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: #a4568c;
  transition: all 0.2s var(--ease);
}
.nav-search svg { width: 18px; height: 18px; }
.nav-search:hover { border-color: #e0b8d8; background: #fff4fa; }

.sign-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 20px;
}
.sign-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  padding: 11px 4px 9px;
  border: 1px solid #f1e1ef;
  border-radius: 16px;
  background: #fff;
  color: #7f7189;
  text-align: center;
  transition: all 0.2s var(--ease);
}
.sign-btn:hover { background: #fff4fa; border-color: #e8c3da; }
.sign-btn .sign-symbol { font-size: 1.35rem; line-height: 1.2; color: #b4588a; }
.sign-btn .sign-name { font-size: 0.76rem; font-weight: 600; }
.sign-btn .sign-range { font-size: 0.6rem; color: #b3a5ba; }
.sign-btn.is-active {
  background: linear-gradient(160deg, #fff0f8, #f4ebff);
  border-color: #e2b8dc;
  box-shadow: 0 10px 22px rgba(210, 150, 190, 0.18);
}
.sign-btn.is-active .sign-name { color: #7c4fa6; }

.fortune-card {
  position: relative;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid #f0dbe9;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(200, 160, 190, 0.12);
  animation: result-in 0.4s var(--ease) both;
}
.fc-head { display: flex; align-items: flex-start; gap: 13px; }
.fc-symbol {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  flex: none;
  border-radius: 50%;
  background: linear-gradient(160deg, #fff2f9, #f2e8ff);
  border: 1px solid #f2d4e6;
  font-size: 1.7rem;
  color: #b4588a;
}
.fc-title { flex: 1; min-width: 0; }
.fc-kicker { display: block; color: #b4588a; font-size: 0.64rem; font-weight: 700; letter-spacing: 0.14em; }
.fc-title h3 { margin: 3px 0 2px; color: #43304f; font-size: clamp(1.2rem, 2.6vw, 1.45rem); }
.fc-sub { color: #a99bb2; font-size: 0.76rem; }
.fav-btn {
  width: 38px;
  height: 38px;
  flex: none;
  border: 1px solid #f0dbe9;
  border-radius: 50%;
  background: #fff;
  color: #c9a86a;
  font-size: 1.05rem;
  line-height: 1;
}
.fav-btn.is-on { background: #fff7e2; border-color: #f0d79a; color: #d9a53a; }
.fc-traits { margin-top: 14px; color: #5b4b68; font-size: 0.9rem; line-height: 1.8; }
.fc-scores { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.fc-score { padding: 12px; border: 1px solid #f5e8f2; border-radius: 14px; background: #fffafd; }
.fc-score-top { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; color: #8a7b93; font-size: 0.74rem; }
.fc-score-top strong { color: #b4588a; font-size: 1.15rem; }
.fc-bar { height: 6px; margin: 8px 0; border-radius: 99px; background: #f8e9f2; overflow: hidden; }
.fc-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #f7a6c4, #b794e4); }
.fc-bar.big { height: 10px; margin-top: 10px; }
.fc-score p { color: #7f7189; font-size: 0.76rem; line-height: 1.7; }
.fc-lucky {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed #f0dded;
}
.fc-label { display: block; margin-bottom: 6px; color: #a99bb2; font-size: 0.64rem; letter-spacing: 0.08em; }
.fc-color { display: inline-flex; align-items: center; gap: 6px; margin-right: 10px; color: #5b4b68; font-size: 0.78rem; }
.fc-color i { width: 16px; height: 16px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 3px #fff, 0 0 0 4px rgba(200, 160, 190, 0.22); }
.fc-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 30px;
  padding: 0 8px;
  margin-right: 6px;
  border: 1px solid #e8d0e8;
  border-radius: 50%;
  background: #fff;
  color: #a4568c;
  font-size: 0.8rem;
  font-weight: 700;
}
.fc-match { margin-top: 12px; color: #8a7b93; font-size: 0.8rem; }
.fc-match strong { color: #a4568c; }
.fortune-result { margin-top: 4px; }

.mini-form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
  padding: 18px;
  margin-bottom: 18px;
  border: 1px solid #f2e1ee;
  border-radius: 18px;
  background: #fff;
}
.mini-field { display: flex; flex: 1 1 160px; flex-direction: column; gap: 5px; }
.mini-field label { color: #8a7b93; font-size: 0.76rem; }
.mini-field input, .mini-field select {
  padding: 11px 13px;
  border: 1px solid #efdcee;
  border-radius: 12px;
  background: #fffafd;
  color: #4a3b52;
  font: inherit;
  font-size: 0.9rem;
}
.mini-field input:focus, .mini-field select:focus { outline: none; border-color: #c9a2e0; background: #fff; }
.mini-form .btn { flex: none; }

.birth-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.birth-item { padding: 12px 8px; border: 1px solid #f5e8f2; border-radius: 14px; background: #fffafd; text-align: center; }
.birth-label { display: block; color: #a99bb2; font-size: 0.64rem; }
.birth-item strong { display: block; margin: 4px 0 2px; color: #5b4b68; font-size: 0.98rem; }
.birth-item small { color: #a99bb2; font-size: 0.66rem; }
.birth-color i { display: inline-block; width: 12px; height: 12px; margin-right: 5px; border-radius: 50%; background: var(--c); vertical-align: middle; }

.name-score { margin-top: 18px; text-align: center; }
.name-score strong { color: #b4588a; font-size: 3rem; line-height: 1; }
.name-score span { color: #b4588a; font-size: 1.1rem; }
.name-strokes {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 16px;
  padding: 14px;
  border: 1px solid #f5e8f2;
  border-radius: 14px;
  background: #fffafd;
}
.name-strokes div { text-align: center; }
.name-strokes span { display: block; color: #a99bb2; font-size: 0.68rem; }
.name-strokes strong { color: #5b4b68; font-size: 0.94rem; }
.name-plus { color: #d9a3bf; }

.quote-section { padding-top: 0; }
.quote-card {
  padding: clamp(24px, 4vw, 46px);
  border: 1px solid #f2d8e8;
  border-radius: 28px;
  background: linear-gradient(135deg, #fff1f8, #f5ecff 55%, #fff8ea);
  box-shadow: 0 20px 44px rgba(210, 160, 200, 0.16);
  text-align: center;
}
.quote-kicker { color: #b4588a; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.16em; }
.quote-text {
  max-width: 42ch;
  margin: 14px auto 20px;
  color: #5b4566;
  font-size: clamp(1.08rem, 2.4vw, 1.42rem);
  font-weight: 600;
  line-height: 1.85;
  word-break: keep-all;
}
.quote-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }

.nav-search { margin-left: 4px; }

.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 11vh 16px 16px;
  background: rgba(80, 55, 90, 0.34);
  backdrop-filter: blur(6px);
}
.search-overlay[hidden] { display: none; }
.search-panel {
  width: min(680px, 100%);
  max-height: 76vh;
  overflow: auto;
  padding: 22px;
  border: 1px solid #ecd6e8;
  border-radius: 24px;
  background: #fffafc;
  box-shadow: 0 30px 70px rgba(120, 80, 120, 0.26);
}
.search-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.search-head h2 { color: #43304f; font-size: 1.12rem; }
.search-close {
  width: 34px;
  height: 34px;
  border: 1px solid #f0dcec;
  border-radius: 50%;
  background: #fff;
  color: #a4568c;
}
.search-input {
  width: 100%;
  margin-top: 14px;
  padding: 13px 16px;
  border: 1px solid #e9d3e7;
  border-radius: 14px;
  background: #fff;
  color: #4a3b52;
  font: inherit;
  font-size: 0.95rem;
}
.search-input:focus { outline: none; border-color: #c9a2e0; }
.search-suggest { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 12px; }
.suggest-label { margin-right: 4px; color: #a99bb2; font-size: 0.72rem; }
.suggest-chip { padding: 6px 12px; border: 1px solid #f0dcec; border-radius: 99px; background: #fff; color: #8a5aa8; font-size: 0.76rem; }
.search-results { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; }
.search-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #f7ecf4;
  border-radius: 12px;
  background: #fff;
  color: #4a3b52;
  text-align: left;
  text-decoration: none;
}
.search-item:hover { background: #fff4fa; border-color: #eed7e9; text-decoration: none; }
.si-type { flex: none; min-width: 64px; padding: 3px 8px; border-radius: 99px; background: #f7eaff; color: #7c4fa6; font-size: 0.64rem; text-align: center; }
.search-item strong { display: block; color: #43304f; font-size: 0.9rem; }
.search-item small { display: block; max-width: 46ch; margin-top: 2px; overflow: hidden; color: #a99bb2; font-size: 0.72rem; text-overflow: ellipsis; white-space: nowrap; }
.search-empty { padding: 20px; color: #a99bb2; font-size: 0.86rem; text-align: center; line-height: 1.8; }

.journal-favs { margin-bottom: 20px; padding: 16px 18px; border: 1px solid #f2e0ee; border-radius: 16px; background: #fffafd; }
.journal-favs h4 { margin-bottom: 10px; color: #43304f; font-size: 0.95rem; }
.fav-head { margin-bottom: 8px; color: #a99bb2; font-size: 0.74rem; }
.fav-item { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px dashed #f2e2ee; }
.fav-item:first-of-type { border-top: 0; }
.fav-emoji { font-size: 1rem; }
.fav-main { flex: 1; min-width: 0; }
.fav-type { display: block; color: #b4588a; font-size: 0.64rem; }
.fav-main strong { display: block; overflow: hidden; color: #5b4b68; font-size: 0.84rem; text-overflow: ellipsis; white-space: nowrap; }
.fav-main small { display: block; overflow: hidden; color: #a99bb2; font-size: 0.68rem; text-overflow: ellipsis; white-space: nowrap; }
.fav-go, .fav-del { flex: none; border: 0; background: none; color: #8a5aa8; font-size: 0.7rem; text-decoration: none; }
.fav-del { color: #a99bb2; }
.fav-empty { color: #a99bb2; font-size: 0.8rem; line-height: 1.7; }

@media (max-width: 860px) {
  .sign-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .fc-scores { grid-template-columns: 1fr; }
  .birth-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav-search { width: 38px; height: 38px; }
}

@media (max-width: 620px) {
  .sign-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .sign-btn { padding: 9px 3px 8px; border-radius: 14px; }
  .sign-btn .sign-symbol { font-size: 1.2rem; }
  .sign-btn .sign-name { font-size: 0.72rem; }
  .sign-btn .sign-range { font-size: 0.56rem; }
  .fortune-tabs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .fortune-tabs .tool-tab { font-size: 0.68rem; }
  .fc-head { gap: 10px; }
  .fc-symbol { width: 46px; height: 46px; font-size: 1.4rem; }
  .fc-lucky { gap: 8px; }
  .search-overlay { padding-top: 8vh; }
  .search-panel { padding: 16px; }
  .si-type { min-width: 54px; font-size: 0.58rem; }
  .search-item strong { font-size: 0.84rem; }
}

/* ============================================================
   매거진 페이지
   ============================================================ */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.toc-row { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; }
.toc-chip {
  padding: 7px 13px;
  border: 1px solid #efdaea;
  border-radius: 99px;
  background: #fff;
  color: #8a5aa8;
  font-size: 0.78rem;
  text-decoration: none;
}
.toc-chip:hover { background: #fff3fa; border-color: #e4bfdc; text-decoration: none; }

.guide-body { display: flex; flex-direction: column; gap: clamp(36px, 6vw, 64px); }
.guide-section { scroll-margin-top: 90px; }
.guide-kicker { color: #b4588a; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.16em; }
.guide-section h2 {
  margin: 8px 0 14px;
  color: #43304f;
  font-size: clamp(1.45rem, 3.4vw, 2rem);
  line-height: 1.35;
}
.guide-lead { max-width: 72ch; color: #5b4b68; font-size: 0.97rem; line-height: 1.95; }
.guide-section h3 {
  margin: 28px 0 10px;
  color: #43304f;
  font-size: 1.12rem;
}
.guide-section p { color: #5b4b68; font-size: 0.94rem; line-height: 1.95; }
.guide-section p + p { margin-top: 12px; }
.guide-section strong { color: #a4568c; }
.guide-note {
  margin-top: 16px;
  padding: 13px 16px;
  border: 1px solid #f2dcec;
  border-radius: 14px;
  background: #fff7fc;
  color: #8a7b93 !important;
  font-size: 0.83rem !important;
  line-height: 1.8 !important;
}
.guide-list { display: flex; flex-direction: column; gap: 8px; margin: 12px 0 16px; }
.guide-list li { position: relative; padding-left: 16px; color: #5b4b68; font-size: 0.93rem; line-height: 1.85; }
.guide-list li::before { content: "✿"; position: absolute; left: 0; color: #d9a3bf; font-size: 0.7rem; top: 3px; }

.table-wrap { margin: 18px 0 8px; overflow-x: auto; border: 1px solid #f2e2ef; border-radius: 16px; background: #fff; }
.guide-table { width: 100%; border-collapse: collapse; font-size: 0.84rem; min-width: 520px; }
.guide-table th {
  padding: 12px 14px;
  background: #fff4fa;
  border-bottom: 1px solid #f3e0ee;
  color: #8a5aa8;
  font-size: 0.74rem;
  font-weight: 700;
  text-align: left;
  white-space: nowrap;
}
.guide-table td { padding: 11px 14px; border-top: 1px solid #f9eef6; color: #5b4b68; vertical-align: top; }
.guide-table tbody tr:first-child td { border-top: 0; }
.guide-table td:nth-child(2) { font-weight: 600; color: #43304f; white-space: nowrap; }
.guide-table .dot { display: inline-block; width: 10px; height: 10px; margin-right: 6px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 1px rgba(180, 150, 180, 0.25); vertical-align: middle; }

.zodiac-guide-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.zg-card { padding: 16px 18px; border: 1px solid #f3e2ef; border-radius: 16px; background: #fff; }
.zg-card h3 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; margin: 6px 0 6px; color: #43304f; font-size: 1rem; }
.zg-card h3 small { color: #b3a5ba; font-size: 0.68rem; font-weight: 500; }
.zg-symbol { color: #c078a0; font-size: 1.2rem; }
.zg-card p { color: #7f7189; font-size: 0.82rem; line-height: 1.75; }
.zg-match { margin-top: 6px; color: #a4568c !important; font-size: 0.75rem !important; }

.dream-search { margin-top: 18px; }
.dream-search .search-input { max-width: 520px; }
.dream-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.dream-chip {
  padding: 6px 12px;
  border: 1px solid #f0dcec;
  border-radius: 99px;
  background: #fff;
  color: #8a7b93;
  font-size: 0.76rem;
}
.dream-chip:hover { background: #fff4fa; }
.dream-chip.is-active { background: linear-gradient(135deg, #f7a6c4, #b794e4); border-color: transparent; color: #fff; font-weight: 600; }
.dream-count { margin-top: 12px; color: #a99bb2; font-size: 0.76rem; }
.dream-grid { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.dream-card { border: 1px solid #f3e2ef; border-radius: 14px; background: #fff; overflow: hidden; }
.dream-card summary { display: flex; align-items: center; gap: 12px; padding: 13px 16px; cursor: pointer; list-style: none; }
.dream-card summary::-webkit-details-marker { display: none; }
.dream-emoji { flex: none; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: #fff3fa; font-size: 1.1rem; }
.dream-summary { flex: 1; min-width: 0; }
.dream-cat { display: block; color: #b4588a; font-size: 0.62rem; letter-spacing: 0.04em; }
.dream-summary strong { display: block; color: #43304f; font-size: 0.92rem; }
.dream-summary small { display: block; overflow: hidden; color: #a99bb2; font-size: 0.74rem; text-overflow: ellipsis; white-space: nowrap; }
.dream-arrow { flex: none; color: #c078a0; font-size: 1.1rem; transition: transform 0.2s var(--ease); }
.dream-card[open] .dream-arrow { transform: rotate(45deg); }
.dream-detail { padding: 0 16px 16px 64px; }
.dream-detail p { color: #5b4b68; font-size: 0.86rem; line-height: 1.85; }
.dream-advice { margin-top: 8px; padding: 10px 12px; border-radius: 10px; background: #fff7fc; font-size: 0.83rem !important; }
.dream-advice strong { color: #b4588a; margin-right: 4px; }
.dream-kw { margin-top: 8px; color: #a99bb2 !important; font-size: 0.72rem !important; }
.dream-empty { padding: 30px 20px; border: 1px dashed #ecd8ec; border-radius: 14px; color: #a99bb2; font-size: 0.86rem; text-align: center; line-height: 1.8; }

@media (max-width: 860px) {
  .zodiac-guide-grid { grid-template-columns: 1fr; }
  .guide-section h2 { font-size: 1.35rem; }
}

@media (max-width: 620px) {
  .toc-row { gap: 5px; }
  .toc-chip { padding: 6px 11px; font-size: 0.72rem; }
  .guide-body { gap: 34px; }
  .guide-table { min-width: 480px; font-size: 0.78rem; }
  .guide-table th, .guide-table td { padding: 9px 10px; }
  .dream-detail { padding-left: 16px; }
  .dream-summary small { max-width: 42vw; }
}


/* 보정 */
h1, h2, h3, h4, .quiz-question, .qr-title h4, .result-name, .fc-title h3, .guide-section h2 {
  word-break: keep-all;
  overflow-wrap: break-word;
}

.tool-tab.is-active {
  background: linear-gradient(135deg, #f7a6c4, #b794e4);
  color: #fff;
  box-shadow: 0 10px 24px rgba(215, 140, 180, 0.28);
}

.si-body { flex: 1; min-width: 0; }
.search-item strong { white-space: normal; }
.search-item small { max-width: none; }

@media (max-width: 620px) {
  .quiz-top { padding-right: 54px; }
  .quiz-top h3 { font-size: 1.02rem; line-height: 1.4; }
  .search-item { padding: 10px; }
  .si-type { min-width: 50px; }
}

/* 브랜드 달 아이콘 */
.brand-mark .moon { fill: #d38cb0; }
