@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;1,500&family=Inter:wght@400;500;600&display=swap");

:root {
  --ink: #f5ecd9;
  --muted: #b8aebd;
  --violet: #9e82d5;
  --violet-bright: #c9adff;
  --gold: #c9a968;
  --night: #090713;
  --glass: rgba(15, 12, 29, .67);
  --line: rgba(226, 207, 255, .17);
  --room-x: 0deg;
  --room-y: 0deg;
}

* { box-sizing: border-box; }
html, body { margin: 0; width: 100%; min-height: 100%; background: var(--night); }
body { color: var(--ink); font-family: Inter, system-ui, sans-serif; overflow: hidden; }
button, input, textarea { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--violet-bright); outline-offset: 3px; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.room {
  position: relative;
  isolation: isolate;
  width: 100vw;
  height: 100svh;
  min-height: 650px;
  overflow: hidden;
  perspective: 1400px;
  background: #090713;
}
.room-background {
  position: absolute;
  inset: -4%;
  z-index: -6;
  background: url("assets/tarot-room-wide-v1.png") center 46% / cover no-repeat;
  transform: rotateX(var(--room-y)) rotateY(var(--room-x)) scale(1.07);
  transition: transform .6s cubic-bezier(.2,.7,.2,1);
  filter: saturate(.85) brightness(.71) contrast(1.08);
}
.room-firelight {
  position: absolute; inset: -4%; z-index: -4; pointer-events: none;
  transform: rotateX(var(--room-y)) rotateY(var(--room-x)) scale(1.07);
  transition: transform .6s cubic-bezier(.2,.7,.2,1);
}
.wall-flame {
  position: absolute; left: var(--x); top: var(--y); width: 9px; height: 22px;
  border-radius: 78% 22% 62% 38%; transform-origin: 50% 100%;
  background: radial-gradient(ellipse at 50% 72%, #fff9cf 0 13%, #ffc65d 35%, rgba(245,124,31,.72) 60%, transparent 72%);
  filter: blur(.15px); mix-blend-mode: screen;
  animation: wall-flame-flicker var(--speed) var(--delay) ease-in-out infinite alternate;
}
.wall-flame-a { --x: 5.5%; --y: 34.7%; --scale: .72; --delay: -1.8s; --speed: 1.34s; }
.wall-flame-b { --x: 12.2%; --y: 37.7%; --scale: 1; --delay: -.6s; --speed: 1.08s; }
.wall-flame-c { --x: 18.1%; --y: 54.2%; --scale: .82; --delay: -2.1s; --speed: 1.51s; }
.wall-flame-d { --x: 20.2%; --y: 80.6%; --scale: .88; --delay: -.2s; --speed: 1.17s; }
.wall-flame-e { --x: 74%; --y: 57.2%; --scale: .62; --delay: -1.3s; --speed: 1.43s; }
.wall-flame-f { --x: 81.1%; --y: 82.3%; --scale: .56; --delay: -2.6s; --speed: 1.29s; }
.wall-flame-g { --x: 94.1%; --y: 86%; --scale: .72; --delay: -.9s; --speed: 1.56s; }
.wall-flame-h { --x: 94.2%; --y: 13.1%; --scale: .76; --delay: -2.4s; --speed: 1.21s; }
.wall-flame::before {
  content: ""; position: absolute; left: 50%; top: 68%; width: 74px; height: 74px;
  border-radius: 50%; transform: translate(-50%,-50%);
  background: radial-gradient(circle, rgba(255,174,70,.3), rgba(227,101,37,.1) 38%, transparent 70%);
  filter: blur(7px); animation: firelight-bloom 2.3s ease-in-out infinite alternate;
}
@keyframes wall-flame-flicker {
  0% { transform: translate(-50%,-94%) scale(var(--scale)) rotate(-2deg) skewX(-3deg); opacity: .58; }
  37% { transform: translate(-50%,-98%) scale(var(--scale)) scale(.91,1.1) rotate(3deg) skewX(6deg); opacity: .92; }
  70% { transform: translate(-50%,-95%) scale(var(--scale)) scale(1.04,.88) rotate(-4deg); opacity: .68; }
  100% { transform: translate(-50%,-101%) scale(var(--scale)) scale(.95,1.06) rotate(2deg) skewX(4deg); opacity: 1; }
}
@keyframes firelight-bloom { to { opacity: .5; transform: translate(-50%,-50%) scale(1.22); } }
.room-haze {
  position: absolute; inset: 0; z-index: -5; pointer-events: none;
  background:
    radial-gradient(circle at 50% 43%, rgba(104,73,145,.1), transparent 27%),
    linear-gradient(180deg, rgba(5,4,12,.22), transparent 30%, rgba(5,4,12,.25));
}
.room-vignette {
  position: absolute; inset: 0; z-index: 20; pointer-events: none;
  box-shadow: inset 0 0 13vw 5vw rgba(0,0,0,.72);
}
.dust {
  position: absolute; inset: 0; z-index: 7; pointer-events: none; opacity: .3;
  background-image:
    radial-gradient(circle, rgba(255,229,180,.8) 0 1px, transparent 1.5px),
    radial-gradient(circle, rgba(203,184,255,.65) 0 1px, transparent 1.5px);
  background-size: 151px 173px, 227px 199px;
  animation: dust-drift 18s linear infinite;
}
@keyframes dust-drift { to { background-position: 40px -90px, -70px -50px; } }

.room-header {
  position: absolute; z-index: 30; top: 0; left: 0; right: 0;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: max(18px, env(safe-area-inset-top)) clamp(20px, 4vw, 64px);
  background: linear-gradient(180deg, rgba(5,4,12,.82), transparent);
}
.brand { color: inherit; text-decoration: none; display: flex; align-items: center; gap: 12px; width: max-content; }
.brand-moon { font: 500 38px/1 "Cormorant Garamond", serif; color: var(--gold); }
.brand strong, .brand small { display: block; }
.brand strong { font-family: "Cormorant Garamond", serif; letter-spacing: .23em; font-size: 20px; }
.brand small { color: var(--muted); font-size: 9px; letter-spacing: .13em; text-transform: uppercase; margin-top: 2px; }
.status-pill {
  display: flex; align-items: center; gap: 8px; padding: 8px 14px;
  border: 1px solid var(--line); border-radius: 999px; background: rgba(9,7,19,.45);
  backdrop-filter: blur(16px); color: #c9bfce; font-size: 10px; letter-spacing: .12em; text-transform: uppercase;
}
.status-pill i, .presence-chip i, .caption-name i, .room-meter > i {
  width: 6px; height: 6px; border-radius: 50%; background: #9aa188;
  box-shadow: 0 0 10px currentColor; animation: pulse 2.4s ease-in-out infinite;
}
.session-clock { justify-self: end; display: flex; align-items: center; gap: 13px; font-size: 11px; color: var(--muted); }
.session-clock strong { color: var(--ink); font: 600 19px "Cormorant Garamond", serif; letter-spacing: .08em; }
@keyframes pulse { 50% { opacity: .42; transform: scale(.72); } }

.reader-stage {
  position: absolute; z-index: 2; top: 5vh; bottom: 21vh; left: 50%; width: min(46vw, 610px);
  transform: translateX(-50%); pointer-events: none;
}
.reader-aura {
  position: absolute; inset: 10% 5% 0; border-radius: 50%;
  background: radial-gradient(ellipse, rgba(119,75,147,.18), transparent 66%);
  filter: blur(16px); animation: aura 5s ease-in-out infinite;
}
@keyframes aura { 50% { opacity: .55; transform: scale(1.04); } }
.reader-visual { position: absolute; inset: 0; display: grid; place-items: center; }
.local-avatar { position: absolute; inset: 0; transform-origin: 50% 67%; transition: opacity .42s ease; }
.local-avatar > img, .avatar-video, .waiting-session-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 31%;
  filter: brightness(.9) saturate(.87) contrast(1.05) drop-shadow(0 30px 30px rgba(0,0,0,.54));
  -webkit-mask-image: radial-gradient(ellipse 69% 88% at 50% 44%, #000 56%, transparent 100%);
  mask-image: radial-gradient(ellipse 69% 88% at 50% 44%, #000 56%, transparent 100%);
}
.waiting-session-video { position: absolute; z-index: 4; inset: 0; animation: waiting-video-in .48s ease both; }
.avatar-video { position: absolute; z-index: 5; inset: 0; }
.session-active:not(.avatar-speaking) .avatar-video {
  transform-origin: 50% 42%;
  animation: selene-listening-presence 7.2s ease-in-out infinite;
}
@keyframes selene-listening-presence {
  0%,100% { transform: translate3d(0,0,0) scale(1); }
  35% { transform: translate3d(-.18%,.08%,0) scale(1.003); }
  68% { transform: translate3d(.16%,-.08%,0) scale(1.006); }
}
@keyframes waiting-video-in { from { opacity: 0; } to { opacity: 1; } }
.waiting-jaw-layer {
  opacity: 0; pointer-events: none; transform-origin: 50% 51.5%;
  -webkit-mask-image: radial-gradient(ellipse 17% 8% at 50% 51.3%, #000 10%, rgba(0,0,0,.9) 42%, transparent 76%);
  mask-image: radial-gradient(ellipse 17% 8% at 50% 51.3%, #000 10%, rgba(0,0,0,.9) 42%, transparent 76%);
}
.waiting-mouth {
  position: absolute; z-index: 3; left: 50%; top: 51.7%; width: 13.4%; height: 2.5%;
  border-radius: 50%; opacity: 0; pointer-events: none; transform: translate(-50%,-50%);
  background:
    radial-gradient(ellipse at 50% 42%, rgba(42,13,22,.92) 0 18%, rgba(85,28,40,.78) 31%, transparent 61%),
    radial-gradient(ellipse at 50% 71%, rgba(196,102,114,.65) 0 20%, transparent 55%);
  filter: blur(.25px) saturate(.9);
  box-shadow: inset 0 -1px rgba(243,165,166,.28);
}
.portrait-glow {
  position: absolute; z-index: 2; width: 88px; aspect-ratio: 1; border-radius: 50%;
  opacity: .18; pointer-events: none; mix-blend-mode: screen;
  background: radial-gradient(circle, rgba(255,192,93,.62), rgba(233,110,35,.13) 35%, transparent 70%);
  filter: blur(7px); animation: portrait-firelight 1.8s ease-in-out infinite alternate;
}
.portrait-glow-left { left: 5%; top: 49%; animation-delay: -.7s; }
.portrait-glow-right { right: 4%; top: 53%; width: 62px; animation-duration: 1.35s; animation-delay: -1.1s; }
@keyframes portrait-firelight { to { opacity: .34; transform: scale(1.18) translateY(-2px); } }
.waiting-live {
  position: absolute; z-index: 8; top: 17%; right: -2%; display: grid; gap: 3px;
  padding: 9px 11px; border: 1px solid rgba(234,212,255,.16); border-radius: 10px;
  background: rgba(7,6,15,.5); backdrop-filter: blur(13px); box-shadow: 0 12px 35px rgba(0,0,0,.22);
  opacity: 0; transform: translateY(5px); transition: opacity .5s ease, transform .5s ease;
}
.waiting-live span { display: flex; align-items: center; gap: 7px; color: #f2e9f4; font-size: 10px; font-weight: 700; letter-spacing: .14em; }
.waiting-live span i { width: 6px; height: 6px; border-radius: 50%; background: #bd6381; box-shadow: 0 0 10px #bd6381; animation: live-dot 1.7s ease-in-out infinite; }
.waiting-live small { padding-left: 13px; color: #c1b4c3; font-size: 8px; letter-spacing: .07em; text-transform: uppercase; }
@keyframes live-dot { 50% { opacity: .38; } }
.queue-preview .local-avatar { animation: none; }
.queue-preview:not(.waiting-video-preview-ready) .waiting-jaw-layer,
.queue-preview:not(.waiting-video-preview-ready) .waiting-mouth { opacity: 0; animation: none; }
.queue-preview.waiting-video-preview-ready .local-avatar { opacity: 0; }
.session-active .waiting-session-video { display: none !important; }
.queue-preview .waiting-live { opacity: 1; transform: translateY(0); }
.queue-preview .reader-aura { animation-duration: 3.8s; }
@keyframes waiting-presence {
  0%,100% { transform: translate3d(0,0,0) scale(1); }
  28% { transform: translate3d(-.35%,.15%,0) scale(1.006); }
  61% { transform: translate3d(.28%,-.1%,0) scale(1.01); }
  82% { transform: translate3d(.08%,.18%,0) scale(1.004); }
}
@keyframes waiting-jaw {
  0%,8%,13%,18%,23%,32%,37%,43%,58%,64%,70%,80%,86%,100% { transform: translateY(0) scaleY(1); }
  10%,20%,34%,45%,60%,72%,82% { transform: translateY(1.1px) scaleY(1.008); }
  11%,21%,35%,47%,61%,74%,83% { transform: translateY(2px) scaleY(1.013); }
}
@keyframes waiting-mouth-speech {
  0%,8%,13%,18%,23%,32%,37%,43%,58%,64%,70%,80%,86%,100% { opacity: 0; transform: translate(-50%,-50%) scaleY(.2); }
  10%,20%,34%,45%,60%,72%,82% { opacity: .62; transform: translate(-50%,-50%) scale(.72,.5); }
  11%,21%,35%,47%,61%,74%,83% { opacity: .78; transform: translate(-50%,-50%) scale(1,.9); }
}
.avatar-resume-audio {
  position: absolute; z-index: 50; left: 50%; bottom: 16%; transform: translateX(-50%);
  min-height: 40px; padding: 0 15px; border: 1px solid rgba(238,218,255,.32); border-radius: 999px;
  color: #f4e9f7; background: rgba(24,14,37,.9); box-shadow: 0 15px 45px rgba(0,0,0,.45);
  backdrop-filter: blur(14px); pointer-events: auto; cursor: pointer; font-size: 10px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
}
.avatar-resume-audio span { margin-right: 6px; color: var(--gold); }
.presence-chip {
  position: absolute; left: 50%; bottom: 9%; transform: translateX(-50%);
  display: flex; gap: 8px; align-items: center; white-space: nowrap;
  padding: 7px 12px; border: 1px solid rgba(223,204,255,.15); border-radius: 999px;
  background: rgba(9,7,19,.55); backdrop-filter: blur(12px);
  color: #ddd4e2; font-size: 9px; letter-spacing: .13em; text-transform: uppercase;
}
.session-active .presence-chip i { background: #a8ba8c; }
.reader-stage.is-thinking .reader-aura { animation-duration: 1.1s; }

.sky-orbit {
  position: absolute; z-index: 7; inset: 8% -18% 12%; display: grid; place-items: center;
  color: var(--gold); opacity: .78; animation: sky-in 1.3s ease both;
  pointer-events: none;
}
@keyframes sky-in { from { opacity: 0; transform: scale(.75) rotate(-8deg); } }
.orbit-ring { position: absolute; border: 1px solid rgba(205,176,115,.36); border-radius: 50%; }
.ring-a { width: 92%; aspect-ratio: 1; animation: spin 30s linear infinite; }
.ring-b { width: 69%; aspect-ratio: 1; border-style: dashed; animation: spin 21s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.sun-glyph { position: absolute; top: 4%; font-size: 36px; text-shadow: 0 0 20px rgba(218,183,111,.5); }
.sky-moon {
  display: none; position: absolute; z-index: 2; top: 8%; right: 22%; width: 58px; aspect-ratio: 1;
  border-radius: 50%; border: 1px solid rgba(239,220,174,.52); background: #dac992;
  box-shadow: inset -8px 0 12px rgba(255,247,207,.14),0 0 28px rgba(218,195,137,.28);
  animation: sky-moon-breathe 3.2s ease-in-out infinite;
}
.sky-orbit[data-mode="current"] .sky-moon,
.sky-orbit[data-mode="current"] .sky-planet { display: grid; }
.sky-orbit[data-mode="current"] .sun-glyph { top: 8%; left: 24%; font-size: 25px; opacity: .76; }
.sky-moon.phase-new { background: #211b2a; box-shadow: inset 7px 0 10px rgba(218,201,146,.1),0 0 22px rgba(163,121,190,.18); }
.sky-moon.phase-waxing_crescent { background: radial-gradient(circle at 68% 50%,#dac992 0 43%,#211b2a 44%); }
.sky-moon.phase-first_quarter { background: linear-gradient(90deg,#211b2a 50%,#dac992 50%); }
.sky-moon.phase-waxing_gibbous { background: radial-gradient(circle at 28% 50%,#211b2a 0 27%,#dac992 29%); }
.sky-moon.phase-full { background: radial-gradient(circle at 38% 34%,#f1e3b8,#dac992 70%); }
.sky-moon.phase-waning_gibbous { background: radial-gradient(circle at 72% 50%,#211b2a 0 27%,#dac992 29%); }
.sky-moon.phase-last_quarter { background: linear-gradient(90deg,#dac992 50%,#211b2a 50%); }
.sky-moon.phase-waning_crescent { background: radial-gradient(circle at 32% 50%,#dac992 0 43%,#211b2a 44%); }
@keyframes sky-moon-breathe { 50% { transform: scale(1.07); filter: brightness(1.12); } }
.sky-planet {
  --angle: 0deg; --counter-angle: 0deg; display: none; position: absolute; z-index: 1; left: 50%; top: 50%; width: 22px; height: 22px;
  margin: -11px; place-items: center; border: 1px solid rgba(218,190,132,.26); border-radius: 50%;
  background: rgba(12,9,24,.78); color: #e2c987; font: 15px/1 serif;
  transform: rotate(var(--angle)) translateX(var(--radius)) rotate(var(--counter-angle));
  box-shadow: 0 0 15px rgba(199,161,99,.18); animation: planet-pulse 2.8s ease-in-out infinite alternate;
  opacity: .78;
}
@keyframes sky-fade-out { to { opacity: 0; filter: blur(5px); transform: scale(1.06); } }
.sky-orbit.is-fading { animation: sky-fade-out 1.35s ease forwards; pointer-events: none; }
.planet-mercury { --radius: clamp(70px,12vw,130px); }
.planet-venus { --radius: clamp(92px,16vw,170px); animation-delay: -.5s; }
.planet-mars { --radius: clamp(112px,20vw,210px); animation-delay: -1s; }
.planet-jupiter { --radius: clamp(132px,24vw,250px); animation-delay: -1.5s; }
.planet-saturn { --radius: clamp(150px,28vw,285px); animation-delay: -2s; }
@keyframes planet-pulse { to { filter: brightness(1.45); box-shadow: 0 0 22px rgba(199,161,99,.36); } }
.sky-orbit p {
  position: absolute; right: -2%; top: 38%; margin: 0; text-align: center;
  padding: 10px 14px; border: 1px solid rgba(218,190,132,.25); border-radius: 14px;
  background: rgba(9,7,18,.48); backdrop-filter: blur(9px);
  font: italic 20px "Cormorant Garamond", serif; text-shadow: 0 2px 7px #000;
}
.sky-orbit p > span { display: block; color: #cbb47d; font: 700 8px Inter; letter-spacing: .16em; text-transform: uppercase; }
.sky-orbit p strong { display: block; font: 600 34px "Cormorant Garamond", serif; color: var(--ink); }
.sky-orbit p small { display: block; color: var(--muted); font: 9px Inter; letter-spacing: .12em; text-transform: uppercase; }
.sky-orbit p em { display: block; max-width: 180px; margin-top: 5px; color: #d5c8d7; font: italic 12px/1.2 "Cormorant Garamond",serif; }
.sky-orbit[data-mode="current"] p { right: 0; top: 42%; min-width: 168px; }

.table-scene {
  position: absolute; z-index: 10; left: -5%; right: -5%; bottom: -4vh; height: 37vh;
  transform-style: preserve-3d; transform: rotateX(54deg); transform-origin: center bottom;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(88,55,102,.5), transparent 46%),
    repeating-linear-gradient(89deg, transparent 0 90px, rgba(255,255,255,.015) 92px 93px),
    linear-gradient(90deg, #170d15, #271522 47%, #130b12);
  border-top: 1px solid rgba(229,199,155,.27);
  box-shadow: 0 -30px 90px rgba(0,0,0,.38), inset 0 16px 30px rgba(0,0,0,.34);
}
.table-edge { position: absolute; left: 0; right: 0; bottom: -3vh; height: 8vh; background: linear-gradient(#1b0f16,#0a0609); box-shadow: inset 0 1px rgba(215,177,107,.12); }
.table-card-area { position: absolute; inset: 5% 22% 18%; transform-style: preserve-3d; }
.table-tarot-card {
  --tx: 0px; --rot: 0deg;
  --card-accent: #5c4166;
  --card-halo: rgba(138,102,156,.22);
  position: absolute; left: calc(50% - clamp(49px, 4.7vw, 74px)); top: 2%;
  width: clamp(98px, 9.4vw, 148px); aspect-ratio: .62;
  padding: 6px; color: #231526; border-radius: 7px;
  background: linear-gradient(145deg,#ead9b6,#b99564);
  box-shadow: 0 18px 30px rgba(0,0,0,.46), inset 0 0 0 1px rgba(66,38,38,.4);
  transform: translateX(var(--tx)) rotateZ(var(--rot)) translateZ(6px);
  animation: deal-card .95s cubic-bezier(.18,.85,.24,1.03) both;
  animation-delay: calc(var(--deal-index) * .24s);
}
.table-tarot-card.suit-bastos { --card-accent: #8e3f2d; --card-halo: rgba(196,91,49,.24); }
.table-tarot-card.suit-copas { --card-accent: #7b2947; --card-halo: rgba(166,55,91,.22); }
.table-tarot-card.suit-espadas { --card-accent: #38566b; --card-halo: rgba(71,117,143,.22); }
.table-tarot-card.suit-oros { --card-accent: #80601d; --card-halo: rgba(184,142,46,.25); }
.table-tarot-card.deck-lenormand { --card-accent: #31574e; --card-halo: rgba(68,123,108,.24); background: linear-gradient(145deg,#e9ddbd,#aa8b5c); }
.deck-lenormand .card-face { background: radial-gradient(circle at 50% 35%, var(--card-halo), transparent 37%), repeating-linear-gradient(135deg,rgba(56,91,77,.035) 0 2px,transparent 2px 8px), linear-gradient(#f0e5ca,#d3b783); }
.deck-lenormand .card-symbol { font-family: "Segoe UI Symbol", "Cormorant Garamond", serif; }
.deck-lenormand .card-orientation { visibility: hidden; }
@keyframes deal-card {
  0% { opacity: 0; transform: translate(38vw, 32vh) rotateZ(28deg) translateZ(90px) scale(.82); }
  65% { opacity: 1; }
  100% { transform: translateX(var(--tx)) rotateZ(var(--rot)) translateZ(6px); }
}
.table-tarot-card:nth-child(1):nth-last-child(3) { --tx: clamp(-180px, -11vw, -105px); --rot: -7deg; }
.table-tarot-card:nth-child(2):nth-last-child(2) { --tx: 0px; --rot: 1deg; }
.table-tarot-card:nth-child(3):last-child { --tx: clamp(105px, 11vw, 180px); --rot: 7deg; }
.card-face {
  width: 100%; height: 100%; padding: 9px 7px; display: flex; flex-direction: column; align-items: center; text-align: center;
  border: 1px solid rgba(49,29,51,.57); background:
    radial-gradient(circle at 50% 35%, var(--card-halo), transparent 34%),
    linear-gradient(#eee1c5,#d9bd8c);
}
.card-face.reversed { transform: rotate(180deg); }
.card-number, .card-position { font-size: clamp(6px,.55vw,9px); letter-spacing: .12em; text-transform: uppercase; }
.card-symbol { font: 600 clamp(28px,3vw,48px) "Cormorant Garamond"; margin: auto 0 2px; color: var(--card-accent); text-shadow: 0 1px rgba(255,255,255,.35); }
.card-face h3 { margin: 2px 0; font: 600 clamp(13px,1.3vw,20px)/1 "Cormorant Garamond"; }
.card-face p { margin: 3px 0 auto; font-size: clamp(6px,.55vw,9px); line-height: 1.25; }
.card-orientation { color: var(--card-accent); font-size: clamp(5px,.48vw,8px); letter-spacing: .09em; margin-top: 3px; text-transform: uppercase; }
.deck-home {
  position: absolute; right: 13%; top: 12%; width: 7.5vw; max-width: 108px; min-width: 72px; aspect-ratio: .62;
  background: #171126; border: 2px solid #9e7d4b; border-radius: 7px; color: #c2a26c;
  display: grid; place-items: center; box-shadow: 8px 10px 0 #0b0811, 14px 17px 25px rgba(0,0,0,.5);
}
.deck-home::after { content: ""; position: absolute; inset: 7px; border: 1px solid #846f5e; }
.deck-home b { font: 42px "Cormorant Garamond"; }
.pendulum-tool {
  position: absolute; z-index: 8; left: 50%; top: -12%; width: clamp(220px,24vw,350px); height: 92%;
  transform: translateX(-50%); opacity: 0; transition: opacity .35s ease; pointer-events: none;
}
.pendulum-tool.is-active { opacity: 1; }
.pendulum-board {
  position: absolute; left: 50%; bottom: 3%; width: 88%; height: 43%; transform: translateX(-50%);
  display: flex; align-items: center; justify-content: space-around; padding: 0 14%;
  color: rgba(219,189,132,.72); border: 1px solid rgba(208,174,111,.38); border-radius: 50%;
  background: radial-gradient(circle,rgba(92,59,83,.52),rgba(18,11,21,.9) 68%), repeating-conic-gradient(from 0deg,rgba(219,187,125,.08) 0 1deg,transparent 1deg 30deg);
  box-shadow: inset 0 0 35px rgba(0,0,0,.62),0 15px 35px rgba(0,0,0,.38);
}
.pendulum-board::before,.pendulum-board::after { content:""; position:absolute; left:50%; top:10%; bottom:10%; width:1px; background:linear-gradient(transparent,rgba(210,177,117,.28),transparent); }
.pendulum-board::before { transform:rotate(60deg); }.pendulum-board::after { transform:rotate(-60deg); }
.pendulum-board i { font: 25px "Cormorant Garamond",serif; }.pendulum-board b { font: 18px Inter,sans-serif; color:#a98e63; }
.pendulum-chain {
  position: absolute; left: calc(50% - 1px); top: -2%; width: 2px; height: 70%;
  transform: rotateX(-54deg); transform-origin: 50% 0;
  background: linear-gradient(#ae9469,#e3c98f 45%,#796141); filter: drop-shadow(0 4px 5px #000);
}
.pendulum-chain i {
  position:absolute; left:50%; bottom:-13px; width:22px; height:31px; transform:translateX(-50%);
  clip-path:polygon(50% 0,88% 34%,68% 100%,32% 100%,12% 34%);
  background:linear-gradient(110deg,#4e345a,#c49bd1 48%,#4b3357); box-shadow:0 0 18px rgba(188,135,207,.5);
}
.pendulum-tool.is-active[data-motion="circle"] .pendulum-chain { animation: pendulum-circle 1.7s ease-in-out 1 both; }
.pendulum-tool.is-active[data-motion="lateral"] .pendulum-chain { animation: pendulum-lateral 1.7s ease-in-out 1 both; }
.pendulum-tool.is-active[data-motion="still"] .pendulum-chain { animation: pendulum-still 1.7s ease-out 1 both; }
@keyframes pendulum-circle {
  0% { transform:rotateX(-54deg) rotateZ(0deg); }
  18% { transform:rotateX(-54deg) rotateZ(-13deg) translateX(-5px); }
  43% { transform:rotateX(-54deg) rotateZ(11deg) translateX(5px); }
  69% { transform:rotateX(-54deg) rotateZ(-8deg) translateX(-3px); }
  100% { transform:rotateX(-54deg) rotateZ(4deg); }
}
@keyframes pendulum-lateral {
  0%,100% { transform:rotateX(-54deg) rotateZ(0deg); }
  22% { transform:rotateX(-54deg) rotateZ(-17deg); }
  48% { transform:rotateX(-54deg) rotateZ(17deg); }
  73% { transform:rotateX(-54deg) rotateZ(-10deg); }
}
@keyframes pendulum-still { 0% { transform:rotateX(-54deg) rotateZ(5deg); } 100% { transform:rotateX(-54deg) rotateZ(0deg); } }
.pendulum-tool p {
  position:absolute; left:50%; bottom:-3%; transform:translateX(-50%); width:100%; margin:0; text-align:center;
  color:#cdb58a; font:600 clamp(8px,.7vw,11px) Inter,sans-serif; letter-spacing:.14em; text-transform:uppercase; text-shadow:0 2px 4px #000;
}
.candle { position: absolute; top: 8%; transform: rotateX(-54deg); transform-origin: bottom; }
.candle-left { left: 9%; } .candle-right { right: 6%; }
.candle span { display: block; width: 18px; height: 72px; border-radius: 7px 7px 2px 2px; background: linear-gradient(90deg,#806a51,#e4c79a,#6f5945); box-shadow: 0 0 20px rgba(236,183,94,.2); }
.candle i { display: block; margin: 0 auto -2px; width: 10px; height: 23px; border-radius: 80% 20% 55% 45%; transform-origin: 50% 100%; background: radial-gradient(ellipse at 50% 74%,#fff9cc 0 13%,#ffd06f 37%,#ec7d2f 66%,transparent 70%); box-shadow: 0 0 25px 8px rgba(244,176,68,.42); animation: flame 1.1s ease-in-out infinite alternate; }
.candle-right i { animation-duration: 1.37s; animation-delay: -.7s; }
@keyframes flame {
  0% { transform: skewX(-4deg) scale(.94,1.05); filter: brightness(.9); }
  42% { transform: translateX(1px) skewX(8deg) scale(1.04,.86); filter: brightness(1.18); }
  100% { transform: translateX(-1px) skewX(-7deg) scale(.91,1.1); filter: brightness(1); }
}
.crystal-cluster { position: absolute; left: 16%; top: 50%; display: flex; align-items: end; gap: 4px; }
.crystal-cluster i { width: 13px; height: 42px; clip-path: polygon(50% 0,100% 30%,85% 100%,12% 100%,0 30%); background: linear-gradient(110deg,#684d6b,#cbaed7,#4b3958); opacity: .7; }
.crystal-cluster i:nth-child(2){ height: 58px; }.crystal-cluster i:nth-child(3){ height: 31px; }

.oracle-interface { position: absolute; z-index: 38; inset: 0; pointer-events: none; }
.chat-toggle-button {
  position: absolute; z-index: 42; right: clamp(18px,3vw,46px); bottom: max(42px,env(safe-area-inset-bottom));
  width: 54px; height: 54px; display: grid; place-items: center; border: 1px solid rgba(225,205,255,.24);
  border-radius: 50%; background: rgba(10,8,21,.82); color: #e8dcef; cursor: pointer;
  box-shadow: 0 14px 40px rgba(0,0,0,.42); backdrop-filter: blur(16px); pointer-events: auto;
}
.chat-toggle-button svg { width: 25px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.chat-toggle-button[aria-expanded="true"] { color: var(--gold); border-color: rgba(204,172,105,.42); }
.chat-unread {
  position: absolute; right: -2px; top: -3px; min-width: 18px; height: 18px; padding: 0 4px;
  display: grid; place-items: center; border: 2px solid #0b0816; border-radius: 999px;
  background: #ba6684; color: white; font-size: 9px; font-weight: 700;
}
.chat-drawer {
  position: absolute; z-index: 41; top: 76px; right: clamp(18px,3vw,46px); bottom: 112px;
  width: min(390px,calc(100vw - 36px)); display: grid; grid-template-rows: auto minmax(0,1fr) auto auto;
  overflow: hidden; border: 1px solid rgba(225,205,255,.22); border-radius: 18px;
  background: linear-gradient(145deg,rgba(8,6,17,.93),rgba(24,16,36,.88));
  box-shadow: 0 26px 90px rgba(0,0,0,.64); backdrop-filter: blur(22px); pointer-events: auto;
  animation: chat-drawer-in .35s cubic-bezier(.2,.75,.2,1) both;
}
@keyframes chat-drawer-in { from { opacity: 0; transform: translateX(18px) scale(.98); } }
.chat-drawer-header { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px 8px; }
.chat-drawer-header span { display: flex; align-items: center; gap: 7px; color: #b9abbf; font-size: 8px; letter-spacing: .18em; }
.chat-drawer-header span i { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px rgba(201,169,104,.6); }
.chat-drawer-header button { width: 30px; height: 30px; border: 0; background: transparent; color: #aaa0af; font-size: 22px; cursor: pointer; }
.selene-caption {
  position: relative; padding: 12px 48px 11px 14px; border-top: 1px solid rgba(225,205,255,.12);
  background: linear-gradient(115deg, rgba(9,7,20,.78), rgba(23,16,37,.55));
}
.caption-name { display: flex; align-items: center; gap: 7px; color: var(--gold); font-size: 8px; letter-spacing: .2em; }
.caption-name i { background: #aa9a6f; }
.selene-caption p { margin: 5px 0 0; font: italic 17px/1.25 "Cormorant Garamond", serif; text-shadow: 0 1px 4px #000; }
.sound-button {
  position: absolute; top: 50%; right: 13px; transform: translateY(-50%); width: 29px; height: 29px;
  border-radius: 50%; border: 1px solid var(--line); background: rgba(255,255,255,.04); cursor: pointer;
}
.oracle-form {
  min-height: 54px; display: grid; grid-template-columns: 1fr 42px; align-items: end; gap: 5px;
  margin: 0; padding: 7px; border-top: 1px solid rgba(223,205,255,.15); background: rgba(8,6,17,.48);
}
.oracle-form textarea {
  width: 100%; max-height: 100px; min-height: 40px; resize: none; padding: 10px 7px;
  border: 0; outline: 0; color: var(--ink); background: transparent; line-height: 1.3;
}
.oracle-form textarea::placeholder { color: #8f8496; }
.send-button { width: 40px; height: 40px; border: 0; border-radius: 13px; cursor: pointer; }
.send-button { background: #e2d3ef; color: #23172c; font-size: 22px; }
.send-button:disabled { opacity: .4; cursor: wait; }
.voice-button {
  position: absolute; z-index: 42; left: 50%; bottom: max(35px,env(safe-area-inset-bottom)); transform: translateX(-50%);
  min-width: 158px; min-height: 58px; display: grid; grid-template-columns: 34px 1fr; grid-template-rows: 1fr 1fr;
  column-gap: 10px; align-items: center; padding: 8px 18px 8px 13px; border: 1px solid rgba(232,213,255,.31);
  border-radius: 999px; background: linear-gradient(135deg,rgba(226,211,239,.96),rgba(196,166,222,.92));
  color: #24172c; box-shadow: 0 16px 55px rgba(0,0,0,.5),0 0 28px rgba(163,111,197,.18);
  cursor: pointer; pointer-events: auto; touch-action: none; user-select: none; -webkit-user-select: none;
}
.voice-button svg { grid-row: 1 / -1; width: 30px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.voice-button .mic-label { align-self: end; text-align: left; font-size: 13px; font-weight: 700; }
.voice-button small { align-self: start; color: rgba(36,23,44,.68); font-size: 8px; white-space: nowrap; }
.voice-button.is-listening { min-width: 244px; color: #fff2f3; background: linear-gradient(135deg,#9d4d68,#6f3655); animation: listening-pulse 1.05s ease-in-out infinite; }
.voice-button.is-listening small { color: rgba(255,242,243,.72); }
.voice-button:disabled { opacity: .55; cursor: wait; }
.voice-wave {
  position: absolute; inset: auto 17px 9px 56px; height: 16px; display: flex; align-items: center; justify-content: center; gap: 3px;
  opacity: 0; pointer-events: none; transition: opacity .18s ease;
}
.voice-wave i { width: 3px; height: 3px; min-height: 3px; max-height: 15px; border-radius: 999px; background: rgba(255,245,246,.92); transition: height .08s linear; }
.voice-button.is-listening .voice-wave { opacity: 1; }
.voice-button.is-listening #mic-hint { opacity: 0; }
.voice-button.is-locked { opacity: .26; pointer-events: none; }
.voice-locked-controls {
  position: absolute; z-index: 43; left: 50%; bottom: max(31px,env(safe-area-inset-bottom)); transform: translateX(-50%);
  min-width: 310px; min-height: 58px; display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center;
  padding: 7px 9px; border: 1px solid rgba(232,213,255,.3); border-radius: 999px;
  background: rgba(18,11,28,.94); box-shadow: 0 18px 60px rgba(0,0,0,.55); backdrop-filter: blur(16px);
}
.voice-locked-controls span { display: flex; align-items: center; justify-content: center; gap: 7px; color: #ecdce8; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.voice-locked-controls span i { width: 7px; height: 7px; border-radius: 50%; background: #d26987; box-shadow: 0 0 12px #d26987; animation: pulse 1s infinite; }
.voice-locked-controls button { min-height: 40px; padding: 0 13px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.04); cursor: pointer; font-size: 10px; }
.voice-locked-controls #voice-send-btn { background: #e2d3ef; color: #24172c; font-weight: 700; }
.oracle-note { position: absolute; z-index: 31; bottom: 14px; left: 50%; transform: translateX(-50%); width: min(520px,calc(100vw - 150px)); margin: 0; text-align: center; color: #80768a; font-size: 8px; letter-spacing: .09em; }
.conversation-memory {
  min-height: 0; padding: 4px 13px 11px; overflow-y: auto; display: flex; flex-direction: column; gap: 7px;
}
.memory-line { margin: 0; padding: 8px 11px; border-left: 1px solid rgba(205,177,229,.26); color: #c4b9c7; font: 14px/1.35 "Cormorant Garamond"; }
.memory-line[data-role="guest"] { margin-left: 22px; border-left-color: rgba(201,169,104,.38); color: #ddd2df; }
.memory-line strong { display: block; margin-bottom: 3px; color: #a89bab; font: 7px Inter; letter-spacing: .14em; }

.birth-data-card {
  position: absolute; z-index: 45; right: clamp(20px,5vw,80px); top: 50%; transform: translateY(-50%);
  width: min(380px, calc(100vw - 40px)); padding: 25px;
  background: rgba(12,9,24,.91); border: 1px solid rgba(216,190,255,.24); border-radius: 18px;
  backdrop-filter: blur(22px); box-shadow: 0 25px 90px #000; animation: overlay-in .55s ease both;
}
@keyframes overlay-in { from { opacity: 0; transform: translateY(-46%) translateX(20px); } }
.birth-data-card h2 { margin: 5px 0 8px; font: 600 30px/1 "Cormorant Garamond"; }
.birth-data-card > p:not(.eyebrow) { margin: 0 0 18px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.birth-data-card form { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.birth-data-card label { display: grid; gap: 5px; color: #b7adba; font-size: 9px; text-transform: uppercase; letter-spacing: .1em; }
.birth-data-card .place-field, .birth-data-card .ritual-button { grid-column: 1 / -1; }
.birth-data-card input { min-width: 0; padding: 11px; border: 1px solid var(--line); border-radius: 9px; background: #0b0917; color: var(--ink); color-scheme: dark; }
.current-location-card form { grid-template-columns: 1fr; }
.location-privacy { grid-column: 1 / -1; color: #7f7586; font-size: 8px; line-height: 1.4; text-transform: none; letter-spacing: 0; }
.overlay-close { position: absolute; right: 13px; top: 12px; border: 0; background: transparent; font-size: 24px; color: var(--muted); cursor: pointer; }

.queue-panel {
  position: absolute; z-index: 35; left: clamp(18px,4.5vw,72px); bottom: clamp(22px,5vh,58px);
  width: min(520px, calc(100vw - 36px)); padding: 23px;
  background: linear-gradient(130deg, rgba(10,8,21,.88), rgba(28,18,36,.7));
  border: 1px solid rgba(228,207,255,.2); border-radius: 22px; backdrop-filter: blur(22px);
  box-shadow: 0 24px 90px rgba(0,0,0,.5);
}
.queue-intro h2 { margin: 5px 0 6px; font: 600 clamp(28px,3vw,42px)/.95 "Cormorant Garamond"; }
.oracle-claim {
  display: inline-flex; margin: 0 0 9px !important; padding: 5px 9px; border: 1px solid rgba(211,181,238,.28);
  border-radius: 999px; color: #eadcf2 !important; background: linear-gradient(90deg,rgba(129,87,154,.24),rgba(194,156,93,.12));
  font: 600 8px/1.2 Inter,sans-serif !important; letter-spacing: .105em; text-transform: uppercase;
  box-shadow: 0 0 24px rgba(153,98,184,.12);
}
:lang(ja) .queue-intro h2 { font-size: clamp(22px,2.2vw,29px); line-height: 1.06; white-space: nowrap; }
:lang(ko) .queue-intro h2 { font-size: clamp(25px,2.5vw,33px); line-height: 1.06; word-break: keep-all; }
:lang(ja) .access-card h3 { font-size: 18px; line-height: 1.08; white-space: nowrap; }
:lang(ko) .access-card h3 { font-size: 20px; line-height: 1.08; word-break: keep-all; }
.queue-intro > p:not(.eyebrow) { margin: 0; max-width: 440px; color: var(--muted); font: 15px/1.35 "Cormorant Garamond"; }
.market-selector { display: grid; grid-template-columns: auto minmax(150px,230px); gap: 10px; align-items: center; margin-top: 11px; color: #9e94a3; font-size: 8px; letter-spacing: .14em; }
.market-selector select { width: 100%; border: 1px solid var(--line); border-radius: 999px; padding: 7px 27px 7px 11px; background: rgba(11,8,20,.78); color: #eee6f3; font: 10px "Inter",sans-serif; }
.eyebrow, .card-kicker { margin: 0; color: var(--gold); font-size: 8px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; }
.room-meter { display: flex; align-items: center; gap: 10px; margin-top: 15px; padding-top: 13px; border-top: 1px solid var(--line); }
.room-meter > i { background: #b0a175; }
.room-meter span, .room-meter strong, .room-meter small { display: block; }
.room-meter strong { color: #ded4e2; font-size: 10px; font-weight: 500; }
.room-meter small { margin-top: 3px; color: #8e8392; font-size: 8px; }
.access-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 15px; }
.access-card { min-width: 0; padding: 15px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.025); }
.paid-access { background: linear-gradient(145deg, rgba(129,92,156,.17), rgba(255,255,255,.02)); }
.free-access.sponsored-hour-active {
  position: relative; overflow: hidden; border-color: rgba(204,170,104,.62);
  background: linear-gradient(145deg, rgba(105,69,133,.2), rgba(185,137,66,.1));
  box-shadow: 0 0 35px rgba(194,145,72,.18), inset 0 0 30px rgba(154,96,183,.1);
}
.free-access.sponsored-hour-active::after {
  content: ""; position: absolute; z-index: 0; inset: -75% -55%; pointer-events: none;
  background: linear-gradient(108deg, transparent 40%, rgba(255,241,192,.02) 44%, rgba(255,230,160,.4) 49%, rgba(211,170,247,.14) 53%, transparent 59%);
  transform: translateX(-60%) rotate(6deg); animation: sponsored-magic-shimmer 3.2s ease-in-out infinite;
}
.free-access.sponsored-hour-active > * { position: relative; z-index: 1; }
.free-live-badge {
  display: inline-flex; width: fit-content; margin: 7px 0 0; padding: 5px 8px; border: 1px solid rgba(237,205,135,.5);
  border-radius: 999px; background: rgba(194,139,57,.14); color: #f3d99c;
  font: 700 7px/1.2 Inter,sans-serif; letter-spacing: .13em; text-transform: uppercase;
  animation: sponsored-live-pulse 1.7s ease-in-out infinite;
}
.free-access.sponsored-hour-active .ghost-button {
  border-color: rgba(239,211,151,.62); color: #27192d;
  background: linear-gradient(100deg,#dfcaeb,#f2d997,#d5bee8); background-size: 220% 100%;
  animation: sponsored-button-glow 2.25s ease-in-out infinite;
}
.free-access.sponsored-hour-active .ad-track i { box-shadow: 0 0 9px rgba(239,202,126,.75); }
@keyframes sponsored-magic-shimmer { 0%,52% { transform: translateX(-62%) rotate(6deg); opacity: 0; } 64% { opacity: 1; } 100% { transform: translateX(62%) rotate(6deg); opacity: 0; } }
@keyframes sponsored-live-pulse { 50% { transform: scale(1.025); border-color: rgba(255,229,173,.88); box-shadow: 0 0 17px rgba(235,183,86,.27); } }
@keyframes sponsored-button-glow { 0%,100% { background-position: 0 50%; box-shadow: 0 0 0 rgba(235,199,120,0); } 50% { background-position: 100% 50%; box-shadow: 0 0 23px rgba(235,199,120,.3); } }
.paid-access.promotion-active {
  position: relative; overflow: hidden; border-color: rgba(225,190,113,.58);
  box-shadow: 0 0 34px rgba(191,137,69,.2), inset 0 0 28px rgba(153,92,178,.08);
}
.paid-access.promotion-active::after {
  content: ""; position: absolute; z-index: 0; inset: -70% -45%; pointer-events: none;
  background: linear-gradient(105deg, transparent 39%, rgba(255,241,193,.03) 44%, rgba(255,238,184,.42) 49%, rgba(222,181,255,.16) 53%, transparent 59%);
  transform: translateX(-55%) rotate(5deg); animation: paid-magic-shimmer 3.8s ease-in-out infinite;
}
.paid-access.promotion-active > * { position: relative; z-index: 1; }
.paid-promo-badge {
  display: inline-flex; margin: 6px 0 1px; padding: 5px 8px; border: 1px solid rgba(238,205,135,.46);
  border-radius: 999px; background: rgba(202,155,72,.12); color: #f1d79c;
  font: 700 7px/1.2 Inter,sans-serif; letter-spacing: .12em; text-transform: uppercase;
  animation: paid-badge-pulse 2.2s ease-in-out infinite;
}
.paid-regular-price { display: inline-block; margin: 5px 7px 0 0; color: #8f8494; font: 500 11px Inter,sans-serif; text-decoration: line-through; }
.paid-access.promotion-active .access-price { display: inline-block; color: #f1d58f; font-size: 23px; text-shadow: 0 0 18px rgba(240,198,111,.3); }
.paid-access.promotion-active .ritual-button { background: linear-gradient(100deg,#e2d1ed,#f4dc9f,#d9c2e9); background-size: 210% 100%; animation: paid-button-glow 2.6s ease-in-out infinite; }
@keyframes paid-magic-shimmer { 0%,55% { transform: translateX(-60%) rotate(5deg); opacity: 0; } 66% { opacity: 1; } 100% { transform: translateX(58%) rotate(5deg); opacity: 0; } }
@keyframes paid-badge-pulse { 50% { border-color: rgba(255,227,163,.8); box-shadow: 0 0 15px rgba(227,179,91,.22); } }
@keyframes paid-button-glow { 0%,100% { background-position: 0 50%; box-shadow: 0 0 0 rgba(235,199,120,0); } 50% { background-position: 100% 50%; box-shadow: 0 0 22px rgba(235,199,120,.25); } }
.paid-credit-note {
  grid-column: 1 / -1; display: block; margin: 4px 0 8px; padding: 7px 9px; border: 1px solid rgba(222,188,119,.34);
  border-radius: 9px; background: rgba(210,172,99,.1); color: #ead19b; font-size: 8px;
  line-height: 1.35; letter-spacing: .04em; animation: credit-pulse 1.8s ease-in-out infinite;
}
.paid-access.has-credit { border-color: rgba(222,188,119,.52); box-shadow: 0 0 28px rgba(195,151,81,.12); }
@keyframes credit-pulse { 50% { border-color: rgba(239,210,148,.68); background: rgba(210,172,99,.16); } }
.access-card h3 { margin: 12px 0 1px; font: 600 25px "Cormorant Garamond"; }
.access-price { display: block; margin: 2px 0 11px; color: var(--gold); font: 600 18px "Cormorant Garamond"; }
.access-card p { min-height: 30px; margin: 0 0 11px; color: #9e94a3; font-size: 9px; line-height: 1.45; }
.access-benefits { display: grid; gap: 4px; min-height: 50px; margin: 0 0 11px; padding: 0; list-style: none; color: #c8bdcd; font-size: 8px; }
.access-benefits li::before { content: "✦"; margin-right: 5px; color: var(--gold); }
.access-card .free-mode-note { min-height: 0; margin: 0 0 5px; color: #ded3e4; font-size: 8px; line-height: 1.35; }
.free-mode-note.is-live { color: #e6d8aa; }
.free-promo-hours { display: block; min-height: 22px; margin-bottom: 8px; color: #8f8495; font-size: 7px; line-height: 1.35; }
.ritual-button, .ghost-button {
  width: 100%; min-height: 40px; padding: 0 12px; display: flex; align-items: center; justify-content: space-between;
  border-radius: 10px; cursor: pointer; font-size: 10px; font-weight: 600;
}
.ritual-button { border: 0; background: #e0d0ec; color: #25182c; }
.ghost-button { border: 1px solid var(--line); background: rgba(255,255,255,.035); }
.ritual-button:disabled, .ghost-button:disabled { opacity: .45; cursor: wait; }
@media (prefers-reduced-motion: reduce) {
  .paid-access.promotion-active::after, .paid-promo-badge, .paid-access.promotion-active .ritual-button,
  .free-access.sponsored-hour-active::after, .free-live-badge, .free-access.sponsored-hour-active .ghost-button { animation: none; }
}
.ad-track { height: 2px; margin: -3px 0 11px; background: rgba(255,255,255,.09); }
.ad-track i { display: block; width: 0; height: 100%; background: var(--gold); transition: width .4s; }
.legal-note { display: block; margin-top: 12px; color: #766d7c; font-size: 7px; line-height: 1.4; }
.privacy-link { display: inline-block; margin-top: 5px; color: #9d8ca8; font-size: 7px; text-underline-offset: 3px; }
.memory-settings-button {
  width: 100%; display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; margin-top: 10px; padding: 9px 11px;
  border: 1px solid rgba(225,205,255,.13); border-radius: 12px; background: rgba(255,255,255,.018); color: #b8acbc; cursor: pointer; text-align: left;
}
.memory-settings-button > span:first-child { color: var(--gold); }
.memory-settings-button span b, .memory-settings-button span small { display: block; }
.memory-settings-button span b { font-size: 9px; font-weight: 500; }
.memory-settings-button span small { margin-top: 2px; color: #817687; font-size: 7px; }
.memory-settings-button > b { color: #9f8fa7; font-size: 8px; font-weight: 500; }
.memory-settings-button.is-enabled { border-color: rgba(201,169,104,.25); }
.memory-settings-button.is-enabled > span:first-child, .memory-settings-button.is-enabled span small { color: #c9a968; }
.queue-has-entry #profile-memory-btn { display: none; }

.memory-modal { position: fixed; z-index: 80; inset: 0; display: grid; place-items: center; padding: 18px; background: rgba(3,2,8,.72); backdrop-filter: blur(12px); }
.memory-shell {
  position: relative; width: min(520px,100%); max-height: min(760px,calc(100svh - 36px)); overflow: auto; padding: 28px;
  border: 1px solid rgba(222,199,245,.23); border-radius: 22px; background: linear-gradient(145deg,rgba(14,10,28,.98),rgba(29,18,38,.96));
  box-shadow: 0 28px 110px #000;
}
.memory-shell h2 { margin: 7px 0 9px; font: 600 34px/1 "Cormorant Garamond",serif; }
.memory-shell > p:not(.eyebrow) { margin: 0 0 18px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.memory-shell form { display: grid; gap: 12px; }
.memory-shell form > label:not(.memory-consent-choice), .memory-step > label:not(.memory-consent-choice) { display: grid; gap: 6px; color: #b7adba; font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.memory-shell input[type="text"], .memory-shell input[type="date"], .memory-shell select, .memory-shell textarea { width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: #0b0917; color: var(--ink); color-scheme: dark; font: 12px Inter,sans-serif; }
.memory-shell textarea { min-height: 72px; resize: vertical; }
.intake-topics { display: flex; flex-wrap: wrap; gap: 7px; margin: 0; padding: 0; border: 0; }
.intake-topics legend { width: 100%; margin-bottom: 2px; color: #b7adba; font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.intake-topics label { cursor: pointer; }
.intake-topics input { position: absolute; opacity: 0; pointer-events: none; }
.intake-topics span { display: block; padding: 9px 11px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.025); color: #bdb1c2; font-size: 10px; transition: .2s ease; }
.intake-topics input:checked + span { border-color: rgba(220,185,237,.55); background: rgba(136,87,157,.28); color: #fff2ff; box-shadow: 0 0 18px rgba(185,116,205,.14); }
.intake-family-names { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.intake-family-names label { display: grid; gap: 6px; color: #b7adba; font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.memory-consent-choice { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; padding: 12px; border: 1px solid rgba(225,205,255,.12); border-radius: 12px; color: #b8adbc; font-size: 10px; line-height: 1.45; }
.memory-consent-choice input { width: 17px; height: 17px; accent-color: #9d648c; }
.memory-wait-clock { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 12px 0 10px; padding: 9px 12px; border: 1px solid rgba(222,193,244,.2); border-radius: 12px; background: rgba(125,78,151,.1); }
.memory-wait-clock span { color: #ae9bb6; font-size: 7px; letter-spacing: .16em; }
.memory-wait-clock strong { color: #f0e5f2; font: 600 23px/1 "Cormorant Garamond",serif; }
.memory-progress { height: 2px; margin: 0 0 7px; overflow: hidden; border-radius: 99px; background: rgba(255,255,255,.08); }
.memory-progress i { display: block; width: 14%; height: 100%; background: linear-gradient(90deg,#b67bba,#dfc17f); transition: width .35s ease; }
.memory-step-label { display: block; margin: 0 0 13px; color: #87798d; font-size: 7px; letter-spacing: .12em; text-transform: uppercase; }
.memory-step { min-height: 122px; animation: memory-step-in .28s ease both; }
@keyframes memory-step-in { from { opacity: 0; transform: translateX(9px); } }
.memory-wizard-actions { display: grid; grid-template-columns: 1fr 1fr 1.45fr; gap: 8px; margin-top: 2px; }
.memory-wizard-actions button { min-height: 46px; }
.memory-action-button {
  padding: 0 13px; border: 1px solid rgba(220,197,236,.25); border-radius: 10px;
  background: rgba(255,255,255,.035); color: #d0c3d4; font-size: 10px; font-weight: 600;
  cursor: pointer; transition: border-color .18s ease,background .18s ease,transform .18s ease;
}
.memory-action-button:hover, .memory-action-button:focus-visible {
  border-color: rgba(229,203,244,.55); background: rgba(143,96,166,.16); transform: translateY(-1px);
}
.memory-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 13px; }
.memory-footer .quiet-button { padding-left: 0; }
.memory-footer a { font-size: 8px; }
.memory-shell > small { display: block; margin-top: 13px; color: #85798a; font-size: 8px; line-height: 1.5; }
.memory-shell a { color: #c4accf; }

.legal-page { min-height: 100%; overflow: auto; background: radial-gradient(circle at 70% 0,rgba(99,63,122,.22),transparent 34%),#090713; }
.legal-document { width: min(820px,calc(100% - 32px)); margin: 0 auto; padding: 48px 0 80px; }
.legal-document .brand { margin-bottom: 38px; }
.legal-document article { padding: clamp(22px,5vw,48px); border: 1px solid var(--line); border-radius: 24px; background: rgba(15,11,28,.76); box-shadow: 0 25px 90px rgba(0,0,0,.35); }
.legal-document h1 { margin: 5px 0 8px; font: 600 clamp(38px,7vw,62px)/.95 "Cormorant Garamond",serif; }
.legal-document h2 { margin: 28px 0 8px; color: #e9deec; font: 600 25px "Cormorant Garamond",serif; }
.legal-document p, .legal-document li { color: #bfb4c2; font-size: 13px; line-height: 1.7; }
.legal-document a { color: #d2b9df; }
.legal-document .legal-back { display: inline-block; margin-top: 26px; color: #d8c4e2; }
.queue-state-panel { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; margin-top: 15px; }
.waiting-entry-alert {
  grid-column: 1 / -1; position: relative; display: grid; justify-items: center; gap: 3px;
  width: 100%; padding: 12px 14px 11px; overflow: hidden;
  border-bottom: 1px solid rgba(222,185,239,.3);
  background: linear-gradient(120deg,rgba(78,36,99,.38),rgba(15,9,27,.16) 52%,rgba(113,63,87,.24));
  text-align: center;
}
.waiting-entry-alert::after {
  content: ""; position: absolute; inset: -1px; pointer-events: none;
  background: linear-gradient(105deg,transparent 20%,rgba(245,221,255,.13) 43%,transparent 66%);
  transform: translateX(-120%); animation: waiting-alert-sheen 3.2s ease-in-out infinite;
}
.waiting-entry-alert > span { display: flex; gap: 5px; height: 5px; align-items: center; }
.waiting-entry-alert > span i { width: 5px; height: 5px; border-radius: 50%; background: #d598be; box-shadow: 0 0 10px rgba(213,152,190,.8); animation: waiting-alert-dot 1.35s ease-in-out infinite; }
.waiting-entry-alert > span i:nth-child(2) { animation-delay: .18s; }
.waiting-entry-alert > span i:nth-child(3) { animation-delay: .36s; }
.waiting-entry-alert strong { color: #fff5ff; font: 700 14px/1.1 Inter,sans-serif; letter-spacing: .16em; }
.waiting-entry-alert small { color: #d8cadc; font-size: 9px; letter-spacing: .035em; }
.queue-ready .waiting-entry-alert { display: none; }
@keyframes waiting-alert-dot { 0%,100% { opacity: .32; transform: translateY(1px); } 50% { opacity: 1; transform: translateY(-1px); } }
@keyframes waiting-alert-sheen { 0%,55% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
.queue-sigil { width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--gold); font-size: 28px; }
.queue-state-panel h3 { margin: 3px 0; font: 600 26px "Cormorant Garamond"; }
.queue-state-panel p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: 10px; }
.queue-numbers { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: 11px; }
.queue-numbers span { padding: 9px 12px; }.queue-numbers span + span { border-left: 1px solid var(--line); }
.queue-numbers small, .queue-numbers b { display: block; }
.queue-numbers small { color: #867d8a; font-size: 7px; letter-spacing: .1em; }.queue-numbers b { margin-top: 3px; font: 600 18px "Cormorant Garamond"; }
.wait-countdown {
  grid-column: 1 / -1; display: grid; justify-items: center; gap: 0; padding: 0; overflow: hidden;
  border: 1px solid rgba(220,193,243,.31); border-radius: 14px;
  background: radial-gradient(circle at 50% 0,rgba(138,91,169,.24),transparent 62%),rgba(7,5,15,.72);
  box-shadow: inset 0 0 28px rgba(164,111,197,.08),0 10px 30px rgba(0,0,0,.22);
}
.wait-countdown-core { width: 100%; padding: 12px 14px 11px; display: grid; justify-items: center; gap: 3px; }
.wait-countdown-core > small { color: #cbbbd2; font-size: 7px; font-weight: 600; letter-spacing: .18em; }
.wait-countdown-core > strong { color: #f3e8f6; font: 600 clamp(42px,6vw,66px)/.9 "Cormorant Garamond"; letter-spacing: .035em; font-variant-numeric: tabular-nums; text-shadow: 0 0 25px rgba(205,160,232,.3); }
.wait-countdown[data-near-phase]:not([data-near-phase=""]) .wait-countdown-core > strong { font-size: clamp(22px,3.2vw,34px); line-height: 1; text-align: center; }
.wait-countdown-core > span { color: #a99eaf; font-size: 8px; text-align: center; }
.wait-progress { width: 100%; height: 3px; margin-top: 7px; overflow: hidden; border-radius: 99px; background: rgba(255,255,255,.08); }
.wait-progress i { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#8660a0,#d0b271); box-shadow: 0 0 12px rgba(211,179,113,.55); transition: width 1s linear; }
.waiting-intake-card {
  grid-column: 1 / -1; position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 11px; align-items: center;
  width: 100%; padding: 13px; overflow: hidden; border: 1px solid rgba(210,174,231,.36); border-radius: 14px;
  background: linear-gradient(120deg,rgba(113,68,137,.22),rgba(10,7,20,.82)); color: #eee3f1; cursor: pointer; text-align: left;
  box-shadow: 0 0 24px rgba(176,104,201,.1); animation: intake-breathe 2.6s ease-in-out infinite;
}
.waiting-intake-card > span:nth-child(2), .waiting-intake-card small, .waiting-intake-card strong, .waiting-intake-card em { display: block; }
.waiting-intake-orbit { width: 35px; height: 35px; display: grid; place-items: center; border: 1px solid rgba(215,181,231,.34); border-radius: 50%; color: var(--gold); }
.waiting-intake-card small { color: var(--gold); font-size: 7px; letter-spacing: .17em; }
.waiting-intake-card strong { margin-top: 2px; font: 600 19px "Cormorant Garamond"; }
.waiting-intake-card em { margin-top: 2px; color: #a99cae; font-size: 8px; font-style: normal; }
.waiting-intake-card > b { color: #d8c2e1; }
.waiting-intake-card.is-complete { animation: none; border-color: rgba(201,169,104,.33); }
@keyframes intake-breathe { 50% { border-color: rgba(230,198,245,.62); box-shadow: 0 0 32px rgba(185,113,207,.2); transform: translateY(-1px); } }
.queue-state-panel .ritual-button, .queue-state-panel .quiet-button { grid-column: 1 / -1; }
.queue-ready .queue-panel { animation: room-ready-panel 1.25s ease-in-out infinite alternate; }
.queue-ready #claim-btn {
  position: relative; overflow: hidden; min-height: 58px;
  box-shadow: 0 0 28px rgba(214,183,231,.28),0 14px 35px rgba(0,0,0,.26);
}
.queue-ready #claim-btn::after {
  content: ""; position: absolute; inset: -80% -35%; pointer-events: none;
  background: linear-gradient(105deg,transparent 42%,rgba(255,255,255,.48) 50%,transparent 58%);
  transform: translateX(-75%); animation: room-ready-sheen 2s ease-in-out infinite;
}
.queue-ready #claim-btn > span { display: grid; gap: 3px; text-align: left; }
.queue-ready #claim-btn strong { font-size: 12px; }
.queue-ready #claim-btn small { color: rgba(37,24,44,.7); font-size: 8px; font-weight: 600; }
@keyframes room-ready-panel { to { border-color: rgba(226,196,238,.48); box-shadow: 0 24px 95px rgba(156,97,182,.24); } }
@keyframes room-ready-sheen { 0%,45% { transform: translateX(-75%); } 100% { transform: translateX(75%); } }
.quiet-button { padding: 5px 8px; border: 0; background: transparent; color: #a99eac; font-size: 9px; text-decoration: underline; cursor: pointer; }

.ad-modal { position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(4,3,9,.84); backdrop-filter: blur(15px); }
.ad-shell { width: min(390px,100%); padding: 28px; text-align: center; border: 1px solid var(--line); border-radius: 20px; background: #100c1e; box-shadow: 0 30px 100px #000; }
.ad-moon { width: 90px; height: 90px; display: grid; place-items: center; margin: 20px auto; border: 1px solid #745b8a; border-radius: 50%; font: 55px "Cormorant Garamond"; color: var(--gold); }
.ad-shell h2 { margin: 5px 0; font: 600 32px "Cormorant Garamond"; }.ad-shell > p:not(.eyebrow) { color: var(--muted); font-size: 11px; }
.ad-shell > strong { display: block; margin: 18px; font: 600 30px "Cormorant Garamond"; }
.toast { position: fixed; z-index: 120; right: 20px; top: 82px; max-width: 330px; padding: 12px 15px; border: 1px solid var(--line); border-radius: 11px; background: #171126; box-shadow: 0 15px 50px #000; color: #e6ddeb; font-size: 11px; }

.room-entry-transition {
  position: absolute; z-index: 90; inset: 0; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 46%,rgba(52,34,68,.3),rgba(2,1,7,.98) 62%);
  pointer-events: auto; animation: room-brighten 3.8s cubic-bezier(.35,0,.2,1) both;
}
.room-entry-transition p {
  position: absolute; bottom: 15%; margin: 0; color: #cdbfce; font: italic 16px "Cormorant Garamond",serif;
  letter-spacing: .04em; animation: entry-copy 3.2s ease both;
}
.entry-threshold { position: relative; width: min(52vw,260px); height: min(52vh,430px); perspective: 900px; }
.entry-threshold i {
  position: absolute; top: 0; bottom: 0; width: 50%; border: 1px solid rgba(188,151,209,.18);
  background: linear-gradient(90deg,#030208,#161020); box-shadow: 0 0 80px #000;
}
.entry-threshold i:first-child { left: 0; transform-origin: left; animation: door-left 3s .3s cubic-bezier(.45,0,.2,1) both; }
.entry-threshold i:nth-child(2) { right: 0; transform-origin: right; animation: door-right 3s .3s cubic-bezier(.45,0,.2,1) both; }
.entry-threshold span { position: absolute; z-index: 2; left: 50%; top: 43%; transform: translate(-50%,-50%); color: var(--gold); font: 58px "Cormorant Garamond"; filter: drop-shadow(0 0 18px rgba(201,169,104,.35)); animation: entry-moon 2.8s ease both; }
@keyframes door-left { to { transform: rotateY(-76deg); opacity: .18; } }
@keyframes door-right { to { transform: rotateY(76deg); opacity: .18; } }
@keyframes entry-moon { 0%,20% { opacity: .85; } 100% { opacity: 0; transform: translate(-50%,-50%) scale(1.35); } }
@keyframes entry-copy { 0%,10% { opacity: 0; } 26%,68% { opacity: 1; } 100% { opacity: 0; } }
@keyframes room-brighten { 0%,58% { opacity: 1; } 100% { opacity: 0; visibility: hidden; } }

.room { perspective: 1200px; }
.welcome-pending .queue-panel, .is-welcome .queue-panel { opacity: 0; pointer-events: none; }
.is-welcome .reader-stage {
  left: 69%; opacity: .98; transform: translateX(-50%) scale(1.075);
  animation: welcome-selene-in 1.45s cubic-bezier(.16,.78,.24,1) both;
}
.welcome-ritual {
  position: absolute; z-index: 92; inset: 0; display: grid; align-items: end;
  padding: clamp(92px,15vh,150px) clamp(24px,7vw,96px) clamp(42px,8vh,84px);
  overflow: hidden; isolation: isolate;
  background:
    radial-gradient(circle at 69% 37%,rgba(126,78,151,.12),transparent 27%),
    linear-gradient(90deg,rgba(3,2,9,.94) 0%,rgba(5,3,12,.73) 38%,rgba(5,3,12,.12) 72%,rgba(3,2,8,.48) 100%);
}
.welcome-ritual::before {
  content: ""; position: absolute; z-index: -1; inset: 0;
  background: linear-gradient(112deg,transparent 28%,rgba(218,184,238,.075) 48%,transparent 67%);
  transform: translateX(-105%); animation: welcome-veil 4.8s ease-in-out both;
}
.welcome-ritual::after {
  content: ""; position: absolute; z-index: -1; left: -15%; right: -15%; bottom: -42%; height: 68%;
  border-radius: 50%; background: radial-gradient(ellipse,rgba(121,71,145,.3),rgba(9,6,17,0) 67%);
  filter: blur(20px); animation: welcome-bloom 4.2s ease-out both;
}
.welcome-copy { width: min(500px,48vw); animation: welcome-copy-in 1.35s .28s cubic-bezier(.2,.7,.2,1) both; }
.welcome-copy h1 {
  max-width: 470px; margin: 9px 0 12px; color: #fbf2f0;
  font: 600 clamp(43px,5.5vw,74px)/.86 "Cormorant Garamond",serif;
  letter-spacing: -.025em; text-wrap: balance; text-shadow: 0 8px 34px rgba(0,0,0,.58);
}
.welcome-copy > p:not(.eyebrow) { max-width: 390px; margin: 0 0 22px; color: #c8bccb; font: 17px/1.42 "Cormorant Garamond",serif; }
.welcome-continue {
  width: min(330px,100%); min-height: 54px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 18px; border: 1px solid rgba(226,200,242,.39); border-radius: 999px;
  background: linear-gradient(105deg,rgba(222,205,235,.95),rgba(193,158,211,.91));
  color: #24162b; box-shadow: 0 14px 50px rgba(0,0,0,.42),0 0 34px rgba(183,117,205,.14);
  cursor: pointer; font: 700 11px Inter,sans-serif; letter-spacing: .035em;
  animation: welcome-action-in .8s 1.25s ease both, welcome-action-glow 2.7s 2.1s ease-in-out infinite;
}
.welcome-continue b { font-size: 20px; font-weight: 400; transition: transform .25s ease; }
.welcome-continue:hover b { transform: translateX(4px); }
.welcome-copy > small { display: block; width: min(330px,100%); margin-top: 9px; color: #776d7c; font-size: 7px; text-align: center; letter-spacing: .08em; }
.welcome-orbit {
  position: absolute; z-index: -1; top: 19%; left: 66%; width: clamp(150px,21vw,290px); aspect-ratio: 1;
  transform: translateX(-50%); display: grid; place-items: center; opacity: .78;
}
.welcome-orbit span { color: #d3b777; font: clamp(48px,7vw,88px) "Cormorant Garamond",serif; filter: drop-shadow(0 0 24px rgba(210,177,109,.35)); animation: welcome-moon 3.8s ease-in-out infinite; }
.welcome-ring { position: absolute; inset: 0; border: 1px solid rgba(211,181,235,.18); border-radius: 50%; }
.welcome-ring::before, .welcome-ring::after { content: ""; position: absolute; width: 7px; height: 7px; border-radius: 50%; background: #c9a968; box-shadow: 0 0 13px rgba(201,169,104,.8); }
.welcome-ring::before { left: 8%; top: 26%; }.welcome-ring::after { right: 11%; bottom: 22%; }
.welcome-ring-a { animation: welcome-orbit 13s linear infinite; }
.welcome-ring-b { inset: 15%; border-color: rgba(195,139,215,.19); animation: welcome-orbit 9s linear reverse infinite; }
.welcome-stars i { position: absolute; width: 2px; height: 2px; border-radius: 50%; background: #f0dff3; box-shadow: 0 0 8px #f0dff3; animation: welcome-star 2.4s ease-in-out infinite; }
.welcome-stars i:nth-child(1) { left: 13%; top: 20%; }.welcome-stars i:nth-child(2) { left: 39%; top: 14%; animation-delay: .5s; }
.welcome-stars i:nth-child(3) { left: 59%; top: 41%; animation-delay: 1s; }.welcome-stars i:nth-child(4) { right: 13%; top: 19%; animation-delay: 1.4s; }
.welcome-stars i:nth-child(5) { right: 29%; bottom: 19%; animation-delay: .8s; }.welcome-stars i:nth-child(6) { left: 24%; bottom: 30%; animation-delay: 1.8s; }
.welcome-leaving .welcome-ritual { animation: welcome-leave .9s cubic-bezier(.45,0,.2,1) both; pointer-events: none; }
.welcome-leaving .reader-stage { animation: welcome-selene-recede .9s cubic-bezier(.35,0,.2,1) both; }
.welcome-complete.queue-selecting .queue-panel { animation: welcome-options-in .85s cubic-bezier(.2,.72,.2,1) both; }
.welcome-complete.queue-selecting .access-card:first-child { animation: welcome-card-in .65s .18s ease both; }
.welcome-complete.queue-selecting .access-card:nth-child(2) { animation: welcome-card-in .65s .3s ease both; }
@keyframes welcome-veil { 0% { transform: translateX(-105%); } 60%,100% { transform: translateX(105%); } }
@keyframes welcome-bloom { from { opacity: 0; transform: scale(.65); } to { opacity: 1; transform: scale(1); } }
@keyframes welcome-copy-in { from { opacity: 0; transform: translateY(24px); filter: blur(7px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes welcome-action-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes welcome-action-glow { 50% { box-shadow: 0 14px 50px rgba(0,0,0,.42),0 0 0 7px rgba(191,135,210,.09),0 0 38px rgba(183,117,205,.22); } }
@keyframes welcome-orbit { to { transform: rotate(360deg); } }
@keyframes welcome-moon { 50% { transform: translateY(-4px) scale(1.035); opacity: .78; } }
@keyframes welcome-star { 50% { opacity: .25; transform: scale(.65); } }
@keyframes welcome-leave { to { opacity: 0; transform: scale(1.025); filter: blur(7px); visibility: hidden; } }
@keyframes welcome-selene-in { from { opacity: 0; transform: translateX(-50%) scale(1.18); filter: blur(10px); } }
@keyframes welcome-selene-recede { to { left: 68%; opacity: .86; transform: translateX(-50%) scale(.92); filter: brightness(.82); } }
@keyframes welcome-options-in { from { opacity: 0; transform: translateY(42px) translateZ(110px) scale(.88); filter: blur(9px); } }
@keyframes welcome-card-in { from { opacity: 0; transform: translateY(20px) scale(.94); } }

.is-locked .reader-stage { left: 68%; opacity: .86; }
.is-locked .table-scene { filter: brightness(.72); }
.session-active .queue-panel { display: none; }
.text-session .waiting-live { display: none; }
.text-session .reader-stage { opacity: .74; filter: saturate(.82); }
.text-session .voice-button { display: none; }
.text-session .chat-toggle-button { bottom: max(25px,env(safe-area-inset-bottom)); }
.session-active .reader-stage { animation: reader-enter 1.2s ease both; }
.tool-active .chat-drawer { opacity: .94; }
.tool-active .selene-caption p { font-size: 15px; line-height: 1.22; }
.tool-active .oracle-form textarea { scrollbar-width: none; }
.tool-active .oracle-form textarea::-webkit-scrollbar { display: none; }
.tool-active .oracle-note { display: none; }
.tool-sky .sky-orbit { opacity: 1; }
.session-ending .session-clock strong { color: #e3bf82; animation: ending-pulse 1.8s ease-in-out infinite; }
@keyframes ending-pulse { 50% { opacity: .58; } }
@keyframes reader-enter { from { opacity: .6; transform: translateX(-50%) scale(.96); } }

@media (max-width: 850px) {
  body { overflow: hidden; }
  .room-firelight { display: none; }
  .room { min-height: 600px; }
  .room-header { grid-template-columns: 1fr auto; padding: max(14px,env(safe-area-inset-top)) 16px; }
  .status-pill { display: none; }
  .brand small, .session-clock > span { display: none; }
  .reader-stage, .is-locked .reader-stage { left: 50%; top: 7vh; bottom: 24vh; width: min(90vw,520px); opacity: .88; }
  .is-locked .reader-stage { left: 69%; width: 78vw; }
  .waiting-live { top: 18%; right: auto; left: 50%; transform: translate(-50%,5px); }
  .queue-preview .waiting-live { transform: translate(-50%,0); }
  .queue-preview .presence-chip { display: none; }
  .queue-panel { left: 14px; right: 14px; bottom: 16px; width: auto; padding: 17px; max-height: 68vh; overflow: auto; }
  .queue-has-entry .queue-panel {
    bottom: max(14px,env(safe-area-inset-bottom)); padding: 12px; max-height: 52vh; overflow: auto;
    background: linear-gradient(145deg,rgba(8,6,17,.83),rgba(24,16,36,.72));
  }
  .queue-has-entry .queue-intro, .queue-has-entry .legal-note,
  .queue-has-entry .queue-sigil, .queue-has-entry .queue-numbers,
  .queue-has-entry .queue-state-panel > div:nth-child(2) { display: none; }
  .queue-has-entry .queue-state-panel { display: grid; grid-template-columns: 1fr; gap: 8px; margin: 0; }
  .queue-has-entry .waiting-entry-alert { padding: 11px 12px 10px; }
  .queue-has-entry .waiting-entry-alert strong { font-size: clamp(15px,4.5vw,19px); letter-spacing: .13em; }
  .queue-has-entry .waiting-entry-alert small { font-size: 10px; }
  .queue-has-entry .wait-countdown { padding: 0; }
  .queue-has-entry .wait-countdown-core { padding: 11px 12px 10px; }
  .queue-has-entry .wait-countdown-core > strong { font-size: clamp(38px,13vw,58px); }
  .queue-ready .queue-panel { width: min(360px,calc(100vw - 28px)); left: 50%; right: auto; transform: translateX(-50%); }
  .queue-ready .wait-countdown, .queue-ready #cancel-queue-btn, .queue-ready .waiting-intake-card { display: none; }
  .queue-ready #claim-btn { min-height: 54px; border-radius: 16px; font-size: 13px; }
  .queue-intro h2 { font-size: 29px; }
  .access-options { grid-template-columns: 1fr 1fr; }
  .access-card { padding: 12px; }
  .table-scene { height: 35vh; bottom: -5vh; left: -35%; right: -35%; }
  .session-active .table-scene { bottom: 0; }
  .table-card-area { inset: 7% 31% 19%; }
  .deck-home { right: 25%; }
  .candle-left { left: 27%; } .candle-right { right: 25%; }
  .crystal-cluster { left: 32%; }
  .chat-toggle-button { right: 14px; bottom: max(34px,env(safe-area-inset-bottom)); width: 52px; height: 52px; }
  .chat-drawer {
    top: auto; left: 12px; right: 12px; bottom: max(98px,calc(env(safe-area-inset-bottom) + 78px));
    width: auto; max-height: min(52vh,430px); grid-template-rows: auto minmax(58px,1fr) auto auto;
    border-radius: 18px;
  }
  .conversation-memory { display: flex; }
  .selene-caption { position: relative; bottom: auto; left: auto; width: auto; transform: none; }
  .oracle-form { position: relative; bottom: auto; left: auto; width: auto; transform: none; }
  .voice-button { bottom: max(29px,env(safe-area-inset-bottom)); min-width: 148px; min-height: 54px; }
  .voice-button.is-listening { min-width: min(244px,calc(100vw - 110px)); }
  .voice-locked-controls { bottom: max(27px,env(safe-area-inset-bottom)); min-width: min(330px,calc(100vw - 26px)); }
  .oracle-note { display: none; }
  .birth-data-card { top: auto; right: 14px; left: 14px; bottom: 22px; width: auto; transform: none; }
  .birth-data-card input, .memory-shell input[type="text"], .memory-shell input[type="date"],
  .memory-shell select, .memory-shell textarea { font-size: 16px; }
  @keyframes overlay-in { from { opacity: 0; transform: translateY(20px); } }
  .sky-orbit { inset: 4% -4% 16%; }
  .sky-orbit p, .sky-orbit[data-mode="current"] p { left: 7%; right: auto; top: 5%; min-width: 138px; padding: 8px 10px; text-align: left; }
  .sky-orbit p strong { font-size: 25px; }
  .sky-orbit p em { max-width: 145px; font-size: 10px; }
  .sky-moon { top: 7%; right: 7%; width: 45px; }
  .sky-orbit[data-mode="current"] .sun-glyph { top: 9%; left: auto; right: 25%; }
  .welcome-ritual {
    align-items: end; padding: 84px 20px max(34px,calc(env(safe-area-inset-bottom) + 24px));
    background:
      linear-gradient(180deg,rgba(3,2,8,.12) 0%,rgba(3,2,9,.22) 38%,rgba(4,2,10,.96) 76%),
      radial-gradient(circle at 63% 29%,rgba(128,76,154,.13),transparent 34%);
  }
  .welcome-copy { width: 100%; text-align: center; }
  .welcome-copy h1 { max-width: 460px; margin: 8px auto 10px; font-size: clamp(43px,12vw,62px); line-height: .88; }
  .welcome-copy > p:not(.eyebrow) { max-width: 350px; margin: 0 auto 19px; font-size: 16px; }
  .welcome-continue, .welcome-copy > small { margin-left: auto; margin-right: auto; }
  .welcome-orbit { top: 15%; left: 55%; width: min(46vw,220px); }
  .is-welcome .reader-stage { left: 58%; top: 3vh; width: min(102vw,600px); }
  @keyframes welcome-selene-recede { to { left: 69%; opacity: .88; transform: translateX(-50%) scale(.82); filter: brightness(.78); } }
}

@media (max-width: 540px) {
  .room { min-height: 540px; }
  .room-background { background-position: 55% center; }
  .brand strong { font-size: 17px; }
  .room-header { padding-top: max(10px,env(safe-area-inset-top)); }
  .session-clock { gap: 5px; }
  .access-options { grid-template-columns: 1fr; }
  .queue-panel { max-height: 65vh; }
  .queue-has-entry .queue-panel { max-height: 35vh; }
  .queue-has-entry:not(.queue-ready) .queue-panel { max-height: 52vh; }
  .queue-selecting .queue-panel { padding: 14px; }
  .queue-selecting #queue-eyebrow { display: none; }
  .queue-selecting .queue-intro h2 { margin: 4px 0 7px; font-size: 25px; }
  .queue-selecting .market-selector { margin-top: 8px; }
  .queue-selecting .access-benefits { display: none; }
  .queue-selecting .access-card { padding: 11px; }
  .queue-selecting .access-card h3 { font-size: 20px; }
  .queue-selecting .free-promo-hours { min-height: 0; }
  .queue-intro > p:not(.eyebrow), .legal-note { display: none; }
  .queue-intro > p.oracle-claim { display: inline-flex; }
  .room-meter { margin-top: 10px; padding-top: 9px; }
  .access-card { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 10px; align-items: end; }
  .access-card .card-kicker { grid-column: 1 / -1; }
  .access-card .ad-track { display: none; }
  .access-card h3 { margin-top: 5px; font-size: 21px; }
  .access-card p { min-height: 0; margin: 0; }
  .reader-stage, .is-locked .reader-stage { top: 5vh; bottom: 27vh; width: 105vw; }
  .is-locked .reader-stage { left: 72%; }
  .waiting-live { top: 15%; width: min(325px,calc(100vw - 42px)); padding: 8px 10px; border-radius: 13px; text-align: center; }
  .waiting-live span { justify-content: center; font-size: 9px; }
  .table-scene { height: 35vh; }
  .table-card-area { left: 32%; right: 32%; }
  .table-tarot-card { width: 92px; left: calc(50% - 46px); }
  .table-tarot-card:nth-child(1):nth-last-child(3) { --tx: -88px; }
  .table-tarot-card:nth-child(3):last-child { --tx: 88px; }
  .deck-home { width: 66px; right: 25%; }
  .selene-caption { padding: 10px 43px 10px 13px; }
  .selene-caption p { font-size: 14px; }
  .oracle-form { min-height: 49px; grid-template-columns: 1fr 37px; }
  .send-button { width: 36px; height: 36px; }
  .chat-drawer { max-height: min(49vh,390px); }
  .birth-data-card { padding: 20px; }
  .memory-settings-button { margin-top: 8px; }
  .memory-shell { padding: 22px 18px; }
  .memory-shell h2 { font-size: 29px; }
  .memory-wizard-actions { grid-template-columns: 1fr 1fr; }
  .memory-action-primary { grid-column: 1 / -1; grid-row: 1; }
  .memory-action-exit, .memory-action-skip { grid-row: 2; }
  .memory-step { min-height: 142px; }
  .intake-family-names { grid-template-columns: 1fr; }
  .welcome-ritual { padding-left: 18px; padding-right: 18px; padding-bottom: max(30px,calc(env(safe-area-inset-bottom) + 20px)); }
  .welcome-copy h1 { font-size: clamp(40px,12.5vw,53px); }
  .welcome-copy > p:not(.eyebrow) { max-width: 310px; font-size: 15px; line-height: 1.36; }
  .welcome-continue { min-height: 56px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  .queue-preview .waiting-mouth, .queue-preview .waiting-jaw-layer { opacity: 0; }
  .welcome-copy, .welcome-continue, .welcome-orbit span, .welcome-ring, .welcome-ritual::before, .welcome-ritual::after { animation: none !important; }
}
