@charset "UTF-8";
/* =========================================================
   星詠占い館 - Premium Fortune-Telling Site
   Design System & Components
   ========================================================= */

/* ===== TOKENS ===== */
:root {
  /* Core palette (Moon/Cosmic primary) */
  --bg-deep:      #070312;
  --bg-base:      #0B0520;
  --bg-elev-1:    #140830;
  --bg-elev-2:    #1E0D45;
  --bg-elev-3:    #2A1560;
  --bg-cream:     #FBF5E8;
  --bg-cream-2:   #F6EDD9;

  --accent-gold:     #E8C36A;
  --accent-gold-dk:  #B8912E;
  --accent-gold-lt:  #F7D98A;
  --accent-rose:     #F299BE;
  --accent-lilac:    #C5A4F4;
  --accent-amber:    #F5A961;
  --accent-emerald:  #6FD1A1;
  --accent-indigo:   #7B8CE0;

  --text-hi:     #FFFFFF;
  --text-mid:    rgba(255,255,255,.86);
  --text-dim:    rgba(255,255,255,.64);
  --text-faint:  rgba(255,255,255,.44);
  --text-ink:    #1F1433;
  --text-ink-2:  #4A3A5F;

  --border-soft: rgba(255,255,255,.08);
  --border-mid:  rgba(255,255,255,.14);
  --border-gold: rgba(232,195,106,.35);

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0,0,0,.25);
  --shadow-md: 0 8px 28px rgba(0,0,0,.35);
  --shadow-lg: 0 24px 60px rgba(0,0,0,.5);
  --shadow-gold: 0 10px 30px rgba(232,195,106,.22);
  --glow-purple: 0 0 40px rgba(160,100,240,.35);
  --glow-gold:   0 0 28px rgba(232,195,106,.38);

  /* Radius */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-pill: 999px;

  /* Motion */
  --ease: cubic-bezier(.22,.8,.28,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
  --d-1: 160ms;
  --d-2: 280ms;
  --d-3: 520ms;
  --d-4: 800ms;

  /* Containers */
  --wrap: 1280px;
  --wrap-wide: 1440px;
  --pad-x: clamp(16px, 4vw, 40px);
  --section-py: clamp(56px, 6.5vw, 96px);

  /* Aspect ratios */
  --ar-banner: 460 / 224;  /* AI生成サムネ実寸比（すべて揃える） */
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-mid);
  background: var(--bg-base);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: 0.01em;
}
a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; height: auto; display: block; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select, textarea { font: inherit; }
ul, ol { list-style: none; }
h1,h2,h3,h4,h5 { font-family: "Shippori Mincho", "Yu Mincho", serif; font-weight: 700; color: var(--text-hi); line-height: 1.3; letter-spacing: .02em; }
small { font-size: 11px; }

/* ===== SPARKLE CURSOR (desktop only) ===== */
@media (hover: hover) and (pointer: fine) {
  html, body, a, button, select, input, textarea,
  .zodiac-card, .teller-card, .cat-card, .quick-card, .tarot-mode,
  .card-back, .hero-arrow, .rail-arrow, .nav-toggle, .m-cta-btn,
  .tarot-phase * {
    cursor: none !important;
  }
}
/* カーソル本体: 光の塊（輪郭なし、柔らかなグロー） */
.cursor-core {
  position: fixed;
  top: 0; left: 0;
  width: 40px; height: 40px;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  will-change: left, top;
  mix-blend-mode: screen; /* 白い光のブレンド */
}
.cursor-core::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%,
      rgba(255,250,225,1) 0%,
      rgba(255,240,195,.85) 18%,
      rgba(232,195,106,.45) 42%,
      rgba(232,195,106,.18) 65%,
      transparent 82%);
  filter: blur(.8px);
}
.cursor-core::after {
  content: "";
  position: absolute;
  inset: -60%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,245,210,.35) 0%, rgba(232,195,106,.12) 45%, transparent 70%);
  filter: blur(6px);
  animation: corePulse 2.4s var(--ease) infinite alternate;
}
@keyframes corePulse {
  from { opacity: .75; transform: scale(.9); }
  to   { opacity: 1; transform: scale(1.12); }
}
.cursor-core.is-down {
  width: 56px; height: 56px;
}

/* 軌跡粒子: 小さな光球 */
.cursor-trail {
  position: fixed;
  pointer-events: none;
  top: 0; left: 0;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999;
  mix-blend-mode: screen;
  animation: sparkFade 1100ms cubic-bezier(.22,.8,.28,1) forwards;
  will-change: opacity, transform;
}
.cursor-trail::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(255,250,230,.95) 0%,
    rgba(255,235,180,.55) 35%,
    rgba(232,195,106,.2) 60%,
    transparent 78%);
  filter: blur(1px);
}
@keyframes sparkFade {
  0%   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  50%  { opacity: .75; }
  100% { opacity: 0; transform: translate(calc(-50% + var(--dx, 0px)), calc(-50% + var(--dy, 0px))) scale(.1); }
}

/* ===== BG: deep cosmic backdrop + ambient stars ===== */
body::before {
  content: "";
  position: fixed; inset: 0;
  z-index: -2;
  background:
    radial-gradient(1200px 600px at 90% -10%, rgba(160,120,255,.25), transparent 60%),
    radial-gradient(900px 500px at 10% 10%, rgba(232,195,106,.12), transparent 60%),
    radial-gradient(800px 800px at 50% 100%, rgba(80,40,180,.35), transparent 60%),
    linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-base) 40%, var(--bg-elev-1) 100%);
}
.starfield {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
  opacity: .6;
}
.starfield canvas {
  width: 100%;
  height: 100%;
  display: block;
  position: fixed;
  top: 0; left: 0;
}

/* ===== TYPOGRAPHY ELEMENTS ===== */
.kicker {
  display: inline-block;
  font-family: "Cormorant Garamond", serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .35em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 14px;
}
.h-title {
  font-size: clamp(24px, 3.2vw, 40px);
  letter-spacing: .04em;
  background: linear-gradient(180deg, #fff 0%, #F2E8D0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 10px;
}
.h-sub {
  color: var(--text-dim);
  font-size: 13px;
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.75;
}
.section-head {
  text-align: center;
  padding-bottom: clamp(28px, 4vw, 48px);
}

.chip {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .05em;
  border-radius: var(--r-pill);
  background: rgba(255,255,255,.08);
  color: var(--text-hi);
  border: 1px solid var(--border-soft);
  white-space: nowrap;
}
.chip-gold {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  border-radius: var(--r-pill);
  background: linear-gradient(135deg, var(--accent-gold-lt), var(--accent-gold-dk));
  color: #0B0520;
}

/* ===== SECTIONS ===== */
.section {
  position: relative;
  padding: var(--section-py) 0;
}
.section > .section-head,
.section > .cat-grid,
.section > .div-grid,
.section > .rank-list,
.section > .feature-grid,
.section > .tarot-grid,
.section > .zodiac-grid,
.section > .compat-card,
.section > .moon-row,
.section > .quick-grid,
.section > .teller-rail-wrap,
.section > .zodiac-result {
  max-width: var(--wrap);
  margin-left: auto; margin-right: auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  border-radius: var(--r-pill);
  transition: transform var(--d-1) var(--ease), box-shadow var(--d-1) var(--ease), background var(--d-1) var(--ease), color var(--d-1) var(--ease);
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
  letter-spacing: .04em;
}
.btn.sm { padding: 8px 14px; font-size: 12px; }
.btn.lg { padding: 16px 30px; font-size: 15px; }
.btn.full { width: 100%; }
.btn i { width: 16px; height: 16px; stroke-width: 2.2; }
.btn.lg i { width: 18px; height: 18px; }

.btn-primary {
  background: linear-gradient(135deg, var(--accent-gold-lt) 0%, var(--accent-gold) 45%, var(--accent-gold-dk) 100%);
  color: var(--bg-base);
  box-shadow: var(--shadow-gold);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(232,195,106,.38); }

.btn-gold {
  background: linear-gradient(135deg, #F6D97A, #C89430);
  color: #100622;
  box-shadow: var(--shadow-gold);
}
.btn-gold:hover { transform: translateY(-2px); filter: brightness(1.05); }

.btn-outline {
  background: transparent;
  color: var(--text-hi);
  border: 1px solid var(--border-gold);
}
.btn-outline:hover { border-color: var(--accent-gold); color: var(--accent-gold); }

.btn-glass {
  background: rgba(255,255,255,.08);
  color: var(--text-hi);
  border: 1px solid var(--border-mid);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.btn-glass:hover { background: rgba(255,255,255,.14); }

.btn-ghost {
  color: var(--text-mid);
  background: transparent;
}
.btn-ghost:hover { color: var(--accent-gold); }

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  background: rgba(11,5,32,.72);
  border-bottom: 1px solid var(--border-soft);
  transition: background var(--d-2) var(--ease);
}
.site-header.is-scrolled { background: rgba(11,5,32,.92); }
.header-inner {
  max-width: var(--wrap-wide);
  margin: 0 auto;
  padding: 10px var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand { display: flex; align-items: center; }
.brand-logo {
  height: 38px;
  width: auto;
  filter: drop-shadow(0 4px 14px rgba(232,195,106,.25));
}
.header-actions {
  display: flex; align-items: center; gap: 8px;
}
.header-actions .btn-ghost { padding: 8px 12px; font-size: 13px; }
.header-actions .btn-ghost i { width: 18px; height: 18px; }
.header-actions .btn { padding: 9px 18px; font-size: 13px; }
.nav-toggle {
  width: 42px; height: 42px;
  display: none;
  align-items: center; justify-content: center;
  border-radius: var(--r-pill);
  background: rgba(255,255,255,.07);
  border: 1px solid var(--border-mid);
  color: var(--text-hi);
}
.nav-toggle i { width: 22px; height: 22px; }

/* header news ticker (gold base, shooting-star style) */
.header-bar {
  border-top: 1px solid rgba(255,235,170,.3);
  overflow: hidden;
  background: linear-gradient(90deg, #8B7030, #A8893E 30%, #9B7E35 60%, #A8893E);
  background-size: 200% 100%;
  position: relative;
}
.header-bar::before {
  content: "";
  position: absolute;
  top: 0; left: -40%;
  width: 30%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,240,.25), transparent);
  animation: tickerShimmer 4s linear infinite;
  pointer-events: none;
}
@keyframes tickerShimmer {
  from { left: -40%; }
  to { left: 110%; }
}
.marquee {
  display: flex;
  gap: 40px;
  white-space: nowrap;
  padding: 7px 0;
  font-size: 11.5px;
  font-weight: 600;
  color: rgba(255,252,235,.95);
  letter-spacing: .04em;
  animation: marquee 48s linear infinite;
  width: max-content;
}
.marquee span { display: inline-flex; align-items: center; gap: 0; }
.marquee i, .marquee svg { display: none !important; } /* アイコン非表示 */
.marquee .sep { color: rgba(255,245,210,.4); margin: 0 4px; font-size: 8px; }
.marquee b { color: #FFF8DC; font-weight: 800; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ===== NAV PRIMARY ===== */
/* PC: ヘッダー内インラインナビバー */
.nav-primary {
  display: contents; /* PC版ではレイアウトに影響させない */
}
.nav-primary ul {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.nav-primary ul::-webkit-scrollbar { display: none; }
.nav-primary a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-weight: 600;
  font-size: 13px;
  color: var(--text-mid);
  white-space: nowrap;
  border-radius: var(--r-pill);
  transition: color var(--d-1), background var(--d-1);
}
.nav-primary a i {
  width: 15px; height: 15px;
  color: var(--accent-gold);
  opacity: .7;
}
.nav-primary a:hover {
  color: var(--accent-gold);
  background: rgba(232,195,106,.08);
}
.nav-primary a:hover i { opacity: 1; }
.nav-close { display: none; } /* PC版では閉じるボタン不要 */
.nav-footer { display: none; } /* PC版ではナビ内ログインボタン不要 */

.nav-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s var(--ease);
  z-index: 200;
}
body.nav-open .nav-backdrop { opacity: 1; pointer-events: auto; }
body.nav-open { overflow: hidden; }

/* (header-inner は上部で定義済み) */

/* ===== MOBILE: スライドパネルに切り替え ===== */
@media (max-width: 768px) {
  .nav-primary {
    display: flex;
    position: fixed;
    top: 0; right: 0;
    width: min(360px, 88vw);
    height: 100vh;
    padding: 20px 22px 130px;
    background: linear-gradient(180deg, #120726, #1a0b3b 60%, #0B0520);
    border-left: 1px solid var(--border-mid);
    box-shadow: -20px 0 60px rgba(0,0,0,.55);
    transform: translateX(100%);
    transition: transform .42s var(--ease);
    overflow-y: auto;
    z-index: 210;
    flex-direction: column;
    gap: 20px;
  }
  .nav-primary.is-open { transform: translateX(0); }
  .nav-primary ul {
    flex-direction: column;
    gap: 2px;
    margin-top: 48px;
    overflow: visible;
  }
  .nav-primary a {
    gap: 14px;
    padding: 14px;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-hi);
    border-radius: var(--r-md);
  }
  .nav-primary a i { width: 20px; height: 20px; opacity: 1; }
  .nav-primary a:hover { transform: translateX(4px); }
  .nav-close {
    display: flex;
    position: absolute;
    top: 14px; right: 14px;
    width: 40px; height: 40px;
    border-radius: var(--r-pill);
    background: rgba(255,255,255,.08);
    border: 1px solid var(--border-mid);
    color: var(--text-hi);
    align-items: center;
    justify-content: center;
  }
  .nav-close i { width: 20px; height: 20px; }
  .nav-footer {
    display: flex;
    margin-top: auto;
    flex-direction: column;
    gap: 8px;
    padding-top: 20px;
    border-top: 1px solid var(--border-soft);
  }
}

/* ===== HERO (split layout: text + framed image + atmos glow) ===== */
.hero {
  position: relative;
  padding: clamp(60px, 8vw, 120px) 0 clamp(80px, 9vw, 120px);
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  inset: -15%;
  z-index: 0;
  background:
    radial-gradient(600px 400px at 80% 20%, rgba(232,195,106,.22), transparent 70%),
    radial-gradient(700px 500px at 20% 80%, rgba(124,92,228,.22), transparent 70%),
    radial-gradient(900px 600px at 50% 50%, rgba(40,20,90,.35), transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--wrap-wide);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 60px);
  align-items: center;
}

.hero-copy { position: relative; min-width: 0; }
.hero-slides-text { position: relative; min-height: clamp(300px, 36vh, 400px); }
.hero-text {
  position: absolute; inset: 0;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity .55s var(--ease), transform .55s var(--ease);
}
.hero-text.is-active {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  background: rgba(232,195,106,.14);
  border: 1px solid var(--border-gold);
  color: var(--accent-gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.hero-eyebrow i { width: 13px; height: 13px; }
.hero-title {
  font-size: clamp(26px, 4vw, 46px);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: .04em;
  margin-bottom: 18px;
  background: linear-gradient(180deg, #FFF 30%, #F2D98E 120%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 4px 30px rgba(0,0,0,.3);
}
.hero-desc {
  font-size: 14px;
  line-height: 1.85;
  color: var(--text-dim);
  margin-bottom: 28px;
  max-width: 520px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-nav {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: clamp(20px, 3vw, 34px);
}
.hero-arrow {
  width: 44px; height: 44px;
  border-radius: var(--r-pill);
  background: rgba(255,255,255,.06);
  border: 1px solid var(--border-mid);
  color: var(--text-hi);
  display: flex; align-items: center; justify-content: center;
  transition: all var(--d-1) var(--ease);
}
.hero-arrow:hover { background: var(--accent-gold); color: var(--bg-base); border-color: var(--accent-gold); }
.hero-arrow i { width: 20px; height: 20px; }
.hero-dots { display: flex; gap: 8px; align-items: center; }
.hero-dot {
  width: 7px; height: 7px;
  border-radius: var(--r-pill);
  background: rgba(255,255,255,.26);
  transition: all var(--d-2) var(--ease);
  cursor: pointer;
  border: 0;
}
.hero-dot.is-active {
  width: 28px;
  background: linear-gradient(90deg, var(--accent-gold-lt), var(--accent-gold));
}

/* Hero gallery (horizontal slide carousel) */
.hero-gallery {
  position: relative;
  aspect-ratio: var(--ar-banner);
  width: 100%;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow:
    0 40px 80px rgba(0,0,0,.55),
    0 0 0 1px var(--border-gold),
    inset 0 0 0 1px rgba(255,255,255,.06);
}
.hero-gallery::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(7,3,18,.45) 100%);
  z-index: 2;
  pointer-events: none;
}
.hero-gallery::after {
  content: "";
  position: absolute;
  inset: -40%;
  z-index: -1;
  background: radial-gradient(50% 50% at 50% 50%, rgba(232,195,106,.35), transparent 70%);
  filter: blur(60px);
  opacity: .7;
  pointer-events: none;
  animation: heroGlow 7s var(--ease) infinite alternate;
}
@keyframes heroGlow {
  from { opacity: .5; transform: scale(.95); }
  to   { opacity: .85; transform: scale(1.08); }
}
.hero-gallery-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform .7s cubic-bezier(.4, 0, .2, 1);
}
.hero-frame {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
}
.hero-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* ===== QUICK ===== */
.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.quick-card {
  position: relative;
  text-align: left;
  padding: 24px 22px 22px;
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  border: 1px solid var(--border-soft);
  color: var(--text-hi);
  cursor: pointer;
  transition: transform var(--d-2) var(--ease), border-color var(--d-2), box-shadow var(--d-2), background var(--d-2);
  overflow: hidden;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.quick-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, transparent 40%, rgba(232,195,106,.3) 100%);
  opacity: 0;
  transition: opacity var(--d-2);
  z-index: -1;
  padding: 1px;
}
.quick-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-gold);
  box-shadow: var(--shadow-lg), var(--glow-gold);
  background: linear-gradient(180deg, rgba(232,195,106,.08), rgba(124,92,228,.05));
}
.quick-card:hover::before { opacity: 1; }
.quick-icon {
  width: 50px; height: 50px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(232,195,106,.22), rgba(124,92,228,.18));
  border: 1px solid var(--border-gold);
  color: var(--accent-gold);
  margin-bottom: 4px;
}
.quick-icon i { width: 26px; height: 26px; }
.quick-card h3 {
  font-size: 17px;
  line-height: 1.35;
  color: var(--text-hi);
  letter-spacing: .04em;
}
.quick-card p {
  font-size: 12px;
  color: var(--text-dim);
  flex: 1;
}
.quick-card .chip {
  align-self: flex-start;
  color: var(--accent-gold);
  border-color: var(--border-gold);
  background: rgba(232,195,106,.08);
}

/* ===== ZODIAC (AI illustrations) ===== */
.zodiac-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.zodiac-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  padding: 18px 12px 14px;
  border-radius: var(--r-lg);
  background: linear-gradient(165deg, rgba(255,255,255,.04), rgba(232,195,106,.02));
  border: 1px solid var(--border-soft);
  color: var(--text-hi);
  cursor: pointer;
  transition: all var(--d-2) var(--ease);
  overflow: hidden;
  text-align: center;
}
.zodiac-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 30%, rgba(232,195,106,.22), transparent 70%);
  opacity: 0;
  transition: opacity var(--d-2);
  pointer-events: none;
}
.z-art {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  overflow: hidden;
  border-radius: var(--r-md);
}
.z-art img {
  width: 108%;
  height: 108%;
  object-fit: contain;
  filter: drop-shadow(0 6px 16px rgba(232,195,106,.28));
  transition: transform var(--d-3) var(--ease-out);
}
.zodiac-card b {
  font-family: "Shippori Mincho", serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .08em;
  position: relative;
  z-index: 1;
}
.zodiac-card small {
  color: var(--text-dim);
  font-size: 10px;
  font-family: "Cormorant Garamond", serif;
  letter-spacing: .12em;
  position: relative;
  z-index: 1;
}
.zodiac-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-gold);
  box-shadow: var(--shadow-md), var(--glow-gold);
}
.zodiac-card:hover::before { opacity: 1; }
.zodiac-card:hover .z-art img {
  transform: scale(1.12) rotate(-3deg);
}

.zodiac-result {
  margin-top: 36px;
  display: flex;
  justify-content: center;
}
.zodiac-result-inner {
  position: relative;
  max-width: 520px;
  width: 100%;
  padding: 40px 30px;
  border-radius: var(--r-xl);
  background:
    radial-gradient(400px 200px at 50% -10%, rgba(232,195,106,.22), transparent 70%),
    linear-gradient(180deg, rgba(20,8,48,.95), rgba(30,13,69,.95));
  border: 1px solid var(--border-gold);
  box-shadow: var(--shadow-lg), inset 0 0 60px rgba(232,195,106,.06);
  color: var(--text-hi);
}
.zodiac-result-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 36px; height: 36px;
  border-radius: var(--r-pill);
  background: rgba(255,255,255,.08);
  color: var(--text-hi);
  display: flex; align-items: center; justify-content: center;
}
.zodiac-result-close i { width: 18px; height: 18px; }
.zodiac-result h3 {
  font-size: 32px;
  text-align: center;
  margin: 12px 0 12px;
  letter-spacing: .08em;
}
.z-result-art {
  display: flex;
  justify-content: center;
  margin: 4px 0 18px;
}
.z-result-art img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  filter: drop-shadow(0 8px 24px rgba(232,195,106,.35));
  animation: zArtFloat 4s var(--ease) infinite alternate;
}
@keyframes zArtFloat {
  from { transform: translateY(0) scale(1); }
  to   { transform: translateY(-6px) scale(1.04); }
}
.luck-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 22px;
}
.luck-item { text-align: center; }
.luck-item span { color: var(--text-dim); font-size: 11px; display: block; margin-bottom: 6px; letter-spacing: .1em; }
.stars {
  display: inline-flex; gap: 2px; justify-content: center;
}
.stars::before {
  content: "★★★★★";
  background: linear-gradient(90deg, var(--accent-gold) var(--fill,100%), rgba(255,255,255,.16) var(--fill,100%));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 16px;
  letter-spacing: 2px;
}
.zodiac-result p {
  color: var(--text-mid);
  text-align: center;
  line-height: 1.9;
  margin-bottom: 22px;
  font-size: 13px;
}
.zodiac-result-cta .btn { width: 100%; }

/* ===== TELLERS (horizontal rail) ===== */
.teller-rail-wrap {
  position: relative;
  padding-right: var(--pad-x) !important;
  padding-left: var(--pad-x) !important;
}
.teller-rail {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  padding: 8px 4px 28px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
}
.teller-rail::-webkit-scrollbar { display: none; }

.teller-card {
  position: relative;
  flex: 0 0 280px;
  scroll-snap-align: start;
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(232,195,106,.03));
  border: 1px solid var(--border-soft);
  padding: 14px;
  color: var(--text-hi);
  transition: transform var(--d-2) var(--ease), box-shadow var(--d-2) var(--ease), border-color var(--d-2);
  overflow: hidden;
}
.teller-img {
  position: relative;
  aspect-ratio: var(--ar-banner);
  border-radius: var(--r-md);
  overflow: hidden;
  margin-bottom: 14px;
  background: #0B0520;
  box-shadow: inset 0 0 0 1px var(--border-soft);
}
.teller-img img {
  width: 100%; height: 100%;
  object-fit: cover;   /* aspect比率一致なのでクロップは発生しない */
  object-position: center;
  transition: transform .6s var(--ease-out);
  display: block;
}
.teller-card:hover .teller-img img { transform: scale(1.06); }
.teller-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-gold);
  box-shadow: var(--shadow-md), var(--glow-gold);
}
.teller-badge {
  position: absolute;
  top: 22px; left: 22px;
  padding: 5px 10px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .12em;
  border-radius: var(--r-pill);
  background: rgba(11,5,32,.85);
  color: var(--accent-gold);
  border: 1px solid var(--border-gold);
  backdrop-filter: blur(6px);
}
.teller-card h3 {
  font-size: 17px;
  margin-bottom: 6px;
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}
.teller-card h3 small {
  font-weight: 400;
  font-size: 11px;
  color: var(--text-dim);
  font-family: "Cormorant Garamond", serif;
  letter-spacing: .1em;
}
.teller-card p {
  font-size: 12.5px;
  color: var(--text-dim);
  line-height: 1.65;
  margin-bottom: 12px;
  min-height: 40px;
}
.teller-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-gold);
  padding-top: 10px;
  border-top: 1px solid var(--border-soft);
  width: 100%;
}
.teller-tag i { width: 13px; height: 13px; }

.rail-arrow {
  position: absolute;
  top: 45%;
  width: 44px; height: 44px;
  border-radius: var(--r-pill);
  background: rgba(11,5,32,.85);
  border: 1px solid var(--border-gold);
  color: var(--text-hi);
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-md);
  z-index: 3;
  transition: background var(--d-1), color var(--d-1);
}
.rail-arrow:hover { background: var(--accent-gold); color: var(--bg-base); }
.rail-arrow i { width: 20px; height: 20px; }
.rail-prev { left: 4px; }
.rail-next { right: 4px; }

/* ===== TAROT (22-card interactive deck with drawing animation) ===== */
.tarot-modes {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 0 auto clamp(32px, 4vw, 48px);
  flex-wrap: wrap;
}
.tarot-mode {
  padding: 10px 22px;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--r-pill);
  border: 1px solid var(--border-mid);
  background: rgba(255,255,255,.04);
  color: var(--text-mid);
  transition: all var(--d-1);
  letter-spacing: .05em;
}
.tarot-mode:hover { color: var(--accent-gold); border-color: var(--border-gold); }
.tarot-mode.is-active {
  background: linear-gradient(135deg, var(--accent-gold-lt), var(--accent-gold));
  color: var(--bg-base);
  border-color: var(--accent-gold);
  box-shadow: var(--shadow-gold);
}

.tarot-stage {
  max-width: 960px;
  margin: 0 auto;
  padding: clamp(30px, 5vw, 56px) clamp(18px, 3vw, 40px);
  border-radius: var(--r-xl);
  background:
    radial-gradient(600px 300px at 50% 0%, rgba(124,92,228,.22), transparent 80%),
    linear-gradient(180deg, rgba(20,8,48,.85), rgba(11,5,32,.9));
  border: 1px solid var(--border-gold);
  box-shadow: var(--shadow-lg), inset 0 0 80px rgba(232,195,106,.04);
  min-height: 560px;
  position: relative;
}

.tarot-phase {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
}
.tarot-phase.is-active { display: flex; }

.tarot-prompt {
  text-align: center;
  color: var(--text-dim);
  font-size: 13px;
  line-height: 1.8;
  letter-spacing: .05em;
}

/* ===== DECK (idle) - fanned cards ===== */
.deck-wrapper {
  position: relative;
  width: min(460px, 90vw);
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1400px;
}
.deck {
  position: relative;
  width: 170px; height: 260px;
  transform-style: preserve-3d;
}
.deck .card-back {
  position: absolute;
  top: 0; left: 50%;
  width: 170px; height: 260px;
  margin-left: -85px;
  border-radius: var(--r-md);
  overflow: hidden;
  background: #0B0520;
  box-shadow:
    0 12px 28px rgba(0,0,0,.4),
    0 0 0 1.5px var(--accent-gold),
    inset 0 0 0 2px rgba(255,255,255,.04);
  cursor: pointer;
  transition: transform .5s var(--ease), box-shadow .3s var(--ease);
  backface-visibility: hidden;
  will-change: transform;
  transform-origin: 50% 100%;
}
.deck .card-back img {
  width: 100%; height: 100%; object-fit: cover;
  display: block;
}
.deck .card-back::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(232,195,106,.1) 100%);
  pointer-events: none;
}
/* Stack effect for idle */
.deck:not(.fan-out) .card-back:nth-child(1) { transform: translateY(0) rotate(-6deg); }
.deck:not(.fan-out) .card-back:nth-child(2) { transform: translateY(-4px) translateX(3px) rotate(-2deg); }
.deck:not(.fan-out) .card-back:nth-child(3) { transform: translateY(-8px) translateX(6px) rotate(2deg); }
.deck:not(.fan-out) .card-back:nth-child(4) { transform: translateY(-12px) translateX(9px) rotate(6deg); }
.deck:not(.fan-out) .card-back:nth-child(n+5) { display: none; }

/* Shuffle animation */
@keyframes shuffle {
  0%, 100% { transform: translateY(0) rotate(var(--deg, 0deg)); }
  50% { transform: translateY(-80px) rotate(var(--deg-mid, 25deg)); }
}
.deck.is-shuffling .card-back {
  animation: shuffle .6s var(--ease) infinite;
}
.deck.is-shuffling .card-back:nth-child(1) { --deg: -6deg; --deg-mid: -40deg; animation-delay: 0ms; }
.deck.is-shuffling .card-back:nth-child(2) { --deg: -2deg; --deg-mid: -15deg; animation-delay: 80ms; }
.deck.is-shuffling .card-back:nth-child(3) { --deg: 2deg; --deg-mid: 15deg; animation-delay: 160ms; }
.deck.is-shuffling .card-back:nth-child(4) { --deg: 6deg; --deg-mid: 40deg; animation-delay: 240ms; }

/* Fan out - all 22 cards fanned */
.deck.fan-out {
  width: 100%;
  height: 360px;
}
.deck.fan-out .card-back {
  display: block;
  width: 120px; height: 180px;
  margin-left: -60px;
  top: 50%;
  transform-origin: 50% 120%;
  transition: transform .5s var(--ease), box-shadow .2s;
}
.deck.fan-out .card-back:hover {
  transform: var(--t-base) translateY(-24px) scale(1.1) !important;
  box-shadow: 0 20px 40px rgba(232,195,106,.35), 0 0 0 2px var(--accent-gold);
  z-index: 100;
}
.deck.fan-out .card-back.is-dimmed { opacity: .35; pointer-events: none; }

/* Drawn phase */
.drawn-cards {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}
.drawn-card {
  position: relative;
  width: 168px; height: 260px;
  perspective: 1400px;
  cursor: default;
}
.drawn-card .face {
  position: absolute; inset: 0;
  backface-visibility: hidden;
  transition: transform 1s var(--ease-out);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow:
    0 14px 36px rgba(0,0,0,.5),
    0 0 0 1.5px var(--accent-gold);
}
.drawn-card .face img { width: 100%; height: 100%; object-fit: cover; display: block; }
.drawn-card .face.back { transform: rotateY(0); }
.drawn-card .face.front { transform: rotateY(180deg); background: #140830; }
.drawn-card.is-flipped .face.back { transform: rotateY(-180deg); }
.drawn-card.is-flipped .face.front { transform: rotateY(0); }
.drawn-card.reversed .face.front img { transform: rotate(180deg); }
.drawn-card .pos-label {
  position: absolute;
  top: -28px;
  left: 0; right: 0;
  text-align: center;
  font-family: "Cormorant Garamond", serif;
  font-size: 13px;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--accent-gold);
}

.tarot-reading {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  max-width: 640px;
  margin: 12px auto 0;
}
.reading-item {
  padding: 16px 20px;
  border-radius: var(--r-md);
  background: rgba(232,195,106,.06);
  border: 1px solid var(--border-gold);
}
.reading-label {
  display: inline-block;
  font-family: "Cormorant Garamond", serif;
  font-size: 11px;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 4px;
}
.reading-name {
  font-family: "Shippori Mincho", serif;
  font-size: 18px;
  color: var(--text-hi);
  margin-bottom: 6px;
  letter-spacing: .05em;
}
.reading-meaning {
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.8;
}

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

/* ===== CATEGORY (rich illustration cards) ===== */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.cat-card {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--r-lg);
  color: var(--text-hi);
  overflow: hidden;
  display: block;
  transition: transform var(--d-2) var(--ease), box-shadow var(--d-2) var(--ease);
  border: 1px solid var(--border-gold);
  box-shadow: var(--shadow-md);
}
.cat-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg), var(--glow-gold);
}
.cat-bg {
  position: absolute; inset: 0;
  overflow: hidden;
}
.cat-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .9s var(--ease-out);
  display: block;
}
.cat-card:hover .cat-bg img { transform: scale(1.08); }
.cat-bg::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(7,3,18,.15) 0%, rgba(7,3,18,.55) 55%, rgba(7,3,18,.95) 100%);
  transition: background .3s var(--ease);
}
.cat-card:hover .cat-bg::after {
  background:
    linear-gradient(180deg, rgba(7,3,18,.1) 0%, rgba(7,3,18,.5) 55%, rgba(7,3,18,.96) 100%);
}
.cat-content {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 22px 24px 26px;
  z-index: 2;
}
.cat-tag {
  display: inline-block;
  font-family: "Cormorant Garamond", serif;
  font-size: 10.5px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--accent-gold);
  background: rgba(232,195,106,.12);
  border: 1px solid var(--border-gold);
  padding: 3px 10px;
  border-radius: var(--r-pill);
  margin-bottom: 10px;
}
.cat-card h3 {
  font-family: "Shippori Mincho", serif;
  font-size: 22px;
  letter-spacing: .06em;
  margin-bottom: 6px;
  text-shadow: 0 4px 20px rgba(0,0,0,.5);
}
.cat-card p {
  font-size: 12.5px;
  line-height: 1.7;
  color: rgba(255,255,255,.85);
  margin-bottom: 14px;
}
.cat-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-gold);
  padding-top: 10px;
  border-top: 1px solid rgba(232,195,106,.25);
  letter-spacing: .08em;
}
.cat-link i { width: 14px; height: 14px; transition: transform var(--d-1); }
.cat-card:hover .cat-link i { transform: translateX(4px); }

/* ===== COMPAT (celestial love theme) ===== */
.compat-card {
  position: relative;
  max-width: 680px;
  margin: 0 auto;
  padding: 48px 36px 40px;
  border-radius: var(--r-xl);
  background:
    radial-gradient(500px 250px at 50% -5%, rgba(242,153,190,.2), transparent 70%),
    radial-gradient(400px 200px at 20% 80%, rgba(124,92,228,.15), transparent 70%),
    radial-gradient(400px 200px at 80% 80%, rgba(232,195,106,.1), transparent 70%),
    linear-gradient(180deg, rgba(25,10,55,.92), rgba(15,6,35,.95));
  border: 1px solid var(--border-gold);
  text-align: center;
  color: var(--text-hi);
  box-shadow: var(--shadow-lg), inset 0 0 80px rgba(242,153,190,.04);
  overflow: hidden;
}

/* Orbit decoration */
.compat-orbit {
  position: absolute;
  inset: -20%;
  pointer-events: none;
  z-index: 0;
}
.orbit-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(242,153,190,.08);
}
.orbit-ring.orbit-1 { inset: 15%; animation: orbitSpin 30s linear infinite; }
.orbit-ring.orbit-2 { inset: 25%; border-color: rgba(232,195,106,.06); animation: orbitSpin 45s linear infinite reverse; }
.orbit-dot {
  position: absolute;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-rose);
  box-shadow: 0 0 12px var(--accent-rose);
}
.orbit-dot-a { top: 18%; left: 50%; animation: orbitDotA 30s linear infinite; }
.orbit-dot-b { bottom: 20%; right: 30%; background: var(--accent-gold); box-shadow: 0 0 12px var(--accent-gold); animation: orbitDotB 45s linear infinite; }
@keyframes orbitSpin { to { transform: rotate(360deg); } }
@keyframes orbitDotA {
  0% { top: 18%; left: 50%; }
  25% { top: 50%; left: 82%; }
  50% { top: 82%; left: 50%; }
  75% { top: 50%; left: 18%; }
  100% { top: 18%; left: 50%; }
}
@keyframes orbitDotB {
  0% { bottom: 20%; right: 30%; }
  25% { bottom: 50%; right: 15%; }
  50% { bottom: 80%; right: 40%; }
  75% { bottom: 50%; right: 70%; }
  100% { bottom: 20%; right: 30%; }
}

.compat-inputs {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
}

.compat-person {
  padding: 24px 18px 20px;
  border-radius: var(--r-lg);
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  transition: border-color var(--d-2), box-shadow var(--d-2);
}
.compat-person:hover {
  border-color: var(--border-gold);
  box-shadow: 0 0 30px rgba(232,195,106,.12);
}
.person-avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid rgba(232,195,106,.3);
  color: var(--accent-gold);
  background: rgba(232,195,106,.06);
}
.person-avatar i { width: 26px; height: 26px; }
.person-a .person-avatar { border-color: rgba(242,153,190,.4); color: var(--accent-rose); background: rgba(242,153,190,.06); }
.person-label {
  font-size: 11px;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--accent-gold);
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
}
.person-a .person-label { color: var(--accent-rose); }

.custom-select-wrap {
  position: relative;
  width: 100%;
}
.compat-sign {
  width: 100%;
  padding: 12px 36px 12px 16px;
  background: rgba(11,5,32,.6);
  border: 1px solid rgba(232,195,106,.2);
  border-radius: var(--r-md);
  color: var(--text-hi);
  font-size: 15px;
  font-family: "Shippori Mincho", serif;
  font-weight: 700;
  appearance: none;
  -webkit-appearance: none;
  text-align: center;
  cursor: pointer;
  transition: border-color var(--d-1), box-shadow var(--d-1);
  letter-spacing: .05em;
}
.compat-sign:focus {
  outline: none;
  border-color: var(--accent-gold);
  box-shadow: 0 0 20px rgba(232,195,106,.25), inset 0 0 12px rgba(232,195,106,.06);
}
.select-arrow {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px; height: 16px;
  color: var(--accent-gold);
  pointer-events: none;
}

.compat-heart-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.compat-heart {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #F299BE, #E84390);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  box-shadow: 0 0 30px rgba(242,153,190,.5), 0 0 60px rgba(242,153,190,.2);
  animation: heartBeat 2s var(--ease) infinite;
}
.compat-heart i { width: 24px; height: 24px; }
.compat-vs {
  font-family: "Cormorant Garamond", serif;
  font-size: 14px;
  color: var(--accent-rose);
  opacity: .6;
  letter-spacing: .3em;
}
@keyframes heartBeat {
  0%, 100% { transform: scale(1); }
  15% { transform: scale(1.15); }
  30% { transform: scale(1); }
  45% { transform: scale(1.08); }
}

.compat-btn {
  position: relative;
  z-index: 1;
}

/* ===== COMPAT: Loading / diagnosing animation ===== */
.compat-loading {
  position: relative;
  z-index: 1;
  padding: 48px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.compat-loading-orbit {
  position: relative;
  width: 120px; height: 120px;
}
.loading-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(242,153,190,.2);
  border-top-color: var(--accent-rose);
  border-right-color: var(--accent-gold);
  animation: loadSpin 1.4s linear infinite;
}
@keyframes loadSpin { to { transform: rotate(360deg); } }
.loading-star {
  position: absolute;
  font-size: 18px;
  animation: loadStarPulse 1.2s var(--ease) infinite alternate;
}
.loading-star.star-1 { top: -8px; left: 50%; color: var(--accent-gold); animation-delay: 0s; }
.loading-star.star-2 { bottom: -8px; right: 10%; color: var(--accent-rose); animation-delay: .3s; }
.loading-star.star-3 { top: 40%; left: -8px; color: var(--accent-lilac); animation-delay: .6s; }
@keyframes loadStarPulse {
  from { opacity: .4; transform: scale(.8); }
  to { opacity: 1; transform: scale(1.3); }
}
.loading-text {
  font-family: "Shippori Mincho", serif;
  font-size: 15px;
  color: var(--text-mid);
  letter-spacing: .1em;
}
.loading-dots::after {
  content: "";
  animation: dots 1.5s steps(3) infinite;
}
@keyframes dots {
  0% { content: ""; }
  33% { content: "."; }
  66% { content: ".."; }
  100% { content: "..."; }
}

/* ===== COMPAT: Result ===== */
.compat-result {
  position: relative;
  z-index: 1;
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid rgba(242,153,190,.15);
  animation: resultFadeIn .8s var(--ease-out);
}
@keyframes resultFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: none; }
}
.result-constellation {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 100px;
  pointer-events: none;
  overflow: hidden;
}
.constellation-line { width: 100%; height: 100%; }

.compat-score {
  position: relative;
  width: 180px;
  height: 180px;
  margin: 0 auto 28px;
}
.ring { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-bg {
  fill: none;
  stroke: rgba(255,255,255,.06);
  stroke-width: 6;
}
.ring-fg {
  fill: none;
  stroke: url(#goldLine);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 377;
  stroke-dashoffset: 377;
  transition: stroke-dashoffset 1.8s var(--ease-out);
  filter: drop-shadow(0 0 16px rgba(242,153,190,.5)) drop-shadow(0 0 30px rgba(232,195,106,.3));
}
.score-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  font-family: "Shippori Mincho", serif;
  color: var(--text-hi);
  gap: 2px;
}
.score-label {
  font-size: 10px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--accent-rose);
  font-family: "Cormorant Garamond", serif;
}
.score-text b {
  font-size: 56px;
  font-weight: 800;
  background: linear-gradient(180deg, #FFF 20%, #F299BE 80%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}
.score-text small { font-size: 18px; color: var(--accent-rose); font-weight: 600; }

/* Breakdown bars */
.compat-breakdown {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 24px;
  margin: 0 auto 24px;
  max-width: 440px;
  text-align: left;
}
.breakdown-item {
  display: grid;
  grid-template-columns: 48px 1fr 36px;
  align-items: center;
  gap: 10px;
}
.breakdown-label {
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: .08em;
  font-weight: 600;
}
.breakdown-bar {
  height: 6px;
  border-radius: var(--r-pill);
  background: rgba(255,255,255,.08);
  overflow: hidden;
}
.breakdown-fill {
  height: 100%;
  border-radius: var(--r-pill);
  background: linear-gradient(90deg, var(--accent-rose), var(--accent-gold));
  width: 0%;
  transition: width 1.2s var(--ease-out);
  box-shadow: 0 0 8px rgba(242,153,190,.4);
}
.breakdown-fill.is-animated { width: var(--pct); }
.breakdown-val {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-gold);
  text-align: right;
  font-family: "Cormorant Garamond", serif;
  letter-spacing: .05em;
}

.compat-desc {
  color: var(--text-mid);
  font-size: 14px;
  line-height: 1.85;
  max-width: 460px;
  margin: 0 auto 24px;
  font-style: italic;
}
.compat-result-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Mobile */
@media (max-width: 768px) {
  .compat-card { padding: 32px 20px 28px; }
  .compat-inputs { gap: 12px; }
  .compat-person { padding: 18px 12px 16px; }
  .person-avatar { width: 46px; height: 46px; }
  .person-avatar i { width: 22px; height: 22px; }
  .compat-heart { width: 46px; height: 46px; }
  .compat-heart i { width: 20px; height: 20px; }
  .compat-score { width: 150px; height: 150px; }
  .score-text b { font-size: 44px; }
  .compat-breakdown { grid-template-columns: 1fr; gap: 10px; }
}

/* ===== MOON ===== */
.moon-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: stretch;
}
.moon-now, .moon-week {
  padding: 28px;
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(30,13,69,.55), rgba(11,5,32,.35));
  border: 1px solid var(--border-soft);
  color: var(--text-hi);
}
.moon-now {
  display: flex;
  gap: 22px;
  align-items: center;
}
.moon-viz {
  flex: 0 0 120px;
  aspect-ratio: 1;
  position: relative;
  border-radius: var(--r-pill);
  background: radial-gradient(circle at 40% 40%, #F8E7BD, #8A6E3B);
  box-shadow: var(--glow-gold), inset -10px -10px 28px rgba(0,0,0,.35);
}
.moon-disc {
  position: absolute;
  inset: 4%;
  border-radius: var(--r-pill);
  background: radial-gradient(circle at 50% 40%, rgba(255,255,255,.12), transparent 60%);
}
.moon-info h3 { font-size: 22px; margin: 6px 0 14px; }
.moon-info h3 b { color: var(--accent-gold); font-size: 28px; margin: 0 4px; }
.moon-facts { display: grid; gap: 8px; }
.moon-facts li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  color: var(--text-mid);
}
.moon-facts i { width: 16px; height: 16px; color: var(--accent-gold); }

.moon-week h4 {
  font-size: 15px;
  margin-bottom: 14px;
  color: var(--accent-gold);
  letter-spacing: .08em;
}
.week-strip {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  margin-bottom: 16px;
}
.week-strip .day {
  position: relative;
  padding: 12px 0;
  text-align: center;
  border-radius: var(--r-md);
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border-soft);
  transition: background var(--d-1);
}
.week-strip .day:hover { background: rgba(232,195,106,.08); border-color: var(--border-gold); }
.week-strip .day span {
  display: block;
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: .12em;
  margin-bottom: 4px;
}
.week-strip .day b {
  display: block;
  font-family: "Shippori Mincho", serif;
  font-size: 18px;
  color: var(--text-hi);
}
.week-strip .day .dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: var(--r-pill);
  background: var(--accent-lilac);
  margin-top: 4px;
}
.week-strip .day .dot.gold { background: var(--accent-gold); box-shadow: 0 0 8px var(--accent-gold); }
.week-strip .day.is-today {
  background: linear-gradient(165deg, rgba(232,195,106,.2), rgba(232,195,106,.05));
  border-color: var(--border-gold);
}
.week-strip .day.is-today b { color: var(--accent-gold); }

.week-note {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: rgba(232,195,106,.06);
  border: 1px solid var(--border-gold);
  border-radius: var(--r-md);
  font-size: 12.5px;
  color: var(--text-mid);
}
.week-note i { width: 16px; height: 16px; color: var(--accent-gold); flex-shrink: 0; }

/* ===== DIV TYPES ===== */
.div-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
.div-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px 10px;
  border-radius: var(--r-md);
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  border: 1px solid var(--border-soft);
  color: var(--text-hi);
  transition: all var(--d-2) var(--ease);
  aspect-ratio: 1;
  gap: 6px;
}
.div-chip i {
  width: 28px; height: 28px;
  color: var(--accent-gold);
  margin-bottom: 4px;
  transition: transform var(--d-2) var(--ease);
}
.div-chip b {
  font-family: "Shippori Mincho", serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
}
.div-chip small { font-size: 10.5px; color: var(--text-dim); }
.div-chip:hover {
  transform: translateY(-4px);
  border-color: var(--accent-gold);
  background: linear-gradient(180deg, rgba(232,195,106,.16), rgba(124,92,228,.08));
  box-shadow: var(--shadow-md), var(--glow-gold), inset 0 0 30px rgba(232,195,106,.12);
}
.div-chip:hover i {
  transform: scale(1.2) rotate(-6deg);
  color: #FFF3C2;
  filter: drop-shadow(0 0 10px rgba(255,238,170,.9)) drop-shadow(0 0 18px rgba(232,195,106,.7));
}
.div-chip:hover b {
  color: #FFF3C2;
  text-shadow: 0 0 14px rgba(255,238,170,.75), 0 0 24px rgba(232,195,106,.5);
}
.div-chip:hover small {
  color: var(--accent-gold-lt);
  text-shadow: 0 0 10px rgba(232,195,106,.5);
}
.div-chip b, .div-chip small, .div-chip i {
  transition: color var(--d-2), text-shadow var(--d-2), filter var(--d-2), transform var(--d-2) var(--ease);
}

/* ===== RANKING (large thumbnails on PC) ===== */
.rank-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  counter-reset: none;
}
.rank-list li {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 20px 28px;
  border-radius: var(--r-xl);
  background: linear-gradient(90deg, rgba(30,13,69,.55), rgba(11,5,32,.35));
  border: 1px solid var(--border-soft);
  transition: all var(--d-2) var(--ease);
}
.rank-list li:hover {
  transform: translateX(3px);
  border-color: var(--border-gold);
  background: linear-gradient(90deg, rgba(232,195,106,.1), rgba(30,13,69,.55));
  box-shadow: var(--shadow-md);
}
.rank-num {
  font-family: "Cormorant Garamond", serif;
  font-size: 72px;
  font-weight: 600;
  line-height: 1;
  color: var(--accent-gold);
  flex-shrink: 0;
  width: 72px;
  text-align: center;
  text-shadow: 0 0 32px rgba(232,195,106,.45);
}
.rank-thumb {
  aspect-ratio: var(--ar-banner);
  width: 320px;          /* 大型化: 132 → 320 */
  border-radius: var(--r-md);
  overflow: hidden;
  flex-shrink: 0;
  background: #0B0520;
  box-shadow:
    inset 0 0 0 1px var(--border-gold),
    0 10px 24px rgba(0,0,0,.4);
  transition: transform var(--d-2) var(--ease);
}
.rank-list li:hover .rank-thumb { transform: scale(1.02); }
.rank-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform .9s var(--ease-out);
}
.rank-list li:hover .rank-thumb img { transform: scale(1.06); }
.rank-body {
  flex: 1;
  min-width: 0;
}
.rank-body .chip { margin-bottom: 10px; }
.rank-body h3 {
  font-size: 20px;
  margin-bottom: 8px;
  letter-spacing: .04em;
  line-height: 1.4;
}
.rank-body p {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.7;
}
.rank-list .btn.sm {
  width: 52px; height: 52px;
  padding: 0;
  flex-shrink: 0;
}
.rank-list .btn.sm i { width: 22px; height: 22px; }

@media (max-width: 1024px) {
  .rank-thumb { width: 240px; }
  .rank-num { font-size: 60px; width: 60px; }
  .rank-body h3 { font-size: 18px; }
}

/* ===== FEATURES ===== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.feature-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  border: 1px solid var(--border-soft);
  color: var(--text-hi);
  transition: all var(--d-2) var(--ease);
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-gold);
  box-shadow: var(--shadow-md);
}
.feature-img {
  aspect-ratio: var(--ar-banner);  /* AI画像と完全一致、切れない */
  overflow: hidden;
  background: #0B0520;
  box-shadow: inset 0 0 0 1px var(--border-soft);
}
.feature-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .6s var(--ease-out);
  display: block;
}
.feature-card:hover .feature-img img { transform: scale(1.05); }
.feature-body { padding: 16px 18px 20px; }
.feature-body .chip { margin-bottom: 8px; }
.feature-card h3 {
  font-size: 15px;
  line-height: 1.45;
  margin-bottom: 6px;
  letter-spacing: .04em;
}
.feature-card p {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.65;
}

/* ===== NEWSLETTER ===== */
.nl {
  padding: clamp(60px, 9vw, 120px) var(--pad-x);
  background:
    radial-gradient(500px 220px at 50% 0%, rgba(232,195,106,.2), transparent 70%),
    linear-gradient(180deg, transparent, rgba(20,8,48,.6));
  position: relative;
}
.nl-inner {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
  color: var(--text-hi);
}
.nl-icon {
  width: 68px; height: 68px;
  margin: 0 auto 22px;
  border-radius: var(--r-pill);
  background: linear-gradient(135deg, var(--accent-gold-lt), var(--accent-gold-dk));
  display: flex; align-items: center; justify-content: center;
  color: var(--bg-base);
  box-shadow: var(--glow-gold);
}
.nl-icon i { width: 30px; height: 30px; }
.nl h2 {
  font-size: clamp(22px, 3vw, 32px);
  margin-bottom: 14px;
  letter-spacing: .05em;
}
.nl p { color: var(--text-dim); font-size: 13px; line-height: 1.85; margin-bottom: 28px; }
.nl-form {
  display: flex;
  gap: 10px;
  max-width: 480px;
  margin: 0 auto;
}
.nl-form input {
  flex: 1;
  padding: 13px 18px;
  border-radius: var(--r-pill);
  background: rgba(255,255,255,.08);
  border: 1px solid var(--border-mid);
  color: var(--text-hi);
  font-size: 14px;
}
.nl-form input::placeholder { color: var(--text-faint); }
.nl-form input:focus { outline: none; border-color: var(--accent-gold); background: rgba(255,255,255,.12); }
.nl-form .btn { padding: 13px 24px; }
.nl-done {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--accent-emerald);
  margin-top: 20px;
  font-size: 13px;
}
.nl-done i { width: 18px; height: 18px; }

/* ===== FOOTER ===== */
.site-footer {
  padding: clamp(48px, 6vw, 80px) var(--pad-x) 26px;
  background:
    linear-gradient(180deg, rgba(7,3,18,.7), rgba(7,3,18,1));
  border-top: 1px solid var(--border-soft);
  color: var(--text-mid);
}
.foot-top {
  max-width: var(--wrap);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 42px;
  border-bottom: 1px solid var(--border-soft);
  margin-bottom: 24px;
}
.foot-brand img { height: 48px; margin-bottom: 18px; filter: drop-shadow(0 4px 20px rgba(232,195,106,.3)); }
.foot-brand p { font-size: 12.5px; line-height: 1.85; color: var(--text-dim); margin-bottom: 20px; max-width: 420px; }
.foot-social { display: flex; gap: 10px; }
.foot-social a {
  width: 42px; height: 42px;
  border-radius: var(--r-pill);
  background: rgba(255,255,255,.06);
  border: 1px solid var(--border-soft);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-mid);
  transition: all var(--d-2) var(--ease);
}
.foot-social a:hover { background: var(--accent-gold); color: var(--bg-base); border-color: var(--accent-gold); transform: translateY(-2px); box-shadow: var(--glow-gold); }
.foot-social a svg, .foot-social a i { width: 18px; height: 18px; }

.foot-col h4 {
  font-size: 13px;
  color: var(--accent-gold);
  margin-bottom: 14px;
  letter-spacing: .1em;
  font-family: "Shippori Mincho", serif;
}
.foot-col ul { display: flex; flex-direction: column; gap: 8px; }
.foot-col a {
  font-size: 12.5px;
  color: var(--text-dim);
  transition: color var(--d-1);
}
.foot-col a:hover { color: var(--accent-gold); }
.foot-bottom {
  max-width: var(--wrap);
  margin: 0 auto;
  text-align: center;
}
.foot-bottom small {
  font-family: "Cormorant Garamond", serif;
  letter-spacing: .2em;
  color: var(--text-faint);
  font-size: 12px;
}

/* ===== SCROLL TOP ===== */
.scroll-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px; height: 48px;
  border-radius: var(--r-pill);
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-dk));
  color: var(--bg-base);
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transform: translateY(20px);
  transition: all var(--d-2);
  pointer-events: none;
  z-index: 50;
  box-shadow: var(--shadow-gold);
}
.scroll-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.scroll-top i { width: 20px; height: 20px; }

/* ===== MOBILE CTA BAR ===== */
.m-cta {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
  background: rgba(7,3,18,.92);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-gold);
  z-index: 90;
  gap: 6px;
}
.m-cta-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 8px 4px;
  font-size: 10px;
  font-weight: 600;
  color: var(--text-mid);
  border-radius: var(--r-md);
  letter-spacing: .08em;
}
.m-cta-btn i { width: 20px; height: 20px; }
.m-cta-btn.primary {
  background: linear-gradient(135deg, var(--accent-gold-lt), var(--accent-gold-dk));
  color: var(--bg-base);
  font-weight: 700;
}

/* ===== UTILITIES ===== */
.hide-mo { display: inline-flex; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .quick-grid { grid-template-columns: repeat(2, 1fr); }
  .zodiac-grid { grid-template-columns: repeat(4, 1fr); }
  .tarot-grid { grid-template-columns: 1fr; max-width: 640px; margin: 0 auto; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .div-grid { grid-template-columns: repeat(4, 1fr); }
  .moon-row { grid-template-columns: 1fr; }
  .foot-top { grid-template-columns: 1fr 1fr; gap: 28px; }
}

@media (max-width: 768px) {
  :root {
    --section-py: 56px;
    --pad-x: 18px;
  }
  body { font-size: 14px; padding-bottom: 80px; }

  /* Header */
  .header-inner { padding: 8px 14px; gap: 8px; }
  .brand-logo { height: 30px; }
  .header-actions .btn-ghost span { display: none; }
  .header-actions .btn-ghost { padding: 8px; width: 42px; }
  .hide-mo { display: none !important; }
  .nav-toggle { display: flex; }
  .marquee { font-size: 11px; gap: 20px; }

  /* Hero (stacked) */
  .hero { padding: 40px 0 60px; }
  .hero-inner { grid-template-columns: 1fr; gap: 24px; }
  .hero-gallery { order: -1; }
  .hero-slides-text { min-height: 260px; }
  .hero-title { font-size: 24px; line-height: 1.3; margin-bottom: 14px; }
  .hero-desc { font-size: 13px; margin-bottom: 20px; }
  .hero-eyebrow { margin-bottom: 14px; padding: 5px 11px; font-size: 10px; }
  .hero-cta { gap: 8px; }
  .hero-cta .btn { flex: 1; padding: 13px 16px; font-size: 13px; }
  .hero-nav { justify-content: center; }
  .hero-arrow { width: 40px; height: 40px; }
  .hero-arrow i { width: 18px; height: 18px; }

  /* Sections */
  .section-head { padding-bottom: 28px; }
  .h-title { font-size: 22px; margin-bottom: 8px; }
  .h-sub { font-size: 12.5px; }

  /* Quick */
  .quick-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .quick-card { padding: 18px 16px; min-height: 170px; }
  .quick-card h3 { font-size: 15px; }
  .quick-icon { width: 42px; height: 42px; }
  .quick-icon i { width: 22px; height: 22px; }

  /* Zodiac */
  .zodiac-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .zodiac-card { padding: 12px 8px 10px; }
  .z-art img { width: 92%; height: 92%; }
  .zodiac-card b { font-size: 12px; }
  .zodiac-card small { font-size: 9.5px; }
  .luck-row { grid-template-columns: repeat(2, 1fr); gap: 14px; }

  /* Tellers rail */
  .teller-card { flex: 0 0 240px; }
  .rail-arrow { display: none; }

  /* Tarot */
  .tarot-stage { padding: 26px 18px; min-height: 480px; }
  .tarot-modes { gap: 6px; }
  .tarot-mode { padding: 8px 14px; font-size: 12px; }
  .deck-wrapper { height: 240px; width: 100%; }
  .deck { width: 140px; height: 220px; }
  .deck .card-back { width: 140px; height: 220px; margin-left: -70px; }
  .deck.fan-out { height: 300px; }
  .deck.fan-out .card-back { width: 90px; height: 140px; margin-left: -45px; }
  .drawn-card { width: 130px; height: 200px; }

  /* Category */
  .cat-grid { grid-template-columns: 1fr; gap: 14px; }
  .cat-card { aspect-ratio: 16/10; }
  .cat-card h3 { font-size: 19px; }

  /* Compat */
  .compat-card { padding: 26px 20px; }
  .compat-inputs { gap: 10px; }
  .compat-person { padding: 14px 10px; }
  .compat-heart { width: 40px; height: 40px; }
  .compat-heart i { width: 18px; height: 18px; }

  /* Moon */
  .moon-now, .moon-week { padding: 22px; }
  .moon-now { flex-direction: column; align-items: center; text-align: center; gap: 18px; }
  .moon-viz { flex: 0 0 100px; }
  .week-strip .day { padding: 10px 0; }
  .week-strip .day b { font-size: 15px; }

  /* Div types */
  .div-grid { grid-template-columns: repeat(3, 1fr); }
  .div-chip { padding: 16px 6px; gap: 4px; }
  .div-chip b { font-size: 11.5px; }
  .div-chip small { font-size: 9.5px; }

  /* Ranking (mobile: vertical stack with full-width thumb) */
  .rank-list { gap: 14px; }
  .rank-list li {
    flex-direction: column;
    padding: 14px;
    gap: 12px;
    align-items: stretch;
  }
  .rank-thumb {
    width: 100%;
    max-width: none;
  }
  .rank-num {
    font-size: 40px;
    width: auto;
    text-align: left;
    padding-left: 4px;
  }
  .rank-body h3 { font-size: 15px; }
  .rank-body p { font-size: 12.5px; -webkit-line-clamp: 2; }
  .rank-list .btn.sm { width: 40px; height: 40px; align-self: flex-end; }

  /* Feature */
  .feature-grid { grid-template-columns: 1fr; gap: 12px; }

  /* Newsletter */
  .nl h2 { font-size: 20px; }
  .nl-form { flex-direction: column; gap: 10px; }
  .nl-form input, .nl-form .btn { width: 100%; }

  /* Footer */
  .foot-top { grid-template-columns: 1fr; gap: 28px; padding-bottom: 28px; }

  /* Mobile CTA */
  .m-cta { display: flex; }

  .scroll-top { bottom: 88px; right: 14px; }
}

@media (max-width: 400px) {
  .hero-title { font-size: 24px; }
  .h-title { font-size: 20px; }
  .zodiac-card b { font-size: 11px; }
  .div-chip b { font-size: 11px; }
}
