* { box-sizing: border-box; }
:root {
  --ink: #181410;
  --night: #12110f;
  --paper: #f5efe5;
  --paper-strong: #fffaf1;
  --muted: #71675c;
  --line: #d8cdbd;
  --gold: #b7894f;
  --teal: #2f6f73;
  --ruby: #8d3149;
  --mist: #e7eee9;
  --focus: #0b6f87;
}
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(18,17,15,0.08), transparent 34%), radial-gradient(circle at 80% 0%, rgba(183,137,79,0.14), transparent 28%);
  content: "";
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; }
button, a, input, textarea, select { outline-color: var(--focus); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  min-height: 76px;
  padding: 14px clamp(16px, 4vw, 54px);
  border-bottom: 1px solid rgba(216,205,189,0.88);
  background: rgba(255,250,241,0.94);
  backdrop-filter: blur(14px);
}
.brand { display: inline-flex; align-items: center; gap: 10px; min-width: max-content; font-weight: 850; white-space: nowrap; }
.brand img { width: 34px; height: 34px; }
.main-nav { display: flex; justify-content: flex-start; gap: 2px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.main-nav::-webkit-scrollbar { display: none; }
.nav-cluster { position: relative; display: inline-flex; flex: 0 0 auto; align-items: center; }
.nav-link, .nav-more, .my-lunar-link {
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--ink);
  font-weight: 780;
  white-space: nowrap;
}
.nav-link { display: inline-flex; align-items: center; padding: 0 10px; }
.nav-more { width: 32px; background: transparent; cursor: pointer; }
.nav-cluster.is-open .nav-link, .nav-cluster.is-open .nav-more { border-color: var(--line); background: var(--paper-strong); }
.nav-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  display: none;
  min-width: 245px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-strong);
  box-shadow: 0 24px 70px rgba(24,20,16,0.18);
}
.nav-cluster.is-open .nav-panel { display: grid; gap: 5px; }
.nav-panel a { padding: 10px 12px; border-radius: 6px; color: var(--teal); font-weight: 760; }
.nav-panel a:hover { background: var(--mist); color: var(--ruby); }
.mobile-menu-button { display: none; }
.header-actions { display: flex; justify-content: flex-end; align-items: center; gap: 8px; }
.site-search-mini input {
  width: min(180px, 18vw);
  min-height: 40px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper-strong);
}
.my-lunar-link { display: inline-flex; align-items: center; gap: 8px; padding: 0 13px; border-color: var(--line); background: var(--ink); color: var(--paper-strong); }
.my-lunar-link span, .status-pill { display: inline-flex; padding: 3px 8px; border-radius: 999px; background: var(--mist); color: var(--teal); font-size: 0.72rem; font-weight: 850; }
main { display: grid; gap: clamp(46px, 6vw, 82px); padding-bottom: 64px; }
.hero, .section-block, .page-hero, .category-hero, .service-hero, .site-footer, .draw-shell { width: min(1180px, calc(100vw - 34px)); margin-inline: auto; }
.hero { margin-top: 24px; }
.portal-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.72fr);
  gap: clamp(26px, 5vw, 72px);
  align-items: stretch;
  min-height: min(720px, calc(100vh - 108px));
  padding: clamp(28px, 6vw, 72px);
  overflow: hidden;
  border: 1px solid rgba(216,205,189,0.74);
  border-radius: 8px;
  background: linear-gradient(135deg, #17130f, #2a211a 54%, #463726);
  color: var(--paper-strong);
}
.eyebrow { margin: 0 0 10px; color: var(--ruby); font-size: 0.76rem; font-weight: 880; letter-spacing: 0.08em; text-transform: uppercase; }
.portal-hero .eyebrow, .draw-head .eyebrow { color: #e4bc80; }
h1, h2, h3 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-weight: 520; letter-spacing: 0; }
h1 { font-size: clamp(3rem, 7vw, 7.5rem); line-height: 0.95; }
h2 { font-size: clamp(2rem, 4vw, 4.2rem); line-height: 1; }
h3 { font-size: clamp(1.35rem, 2vw, 2.2rem); line-height: 1.08; }
p { line-height: 1.68; }
.hero-copy > p:not(.eyebrow), .page-hero > p, .category-hero p, .service-hero p { max-width: 720px; color: #5d5148; font-size: clamp(1rem, 1.4vw, 1.22rem); }
.portal-hero .hero-copy > p:not(.eyebrow) { color: rgba(255,250,241,0.88); }
.hero-actions, .card-actions, .step-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 22px; }
.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 850;
  text-align: center;
  cursor: pointer;
}
.button.primary { border: 1px solid var(--ink); background: var(--ink); color: var(--paper-strong); }
.button.secondary { border: 1px solid var(--line); background: var(--paper-strong); color: var(--ink); }
.button.ghost { border: 1px dashed var(--line); background: transparent; color: var(--muted); }
.portal-hero .button.primary { background: var(--paper-strong); color: var(--ink); border-color: var(--paper-strong); }
.portal-hero .button.secondary { background: rgba(255,250,241,0.1); border-color: rgba(255,250,241,0.42); color: var(--paper-strong); }
.text-link { display: inline-flex; color: var(--teal); font-weight: 850; }
.hero-paths { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.hero-paths a { padding: 8px 12px; border: 1px solid rgba(255,250,241,0.24); border-radius: 999px; color: var(--paper-strong); }
.orbital-panel { position: relative; min-height: 420px; border: 1px solid rgba(255,250,241,0.18); border-radius: 8px; background: radial-gradient(circle at 50% 50%, rgba(255,250,241,0.12), transparent 56%); overflow: hidden; }
.orbital-panel span, .orbital-panel i, .orbital-panel b { position: absolute; inset: 14%; border: 1px solid rgba(255,250,241,0.34); border-radius: 999px; animation: orbit 18s linear infinite; }
.orbital-panel i { inset: 29%; animation-duration: 13s; }
.orbital-panel b { inset: 43%; background: var(--paper-strong); box-shadow: 0 0 0 18px rgba(183,137,79,0.2); animation: none; }
@keyframes orbit { to { transform: rotate(360deg); } }
.section-heading { max-width: 780px; margin-bottom: 22px; }
.section-heading p, .quiet-note, .form-note { color: var(--muted); }
.question-grid, .tool-grid, .product-grid, .article-grid, .today-grid, .path-grid, .faq-grid, .zodiac-grid, .zodiac-strip, .category-intro-grid, .standard-grid, .focus-grid, .archive-grid, .editorial-list { display: grid; gap: 14px; }
.question-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tool-grid, .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.article-grid, .today-grid, .faq-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.path-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.zodiac-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.zodiac-strip { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.category-intro-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.standard-grid, .focus-grid, .archive-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.editorial-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.category-intro-card { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; min-height: 230px; padding: 18px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper-strong); align-items: stretch; }
.category-intro-card h3 { font-size: clamp(1.25rem, 1.8vw, 1.8rem); }
.category-intro-card p:not(.eyebrow) { color: var(--muted); margin: 0; }
.category-intro-visual { display: grid; place-items: center; min-height: 100%; border-radius: 8px; color: var(--paper-strong); font-family: Georgia, "Times New Roman", serif; font-size: 3.6rem; overflow: hidden; }
.category-intro-astrology .category-intro-visual { background: radial-gradient(circle at 40% 36%, #f3c56f, transparent 12%), linear-gradient(145deg, #171328, #363054); }
.category-intro-tarot .category-intro-visual { background: linear-gradient(145deg, #24111f, #6c4b78); }
.category-intro-bazi .category-intro-visual { background: linear-gradient(145deg, #153a32, #b66a4b); }
.category-intro-horoscope .category-intro-visual { background: linear-gradient(145deg, #17395f, #79b9dc); }
.category-intro-manifestation .category-intro-visual { background: linear-gradient(145deg, #61404f, #d4a263); }
.category-intro-self .category-intro-visual { background: linear-gradient(145deg, #222323, #2f8d8c); }
.zodiac-card { display: grid; gap: 5px; min-height: 170px; padding: 18px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,250,241,0.92); align-content: center; text-align: center; }
.zodiac-card:hover, .zodiac-card:focus-visible { border-color: var(--teal); box-shadow: 0 12px 34px rgba(47,111,115,0.12); }
.zodiac-symbol { font-size: clamp(2.5rem, 5vw, 4.2rem); line-height: 1; color: var(--ruby); font-family: Georgia, "Times New Roman", serif; }
.zodiac-card strong { font-size: 1.14rem; }
.zodiac-card small, .zodiac-card em { color: var(--muted); font-style: normal; }
.sign-hero { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 24px; align-items: center; width: min(1180px, calc(100vw - 34px)); margin: 34px auto 0; padding: clamp(28px, 5vw, 58px); border: 1px solid var(--line); border-radius: 8px; background: rgba(255,250,241,0.92); }
.sign-mark { display: grid; place-items: center; aspect-ratio: 1; border: 1px solid var(--line); border-radius: 999px; background: var(--paper-strong); color: var(--ruby); font-family: Georgia, "Times New Roman", serif; font-size: clamp(5rem, 12vw, 8rem); }
.sign-meta, .keyword-row, .link-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.sign-meta span, .keyword-row span, .link-row a { padding: 7px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--teal); background: rgba(255,250,241,0.78); font-size: 0.92rem; font-weight: 750; }
.sign-layout { display: grid; grid-template-columns: minmax(250px, 0.32fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.sign-sidebar { position: sticky; top: 96px; padding: 20px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper-strong); }
.sign-sidebar dl { display: grid; gap: 10px; }
.sign-sidebar dl div { border-top: 1px solid var(--line); padding-top: 8px; }
.sign-sidebar dt { color: var(--ruby); font-size: 0.78rem; font-weight: 850; text-transform: uppercase; }
.sign-sidebar dd { margin: 0; color: var(--muted); }
.sign-article { padding: clamp(22px, 4vw, 44px); border: 1px solid var(--line); border-radius: 8px; background: var(--paper-strong); }
.sign-article h2 { margin-top: 1.35em; }
.sign-article h2:first-child { margin-top: 0; }
.sign-article p, .sign-article li { color: #4f463d; line-height: 1.75; }
.sign-nav { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; }
.question-card, .tool-card, .product-card, .article-card, .standard-card, .featured-card, .today-grid article, .archive-card, .purchase-panel, .service-template article, .faq-grid article, .path-grid article, .profile-form, .local-vault article, .checkout-flow, .confirmation-card, .legal-page, .article-linkout {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,250,241,0.92);
}
.question-card, .tool-card, .product-card, .article-card, .standard-card, .featured-card, .today-grid article, .archive-card, .purchase-panel, .service-template article, .faq-grid article, .path-grid article, .profile-form, .local-vault article, .confirmation-card, .article-linkout { padding: 20px; }
.question-card { display: grid; gap: 18px; min-height: 180px; }
.question-card span, .product-card dt, .today-grid span, .archive-card span, .purchase-panel span, .local-vault span, .standard-card span, .article-linkout span { color: var(--ruby); font-size: 0.76rem; font-weight: 850; text-transform: uppercase; }
.question-card em { color: var(--teal); font-style: normal; font-weight: 760; }
.tool-card, .product-card, .article-card, .standard-card { display: grid; align-content: start; gap: 12px; }
.tool-card p, .product-card p, .article-card p, .today-grid p, .faq-grid p { color: var(--muted); margin: 0; }
.product-card dl, .purchase-panel dl { display: grid; gap: 8px; margin: 6px 0; }
.product-card dl div, .purchase-panel dl div { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding-top: 8px; }
.product-card dd, .purchase-panel dd { margin: 0; color: var(--muted); text-align: right; }
.product-card dl div { display: grid; gap: 5px; }
.product-card dd { text-align: left; }
.product-card dt { color: var(--teal); }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.article-meta span { padding: 5px 8px; border: 1px solid var(--line); border-radius: 999px; color: var(--teal); font-size: 0.82rem; font-weight: 760; }
.split-panel, .service-template, .my-lunar-grid, .tool-workbench { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr); gap: 18px; align-items: start; }
.page-hero { margin-top: 34px; padding: clamp(28px, 5vw, 58px); border: 1px solid var(--line); border-radius: 8px; background: rgba(255,250,241,0.9); }
.category-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 0.68fr); margin-top: 28px; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,250,241,0.9); }
.category-image { min-height: 320px; background: var(--mist); }
.category-image img { width: 100%; height: 100%; min-height: inherit; object-fit: cover; }
.category-hero > div:first-child { padding: clamp(28px, 5vw, 58px); }
.category-visual { display: grid; place-items: center; min-height: 360px; padding: clamp(22px, 4vw, 42px); overflow: hidden; }
.category-visual img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; border-radius: 8px; }
.category-hero-dark { border-color: rgba(255,250,241,0.18); color: var(--paper-strong); box-shadow: 0 22px 70px rgba(24,20,16,0.18); }
.category-hero-dark p, .category-hero-dark .quiet-note, .category-hero-dark .category-hero p { color: rgba(255,250,241,0.82); }
.category-hero-dark h1, .category-hero-dark h2, .category-hero-dark h3 { color: var(--paper-strong); }
.theme-astrology { background: linear-gradient(135deg, #141225, #241f3d 58%, #6b5528); }
.theme-tarot { background: linear-gradient(135deg, #1b0f18, #38233d 58%, #706f77); }
.theme-bazi { background: linear-gradient(135deg, #12332d, #225447 54%, #9f614a); }
.theme-horoscope { background: linear-gradient(135deg, #122947, #245f90 55%, #84c3df); }
.theme-manifestation { background: linear-gradient(135deg, #34232b, #6e4858 58%, #d29a56); }
.theme-self { background: linear-gradient(135deg, #1f2222, #2f4f4f 56%, #2a8888); }
.light-section { padding: clamp(22px, 4vw, 42px); border: 1px solid var(--line); border-radius: 8px; background: rgba(255,250,241,0.72); }
.featured-section { padding-block: 4px; }
.featured-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: center; background: var(--paper-strong); }
.premium-section { padding: clamp(24px, 4vw, 46px); border: 1px solid rgba(47,111,115,0.26); border-radius: 8px; background: linear-gradient(135deg, rgba(47,111,115,0.12), rgba(183,137,79,0.1)); }
.editorial-section, .library-topic { padding-top: 12px; border-top: 1px solid var(--line); }
.service-archive { margin-top: 18px; }
.service-archive summary { cursor: pointer; color: var(--teal); font-weight: 850; }
.process-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.process-row span { padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper-strong); color: var(--muted); font-weight: 760; }
.hero-tarot-fan { position: relative; width: min(440px, 100%); height: 310px; }
.hero-tarot-fan span { position: absolute; left: calc(50% - 42px); bottom: 20px; width: 84px; aspect-ratio: .62; border: 2px solid rgba(255,250,241,0.78); border-radius: 12px; background: linear-gradient(145deg, #f5f1e9, #cfc8bd); transform-origin: 50% 160%; box-shadow: 0 18px 42px rgba(0,0,0,0.22); }
.hero-tarot-fan span:nth-child(1) { transform: rotate(-32deg) translateY(10px); }
.hero-tarot-fan span:nth-child(2) { transform: rotate(-16deg); }
.hero-tarot-fan span:nth-child(3) { transform: rotate(0deg) translateY(-10px); }
.hero-tarot-fan span:nth-child(4) { transform: rotate(16deg); }
.hero-tarot-fan span:nth-child(5) { transform: rotate(32deg) translateY(10px); }
.hero-zodiac-orbit { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; width: min(420px, 100%); }
.hero-zodiac-orbit span { display: grid; place-items: center; aspect-ratio: 1; border: 1px solid rgba(255,250,241,0.28); border-radius: 999px; background: rgba(255,250,241,0.12); color: #f3c56f; font-family: Georgia, "Times New Roman", serif; font-size: 3rem; }
.hero-manifest-path { display: grid; gap: 12px; width: min(420px, 100%); }
.hero-manifest-path span { padding: 18px; border: 1px solid rgba(255,250,241,0.24); border-radius: 999px; background: rgba(255,250,241,0.12); color: var(--paper-strong); font-weight: 850; text-align: center; }
.service-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 0.36fr); gap: 24px; align-items: start; margin-top: 34px; }
.service-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.service-tags span { padding: 7px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--teal); font-weight: 760; }
.purchase-panel { position: sticky; top: 96px; display: grid; gap: 12px; }
.purchase-panel strong { font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.8rem, 5vw, 4.8rem); line-height: 0.92; }
.purchase-panel small { font-size: 1rem; font-family: inherit; }
.service-template ul, .service-template ol { color: var(--muted); line-height: 1.65; }
.process-list ol { display: grid; gap: 10px; max-width: 860px; color: var(--muted); line-height: 1.6; }
.tool-workbench { align-items: stretch; }
.tool-inputs, .tool-result { padding: 20px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper-strong); }
.tool-inputs { display: grid; gap: 12px; }
label { display: grid; gap: 6px; color: #554b42; font-weight: 760; }
input, textarea, select { width: 100%; border: 1px solid var(--line); border-radius: 8px; background: var(--paper-strong); color: var(--ink); }
input, select { min-height: 44px; padding: 0 12px; }
textarea { min-height: 120px; padding: 12px; resize: vertical; }
.field-error { min-height: 18px; color: #9f2f2f; font-size: 0.84rem; }
.chart-svg { width: min(480px, 84vw); height: auto; display: block; margin: 0 auto; }
.chart-svg text { font-family: Inter, ui-sans-serif, sans-serif; }
.checkout-flow { padding: clamp(18px, 3vw, 30px); }
.progress-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; padding: 0; margin: 0 0 22px; list-style: none; }
.progress-steps li { padding: 10px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); font-weight: 780; }
.progress-steps li.is-active { border-color: var(--teal); color: var(--teal); background: var(--mist); }
.checkout-step { display: none; max-width: 760px; gap: 14px; }
.checkout-step.is-active { display: grid; }
.paypal-box { display: grid; gap: 12px; padding: 18px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper-strong); }
.draw-shell { width: 100%; min-height: calc(100vh - 84px); margin-top: 0; }
.draw-guard { width: min(1180px, calc(100vw - 34px)); margin: 24px auto; padding: clamp(24px, 5vw, 58px); border: 1px solid var(--line); border-radius: 8px; background: var(--paper-strong); }
.draw-immersive { position: relative; min-height: calc(100vh - 84px); padding: clamp(16px, 3vw, 34px); background: radial-gradient(circle at 50% 28%, rgba(255,250,241,0.14), transparent 34%), linear-gradient(145deg, #07090f, #151a25 48%, #0c0c10); color: var(--paper-strong); overflow: hidden; }
.draw-immersive::before { position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(circle, rgba(255,250,241,0.22) 1px, transparent 1px); background-size: 62px 62px; opacity: .2; content: ""; }
.draw-topbar, .draw-statusbar { position: relative; z-index: 5; display: flex; justify-content: space-between; gap: 12px; align-items: center; color: rgba(255,250,241,0.82); }
.draw-topbar a { color: #e8c48b; font-weight: 800; }
.draw-toggles { display: flex; flex-wrap: wrap; gap: 10px; }
.draw-toggles label { display: inline-flex; grid-auto-flow: column; gap: 7px; align-items: center; color: rgba(255,250,241,0.8); font-weight: 700; }
.draw-stage { position: relative; z-index: 3; display: grid; place-items: center; min-height: 210px; text-align: center; }
.draw-stage h1 { max-width: 920px; margin: 10px auto; color: var(--paper-strong); font-size: clamp(2.4rem, 8vw, 6.8rem); }
.draw-stage p { max-width: 720px; margin-inline: auto; color: rgba(255,250,241,0.76); font-size: clamp(1rem, 1.5vw, 1.25rem); }
.draw-moon { width: 86px; height: 86px; margin-inline: auto; border-radius: 999px; background: rgba(255,250,241,0.92); padding: 12px; box-shadow: 0 0 60px rgba(232,196,139,0.22); }
.breath-orb { width: 110px; height: 110px; margin: 0 auto 18px; border: 1px solid rgba(255,250,241,0.55); border-radius: 999px; animation: breathe 4.8s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.22); opacity: .55; } }
.draw-board { position: relative; z-index: 3; width: 100%; max-width: 100%; min-height: min(620px, 58vh); margin-top: 18px; overflow: hidden; }
.shuffle-stack { position: relative; width: min(180px, 42vw); aspect-ratio: .62; margin: 30px auto; }
.shuffle-stack .draw-card-back-only { position: absolute; inset: 0; transform: translateX(var(--sx, 0)) rotate(var(--sr, 0)); animation: shuffleSlide 820ms ease-in-out infinite alternate; }
.shuffle-stack .draw-card-back-only:nth-child(2) { --sx: -34px; --sr: -9deg; animation-delay: 90ms; }
.shuffle-stack .draw-card-back-only:nth-child(3) { --sx: 34px; --sr: 8deg; animation-delay: 160ms; }
@keyframes shuffleSlide { to { transform: translateX(calc(var(--sx, 0) * -1)) rotate(calc(var(--sr, 0) * -1)); } }
.draw-card-back-only, .deck-card, .reveal-card, .review-card figure { border: 2px solid rgba(255,250,241,0.78); border-radius: 14px; background: #0d111a; box-shadow: 0 18px 50px rgba(0,0,0,0.36); overflow: hidden; }
.draw-card-back-only img, .deck-card img, .reveal-card img, .review-card img { width: 100%; height: 100%; object-fit: cover; }
.deck-spread { position: relative; width: min(1120px, calc(100vw - 48px)); max-width: 100%; min-height: min(520px, 54vh); margin-inline: auto; overflow-x: auto; overflow-y: hidden; padding: 80px 24px 38px; scroll-snap-type: x proximity; }
.deck-spread-inner { position: relative; width: 3400px; max-width: none; min-height: min(480px, 50vh); margin-inline: auto; }
.deck-card { position: absolute; left: calc(50% - 46px); bottom: 34px; width: clamp(58px, 6vw, 92px); aspect-ratio: .62; padding: 0; cursor: pointer; transform: translateX(var(--x)) translateY(var(--y)) rotate(var(--r)); transition: transform 220ms ease, opacity 180ms ease, filter 180ms ease; scroll-snap-align: center; }
.deck-card:hover, .deck-card:focus-visible { z-index: 30; transform: translateX(var(--x)) translateY(calc(var(--y) - 42px)) rotate(var(--r)) scale(1.06); filter: drop-shadow(0 14px 24px rgba(232,196,139,0.28)); }
.deck-card.is-selected { opacity: .25; pointer-events: none; }
.position-row, .review-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; width: min(900px, 100%); margin: 16px auto; }
.position-slot, .review-card { padding: 14px; border: 1px solid rgba(255,250,241,0.2); border-radius: 8px; background: rgba(255,250,241,0.08); }
.position-slot.is-filled { border-color: rgba(232,196,139,0.66); }
.position-slot span, .review-card span { color: #e8c48b; font-size: .78rem; font-weight: 850; text-transform: uppercase; }
.reveal-panel { display: grid; grid-template-columns: minmax(180px, 280px) minmax(0, 1fr); gap: 28px; width: min(920px, 100%); margin: 18px auto; align-items: center; text-align: left; }
.reveal-card { aspect-ratio: .62; perspective: 1200px; transform-style: preserve-3d; animation: revealFlip 900ms cubic-bezier(.2,.8,.2,1) both; }
@keyframes revealFlip { 0% { transform: rotateY(180deg) scale(.92); } 100% { transform: rotateY(0) scale(1); } }
.review-card figure { aspect-ratio: .62; margin: 0 0 10px; }
.draw-note { display: grid; gap: 8px; width: min(760px, 100%); margin: 18px auto 0; color: rgba(255,250,241,0.86); font-weight: 780; }
.draw-note textarea { min-height: 118px; padding: 12px; border: 1px solid rgba(255,250,241,0.26); border-radius: 8px; background: rgba(255,250,241,0.1); color: var(--paper-strong); font: inherit; resize: vertical; }
.draw-note textarea::placeholder { color: rgba(255,250,241,0.48); }
.draw-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 18px; }
.draw-statusbar { margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(255,250,241,0.16); }
.draw-immersive.reduce-motion *, .draw-immersive.reduce-motion *::before, .draw-immersive.reduce-motion *::after { animation: none !important; transition: none !important; }
.confirmation-card { display: grid; gap: 12px; max-width: 820px; }
.article-page { max-width: 880px; margin: 34px auto 0; padding: clamp(28px, 5vw, 64px); border: 1px solid var(--line); border-radius: 8px; background: var(--paper-strong); }
.article-page .lede { color: var(--muted); font-size: 1.2rem; }
.article-page p { color: #3f372f; }
.article-linkout { margin-top: 28px; }
.legal-page { margin-top: 34px; padding: clamp(28px, 5vw, 64px); }
.legal-page h1 { font-size: clamp(3rem, 7vw, 6rem); }
.legal-section { max-width: 880px; padding-top: 20px; margin-top: 20px; border-top: 1px solid var(--line); }
.site-footer { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; padding: 34px 0; border-top: 1px solid var(--line); }
.footer-columns, .legal-links { display: flex; flex-wrap: wrap; gap: 12px 18px; color: var(--teal); font-weight: 780; }
.legal-links { grid-column: 1 / -1; padding-top: 16px; border-top: 1px solid var(--line); }
.cookie-notice { position: fixed; left: clamp(14px,3vw,28px); right: clamp(14px,3vw,28px); bottom: clamp(14px,3vw,28px); z-index: 120; display: none; grid-template-columns: 1fr auto; gap: 14px; align-items: center; max-width: 980px; margin: 0 auto; padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,250,241,0.98); box-shadow: 0 20px 60px rgba(24,20,16,0.18); }
.cookie-notice.is-visible { display: grid; }
.cookie-notice p { margin: 0; color: var(--muted); }
.cookie-notice div { display: flex; gap: 10px; align-items: center; }
.cookie-notice a { color: var(--teal); font-weight: 800; }
.cookie-notice button { min-height: 38px; padding: 0 12px; border: 1px solid var(--ink); border-radius: 999px; background: var(--ink); color: var(--paper-strong); cursor: pointer; }
.search-page-results { display: grid; gap: 10px; }
.search-page-results a { display: grid; gap: 3px; padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper-strong); }
.search-page-results span { color: var(--ruby); font-size: 0.76rem; font-weight: 850; text-transform: uppercase; }
@media (prefers-color-scheme: dark) {
  :root { --paper: #171512; --paper-strong: #22201c; --ink: #fff7ec; --muted: #c8bbaa; --line: #50483e; --mist: #253130; }
  body::before { background: radial-gradient(circle at 80% 0%, rgba(183,137,79,0.15), transparent 28%); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}
@media (max-width: 1024px) {
  .site-header { grid-template-columns: auto auto; }
  .mobile-menu-button { display: inline-flex; justify-self: end; min-height: 38px; align-items: center; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper-strong); color: var(--ink); font-weight: 780; }
  .main-nav { grid-column: 1 / -1; display: none; justify-content: start; overflow-x: auto; padding-bottom: 4px; }
  .main-nav.is-open { display: flex; }
  .header-actions { grid-column: 1 / -1; justify-content: start; }
  .site-search-mini input { width: min(340px, 70vw); }
  .portal-hero, .split-panel, .service-template, .my-lunar-grid, .tool-workbench, .service-hero, .category-hero, .site-footer, .sign-hero, .sign-layout { grid-template-columns: 1fr; }
  .question-grid, .tool-grid, .product-grid, .article-grid, .today-grid, .path-grid, .faq-grid, .zodiac-grid, .zodiac-strip, .category-intro-grid, .standard-grid, .focus-grid, .archive-grid, .editorial-list, .process-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .category-intro-card { grid-template-columns: 96px minmax(0, 1fr); }
  .sign-sidebar { position: static; }
  .purchase-panel { position: static; }
  .reveal-panel { grid-template-columns: 1fr; text-align: center; }
  .deck-card { width: 74px; }
}
@media (max-width: 640px) {
  .site-header { padding-inline: 14px; }
  .brand span { max-width: 138px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  h1 { font-size: clamp(2.6rem, 15vw, 4.6rem); }
  .question-grid, .tool-grid, .product-grid, .article-grid, .today-grid, .path-grid, .faq-grid, .progress-steps, .zodiac-grid, .zodiac-strip, .category-intro-grid, .standard-grid, .focus-grid, .archive-grid, .editorial-list, .process-row { grid-template-columns: 1fr; }
  .category-intro-card, .featured-card { grid-template-columns: 1fr; }
  .category-intro-visual { min-height: 150px; }
  .portal-hero { padding: 24px; }
  .orbital-panel { min-height: 280px; }
  .draw-topbar, .draw-statusbar { align-items: flex-start; flex-direction: column; }
  .position-row, .review-grid { grid-template-columns: 1fr; }
  .deck-spread { min-height: 430px; }
  .cookie-notice { grid-template-columns: 1fr; }
}
