/* ============================================================
   lunar Journal · page styles
   ============================================================ */

/* ---------------- reveal ---------------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ============================================================
   HOME
   ============================================================ */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  padding-block: clamp(40px, 6vw, 90px);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  align-items: center;
  gap: 40px;
}
.hero-copy { position: relative; z-index: 2; max-width: 720px; }
.hero-title {
  margin-top: 22px;
  font-size: clamp(52px, 7.2vw, 104px);
  line-height: .98;
  letter-spacing: .015em;
}
.hero-title .line { display: block; white-space: nowrap; }
.hero-title .gold-line { color: var(--gold-2); }
.hero-sub {
  margin-top: 24px;
  max-width: 470px;
  font-size: 17.3px;
  line-height: 1.9;
  color: var(--paper-2);
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 26px;
  margin-top: 40px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-family: var(--sans);
  font-size: 10.8px;
  letter-spacing: .14em;
  color: var(--muted);
  text-transform: uppercase;
}
.hero-meta strong { color: var(--paper-2); font-weight: 500; }
.hero-visual {
  position: relative;
  min-height: 560px;
  display: grid;
  place-items: center;
}
.moon-disc {
  position: relative;
  width: min(38vw, 430px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 38% 34%, #f1e6ce 0%, #e4d3b3 36%, #c9b28c 68%, #8d7656 100%);
  box-shadow: 0 0 90px rgba(195,160,94,.20), 0 0 200px rgba(195,160,94,.08), inset -22px -18px 50px rgba(36,26,44,.25);
  overflow: hidden;
}
.moon-disc::before {
  content: "";
  position: absolute; inset: 0; border-radius: 50%;
  background:
    radial-gradient(circle at 62% 28%, rgba(80,62,44,.10) 0 3%, rgba(80,62,44,.04) 5%, transparent 10%),
    radial-gradient(circle at 38% 62%, rgba(80,62,44,.09) 0 5%, rgba(80,62,44,.03) 7%, transparent 12%),
    radial-gradient(circle at 68% 70%, rgba(80,62,44,.07) 0 3%, transparent 8%),
    radial-gradient(circle at 28% 30%, rgba(80,62,44,.06) 0 2%, transparent 7%),
    radial-gradient(circle at 45% 44%, rgba(255,250,235,.18), transparent 55%);
  filter: blur(2px);
}
.moon-disc::after {
  content: "";
  position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, transparent 40%, rgba(10,8,14,.55) 100%);
}
.hero-card {
  position: absolute;
  right: 4%;
  bottom: 8%;
  width: min(15vw, 172px);
  transform: rotate(9deg);
  z-index: 3;
  filter: drop-shadow(0 24px 40px rgba(0,0,0,.45));
  transition: transform 700ms var(--ease);
}
.hero-card:hover { transform: rotate(6deg) translateY(-8px); }
.hero-orbit {
  position: absolute;
  width: min(50vw, 580px);
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 50%;
  pointer-events: none;
}
.hero-orbit::before, .hero-orbit::after {
  content: "";
  position: absolute;
  width: 5px; height: 5px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(195,160,94,.8);
}
.hero-orbit::before { top: 3%; left: 30%; }
.hero-orbit::after { bottom: 10%; right: 12%; }
.hero-orbit.o2 { width: min(58vw, 670px); opacity: .55; border-style: dashed; }
.hero-note {
  position: absolute;
  left: 0;
  bottom: 4%;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 9.7px;
  letter-spacing: .18em;
  color: var(--muted);
  text-transform: uppercase;
}
.hero-note::before { content: ""; width: 26px; height: 1px; background: var(--gold-3); }

.mode-section { padding-top: 0; }
.mode-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
}
.mode-card {
  position: relative;
  padding: clamp(24px, 3.4vw, 40px);
  border-right: 1px solid var(--line);
  min-height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: background var(--t-base) var(--ease);
}
.mode-card:last-child { border-right: 0; }
.mode-card:hover { background: var(--bg-card); }
.mode-num { font-family: var(--mono); font-size: 10.8px; color: var(--gold-3); letter-spacing: .2em; }
.mode-card h3 { margin-top: 26px; font-size: clamp(23.8px, 2.2vw, 32.4px); }
.mode-card p { margin-top: 10px; max-width: 260px; font-size: 14px; color: var(--muted); line-height: 1.8; }
.mode-card .link-arrow { margin-top: 26px; }

.home-band { padding-block: clamp(48px, 6vw, 86px); border-top: 1px solid var(--line); }
.home-split { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.home-quote {
  font-size: clamp(26px, 3.3vw, 44px);
  line-height: 1.45;
  color: var(--paper);
}
.home-quote .muted { color: var(--muted); }
.home-note { margin-top: 24px; max-width: 400px; font-size: 15.1px; color: var(--muted); line-height: 1.9; }

.stat-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat-cell { padding: 26px 18px; border-right: 1px solid var(--line); text-align: center; }
.stat-cell:last-child { border-right: 0; }
.stat-num { font-family: var(--mono); font-size: clamp(28px, 3vw, 42px); color: var(--gold-2); letter-spacing: -.03em; }
.stat-label { margin-top: 6px; font-family: var(--sans); font-size: 9.7px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }

.teaser-panel {
  position: relative;
  min-height: 300px;
  padding: clamp(26px, 4vw, 44px);
  border: 1px solid var(--line-2);
  background:
    radial-gradient(circle at 85% 20%, rgba(195,160,94,.12), transparent 45%),
    var(--bg-card);
  overflow: hidden;
}
.teaser-panel .eyebrow { margin-bottom: 12px; }
.teaser-question { max-width: 620px; font-size: clamp(22px, 2.6vw, 34px); line-height: 1.5; }
.teaser-cards { display: flex; gap: 8px; margin-top: 24px; }
.teaser-cards .mini-card { width: 54px; flex: 0 0 54px; }
.teaser-foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); }
.teaser-foot .tiny { color: var(--muted); }
.teaser-moon { position: absolute; right: 4%; top: 50%; width: 190px; transform: translateY(-50%); color: var(--gold); opacity: .18; pointer-events: none; }
.teaser-moon svg { width: 100%; height: auto; }
@media (max-width: 900px) { .teaser-moon { display: none; } }

.home-products .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ============================================================
   RITUAL / SANCTUM
   ============================================================ */
.page-ritual { overflow: visible; }
.ritual-shell { padding-block: clamp(24px, 4vw, 48px) 70px; }
.ritual-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  margin-bottom: 22px;
}
.ritual-head h1 { font-size: clamp(30px, 4vw, 48px); }
.ritual-head .tiny { margin-top: 8px; }
.ritual-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 20px;
  align-items: stretch;
}
.sanctum-wrap { position: relative; }
.sanctum-table {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 420px;
  border: 1px solid var(--line-2);
  background:
    radial-gradient(ellipse at 50% 42%, rgba(195,160,94,.09), transparent 58%),
    repeating-linear-gradient(90deg, rgba(232,221,198,.018) 0 1px, transparent 1px 86px),
    repeating-linear-gradient(0deg, rgba(232,221,198,.012) 0 1px, transparent 1px 62px),
    #0b0810;
  overflow: hidden;
  touch-action: pan-y;
  user-select: none;
  box-shadow: inset 0 0 120px rgba(0,0,0,.6);
}
.sanctum-table::after {
  content: "";
  position: absolute;
  width: 62%;
  aspect-ratio: 1;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(195,160,94,.12);
  border-radius: 50%;
  pointer-events: none;
}
.sanctum-table::before {
  content: "";
  position: absolute; inset: 10px;
  border: 1px solid rgba(195,160,94,.16);
  pointer-events: none;
}
.sanctum-cloth {
  position: absolute;
  left: 11%; top: 10%;
  width: 78%; height: 80%;
  border: 1px solid rgba(232,221,198,.20);
  border-radius: 4px;
  background:
    radial-gradient(circle at 30% 18%, rgba(255,255,255,.10), transparent 44%),
    repeating-linear-gradient(45deg, rgba(255,255,255,.022) 0 2px, transparent 2px 6px),
    linear-gradient(108deg, transparent 28%, rgba(0,0,0,.12) 46%, transparent 58%),
    linear-gradient(150deg, rgba(255,255,255,.05), transparent 55%),
    var(--cloth, #3f4a63);
  box-shadow: inset 0 0 100px rgba(0,0,0,.40), 0 30px 80px rgba(0,0,0,.42);
  transform: rotate(-2deg);
  transition: background .5s var(--ease);
}
.sanctum-cloth::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(1px 1px at 18% 24%, rgba(232,221,198,.35), transparent),
    radial-gradient(1px 1px at 68% 18%, rgba(232,221,198,.25), transparent),
    radial-gradient(1px 1px at 42% 68%, rgba(232,221,198,.28), transparent),
    radial-gradient(1.5px 1.5px at 82% 76%, rgba(232,221,198,.22), transparent);
  opacity: .8;
}
.ritual-item {
  position: absolute;
  left: var(--x, 50%);
  top: var(--y, 50%);
  transform: translate(-50%, -50%) rotate(var(--rot, 0deg)) scale(var(--scale, 1));
  z-index: var(--z, 2);
  cursor: grab;
  touch-action: none;
  filter: drop-shadow(0 12px 18px rgba(0,0,0,.35));
}
.ritual-item:active { cursor: grabbing; }
.ritual-item.is-selected { outline: 1px solid var(--gold); outline-offset: 8px; }
.ritual-item .obj-label {
  position: absolute;
  left: 50%; top: calc(100% + 10px);
  transform: translateX(-50%);
  white-space: nowrap;
  font-family: var(--sans); font-size: 8.6px; letter-spacing: .14em;
  color: var(--paper-3); opacity: 0; transition: opacity .2s;
  pointer-events: none;
}
.ritual-item.is-selected .obj-label, .ritual-item:hover .obj-label { opacity: 1; }
.ritual-item .obj-rotate {
  position: absolute; right: -26px; top: 50%;
  width: 20px; height: 20px; transform: translateY(-50%);
  border: 1px solid var(--gold-3); background: var(--ink); color: var(--gold);
  display: none; place-items: center; border-radius: 50%;
}
.ritual-item.is-selected .obj-rotate { display: grid; }
.ritual-item .obj-rotate svg { width: 11px; height: 11px; }

.obj-cloth { width: 100%; height: 100%; }
.obj-candle { width: 58px; height: 120px; position: relative; }
.obj-candle .wax {
  position: absolute; left: 10px; right: 10px; bottom: 0; height: 82px;
  background: linear-gradient(90deg, #cbb894, #efe1c6 40%, #b9a37f);
  border: 1px solid rgba(36,26,44,.35);
}
.obj-candle .holder {
  position: absolute; left: 0; right: 0; bottom: -6px; height: 12px;
  background: linear-gradient(180deg, #d8b77a, #8a6a2f);
  border-radius: 50% / 40%;
}
.obj-candle .flame {
  position: absolute; left: 50%; bottom: 86px; width: 12px; height: 28px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at 50% 70%, #fff5d6 0%, #f3b35c 45%, rgba(195,90,40,.2) 75%, transparent 100%);
  border-radius: 50% 50% 45% 45%;
  filter: blur(.4px);
  animation: flame 2.8s ease-in-out infinite;
  box-shadow: 0 0 26px rgba(243,179,92,.45);
}
.obj-candle .flame::after {
  content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 12px;
  transform: translateX(-50%); background: #fff8e6; border-radius: 50%; opacity: .8;
}
@keyframes flame {
  0%, 100% { transform: translateX(-50%) scale(1) rotate(-1deg); opacity: .95; }
  35% { transform: translateX(-50%) scale(1.06,.94) rotate(1.5deg); opacity: 1; }
  70% { transform: translateX(-50%) scale(.94,1.05) rotate(-1deg); opacity: .88; }
}
.obj-crystal { width: 82px; height: 104px; filter: drop-shadow(0 0 14px rgba(232,221,198,.15)); }
.obj-crystal svg { width: 100%; height: 100%; }
.obj-blade { width: 18px; height: 130px; }
.obj-blade::before {
  content: ""; position: absolute; left: 8px; top: 0; width: 2px; height: 92px;
  background: linear-gradient(180deg, #e8ddc6, #8a6a2f); box-shadow: 0 0 8px rgba(232,221,198,.25);
}
.obj-blade::after {
  content: ""; position: absolute; left: 0; bottom: 26px; width: 18px; height: 2px; background: #c3a05e;
}
.obj-smoke { width: 90px; height: 130px; }
.obj-smoke::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 80%, rgba(124,138,117,.35), transparent 60%),
    radial-gradient(ellipse at 45% 50%, rgba(200,210,190,.20), transparent 55%),
    radial-gradient(ellipse at 55% 25%, rgba(200,210,190,.12), transparent 55%);
  filter: blur(8px);
  animation: smoke 9s ease-in-out infinite alternate;
}
@keyframes smoke { from { transform: translateY(6px) scale(.95); opacity: .7; } to { transform: translateY(-10px) scale(1.08); opacity: 1; } }
.obj-bowl { width: 70px; height: 46px; border-radius: 0 0 50% 50%; border: 1px solid #c3a05e; background: radial-gradient(ellipse at 50% 0, rgba(195,160,94,.22), transparent 70%); }
.obj-bell { width: 44px; height: 58px; border-radius: 50% 50% 12% 12%; border: 1px solid #c3a05e; background: linear-gradient(180deg, rgba(232,221,198,.16), transparent); }
.obj-pendulum { width: 2px; height: 100px; background: linear-gradient(180deg, transparent, #c3a05e); position: relative; }
.obj-pendulum::after { content: ""; position: absolute; left: -9px; bottom: -14px; width: 20px; height: 26px; background: rgba(232,221,198,.35); border: 1px solid #c3a05e; clip-path: polygon(50% 0, 100% 38%, 68% 100%, 32% 100%, 0 38%); }
.obj-mirror { width: 74px; height: 96px; border-radius: 50%; background: radial-gradient(circle at 45% 35%, #1b1424, #06050a 70%); border: 1px solid #c3a05e; box-shadow: 0 0 22px rgba(195,160,94,.18); }
.obj-mirror::after { content: ""; position: absolute; inset: 10px; border-radius: 50%; border: 1px solid rgba(195,160,94,.22); }

.ritual-rail {
  border: 1px solid var(--line);
  background: var(--bg-card);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: none;
  overflow: visible;
}
.rail-title { display: flex; align-items: center; justify-content: space-between; font-family: var(--sans); font-size: 9.7px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-3); }
.rail-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px; border: 1px solid var(--line);
  background: rgba(10,8,14,.28);
  text-align: left; color: var(--paper-2);
  transition: all var(--t-fast) var(--ease);
}
.rail-item:hover { border-color: var(--line-2); background: var(--bg-soft); }
.rail-item .thumb {
  width: 34px; height: 34px; flex-shrink: 0; display: grid; place-items: center;
  border: 1px solid var(--line); background: var(--ink-3); color: var(--gold);
}
.rail-item .thumb svg { width: 20px; height: 20px; }
.rail-item .nm { font-size: 11.9px; }
.rail-item .sub { font-family: var(--sans); font-size: 8.6px; color: var(--muted); }
.rail-item .plus { margin-left: auto; color: var(--gold-3); }
.rail-item[disabled] { opacity: .35; pointer-events: none; }
.ritual-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; justify-content: space-between; }
.ritual-actions .left { display: flex; gap: 8px; flex-wrap: wrap; }
.ritual-hint { margin-top: 12px; font-family: var(--sans); font-size: 10.8px; color: var(--muted); }
.mobile-tray { display: none; }

/* ============================================================
   DRAW
   ============================================================ */
.draw-shell { max-width: 1080px; margin-inline: auto; padding: clamp(28px, 4vw, 54px) var(--gutter) 80px; }
.draw-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 30px; }
.draw-step { display: none; }
.draw-step.is-active { display: block; animation: pageIn 420ms var(--ease) both; }
.draw-question { max-width: 780px; margin: 0 auto; text-align: center; }
.draw-question h1 { margin-top: 12px; font-size: clamp(30px, 4.4vw, 50px); }
.draw-question .lead { margin: 14px auto 0; max-width: 560px; }
.draw-form { margin-top: 36px; display: grid; gap: 22px; text-align: left; }
.draw-form .textarea { min-height: 110px; font-size: 18.4px; }
.prompt-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 6px 12px; border: 1px solid var(--line); background: transparent;
  font-family: var(--sans); font-size: 10.8px; color: var(--muted);
  transition: all var(--t-fast) var(--ease);
}
.chip:hover { border-color: var(--gold-3); color: var(--gold-2); }
.spread-choice { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.spread-option {
  position: relative; text-align: left; padding: 14px;
  border: 1px solid var(--line); background: rgba(10,8,14,.3);
  transition: all var(--t-fast) var(--ease);
}
.spread-option:hover { border-color: var(--line-2); }
.spread-option.is-active { border-color: var(--gold-3); background: rgba(195,160,94,.06); }
.spread-option .nm { display: block; padding-right: 34px; font-size: 15.1px; color: var(--paper); }
.spread-option .ds { display: block; margin-top: 4px; font-family: var(--sans); font-size: 10.8px; color: var(--muted); line-height: 1.5; }
.spread-option .ct { position: absolute; top: 12px; right: 12px; font-family: var(--mono); font-size: 9.7px; color: var(--gold-3); }
.draw-footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 26px; }
.draw-footer .tiny { color: var(--muted); }

.shuffle-stage.is-cut { display: none; }
.shuffle-stage {
  position: relative; height: min(42vw, 310px); min-height: 280px;
  display: grid; place-items: center; margin-top: 10px;
}
.deck-stack { position: relative; width: 150px; height: 262px; cursor: pointer; }
.deck-stack:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 12px; }
.deck-stack .card-back { position: absolute; inset: 0; transition: transform 700ms var(--ease); }
.deck-stack .card-back:nth-child(2) { transform: translate(2px,-2px) rotate(1deg); }
.deck-stack .card-back:nth-child(3) { transform: translate(-2px,-1px) rotate(-1.2deg); }
.deck-stack .card-back:nth-child(4) { transform: translate(1px,-3px) rotate(.5deg); }
.shuffle-stage.is-shuffling .deck-stack .card-back:nth-child(1) { animation: shuffle1 1.1s var(--ease); }
.shuffle-stage.is-shuffling .deck-stack .card-back:nth-child(2) { animation: shuffle2 1.1s var(--ease); }
.shuffle-stage.is-shuffling .deck-stack .card-back:nth-child(3) { animation: shuffle3 1.1s var(--ease); }
.shuffle-stage.is-shuffling .deck-stack .card-back:nth-child(4) { animation: shuffle4 1.1s var(--ease); }
@keyframes shuffle1 { 0%,100% { transform: none; } 35% { transform: translate(-120px,-16px) rotate(-14deg); } 65% { transform: translate(110px,10px) rotate(12deg); } }
@keyframes shuffle2 { 0%,100% { transform: translate(2px,-2px) rotate(1deg); } 35% { transform: translate(120px,8px) rotate(10deg); } 65% { transform: translate(-100px,-8px) rotate(-10deg); } }
@keyframes shuffle3 { 0%,100% { transform: translate(-2px,-1px) rotate(-1.2deg); } 40% { transform: translate(80px,-20px) rotate(8deg); } 75% { transform: translate(-130px,4px) rotate(-6deg); } }
@keyframes shuffle4 { 0%,100% { transform: translate(1px,-3px) rotate(.5deg); } 45% { transform: translate(-70px,14px) rotate(-8deg); } 80% { transform: translate(120px,-12px) rotate(7deg); } }

.cut-stage { display: flex; gap: 20px; justify-content: center; align-items: flex-end; margin-top: 20px; }
.cut-pile { width: 96px; height: 168px; border: 0; background: transparent; cursor: pointer; position: relative; transition: all var(--t-fast) var(--ease); box-shadow: 4px 4px 0 -1px #0b0810, 4px 4px 0 0 var(--line-2), 8px 8px 0 -1px #0b0810, 8px 8px 0 0 var(--line); }
.cut-pile::before { display: none; }
.cut-pile .card-back { position: absolute; inset: 0; width: 100%; height: 100%; box-shadow: none; }
.cut-pile:hover { transform: translateY(-8px); border-color: var(--gold-3); }
.cut-pile span { position: absolute; bottom: -22px; left: 0; right: 0; text-align: center; font-family: var(--mono); font-size: 9.7px; color: var(--muted); }
.cut-stage.is-hidden { display: none; }
.cut-pile .cut-order { top: 8px; right: 8px; bottom: auto; left: auto; width: 19px; height: 19px; display: grid; place-items: center; border: 1px solid var(--gold-3); background: rgba(10,8,14,.85); color: var(--gold-2); font: 9px var(--mono); }
.cut-pile .cut-order:empty { display: none; }
.cut-pile.is-stacked { opacity: .28; transform: scale(.94); pointer-events: none; box-shadow: none; }
.cut-stack-wrap { display: flex; align-items: center; justify-content: center; gap: 30px; margin-top: 24px; padding-top: 18px; border-top: 1px dashed var(--line); }
.cut-stack { position: relative; width: 96px; height: 168px; flex-shrink: 0; }
.cut-stack .card-back { position: absolute; inset: 0; opacity: 0; transition: opacity 260ms var(--ease), transform 260ms var(--ease); box-shadow: none; }
.cut-stack .card-back.is-visible { opacity: 1; }
.cut-stack .card-back:nth-child(1) { transform: translate(-7px, 4px) rotate(-4deg); }
.cut-stack .card-back:nth-child(2) { transform: translate(0, 0) rotate(0deg); }
.cut-stack .card-back:nth-child(3) { transform: translate(7px, -4px) rotate(4deg); }
.cut-stack-copy { max-width: 310px; }
.cut-stack-count { margin-top: 6px; font-family: var(--mono); font-size: 14px; color: var(--gold-2); }
.cut-stack-copy p { margin-top: 7px; font-family: var(--sans); font-size: 10.8px; line-height: 1.7; color: var(--muted); }
.cut-stack-copy .btn { margin-top: 12px; }
.fan-base { position: absolute; left: 50%; bottom: 246px; margin-left: -70px; width: 140px; height: 245px; z-index: 200; pointer-events: none; }
.fan-base .card-back { position: absolute; inset: 0; box-shadow: none; }
.fan-base .card-back:nth-child(2) { transform: translate(-3px, 3px) rotate(-2deg); }
.fan-base .card-back:nth-child(3) { transform: translate(3px, 5px) rotate(2deg); }

.fan-stage { position: relative; height: min(60vw, 600px); min-height: 470px; margin-top: 6px; }
.fan-stage::before { content: ''; position: absolute; left: 50%; top: 58%; width: min(420px, 42vw); aspect-ratio: 1; transform: translate(-50%, -50%); border: 1px solid var(--line); border-radius: 50%; pointer-events: none; }
.fan-stage::after { content: ''; position: absolute; left: 50%; top: 58%; width: min(340px, 34vw); aspect-ratio: 1; transform: translate(-50%, -50%); border: 1px dashed var(--line); border-radius: 50%; opacity: .6; pointer-events: none; }
.fan-card {
  position: absolute;
  left: 50%; bottom: 270px;
  width: 140px;
  height: 245px;
  margin-left: -70px;
  transform-origin: 50% 100%;
  transform: rotate(var(--rot, 0deg)) translateY(var(--lift, 0px));
  cursor: pointer;
  transition: transform 320ms var(--ease), filter 320ms var(--ease);
  z-index: var(--i);
}
.fan-card .card-back { width: 100%; height: 100%; filter: brightness(1.08); }
.fan-card:hover { transform: rotate(var(--rot, 0deg)) translateY(-24px) scale(1.03); filter: brightness(1.12); }
.fan-card.is-picked { pointer-events: none; }
.fan-card.is-picked .card-back { opacity: .25; }
.fan-stage.is-compact { height: auto; min-height: 0; display: grid; grid-template-columns: repeat(10, 1fr); gap: 6px; }
.fan-stage.is-compact .fan-base { display: none; }
.fan-stage.is-compact .fan-card { position: relative; left: auto; bottom: auto; margin: 0; width: 100%; height: auto; aspect-ratio: 2/3.5; transform: none; }

.drawn-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }
.drawn-slot { width: 120px; }
.drawn-slot .slot-label { margin-top: 8px; text-align: center; font-family: var(--sans); font-size: 9.7px; letter-spacing: .12em; color: var(--muted); }
.drawn-slot .tarot-card { animation: dealIn 520ms var(--ease) both; }
@keyframes dealIn { from { opacity: 0; transform: translateY(30px) rotate(-4deg); } to { opacity: 1; transform: none; } }

.draw-summary { max-width: 640px; margin: 28px auto 0; text-align: center; }
.draw-summary .muted { margin-top: 8px; }

/* ============================================================
   READING
   ============================================================ */
.reading-shell { padding-block: clamp(26px, 4vw, 48px) 80px; }
.reading-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 20px; }
.reading-head h1 { font-size: clamp(26px, 3.2vw, 40px); }
.reading-head .q { margin-top: 8px; font-size: 15.1px; color: var(--muted); }
.reading-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(340px, .85fr); gap: 24px; align-items: start; }
.spread-board {
  position: relative;
  min-height: 540px;
  border: 1px solid var(--line);
  background:
    radial-gradient(ellipse at 50% 45%, rgba(195,160,94,.07), transparent 65%),
    var(--bg-card);
  overflow: hidden;
}
.spread-board::before {
  content: ""; position: absolute; inset: 10px; border: 1px solid var(--line); pointer-events: none;
}
.spread-slot {
  position: absolute; left: var(--x); top: var(--y);
  transform: translate(-50%, -50%);
  width: 112px;
  text-align: center;
}
.spread-slot .tarot-card { width: 100%; }
.spread-slot .pos-label {
  margin-top: 8px; font-family: var(--sans); font-size: 9.2px; letter-spacing: .12em;
  color: var(--muted); text-transform: uppercase;
}
.spread-slot.is-active .tarot-card { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
.spread-board .board-empty { position: absolute; inset: 0; display: grid; place-items: center; }
.reading-panel { position: sticky; top: calc(var(--header-h) + 18px); border: 1px solid var(--line); background: var(--bg-card); }
.reading-panel .panel-tabs { display: flex; border-bottom: 1px solid var(--line); }
.reading-panel .panel-tab { flex: 1; padding: 13px 8px; border: 0; background: transparent; font-family: var(--sans); font-size: 10.8px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.reading-panel .panel-tab.is-active { color: var(--gold); border-bottom: 1px solid var(--gold); }
.reading-panel .panel-body { padding: 20px; max-height: 70vh; overflow-y: auto; }
.reading-panel .empty-state { padding: 40px 16px; }
.meaning-card { display: grid; grid-template-columns: 84px 1fr; gap: 14px; align-items: start; }
.meaning-card .tarot-card { width: 84px; }
.meaning-card h3 { font-size: 21.6px; }
.meaning-card .en { margin-top: 2px; font-family: var(--sans); font-size: 8.6px; letter-spacing: .14em; color: var(--muted); }
.meaning-kw { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 9px; }
.meaning-body { margin-top: 12px; font-size: 14px; line-height: 1.8; color: var(--paper-2); }
.meaning-advice { margin-top: 12px; padding: 10px 12px; border-left: 1px solid var(--gold-3); background: rgba(195,160,94,.05); font-size: 13.5px; color: var(--gold-2); }
.reading-note { margin-top: 16px; }
.mood-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.mood-chip { padding: 4px 10px; border: 1px solid var(--line); background: transparent; font-family: var(--sans); font-size: 9.7px; color: var(--muted); }
.mood-chip.is-active { border-color: var(--gold-3); color: var(--gold-2); background: rgba(195,160,94,.07); }
.reading-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.ai-block { margin-top: 18px; border: 1px dashed var(--line-2); padding: 14px; background: rgba(10,8,14,.25); }
.ai-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ai-head .label { color: var(--gold-3); }
.ai-text { margin-top: 10px; font-size: 14px; line-height: 1.85; color: var(--paper-2); white-space: pre-wrap; }
.ai-text:empty::before { content: "还没有生成。可以先用本地注疏，或接入你自己的 AI。"; color: var(--muted); }
.ai-note { margin-top: 8px; font-family: var(--sans); font-size: 9.7px; color: var(--muted); }
.ai-loading { display: flex; align-items: center; gap: 8px; font-family: var(--sans); font-size: 10.8px; color: var(--gold-3); }
.ai-loading .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--gold); animation: blink 1.2s infinite; }
.ai-loading .dot:nth-child(2) { animation-delay: .2s; }
.ai-loading .dot:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%,100% { opacity: .2; } 50% { opacity: 1; } }

/* ============================================================
   JOURNAL
   ============================================================ */
.journal-shell { padding-block: clamp(28px, 4vw, 50px) 80px; }
.journal-stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); margin-bottom: 28px; }
.journal-stat { padding: 20px; border-right: 1px solid var(--line); }
.journal-stat:last-child { border-right: 0; }
.journal-stat .num { font-family: var(--mono); font-size: clamp(24px, 2.6vw, 34px); color: var(--gold-2); }
.journal-stat .lab { margin-top: 4px; font-family: var(--sans); font-size: 9.7px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.journal-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 24px; align-items: start; }
.heatmap-panel { padding: 20px; border: 1px solid var(--line); background: var(--bg-card); }
.heatmap { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 1fr; gap: 5px; margin-top: 16px; }
.heat-cell { aspect-ratio: 1; background: rgba(232,221,198,.04); border: 1px solid rgba(232,221,198,.05); position: relative; }
.heat-cell[data-level="1"] { background: rgba(195,160,94,.14); }
.heat-cell[data-level="2"] { background: rgba(195,160,94,.28); }
.heat-cell[data-level="3"] { background: rgba(195,160,94,.48); }
.heat-cell[data-level="4"] { background: rgba(195,160,94,.75); }
.heat-cell:hover::after { content: attr(data-tip); position: absolute; left: 50%; bottom: 120%; transform: translateX(-50%); padding: 4px 7px; background: var(--ink); border: 1px solid var(--line-2); font-family: var(--sans); font-size: 9.7px; white-space: nowrap; color: var(--paper-2); z-index: 3; }
.journal-list { display: grid; gap: 10px; }
.entry-row { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; padding: 14px; border: 1px solid var(--line); background: var(--bg-card); transition: all var(--t-fast) var(--ease); }
.entry-row:hover { border-color: var(--line-2); background: var(--bg-card-2); }
.entry-date { font-family: var(--mono); font-size: 10.8px; color: var(--gold-3); text-align: center; border-right: 1px solid var(--line); padding-right: 10px; }
.entry-date strong { display: block; font-size: 21.6px; color: var(--paper-2); font-weight: 500; }
.entry-body h4 { font-size: 16.2px; }
.entry-body p { margin-top: 3px; font-size: 13px; color: var(--muted); }
.entry-cards { display: flex; gap: 4px; margin-top: 8px; }
.entry-cards .mini-card { width: 26px; }
.entry-side { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 8px; }
.journal-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.journal-toolbar .cluster { gap: 6px; }
.privacy-blur .entry-body p, .privacy-blur .entry-body h4 { filter: blur(5px); }

/* ============================================================
   CARDS / CARD / SPREADS
   ============================================================ */
.cards-shell { padding-block: clamp(28px, 4vw, 50px) 80px; }
.cards-toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.cards-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.filter-btn { padding: 6px 11px; border: 1px solid var(--line); background: transparent; font-family: var(--sans); font-size: 10.3px; letter-spacing: .08em; color: var(--muted); }
.filter-btn.is-active { border-color: var(--gold-3); color: var(--gold-2); background: rgba(195,160,94,.06); }
.cards-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.cards-grid .tarot-card { width: 100%; }
.card-detail { display: block; padding-block: clamp(30px, 4vw, 54px) 80px; }
.card-detail > [data-card-page] { display: grid; grid-template-columns: minmax(260px, 360px) 1fr; gap: clamp(28px, 5vw, 70px); align-items: start; }
.card-detail .tarot-card { position: sticky; top: calc(var(--header-h) + 22px); width: 100%; }
.card-detail h1 { font-size: clamp(30px, 4vw, 46px); }
.card-detail .en { margin-top: 4px; font-family: var(--sans); font-size: 10.8px; letter-spacing: .18em; color: var(--muted); }
.card-kw { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.orientation-switch { display: inline-flex; border: 1px solid var(--line); margin-top: 18px; }
.orientation-switch button { padding: 7px 14px; border: 0; background: transparent; font-family: var(--sans); font-size: 10.8px; color: var(--muted); }
.orientation-switch button.is-active { background: var(--gold); color: var(--ink); }
.card-text { margin-top: 18px; font-size: 16.2px; line-height: 1.9; color: var(--paper-2); }
.card-advice { margin-top: 16px; padding: 14px 16px; border-left: 1px solid var(--gold-3); background: rgba(195,160,94,.05); font-size: 15.1px; color: var(--gold-2); }
.appear-list { display: grid; gap: 8px; margin-top: 14px; }
.appear-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.annotation-box { margin-top: 18px; }
.spreads-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.spread-card { padding: 22px; border: 1px solid var(--line); background: var(--bg-card); transition: all var(--t-fast) var(--ease); }
.spread-card:hover { border-color: var(--line-2); background: var(--bg-card-2); }
.spread-card h3 { font-size: 21.6px; }
.spread-card .en { margin-top: 2px; font-family: var(--sans); font-size: 8.6px; letter-spacing: .14em; color: var(--muted); }
.spread-diagram { position: relative; height: 170px; margin: 18px 0; border: 1px solid var(--line); background: radial-gradient(circle at 50% 50%, rgba(195,160,94,.08), transparent 65%); }
.spread-dot { position: absolute; left: var(--x); top: var(--y); width: 18px; height: 30px; transform: translate(-50%, -50%); border: 1px solid var(--gold-3); background: rgba(195,160,94,.12); }
.spread-dot span { position: absolute; left: 50%; top: -14px; transform: translateX(-50%); font-family: var(--mono); font-size: 7.6px; color: var(--muted); }
.spread-card .meta { display: flex; justify-content: space-between; font-family: var(--sans); font-size: 10.8px; color: var(--muted); }
.spread-card .pos-list { margin-top: 12px; display: grid; gap: 4px; font-size: 11.9px; color: var(--muted); }
.spread-card .pos-list span { color: var(--paper-3); }

/* ============================================================
   CIRCLE / POST
   ============================================================ */
.circle-shell { padding-block: clamp(28px, 4vw, 50px) 80px; }
.circle-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.circle-feed { display: grid; gap: 12px; }
.circle-side { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 16px; }
.side-card { padding: 20px; border: 1px solid var(--line); background: var(--bg-card); }
.side-card h3 { font-size: 19.4px; }
.side-card p { margin-top: 8px; font-size: 13px; color: var(--muted); line-height: 1.8; }
.side-list { display: grid; gap: 10px; margin-top: 12px; }
.side-master { display: flex; align-items: center; gap: 10px; }
.side-master img { width: 38px; height: 38px; border: 1px solid var(--line); }
.side-master .nm { font-size: 13px; }
.side-master .st { font-family: var(--sans); font-size: 9.7px; color: var(--muted); }
.circle-notice { display: flex; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); background: rgba(176,138,132,.05); font-size: 11.9px; color: var(--muted); line-height: 1.7; }
.circle-notice svg { width: 15px; height: 15px; color: var(--rose); flex-shrink: 0; margin-top: 2px; }
.post-detail { max-width: 900px; margin-inline: auto; padding-block: clamp(28px, 4vw, 50px) 80px; }
.post-body { font-size: 17.3px; line-height: 2; color: var(--paper-2); white-space: pre-line; }
.post-cards-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 20px 0; }
.post-cards-row .mini-card { width: 52px; border: 1px solid var(--line); }
.locked-answer { position: relative; min-height: 236px; padding: 22px; border: 1px solid var(--line-2); background: var(--bg-card); margin-top: 24px; overflow: hidden; }
.locked-answer .preview { position: relative; z-index: 1; font-size: 15.1px; line-height: 1.9; color: var(--paper-2); filter: blur(1.4px); user-select: none; }
.locked-answer .lock-overlay { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; background: linear-gradient(180deg, rgba(10,8,14,.82), rgba(10,8,14,.97)); text-align: center; padding: 20px; }
.locked-answer .lock-overlay h3 { font-size: 23.8px; }
.locked-answer .lock-overlay p { margin: 8px auto 16px; max-width: 420px; font-size: 13px; color: var(--muted); }
.comments { margin-top: 28px; }
.comment { display: grid; grid-template-columns: 30px 1fr; gap: 10px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.comment .post-avatar { width: 30px; height: 30px; }
.comment .nm { font-family: var(--sans); font-size: 10.8px; color: var(--gold-3); }
.comment .tx { margin-top: 4px; font-size: 14px; color: var(--paper-2); line-height: 1.75; }

/* ============================================================
   MASTERS / MASTER
   ============================================================ */
.masters-shell { padding-block: clamp(28px, 4vw, 50px) 80px; }
.masters-layout { display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: start; }
.masters-side { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 14px; }
.masters-list { display: grid; gap: 12px; }
.master-profile { display: grid; grid-template-columns: 150px 1fr; gap: 28px; align-items: start; padding-block: clamp(28px, 4vw, 50px) 40px; }
.master-profile .sigil-big { width: 150px; height: 150px; border: 1px solid var(--line-2); background: var(--ink-3); }
.master-profile h1 { font-size: clamp(32px, 4vw, 48px); }
.master-profile .style { margin-top: 4px; font-family: var(--sans); font-size: 10.8px; letter-spacing: .16em; color: var(--gold-3); text-transform: uppercase; }
.master-profile .bio { margin-top: 16px; max-width: 700px; font-size: 15.1px; line-height: 1.9; color: var(--paper-2); }
.master-stats { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 18px; font-family: var(--sans); font-size: 10.8px; color: var(--muted); }
.master-stats strong { display: block; font-family: var(--serif); font-size: 19.4px; color: var(--paper); font-weight: 500; }
.booking-layout { display: grid; grid-template-columns: 1fr 380px; gap: 24px; align-items: start; }
.booking-panel { border: 1px solid var(--line-2); background: var(--bg-card); padding: 22px; position: sticky; top: calc(var(--header-h) + 20px); }
.booking-panel h3 { font-size: 21.6px; }
.package-list { display: grid; gap: 8px; margin-top: 14px; }
.package-opt { display: flex; align-items: flex-start; gap: 10px; padding: 12px; border: 1px solid var(--line); cursor: pointer; }
.package-opt.is-active { border-color: var(--gold-3); background: rgba(195,160,94,.05); }
.package-opt input { margin-top: 4px; accent-color: var(--gold); }
.package-opt .nm { font-size: 14px; }
.package-opt .ds { font-family: var(--sans); font-size: 10.3px; color: var(--muted); margin-top: 2px; }
.package-opt .pr { margin-left: auto; font-family: var(--mono); font-size: 14px; color: var(--gold-2); }
.price-breakdown { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); display: grid; gap: 6px; font-family: var(--sans); font-size: 11.9px; color: var(--muted); }
.price-breakdown .row { display: flex; justify-content: space-between; }
.price-breakdown .total { padding-top: 8px; border-top: 1px solid var(--line); color: var(--paper); font-size: 15.1px; }
.reviews { display: grid; gap: 12px; margin-top: 18px; }
.review { padding: 16px 0; border-bottom: 1px solid var(--line); }
.review-head { display: flex; justify-content: space-between; gap: 12px; font-family: var(--sans); font-size: 10.8px; color: var(--muted); }
.review p { margin-top: 6px; font-size: 14px; color: var(--paper-2); line-height: 1.8; }
.stars { color: var(--gold-3); letter-spacing: 2px; font-size: 11.9px; }
.stars .on { color: var(--gold-2); }

/* ============================================================
   ORACLE
   ============================================================ */
.oracle-shell { padding-block: clamp(28px, 4vw, 50px) 80px; }
.oracle-stage { position: relative; padding: clamp(26px, 4vw, 48px); border: 1px solid var(--line-2); background: radial-gradient(circle at 50% 20%, rgba(195,160,94,.10), transparent 55%), var(--bg-card); text-align: center; overflow: hidden; }
.oracle-stage .eyebrow { justify-content: center; }
.oracle-q { max-width: 760px; margin: 14px auto 0; font-size: clamp(24px, 3.4vw, 40px); line-height: 1.45; }
.oracle-cards { display: flex; gap: 14px; justify-content: center; margin-top: 30px; }
.oracle-card { width: 120px; perspective: 800px; cursor: pointer; }
.oracle-card .flip { position: relative; width: 100%; aspect-ratio: 2/3.5; transform-style: preserve-3d; transition: transform 900ms var(--ease); }
.oracle-card.is-open .flip { transform: rotateY(180deg); }
.oracle-card .face { position: absolute; inset: 0; backface-visibility: hidden; border: 1px solid var(--line-2); overflow: hidden; }
.oracle-card .face.back { background: url("../img/card-back.svg") center/cover, var(--ink-3); }
.oracle-card .face.front { transform: rotateY(180deg); background: var(--ink-3); }
.oracle-card .face.front img { width: 100%; height: 100%; object-fit: contain; }
.oracle-card .pos { margin-top: 8px; font-family: var(--sans); font-size: 8.6px; letter-spacing: .14em; color: var(--muted); }
.oracle-reveal { max-width: 760px; margin: 30px auto 0; text-align: left; }
.oracle-reading { padding: 22px; border: 1px solid var(--line); background: rgba(10,8,14,.28); font-size: 15.1px; line-height: 1.95; color: var(--paper-2); }
.oracle-reading p + p { margin-top: 12px; }
.oracle-answer { margin-top: 20px; }
.archive-list { display: grid; gap: 8px; }
.archive-row { display: grid; grid-template-columns: 98px 1fr auto; gap: 14px; padding: 14px; border: 1px solid var(--line); background: var(--bg-card); }
.archive-row:hover { border-color: var(--line-2); }
.archive-date { font-family: var(--mono); font-size: 10.8px; color: var(--gold-3); }
.archive-q { font-size: 15.1px; color: var(--paper-2); }

/* ============================================================
   MARKET / ITEM / CART / CHECKOUT / ORDERS
   ============================================================ */
.market-shell { padding-block: clamp(28px, 4vw, 50px) 80px; }
.market-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.market-balance { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 13px; color: var(--gold-2); }
.market-balance svg { width: 16px; height: 16px; }
.market-tabs { display: flex; gap: 8px; margin-bottom: 18px; }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.product-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.item-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr); gap: clamp(28px, 5vw, 64px); padding-block: clamp(28px, 4vw, 50px) 80px; align-items: start; }
.item-media { position: relative; border: 1px solid var(--line); background: radial-gradient(circle at 50% 45%, rgba(195,160,94,.12), transparent 62%), var(--bg-card); padding: 8%; }
.item-media img { width: 100%; }
.item-info h1 { font-size: clamp(30px, 4vw, 46px); }
.item-info .sub { margin-top: 6px; color: var(--muted); font-size: 15.1px; }
.item-price { display: flex; align-items: baseline; gap: 12px; margin-top: 18px; }
.item-price .num { font-family: var(--mono); font-size: 34px; color: var(--gold-2); }
.item-price .credits { font-family: var(--sans); font-size: 11.9px; color: var(--muted); }
.item-desc { margin-top: 16px; font-size: 15.1px; line-height: 1.9; color: var(--paper-2); }
.item-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; align-items: center; }
.qty { display: inline-flex; border: 1px solid var(--line); }
.qty button { width: 34px; height: 44px; border: 0; background: transparent; color: var(--paper-2); }
.qty input { width: 44px; height: 44px; border: 0; background: transparent; text-align: center; font-family: var(--mono); color: var(--paper); }
.item-details { margin-top: 24px; border-top: 1px solid var(--line); }
.item-detail-row { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.item-detail-row span:first-child { color: var(--paper-3); }
.item-story { margin-top: 22px; padding: 18px; border-left: 1px solid var(--gold-3); background: rgba(195,160,94,.04); font-size: 14px; line-height: 1.9; color: var(--paper-2); }
.item-usage { margin-top: 22px; padding: 18px; border: 1px dashed var(--line-2); }
.item-usage h4 { font-family: var(--sans); font-size: 10.8px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-3); }
.item-usage p { margin-top: 8px; font-size: 13px; color: var(--muted); }
.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 24px; align-items: start; padding-block: 30px 80px; }
.cart-list { border: 1px solid var(--line); }
.cart-line { display: grid; grid-template-columns: 76px 1fr auto; gap: 14px; padding: 16px; border-bottom: 1px solid var(--line); align-items: center; }
.cart-line:last-child { border-bottom: 0; }
.cart-line .thumb { width: 76px; height: 76px; border: 1px solid var(--line); background: var(--ink-3); display: grid; place-items: center; }
.cart-line .thumb img { width: 100%; height: 100%; object-fit: contain; }
.cart-line h4 { font-size: 16.2px; }
.cart-line .meta { font-family: var(--sans); font-size: 10.8px; color: var(--muted); margin-top: 3px; }
.cart-line .line-actions { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.cart-line .remove { border: 0; background: transparent; color: var(--muted); font-family: var(--sans); font-size: 10.8px; }
.cart-line .remove:hover { color: var(--danger); }
.cart-line .line-price { text-align: right; font-family: var(--mono); color: var(--gold-2); font-size: 17.3px; }
.summary-panel { border: 1px solid var(--line-2); background: var(--bg-card); padding: 22px; position: sticky; top: calc(var(--header-h) + 20px); }
.summary-row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-family: var(--sans); font-size: 13px; color: var(--muted); }
.summary-row.total { margin-top: 8px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--paper); font-size: 16.2px; }
.summary-row.total .mono { font-size: 21.6px; color: var(--gold-2); }
.checkout-layout { display: grid; grid-template-columns: 1fr 380px; gap: 24px; align-items: start; padding-block: 30px 80px; }
.checkout-section { padding: 22px; border: 1px solid var(--line); background: var(--bg-card); margin-bottom: 14px; }
.checkout-section h3 { font-size: 19.4px; margin-bottom: 14px; }
.pay-methods { display: grid; gap: 8px; }
.pay-method { display: flex; align-items: center; gap: 10px; padding: 12px; border: 1px solid var(--line); cursor: pointer; }
.pay-method.is-active { border-color: var(--gold-3); background: rgba(195,160,94,.05); }
.pay-method input { accent-color: var(--gold); }
.pay-method .nm { font-size: 14px; }
.pay-method .ds { font-family: var(--sans); font-size: 9.7px; color: var(--muted); margin-top: 2px; }
.demo-banner { display: flex; gap: 10px; padding: 12px 14px; border: 1px solid rgba(195,160,94,.3); background: rgba(195,160,94,.06); font-size: 11.9px; color: var(--gold-2); line-height: 1.6; }
.demo-banner svg { width: 15px; height: 15px; flex-shrink: 0; margin-top: 2px; }
.orders-shell { padding-block: 30px 80px; }
.orders-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.orders-list { display: grid; gap: 10px; }
.order-card { display: block; padding: 16px 18px; background: var(--bg-card); border: 1px solid var(--line); transition: all var(--t-fast) var(--ease); }
.order-card:hover { border-color: var(--line-2); background: var(--bg-card-2); }
.order-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.order-main { display: flex; align-items: center; gap: 12px; padding-top: 12px; }
.order-thumb { width: 52px; height: 52px; flex-shrink: 0; border: 1px solid var(--line); background: var(--ink-3); display: grid; place-items: center; }
.order-thumb img { width: 100%; height: 100%; object-fit: contain; }
.order-info { display: grid; gap: 2px; min-width: 0; }
.order-info strong { font-size: 15.1px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.order-total { margin-left: auto; font-family: var(--mono); color: var(--gold-2); }
.order-layout { display: grid; grid-template-columns: 1fr 360px; gap: 24px; align-items: start; padding-block: 30px 80px; }
.order-main-panel { border: 1px solid var(--line); background: var(--bg-card); padding: 24px; }
.order-side { position: sticky; top: calc(var(--header-h) + 20px); }
.order-item-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.order-item-row:last-child { border-bottom: 0; }
.order-item-row img { width: 48px; height: 48px; object-fit: contain; border: 1px solid var(--line); background: var(--ink-3); }
.order-item-row .nm { font-size: 14px; }
.order-item-row .qty { margin-left: auto; font-family: var(--mono); font-size: 11.9px; color: var(--muted); }

/* ============================================================
   PROFILE
   ============================================================ */
.profile-shell { padding-block: 30px 80px; }
.profile-head { display: grid; grid-template-columns: 100px 1fr auto; gap: 22px; align-items: center; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.profile-avatar { width: 100px; height: 100px; border-radius: 50%; border: 1px solid var(--line-2); background: radial-gradient(circle at 40% 30%, rgba(195,160,94,.2), transparent 65%), var(--ink-3); display: grid; place-items: center; font-size: 34px; color: var(--gold); }
.profile-head h1 { font-size: clamp(28px, 4vw, 42px); }
.profile-head .joined { margin-top: 4px; font-family: var(--sans); font-size: 10.8px; color: var(--muted); letter-spacing: .1em; }
.profile-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.profile-stats { display: flex; gap: 24px; }
.profile-stat { text-align: right; }
.profile-stat .n { font-family: var(--mono); font-size: 25.9px; color: var(--gold-2); }
.profile-stat .l { font-family: var(--sans); font-size: 8.6px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.profile-tabs { margin-top: 22px; }
.profile-panel { padding-top: 24px; }
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.settings-card { padding: 22px; border: 1px solid var(--line); background: var(--bg-card); }
.settings-card h3 { font-size: 19.4px; margin-bottom: 14px; }
.settings-card .field + .field { margin-top: 12px; }
.ai-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ai-grid .full { grid-column: 1 / -1; }
.ai-status { display: flex; align-items: center; gap: 8px; font-family: var(--sans); font-size: 10.8px; color: var(--muted); }
.ai-status .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); }
.ai-status.is-on .dot { background: var(--sage); box-shadow: 0 0 8px rgba(124,138,117,.5); }
.inventory-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.inventory-card { padding: 12px; border: 1px solid var(--line); background: var(--bg-card); text-align: center; }
.inventory-card img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.inventory-card .nm { margin-top: 6px; font-size: 11.9px; }
.inventory-card .tag { margin-top: 4px; }

/* ============================================================
   ABOUT / GUIDE / PROSE
   ============================================================ */
.prose { max-width: 760px; }
.prose h2 { margin-top: 46px; }
.prose h3 { margin-top: 28px; }
.prose p { margin-top: 12px; line-height: 1.95; }
.prose ul { margin-top: 12px; display: grid; gap: 8px; }
.prose li { position: relative; padding-left: 18px; font-size: 15.1px; line-height: 1.85; color: var(--paper-2); }
.prose li::before { content: "—"; position: absolute; left: 0; color: var(--gold-3); }
.prose blockquote { margin: 24px 0; padding: 4px 0 4px 20px; border-left: 1px solid var(--gold); font-size: 21.6px; line-height: 1.7; color: var(--paper); }
.about-hero { padding-block: clamp(40px, 6vw, 80px) 50px; border-bottom: 1px solid var(--line); }
.about-hero h1 { max-width: 900px; font-size: clamp(36px, 5.5vw, 72px); line-height: 1.12; }
.business-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 24px; }
.business-card { padding: 20px; border: 1px solid var(--line); background: var(--bg-card); }
.business-card .n { font-family: var(--mono); font-size: 10.8px; color: var(--gold-3); }
.business-card h3 { margin-top: 8px; font-size: 19.4px; }
.business-card p { margin-top: 8px; font-size: 13px; color: var(--muted); line-height: 1.8; }
.metric-table { margin-top: 18px; }
.metric-table th, .metric-table td { font-family: var(--sans); font-size: 11.9px; }
.faq { margin-top: 16px; }
.credits-note { margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line); font-family: var(--sans); font-size: 10.8px; color: var(--muted); line-height: 1.8; }

/* ---------------- responsive ---------------- */
@media (max-width: 1100px) {
  .hero { min-height: auto; padding-top: 40px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 420px; margin-top: 10px; }
  .hero-card { right: 12%; }
  .home-split, .reading-layout, .journal-grid, .circle-layout, .masters-layout, .booking-layout, .item-layout, .cart-layout, .checkout-layout, .order-layout { grid-template-columns: 1fr; }
  .reading-panel, .circle-side, .masters-side, .booking-panel, .summary-panel, .order-side { position: static; }
  .reading-panel .panel-body { max-height: none; }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cards-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .inventory-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .mode-grid { grid-template-columns: 1fr; }
  .mode-card { border-right: 0; border-bottom: 1px solid var(--line); min-height: 200px; }
  .mode-card:last-child { border-bottom: 0; }
  .stat-band { grid-template-columns: repeat(2, 1fr); }
  .stat-cell:nth-child(2) { border-right: 0; }
  .stat-cell:nth-child(1), .stat-cell:nth-child(2) { border-bottom: 1px solid var(--line); }
  .ritual-layout { grid-template-columns: 1fr; }
  .ritual-rail { max-height: none; flex-direction: row; overflow-x: auto; }
  .rail-title { display: none; }
  .rail-item { min-width: 150px; }
  .sanctum-table { width: 100%; height: 360px; min-height: 0; aspect-ratio: auto; }
  .spread-choice { grid-template-columns: 1fr; }
  .cards-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .product-grid, .product-grid.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spreads-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-detail > [data-card-page], .profile-head, .master-profile { grid-template-columns: 1fr; }
  .card-detail > [data-card-page] { gap: 24px; }
  .master-profile .sigil-big { width: 110px; height: 110px; }
  .profile-stats { justify-content: flex-start; }
  .settings-grid, .ai-grid { grid-template-columns: 1fr; }
  .journal-stats { grid-template-columns: repeat(2, 1fr); }
  .journal-stat:nth-child(2) { border-right: 0; }
  .journal-stat:nth-child(1), .journal-stat:nth-child(2) { border-bottom: 1px solid var(--line); }
  .business-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .hero-title { font-size: clamp(42px, 12.5vw, 64px); }
  .hero-title .line { white-space: normal; }
  .hero-visual { min-height: 360px; }
  .hero-card { width: 120px; }
  .moon-disc { width: min(70vw, 320px); }
  .hero-meta { gap: 10px 16px; }
  .teaser-foot, .market-head, .reading-head, .ritual-head { flex-direction: column; align-items: flex-start; }
  .stat-band { grid-template-columns: 1fr 1fr; }
  .product-grid, .product-grid.cols-3 { grid-template-columns: 1fr 1fr; }
  .cards-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .spreads-grid { grid-template-columns: 1fr; }
  .spread-board { min-height: 480px; }
  .spread-slot { width: 76px; }
  .spread-slot .pos-label { font-size: 7.6px; }
  .oracle-cards { gap: 8px; }
  .oracle-card { width: 92px; }
  .cart-line { grid-template-columns: 60px 1fr; }
  .cart-line .line-price { grid-column: 2; text-align: left; }
  .inventory-grid { grid-template-columns: repeat(2, 1fr); }
  .profile-head { grid-template-columns: 72px 1fr; }
  .profile-avatar { width: 72px; height: 72px; font-size: 25.9px; }
  .profile-stats { grid-column: 1 / -1; justify-content: space-between; gap: 12px; }
  .fan-stage { height: 380px; }
  .fan-card { width: 72px; margin-left: -36px; }
  .drawn-slot { width: 84px; }
  .cut-pile { width: 72px; height: 126px; }
  .journal-stats { grid-template-columns: 1fr 1fr; }
  .entry-row { grid-template-columns: 52px 1fr; }
  .entry-side { grid-column: 2; flex-direction: row; align-items: center; }
}

/* ritual extras */
.sanctum-empty { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); pointer-events: none; }
.rail-swatch { display: block; width: 22px; height: 22px; border: 1px solid rgba(232,221,198,.25); }
.rail-presets { display: grid; gap: 6px; }
.rail-preset { padding: 9px 10px; border: 1px solid var(--line); background: transparent; text-align: left; font-family: var(--sans); font-size: 10.8px; color: var(--muted); }
.rail-preset:hover { border-color: var(--line-2); color: var(--paper-2); }
.rail-preset.is-active { border-color: var(--gold-3); color: var(--gold-2); background: rgba(195,160,94,.06); }
.rail-note { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); font-family: var(--sans); font-size: 10.3px; color: var(--muted); line-height: 1.7; }
.rail-note a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.ritual-item .obj-remove { display: none; }
.ritual-item.is-selected .obj-remove { display: grid; }
@media (max-width: 860px) {
  .ritual-rail { display: grid; grid-template-columns: 1fr; }
  .rail-presets { grid-template-columns: 1fr 1fr 1fr; }
  .rail-preset { font-size: 9.7px; padding: 7px; }
  .ritual-hint { display: none; }
}

/* draw extras */
.fan-stage.is-compact .fan-card { position: relative; left: auto; bottom: auto; margin: 0; width: 100%; height: auto; aspect-ratio: 2/3.5; transform: none; }
.fan-stage.is-compact .fan-card .card-back { width: 100%; height: 100%; filter: brightness(1.08); }
.fan-card { background: transparent; border: 0; padding: 0; }
.fan-card .card-back { width: 100%; height: 100%; filter: brightness(1.08); }
.btn.pulse { animation: pulseGold 1.8s infinite; }
@keyframes pulseGold { 0%,100% { box-shadow: 0 0 0 0 rgba(195,160,94,.35); } 50% { box-shadow: 0 0 0 6px rgba(195,160,94,0); } }
.draw-footer .btn-quiet { color: var(--muted); }
@media (max-width: 760px) {
  .cut-stack-wrap { flex-direction: column; gap: 14px; text-align: center; }
  .cut-stack { width: 68px; height: 118px; }
  .cut-stack-copy { max-width: 90%; }
  .cut-stack-copy p { margin-inline: auto; }
  .draw-top { flex-direction: column; align-items: flex-start; gap: 14px; }
  .draw-top .stepper { width: 100%; gap: 8px; }
  .draw-top .step-sep { min-width: 10px; }
  .fan-stage.is-compact { height: auto; min-height: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 5px; }
  .fan-stage.is-compact .fan-base { display: none; }
  .fan-card, .fan-stage.is-compact .fan-card { position: relative; left: auto; bottom: auto; margin: 0; width: 100%; height: clamp(96px, 26vw, 160px); aspect-ratio: auto; transform: none; }
  .fan-card .card-back { width: 100%; height: 100%; }
  .draw-footer { flex-direction: column; align-items: flex-start; }
  .cut-stage { gap: 10px; }
  .cut-pile { width: 68px; height: 118px; }
}


/* draw completion focus */
.draw-step[data-step="3"] .fan-stage { transition: height 500ms var(--ease), opacity 500ms var(--ease); }
.draw-step[data-step="3"].has-drawn .fan-stage { height: 0; min-height: 0; opacity: 0; overflow: hidden; margin-top: 0; }
.draw-step[data-step="3"].has-drawn .drawn-row { margin-top: 8px; }
.drawn-caption { flex: 0 0 100%; text-align: center; font-family: var(--sans); font-size: 9.7px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-3); margin-bottom: 2px; }
@media (max-width: 760px) {
  .draw-step[data-step="3"].has-drawn .fan-stage { display: none; }
  .drawn-row { gap: 8px; }
  .drawn-slot { width: 92px; }
}

/* reading extras */
.spread-slot.is-cross { transform: translate(-50%, -50%) rotate(90deg); }
.spread-slot.is-cross .pos-label { transform: rotate(-90deg); }
.ai-input { font-family: var(--serif); font-size: 14px; line-height: 1.8; field-sizing: content; min-height: 220px; max-height: 420px; }
.meaning-advice svg { width: 13px; height: 13px; display: inline-block; vertical-align: -2px; margin-right: 4px; }
.reading-panel .panel-body::-webkit-scrollbar { width: 6px; }
@media (max-width: 860px) {
  .reading-panel { position: static; }
  .spread-board { min-height: 360px; }
  .spread-board[data-count="5"], .spread-board[data-count="10"] { min-height: 500px; }
}


.reading-actions-bar { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.reading-actions-bar .tiny { max-width: 520px; }
.reading-actions-bar [data-invite] svg { width: 14px; height: 14px; }
@media (max-width: 760px) { .reading-actions-bar { flex-direction: column; align-items: flex-start; } }

/* journal heatmap grid fix + element bars */
.heatmap { grid-auto-flow: column; grid-template-rows: repeat(7, 1fr); grid-template-columns: repeat(12, 1fr); }
.element-bars { display: grid; gap: 8px; margin-top: 12px; }
.element-row { display: grid; grid-template-columns: 20px 1fr 24px; gap: 8px; align-items: center; font-family: var(--sans); font-size: 10.8px; color: var(--muted); }
.element-row .bar { height: 4px; background: rgba(232,221,198,.08); }
.element-row .bar i { display: block; height: 100%; background: var(--gold); }
.journal-toolbar .input { background: rgba(10,8,14,.55); }

/* entry */
.entry-shell { padding-block: 26px 80px; }
.entry-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.entry-head h1 { max-width: 820px; font-size: clamp(30px, 4vw, 48px); margin-top: 10px; }
.entry-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 12px; font-family: var(--sans); font-size: 11.9px; color: var(--muted); }
.entry-layout { display: grid; grid-template-columns: 1fr 320px; gap: 28px; align-items: start; padding-top: 26px; }
.entry-board { display: flex; flex-wrap: wrap; gap: 12px; padding: 20px; border: 1px solid var(--line); background: var(--bg-card); }
.entry-card { width: 104px; display: block; }
.entry-card .tarot-card { width: 100%; }
.entry-card-pos { display: block; margin-top: 7px; font-family: var(--sans); font-size: 8.6px; letter-spacing: .1em; color: var(--muted); text-align: center; text-transform: uppercase; }
.entry-card-name { display: block; margin-top: 2px; font-size: 11.9px; color: var(--paper-2); text-align: center; }
.entry-section { margin-top: 26px; }
.entry-note { margin-top: 8px; padding: 18px; border-left: 1px solid var(--gold-3); background: rgba(195,160,94,.04); font-size: 16.2px; line-height: 1.95; color: var(--paper-2); white-space: pre-wrap; }
.entry-note.is-empty { color: var(--muted); font-style: italic; }
.entry-ai { margin-top: 8px; padding: 18px; border: 1px dashed var(--line-2); background: rgba(10,8,14,.25); font-size: 14px; line-height: 1.9; color: var(--paper-2); white-space: pre-wrap; }
.entry-side { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 14px; }
.entry-facts { display: grid; gap: 0; margin-top: 12px; }
.entry-facts > div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line); font-family: var(--sans); font-size: 11.9px; color: var(--muted); }
.entry-facts > div:last-child { border-bottom: 0; }
.entry-facts strong { color: var(--paper-2); font-weight: 400; text-align: right; }
@media (max-width: 1000px) { .entry-layout { grid-template-columns: 1fr; } .entry-side { position: static; } }
@media (max-width: 640px) { .entry-head { flex-direction: column; align-items: flex-start; } .entry-card { width: 86px; } }

/* card grid + detail extras */
.card-cell { position: relative; display: block; line-height: 0; }
.card-note-dot { position: absolute; top: 8px; right: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 8px rgba(195,160,94,.6); }
.sticky-card { position: sticky; top: calc(var(--header-h) + 22px); }
.sticky-card .tarot-card { width: 100%; }
.appear-block .appear-row:hover { color: var(--gold-2); }
.card-advice svg { width: 13px; height: 13px; display: inline-block; vertical-align: -2px; margin-right: 4px; }
.spread-card .pos-list div { display: flex; gap: 8px; }
.spread-card .pos-list span { width: 12px; flex-shrink: 0; color: var(--gold-3); font-family: var(--mono); font-size: 8.6px; }

/* orders / order */
.order-page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding: 18px 0 24px; border-bottom: 1px solid var(--line); }
.order-page-head h1 { max-width: 760px; font-size: clamp(26px, 3.4vw, 40px); margin-top: 8px; }
.service-summary { display: grid; gap: 0; margin-top: 12px; }
.service-row { display: flex; justify-content: space-between; gap: 18px; padding: 9px 0; border-bottom: 1px solid var(--line); font-family: var(--sans); font-size: 11.9px; color: var(--muted); }
.service-row:last-child { border-bottom: 0; }
.service-row strong { color: var(--paper-2); font-weight: 400; text-align: right; max-width: 66%; }
.delivery-box { margin-top: 18px; padding: 16px; border-left: 1px solid var(--gold-3); background: rgba(195,160,94,.05); }
.delivery-box p { margin-top: 8px; font-size: 14px; line-height: 1.9; color: var(--paper-2); white-space: pre-wrap; }
.tracking-box { margin-top: 14px; padding: 14px; border: 1px dashed var(--line-2); }
.demo-tools { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--line); }
.review-stars { display: flex; gap: 6px; }
.review-stars button { border: 0; background: transparent; font-size: 32.4px; line-height: 1; color: var(--muted-2); padding: 0; }
.review-stars button.on { color: var(--gold-2); }
.order-side .summary-panel { position: sticky; top: calc(var(--header-h) + 20px); }
@media (max-width: 900px) { .order-page-head { flex-direction: column; align-items: flex-start; } }

/* master booking extras */
.master-profile .sigil-big img { border: 1px solid var(--line); }
.booking-panel .demo-banner svg { width: 14px; height: 14px; }

/* master card wrap + post */
.master-card > span:last-child { min-width: 0; }
.master-card .master-bio { width: 100%; }
.post-detail .post-head { font-size: 11.9px; }
.post-detail h1 { max-width: 900px; }
.post-detail .post-cards-row .mini-card { width: 54px; }


/* mini card tone + side master */
.mini-card[data-tone]::after { content: ""; position: absolute; left: 4px; right: 4px; bottom: 4px; height: 2px; background: var(--tone, var(--gold)); opacity: .9; }
.mini-card[data-tone="wands"] { --tone: #9b5c3a; }
.mini-card[data-tone="cups"] { --tone: #5e7480; }
.mini-card[data-tone="swords"] { --tone: #6c6578; }
.mini-card[data-tone="pentacles"] { --tone: #6d7b59; }
.mini-card[data-tone="gold"] { --tone: #c3a05e; }
.side-master .nm, .side-master .st { display: block; }
.side-master .st { margin-top: 1px; }

/* oracle archive + answer */
.oracle-card .face.back { background: #0f0b16; }
.oracle-card .face.back::before { content: ""; position: absolute; inset: 7px; border: 1px solid rgba(195,160,94,.45); background: repeating-linear-gradient(45deg, rgba(195,160,94,.08) 0 1px, transparent 1px 12px), radial-gradient(circle at 50% 50%, transparent 0 18%, rgba(195,160,94,.4) 18.5% 19.2%, transparent 19.8%); }
.oracle-card .face.back::after { content: ""; position: absolute; left: 50%; top: 50%; width: 36%; aspect-ratio: 1; transform: translate(-50%,-50%); border: 1px solid rgba(195,160,94,.7); border-radius: 50%; background: radial-gradient(circle at 66% 50%, #0f0b16 0 53%, transparent 55%); }
.oracle-answer { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.archive-row:last-child { border-bottom: 0; }

/* profile */
.profile-shell { padding-block: 28px 80px; }
.profile-avatar { color: var(--gold); }
.profile-stats .profile-stat { min-width: 74px; }
.xp-bar { height: 4px; background: rgba(232,221,198,.08); margin-top: 14px; }
.xp-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold-3), var(--gold-2)); }
.settings-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.settings-row .nm { font-size: 14px; }
.settings-row .ds { margin-top: 3px; font-family: var(--sans); font-size: 10.3px; color: var(--muted); }
.switch { position: relative; width: 38px; height: 20px; flex-shrink: 0; }
.switch input { position: absolute; opacity: 0; }
.switch span { position: absolute; inset: 0; border: 1px solid var(--line-2); background: rgba(10,8,14,.4); transition: all var(--t-fast) var(--ease); }
.switch span::after { content: ""; position: absolute; left: 2px; top: 2px; width: 14px; height: 14px; background: var(--muted); transition: all var(--t-fast) var(--ease); }
.switch input:checked + span { border-color: var(--gold-3); background: rgba(195,160,94,.12); }
.switch input:checked + span::after { left: 20px; background: var(--gold); }
.settings-card .checkbox { margin-top: 8px; }
.settings-card .form-grid .full { grid-column: 1 / -1; }
.inventory-card .tag { display: inline-block; }
@media (max-width: 900px) { .profile-stats { grid-column: 1 / -1; justify-content: space-between; } .profile-head { grid-template-columns: 72px 1fr; } }

/* about / guide */
.about-hero { border-bottom: 1px solid var(--line); }
.about-hero .hero-cta { margin-top: 26px; }
.about-hero h1 { max-width: 900px; }
.prose code { font-family: var(--mono); font-size: .88em; color: var(--gold-2); background: rgba(195,160,94,.08); padding: 1px 5px; }
.prose ol { margin-top: 12px; display: grid; gap: 8px; padding-left: 0; counter-reset: item; }
.prose ol li { counter-increment: item; padding-left: 26px; position: relative; }
.prose ol li::before { content: counter(item, decimal-leading-zero); position: absolute; left: 0; font-family: var(--mono); font-size: 9.7px; color: var(--gold-3); top: 3px; }
.prose strong { color: var(--paper); font-weight: 600; }
.about-hero .lead { max-width: 640px; }
@media (max-width: 760px) { .about-hero h1 { font-size: clamp(34px, 10vw, 52px); } }


@media (max-width: 460px) {
  .cards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.master-bio { font-size: 12.4px; line-height: 1.7; max-height: 3.9em; }


@media (max-width: 640px) {
  .card-detail .sticky-card, .card-detail .card-page-card, .card-detail .tarot-card { width: 100%; max-width: 100%; }
  .card-detail .card-page-card { padding: 8px; }
}

/* ============================================================
   DAILY GATE — homepage only
   ============================================================ */
body[data-page="index"] .site-footer { display: none; }
body[data-page="index"] .page-main { min-height: calc(100vh - var(--header-h)); }
.daily-gate {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-block: clamp(44px, 6vw, 82px);
  border-bottom: 1px solid var(--line);
}
.daily-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  align-items: center;
  gap: clamp(30px, 6vw, 80px);
  width: 100%;
}
.daily-copy { position: relative; z-index: 2; max-width: 700px; }
.daily-title {
  margin-top: 20px;
  font-family: var(--serif);
  font-size: clamp(54px, 8.4vw, 112px);
  line-height: .98;
  letter-spacing: -.045em;
  font-weight: 600;
}
.daily-title .gold { color: var(--gold-2); }
.daily-sub {
  margin-top: 24px;
  max-width: 460px;
  color: var(--paper-2);
  font-size: 16.2px;
  line-height: 1.9;
}
.daily-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 30px;
}
.daily-hint {
  font-family: var(--sans);
  font-size: 9.7px;
  letter-spacing: .14em;
  color: var(--muted);
  text-transform: uppercase;
}
.daily-meta {
  display: flex;
  align-items: stretch;
  gap: 0;
  flex-wrap: wrap;
  margin-top: 36px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  max-width: 500px;
}
.daily-meta-item {
  display: flex;
  align-items: baseline;
  gap: 5px;
  padding-right: 24px;
  margin-right: 24px;
  border-right: 1px solid var(--line);
}
.daily-meta-item:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.daily-meta-item span { font-family: var(--sans); font-size: 9.7px; letter-spacing: .12em; color: var(--muted); }
.daily-meta-item strong { font-family: var(--serif); font-size: 19.4px; color: var(--gold-2); font-weight: 500; }
.daily-meta-item em { font-family: var(--sans); font-style: normal; font-size: 8.6px; color: var(--muted-2); }
.daily-menu-hint {
  margin-top: 16px;
  font-family: var(--sans);
  font-size: 9.7px;
  letter-spacing: .08em;
  color: var(--muted-2);
}
.daily-visual {
  position: relative;
  min-height: min(62vh, 620px);
  display: grid;
  place-items: center;
}
.daily-orbit {
  position: absolute;
  width: min(42vw, 540px);
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 50%;
  pointer-events: none;
}
.daily-orbit.o2 { width: min(50vw, 650px); border-style: dashed; opacity: .5; }
.daily-orbit::before, .daily-orbit::after {
  content: "";
  position: absolute;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 12px rgba(195,160,94,.85);
}
.daily-orbit::before { top: 12%; right: 13%; }
.daily-orbit::after { bottom: 14%; left: 18%; }
.daily-moon {
  position: absolute;
  width: min(32vw, 390px);
  opacity: .85;
  z-index: 0;
}
.daily-card {
  position: relative;
  z-index: 2;
  display: block;
  width: min(270px, 58%);
  aspect-ratio: 2 / 3.5;
  transform: rotate(6deg);
  filter: drop-shadow(0 30px 50px rgba(0,0,0,.55));
  transition: transform 600ms var(--ease), filter 600ms var(--ease);
}
.daily-card:hover { transform: rotate(2deg) translateY(-12px); filter: drop-shadow(0 36px 60px rgba(0,0,0,.65)); }
.daily-card .card-back { width: 100%; height: 100%; }
.daily-card-mark {
  position: absolute;
  left: 50%;
  bottom: 13%;
  transform: translateX(-50%);
  font-family: var(--serif);
  font-size: 16.2px;
  letter-spacing: .36em;
  color: var(--gold-2);
  text-indent: .36em;
}
.daily-note {
  position: absolute;
  left: 50%;
  bottom: 4%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-family: var(--sans);
  font-size: 8.6px;
  letter-spacing: .16em;
  color: var(--muted);
  text-transform: uppercase;
}
.daily-note::before { content: ""; display: inline-block; width: 20px; height: 1px; background: var(--gold-3); margin-right: 8px; vertical-align: middle; }
@media (max-width: 860px) {
  .daily-grid { grid-template-columns: 1fr; gap: 12px; }
  .daily-copy { max-width: 100%; }
  .daily-title { font-size: clamp(48px, 13vw, 80px); }
  .daily-sub { max-width: 420px; }
  .daily-visual { min-height: 360px; margin-top: 4px; }
  .daily-orbit { width: min(76vw, 430px); }
  .daily-orbit.o2 { width: min(88vw, 500px); }
  .daily-moon { width: min(54vw, 300px); }
  .daily-card { width: min(180px, 48%); }
  .daily-note { bottom: 0; }
  .daily-gate { padding-block: 30px 26px; }
}
@media (max-width: 480px) {
  .daily-meta { gap: 12px 0; }
  .daily-meta-item { padding-right: 14px; margin-right: 14px; }
  .daily-actions { align-items: flex-start; }
  .daily-visual { min-height: 320px; }
}

/* contextual card readings */
.meaning-context { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.meaning-context > .label { margin-bottom: 2px; }
.context-item { padding: 11px 0; border-bottom: 1px solid var(--line); }
.context-item:last-child { border-bottom: 0; }
.context-item h4 { font-family: var(--sans); font-size: 9.7px; font-weight: 500; letter-spacing: .14em; color: var(--gold-3); text-transform: uppercase; }
.context-item p { margin-top: 5px; font-size: 13.5px; line-height: 1.85; color: var(--paper-2); }
.card-context { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); }
.card-context > .label { margin-bottom: 2px; }



.draw-step[data-step="3"] .draw-footer { margin-top: 0; margin-bottom: 12px; padding-top: 12px; border-top: 1px solid var(--line); }

@media (max-height: 900px) and (min-width: 861px) {
  .fan-stage { height: 520px; min-height: 420px; }
  .fan-card { bottom: 180px; }
  .fan-base { bottom: 156px; }
}
