  @import url('https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@400;700&family=Cormorant+Garamond:ital,wght@0,300;0,400;1,300;1,400&family=Noto+Sans+Runic&display=swap');

  :root {
    --font-ui: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
    --font-mystic: 'Cormorant Garamond', 'Times New Roman', serif;
    --r-lg: 16px;
    --r-md: 12px;
    --r-pill: 980px;
    --glass: rgba(24, 22, 34, 0.58);
    --glass-strong: rgba(18, 16, 28, 0.78);
    --hairline: rgba(255, 255, 255, 0.08);
    --hairline-gold: rgba(201, 168, 76, 0.22);
    --gold: #c9a84c;
    --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
    --shadow-float: 0 8px 32px rgba(0, 0, 0, 0.28), 0 2px 8px rgba(0, 0, 0, 0.18);
    --blur: saturate(160%) blur(22px);
  }

  * { box-sizing: border-box; margin: 0; padding: 0; }

  body {
    background: #07050c;
    color: rgba(235, 228, 212, 0.94);
    font-family: var(--font-ui);
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    overflow-x: hidden;
  }

  .bg-aurora {
    position: fixed; inset: 0; pointer-events: none; z-index: 0;
    background:
      radial-gradient(ellipse 90% 60% at 50% 0%, rgba(48, 32, 88, 0.18) 0%, transparent 45%),
      radial-gradient(ellipse 70% 50% at 15% 85%, rgba(201, 168, 76, 0.05) 0%, transparent 42%),
      radial-gradient(ellipse 100% 70% at 50% 100%, rgba(20, 12, 40, 0.5) 0%, transparent 55%),
      #050208;
  }

  /* —— 初始页 · 宇宙幕 —— */
  .intro-cosmos {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    min-height: 100dvh;
    overflow: hidden;
  }

  .intro-cosmos__void {
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
      radial-gradient(ellipse 85% 55% at 50% -10%, rgba(76, 48, 120, 0.22) 0%, transparent 55%),
      radial-gradient(ellipse 70% 50% at 100% 40%, rgba(40, 65, 120, 0.12) 0%, transparent 45%),
      radial-gradient(ellipse 55% 45% at 0% 60%, rgba(120, 60, 90, 0.08) 0%, transparent 40%),
      linear-gradient(180deg, #030208 0%, #0a0614 38%, #06040e 100%);
    pointer-events: none;
  }

  .intro-cosmos__nebula {
    position: absolute;
    inset: -20%;
    z-index: 0;
    background:
      radial-gradient(ellipse 40% 35% at 70% 25%, rgba(130, 90, 180, 0.14) 0%, transparent 60%),
      radial-gradient(ellipse 50% 40% at 20% 70%, rgba(60, 100, 140, 0.1) 0%, transparent 55%);
    opacity: 0.85;
    animation: intro-nebula-drift 28s ease-in-out infinite alternate;
    pointer-events: none;
  }

  @keyframes intro-nebula-drift {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-2%, 1%) scale(1.03); }
  }

  .intro-cosmos__canvas {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.92;
  }

  .intro-cosmos__horizon {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 45%;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(to top, rgba(2, 1, 8, 0.75) 0%, rgba(5, 3, 14, 0.35) 45%, transparent 100%);
  }

  .intro-cosmos__ring {
    position: absolute;
    left: 50%;
    top: 22%;
    z-index: 2;
    width: min(140vw, 820px);
    height: min(140vw, 820px);
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 1px solid rgba(201, 168, 76, 0.07);
    box-shadow:
      inset 0 0 80px rgba(80, 60, 140, 0.08),
      0 0 0 1px rgba(255, 255, 255, 0.02);
    pointer-events: none;
    animation: intro-ring-slow 90s linear infinite;
  }

  @keyframes intro-ring-slow {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
  }

  .container {
    position: relative;
    z-index: 1;
    max-width: 640px;
    margin: 0 auto;
    padding: max(1.75rem, env(safe-area-inset-top, 0px)) max(1.25rem, env(safe-area-inset-right, 0px)) max(2.5rem, env(safe-area-inset-bottom, 0px)) max(1.25rem, env(safe-area-inset-left, 0px));
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1.35rem;
  }

  .container--intro {
    position: relative;
    z-index: 3;
    max-width: 420px;
    gap: 1.75rem;
    justify-content: center;
    min-height: 100vh;
    min-height: 100dvh;
    padding-top: max(2.25rem, env(safe-area-inset-top, 0px));
    padding-bottom: max(2rem, env(safe-area-inset-bottom, 0px));
  }

  .intro-hero {
    text-align: center;
    position: relative;
    padding: 0.5rem 0 0.25rem;
    animation: intro-rise 0.9s var(--ease) both;
  }

  .container--intro > .panel:first-of-type {
    animation: intro-rise 0.9s 0.07s var(--ease) both;
  }

  .container--intro > .primary-btn {
    animation: intro-rise 0.9s 0.15s var(--ease) both;
  }

  @keyframes intro-rise {
    from {
      opacity: 0;
      transform: translateY(14px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .intro-hero__glyph {
    font-family: var(--font-mystic);
    font-size: 1.5rem;
    color: rgba(201, 168, 76, 0.38);
    margin-bottom: 0.35rem;
    font-weight: 300;
    line-height: 1;
    filter: drop-shadow(0 0 20px rgba(201, 168, 76, 0.25));
  }

  .intro-hero__title {
    font-family: 'Cinzel Decorative', serif;
    font-size: clamp(1.5rem, 5.5vw, 2.15rem);
    font-weight: 400;
    color: rgba(236, 224, 200, 0.96);
    letter-spacing: 0.14em;
    line-height: 1.2;
    text-shadow:
      0 0 48px rgba(201, 168, 76, 0.18),
      0 0 80px rgba(100, 80, 160, 0.12),
      0 2px 20px rgba(0, 0, 0, 0.6);
  }

  .intro-hero__subtitle {
    font-family: var(--font-mystic);
    font-size: 1.05rem;
    font-weight: 400;
    font-style: italic;
    color: rgba(201, 168, 76, 0.72);
    letter-spacing: 0.35em;
    margin-top: 0.65rem;
    text-indent: 0.35em;
  }

  .intro-hero__tagline {
    font-family: var(--font-ui);
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(165, 158, 185, 0.88);
    letter-spacing: 0.06em;
    line-height: 1.55;
    margin-top: 1.15rem;
    max-width: 20rem;
    margin-left: auto;
    margin-right: auto;
  }

  .intro-subnav {
    text-align: center;
    margin-top: 0.35rem;
    margin-bottom: -0.35rem;
    animation: intro-rise 0.9s 0.04s var(--ease) both;
  }

  .intro-subnav-link {
    display: inline-block;
    font-family: var(--font-ui);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    color: rgba(201, 168, 76, 0.55);
    text-decoration: none;
    padding: 0.35rem 0.5rem;
    border-radius: var(--r-pill);
    border: 1px solid rgba(201, 168, 76, 0.18);
    transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease);
  }

  .intro-subnav-link:hover {
    color: rgba(236, 224, 200, 0.92);
    border-color: rgba(201, 168, 76, 0.38);
    background: rgba(201, 168, 76, 0.06);
  }

  .container--intro .panel {
    background: rgba(8, 7, 18, 0.42);
    backdrop-filter: saturate(140%) blur(28px);
    -webkit-backdrop-filter: saturate(140%) blur(28px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow:
      0 12px 48px rgba(0, 0, 0, 0.35),
      inset 0 1px 0 rgba(255, 255, 255, 0.05);
  }

  .container--intro .panel-label {
    color: rgba(190, 182, 210, 0.75);
    font-weight: 500;
    letter-spacing: 0.2em;
  }

  .container--intro #questionInput {
    min-height: 88px;
    background: rgba(0, 0, 0, 0.28);
  }

  h1 {
    font-family: 'Cinzel Decorative', serif;
    font-size: clamp(1.4rem, 4.2vw, 2rem);
    font-weight: 400;
    color: var(--gold);
    text-align: center;
    letter-spacing: 0.1em;
    text-shadow: 0 0 40px rgba(201, 168, 76, 0.22), 0 1px 0 rgba(0, 0, 0, 0.4);
  }

  .subtitle {
    font-family: var(--font-mystic);
    font-size: 1rem;
    font-weight: 400;
    font-style: italic;
    color: rgba(180, 170, 155, 0.88);
    text-align: center;
    margin-top: -0.65rem;
    letter-spacing: 0.02em;
    line-height: 1.55;
  }

  .panel {
    background: var(--glass);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border: 1px solid var(--hairline);
    border-radius: var(--r-lg);
    padding: 1.35rem 1.2rem;
    box-shadow: var(--shadow-float), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  }

  .panel-label {
    font-family: var(--font-ui);
    font-size: 0.72rem;
    font-weight: 600;
    color: rgba(168, 152, 198, 0.95);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 0.65rem;
  }

  #questionInput {
    width: 100%;
    min-height: 108px;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid var(--hairline);
    border-radius: var(--r-md);
    color: rgba(240, 234, 220, 0.96);
    font-family: var(--font-mystic);
    font-size: 1.08rem;
    padding: 0.95rem 1.05rem;
    resize: vertical;
    line-height: 1.55;
    transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  }

  #questionInput::placeholder { color: rgba(120, 110, 135, 0.75); font-style: italic; }

  #questionInput:focus {
    outline: none;
    border-color: rgba(201, 168, 76, 0.35);
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.12);
  }

  .spread-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem;
  }

  @media (min-width: 520px) {
    .spread-grid { grid-template-columns: repeat(3, 1fr); }
  }

  .spread-option {
    position: relative;
    cursor: pointer;
    padding: 0.7rem 0.55rem;
    border-radius: var(--r-md);
    border: 1px solid var(--hairline);
    background: rgba(0, 0, 0, 0.2);
    transition: border-color 0.22s var(--ease), box-shadow 0.22s var(--ease), transform 0.22s var(--ease);
    text-align: center;
  }

  .spread-option:hover {
    border-color: rgba(201, 168, 76, 0.32);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  }

  .spread-option.selected {
    border-color: rgba(201, 168, 76, 0.55);
    box-shadow: 0 0 0 1px rgba(201, 168, 76, 0.25), 0 6px 20px rgba(201, 168, 76, 0.08);
    background: rgba(201, 168, 76, 0.06);
  }

  .spread-option .sn {
    font-family: 'Cinzel Decorative', serif;
    font-size: 0.62rem;
    color: #c9a84c;
    letter-spacing: 0.08em;
  }

  .spread-option .sd {
    font-size: 0.72rem;
    color: #7a6f8a;
    margin-top: 0.25rem;
    line-height: 1.35;
  }

  .spread-option input {
    position: absolute; opacity: 0; pointer-events: none;
  }

  .hint-row {
    display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; justify-content: center;
    margin-top: 0.5rem;
  }

  .ghost-btn, .primary-btn {
    font-family: var(--font-ui);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    padding: 0.6rem 1.1rem;
    border-radius: var(--r-pill);
    cursor: pointer;
    border: 1px solid var(--hairline);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(190, 182, 168, 0.95);
    transition: border-color 0.2s var(--ease), color 0.2s var(--ease), background 0.2s var(--ease), transform 0.15s var(--ease);
  }

  .ghost-btn:hover {
    border-color: rgba(201, 168, 76, 0.4);
    color: var(--gold);
  }

  .ghost-btn:active { transform: scale(0.98); }

  .primary-btn {
    width: 100%;
    margin-top: 0.35rem;
    padding: 0.85rem 1.35rem;
    border: none;
    color: #1a1410;
    background: linear-gradient(180deg, rgba(222, 198, 140, 1) 0%, rgba(201, 168, 76, 0.92) 100%);
    box-shadow: 0 4px 14px rgba(201, 168, 76, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.35);
    font-size: 0.82rem;
  }

  .primary-btn:hover {
    filter: brightness(1.05);
    box-shadow: 0 6px 22px rgba(201, 168, 76, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  }

  .primary-btn:disabled {
    opacity: 0.38;
    cursor: not-allowed;
    box-shadow: none;
    filter: none;
  }

  .recommend-tag {
    font-family: var(--font-mystic);
    font-size: 0.88rem;
    color: rgba(168, 152, 198, 0.9);
    font-style: italic;
    text-align: center;
    min-height: 1.25rem;
    margin-top: 0.35rem;
  }

  .modality-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }

  .modality-opt {
    position: relative;
    cursor: pointer;
    padding: 0.65rem 0.5rem;
    border-radius: var(--r-md);
    border: 1px solid var(--hairline);
    background: rgba(0, 0, 0, 0.18);
    text-align: center;
    transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
  }

  .modality-opt:hover {
    border-color: rgba(201, 168, 76, 0.28);
  }

  .modality-opt.selected {
    border-color: rgba(201, 168, 76, 0.5);
    background: rgba(201, 168, 76, 0.07);
    box-shadow: 0 0 0 1px rgba(201, 168, 76, 0.15);
  }

  .modality-opt input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
  }

  .modality-opt .mo-title {
    font-family: 'Cinzel Decorative', serif;
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    color: var(--gold);
  }

  .modality-opt .mo-sub {
    font-size: 0.65rem;
    color: rgba(140, 130, 165, 0.95);
    margin-top: 0.25rem;
    line-height: 1.35;
  }

  /* 占星骰子 · 星匣（结果在盒外，避免开盖 3D 遮挡） */
  #diceBoxStage {
    display: none;
    position: absolute;
    inset: 0;
    z-index: 9;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    padding: 0.5rem 1rem max(5.5rem, calc(env(safe-area-inset-bottom, 0px) + 4rem));
  }

  #diceBoxStage.visible {
    display: flex;
  }

  .dice-box-wrap {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    perspective: 960px;
    transform-style: preserve-3d;
    z-index: 1;
  }

  /* 外环星轨装饰 */
  .dice-box-wrap::before {
    content: '';
    position: absolute;
    width: min(300px, 82vw);
    height: min(300px, 82vw);
    left: 50%;
    top: 42%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 1px solid rgba(201, 168, 76, 0.14);
    box-shadow:
      0 0 0 1px rgba(80, 60, 120, 0.12),
      0 0 48px rgba(100, 70, 160, 0.08);
    pointer-events: none;
    z-index: 0;
    opacity: 0.85;
  }

  .dice-box-wrap::after {
    content: '';
    position: absolute;
    width: min(260px, 70vw);
    height: min(260px, 70vw);
    left: 50%;
    top: 42%;
    transform: translate(-50%, -50%) rotate(22deg);
    border-radius: 50%;
    border: 1px dashed rgba(201, 168, 76, 0.1);
    pointer-events: none;
    z-index: 0;
  }

  .dice-box {
    position: relative;
    width: min(196px, 46vw);
    height: min(168px, 40vw);
    transform-style: preserve-3d;
    z-index: 2;
    filter: drop-shadow(0 18px 42px rgba(0, 0, 0, 0.55));
  }

  .dice-box-body {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 70%;
    border-radius: 0 0 18px 18px;
    background:
      radial-gradient(ellipse 120% 80% at 50% 0%, rgba(55, 42, 95, 0.35) 0%, transparent 55%),
      radial-gradient(1.2px 1.2px at 15% 25%, rgba(255, 255, 255, 0.35) 0%, transparent 100%),
      radial-gradient(1px 1px at 82% 40%, rgba(255, 255, 255, 0.2) 0%, transparent 100%),
      radial-gradient(1px 1px at 40% 70%, rgba(255, 255, 255, 0.18) 0%, transparent 100%),
      radial-gradient(1px 1px at 68% 78%, rgba(255, 255, 255, 0.15) 0%, transparent 100%),
      linear-gradient(168deg, #12101c 0%, #06050e 48%, #0e0c18 100%);
    border: 1px solid rgba(201, 168, 76, 0.32);
    border-top: none;
    box-shadow:
      inset 0 0 0 1px rgba(255, 255, 255, 0.04),
      inset 0 -20px 36px rgba(0, 0, 0, 0.55),
      inset 0 1px 0 rgba(201, 168, 76, 0.08);
    overflow: hidden;
  }

  .dice-box-body::before {
    content: '';
    position: absolute;
    inset: 12% 14% 18%;
    border-radius: 12px;
    border: 1px solid rgba(201, 168, 76, 0.1);
    opacity: 0.65;
    pointer-events: none;
  }

  .dice-box-void {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 55% at 50% 45%, rgba(201, 168, 76, 0.06) 0%, transparent 65%);
    pointer-events: none;
  }

  .dice-box-lid {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 36%;
    border-radius: 18px 18px 8px 8px;
    background:
      repeating-conic-gradient(from 0deg at 50% 100%, transparent 0deg 4deg, rgba(201, 168, 76, 0.03) 4deg 5deg),
      linear-gradient(185deg, #252038 0%, #100c1c 42%, #080610 100%);
    border: 1px solid rgba(201, 168, 76, 0.38);
    border-bottom: 1px solid rgba(201, 168, 76, 0.15);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.1),
      0 -2px 28px rgba(201, 168, 76, 0.08);
    transform-origin: 50% 100%;
    transition:
      transform 0.88s cubic-bezier(0.32, 1.15, 0.48, 1),
      opacity 0.45s ease 0.35s;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .dice-box--open .dice-box-lid {
    transform: rotateX(-102deg) translateY(-8%) translateZ(-28px);
    opacity: 0.22;
    pointer-events: none;
  }

  .dice-lid-emblem {
    width: min(44px, 12vw);
    height: min(44px, 12vw);
    opacity: 0.92;
    filter: drop-shadow(0 0 12px rgba(201, 168, 76, 0.4));
  }

  /* 掷象：独立面板在星匣下方，不被盒盖挡住 */
  .dice-results-panel {
    position: relative;
    z-index: 6;
    width: min(360px, 94vw);
    margin-top: 0;
    max-height: 0;
    padding: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(8px);
    transition:
      opacity 0.45s ease 0.25s,
      transform 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.25s,
      max-height 0.5s ease 0.2s,
      margin-top 0.35s ease;
    pointer-events: none;
  }

  .dice-box-wrap.dice-revealed .dice-results-panel {
    margin-top: 1.35rem;
    max-height: 320px;
    opacity: 1;
    transform: translateY(0);
    pointer-events: none;
  }

  .dice-results {
    text-align: center;
    padding: 1rem 1.15rem 1.1rem;
    background: rgba(6, 4, 14, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(201, 168, 76, 0.3);
    border-radius: 16px;
    box-shadow:
      0 16px 48px rgba(0, 0, 0, 0.5),
      inset 0 1px 0 rgba(255, 255, 255, 0.06);
  }

  .dice-result-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.65rem 0.45rem;
    align-items: start;
  }

  @media (max-width: 380px) {
    .dice-result-grid {
      grid-template-columns: 1fr;
      gap: 0.75rem;
    }
  }

  .dice-results .dr-cell {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.45rem 0.35rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(201, 168, 76, 0.12);
  }

  .dice-results .dr-k {
    font-family: var(--font-ui);
    font-size: 0.58rem;
    font-weight: 650;
    letter-spacing: 0.22em;
    color: rgba(201, 168, 76, 0.72);
    text-transform: uppercase;
  }

  .dice-results .dr-val {
    font-family: var(--font-mystic);
    font-size: clamp(0.92rem, 3.4vw, 1.08rem);
    color: rgba(238, 228, 210, 0.98);
    letter-spacing: 0.04em;
    line-height: 1.35;
  }

  .ring-slot-inner--rune {
    border: none;
    background: transparent;
    border-radius: 0;
    overflow: visible;
    transform: rotateZ(var(--rune-tilt, 0deg));
    filter: drop-shadow(1px 3px 5px rgba(0, 0, 0, 0.65));
  }

  .ring-slot-inner--rune .rune-stone-svg {
    width: 100%;
    height: 100%;
    display: block;
    opacity: 1;
  }

  /* 卢恩：环槽本身不设矩形牌框，只保留石形剪影 */
  .ring-slot.ring-slot--rune {
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .ring-slot.ring-slot--rune.ring-slot--front {
    box-shadow:
      0 0 0 1.5px rgba(201, 168, 76, 0.88),
      0 0 14px rgba(201, 168, 76, 0.42);
    filter: drop-shadow(0 0 10px rgba(201, 168, 76, 0.25));
  }

  .ring-slot.ring-slot--rune.ring-slot--taken {
    filter: grayscale(0.25) brightness(0.72);
  }

  /* —— 虚空 —— */
  #realm {
    display: none;
    position: fixed; inset: 0; z-index: 50;
    background:
      radial-gradient(ellipse 120% 80% at 50% 35%, rgba(30, 18, 55, 0.5) 0%, transparent 55%),
      radial-gradient(ellipse at 50% 120%, #12081f 0%, #050208 50%, #020108 100%);
  }

  #realm.active { display: block; }

  #starCanvas {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    cursor: crosshair;
    touch-action: none;
    z-index: 1;
  }

  /* 洗牌开场 */
  #shuffleStage {
    display: none;
    position: absolute;
    inset: 0;
    z-index: 62;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
  }

  #shuffleStage.active {
    display: flex;
  }

  .shuffle-dim {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 52% 48% at 50% 45%, rgba(22, 10, 48, 0.94) 0%, rgba(4, 2, 10, 0.97) 100%);
  }

  .shuffle-pile {
    position: relative;
    width: 120px;
    height: 160px;
    z-index: 1;
    transform-style: preserve-3d;
  }

  /* 卢恩：袋中洗石 — 更大范围、透视，动画为翻滚相击而非甩牌 */
  .shuffle-pile.shuffle-pile--runes {
    width: 220px;
    height: 210px;
    perspective: 520px;
    perspective-origin: 50% 45%;
  }

  .shuffle-card {
    position: absolute;
    width: 72px;
    height: 112px;
    left: 24px;
    top: 24px;
    border-radius: 7px;
    background: linear-gradient(145deg, #1a0a2e 0%, #0d1534 100%);
    border: 1px solid rgba(107, 63, 160, 0.55);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    transform-origin: 50% 100%;
    animation: shuffle-jolt 0.36s ease-in-out infinite;
    animation-delay: calc(var(--si) * 0.04s);
  }

  .shuffle-card svg {
    width: 58%;
    opacity: 0.55;
  }

  .shuffle-card.shuffle-card--lenormand {
    width: 58px;
    height: 100px;
    border-radius: 8px;
    background: linear-gradient(155deg, #2a2042 0%, #120a22 100%);
    border-color: rgba(130, 100, 170, 0.5);
  }

  .shuffle-card.shuffle-card--lenormand svg {
    width: 52%;
    opacity: 0.58;
  }

  .shuffle-card.shuffle-card--rune {
    width: 56px;
    height: 78px;
    border-radius: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    filter: drop-shadow(3px 6px 10px rgba(0, 0, 0, 0.65));
    transform-origin: 50% 58%;
    transform-style: preserve-3d;
    animation: rune-stone-tumble 0.52s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
    animation-delay: calc(var(--si) * 0.06s);
  }

  .shuffle-card.shuffle-card--rune svg {
    width: 100%;
    height: auto;
    opacity: 1;
    display: block;
  }

  @keyframes rune-stone-tumble {
    0%, 100% {
      transform: translate3d(var(--tumble-x0, 0), var(--tumble-y0, 0), 0)
        rotate(calc(var(--rune-sh-tilt, 0deg) - 6deg)) scale(1);
    }
    22% {
      transform: translate3d(calc(var(--tumble-x0, 0px) + 18px), calc(var(--tumble-y0, 0px) - 22px), 0)
        rotate(calc(var(--rune-sh-tilt, 0deg) + 34deg)) scale(1.1);
    }
    48% {
      transform: translate3d(calc(var(--tumble-x0, 0px) - 16px), calc(var(--tumble-y0, 0px) + 12px), 0)
        rotate(calc(var(--rune-sh-tilt, 0deg) - 38deg)) scale(0.9);
    }
    72% {
      transform: translate3d(calc(var(--tumble-x0, 0px) + 8px), calc(var(--tumble-y0, 0px) + 18px), 0)
        rotate(calc(var(--rune-sh-tilt, 0deg) + 18deg)) scale(1.04);
    }
  }

  @keyframes shuffle-jolt {
    0%, 100% { transform: translate(0, 0) rotate(-2deg); }
    25% { transform: translate(14px, -9px) rotate(6deg); }
    55% { transform: translate(-12px, 7px) rotate(-7deg); }
    80% { transform: translate(9px, 5px) rotate(4deg); }
  }

  .shuffle-label {
    position: relative;
    z-index: 2;
    margin-top: 2rem;
    font-family: 'Cinzel Decorative', serif;
    font-size: 0.72rem;
    letter-spacing: 0.26em;
    color: rgba(201, 168, 76, 0.92);
    text-shadow: 0 0 22px rgba(201, 168, 76, 0.35);
  }

  /* 78 张 · 慢速 3D 旋转圆环 */
  #ringStage {
    position: absolute;
    inset: 0;
    z-index: 8;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
  }

  .ring-vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 72% 56% at 50% 38%, rgba(8, 5, 20, 0.12) 0%, rgba(4, 2, 12, 0.55) 62%, rgba(2, 1, 8, 0.78) 100%);
    pointer-events: none;
  }

  .ring-scene {
    position: relative;
    z-index: 1;
    width: 100%;
    height: min(68vh, 540px);
    perspective: 1000px;
    perspective-origin: 50% 38%;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* 张数较少时放大槽位，便于辨认与择牌 */
  #ringStage.ring-stage--lenormand .ring-scene {
    height: min(72vh, 580px);
    perspective: 1100px;
  }

  #ringStage.ring-stage--runes .ring-scene {
    height: min(74vh, 600px);
    perspective: 1100px;
  }

  .ring-carousel {
    position: relative;
    width: 1px;
    height: 1px;
    transform-style: preserve-3d;
    transform: rotateX(11deg) rotateY(0deg);
    will-change: transform;
  }

  .ring-slot {
    position: absolute;
    width: 24px;
    height: 37px;
    left: -12px;
    top: -18px;
    transform-style: preserve-3d;
    border-radius: 4px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(107, 63, 160, 0.28);
    transition: box-shadow 0.12s ease, opacity 0.18s ease;
    backface-visibility: visible;
  }

  .ring-slot--front {
    box-shadow:
      0 0 0 2px rgba(201, 168, 76, 0.92),
      0 0 18px rgba(201, 168, 76, 0.5),
      0 4px 14px rgba(0, 0, 0, 0.55);
    z-index: 5;
  }

  .ring-slot--taken {
    opacity: 0.2;
    filter: grayscale(1) brightness(0.75);
  }

  .ring-slot-inner {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 3px;
    overflow: hidden;
    background: linear-gradient(145deg, #1a0a2e 0%, #0d1534 100%);
    border: 1px solid rgba(107, 63, 160, 0.42);
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .ring-slot-inner svg {
    width: 56%;
    opacity: 0.5;
  }

  /** 环上牌背序号：洗牌后第 1～N 槽（塔罗 78，雷诺曼 36，卢恩 24） */
  .ring-slot-num {
    position: absolute;
    left: 50%;
    bottom: 1px;
    transform: translateX(-50%);
    z-index: 2;
    font-family: var(--font-ui);
    font-size: 7px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: rgba(232, 210, 150, 0.98);
    text-shadow:
      0 0 2px rgba(0, 0, 0, 1),
      0 1px 2px rgba(0, 0, 0, 0.85);
    line-height: 1;
    letter-spacing: -0.03em;
    pointer-events: none;
  }

  .ring-slot-inner--rune .ring-slot-num {
    bottom: 3px;
    font-size: 6px;
    color: rgba(245, 228, 195, 0.95);
    text-shadow:
      0 0 3px rgba(0, 0, 0, 1),
      0 1px 2px rgba(0, 0, 0, 0.9);
  }

  #ringStage.ring-stage--lenormand .ring-slot {
    width: 36px;
    height: 54px;
    left: -18px;
    top: -27px;
    border-radius: 5px;
  }

  #ringStage.ring-stage--lenormand .ring-slot-inner {
    border-radius: 4px;
  }

  #ringStage.ring-stage--lenormand .ring-slot-num {
    font-size: 8px;
    bottom: 2px;
  }

  #ringStage.ring-stage--runes .ring-slot {
    width: 42px;
    height: 64px;
    left: -21px;
    top: -32px;
    border-radius: 0;
  }

  #ringStage.ring-stage--runes .ring-slot-inner--rune .ring-slot-num {
    font-size: 7.5px;
    bottom: 4px;
  }

  .ring-hint-bar {
    position: relative;
    z-index: 2;
    margin-top: 0.35rem;
    font-family: var(--font-ui);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    color: rgba(201, 168, 76, 0.82);
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.65);
    pointer-events: none;
  }

  .scatter-back-inner {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 5px;
    background: linear-gradient(145deg, #1a0a2e 0%, #0d1534 100%);
    border: 1px solid rgba(107, 63, 160, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .scatter-back-inner svg {
    width: 58%;
    opacity: 0.52;
  }

  /* 选中后：牌背放大并翻为正面 */
  #pickZoomLayer {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 64;
    background: rgba(5, 2, 12, 0.91);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    padding: 1rem;
    cursor: pointer;
    perspective: 1400px;
  }

  #pickZoomLayer.active {
    display: flex;
  }

  #pickZoomLayer .pz-pos {
    font-family: 'Cinzel Decorative', serif;
    font-size: 0.72rem;
    color: #c9a84c;
    letter-spacing: 0.14em;
    text-align: center;
  }

  #pickZoomLayer .pz-name {
    font-size: 1.05rem;
    color: #e8d5b7;
    text-align: center;
    max-width: min(360px, 92vw);
    line-height: 1.4;
  }

  #pickZoomLayer .pz-hint {
    font-size: 0.74rem;
    color: #6b5f7a;
    font-style: italic;
  }

  .pick-zoom-shell {
    width: min(228px, 58vw);
    transform-style: preserve-3d;
    transition: transform 0.7s cubic-bezier(0.18, 0.88, 0.22, 1);
    transform: scale(0.28);
  }

  #pickZoomLayer.phase-zoom .pick-zoom-shell {
    transform: scale(1);
  }

  .pick-zoom-inner {
    position: relative;
    width: 100%;
    padding-top: 158%;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  }

  #pickZoomLayer.phase-flip .pick-zoom-inner {
    transform: rotateY(180deg);
  }

  .pick-zoom-back,
  .pick-zoom-face {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    border-radius: 10px;
    border: 1px solid rgba(201, 168, 76, 0.65);
    overflow: hidden;
  }

  .pick-zoom-back {
    background: linear-gradient(145deg, #1a0a2e 0%, #0d1534 100%);
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .pick-zoom-back.pick-zoom-back--rune {
    background: transparent;
    border: none;
    border-radius: 0;
    overflow: visible;
  }

  .pick-zoom-back.pick-zoom-back--rune .scatter-back-inner {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.7));
    transform: rotateZ(var(--rune-pk-tilt, 0deg));
  }

  .pick-zoom-back.pick-zoom-back--rune .rune-stone-svg {
    width: min(52vw, 220px);
    height: auto;
    max-height: 62vh;
  }

  .pick-zoom-back.pick-zoom-back--rune .pick-back-num {
    color: rgba(244, 220, 150, 0.98);
    text-shadow:
      0 0 1px rgba(0, 0, 0, 1),
      0 1px 0 rgba(184, 148, 60, 0.45),
      0 0 12px rgba(201, 168, 76, 0.35);
  }

  .pick-back-num {
    position: absolute;
    left: 50%;
    bottom: 11%;
    transform: translateX(-50%);
    z-index: 2;
    font-family: var(--font-ui);
    font-size: clamp(0.72rem, 2.8vw, 0.95rem);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: rgba(201, 168, 76, 0.96);
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.95), 0 1px 2px rgba(0, 0, 0, 0.85);
    pointer-events: none;
  }

  .pick-zoom-face {
    transform: rotateY(180deg);
    background: #0e0a18;
    padding: 4px;
  }

  .pick-zoom-face .tarot-card-image-wrap {
    width: 100%;
    height: 100%;
    position: relative;
  }

  .pick-zoom-face img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
    display: block;
  }

  .pick-zoom-face .tarot-card-image-wrap.reversed img {
    transform: rotate(180deg);
  }

  /* 卢恩正面：圆角厚黑石 + 金刻符文（参考手工卢恩石牌） */
  .rune-face-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 120px;
    gap: 0.45rem;
    padding: 12px 10px;
    text-align: center;
    border-radius: clamp(14px, 4vw, 20px);
    background:
      linear-gradient(168deg, rgba(55, 55, 62, 0.35) 0%, transparent 38%),
      linear-gradient(180deg, #141418 0%, #050506 48%, #101014 100%);
    border: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow:
      inset 0 2px 1px rgba(255, 255, 255, 0.14),
      inset 0 -10px 24px rgba(0, 0, 0, 0.72),
      0 8px 28px rgba(0, 0, 0, 0.55);
  }

  .rune-face-glyph {
    font-family: 'Noto Sans Runic', 'Segoe UI Historic', 'Apple Symbols', sans-serif;
    font-size: clamp(2.75rem, 11vw, 3.6rem);
    line-height: 1;
    font-weight: 400;
    color: #c9a03a;
    text-shadow:
      0 1px 0 rgba(0, 0, 0, 0.92),
      0 -1px 0 rgba(255, 230, 160, 0.42),
      0 0 1px rgba(212, 175, 55, 0.9),
      0 0 22px rgba(201, 168, 76, 0.22);
  }

  .rune-face-name {
    font-family: var(--font-ui);
    font-size: 0.58rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(200, 175, 120, 0.72);
  }

  .rune-face-zh {
    font-family: var(--font-ui);
    font-size: 0.68rem;
    line-height: 1.35;
    color: rgba(210, 202, 188, 0.94);
    max-width: 12em;
  }

  .pick-zoom-face--rune .rune-face-glyph {
    font-size: clamp(3.6rem, 16vw, 5.5rem);
  }

  .pick-zoom-face--rune .rune-face-zh {
    font-size: clamp(0.72rem, 2.8vw, 0.88rem);
  }

  .card-face .rune-face-glyph {
    font-size: clamp(2.2rem, 5.5vw, 2.85rem);
  }

  /* 摄像头仅用于手势识别，不显示画面 */
  #realmCam {
    position: fixed;
    left: -9999px;
    top: 0;
    width: 640px;
    height: 480px;
    opacity: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: -1;
    border: none;
    box-shadow: none;
    background: transparent;
  }

  #realmCam video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scaleX(-1);
    display: block;
  }

  #gestureBar {
    width: min(360px, 88vw);
    height: 6px;
    margin: 0.55rem auto 0;
    background: rgba(255, 255, 255, 0.07);
    border-radius: var(--r-pill);
    overflow: hidden;
    pointer-events: none;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.35);
  }

  #gestureFill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, rgba(120, 82, 168, 0.95), rgba(201, 168, 76, 0.95));
    border-radius: var(--r-pill);
    transition: width 0.08s var(--ease);
  }

  #realmStatus {
    margin-top: 0.4rem;
    font-family: var(--font-mystic);
    font-size: 0.84rem;
    color: rgba(180, 170, 158, 0.88);
    font-style: italic;
    min-height: 1.15rem;
  }

  #realmHud {
    position: absolute; left: 0; right: 0; bottom: 0; z-index: 53;
    padding: 1.1rem max(1.25rem, env(safe-area-inset-right, 0px)) max(1.35rem, env(safe-area-inset-bottom, 0px)) max(1.25rem, env(safe-area-inset-left, 0px));
    text-align: center;
    background: linear-gradient(to top, rgba(8, 6, 14, 0.94) 0%, rgba(10, 8, 18, 0.72) 42%, rgba(10, 8, 18, 0.35) 72%, transparent 100%);
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    pointer-events: none;
  }

  #realmHud .hud-title {
    font-family: 'Cinzel Decorative', serif;
    font-size: 0.78rem;
    font-weight: 400;
    color: var(--gold);
    letter-spacing: 0.16em;
    margin-bottom: 0.4rem;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
  }

  #realmHud .hud-sub {
    font-family: var(--font-mystic);
    font-size: 0.9rem;
    color: rgba(175, 166, 152, 0.9);
    font-style: italic;
    font-weight: 400;
    max-width: 420px;
    margin: 0 auto;
    line-height: 1.5;
  }

  #realmProgress {
    margin-top: 0.65rem;
    font-family: var(--font-ui);
    font-size: 0.8rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: rgba(168, 152, 198, 0.95);
    letter-spacing: 0.04em;
  }

  #realmExit {
    pointer-events: auto;
    margin-top: 0.8rem;
    font-family: var(--font-ui);
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--hairline);
    color: rgba(190, 182, 172, 0.95);
    padding: 0.5rem 1.25rem;
    border-radius: var(--r-pill);
    cursor: pointer;
    transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease);
  }

  #realmExit:hover {
    color: var(--gold);
    border-color: rgba(201, 168, 76, 0.35);
    background: rgba(201, 168, 76, 0.08);
  }

  /* 结果区 */
  #resultBlock {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }

  #resultBlock.visible { display: flex; }

  .spread-label {
    font-family: var(--font-ui);
    font-size: 0.72rem;
    font-weight: 600;
    color: rgba(168, 152, 198, 0.95);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-align: center;
  }

  .cards-row {
    display: flex; gap: 0.85rem; justify-content: center; flex-wrap: wrap;
  }

  .card-slot {
    width: 108px;
    perspective: 900px;
  }

  .card-inner {
    position: relative; width: 100%; padding-top: 168%;
    transform-style: preserve-3d;
    transition: transform 0.75s cubic-bezier(0.4, 0, 0.2, 1);
  }

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

  .card-face, .card-back {
    position: absolute; inset: 0;
    backface-visibility: hidden;
    border-radius: var(--r-md);
    overflow: hidden;
    border: 1px solid var(--hairline);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  }

  .card-back {
    background: linear-gradient(145deg, #1a0a2e 0%, #0d1534 100%);
    display: flex; align-items: center; justify-content: center;
  }

  .card-back svg { width: 58%; opacity: 0.55; }

  .card-back.card-back--rune {
    background: transparent;
    border: none;
    box-shadow: none;
    overflow: visible;
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.45));
    transform: rotateZ(var(--rune-card-tilt, 0deg));
  }

  .card-back.card-back--rune svg {
    width: 82%;
    height: auto;
    max-height: 92%;
    opacity: 1;
  }

  .card-face {
    transform: rotateY(180deg);
    background: #0e0a18;
    padding: 4px;
  }

  .card-face .tarot-card-image-wrap {
    width: 100%;
    height: 100%;
    position: relative;
  }

  .card-face img {
    width: 100%; height: 100%;
    object-fit: cover;
    border-radius: 5px;
    display: block;
  }

  .tarot-card-image-wrap.reversed img,
  .tarot-card-image-wrap.reversed > .tarot-img-fallback {
    transform: rotate(180deg);
  }

  .tarot-card-image-wrap.reversed.placeholder-face > div {
    transform: rotate(180deg);
  }

  .card-orient {
    font-size: 0.55rem;
    color: #9b7a5a;
    letter-spacing: 0.15em;
    margin-top: 2px;
  }

  .card-orient.reversed { color: #8a5a6a; }

  .card-caption {
    margin-top: 4px;
    text-align: center;
    font-size: 0.62rem;
    color: #c9a84c;
    letter-spacing: 0.06em;
    line-height: 1.3;
  }

  .reading-section {
    width: 100%;
    background: var(--glass-strong);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border: 1px solid var(--hairline);
    border-radius: var(--r-lg);
    padding: 1.4rem 1.25rem;
    min-height: 100px;
    font-family: var(--font-mystic);
    font-size: 1.05rem;
    line-height: 1.82;
    font-style: normal;
    font-weight: 400;
    color: rgba(210, 202, 188, 0.94);
    box-shadow: var(--shadow-float), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  }

  .reading-body {
    margin: 0;
  }

  .reading-para {
    margin: 0 0 1.05rem;
    text-align: justify;
    text-justify: inter-ideograph;
  }

  .reading-para:last-child {
    margin-bottom: 0;
  }

  .reading-em {
    font-family: var(--font-ui);
    font-style: normal;
    font-weight: 650;
    color: rgba(222, 200, 150, 0.98);
    letter-spacing: 0.02em;
  }

  .reading-section .placeholder {
    color: #4a3f5a;
    text-align: center;
    padding: 1.5rem 0;
    font-size: 0.9rem;
    font-style: italic;
  }

  .reading-title {
    font-family: 'Cinzel Decorative', serif;
    font-size: 0.8rem;
    color: #c9a84c;
    letter-spacing: 0.1em;
    margin-bottom: 0.85rem;
  }

  .loading-dots span {
    animation: loadDot 1.4s ease-in-out infinite;
    display: inline-block;
  }
  .loading-dots span:nth-child(2) { animation-delay: 0.2s; }
  .loading-dots span:nth-child(3) { animation-delay: 0.4s; }

  @keyframes loadDot {
    0%, 80%, 100% { transform: scale(0); opacity: 0.3; }
    40% { transform: scale(1); opacity: 1; }
  }

  .intro-hidden { display: none !important; }

  #spreadPreviewPanel .preview-name {
    font-family: 'Cinzel Decorative', serif;
    font-size: 0.88rem;
    font-weight: 400;
    color: var(--gold);
    letter-spacing: 0.06em;
    margin-bottom: 0.4rem;
  }

  #spreadPreviewPanel .preview-blurb {
    font-family: var(--font-mystic);
    font-size: 0.88rem;
    color: rgba(150, 142, 165, 0.95);
    font-style: italic;
    margin-bottom: 0.55rem;
  }

  #spreadPreviewPanel .preview-positions {
    font-family: var(--font-mystic);
    font-size: 0.95rem;
    color: rgba(205, 196, 180, 0.92);
    line-height: 1.55;
  }

  .panel--member .member-hint,
  .panel--history .member-hint {
    font-size: 0.78rem;
    color: rgba(180, 172, 198, 0.88);
    line-height: 1.5;
    margin-bottom: 0.65rem;
  }

  .member-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
  }

  .member-pass-input {
    flex: 1;
    min-width: 160px;
    padding: 10px 14px;
    border-radius: var(--r-md);
    border: 1px solid var(--hairline);
    background: rgba(12, 10, 22, 0.55);
    color: rgba(235, 228, 216, 0.95);
    font-family: var(--font-ui);
    font-size: 0.88rem;
  }

  .member-verify-btn {
    padding: 10px 18px;
    border-radius: var(--r-md);
    border: 1px solid var(--hairline-gold);
    background: rgba(201, 168, 76, 0.12);
    color: var(--gold);
    font-family: var(--font-ui);
    font-size: 0.82rem;
    cursor: pointer;
  }

  .member-verify-btn:hover {
    background: rgba(201, 168, 76, 0.2);
  }

  .member-status-line {
    font-size: 0.76rem;
    color: rgba(155, 143, 122, 0.92);
    margin-top: 0.55rem;
    line-height: 1.45;
  }

  .member-logout-btn {
    margin-top: 0.5rem;
    padding: 6px 12px;
    font-size: 0.72rem;
    border-radius: var(--r-md);
    border: 1px solid var(--hairline);
    background: transparent;
    color: rgba(155, 143, 122, 0.85);
    cursor: pointer;
    font-family: var(--font-ui);
  }

  .member-logout-btn--inline {
    margin-top: 0;
    margin-bottom: 0.65rem;
  }

  .member-history-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 220px;
    overflow-y: auto;
  }

  .member-history-item {
    display: grid;
    grid-template-columns: auto auto 1fr;
    gap: 8px 12px;
    align-items: baseline;
    text-align: left;
    width: 100%;
    padding: 10px 12px;
    border-radius: var(--r-md);
    border: 1px solid var(--hairline);
    background: rgba(16, 14, 26, 0.45);
    color: rgba(220, 212, 196, 0.92);
    font-family: var(--font-ui);
    font-size: 0.78rem;
    cursor: pointer;
  }

  .member-history-item:hover {
    border-color: var(--hairline-gold);
  }

  .mhi-date {
    color: rgba(155, 143, 122, 0.75);
    font-size: 0.7rem;
    white-space: nowrap;
  }

  .mhi-mode {
    color: var(--gold);
    font-size: 0.68rem;
    letter-spacing: 0.08em;
  }

  .mhi-q {
    grid-column: 1 / -1;
    color: rgba(205, 196, 180, 0.95);
    font-family: var(--font-mystic);
    font-size: 0.84rem;
  }

  .reading-title--sub {
    font-size: 0.95rem;
    margin-top: 1.25rem;
    margin-bottom: 0.35rem;
  }

  .member-badge {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.58rem;
    letter-spacing: 0.12em;
    vertical-align: middle;
    border: 1px solid var(--hairline-gold);
    color: var(--gold);
    opacity: 0.9;
  }

  .member-followup-block {
    margin-top: 1.35rem;
    padding-top: 1rem;
    border-top: 1px solid var(--hairline);
  }

  .member-followup-hint {
    font-size: 0.74rem;
    color: rgba(155, 143, 122, 0.88);
    margin-bottom: 0.5rem;
  }

  .member-followup-input {
    width: 100%;
    min-height: 72px;
    padding: 10px 12px;
    border-radius: var(--r-md);
    border: 1px solid var(--hairline);
    background: rgba(12, 10, 22, 0.5);
    color: rgba(235, 228, 216, 0.95);
    font-family: var(--font-ui);
    font-size: 0.86rem;
    resize: vertical;
    margin-bottom: 0.5rem;
  }

  .member-followup-send {
    padding: 8px 16px;
    border-radius: var(--r-md);
    border: 1px solid var(--hairline-gold);
    background: rgba(201, 168, 76, 0.14);
    color: var(--gold);
    font-family: var(--font-ui);
    font-size: 0.8rem;
    cursor: pointer;
  }

  .member-followup-out {
    margin-top: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .member-followup-answer {
    padding: 12px 0 0;
    border-top: 1px dashed rgba(255, 255, 255, 0.06);
  }

  .followup-q-label {
    font-size: 0.62rem;
    letter-spacing: 0.14em;
    color: rgba(155, 143, 122, 0.75);
    margin-bottom: 4px;
  }

  .followup-q-text {
    font-family: var(--font-mystic);
    color: rgba(210, 202, 188, 0.95);
    margin-bottom: 0.65rem;
    font-size: 0.88rem;
  }

  .member-followup-err {
    color: #c07070;
    font-size: 0.82rem;
  }
