:root {
  --bg-main: #0f1020;
  --bg-accent: #231a40;
  --bg-deep: #070912;
  --text-main: #f6e8c2;
  --text-soft: rgba(246, 232, 194, 0.82);
  --line: rgba(255, 255, 255, 0.2);
  --ui-line: rgba(201, 215, 255, 0.2);
  --ui-panel: linear-gradient(145deg, rgba(226, 237, 255, 0.16), rgba(169, 187, 232, 0.06));
}

html, body { height: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text-main);
  font-family: "Manrope", "PingFang SC", sans-serif;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
  background:
    radial-gradient(980px 420px at 10% -12%, rgba(255, 223, 190, 0.24), transparent 58%),
    radial-gradient(760px 420px at 90% 2%, rgba(174, 206, 255, 0.24), transparent 50%),
    linear-gradient(160deg, #f7f2e9 2%, #e9eff8 38%, #e9e2f5 72%, #f2ebdf 100%);
}


body[data-weather="sunny"]::after,
body[data-weather="cloudy"]::after,
body[data-weather="rainy"]::after,
body[data-weather="misty"]::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

body[data-weather="sunny"]::after {
  background: radial-gradient(circle at 85% 12%, rgba(255, 226, 158, 0.18), transparent 30%);
}

body[data-weather="cloudy"]::after {
  background: radial-gradient(700px 220px at 30% 10%, rgba(228, 237, 255, 0.14), transparent 65%);
}

body[data-weather="rainy"]::after {
  background-image: repeating-linear-gradient(110deg, rgba(180, 212, 255, 0.18) 0 2px, transparent 2px 14px);
  opacity: 0.18;
}

body[data-weather="misty"]::after {
  background: radial-gradient(900px 260px at 50% 22%, rgba(220, 230, 246, 0.22), transparent 62%);
}

body[data-phase="dawn"] {
  --bg-main: #f6e7df;
  --bg-accent: #ead6e6;
  --bg-deep: #e9e4f6;
}

body[data-phase="day"] {
  --bg-main: #f7f4ec;
  --bg-accent: #e6eff9;
  --bg-deep: #e3f1ee;
}

body[data-phase="dusk"] {
  --bg-main: #f3e5db;
  --bg-accent: #ead9ee;
  --bg-deep: #e4deef;
}

body[data-phase="night"] {
  --bg-main: #d8dfef;
  --bg-accent: #d9d0e9;
  --bg-deep: #dce6ef;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(560px 300px at 16% 16%, rgba(255, 255, 255, 0.35), transparent 74%),
    radial-gradient(420px 240px at 76% 12%, rgba(255, 228, 192, 0.28), transparent 74%);
}

#starfield {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  opacity: 0.16;
}

body[data-phase="night"] #starfield,
body[data-phase="dusk"] #starfield {
  opacity: 0.22;
}

.night-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 8, 18, 0.35);
  pointer-events: none;
  z-index: -1;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.night-mode .night-overlay { opacity: 1; }

.intro-screen {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: radial-gradient(1200px 700px at 30% -20%, rgba(255, 224, 163, 0.16), transparent 46%), linear-gradient(145deg, #080b16, #121c36 48%, #0a0f1c);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 1.3s ease;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.intro-panel {
  width: min(640px, calc(100% - 32px));
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 28px;
  background: linear-gradient(150deg, rgba(255,255,255,0.15), rgba(255,255,255,0.06));
  padding: 28px 24px;
  text-align: center;
  backdrop-filter: blur(8px);
  box-shadow: 0 24px 72px rgba(0,0,0,0.32);
}

.intro-badge {
  display: inline-block;
  margin-bottom: 14px;
  border: 1px solid rgba(255,255,255,0.32);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  letter-spacing: 1px;
  color: #ffe5ad;
  background: rgba(12, 18, 34, 0.52);
}

.intro-hint {
  margin-top: 12px;
  color: rgba(238, 223, 192, 0.78);
  font-size: 13px;
}

.intro-tagline {
  margin-top: 8px;
  color: rgba(238, 220, 178, 0.55);
  font-size: 11px;
  letter-spacing: 1.5px;
}

#uiElements {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 30px 0 74px;
  box-sizing: border-box;
}

.ui-wrapper {
  width: min(1120px, calc(100% - 24px));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.ui-wrapper.fade-out {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-14px);
}

.top-nav {
  position: sticky;
  top: 12px;
  width: min(1040px, calc(100% - 26px));
  padding: 12px 18px;
  border-radius: 999px;
  box-sizing: border-box;
  backdrop-filter: blur(12px);
  border: 1px solid rgba(176, 153, 118, 0.12);
  background: rgba(255, 251, 244, 0.55);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 30;
  box-shadow: 0 4px 20px rgba(92, 76, 54, 0.06);
}

.phase-chip-wrap {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.phase-chip {
  border: 1px solid rgba(173, 145, 104, 0.16);
  color: #7b5c34;
  background: rgba(255, 249, 236, 0.5);
  backdrop-filter: blur(4px);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 12px;
  letter-spacing: 0.5px;
  font-style: italic;
}

.top-nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-nav-actions .icon-btn.subtle {
  opacity: 0.82;
  font-weight: 500;
  position: relative;
  z-index: 40;
  pointer-events: auto !important;
  -webkit-tap-highlight-color: rgba(200,170,100,0.15);
  touch-action: manipulation;
}

.top-nav-actions .icon-btn.highlight {
  font-weight: 700;
}

.icon-btn {
  border: 1px solid rgba(170, 140, 99, 0.26);
  border-radius: 999px;
  background: rgba(255, 249, 236, 0.82);
  color: #70542f;
  font-size: 12px;
  padding: 9px 13px;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.icon-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(145, 111, 67, 0.35);
  background: rgba(255, 244, 221, 0.88);
}

.icon-btn.highlight {
  background: #f2dfba;
  color: #5d4528;
}

.container {
  width: 100%;
  position: relative;
  border-radius: 0;
  padding: 20px 28px 36px;
  box-sizing: border-box;
  border: none;
  background: transparent;
  backdrop-filter: none;
  box-shadow: none;
}

.container::before {
  display: none;
}

.hero-header { transform: translateY(16px); opacity: 0; }
.choice-card { transform: translateY(28px) scale(0.98); opacity: 0; }

.home-ready .hero-header {
  animation: riseIn 0.8s ease forwards;
}

.home-ready .choice-card:nth-child(1) { animation: riseIn 0.7s ease 0.1s forwards; }
.home-ready .choice-card:nth-child(2) { animation: riseIn 0.7s ease 0.2s forwards; }
.home-ready .choice-card:nth-child(3) { animation: riseIn 0.7s ease 0.3s forwards; }

@keyframes riseIn {
  from { transform: translateY(28px) scale(0.98); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

.classic-title {
  margin: 0;
  font-family: "Noto Serif SC", "STSong", serif;
  letter-spacing: 4px;
  font-size: clamp(2.2rem, 4vw, 3rem);
  background: linear-gradient(135deg, #7a5c3a 0%, #c9a45c 45%, #7a5c3a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 2px 4px rgba(120, 80, 30, 0.15));
}

.classic-title .title-en {
  display: block;
  font-family: "Manrope", sans-serif;
  font-size: 0.38em;
  font-weight: 500;
  letter-spacing: 6px;
  text-transform: uppercase;
  -webkit-text-fill-color: rgba(106, 86, 58, 0.5);
  margin-top: 6px;
}

.subtitle {
  color: rgba(106, 86, 58, 0.72);
  margin: 8px auto 12px;
  max-width: 760px;
  line-height: 1.7;
  font-style: italic;
  letter-spacing: 0.3px;
}

.status-banner {
  border: none;
  background: transparent;
  color: rgba(112, 82, 49, 0.7);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 10px;
  min-height: 18px;
  text-align: center;
  font-size: 13px;
  font-style: italic;
  letter-spacing: 0.5px;
}

.status-banner:empty {
  padding: 0;
  border: 0;
  margin: 0;
  min-height: 0;
}

/* Mystical star divider */
.mystical-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 24px 0 20px;
  font-size: 14px;
  color: rgba(180, 150, 100, 0.45);
  letter-spacing: 8px;
  user-select: none;
}
.mystical-divider span:nth-child(2) {
  font-size: 10px;
  animation: starTwinkle 3s ease-in-out infinite;
}
@keyframes starTwinkle {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.3); }
}

/* Hero header decorator */
.hero-header {
  position: relative;
  text-align: center;
  padding: 6px 0 10px;
}
.hero-header::after {
  content: '⟡';
  display: block;
  margin-top: 8px;
  font-size: 10px;
  color: rgba(180, 150, 100, 0.35);
  letter-spacing: 18px;
  text-align: center;
}

/* ═════════════════════════════════════
   主页能量水晶球小互动
   ═════════════════════════════════════ */
.home-ritual-widget {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin: 6px 0 18px;
}

.ritual-orb {
  position: relative;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 2px solid rgba(180, 140, 80, 0.38);
  background: radial-gradient(circle at 38% 34%, rgba(210, 190, 240, 0.42), rgba(80, 50, 140, 0.32) 56%, rgba(28, 18, 50, 0.78));
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, box-shadow 0.4s ease;
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 4px 18px rgba(120, 80, 200, 0.18), 0 0 0 0 rgba(200, 170, 100, 0);
}

.ritual-orb:hover {
  transform: scale(1.06);
  box-shadow: 0 6px 24px rgba(120, 80, 200, 0.28), 0 0 0 4px rgba(200, 170, 100, 0.08);
}

.ritual-orb.is-charging {
  animation: orbPulse 0.8s ease-in-out infinite;
  box-shadow: 0 0 28px rgba(200, 160, 80, 0.5), 0 0 56px rgba(180, 130, 220, 0.3);
}

.ritual-orb.is-ready {
  box-shadow: 0 0 34px rgba(180, 230, 150, 0.5), 0 0 64px rgba(120, 200, 140, 0.28);
  border-color: rgba(150, 210, 140, 0.5);
}

@keyframes orbPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.ritual-orb__glow {
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 170, 110, 0.18), transparent 60%);
  pointer-events: none;
  opacity: 0.5;
  transition: opacity 0.4s ease;
}

.ritual-orb.is-charging .ritual-orb__glow {
  opacity: 1;
  animation: glowPulse 1.2s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; }
}

.ritual-orb__icon {
  font-size: 42px;
  line-height: 1;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 0 6px rgba(200, 170, 100, 0.4));
}

.ritual-orb__ring {
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 72px;
  height: 4px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(120, 90, 50, 0.2);
}

.ritual-orb__ring span {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, #d4a856, #f0d48a, #c09038);
  transition: transform 0.06s linear;
}

.ritual-orb__label {
  font-size: 13px;
  color: rgba(240, 220, 190, 0.95);
  letter-spacing: 0.4px;
  text-align: center;
  transition: color 0.3s ease;
  min-height: 18px;
}

.emoji-reaction-bar {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.emoji-react {
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid rgba(172,139,91,0.22);
  background: rgba(255,251,241,0.8);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}
.emoji-react:hover { background: rgba(255,244,218,0.9); }
.emoji-react.active {
  background: #f2ddb1;
  border-color: #c9a45c;
  font-weight: 600;
}

.home-orbit {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: 16px;
  align-items: start;
}

.home-main {
  min-width: 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.choice-card--secondary .choice-card__feature {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 999px;
  background: rgba(120, 140, 200, 0.08);
  border: 1px solid rgba(120, 140, 200, 0.12);
  font-size: 12px;
  color: #6a7ca0;
}

.hero-grid--editorial .card-deep {
  max-width: 880px;
}

.choice-card {
  position: relative;
  border: 1px solid rgba(173, 146, 109, 0.12);
  background: rgba(255, 253, 248, 0.82);
  backdrop-filter: blur(12px);
  border-radius: 24px;
  padding: 28px 26px;
  box-shadow: 0 8px 28px rgba(89, 72, 49, 0.06), inset 0 1px 0 rgba(255,255,255,0.5);
  transition: transform 0.4s cubic-bezier(.22,1,.36,1), box-shadow 0.4s ease;
  transform-style: flat;
}

.choice-card:hover {
  transform: translateY(-4px) rotate(-0.3deg);
  box-shadow: 0 16px 36px rgba(89, 72, 49, 0.1), inset 0 1px 0 rgba(255,255,255,0.6);
}

.choice-card::after {
  display: none;
}

.choice-card--main {
  background: rgba(255, 250, 238, 0.78);
  border-radius: 28px;
}

.choice-card--secondary {
  background: rgba(240, 245, 255, 0.72);
  border-radius: 50px 24px 50px 24px;
  text-align: center;
}

.choice-card--love {
  background: rgba(255, 241, 243, 0.78);
  border-color: rgba(210, 141, 152, 0.25);
  border-radius: 24px 48px 24px 48px;
  padding: 0;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

/* Couple card: collapsed/expanded toggle */
.couple-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 14px 22px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  color: #3d2050;
  text-align: left;
  transition: background 0.2s ease;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.couple-toggle:hover {
  background: rgba(220, 140, 160, 0.12);
}

.couple-toggle__heart {
  font-size: 20px;
  line-height: 1;
  animation: heartbeat 2.4s ease-in-out infinite;
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  12% { transform: scale(1.18); }
  24% { transform: scale(1); }
  36% { transform: scale(1.1); }
  48% { transform: scale(1); }
}

.couple-toggle__text {
  flex: 1;
}

.couple-toggle__expand-hint {
  font-size: 11px;
  font-weight: 500;
  color: rgba(150, 80, 110, 0.72);
  letter-spacing: 0.3px;
  transition: opacity 0.2s ease;
}

.choice-card--love:not(.couple-collapsed) .couple-toggle__expand-hint {
  display: none;
}

.couple-toggle__arrow {
  font-size: 12px;
  color: rgba(140, 80, 110, 0.82);
  transition: transform 0.32s cubic-bezier(.22,1,.36,1);
}

.couple-toggle__desc {
  margin: 0 22px 14px;
  padding: 0;
  font-size: 12.5px;
  color: #5a3680;
  font-style: italic;
  line-height: 1.6;
}

/* Show desc only in expanded state */
.couple-collapsed .couple-toggle__desc {
  display: none;
}

.choice-card--love:not(.couple-collapsed) .couple-toggle__desc {
  display: block;
}

.couple-collapsed .couple-toggle__arrow {
  transform: rotate(0deg);
}

.choice-card--love:not(.couple-collapsed) .couple-toggle__arrow {
  transform: rotate(180deg);
}

/* Collapsed state: compact pill-bar */
.choice-card--love {
  transition: opacity 0.35s ease;
}

/* Card becomes a compact horizontal bar when collapsed */
.choice-card--love.couple-collapsed {
  padding: 0 !important;
  min-height: 0 !important;
  overflow: hidden;
  border-radius: 16px !important;
  max-width: 520px;
  align-self: center;
  justify-self: center;
  width: 100%;
  clip-path: none !important;
}

.couple-collapsed .couple-toggle {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 10px;
  padding: 14px 20px;
  cursor: pointer;
  min-height: 0;
  background: transparent;
  border-radius: 0;
  clip-path: none;
  border: none;
}

.couple-collapsed .couple-toggle__heart {
  font-size: 20px;
  flex-shrink: 0;
}

.couple-collapsed .couple-toggle__text {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.couple-collapsed .price-tag {
  font-size: 11px;
  padding: 2px 9px;
  flex-shrink: 0;
}

.couple-collapsed .couple-toggle__expand-hint {
  font-size: 12px;
  opacity: 0.72;
}

.couple-collapsed .couple-toggle__arrow {
  font-size: 12px;
  opacity: 0.72;
}

.choice-card--love:not(.couple-collapsed) {
  border-radius: 20px !important;
  max-width: none;
  width: auto !important;
  height: auto !important;
  min-height: unset !important;
  clip-path: none !important;
  overflow: hidden;
}

.couple-expand {
  padding: 0 22px 22px;
  max-height: 600px;
  opacity: 1;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.28s ease, padding 0.3s ease;
}

/* Expanded form: 2-column layout for the inputs */
.choice-card--love:not(.couple-collapsed) .couple-expand .choice-card__body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.choice-card--love:not(.couple-collapsed) .couple-expand .choice-card__body > .input-group:last-of-type {
  grid-column: 1 / -1;
}

.choice-card--love:not(.couple-collapsed) .couple-expand .choice-card__body > #startCoupleBtn {
  grid-column: 1 / -1;
}

/* Expanded state: desc + form horizontal layout */
.choice-card--love:not(.couple-collapsed) {
  padding: 0 !important;
}

.choice-card--love:not(.couple-collapsed) .couple-toggle {
  border-bottom: 1px solid rgba(210, 160, 190, 0.18);
  padding: 16px 22px;
  white-space: nowrap;
}

.couple-collapsed .couple-expand {
  max-height: 0;
  opacity: 0;
  padding-top: 0;
  padding-bottom: 0;
}

.choice-card__eyebrow {
  color: #a8895a;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 10px;
  font-weight: 500;
}

.choice-card__title {
  margin: 0 0 10px;
  color: #4e3d2a;
  font-size: 1.36rem;
  letter-spacing: 0.8px;
  font-style: italic;
}

.choice-card__desc {
  margin: 0 0 16px;
  color: rgba(88, 71, 47, 0.72);
  line-height: 1.8;
  font-size: 13.5px;
  font-style: italic;
}

.choice-card__body { display: grid; gap: 12px; }

.choice-card__footer {
  margin-top: 14px;
}

.field-hint {
  margin-top: 6px;
  font-size: 12px;
  color: rgba(114, 88, 56, 0.75);
  font-style: italic;
}

.field-hint.error {
  color: #b84a3a;
  font-weight: 600;
}

.spread-guide-head {
  color: #6b4f2b;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 1px;
}

.spread-guide-hint {
  margin: 4px 0 6px;
  font-size: 11.5px;
  color: rgba(155, 132, 96, 0.75);
  line-height: 1.5;
  font-style: italic;
}

.spread-visual-guide {
  margin-top: 6px;
  border: 1px solid rgba(173, 139, 91, 0.15);
  border-radius: 20px;
  background: rgba(255, 253, 249, 0.65);
  backdrop-filter: blur(6px);
  padding: 12px;
}

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

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

.spread-pills--paid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 8px;
}

.spread-pills-advanced {
  margin-top: 8px;
}

.spread-pills-advanced__toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  color: rgba(115, 70, 15, 0.97);
  padding: 6px 0;
  list-style: none;
  user-select: none;
}

.spread-pills-advanced__toggle::-webkit-details-marker {
  display: none;
}

.spread-pills-advanced__arrow {
  font-size: 10px;
  transition: transform 0.2s ease;
}

.spread-pills-advanced[open] .spread-pills-advanced__arrow {
  transform: rotate(180deg);
}

.spread-pill {
  border: 1px solid rgba(176, 144, 98, 0.16);
  border-radius: 16px;
  background: rgba(255, 253, 248, 0.75);
  backdrop-filter: blur(4px);
  padding: 10px 11px;
  text-align: left;
  cursor: pointer;
  display: grid;
  gap: 4px;
  transition: transform 0.3s cubic-bezier(.22,1,.36,1), border-color 0.2s ease, box-shadow 0.3s ease;
}

.spread-pill:hover {
  transform: translateY(-2px) rotate(-0.5deg);
  border-color: rgba(156, 118, 62, 0.3);
  box-shadow: 0 6px 16px rgba(124, 95, 55, 0.1);
}

.spread-pill.active {
  border-color: rgba(152, 110, 58, 0.55);
  box-shadow: 0 6px 16px rgba(149, 112, 65, 0.14);
  background: rgba(255, 245, 224, 0.85);
}

.spread-pill.is-paid {
  border-style: dashed;
}

.spread-pill__icon {
  font-size: 16px;
  line-height: 1;
}

.spread-pill__name {
  color: #604628;
  font-size: 13px;
  font-weight: 700;
}

.spread-pill__desc {
  color: rgba(96, 70, 40, 0.72);
  font-size: 11px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.spread-pill__meta {
  color: rgba(106, 78, 45, 0.84);
  font-size: 12px;
}

.spread-pill__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.spread-pill__tag {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(152, 110, 58, 0.1);
  color: rgba(86, 61, 32, 0.82);
  font-size: 10.5px;
  font-weight: 700;
}

.spread-pill__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 26px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(118, 86, 45, 0.08);
  color: #6b4c29;
  font-size: 11px;
  font-weight: 800;
}

.spread-pill.active .spread-pill__cta {
  background: rgba(152, 110, 58, 0.18);
}

.spread-section {
  border-radius: 20px;
  padding: 10px;
  border: 1px solid rgba(166, 129, 77, 0.15);
  background: rgba(255, 253, 248, 0.42);
}

.spread-section--paid {
  border-color: rgba(154, 104, 40, 0.26);
  background:
    radial-gradient(220px 110px at 100% 0%, rgba(214, 181, 106, 0.2), transparent 70%),
    rgba(255, 246, 224, 0.62);
}

.spread-section__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  color: #543b1f;
}

.spread-section__head strong {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  line-height: 1.45;
}

.spread-section__kicker {
  color: #a0702f;
  font-size: 10.5px;
  letter-spacing: 0.12em;
  font-weight: 800;
}

.spread-section__badge {
  flex: 0 0 auto;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(118, 86, 45, 0.1);
  color: #6b4c29;
  font-size: 11px;
  font-weight: 800;
}

.spread-paid-note {
  margin: 0 0 8px;
  padding: 8px 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.45);
  color: rgba(89, 62, 29, 0.72);
  font-size: 11.5px;
  line-height: 1.55;
}

.spread-current-pick {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(172, 139, 91, 0.2);
  background: rgba(255, 251, 241, 0.65);
  backdrop-filter: blur(6px);
}
.spread-current-pick__icon { font-size: 1.3rem; }
.spread-current-pick__name { font-weight: 700; color: #5a4122; font-size: 14px; }
.spread-current-pick__meta { color: #8a6d44; font-size: 12px; }
.spread-current-pick__change {
  margin-left: auto;
  background: none;
  border: 1px solid rgba(172, 139, 91, 0.35);
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 12px;
  color: #8a6d44;
  cursor: pointer;
  transition: background 0.2s;
}
.spread-current-pick__change:hover { background: rgba(172, 139, 91, 0.12); }

.spread-recommendation {
  width: 100%;
  margin-top: 8px;
  padding: 12px 14px;
  border: 1px solid rgba(189, 143, 71, 0.28);
  border-radius: 18px;
  background:
    radial-gradient(140px 80px at 8% 0%, rgba(245, 202, 121, 0.18), transparent 70%),
    rgba(255, 248, 232, 0.78);
  color: #5c4222;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(126, 88, 42, 0.08);
}

.spread-recommendation__label,
.spread-recommendation__main,
.spread-recommendation__reason {
  display: block;
}

.spread-recommendation__label {
  color: #a06f2b;
  font-size: 11px;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.spread-recommendation__main {
  font-weight: 800;
  font-size: 14px;
  margin-bottom: 4px;
}

.spread-recommendation__reason {
  color: rgba(92, 66, 34, 0.74);
  font-size: 12px;
  line-height: 1.5;
}

.spread-advanced-teaser {
  position: relative;
  width: 100%;
  margin-top: 10px;
  padding: 12px 14px;
  border: 2px solid rgba(255, 221, 153, 0.58);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(67, 45, 26, 0.96), rgba(126, 82, 39, 0.84)),
    radial-gradient(180px 90px at 12% 0%, rgba(255, 219, 143, 0.22), transparent 72%);
  color: #fff3d8;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 14px 28px rgba(83, 50, 22, 0.22);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.spread-advanced-teaser:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 231, 174, 0.9);
  box-shadow: 0 18px 34px rgba(83, 50, 22, 0.28);
}

.spread-advanced-teaser__label,
.spread-advanced-teaser__main,
.spread-advanced-teaser__preview {
  display: block;
}

.spread-advanced-teaser__label {
  color: rgba(255, 224, 154, 0.86);
  font-size: 11px;
  letter-spacing: 0.12em;
  margin-bottom: 4px;
}

.spread-advanced-teaser__main {
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 6px;
}

.spread-advanced-teaser__preview {
  max-width: 100%;
  color: rgba(255, 244, 220, 0.78);
  font-size: 12px;
  line-height: 1.5;
  padding-right: 132px;
}

.spread-advanced-teaser__price {
  position: absolute;
  right: 14px;
  top: 14px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 235, 184, 0.16);
  color: #ffe5a3;
  font-size: 12px;
  font-weight: 700;
}

.spread-advanced-teaser__cta {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 7px 10px;
  border-radius: 999px;
  background: #f5d890;
  color: #4b3014;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 8px 16px rgba(26, 16, 7, 0.16);
}

.spread-advanced-teaser.is-open {
  border-color: rgba(255, 231, 174, 0.9);
}

.spread-picker-drawer {
  margin-top: 8px;
  animation: slideDown 0.2s ease;
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.spread-guide-text {
  margin-top: 8px;
  color: #6e5230;
  font-size: 12px;
  line-height: 1.6;
}

.pay-hint {
  border-radius: 999px;
  padding: 8px 14px;
  background: rgba(233, 245, 233, 0.6);
  border: 1px solid rgba(121, 161, 118, 0.2);
  color: #3f673a;
  font-size: 12px;
  text-align: center;
}

.pay-hint.locked {
  background: rgba(255, 241, 227, 0.8);
  border-color: rgba(186, 122, 63, 0.34);
  color: #8a4f1f;
}

.choice-card__feature {
  color: #715632;
  margin-bottom: 12px;
  font-size: 13px;
}

.choice-card__icon {
  font-size: 2.6rem;
  opacity: 0.6;
  text-align: center;
  margin: 12px 0 6px;
  animation: gentleFloat 5s ease-in-out infinite;
}

.feedback-desc {
  margin: 0 0 12px;
  color: rgba(98, 79, 52, 0.78);
  line-height: 1.6;
  font-size: 13px;
}

.input-group { margin-bottom: 8px; text-align: left; }

.input-group label {
  display: block;
  color: #846238;
  margin-bottom: 8px;
  font-size: 13.5px;
  letter-spacing: 0.5px;
  font-style: italic;
}

.input-group input,
.input-group textarea,
.input-group select {
  width: 100%;
  box-sizing: border-box;
  border-radius: 16px;
  border: 1px solid rgba(158, 131, 93, 0.16);
  background: rgba(255, 252, 245, 0.6);
  backdrop-filter: blur(4px);
  color: #5a4427;
  padding: 13px 16px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.input-group input:focus,
.input-group textarea:focus,
.input-group select:focus {
  outline: none;
  border-color: rgba(255, 223, 161, 0.9);
  box-shadow: 0 0 0 3px rgba(255, 223, 161, 0.14);
}

.input-group textarea {
  resize: vertical;
  min-height: 118px;
}

.dual-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.main-btn,
.secondary-btn,
.save-btn {
  border-radius: 999px;
  border: none;
  padding: 13px 22px;
  cursor: pointer;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.main-btn {
  width: 100%;
  color: #5f4526;
  background: linear-gradient(135deg, #f4e2b8, #e8c87a);
  box-shadow: 0 4px 14px rgba(196, 148, 64, 0.22);
}

.secondary-btn {
  width: 100%;
  color: #5b472b;
  border: 1px solid rgba(165, 133, 90, 0.22);
  background: rgba(255, 252, 245, 0.75);
  backdrop-filter: blur(6px);
}

.ghost-btn {
  width: 100%;
  color: #f5ead0;
  background: rgba(255, 248, 233, 0.12);
  border: 1px solid rgba(220, 196, 156, 0.3);
  font-weight: 700;
  border-radius: 999px;
  min-height: 56px;
  font-size: 15px;
  letter-spacing: 0.4px;
}

.main-btn,
.secondary-btn,
.ghost-btn,
.save-btn,
.cancel-btn,
.confirm-btn {
  transition: transform 0.2s ease, filter 0.2s ease;
}

.main-btn:hover,
.secondary-btn:hover,
.ghost-btn:hover,
.save-btn:hover,
.cancel-btn:hover,
.confirm-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.02);
}

.save-btn {
  color: #2a1c04;
  background: linear-gradient(130deg, #fde8b8, #cda356);
}

.save-btn.restart {
  background: transparent;
  border: 1px solid #d5b675;
  color: #e8d4a7;
}

.action-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  position: relative;
  z-index: 40;
  pointer-events: auto;
}

.action-btns > button {
  position: relative;
  z-index: 41;
  pointer-events: auto;
}

.result-actions {
  width: min(760px, calc(100% - 18px));
  margin-left: auto;
  margin-right: auto;
  padding: 14px 16px 28px !important;
  border-radius: 24px;
  border: 1px solid rgba(244, 220, 176, 0.18);
  background:
    radial-gradient(260px 120px at 50% 0%, rgba(244, 220, 176, 0.12), transparent 70%),
    rgba(8, 11, 23, 0.2);
  box-shadow: 0 16px 34px rgba(2, 5, 16, 0.16);
}

.result-actions::before {
  content: "下一步";
  width: 100%;
  color: rgba(246, 230, 197, 0.72);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-align: center;
}

.result-action-primary {
  min-width: 190px;
}

.result-action-soft {
  min-width: 150px;
  background: rgba(255, 249, 236, 0.12) !important;
  border: 1px solid rgba(244, 220, 176, 0.28) !important;
  color: rgba(255, 244, 220, 0.94) !important;
}

.result-action-soft:hover {
  background: rgba(255, 249, 236, 0.18) !important;
}

.aside-panel {
  width: min(1060px, calc(100% - 24px));
  margin: 12px auto 0;
  display: flex;
  justify-content: flex-end;
}

.daily-card-area {
  max-width: 340px;
  border-radius: 24px;
  padding: 24px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(18, 20, 37, 0.78);
}

.daily-title { color: #f2ddb0; font-size: 1.3rem; }
.daily-date { color: #d5c095; margin: 8px 0 12px; padding-bottom: 10px; border-bottom: 1px dashed rgba(255,255,255,0.2); }
.daily-emoji-card {
  width: 128px;
  height: 220px;
  margin: 0 auto 16px;
  border-radius: 12px;
  border: 2px solid #d2b267;
  background: radial-gradient(circle at top right, #fff, #f1e4c8);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.daily-emoji { font-size: 62px; }
.daily-name {
  width: 80%;
  text-align: center;
  color: #2d2419;
  border-top: 1px solid #d2b267;
  border-bottom: 1px solid #d2b267;
  margin-top: 8px;
  padding: 6px 0;
}
.daily-quote { color: #daccaa; line-height: 1.8; }

.immersive-container {
  width: min(1060px, calc(100% - 24px));
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.immersive-back-btn {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 900;
  background: rgba(255, 251, 244, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(224, 202, 164, 0.25);
  color: rgba(245, 236, 219, 0.88);
  font-size: 15px;
  font-weight: 700;
  padding: 12px 18px;
  min-height: 48px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s, opacity 0.3s;
  letter-spacing: 0.3px;
}
.immersive-back-btn:hover {
  background: rgba(255, 251, 244, 0.22);
}

.energy-text {
  color: #f6dc9f;
  font-style: italic;
  font-size: 1.2rem;
  margin-top: 18px;
}

.deck-area {
  width: 100%;
  min-height: 0;
  margin: 14px 0 22px;
  padding: 16px 10px 20px;
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.06);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  box-sizing: border-box;
}

.ritual-text { color: #ead7a8; font-style: italic; }

.shuffling-deck {
  width: 76px;
  height: 128px;
  border: 1px solid #d3af67;
  border-radius: 6px;
  background: #1a1e36;
  animation: shuffleCards 0.5s infinite alternate ease-in-out;
}

@keyframes shuffleCards {
  from { transform: translateY(0) rotate(-2deg); }
  to { transform: translateY(-10px) rotate(5deg); }
}

/* ── Multi-card shuffle animation ── */
.shuffling-deck-multi {
  position: relative;
  width: 100px;
  height: 160px;
  margin: 16px auto 10px;
}

.sdm-card {
  position: absolute;
  width: 70px;
  height: 120px;
  border-radius: 8px;
  border: 1px solid rgba(211, 175, 103, 0.65);
  background:
    radial-gradient(ellipse at 30% 20%, rgba(72, 55, 110, 0.92), transparent 60%),
    linear-gradient(160deg, rgba(38, 30, 62, 0.99), rgba(14, 18, 36, 0.99));
  left: 15px;
  top: 20px;
  transform-origin: bottom center;
}

.sdm-card--1 { animation: sdmShuffle1 1.2s ease-in-out infinite; z-index: 5; }
.sdm-card--2 { animation: sdmShuffle2 1.2s ease-in-out infinite; z-index: 4; }
.sdm-card--3 { animation: sdmShuffle3 1.2s ease-in-out infinite; z-index: 3; }
.sdm-card--4 { animation: sdmShuffle4 1.2s ease-in-out infinite; z-index: 2; }
.sdm-card--5 { animation: sdmShuffle5 1.2s ease-in-out infinite; z-index: 1; }

@keyframes sdmShuffle1 {
  0%   { transform: rotate(-8deg) translateY(0); }
  20%  { transform: rotate(-24deg) translateX(-22px) translateY(-14px); }
  50%  { transform: rotate(12deg) translateX(18px) translateY(-8px); }
  80%  { transform: rotate(-6deg) translateX(-8px) translateY(-4px); }
  100% { transform: rotate(-8deg) translateY(0); }
}
@keyframes sdmShuffle2 {
  0%   { transform: rotate(-4deg) translateY(2px); }
  25%  { transform: rotate(16deg) translateX(20px) translateY(-18px); }
  55%  { transform: rotate(-18deg) translateX(-20px) translateY(-6px); }
  85%  { transform: rotate(4deg) translateX(6px) translateY(-2px); }
  100% { transform: rotate(-4deg) translateY(2px); }
}
@keyframes sdmShuffle3 {
  0%   { transform: rotate(0deg) translateY(4px); }
  30%  { transform: rotate(-20deg) translateX(-18px) translateY(-22px); }
  60%  { transform: rotate(22deg) translateX(22px) translateY(-4px); }
  90%  { transform: rotate(-2deg) translateX(-4px) translateY(0); }
  100% { transform: rotate(0deg) translateY(4px); }
}
@keyframes sdmShuffle4 {
  0%   { transform: rotate(4deg) translateY(6px); }
  35%  { transform: rotate(22deg) translateX(24px) translateY(-16px); }
  65%  { transform: rotate(-14deg) translateX(-16px) translateY(-10px); }
  95%  { transform: rotate(6deg) translateX(8px) translateY(2px); }
  100% { transform: rotate(4deg) translateY(6px); }
}
@keyframes sdmShuffle5 {
  0%   { transform: rotate(8deg) translateY(8px); }
  40%  { transform: rotate(-26deg) translateX(-26px) translateY(-12px); }
  70%  { transform: rotate(18deg) translateX(16px) translateY(-6px); }
  100% { transform: rotate(8deg) translateY(8px); }
}

.shuffle-ritual-text {
  font-size: 16px;
  margin-bottom: 0;
  animation: shuffleTextPulse 2s ease-in-out infinite;
}

@keyframes shuffleTextPulse {
  0%, 100% { opacity: 0.7; }
  50%       { opacity: 1; }
}

.shuffle-sub-text {
  font-size: 13px;
  color: rgba(210, 180, 130, 0.72);
  margin-top: 8px;
  letter-spacing: 0.5px;
  animation: shuffleTextPulse 2s 0.6s ease-in-out infinite;
}

.fan-deck {
  width: 100%;
  height: 380px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  overflow: visible;
}

.deck-card {
  position: absolute;
  width: 74px;
  height: 128px;
  border-radius: 6px;
  border: 1px solid rgba(211, 175, 103, 0.58);
  background: radial-gradient(circle at center, #251e3f, #111222);
  transform-origin: bottom center;
  cursor: pointer;
  transition: transform 0.35s ease;
}

.deck-card:hover { transform: translateY(-22px) scale(1.08); }
.deck-card.drawn { opacity: 0; pointer-events: none; }
.deck-area.fading-out {
  opacity: 0;
  transition: opacity 0.55s ease;
  pointer-events: none;
}

.spread-container {
  display: none;
  width: 100%;
  max-width: 900px;
  opacity: 0;
  transition: opacity 0.9s ease;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  border-radius: 30px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.08);
  padding: 22px;
}

.layout-linear { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.layout-grid { display: grid; grid-template-columns: 120px 120px; gap: 18px; justify-content: center; }
.layout-cross {
  display: grid;
  grid-template-columns: 100px 100px 100px;
  grid-template-rows: 170px 170px 170px;
  gap: 12px;
  justify-content: center;
}
.layout-cross #slot-0 { grid-column: 2; grid-row: 2; }
.layout-cross #slot-1 { grid-column: 1; grid-row: 2; }
.layout-cross #slot-2 { grid-column: 2; grid-row: 1; }
.layout-cross #slot-3 { grid-column: 2; grid-row: 3; }
.layout-cross #slot-4 { grid-column: 3; grid-row: 2; }

.card-slot {
  width: 120px;
  height: 210px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  perspective: 1000px;
}

.slot-label {
  margin-bottom: 8px;
  font-size: 12px;
  opacity: 0;
  transform: translateY(4px);
  transition: all 0.4s ease;
  color: #e9d8aa;
}

.slot-label.visible { opacity: 1; transform: translateY(0); }

.card {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.6s ease, opacity 0.3s ease;
  opacity: 0;
  transform: scale(0.1) translateY(-260px);
}

.card.dealt { opacity: 1; transform: scale(1) translateY(0); }
.card.dealt:not(.flipped) { cursor: pointer; }
.card.dealt:not(.flipped) .card-back {
  animation: flipMeHint 2.8s ease-in-out infinite;
}
@keyframes flipMeHint {
  0%, 100% { box-shadow: inset 0 0 0 0 rgba(240,215,160,0), 0 0 0 0 rgba(240,215,160,0); }
  50% { box-shadow: inset 0 0 18px rgba(240,215,160,0.13), 0 0 14px rgba(220,185,120,0.38); }
}

/* Draw progress tracker */
.draw-slot-tracker {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 0 12px;
  color: rgba(240, 220, 180, 0.58);
  font-size: 12px;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
}
.draw-slot-tracker__label {
  letter-spacing: 0.08em;
}
.draw-slot-tracker__items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.dst-slot {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(240,220,180,0.5);
  font-size: 12px;
  transition: all 0.35s ease;
}
.dst-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1.5px solid rgba(220,185,120,0.45);
  flex-shrink: 0;
  transition: all 0.35s ease;
}
.dst-slot.filled {
  color: rgba(175,235,185,0.9);
}
.dst-slot.filled .dst-dot {
  background: rgba(155,215,165,0.9);
  border-color: rgba(155,215,165,0.9);
}
.card.flipped { transform: rotateY(180deg); }
.card.flipped.reversed { transform: rotateY(180deg) rotateZ(180deg); }

.card-face {
  position: absolute;
  inset: 0;
  border-radius: 12px;
  backface-visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  border: 1px solid rgba(212, 173, 94, 0.35);
}

.card-back { background: radial-gradient(circle at center, #2b223f, #111423); color: #f0deaa; font-size: 34px; }
.card-front { background: radial-gradient(circle at top right, #fff, #f5e9cf); transform: rotateY(180deg); color: #2f281d; }
.card-front .emoji { font-size: 42px; }
.card-front .name { font-size: 12px; border-top: 1px solid #c6a35b; border-bottom: 1px solid #c6a35b; padding: 4px 0; width: 90%; text-align: center; }

.reading-wrapper { max-width: 760px; width: 100%; }

.mini-card-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  gap: 8px;
  align-items: center;
  overflow-x: auto;
  padding: 8px 10px;
  margin: 0 0 10px;
  border-bottom: 1px solid rgba(229, 204, 156, 0.3);
  border-radius: 14px;
  background: rgba(17, 20, 35, 0.58);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.mini-card-item {
  flex: 0 0 auto;
  min-width: 72px;
  border: 1px solid rgba(233, 213, 174, 0.28);
  border-radius: 10px;
  padding: 6px 8px;
  background: rgba(255, 248, 230, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.mini-card-item:hover, .mini-card-item:focus {
  background: rgba(255, 248, 230, 0.15);
  border-color: rgba(233, 213, 174, 0.55);
  outline: none;
}

.mini-card-emoji {
  font-size: 16px;
  line-height: 1;
}

.mini-card-position {
  font-size: 11px;
  color: rgba(247, 233, 200, 0.7);
  white-space: nowrap;
}

.mini-card-name {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 243, 215, 0.95);
  white-space: nowrap;
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ai-status {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 14px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(200, 170, 120, 0.2);
  background: rgba(16, 12, 36, 0.62);
  color: rgba(245, 232, 200, 0.9);
}

.crystal-ball { font-size: 34px; margin-bottom: 4px; }

.parchment-box {
  display: none;
  border-radius: 22px;
  border: 1px solid rgba(200, 168, 110, 0.22);
  background: linear-gradient(160deg, rgba(14, 11, 32, 0.97) 0%, rgba(20, 16, 46, 0.96) 60%, rgba(16, 12, 36, 0.97) 100%);
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 235, 185, 0.1),
    0 0 100px rgba(100, 60, 180, 0.06);
  padding: 32px 28px;
  color: rgba(245, 233, 210, 0.95);
}

.parchment-box.visible { display: block; }


.parchment-text { line-height: 1.85; }
.parchment-text * { color: inherit !important; background: transparent !important; }
.parchment-text h4 { margin-top: 26px !important; margin-bottom: 12px !important; border-bottom: 1px solid rgba(200, 168, 110, 0.25); padding-bottom: 6px; color: rgba(245, 222, 175, 0.98) !important; }

#streamContent blockquote {
  margin: 18px 0 20px;
  padding: 14px 18px;
  border-left: 5px solid rgba(200, 160, 90, 0.65);
  border-radius: 0 14px 14px 0;
  background: linear-gradient(120deg, rgba(40, 28, 75, 0.55), rgba(28, 20, 58, 0.38));
  color: rgba(245, 228, 190, 0.98) !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

#streamContent blockquote p {
  margin: 0;
  line-height: 1.9;
  font-size: 1.02rem;
  letter-spacing: 0.3px;
}

#streamContent p {
  margin: 0.52rem 0;
  line-height: 1.92;
}

#streamContent h1,
#streamContent h2,
#streamContent h3,
#streamContent h4 {
  margin: 1rem 0 0.5rem;
  line-height: 1.5;
}

#streamContent h3 {
  color: rgba(220, 190, 130, 0.98) !important;
  font-size: 1.04rem;
  letter-spacing: 0.35px;
}

#streamContent hr {
  border: none;
  height: 1px;
  margin: 12px 0 14px;
  background: linear-gradient(90deg, rgba(186, 149, 85, 0), rgba(186, 149, 85, 0.45), rgba(186, 149, 85, 0));
}

#streamContent ul {
  margin: 14px 0;
  padding: 0 0 0 1.25rem;
  list-style: none;
}

#streamContent ul li {
  position: relative;
  margin: 8px 0;
  padding-left: 12px;
  color: inherit !important;
  line-height: 1.8;
}

#streamContent ul li::before {
  content: "✦";
  position: absolute;
  left: -2px;
  top: 1px;
  color: rgba(200, 168, 100, 0.85);
  font-size: 0.9rem;
}

#streamContent .tarot-tag {
  display: inline-block;
  margin: 0 2px;
  padding: 1px 8px;
  border-radius: 999px;
  border: 1px solid rgba(200, 168, 100, 0.38);
  background: linear-gradient(120deg, rgba(60, 40, 100, 0.45), rgba(50, 30, 85, 0.3));
  color: rgba(240, 220, 175, 0.98) !important;
  font-weight: 600;
  letter-spacing: 0.2px;
  box-shadow: inset 0 0 0 1px rgba(200, 168, 100, 0.15);
}

.typing-cursor {
  display: inline-block;
  width: 6px;
  height: 18px;
  background: #6d5438;
  margin-left: 4px;
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  from, to { opacity: 1; }
  50% { opacity: 0; }
}

.action-plan-box {
  width: min(760px, calc(100% - 16px));
  margin: 12px 0 16px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(8, 12, 24, 0.66);
  padding: 14px 16px;
}

.action-plan-box h3 { margin: 0 0 8px; color: #f6e5bb; }
.action-plan-box ul { margin: 0; padding-left: 20px; color: #e7d8b4; line-height: 1.8; }

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 3, 10, 0.82);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.modal-content {
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.2);
  background: linear-gradient(150deg, rgba(255,255,255,0.18), rgba(255,255,255,0.07));
  padding: 24px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.25);
}

.vip-value-list {
  margin: 0 0 12px;
  padding-left: 18px;
  color: rgba(96, 76, 49, 0.88);
  line-height: 1.7;
  font-size: 13px;
}

.modal-btns { display: flex; gap: 10px; margin-top: 12px; }
.confirm-btn { flex: 1; border: none; border-radius: 999px; padding: 11px 14px; cursor: pointer; background: #c5a059 !important; color: #000 !important; font-weight: 700; }
.cancel-btn { width: 36%; border-radius: 999px; cursor: pointer; }

.qr-container {
  width: 210px;
  height: 210px;
  margin: 14px auto;
  border-radius: 16px;
  padding: 12px;
  background: #e7dfc2;
}
.qr-container img { width: 100%; height: 100%; object-fit: contain; }
.qr-fallback-link {
  display: inline-block;
  margin-top: 10px;
  color: #f4d58a;
  font-size: 13px;
  text-decoration: underline;
}

.vip-confirm-content {
  width: min(92vw, 430px);
  text-align: left;
}

.vip-confirm-text {
  margin: 8px 0 0;
  color: rgba(240, 224, 186, 0.9);
  font-size: 14px;
  line-height: 1.6;
}

#confirmVipContinueBtn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  filter: saturate(0.7);
}

.timeline-panel-content {
  width: min(94vw, 620px);
  max-height: 84vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-align: left;
}

.timeline-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.timeline-summary-item {
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 10px;
  padding: 8px;
  background: rgba(9,11,20,0.45);
}

.timeline-summary-label { font-size: 12px; color: rgba(235,217,171,0.78); }
.timeline-summary-value { margin-top: 4px; font-size: 14px; color: #f5e4bc; font-weight: 700; }

.timeline-toolbar {
  display: grid;
  grid-template-columns: auto 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
  align-items: center;
}

.timeline-toolbar label { color: #dfd0a8; font-size: 13px; }
.timeline-toolbar select {
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(17,20,34,0.92);
  color: #f3e6c6;
  padding: 8px;
}

.growth-hub-modal {
  width: min(96vw, 980px);
  max-height: 86vh;
  overflow: auto;
  text-align: left;
}

.vault-auth-panel {
  max-width: 460px;
  margin: 0 auto;
}

.vault-meta {
  margin-bottom: 10px;
  color: #f0deb2;
  font-size: 13px;
}

.journal-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 12px;
}

.journal-notebook {
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 18px;
  padding: 12px;
  background: rgba(5, 8, 18, 0.42);
}

.journal-notebook h4 {
  margin: 0 0 10px;
  color: #f5e4bb;
  font-size: 1rem;
}

.journal-notes-list {
  margin-top: 10px;
  display: grid;
  gap: 8px;
  max-height: 34vh;
  overflow-y: auto;
}

.timeline-list {
  max-height: 56vh;
  overflow-y: auto;
  display: grid;
  gap: 10px;
}

.timeline-item {
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 12px;
  background: rgba(255,255,255,0.08);
  padding: 10px 12px;
  cursor: pointer;
}

.timeline-item:hover { border-color: rgba(255,255,255,0.32); }
.timeline-item-time { font-size: 12px; color: #d4c29a; margin-bottom: 3px; }
.timeline-item-main { font-size: 14px; color: #f2e4be; margin-bottom: 6px; }
.timeline-item-snippet { font-size: 12px; color: rgba(241, 223, 181, 0.8); margin-bottom: 8px; }
.timeline-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.timeline-tag {
  font-size: 12px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 999px;
  padding: 2px 8px;
  color: #e8d8ab;
  background: rgba(9,11,20,0.45);
}

.contact-panel-content { width: min(94vw, 430px); text-align: left; }
.feedback-panel-content { width: min(94vw, 520px); text-align: left; }
.vip-modal-content { width: min(94vw, 560px); }
.contact-desc { color: #dfd0a8; margin: 6px 0 12px; }
.vip-unlock-summary {
  margin: 8px 0 16px;
  padding: 14px;
  border: 1px solid rgba(244, 220, 176, 0.18);
  border-radius: 18px;
  background: rgba(255, 248, 232, 0.08);
  color: rgba(248, 232, 197, 0.94);
  text-align: left;
}

.vip-unlock-summary__top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.vip-unlock-summary__icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(244, 220, 176, 0.12);
  font-size: 20px;
}

.vip-unlock-summary__name {
  color: #f5d890;
  font-weight: 800;
}

.vip-unlock-summary__price {
  margin-top: 2px;
  color: rgba(246, 230, 197, 0.72);
  font-size: 12px;
}

.vip-unlock-summary__value {
  margin: 0 0 8px;
  color: rgba(248, 232, 197, 0.88);
  font-size: 13px;
  line-height: 1.6;
}

.vip-unlock-summary__list {
  margin: 0;
  padding-left: 18px;
  color: rgba(246, 230, 197, 0.74);
  font-size: 12px;
  line-height: 1.6;
}
.vip-code-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0 10px;
  color: rgba(244, 228, 196, 0.82);
  font-size: 12px;
  letter-spacing: 1px;
}

.vip-code-divider::before,
.vip-code-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(244, 220, 176, 0), rgba(244, 220, 176, 0.38), rgba(244, 220, 176, 0));
}

.vip-code-group {
  margin-bottom: 0;
}

.vip-modal-content .modal-btns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.vip-modal-content .cancel-btn,
.vip-modal-content .secondary-btn {
  width: 100%;
}
.contact-item {
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 10px;
  background: rgba(255,255,255,0.08);
  padding: 10px 12px;
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
}
.contact-label { color: #d8c08c; }
.contact-value { color: #f8e7b3; text-decoration: none; font-weight: 700; }
.contact-value:hover { text-decoration: underline; }

.parchment-modal-title {
  color: #4b3520 !important;
  letter-spacing: 0.5px;
  text-shadow: none !important;
}

#contactModal .contact-panel-content,
#historyDetailModal .history-detail-content,
#growthHubModal .growth-hub-modal,
#vipConfirmModal .vip-confirm-content {
  color: #4f3821;
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 244, 204, 0.72), transparent 34%),
    linear-gradient(155deg, rgba(255, 250, 237, 0.98), rgba(239, 221, 184, 0.98));
  border: 1px solid rgba(142, 102, 55, 0.34);
  box-shadow: 0 24px 70px rgba(43, 31, 16, 0.28), inset 0 1px 0 rgba(255,255,255,0.72);
}

#contactModal .contact-desc,
#growthHubModal .growth-intro,
#growthHubModal .vault-meta,
#vipConfirmModal .vip-confirm-text {
  color: rgba(79, 56, 33, 0.74) !important;
}

#contactModal .contact-item,
#growthHubModal .journal-notebook,
#growthHubModal .timeline-item,
#historyDetailModal .history-detail-body {
  color: rgba(75, 53, 32, 0.88);
  background: rgba(255, 252, 244, 0.62);
  border-color: rgba(136, 99, 56, 0.2);
}

#historyDetailModal .history-detail-body {
  padding: 12px;
  border: 1px solid rgba(136, 99, 56, 0.2);
  border-radius: 16px;
}

#historyDetailModal .history-detail-body hr {
  border-color: rgba(136, 99, 56, 0.2) !important;
}

#growthHubModal .timeline-item-main,
#growthHubModal .journal-notebook h4 {
  color: #4b3520 !important;
  text-shadow: none;
}

#growthHubModal .timeline-item-time,
#growthHubModal .timeline-item-snippet {
  color: rgba(79, 56, 33, 0.64) !important;
}

#growthHubModal .timeline-tag,
#growthHubModal .emoji-react {
  color: #6b4c29;
  background: rgba(152, 110, 58, 0.1);
  border-color: rgba(136, 99, 56, 0.18);
}

#growthHubModal textarea {
  color: #4b3520;
  background: rgba(255, 252, 244, 0.86);
  border-color: rgba(136, 99, 56, 0.34);
}

#contactModal .contact-label {
  color: rgba(79, 56, 33, 0.68) !important;
}

#contactModal .contact-value {
  color: #7a4e16 !important;
}

.feedback-contact-shortcut {
  margin-top: 10px;
  border-top: 1px dashed rgba(163, 129, 87, 0.32);
  padding-top: 10px;
}

#feedbackModal .feedback-panel-content {
  width: min(94vw, 520px);
  color: #4f3821;
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 244, 204, 0.78), transparent 34%),
    linear-gradient(155deg, rgba(255, 250, 237, 0.98), rgba(239, 221, 184, 0.98));
  border: 1px solid rgba(142, 102, 55, 0.34);
  box-shadow: 0 24px 70px rgba(43, 31, 16, 0.28), inset 0 1px 0 rgba(255,255,255,0.72);
}

#feedbackModal .feedback-title {
  margin: 0 0 12px;
  color: #4b3520 !important;
  letter-spacing: 0.5px;
  text-shadow: none;
}

#feedbackModal .feedback-desc {
  margin: 0 0 14px;
  color: rgba(79, 56, 33, 0.76) !important;
  line-height: 1.7;
}

#feedbackModal textarea {
  min-height: 150px;
  color: #4b3520;
  background: rgba(255, 252, 244, 0.86);
  border: 1px solid rgba(136, 99, 56, 0.42);
  border-radius: 22px;
  box-shadow: inset 0 2px 10px rgba(96, 65, 28, 0.08);
}

#feedbackModal textarea:focus {
  border-color: rgba(176, 127, 58, 0.78);
  box-shadow: 0 0 0 3px rgba(205, 169, 98, 0.2), inset 0 2px 10px rgba(96, 65, 28, 0.08);
}

#feedbackModal textarea::placeholder {
  color: rgba(95, 70, 43, 0.5);
}

#feedbackModal .modal-btns {
  display: grid;
  grid-template-columns: 0.92fr 1.18fr;
  gap: 12px;
}

#feedbackModal .cancel-btn {
  color: #5a422a;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(120, 87, 52, 0.28);
  box-shadow: 0 6px 0 rgba(94, 74, 49, 0.18);
}

#feedbackModal .confirm-btn {
  color: #382714;
  background: linear-gradient(135deg, #d5b662, #c2953d);
  border: 1px solid rgba(112, 76, 31, 0.22);
  box-shadow: 0 8px 0 rgba(119, 81, 31, 0.22);
}

.feedback-send-status {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 16px;
  color: #76512a;
  background: rgba(214, 181, 106, 0.18);
  border: 1px solid rgba(167, 122, 53, 0.28);
  font-size: 13px;
  line-height: 1.55;
  text-align: center;
}

.feedback-mailto-fallback {
  margin: 10px auto 0;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 34px;
  padding: 0 16px;
  border-radius: 999px;
  color: #5a3c18;
  background: rgba(255, 246, 222, 0.76);
  border: 1px solid rgba(166, 119, 45, 0.34);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.feedback-contact-line {
  margin-top: 10px;
  color: rgba(79, 56, 33, 0.62);
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
}

.flow-steps {
  width: min(760px, calc(100% - 14px));
  margin: 6px 0 8px;
  display: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.flow-step {
  text-align: center;
  padding: 7px 6px;
  border: 1px solid rgba(171, 137, 90, 0.24);
  background: rgba(255, 250, 240, 0.72);
  color: rgba(106, 81, 51, 0.8);
  border-radius: 999px;
  font-size: 12px;
  transition: all 0.2s ease;
}

.flow-step.active {
  background: rgba(255, 237, 200, 0.92);
  border-color: rgba(167, 125, 69, 0.48);
  color: #6e4e28;
  font-weight: 700;
}

.flow-step.done {
  background: rgba(234, 247, 229, 0.9);
  border-color: rgba(114, 153, 86, 0.42);
  color: #486a34;
}

.share-only { display: none; text-align: center; }

@media (max-width: 980px) {
  .home-orbit { grid-template-columns: 1fr; }
  .home-side { order: 2; }
  .hero-grid { grid-template-columns: 1fr; }
  .timeline-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .journal-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .top-nav {
    border-radius: 24px;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .phase-chip-wrap {
    justify-content: center;
  }

  .top-nav-actions {
    display: flex;
    gap: 6px;
  }
  .top-nav-actions .icon-btn .btn-label {
    display: none;
  }
  .top-nav-actions .icon-btn {
    padding: 8px 10px;
    font-size: 16px;
  }
  .top-nav-actions .icon-btn::before {
    content: attr(data-icon);
  }

  .field-hint,
  .pay-hint {
    font-size: 12px;
  }

  .dual-inputs { grid-template-columns: 1fr; }
  .spread-pills { grid-template-columns: 1fr; }
  .spread-pills--free { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spread-pills--paid { grid-template-columns: 1fr; }
  .timeline-toolbar { grid-template-columns: 1fr; }
  .timeline-toolbar label { margin-bottom: -2px; }

  .layout-cross {
    grid-template-columns: 85px 85px 85px;
    grid-template-rows: 150px 150px 150px;
  }

  .layout-cross .card-slot {
    width: 85px;
    height: 150px;
  }
}


/* Streamlined final overrides (clean + non-global-center) */
body {
  background:
    radial-gradient(980px 520px at 14% -8%, rgba(166, 201, 255, 0.2), transparent 58%),
    radial-gradient(900px 560px at 86% 0%, rgba(197, 174, 255, 0.12), transparent 56%),
    linear-gradient(140deg, #111a35, #1a2848 48%, #13203b);
}

body[data-phase="dawn"] { background: linear-gradient(140deg, #2e3358, #4d4f77 52%, #222b4c); }
body[data-phase="day"] { background: linear-gradient(140deg, #1c1e42, #2c2c65 52%, #181a38); }
body[data-phase="dusk"] { background: linear-gradient(140deg, #322b5a, #4f4370 52%, #252149); }
body[data-phase="night"] { background: linear-gradient(140deg, #0e0e26, #16153a 52%, #0a0b1c); }

#starfield { opacity: 0.55; }

#uiElements { padding: 28px 0 72px; }

.ui-wrapper {
  width: min(1120px, calc(100% - 24px));
  margin: 0 auto;
  align-items: stretch;
}

.top-nav {
  position: sticky;
  top: 12px;
  width: min(1080px, calc(100% - 26px));
  margin: 0 auto 10px;
  border-radius: 16px;
  border: 1px solid var(--ui-line);
  background: linear-gradient(125deg, rgba(232, 241, 255, 0.16), rgba(151, 171, 214, 0.07));
}

.phase-chip-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

#timePhaseChip {
  background: rgba(24, 40, 78, 0.72);
  border-color: rgba(204, 221, 255, 0.32);
  color: rgba(236, 243, 255, 0.95);
  font-weight: 700;
}

.date-chip {
  color: rgba(213, 223, 247, 0.78);
  background: rgba(18, 31, 64, 0.38);
  border-color: rgba(196, 214, 248, 0.2);
  font-weight: 500;
  font-size: 12px;
  padding: 6px 10px;
}

.container,
.choice-card,
.modal-content,
.timeline-item,
.journal-notebook,
.daily-card-area,
.spread-container,
.deck-area,
.action-plan-box {
  border-color: var(--ui-line);
  background: var(--ui-panel);
  box-shadow: 0 12px 30px rgba(9, 18, 40, 0.2);
}

.container {
  border-radius: 0;
  padding: 24px 24px 26px;
  border: none;
  background: transparent;
  backdrop-filter: none;
  box-shadow: none;
}

.hero-header {
  margin: 0 0 14px;
  text-align: center;
}

.classic-title {
  background: linear-gradient(135deg, #a0b4e0, #d4c9f2, #a0b4e0);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 0.8px;
  margin-bottom: 8px;
  text-align: center;
}

.status-banner:empty { display: none; }

.home-orbit {
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: 18px;
}

.home-main {
  display: flex;
  justify-content: center;
}

.hero-grid {
  width: min(940px, 100%);
  margin: 0 auto;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 20px;
  align-items: start;
}

.hero-grid .card-quick {
  margin-top: 28px;
}

.choice-card {
  border-radius: 24px;
  padding: 22px 20px;
  transition: transform 0.3s cubic-bezier(.22,1,.36,1), box-shadow 0.3s ease;
}

.choice-card:hover {
  transform: translateY(-1px);
}

.choice-card__icon {
  text-align: center;
  font-size: 1.4rem;
  margin: 2px 0 8px;
  opacity: 0.85;
}

.choice-card__eyebrow,
.choice-card__title,
.choice-card__feature {
  text-align: center;
}

.input-group,
.choice-card__body,
.timeline-item,
.modal-content,
.contact-panel-content,
.feedback-panel-content,
.timeline-panel-content,
.journal-notebook {
  text-align: left;
}

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

@media (max-width: 640px) {
  #uiElements { padding: 16px 0 40px; }

  .ui-wrapper { width: calc(100% - 14px); }

  .top-nav {
    width: calc(100% - 14px);
    top: 8px;
    border-radius: 12px;
    padding: 8px 10px;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .top-nav-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .phase-chip-wrap { gap: 6px; }

  .date-chip {
    font-size: 11px;
    padding: 5px 9px;
  }

  .container {
    padding: 16px 12px 18px;
    border-radius: 14px;
  }

  .classic-title { font-size: 1.8rem; }

  .hero-grid { gap: 10px; }

  .choice-card {
    padding: 14px 12px;
    border-radius: 12px;
  }

  .choice-card__desc {
    font-size: 13px;
    line-height: 1.6;
  }
}

/* Module centering + readability fix */
.home-orbit {
  grid-template-columns: 1fr;
  justify-items: center;
}

.home-main {
  width: min(980px, 100%);
}

.hero-grid {
  width: min(980px, 100%);
  margin: 0 auto;
  align-items: start;
}

.hero-grid .choice-card {
  height: auto;
  align-self: start;
}

.choice-card__title {
  color: #f6e8c9;
}

.choice-card__eyebrow,
.choice-card__feature,
.spread-guide-head,
.input-group label {
  color: rgba(241, 223, 184, 0.92);
}

.choice-card__desc,
.field-hint,
.pay-hint,
.spread-guide-text,
.spread-pill__meta {
  color: rgba(229, 218, 192, 0.9);
}

.input-group input,
.input-group select,
.input-group textarea {
  background: rgba(8, 12, 24, 0.72);
  border-color: rgba(216, 192, 152, 0.3);
  color: #f5ead0;
}

.input-group input::placeholder,
.input-group textarea::placeholder {
  color: rgba(228, 214, 183, 0.58);
}

.spread-pill {
  background: rgba(255, 252, 245, 0.95);
}

.spread-pill__name {
  color: #4f3821;
}

.top-nav .icon-btn,
.phase-chip {
  color: #f5e7c8;
  font-weight: 600;
}

@media (max-width: 980px) {
  .home-main,
  .hero-grid {
    width: 100%;
  }
}

/* Readability tune-up */
body {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.input-group input,
.input-group select,
.input-group textarea {
  background: rgba(7, 11, 22, 0.84);
  border-color: rgba(224, 202, 164, 0.44);
  color: #fff1d2;
}

.input-group input::placeholder,
.input-group textarea::placeholder {
  color: rgba(237, 223, 193, 0.58);
}

.daily-card-area {
  max-width: 920px;
  width: min(920px, calc(100% - 32px));
  padding: 30px;
  display: none;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 30px;
  align-items: center;
}

.daily-card-visual,
.daily-copy {
  min-width: 0;
}

.daily-copy {
  display: grid;
  gap: 16px;
  text-align: left;
}

.daily-copy__eyebrow {
  color: rgba(250, 236, 201, 0.76);
  font-size: 13px;
  letter-spacing: 1px;
}

.daily-copy__hint {
  color: rgba(241, 231, 209, 0.84);
  line-height: 1.8;
}

.daily-emoji-card {
  width: 220px;
  height: 360px;
  padding: 10px 10px 14px;
  box-sizing: border-box;
}

.daily-image {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: none;
  border-radius: 10px;
  box-shadow: 0 14px 34px rgba(58, 41, 17, 0.18);
}

.daily-emoji {
  margin: 34px 0 18px;
}

.card-front {
  padding: 8px 8px 10px;
  box-sizing: border-box;
  justify-content: flex-start;
}

.card-art {
  width: 100%;
  height: 128px;
  display: none;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid rgba(198, 163, 91, 0.32);
  background: rgba(255, 252, 244, 0.7);
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-front .emoji {
  margin: 16px 0 12px;
}

.card-front .name {
  margin-top: auto;
}


body.daily-mode {
  background:
    radial-gradient(840px 460px at 50% 16%, rgba(233, 226, 255, 0.16), transparent 58%),
    radial-gradient(640px 320px at 12% 12%, rgba(160, 196, 255, 0.12), transparent 54%),
    radial-gradient(640px 340px at 88% 10%, rgba(219, 195, 255, 0.12), transparent 56%),
    linear-gradient(180deg, #0a1020 0%, #111a35 48%, #0a1020 100%);
}

body.daily-mode #starfield {
  opacity: 0.5;
}

body.daily-mode .aside-panel {
  width: 100%;
  min-height: 100vh;
  margin: 0;
  padding: 54px 0 68px;
  justify-content: center;
  align-items: center;
}

body.daily-mode .daily-card-area {
  display: grid;
}

body.daily-mode .immersive-container {
  display: none;
}

body.daily-mode .daily-quote {
  font-size: clamp(1.15rem, 2vw, 1.48rem);
  line-height: 1.9;
  color: #f7edd8 !important;
}

body.daily-mode .daily-copy__hint {
  max-width: 34em;
}

body.daily-mode .daily-title {
  font-size: 1.75rem;
}

body.daily-mode .daily-date {
  margin-bottom: 18px;
}

@media (max-width: 980px) {
  .daily-card-area {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .daily-copy {
    text-align: center;
  }
}

@media (max-width: 640px) {
  .daily-card-area {
    width: calc(100% - 16px);
    padding: 18px 16px 22px;
    gap: 18px;
  }

  .daily-emoji-card {
    width: min(100%, 210px);
    height: 330px;
  }

  .daily-image {
    height: 236px;
  }

  body.daily-mode .aside-panel {
    padding: 28px 0 34px;
  }
}

.container {
  background: linear-gradient(145deg, rgba(126, 137, 183, 0.34), rgba(99, 110, 157, 0.22)) !important;
}

.top-nav {
  background: linear-gradient(125deg, rgba(168, 180, 222, 0.32), rgba(113, 130, 185, 0.18)) !important;
}

.status-banner {
  background: rgba(242, 235, 221, 0.14);
  color: rgba(248, 237, 214, 0.96);
}

.hero-grid {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  grid-template-areas:
    "quick deep"
    "love  deep";
  grid-template-rows: auto 1fr;
  gap: 14px;
}

.card-quick {
  grid-area: quick;
  align-self: stretch;
}

.card-deep {
  grid-area: deep;
  grid-row: 1 / 3;
  align-self: stretch;
}

.card-love {
  grid-area: love;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  align-self: stretch;
}

/* Expanded: love spans full width, deep returns to row 1 */
.hero-grid:has(.choice-card--love:not(.couple-collapsed)) .card-deep {
  grid-row: 1 / 2;
}

.hero-grid:has(.choice-card--love:not(.couple-collapsed)) .card-love {
  grid-column: 1 / -1;
  grid-row: 2 / 3;
  align-items: stretch;
  display: block;
}

.hero-grid .card-quick {
  margin-top: 0;
}

.card-love {
  min-height: unset;
}

/* Hero size hierarchy: quick > deep > love */
.card-quick {
  padding: 34px 30px !important;
}

/* card-deep: standard, stretches to fill both grid rows */
.card-deep {
  padding: 26px 24px !important;
  height: 100%;
  box-sizing: border-box;
}

/* card-love: compact pill, handled by couple-collapsed styles */

.choice-card {
  background: linear-gradient(155deg, rgba(136, 146, 191, 0.34), rgba(95, 104, 147, 0.22)) !important;
}

/* Single card: hero prominence */
.choice-card--secondary {
  background: linear-gradient(150deg, rgba(190, 165, 240, 0.44), rgba(138, 108, 210, 0.30)) !important;
  border-color: rgba(210, 185, 255, 0.32) !important;
  box-shadow: 0 14px 40px rgba(120, 80, 200, 0.18), inset 0 1px 0 rgba(255, 250, 255, 0.15) !important;
}

/* Theme question: standard */
.choice-card--main {
  background: linear-gradient(155deg, rgba(154, 164, 208, 0.38), rgba(110, 118, 159, 0.24)) !important;
}

/* Couple card: rose tone */
.choice-card--love {
  background: linear-gradient(150deg, rgba(200, 142, 175, 0.34), rgba(155, 100, 145, 0.22)) !important;
  border-color: rgba(230, 170, 195, 0.32) !important;
}

.choice-card__title,
.classic-title,
.daily-title,
.timeline-item-main,
.journal-notebook h4,
.feedback-panel-content h3 {
  color: #fff5df !important;
  text-shadow: 0 1px 10px rgba(8, 12, 24, 0.18);
}

.choice-card__desc,
.field-hint,
.pay-hint,
.spread-guide-text,
.timeline-item-snippet,
.contact-desc,
.growth-intro,
.vault-meta,
.energy-text,
.daily-quote,
.spread-pill__meta {
  color: rgba(245, 236, 219, 0.98) !important;
}

.choice-card__eyebrow,
.choice-card__feature,
.spread-guide-head,
.input-group label,
.timeline-toolbar label,
.timeline-summary-label,
.slot-label,
#revealInstruction {
  color: rgba(255, 244, 220, 0.94) !important;
}

.spread-visual-guide {
  background: rgba(247, 243, 232, 0.12);
}

.spread-pill {
  background: rgba(255, 249, 236, 0.96);
}

.spread-pill__name {
  color: #4f3821;
  font-weight: 700;
}

.feedback-panel-content {
  width: min(94vw, 500px);
}

.immersive-container {
  display: none;
}

body.reading-mode {
  background:
    radial-gradient(720px 400px at 50% 16%, rgba(238, 231, 255, 0.18), transparent 58%),
    radial-gradient(560px 320px at 14% 12%, rgba(151, 196, 255, 0.14), transparent 56%),
    radial-gradient(560px 320px at 84% 18%, rgba(210, 180, 255, 0.12), transparent 60%),
    linear-gradient(180deg, #070a15 0%, #0b1329 46%, #060913 100%);
}

body.reading-mode::before {
  background:
    radial-gradient(620px 260px at 50% 14%, rgba(255, 255, 255, 0.08), transparent 74%),
    radial-gradient(420px 220px at 24% 18%, rgba(195, 220, 255, 0.08), transparent 74%),
    radial-gradient(420px 240px at 78% 18%, rgba(219, 197, 255, 0.08), transparent 74%);
}

body.reading-mode #starfield {
  opacity: 0.66;
}

body.reading-mode .aside-panel {
  display: none;
}

@keyframes readingModeEnter {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

body.reading-mode .immersive-container {
  width: min(1120px, calc(100% - 32px));
  min-height: 100vh;
  display: flex;
  padding: 34px 0 36px;
  gap: 12px;
  justify-content: flex-start;
  animation: readingModeEnter 0.6s 0.22s cubic-bezier(.22,1,.36,1) both;
}

body.reading-mode .flow-steps {
  width: min(720px, calc(100% - 24px));
  margin: 0 0 8px;
}

body.reading-mode .flow-step {
  border-color: rgba(220, 226, 255, 0.14);
  background: rgba(16, 22, 42, 0.52);
  color: rgba(235, 226, 202, 0.78);
}

body.reading-mode .flow-step.active {
  background: rgba(255, 236, 194, 0.9);
  color: #564024;
}

body.reading-mode .flow-step.done {
  background: rgba(208, 234, 214, 0.9);
}

body.reading-mode .energy-text,
body.reading-mode .deck-area,
body.reading-mode #revealInstruction,
body.reading-mode .spread-container,
body.reading-mode .reading-wrapper,
body.reading-mode .action-plan-box,
body.reading-mode .action-btns {
  width: min(940px, 100%);
}

body.reading-mode .energy-text {
  margin-top: 18px;
  font-size: 1.28rem;
  letter-spacing: 1px;
  text-shadow: 0 0 26px rgba(226, 214, 184, 0.18);
}

body.reading-mode .deck-area {
  min-height: 360px;
  margin: 16px 0 8px;
  border-radius: 36px;
  border: 1px solid rgba(218, 226, 255, 0.12);
  background: linear-gradient(180deg, rgba(11, 15, 33, 0.2), rgba(7, 10, 22, 0.08));
  box-shadow: none;
}

body.reading-mode .ritual-text,
body.reading-mode #revealInstruction {
  color: rgba(246, 233, 201, 0.94);
  font-size: 1.2rem;
}

body.reading-mode .spread-container {
  max-width: 980px;
  min-height: 0;
  padding: 14px 14px;
  border-radius: 34px;
  border: 1px solid rgba(218, 225, 255, 0.12);
  background: radial-gradient(circle at 50% 12%, rgba(255, 255, 255, 0.08), rgba(8, 11, 23, 0.16) 70%);
  box-shadow: 0 28px 80px rgba(1, 5, 15, 0.18);
}

body.reading-mode .card-back {
  background: radial-gradient(circle at center, #261f3f, #0d1120);
}

body.reading-mode .reading-wrapper {
  margin-top: 8px;
}

body.reading-mode .action-plan-box {
  margin: 8px 0 10px;
}

body.reading-mode .action-btns {
  margin-top: 10px !important;
  padding-bottom: 16px !important;
}

body.reading-density-relaxed.reading-mode .immersive-container {
  padding: 52px 0 58px;
  gap: 18px;
}

body.reading-density-relaxed.reading-mode .flow-steps {
  margin: 0 0 12px;
}

body.reading-density-relaxed.reading-mode .energy-text {
  margin-top: 30px;
}

body.reading-density-relaxed.reading-mode .deck-area {
  margin: 24px 0 12px;
}

body.reading-density-relaxed.reading-mode .spread-container {
  min-height: 260px;
  padding: 18px 16px;
}

body.reading-density-relaxed.reading-mode .reading-wrapper {
  margin-top: 14px;
}

body.reading-density-relaxed.reading-mode .action-plan-box {
  margin: 12px 0 16px;
}

body.reading-density-relaxed.reading-mode .action-btns {
  margin-top: 20px !important;
  padding-bottom: 34px !important;
}

@media (max-width: 640px) {
  .hero-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "quick"
      "deep"
      "love";
  }

  .card-deep {
    grid-row: auto;
  }

  body.reading-mode .immersive-container {
    width: calc(100% - 20px);
    padding-top: 26px;
  }

  body.reading-density-relaxed.reading-mode .immersive-container {
    padding-top: 42px;
  }
}

@media (max-width: 640px) {
  body.reading-mode .immersive-container {
    width: calc(100% - 16px);
    padding: 20px 0 24px;
  }

  body.reading-mode .deck-area {
    min-height: 264px;
    border-radius: 24px;
  }

  body.reading-mode .spread-container {
    padding: 12px 10px;
    border-radius: 24px;
  }

  body.reading-mode .action-btns {
    margin-top: 8px !important;
    padding-bottom: 10px !important;
  }

  body.reading-density-relaxed.reading-mode .immersive-container {
    padding: 34px 0 48px;
  }

  body.reading-density-relaxed.reading-mode .deck-area {
    min-height: 300px;
  }
  body.reading-density-relaxed.reading-mode .spread-container {
    padding: 16px 12px;
  }

  body.reading-density-relaxed.reading-mode .action-btns {
    margin-top: 14px !important;
    padding-bottom: 20px !important;
  }
}

/* Final polish pass */
.status-banner {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.choice-card__title {
  line-height: 1.35;
}

.choice-card__desc,
.spread-guide-hint,
.growth-intro,
.contact-desc,
.vip-confirm-text,
.daily-copy__hint {
  line-height: 1.75;
}

.pay-hint,
.field-hint,
.spread-guide-text {
  letter-spacing: 0.2px;
}

.main-btn,
.secondary-btn,
.ghost-btn,
.save-btn,
.cancel-btn,
.confirm-btn,
.icon-btn,
.spread-current-pick__change,
.spread-pill,
.couple-toggle {
  min-height: 44px;
}

.main-btn:focus-visible,
.secondary-btn:focus-visible,
.ghost-btn:focus-visible,
.save-btn:focus-visible,
.cancel-btn:focus-visible,
.confirm-btn:focus-visible,
.icon-btn:focus-visible,
.spread-current-pick__change:focus-visible,
.spread-pill:focus-visible,
.couple-toggle:focus-visible,
.input-group input:focus-visible,
.input-group textarea:focus-visible,
.input-group select:focus-visible {
  outline: 2px solid rgba(255, 231, 175, 0.92);
  outline-offset: 2px;
}

.timeline-item,
.journal-notebook,
.modal-content,
.daily-card-area {
  box-shadow: 0 16px 36px rgba(4, 10, 24, 0.24);
}

.timeline-item-main,
.daily-copy__eyebrow,
.spread-current-pick__name {
  letter-spacing: 0.2px;
}

.timeline-item-snippet,
.vault-meta,
.growth-intro,
.contact-desc {
  color: rgba(244, 235, 215, 0.9) !important;
}

.modal-btns {
  flex-wrap: wrap;
}

@media (max-width: 980px) {
  .home-ritual-widget {
    margin-bottom: 14px;
  }

  .choice-card {
    padding: 18px 16px;
  }
}

@media (max-width: 640px) {
  .top-nav-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .phase-chip-wrap {
    justify-content: center;
  }

  .hero-grid {
    gap: 12px;
  }

  .choice-card {
    padding: 16px 14px;
  }

  /* Keep quick-card hero padding on mobile */
  .card-quick {
    padding: 24px 18px !important;
  }

  .card-deep {
    padding: 18px 14px !important;
  }

  .choice-card__title {
    font-size: 1.18rem;
  }

  .choice-card__desc,
  .growth-intro,
  .contact-desc,
  .timeline-item-snippet,
  .daily-copy__hint,
  .spread-guide-text {
    font-size: 12.5px;
  }

  .spread-current-pick {
    align-items: flex-start;
    flex-wrap: wrap;
    border-radius: 18px;
  }

  .spread-current-pick__change {
    margin-left: 0;
  }

  .daily-card-area,
  .modal-content,
  .journal-notebook,
  .timeline-item {
    padding: 12px;
  }

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

  .contact-item {
    gap: 10px;
    align-items: flex-start;
    flex-direction: column;
  }

  .vip-modal-content .modal-btns {
    display: flex;
    flex-direction: column;
  }

  .parchment-box {
    padding: 22px 18px;
    border-radius: 16px;
  }

  .main-btn, .ghost-btn, .secondary-btn, .save-btn {
    min-height: 48px;
  }

  .action-btns {
    gap: 8px;
  }
}

/* Readability + richer tarot interaction overrides */
.top-nav-actions .icon-btn.subtle,
.top-nav-actions .icon-btn.highlight,
.phase-chip,
.date-chip,
#timePhaseChip {
  opacity: 1 !important;
  color: #fff4db !important;
  text-shadow: 0 1px 8px rgba(5, 8, 18, 0.18);
}

.top-nav-actions .icon-btn.subtle {
  background: rgba(255, 248, 233, 0.18) !important;
  border-color: rgba(242, 218, 176, 0.34) !important;
}

.top-nav-actions .icon-btn.highlight {
  background: linear-gradient(135deg, rgba(255, 230, 171, 0.88), rgba(232, 190, 105, 0.72)) !important;
  color: #fffaf0 !important;
}

.status-banner {
  background: rgba(250, 244, 232, 0.18) !important;
  color: rgba(255, 247, 232, 0.99) !important;
  border-color: rgba(244, 222, 182, 0.42) !important;
}

.choice-card__desc,
.field-hint,
.pay-hint,
.spread-guide-text,
.timeline-item-snippet,
.contact-desc,
.growth-intro,
.vault-meta,
.energy-text,
.daily-quote,
.spread-pill__meta,
.daily-copy__hint,
.daily-copy__eyebrow,
.ritual-text,
.flow-step,
.daily-date,
.contact-label,
.slot-label {
  color: rgba(255, 244, 221, 0.98) !important;
}

.pay-hint {
  background: rgba(255, 250, 240, 0.14) !important;
  border-color: rgba(244, 220, 179, 0.38) !important;
  color: rgba(255, 247, 234, 0.98) !important;
}

.choice-card__eyebrow,
.choice-card__feature,
.spread-guide-head,
.input-group label,
.timeline-toolbar label,
.timeline-summary-label,
#revealInstruction {
  color: rgba(255, 245, 224, 0.98) !important;
}

/* Couple card: light text on rose-dark bg */
.couple-toggle,
.couple-toggle__text,
.couple-toggle__expand-hint {
  color: rgba(255, 235, 245, 0.96) !important;
}
.couple-toggle__expand-hint {
  color: rgba(255, 200, 225, 0.8) !important;
}
.couple-toggle__arrow {
  color: rgba(255, 210, 230, 0.82) !important;
}
.couple-toggle__desc {
  color: rgba(245, 220, 235, 0.9) !important;
}

.fan-deck {
  height: 420px;
  align-items: flex-end;
  overflow: visible;
}

/* old table-spread::before glow removed — arc-fan::after replaces it */

.deck-card {
  width: 82px;
  height: 138px;
  border-radius: 10px;
  border: 1px solid rgba(200, 170, 110, 0.55);
  background:
    radial-gradient(ellipse at 30% 20%, rgba(72, 55, 110, 0.92), transparent 60%),
    radial-gradient(ellipse at 70% 80%, rgba(30, 20, 60, 0.88), transparent 55%),
    linear-gradient(160deg, rgba(38, 30, 62, 0.99), rgba(14, 18, 36, 0.99) 55%, rgba(8, 12, 26, 0.99));
  box-shadow: 0 12px 28px rgba(2, 5, 16, 0.32);
}

/* 中央星芒符文 */
.deck-card::before {
  content: "✦";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(240, 210, 150, 0.55);
  font-size: 1.1rem;
  text-shadow: 0 0 8px rgba(240, 200, 120, 0.3);
  pointer-events: none;
}

/* 双层内边框——模拟真实塔罗牌背面花纹 */
.deck-card::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 7px;
  border: 1px solid rgba(200, 170, 105, 0.22);
  box-shadow: inset 0 0 0 4px rgba(200, 170, 105, 0.07);
  pointer-events: none;
}

.deck-card:nth-child(odd) {
  filter: hue-rotate(6deg) saturate(0.9);
}

.spread-container {
  max-width: 1080px;
  gap: 22px;
  padding: 28px;
  background:
    radial-gradient(circle at 50% 18%, rgba(255,255,255,0.08), transparent 42%),
    rgba(255,255,255,0.08);
}

.layout-linear {
  gap: 22px;
}

.layout-grid {
  grid-template-columns: repeat(2, 150px);
  gap: 22px;
}

.layout-cross {
  grid-template-columns: 140px 140px 140px;
  grid-template-rows: 230px 230px 230px;
  gap: 18px;
}

.card-slot {
  width: 150px;
  height: 246px;
}

.slot-label {
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.6px;
}

.card-face {
  border-radius: 16px;
}

.card-back {
  font-size: 40px;
}

.card-art {
  height: 164px;
}

.card-front .emoji {
  font-size: 50px;
}

.card-front .name {
  font-size: 15px;
  padding: 8px 0;
  line-height: 1.45;
}

body.reading-mode .flow-steps {
  width: min(860px, calc(100% - 24px));
}

body.reading-mode .energy-text,
body.reading-mode .deck-area,
body.reading-mode #revealInstruction,
body.reading-mode .spread-container,
body.reading-mode .reading-wrapper,
body.reading-mode .action-plan-box,
body.reading-mode .action-btns {
  width: min(1100px, 100%);
}

body.reading-mode .deck-area {
  min-height: 430px;
  background:
    radial-gradient(circle at 50% 72%, rgba(255, 246, 223, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(11, 15, 33, 0.28), rgba(7, 10, 22, 0.12));
  box-shadow: 0 28px 90px rgba(1, 5, 15, 0.2);
}

body.reading-mode .spread-container {
  max-width: 1140px;
  min-height: 0;
  padding: 20px 28px 16px;
}

body.reading-mode .layout-linear {
  gap: 28px;
}

body.reading-mode .layout-grid {
  grid-template-columns: repeat(2, 180px);
  gap: 26px 34px;
}

body.reading-mode .layout-cross {
  grid-template-columns: repeat(3, 170px);
  grid-template-rows: repeat(3, 284px);
  gap: 18px 24px;
}

body.reading-mode .card-slot {
  width: 180px;
  height: 284px;
}

body.reading-mode .card-art {
  height: 194px;
}

body.reading-mode .card-front .name {
  font-size: 16px;
}

body.reading-mode .slot-label {
  font-size: 14px;
}

.card.previewable {
  cursor: zoom-in;
}

.card-preview-modal {
  z-index: 1400;
}

.card-preview-content {
  width: min(92vw, 900px);
  padding: 24px;
  position: relative;
}

.card-preview-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(8, 12, 24, 0.4);
  color: #fff1d2;
  font-size: 1.5rem;
  cursor: pointer;
}

.card-preview-shell {
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
}

.card-preview-visual {
  min-height: 480px;
  border-radius: 24px;
  border: 1px solid rgba(238, 219, 181, 0.28);
  background: radial-gradient(circle at top right, #fffaf0, #f2e3c1);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  box-sizing: border-box;
}

.card-preview-image {
  width: 100%;
  max-width: 300px;
  max-height: 442px;
  object-fit: contain;
  border-radius: 18px;
  box-shadow: 0 20px 48px rgba(70, 52, 22, 0.18);
}

.card-preview-emoji {
  display: none;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  font-size: 7rem;
  color: #8f6a2a;
}

.card-preview-position {
  color: rgba(255, 241, 210, 0.88);
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.card-preview-name {
  margin: 0 0 12px;
  color: #fff4dc;
  font-size: clamp(1.5rem, 2vw, 2rem);
}

.card-preview-meaning {
  margin: 0;
  color: rgba(247, 238, 220, 0.96);
  line-height: 1.9;
  font-size: 1rem;
}

@media (max-width: 640px) {
  .fan-deck {
    height: 320px;
  }

  .fan-deck.arc-fan {
    height: 210px !important;
  }

  .fan-deck.arc-fan .deck-card {
    width: 72px !important;
    height: 125px !important;
    left: calc(50% - 36px) !important;
    bottom: 36px !important;
  }

  .deck-card {
    width: 58px;
    height: 100px;
  }

  .layout-linear {
    gap: 12px;
  }

  .layout-grid {
    grid-template-columns: repeat(2, 118px);
    gap: 16px;
  }

  .card-slot {
    width: 118px;
    height: 198px;
  }

  .card-art {
    height: 118px;
  }

  .card-front .name {
    font-size: 13px;
  }

  body.reading-mode .deck-area {
    min-height: 316px;
  }

  body.reading-mode .layout-grid {
    grid-template-columns: repeat(2, 132px);
    gap: 16px;
  }

  body.reading-mode .layout-cross {
    grid-template-columns: repeat(3, 108px);
    grid-template-rows: repeat(3, 190px);
    gap: 10px;
  }

  body.reading-mode .card-slot,
  body.reading-mode .layout-cross .card-slot {
    width: 132px;
    height: 214px;
  }

  body.reading-mode .card-art {
    height: 136px;
  }

  .card-preview-content {
    width: calc(100% - 18px);
    padding: 18px 16px;
  }

  .card-preview-shell {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .card-preview-visual {
    min-height: 360px;
  }
}

.vip-order-status {
  border: 1px solid rgba(236, 214, 175, 0.24);
  border-radius: 10px;
  background: rgba(16, 22, 42, 0.36);
  color: #f7ead1;
  padding: 10px 12px;
  margin-top: 8px;
}

.vip-order-meta {
  margin-top: 4px;
  color: rgba(246, 233, 206, 0.82);
  font-size: 12px;
}

.spread-visual-guide .spread-pill {
  background: rgba(248, 243, 232, 0.96) !important;
  border-color: rgba(182, 151, 109, 0.28) !important;
}

.spread-visual-guide .spread-pill__name {
  color: #44311b !important;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.spread-visual-guide .spread-pill__meta {
  color: rgba(97, 70, 40, 0.9) !important;
  font-size: 12px;
  font-weight: 600;
}

.spread-guide-text {
  color: rgba(249, 239, 221, 0.98) !important;
  font-size: 13px;
}

.pay-hint {
  color: rgba(255, 248, 232, 0.98) !important;
  border-color: rgba(242, 216, 174, 0.42) !important;
  background: rgba(255, 248, 236, 0.14) !important;
}

/* old table-spread grid rules removed — arc-fan handles layout */

@media (max-width: 980px) {
  .spread-visual-guide .spread-pill__name {
    font-size: 13px;
  }

  .spread-visual-guide .spread-pill__meta {
    font-size: 12px;
  }

  .spread-guide-text {
    font-size: 12px;
  }
}

@media (max-width: 640px) {
  .spread-visual-guide .spread-pill__name {
    font-size: 13px;
  }

  .spread-visual-guide .spread-pill__meta {
    font-size: 12px;
  }

  .spread-guide-text {
    font-size: 12px;
  }

  .pay-hint {
    font-size: 13px;
  }
}

.price-tag {
  display: inline-flex;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(233, 193, 134, 0.52);
  background: rgba(255, 238, 206, 0.2);
  color: #f4d7a0;
  font-size: 12px;
  font-weight: 700;
}

.spread-pills-groups {
  display: grid;
  gap: 10px;
}

@media (max-width: 640px) {
  .spread-pills--free {
    grid-template-columns: 1fr;
  }

  .spread-advanced-teaser__preview {
    padding-right: 0;
  }

  .spread-advanced-teaser__cta {
    position: static;
    width: 100%;
    margin-top: 10px;
  }

  .price-tag { margin-left: 6px; font-size: 12px; }
}

/* ══════════════════════════════════════════
   Arc Fan Spread — 扇形弧度牌堆（覆盖所有 grid 布局）
   ══════════════════════════════════════════ */
.fan-deck.arc-fan {
  --spread-progress: 0;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 270px !important;
  overflow: visible;
  padding: 0 !important;
  gap: 0 !important;
  touch-action: pan-x;
}

/* 枢纽点辉光 */
.fan-deck.arc-fan::after {
  content: "";
  position: absolute;
  bottom: 38px;
  left: 50%;
  width: 180px;
  height: 180px;
  transform: translateX(-50%);
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(
    circle,
    rgba(220, 185, 120, 0.22) 0%,
    rgba(148, 100, 220, 0.12) 38%,
    transparent 70%
  );
  filter: blur(14px);
  transition: opacity 0.7s ease;
}

.fan-deck.arc-fan.is-unlocked::after {
  background: radial-gradient(
    circle,
    rgba(180, 230, 180, 0.24) 0%,
    rgba(120, 180, 240, 0.1) 38%,
    transparent 70%
  );
}

/* 所有卡牌固定在枢纽点，绕底部中心旋转展开 */
.fan-deck.arc-fan .deck-card {
  position: absolute;
  bottom: 48px !important;
  left: calc(50% - 50px) !important;
  width: 100px !important;
  height: 174px !important;
  transform-origin: bottom center;
  transform: rotate(
    calc(
      var(--fan-angle, 0deg) * var(--spread-progress, 0)
      + var(--stack-jitter, 0deg) * (1 - var(--spread-progress, 0))
    )
  ) !important;
  transition: transform 0.38s cubic-bezier(0.34, 1.28, 0.64, 1),
              box-shadow 0.3s ease,
              filter 0.3s ease,
              opacity 0.22s ease !important;
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.44),
    inset 0 0 0 1px rgba(240, 215, 160, 0.13);
}

.fan-deck.arc-fan.is-dragging .deck-card {
  transition: none !important;
}

.fan-deck.arc-fan:not(.is-unlocked) .deck-card {
  cursor: grab;
}

.fan-deck.arc-fan.is-unlocked .deck-card {
  cursor: pointer;
}

/* 展开后悬浮：沿弧线抬起 */
.fan-deck.arc-fan.is-unlocked .deck-card:hover {
  transform: rotate(var(--fan-angle, 0deg)) translateY(-20px) scale(1.07) !important;
  z-index: 250 !important;
  filter: brightness(1.14) drop-shadow(0 0 12px rgba(230, 195, 130, 0.42)) !important;
}

/* 展开后：脉冲光晕提示可点击 */
.fan-deck.arc-fan.is-unlocked .deck-card:not(.drawn)::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 9px;
  border: 1.5px solid rgba(230, 195, 130, 0.0);
  animation: cardClickPulse 2.4s ease-in-out infinite;
  pointer-events: none;
}
.fan-deck.arc-fan.is-unlocked .deck-card:not(.drawn):nth-child(odd)::after  { animation-delay: 0.3s; }
.fan-deck.arc-fan.is-unlocked .deck-card:not(.drawn):nth-child(3n)::after   { animation-delay: 0.7s; }

@keyframes cardClickPulse {
  0%, 100% { border-color: rgba(230, 195, 130, 0.0); box-shadow: none; }
  50%       { border-color: rgba(230, 195, 130, 0.55); box-shadow: 0 0 14px rgba(230, 195, 130, 0.22); }
}

/* 展开后顶部提示文字淡入 */
#instructionText.draw-hint {
  animation: drawHintGlow 1.8s ease-in-out infinite;
}
@keyframes drawHintGlow {
  0%, 100% { opacity: 0.75; text-shadow: none; }
  50%       { opacity: 1; text-shadow: 0 0 18px rgba(220, 185, 110, 0.45); }
}

.fan-deck.arc-fan .deck-card.drawn {
  opacity: 0 !important;
  pointer-events: none !important;
  transition: opacity 0.18s ease !important;
}

.deck-spread-track {
  width: min(520px, calc(100% - 24px));
  margin: 10px auto 0;
  display: flex;
  justify-content: center;
  min-height: 26px;
}

.deck-spread-hint {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  pointer-events: none;
  user-select: none;
  color: rgba(243, 222, 175, 0.96);
  border: 1px solid rgba(220, 185, 118, 0.3);
  background: rgba(10, 14, 30, 0.52);
  backdrop-filter: blur(6px);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.32s ease, transform 0.32s ease, border-color 0.28s ease, background 0.28s ease;
}

.deck-spread-hint.show {
  opacity: 1;
  transform: translateY(0);
}

.deck-spread-hint.near-unlock {
  border-color: rgba(241, 195, 98, 0.62);
  background: rgba(44, 30, 8, 0.68);
  animation: hintPulse 0.7s ease-in-out infinite alternate;
}

.deck-spread-hint.unlocked {
  border-color: rgba(160, 218, 146, 0.52);
  background: rgba(12, 32, 14, 0.6);
  color: rgba(196, 242, 183, 0.97);
}

@keyframes hintPulse {
  from { box-shadow: none; }
  to { box-shadow: 0 0 10px rgba(241, 195, 98, 0.48); }
}

.final-flash-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2200;
  opacity: 0;
  background: linear-gradient(160deg, rgba(10, 6, 24, 0.97), rgba(18, 8, 32, 0.96));
}

.final-flash-overlay.active {
  animation: darkVeilTransition 1.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes darkVeilTransition {
  0%   { opacity: 0; }
  22%  { opacity: 0.96; }
  72%  { opacity: 0.96; }
  100% { opacity: 0; }
}

.poster-canvas-host {
  position: fixed;
  top: 0;
  left: -300vw;
  width: 1080px;
  height: 1920px;
  opacity: 0;
  pointer-events: none;
  z-index: -1;
}

.poster-canvas-host.is-rendering {
  left: -120vw;
}

.poster-canvas {
  width: 1080px;
  height: 1920px;
  box-sizing: border-box;
  padding: 82px 72px;
  color: #f6e7c4;
  font-family: "Noto Serif SC", serif;
  background:
    radial-gradient(640px 340px at 50% 0%, rgba(255, 231, 177, 0.2), transparent 58%),
    radial-gradient(560px 380px at 12% 84%, rgba(103, 146, 255, 0.14), transparent 60%),
    radial-gradient(560px 380px at 88% 86%, rgba(244, 177, 255, 0.12), transparent 60%),
    linear-gradient(180deg, #0b1125 0%, #121d38 54%, #090f1d 100%);
  border: 1px solid rgba(245, 221, 174, 0.36);
  border-radius: 44px;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
}

.poster-header {
  text-align: center;
}

.poster-title {
  font-size: 66px;
  letter-spacing: 4px;
  font-weight: 700;
}

.poster-subtitle {
  margin-top: 8px;
  color: rgba(247, 233, 204, 0.8);
  font-size: 24px;
  letter-spacing: 2px;
}

.poster-cards {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.poster-card {
  border: 1px solid rgba(247, 225, 179, 0.36);
  border-radius: 18px;
  background: rgba(255, 247, 229, 0.05);
  min-height: 270px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 10px 8px;
}

.poster-card img {
  width: 100%;
  height: 216px;
  object-fit: cover;
  border-radius: 12px;
}

.poster-card span {
  margin-top: 8px;
  font-size: 18px;
  color: rgba(246, 230, 197, 0.95);
}

.poster-card-emoji {
  width: 100%;
  height: 216px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 240, 208, 0.08);
  font-size: 72px;
}

.poster-quote-wrap {
  margin-top: 42px;
  border: 1px solid rgba(242, 214, 157, 0.4);
  border-radius: 28px;
  background: rgba(255, 245, 221, 0.07);
  padding: 36px 38px;
}

.poster-question {
  margin-bottom: 18px;
  text-align: center;
  font-size: 24px;
  line-height: 1.6;
  color: rgba(247, 233, 204, 0.88);
}

.poster-quote-label {
  text-align: center;
  font-size: 30px;
  color: rgba(236, 202, 140, 0.94);
  letter-spacing: 1px;
}

.poster-quote-text {
  margin: 20px 0 0;
  font-size: 34px;
  line-height: 1.75;
  text-align: center;
}

.poster-summary-text {
  margin: 24px 0 0;
  font-size: 22px;
  line-height: 1.9;
  text-align: center;
  color: rgba(246, 230, 197, 0.84);
}

.poster-footer {
  margin-top: 24px;
  display: grid;
  justify-items: center;
  gap: 14px;
}

.poster-qr {
  width: 258px;
  height: 258px;
  object-fit: cover;
  border-radius: 20px;
  border: 1px solid rgba(250, 236, 206, 0.5);
  background: #fff;
}

.poster-qr--text {
  width: 320px;
  height: auto;
  min-height: 160px;
  padding: 24px 22px;
  display: grid;
  place-items: center;
  gap: 12px;
  text-align: center;
  background:
    radial-gradient(circle at top, rgba(255,255,255,0.18), transparent 58%),
    rgba(255, 248, 233, 0.08);
}

.poster-qr__label {
  font-size: 24px;
  color: rgba(246, 230, 197, 0.92);
  letter-spacing: 1px;
}

.poster-qr__url {
  font-size: 30px;
  line-height: 1.4;
  color: #fff8e8;
  word-break: break-all;
}

.poster-meta {
  color: rgba(248, 232, 198, 0.82);
  font-size: 22px;
}

/* ── Quick card: hero prominence ── */
.card-quick .choice-card__icon {
  font-size: 2.2rem;
  margin: 4px 0 12px;
  opacity: 1;
}
.card-quick .choice-card__title {
  font-size: 1.6rem !important;
  letter-spacing: 0.5px;
}
.card-quick .choice-card__desc {
  font-size: 15px !important;
  line-height: 1.7;
  margin-bottom: 16px;
}
.card-quick .choice-card__eyebrow {
  font-size: 12px;
  letter-spacing: 3px;
  margin-bottom: 14px;
}
.card-quick #quickDrawBtn {
  width: 100%;
  font-size: 15px;
  margin-top: 4px;
}

/* ── Couple card: compact bar on mobile ── */
@media (max-width: 640px) {
  .choice-card--love.couple-collapsed {
    max-width: 100%;
  }
  .couple-collapsed .couple-toggle {
    padding: 12px 16px;
    gap: 8px;
  }
}

/* ── Parchment box: share-header override for dark bg ── */
#shareHeader {
  color: rgba(245, 230, 195, 0.95) !important;
  text-shadow: 0 1px 8px rgba(0,0,0,0.4);
}

/* ── Couple card expanded state: full clean layout ── */
.choice-card--love:not(.couple-collapsed) .couple-toggle {
  border-bottom: 1px solid rgba(220, 170, 200, 0.2);
  padding: 14px 22px;
  gap: 10px;
  white-space: nowrap;
  flex-wrap: nowrap;
}

.choice-card--love:not(.couple-collapsed) .couple-toggle__text {
  font-size: 15px !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.choice-card--love:not(.couple-collapsed) .couple-expand {
  padding: 18px 22px 22px;
}

/* Expanded form: desc text */
.choice-card--love:not(.couple-collapsed) .choice-card__desc {
  font-size: 13px !important;
  margin: 0 0 14px !important;
  font-style: italic;
}

/* Expanded form: 2-col inputs + full-width last row */
.choice-card--love:not(.couple-collapsed) .couple-expand .choice-card__body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.choice-card--love:not(.couple-collapsed) .couple-expand .input-group:last-of-type,
.choice-card--love:not(.couple-collapsed) .couple-expand #startCoupleBtn {
  grid-column: 1 / -1;
}

/* Input + label colors inside couple card */
.choice-card--love:not(.couple-collapsed) .input-group label {
  color: rgba(255, 235, 245, 0.95) !important;
}

.choice-card--love:not(.couple-collapsed) .input-group input {
  background: rgba(20, 14, 40, 0.72) !important;
  border-color: rgba(210, 160, 190, 0.38) !important;
  color: rgba(255, 240, 250, 0.95) !important;
}

.choice-card--love:not(.couple-collapsed) .input-group input::placeholder {
  color: rgba(200, 160, 185, 0.55) !important;
}

.choice-card--love:not(.couple-collapsed) .field-hint {
  color: rgba(220, 185, 210, 0.72) !important;
  font-size: 11.5px;
}

.choice-card--love:not(.couple-collapsed) #startCoupleBtn {
  background: linear-gradient(135deg, rgba(210, 140, 175, 0.9), rgba(175, 100, 155, 0.85)) !important;
  color: #fff0f8 !important;
  border-color: rgba(240, 180, 210, 0.35) !important;
  box-shadow: 0 4px 18px rgba(180, 100, 150, 0.28) !important;
}

/* ── Item 15: Intro tagline already styled above ─────────────────────────── */

/* ── Item 12: Spread position dots ──────────────────────────────────────── */
.spread-pill__dots {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 2px;
  align-items: center;
}
.spread-pill__dots .sdr {
  display: flex;
  gap: 3px;
}
.spread-pill__dots .sd {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(106, 78, 45, 0.65);
  flex-shrink: 0;
  display: block;
}
.spread-pill__dots .sd.sd-g {
  background: transparent;
}
.spread-pill.active .spread-pill__dots .sd {
  background: rgba(152, 110, 58, 0.92);
}

/* ── Item 10: Collapsible reading sections ───────────────────────────────── */
.reading-section-details {
  margin: 10px 0;
  border-radius: 10px;
  border: 1px solid rgba(246, 230, 181, 0.14);
  background: rgba(255, 255, 255, 0.02);
}
.reading-section-summary {
  cursor: pointer;
  padding: 11px 14px;
  color: rgba(246, 230, 181, 0.92);
  font-size: 1rem;
  font-weight: 700;
  list-style: none;
  user-select: none;
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 10px;
}
.reading-section-summary::-webkit-details-marker { display: none; }
.reading-section-summary::before {
  content: "▶";
  font-size: 0.65em;
  transition: transform 0.2s ease;
  color: rgba(246, 230, 181, 0.55);
  flex-shrink: 0;
}
.reading-section-details[open] > .reading-section-summary::before {
  transform: rotate(90deg);
}
.reading-section-details > *:not(summary) {
  padding: 2px 14px 12px;
}

/* ── Item 16: Card preview prev/next nav buttons ─────────────────────────── */
.card-preview-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 56px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(8, 12, 24, 0.55);
  color: #fff1d2;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, opacity 0.2s;
  z-index: 10;
}
.card-preview-nav:hover {
  background: rgba(20, 28, 54, 0.75);
}
.card-preview-nav--prev { left: -20px; }
.card-preview-nav--next { right: -20px; }

@media (max-width: 640px) {
  .card-preview-nav--prev { left: 4px; }
  .card-preview-nav--next { right: 4px; }
}

/* ── Item 3: Inline email link in feedback footer ─────────────────────────── */
.contact-email-inline {
  color: #d4aa70;
  text-decoration: underline;
  word-break: break-all;
}
.contact-email-inline:hover {
  color: #f0cc88;
}

/* ── Reading text active: spread sidebar left, reading text right ── */
body.reading-text-active .immersive-container {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0 18px;
}

body.reading-text-active .flow-steps {
  flex: 0 0 100%;
  order: 0;
}

body.reading-text-active #energyText,
body.reading-text-active #shuffleArea,
body.reading-text-active #deckArea,
body.reading-text-active #revealInstruction,
body.reading-text-active #miniCardBar {
  display: none !important;
}

/* Spread container → compact sticky left sidebar */
body.reading-text-active .spread-container {
  flex: 0 0 210px !important;
  width: 210px !important;
  max-width: 210px !important;
  min-height: 0 !important;
  padding: 12px !important;
  order: 1;
  position: sticky;
  top: 20px;
  align-self: flex-start;
  transition: flex 0.55s cubic-bezier(.22,1,.36,1),
              width 0.55s cubic-bezier(.22,1,.36,1),
              max-width 0.55s cubic-bezier(.22,1,.36,1);
}

body.reading-text-active .layout-linear,
body.reading-text-active .layout-grid,
body.reading-text-active .layout-cross {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 8px !important;
  grid-template-columns: unset !important;
  grid-template-rows: unset !important;
}

/* Override cross layout absolute positioning */
body.reading-text-active .layout-cross [id^="slot-"] {
  grid-column: unset !important;
  grid-row: unset !important;
}

body.reading-text-active .card-slot {
  width: 104px !important;
  height: 166px !important;
}

body.reading-text-active .card-art {
  height: 112px !important;
}

body.reading-text-active .card-back {
  font-size: 24px !important;
}

body.reading-text-active .card-front .emoji {
  font-size: 28px !important;
  margin: 5px 0 3px !important;
}

body.reading-text-active .card-front .name {
  font-size: 10px !important;
  padding: 3px 0 !important;
}

body.reading-text-active .slot-label {
  font-size: 10px !important;
  margin-bottom: 4px !important;
  letter-spacing: 0 !important;
}

/* Reading wrapper → flex right column */
body.reading-text-active .reading-wrapper {
  flex: 1 1 0 !important;
  min-width: 0 !important;
  max-width: none !important;
  width: auto !important;
  order: 2;
  margin-top: 0 !important;
}

/* Action buttons → full width row below both columns */
body.reading-text-active .action-btns {
  flex: 0 0 100% !important;
  order: 3;
  width: 100% !important;
  margin-top: 8px !important;
}

/* Mobile: fall back to vertical stack */
@media (max-width: 720px) {
  body.reading-text-active .immersive-container {
    flex-direction: column !important;
    align-items: center !important;
  }
  body.reading-text-active .spread-container {
    position: static !important;
    flex: 0 0 auto !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  body.reading-text-active .layout-linear,
  body.reading-text-active .layout-grid,
  body.reading-text-active .layout-cross {
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
  }
  body.reading-text-active .card-slot {
    width: 76px !important;
    height: 124px !important;
  }
  body.reading-text-active .card-art {
    height: 78px !important;
  }
  body.reading-text-active .reading-wrapper {
    width: 100% !important;
    max-width: 100% !important;
  }
}

/* ═══════════════════════════════════════
   #5  翻牌后预览提示图标
   ═══════════════════════════════════════ */
.card-preview-hint {
  position: absolute;
  bottom: 6px;
  right: 6px;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  z-index: 5;
  filter: drop-shadow(0 0 3px rgba(0,0,0,0.5));
}
.card.flipped .card-preview-hint {
  opacity: 0.72;
  animation: hintBounce 1.4s ease 0.3s 2 forwards;
}
@keyframes hintBounce {
  0%, 100% { transform: scale(1); opacity: 0.72; }
  50% { transform: scale(1.25); opacity: 1; }
}

/* ═══════════════════════════════════════
   #10 心境笔记删除按钮
   ═══════════════════════════════════════ */
.journal-delete-btn {
  float: right;
  background: none;
  border: none;
  color: rgba(255, 160, 140, 0.55);
  font-size: 15px;
  cursor: pointer;
  padding: 0 0 0 8px;
  line-height: 1;
  transition: color 0.2s;
}
.journal-delete-btn:hover {
  color: rgba(255, 100, 80, 0.9);
}

/* ═══════════════════════════════════════
   #3  手机端主题占问按钮粘底
   ═══════════════════════════════════════ */
@media (max-width: 640px) {
  .card-deep {
    position: relative;
    padding-bottom: 72px !important;
  }
  .start-btn-sticky {
    position: sticky;
    bottom: 12px;
    z-index: 10;
    box-shadow: 0 4px 18px rgba(180, 130, 40, 0.28);
  }
}

/* ═══════════════════════════════════════
   #11 手机端顶部导航：date-chip 隐藏
   ═══════════════════════════════════════ */
@media (max-width: 480px) {
  .date-chip {
    display: none;
  }
}

/* ═══════════════════════════════════════
   #7  流式进度条动效
   ═══════════════════════════════════════ */
#streamProgressBar.streaming {
  animation: streamIndeterminate 1.6s ease-in-out infinite;
}
@keyframes streamIndeterminate {
  0%   { width: 8%;  margin-left: 0; }
  50%  { width: 38%; margin-left: 28%; }
  100% { width: 8%;  margin-left: 92%; }
}

/* ═══════════════════════════════════════
   性能优化：GPU 加速层提升
   ═══════════════════════════════════════ */

/* 翻牌动画 – 启用 GPU 合成层，避免主线程卡顿 */
.card {
  will-change: transform, opacity;
  transform: translateZ(0);
}
.card.dealt {
  will-change: auto;
}
.card.dealt:not(.flipped) {
  will-change: transform;
}

/* 扇形牌堆展开动画 */
.fan-deck.arc-fan .deck-card {
  will-change: transform;
}

/* 洗牌动画卡片 */
.sdm-card {
  will-change: transform;
}

/* 水晶球按压动画 */
.ritual-orb {
  will-change: transform, box-shadow;
}

/* 选择卡片悬浮动画 */
.choice-card {
  will-change: transform, box-shadow;
}
.choice-card:not(:hover) {
  will-change: auto;
}

/* 流星动画减少重绘 */
.intro-screen {
  will-change: opacity;
}

/* ═══════════════════════════════════════
   iOS 安全区域（刘海/底部 Home Bar）适配
   ═══════════════════════════════════════ */
#uiElements {
  padding-bottom: max(72px, calc(72px + env(safe-area-inset-bottom)));
}

.immersive-back-btn {
  top: max(16px, calc(16px + env(safe-area-inset-top)));
  left: max(16px, env(safe-area-inset-left));
}

.top-nav {
  top: max(12px, calc(12px + env(safe-area-inset-top)));
}

/* 解牌完成操作栏底部留白 */
#actionBtns {
  padding-bottom: max(50px, calc(50px + env(safe-area-inset-bottom))) !important;
}

/* ═══════════════════════════════════════
   iOS Safari / 微信浏览器兼容性修复
   ═══════════════════════════════════════ */

/* 修复 iOS 16 以下 backdrop-filter 性能问题 */
@supports not (backdrop-filter: blur(1px)) {
  .top-nav {
    background: rgba(14, 20, 44, 0.92) !important;
  }
  .modal-overlay {
    background: rgba(2, 3, 10, 0.94);
  }
  .mini-card-bar {
    background: rgba(17, 20, 35, 0.88);
  }
}

/* 修复 iOS Safari input 自动缩放（font-size < 16px 会触发缩放） */
.input-group input,
.input-group textarea,
.input-group select {
  font-size: max(16px, 1em);
  -webkit-appearance: none;
  appearance: none;
}

/* 修复 iOS Safari 滚动惯性 */
.timeline-list,
.journal-notes-list,
.history-detail-body,
.growth-hub-modal,
.mini-card-bar {
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

/* 修复微信浏览器 100vh 问题 */
.intro-screen,
.modal-overlay {
  height: 100%;
  min-height: -webkit-fill-available;
}

/* 修复 iOS 按钮默认样式 */
button {
  -webkit-appearance: none;
  appearance: none;
}

/* ═══════════════════════════════════════
   移动端触控热区优化（最小 44×44px）
   ═══════════════════════════════════════ */
.icon-btn,
.spread-pill,
.couple-toggle,
.spread-current-pick__change,
.emoji-react,
.timeline-item,
.journal-delete-btn,
.card-preview-nav,
.spread-advanced-teaser,
.spread-recommendation,
.mini-card-item {
  touch-action: manipulation;
}

/* 强制所有可交互元素最小触控尺寸 */
.icon-btn {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.spread-pill {
  min-height: 52px;
}

.emoji-react {
  min-height: 44px;
  min-width: 44px;
}

.timeline-item {
  min-height: 52px;
}

/* 日历删除按钮扩大热区 */
.journal-delete-btn {
  min-width: 32px;
  min-height: 32px;
  padding: 4px 8px;
}

/* ═══════════════════════════════════════
   320px 超窄屏专项修复
   ═══════════════════════════════════════ */
@media (max-width: 360px) {
  /* 标题字号缩减 */
  .classic-title {
    font-size: 1.55rem !important;
    letter-spacing: 2px;
  }

  /* 顶部导航适配 */
  .top-nav {
    padding: 6px 8px;
  }

  .top-nav-actions {
    gap: 4px;
  }

  .icon-btn {
    padding: 6px 8px;
    font-size: 15px;
  }

  /* 选择卡片 */
  .choice-card {
    padding: 12px 10px !important;
    border-radius: 12px !important;
  }

  .card-quick {
    padding: 18px 12px !important;
  }

  .card-deep {
    padding: 14px 10px !important;
  }

  /* 价格标签在窄屏换行显示 */
  .couple-toggle {
    flex-wrap: wrap !important;
    gap: 6px 8px !important;
  }

  .price-tag {
    margin-left: 0 !important;
  }

  /* 牌阵推荐区域自适应宽度 */
  .spread-advanced-teaser__price {
    position: static !important;
    display: inline-block;
    margin-bottom: 4px;
  }

  .spread-advanced-teaser__cta {
    position: static !important;
    width: 100%;
    margin-top: 8px;
  }

  .spread-advanced-teaser__preview {
    padding-right: 0 !important;
  }

  /* 牌阵选择网格强制单列 */
  .spread-pills--free {
    grid-template-columns: 1fr !important;
  }

  /* 流程步骤字号 */
  .flow-step {
    font-size: 11px;
    padding: 6px 4px;
  }

  /* 模态框内按钮组 */
  .modal-btns {
    flex-direction: column !important;
  }

  .vip-modal-content .modal-btns {
    grid-template-columns: 1fr !important;
  }

  /* 解牌区域卡槽尺寸 */
  .card-slot {
    width: 90px !important;
    height: 158px !important;
  }

  .layout-grid {
    grid-template-columns: repeat(2, 90px) !important;
    gap: 10px !important;
  }

  /* 十字阵在阅读模式 320px 宽屏的溢出修复 */
  body.reading-mode .layout-cross {
    grid-template-columns: repeat(3, 84px) !important;
    grid-template-rows: repeat(3, 148px) !important;
    gap: 6px !important;
  }

  body.reading-mode .card-slot,
  body.reading-mode .layout-cross .card-slot {
    width: 84px !important;
    height: 148px !important;
  }

  body.reading-mode .card-art {
    height: 90px !important;
  }

  /* 扇形牌堆 */
  .fan-deck.arc-fan .deck-card {
    width: 62px !important;
    height: 108px !important;
    left: calc(50% - 31px) !important;
  }

  /* 水晶球组件 */
  .ritual-orb {
    width: 86px;
    height: 86px;
  }

  .ritual-orb__icon {
    font-size: 36px;
  }

  /* 按钮宽度 */
  .main-btn,
  .secondary-btn,
  .save-btn {
    font-size: 14px;
    padding: 12px 14px;
  }
}

/* ═══════════════════════════════════════
   320-430px 通用移动端优化
   ═══════════════════════════════════════ */
@media (max-width: 430px) {
  /* 成长档案弹窗优化 */
  .growth-hub-modal {
    width: calc(100vw - 12px);
    max-height: 94vh;
    border-radius: 18px !important;
    padding: 16px 14px !important;
  }

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

  .timeline-summary {
    grid-template-columns: repeat(2, 1fr);
  }

  /* 牌面预览弹窗 */
  .card-preview-shell {
    grid-template-columns: 1fr;
  }

  .card-preview-visual {
    min-height: 280px;
  }

  .card-preview-image {
    max-height: 340px;
  }

  /* VIP 弹窗 */
  .vip-modal-content {
    width: calc(100vw - 16px);
    padding: 18px 16px;
  }

  .qr-container {
    width: 180px;
    height: 180px;
  }

  /* 反馈弹窗 */
  .feedback-panel-content {
    width: calc(100vw - 16px);
    padding: 18px 16px;
  }

  /* 解牌文本区域 */
  .parchment-box {
    padding: 18px 14px;
    border-radius: 14px;
  }

  /* 操作按钮区 */
  .result-actions {
    width: calc(100% - 12px);
    padding: 10px 12px 20px !important;
  }

  .result-action-primary {
    min-width: unset;
    width: 100%;
  }

  .result-action-soft {
    min-width: unset;
    flex: 1;
  }

  /* 阅读模式卡片布局 */
  body.reading-mode .layout-cross {
    grid-template-columns: repeat(3, 92px) !important;
    grid-template-rows: repeat(3, 164px) !important;
    gap: 8px !important;
  }

  body.reading-mode .card-slot,
  body.reading-mode .layout-cross .card-slot {
    width: 92px !important;
    height: 164px !important;
  }

  body.reading-mode .card-art {
    height: 110px !important;
  }
}

/* ═══════════════════════════════════════
   减少动画模式（无障碍支持）
   ═══════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .card {
    transition: none !important;
  }

  .sdm-card,
  .ritual-orb,
  .ritual-orb__glow,
  .choice-card__icon,
  .couple-toggle__heart,
  .mystical-divider span:nth-child(2) {
    animation: none !important;
  }

  .fan-deck.arc-fan .deck-card {
    transition: opacity 0.1s ease !important;
  }
}

/* ═══════════════════════════════════════
   横屏手机适配（landscape mobile）
   ═══════════════════════════════════════ */
@media (max-height: 500px) and (orientation: landscape) {
  .intro-panel {
    padding: 16px 20px;
  }

  .home-ritual-widget {
    display: none;
  }

  .hero-header {
    margin-bottom: 8px;
  }

  .classic-title {
    font-size: 1.6rem !important;
  }

  .fan-deck.arc-fan {
    height: 180px !important;
  }

  .fan-deck.arc-fan .deck-card {
    height: 130px !important;
  }
}
