@import url('https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@400;700&family=Manrope:wght@400;500;700;800&family=Noto+Serif+SC:wght@400;600;700&display=swap');

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

:root {
  --gold: #d2ad63;
  --gold-light: #f0d9a0;
  --gold-dark: #8a6a2f;
  --text: #f3ead8;
  --muted: #c3b091;
  --bg-dark: #0d0806;
  --bg-deep: #060303;
  --panel: rgba(24, 14, 10, 0.82);
  --panel-strong: rgba(16, 9, 7, 0.92);
  --line: rgba(210, 173, 99, 0.14);
  --line-strong: rgba(210, 173, 99, 0.24);
  --card-w: 180px;
  --card-h: 300px;
  --card-gap: 20px;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--bg-dark);
  color: var(--text);
  font-family: 'Manrope', sans-serif;
  user-select: none;
  -webkit-user-select: none;
}

body {
  background:
    radial-gradient(circle at 50% 14%, rgba(115, 83, 39, 0.34) 0%, rgba(28, 16, 11, 0.14) 33%, transparent 58%),
    radial-gradient(circle at 84% 18%, rgba(210, 173, 99, 0.10) 0%, transparent 24%),
    linear-gradient(180deg, #18100c 0%, #0d0806 48%, #070403 100%);
}

#app {
  width: 100vw;
  height: 100vh;
  position: relative;
  overflow: hidden;
  background: transparent;
}

.stage-ambience {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(210, 173, 99, 0.10) 1px, transparent 1px),
    radial-gradient(circle at 50% 34%, rgba(210, 173, 99, 0.06), transparent 58%);
  background-size: 120px 120px, auto;
  opacity: 0.2;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.9), rgba(0,0,0,0.24));
}

.stage-shell {
  position: absolute;
  inset: 18px;
  z-index: 1;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(20, 12, 9, 0.44), rgba(8, 4, 3, 0.18)),
    radial-gradient(circle at 50% 20%, rgba(210, 173, 99, 0.04), transparent 52%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.02),
    0 28px 80px rgba(0,0,0,0.28);
  pointer-events: none;
}

.corner-ornament {
  position: absolute;
  width: 150px;
  height: 150px;
  z-index: 2;
  pointer-events: none;
  opacity: 0.4;
}

.corner-ornament::before,
.corner-ornament::after {
  content: '';
  position: absolute;
  border-color: rgba(210, 173, 99, 0.18);
  border-style: solid;
}

.corner-ornament::before {
  inset: 0 56px 56px 0;
  border-width: 1px 0 0 1px;
  border-radius: 22px 0 0 0;
}

.corner-ornament::after {
  inset: 18px 74px 74px 18px;
  border-width: 1px 0 0 1px;
  border-radius: 16px 0 0 0;
}

.corner-ornament.top-left { top: 28px; left: 28px; }
.corner-ornament.top-right { top: 28px; right: 28px; transform: rotate(90deg); }
.corner-ornament.bottom-left { bottom: 28px; left: 28px; transform: rotate(-90deg); }
.corner-ornament.bottom-right { bottom: 28px; right: 28px; transform: rotate(180deg); }

/* ===== Navigation / Frame ===== */
.archive-nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 28px;
  background: rgba(15, 9, 7, 0.72);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(210, 173, 99, 0.10);
}

.archive-brand {
  color: var(--gold);
  text-decoration: none;
  font-family: 'Noto Serif SC', serif;
  font-size: 26px;
  letter-spacing: 0.04em;
  text-shadow: 0 0 18px rgba(210, 173, 99, 0.18);
}

.archive-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.archive-links a {
  color: rgba(243, 234, 216, 0.72);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 11px;
  transition: color .25s ease;
}

.archive-links a.active,
.archive-links a:hover {
  color: var(--gold);
}

.archive-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  text-decoration: none;
  color: #1a1009;
  background: linear-gradient(135deg, #b48c44, #f0d79b, #b48c44);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 11px;
  font-weight: 800;
  box-shadow: 0 14px 30px rgba(0,0,0,0.24);
  transition: transform .25s ease, box-shadow .25s ease;
}

.archive-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(210, 173, 99, 0.24);
}

.stage-header {
  position: absolute;
  top: 106px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 12;
  width: min(760px, calc(100vw - 120px));
  text-align: center;
  pointer-events: none;
}

.stage-kicker {
  color: rgba(210, 173, 99, 0.70);
  text-transform: uppercase;
  letter-spacing: 0.34em;
  font-size: 11px;
  margin-bottom: 16px;
}

.stage-heading {
  font-family: 'Noto Serif SC', serif;
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--text);
  text-shadow: 0 0 28px rgba(0,0,0,0.34);
}

.stage-subheading {
  margin: 14px auto 0;
  max-width: 620px;
  color: rgba(243, 234, 216, 0.62);
  font-size: 14px;
  line-height: 1.8;
}

.stage-footer {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 15;
  display: flex;
  gap: 18px;
  align-items: center;
  color: rgba(210, 173, 99, 0.46);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  pointer-events: none;
}

.stage-footer span {
  position: relative;
  padding: 0 4px;
}

.stage-footer span + span::before {
  content: '';
  position: absolute;
  left: -9px;
  top: 50%;
  width: 3px;
  height: 3px;
  border-radius: 999px;
  background: rgba(210, 173, 99, 0.34);
  transform: translateY(-50%);
}

/* ===== Stars ===== */
.stars { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.star {
  position: absolute;
  width: 2px;
  height: 2px;
  background: var(--gold-light);
  border-radius: 50%;
  opacity: 0;
  animation: twinkle var(--dur) var(--delay) infinite;
}

@keyframes twinkle {
  0%,100% { opacity: 0; transform: scale(0.45); }
  50% { opacity: var(--opacity); transform: scale(1); }
}

/* ===== Camera ===== */
.camera-box {
  position: absolute;
  top: 96px;
  right: 28px;
  width: 244px;
  height: 182px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(210, 173, 99, 0.18);
  box-shadow: 0 18px 50px rgba(0,0,0,0.34);
  z-index: 100;
  background: rgba(0,0,0,0.6);
  opacity: 0;
  transition: opacity 0.5s;
}

.camera-box::after {
  content: '';
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(210, 173, 99, 0.18);
  border-radius: 14px;
  pointer-events: none;
}

.camera-box.active { opacity: 1; }
#webcam { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); display: block; }
#camCanvas { position: absolute; top: 0; left: 0; width: 100%; height: 100%; transform: scaleX(-1); pointer-events: none; }
.cam-label {
  position: absolute;
  bottom: 14px;
  left: 18px;
  font-size: 10px;
  color: var(--gold);
  opacity: 0.72;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.cam-status {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  color: var(--gold-light);
  font-size: 13px;
  text-align: center;
  line-height: 1.7;
  pointer-events: none;
}

/* ===== Hand Cursor ===== */
.hand-cursor {
  position: absolute;
  width: 60px;
  height: 60px;
  pointer-events: none;
  z-index: 80;
  display: none;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.hand-cursor.visible { display: block; }

.cursor-ring {
  position: absolute;
  inset: 0;
  border: 2px solid var(--gold);
  border-radius: 50%;
  animation: cursorPulse 2s ease-in-out infinite;
  transition: all 0.15s;
}

.cursor-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  width: 10px;
  height: 10px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(210,173,99,0.64);
  transition: all 0.15s;
}

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

.hand-cursor.pinching .cursor-ring {
  border-color: #fff4d9;
  transform: scale(0.6);
  animation: none;
  box-shadow: 0 0 20px rgba(255,255,255,0.5);
}

.hand-cursor.pinching .cursor-dot {
  background: #fff8e6;
  transform: translate(-50%,-50%) scale(1.5);
  box-shadow: 0 0 20px rgba(255,255,255,0.8);
}

.pinch-ripple {
  position: absolute;
  inset: -10px;
  border: 2px solid var(--gold-light);
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.5);
  pointer-events: none;
}

.pinch-ripple.active { animation: rippleExpand 0.5s ease-out forwards; }

@keyframes rippleExpand {
  0% { transform: scale(0.5); opacity: 1; }
  100% { transform: scale(2.5); opacity: 0; }
}

/* ===== Center Selection Indicator ===== */
.center-indicator {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: calc(var(--card-w) + 42px);
  height: calc(var(--card-h) + 42px);
  pointer-events: none;
  z-index: 40;
  display: none;
}

.center-indicator::before {
  content: '';
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(210,173,99,0.18);
  border-radius: 22px;
  box-shadow: 0 0 34px rgba(210,173,99,0.08);
}

.center-indicator.active { display: block; }

.center-bracket {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  color: var(--gold);
  opacity: 0.8;
  text-shadow: 0 0 18px rgba(210,173,99,0.48);
  animation: bracketPulse 2s ease-in-out infinite;
}

.center-bracket.left { left: 0; }
.center-bracket.right { right: 0; }

@keyframes bracketPulse {
  0%,100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.center-card-name {
  position: absolute;
  bottom: -44px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 15px;
  color: var(--gold-light);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-shadow: 0 0 15px rgba(210,173,99,0.34);
}

/* ===== Scroll Direction Arrows ===== */
.scroll-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 38px;
  color: var(--gold);
  opacity: 0;
  pointer-events: none;
  z-index: 35;
  transition: opacity 0.2s;
  text-shadow: 0 0 20px rgba(210,173,99,0.46);
}

.scroll-arrow.left { left: 36px; }
.scroll-arrow.right { right: 36px; }

/* ===== Title ===== */
.title-bar {
  position: absolute;
  top: 108px;
  left: 38px;
  z-index: 10;
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.title-bar .title {
  font-family: 'Noto Serif SC', serif;
  font-size: 28px;
  color: var(--gold);
  text-shadow: 0 0 20px rgba(210,173,99,0.4);
  letter-spacing: 0.12em;
}

.title-bar .subtitle {
  font-size: 11px;
  color: rgba(210,173,99,0.58);
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

/* ===== Message ===== */
.msg-box {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  z-index: 15;
  max-width: min(520px, calc(100vw - 100px));
  padding: 22px 28px;
  text-align: center;
  color: var(--gold-light);
  font-size: 17px;
  line-height: 1.9;
  letter-spacing: 0.12em;
  opacity: 0;
  transition: opacity 0.6s;
  pointer-events: none;
  text-shadow: 0 0 20px rgba(210,173,99,0.24);
  background: linear-gradient(180deg, rgba(23,14,10,0.78), rgba(14,8,6,0.52));
  border: 1px solid rgba(210,173,99,0.16);
  border-radius: 22px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.22);
}

.msg-box.visible { opacity: 1; }
.msg-box.top-msg {
  top: 176px;
  transform: translate(-50%,0);
}

/* ===== Action Button ===== */
.action-btn {
  position: absolute;
  bottom: 56px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  min-height: 56px;
  padding: 0 42px;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold), var(--gold-dark));
  border: none;
  border-radius: 999px;
  color: #1a0f08;
  font-family: 'Manrope', sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s, opacity 0.5s;
  box-shadow: 0 16px 34px rgba(0,0,0,0.3);
}

.action-btn:hover {
  transform: translateX(-50%) translateY(-1px);
  box-shadow: 0 18px 36px rgba(210,173,99,0.28);
}

.action-btn:active { transform: translateX(-50%) scale(0.97); }
.action-btn:disabled { opacity: 0.36; cursor: not-allowed; }

.action-btn .shimmer {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

.action-btn.hidden { opacity: 0; pointer-events: none; }

/* ===== Card Stage ===== */
.card-stage {
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  overflow: visible;
}

.card-strip {
  position: absolute;
  height: var(--card-h);
  will-change: transform;
  z-index: 10;
}

/* ===== Tarot Card ===== */
.tarot-card {
  position: absolute;
  width: var(--card-w);
  height: var(--card-h);
  cursor: pointer;
  transform-style: preserve-3d;
  transition: transform 0.35s ease, filter 0.35s, box-shadow 0.35s;
}

.tarot-card.no-transition { transition: none !important; }
.tarot-card.shuffling-card {
  transition: transform 0.25s ease-out, left 0.25s ease-out, top 0.25s ease-out;
}

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

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

.card-face {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 18px;
  overflow: hidden;
}

/* Card Back */
.card-back {
  background: linear-gradient(145deg, #2b1b11, #140b07);
  border: 1px solid rgba(210,173,99,0.36);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 30px rgba(0,0,0,0.48);
}

.card-back-inner {
  width: calc(100% - 16px);
  height: calc(100% - 16px);
  border: 1px solid rgba(210,173,99,0.24);
  border-radius: 14px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 50%, rgba(210,173,99,0.08), transparent 54%),
    repeating-conic-gradient(from 0deg at 50% 50%, rgba(210,173,99,0.06) 0deg 24deg, transparent 24deg 48deg);
}

.card-back-inner::before {
  content: '✦';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  font-size: 44px;
  color: var(--gold);
  opacity: 0.34;
}

.card-back-inner::after {
  content: '';
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(210,173,99,0.16);
  border-radius: 10px;
}

.card-back .corner {
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: rgba(210,173,99,0.56);
  border-style: solid;
  opacity: 0.72;
}

.card-back .corner.tl { top: 12px; left: 12px; border-width: 2px 0 0 2px; border-radius: 5px 0 0 0; }
.card-back .corner.tr { top: 12px; right: 12px; border-width: 2px 2px 0 0; border-radius: 0 5px 0 0; }
.card-back .corner.bl { bottom: 12px; left: 12px; border-width: 0 0 2px 2px; border-radius: 0 0 0 5px; }
.card-back .corner.br { bottom: 12px; right: 12px; border-width: 0 2px 2px 0; border-radius: 0 0 5px 0; }

/* Card Front */
.card-front {
  transform: rotateY(180deg);
  background: transparent;
  border: none;
  box-shadow: none;
}

.card-front-body {
  width: 100%;
  height: 100%;
  margin: 0;
  border: none;
  border-radius: 18px;
  display: block;
  overflow: hidden;
}

.card-num {
  font-family: 'Cinzel Decorative', serif;
  font-size: 12px;
  color: var(--gold-dark);
  margin-top: 8px;
  letter-spacing: 2px;
}

.card-img {
  width: 100%;
  height: 100%;
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
}

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

.card-label {
  font-size: 12px;
  color: var(--gold-dark);
  margin-bottom: 10px;
  letter-spacing: 1px;
  text-align: center;
  font-weight: 700;
  padding: 0 6px;
}

/* Card Art */
.card-art {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.card-art .symbol {
  font-size: 56px;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.3));
  position: relative;
  z-index: 2;
}

.card-art .deco-circle {
  position: absolute;
  width: 80px;
  height: 80px;
  border: 1.5px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
}

.card-art .deco-circle:nth-child(2) {
  width: 110px;
  height: 110px;
  border-style: dashed;
  border-color: rgba(255,255,255,0.1);
}

/* Major Arcana Art */
.card-art.fool { background: linear-gradient(180deg, #87ceeb, #90b77d); }
.card-art.magician { background: linear-gradient(180deg, #4a0e4e, #1a1a2e); }
.card-art.priestess { background: linear-gradient(180deg, #1a1a3e, #16213e); }
.card-art.empress { background: linear-gradient(180deg, #2d5016, #8fbc3c); }
.card-art.emperor { background: linear-gradient(180deg, #8b0000, #cd853f); }
.card-art.hierophant { background: linear-gradient(180deg, #4a3728, #8b6914); }
.card-art.lovers { background: linear-gradient(180deg, #ff6b6b, #ffd32a); }
.card-art.chariot { background: linear-gradient(180deg, #2c3e50, #95a5a6); }
.card-art.strength { background: linear-gradient(180deg, #c0392b, #f39c12); }
.card-art.hermit { background: linear-gradient(180deg, #2c2c54, #706fd3); }
.card-art.wheel { background: linear-gradient(180deg, #6c5ce7, #dfe6e9); }
.card-art.justice { background: linear-gradient(180deg, #636e72, #dfe6e9); }
.card-art.hanged { background: linear-gradient(180deg, #0c2461, #4a69bd); }
.card-art.death { background: linear-gradient(180deg, #1a1a1a, #4a4a4a); }
.card-art.temperance { background: linear-gradient(180deg, #e17055, #ffeaa7); }
.card-art.devil { background: linear-gradient(180deg, #1a0000, #8b0000); }
.card-art.tower { background: linear-gradient(180deg, #2d3436, #e17055); }
.card-art.star_card { background: linear-gradient(180deg, #0c2461, #ffd32a); }
.card-art.moon { background: linear-gradient(180deg, #0a0a2e, #1a1a4e); }
.card-art.sun { background: linear-gradient(180deg, #f9ca24, #eb4d4b); }
.card-art.judgement { background: linear-gradient(180deg, #e1b12c, #c0392b); }
.card-art.world { background: linear-gradient(180deg, #6c5ce7, #ffd32a); }

/* Minor Arcana Suit Art */
.card-art.wands { background: linear-gradient(180deg, #ff6b35, #8b2500); }
.card-art.cups { background: linear-gradient(180deg, #2e86de, #1b4f72); }
.card-art.swords { background: linear-gradient(180deg, #a4b0be, #3d3d5c); }
.card-art.pentacles { background: linear-gradient(180deg, #b8860b, #2e4a1e); }

.tarot-card.reversed-card .card-front .card-art {
  transform: rotate(180deg);
}

/* ===== Card States ===== */
.tarot-card.center-card {
  z-index: 50 !important;
  transform: translateY(-34px) scale(1.06) !important;
  filter: brightness(1.14);
}

.tarot-card.center-card .card-back {
  box-shadow: 0 0 35px rgba(210,173,99,0.34), 0 18px 44px rgba(0,0,0,0.58);
}

.tarot-card.selected-card {
  z-index: 55 !important;
}

.tarot-card.selected-card .card-back {
  border-color: var(--gold);
  box-shadow: 0 0 25px rgba(210,173,99,0.54);
}

.tarot-card.near-center {
  filter: brightness(1.05);
}

.select-badge {
  position: absolute;
  top: -12px;
  right: -12px;
  width: 30px;
  height: 30px;
  background: linear-gradient(135deg, #b98f45, #f0d79b);
  color: #1a0f08;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 800;
  z-index: 60;
  box-shadow: 0 6px 18px rgba(0,0,0,0.32);
}

/* ===== Scroll Track ===== */
.scroll-track {
  position: absolute;
  bottom: 118px;
  left: 50%;
  transform: translateX(-50%);
  width: 320px;
  height: 4px;
  background: rgba(210,173,99,0.15);
  border-radius: 2px;
  z-index: 30;
  display: none;
}

.scroll-track.active { display: block; }

.scroll-thumb {
  position: absolute;
  top: -2px;
  width: 40px;
  height: 8px;
  background: var(--gold);
  border-radius: 4px;
  box-shadow: 0 0 10px rgba(210,173,99,0.4);
  transition: left 0.1s;
}

/* ===== Selection Info ===== */
.selection-info {
  position: absolute;
  top: 160px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  color: var(--gold-light);
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.5s;
  text-shadow: 0 0 12px rgba(210,173,99,0.24);
}

.selection-info.visible { opacity: 1; }

/* ===== Hand Guide ===== */
.hand-guide {
  position: absolute;
  bottom: 148px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 15;
  display: flex;
  align-items: center;
  gap: 18px;
  color: rgba(210,173,99,0.54);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s;
}

.hand-guide.visible { opacity: 1; }
.hand-guide .arrow { font-size: 20px; }

/* ===== Reveal Panel ===== */
.reveal-panel {
  position: absolute;
  inset: 0;
  z-index: 70;
  display: none;
  padding: 120px 36px 100px 112px;
  background:
    radial-gradient(circle at 50% 24%, rgba(87, 60, 28, 0.16), transparent 28%),
    linear-gradient(180deg, rgba(14, 8, 6, 0.96), rgba(7, 4, 3, 0.98));
}

.reveal-panel.active {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.reveal-title {
  font-family: 'Noto Serif SC', serif;
  font-size: clamp(28px, 4vw, 44px);
  color: var(--gold);
  letter-spacing: 0.16em;
  margin-bottom: 34px;
  text-transform: uppercase;
  text-shadow: 0 0 24px rgba(210,173,99,0.18);
}

.reveal-cards {
  display: flex;
  gap: 28px;
  align-items: stretch;
  justify-content: center;
  flex-wrap: wrap;
}

.reveal-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: min(300px, 28vw);
  min-width: 220px;
  padding: 22px 18px 20px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(28,17,12,0.82), rgba(15,8,6,0.74));
  border: 1px solid rgba(210,173,99,0.12);
  box-shadow: 0 18px 40px rgba(0,0,0,0.24);
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s, transform 0.6s;
}

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

.slot-label {
  font-size: 11px;
  color: rgba(210,173,99,0.72);
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.reveal-slot .tarot-card {
  position: relative;
  width: 180px;
  height: 300px;
  --card-w: 180px;
  --card-h: 300px;
  cursor: default;
}

.reading-text {
  max-width: 240px;
  text-align: center;
  color: rgba(243, 234, 216, 0.78);
  font-size: 14px;
  line-height: 1.9;
  opacity: 0;
  transition: opacity 0.8s;
  min-height: 60px;
}

.reading-text.visible { opacity: 1; }

.reading-name {
  font-family: 'Noto Serif SC', serif;
  font-weight: 600;
  color: var(--gold);
  font-size: 18px;
  margin-bottom: 8px;
}

/* ===== Deco ===== */
.deco-line {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(210,173,99,0.22), transparent);
  z-index: 1;
  pointer-events: none;
}

/* ===== Responsive ===== */
@media (max-width: 1280px) {
  .stage-heading {
    font-size: clamp(30px, 4vw, 48px);
  }
}

@media (max-width: 1100px) {
  :root { --card-w: 150px; --card-h: 250px; --card-gap: 16px; }
  .archive-links {
    gap: 16px;
  }
  .stage-shell {
    inset: 18px;
  }
}

@media (max-width: 900px) {
  .corner-ornament,
  .title-bar {
    display: none;
  }

  .stage-shell {
    inset: 14px;
  }

  .archive-nav {
    left: 0;
    padding: 16px 18px;
  }

  .archive-links {
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .archive-brand {
    font-size: 22px;
  }

  .stage-header {
    width: min(680px, calc(100vw - 60px));
    top: 118px;
  }

  .scroll-arrow.left { left: 24px; }
  .scroll-arrow.right { right: 24px; }

  .reveal-panel {
    padding: 116px 22px 96px;
  }
}

@media (max-width: 800px) {
  :root { --card-w: 120px; --card-h: 200px; --card-gap: 12px; }
  .camera-box {
    width: 160px;
    height: 120px;
    top: 88px;
    right: 16px;
    border-radius: 16px;
  }
  .reveal-slot .tarot-card {
    width: 130px;
    height: 220px;
    --card-w: 130px;
    --card-h: 220px;
  }
  .reveal-cards { gap: 18px; }
  .reading-text { max-width: 190px; font-size: 12px; }
  .stage-footer {
    gap: 10px;
    font-size: 9px;
    letter-spacing: 0.16em;
  }
}

@media (max-width: 680px) {
  .archive-nav {
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
  }
  .archive-links {
    order: 3;
    width: 100%;
    justify-content: center;
  }
  .archive-cta {
    width: 100%;
  }
  .stage-header {
    top: 146px;
    width: calc(100vw - 34px);
  }
  .stage-heading {
    font-size: 30px;
  }
  .stage-subheading {
    font-size: 13px;
  }
  .selection-info {
    top: 222px;
    font-size: 11px;
  }
  .msg-box.top-msg {
    top: 248px;
  }
}

@media (max-width: 600px) {
  :root { --card-w: 100px; --card-h: 170px; --card-gap: 10px; }
  .camera-box {
    width: 118px;
    height: 88px;
    top: 18px;
    right: 14px;
  }
  .camera-box::after {
    inset: 8px;
    border-radius: 10px;
  }
  .cam-label {
    left: 10px;
    bottom: 8px;
    letter-spacing: 0.12em;
    font-size: 9px;
  }
  .stage-header {
    top: 164px;
  }
  .msg-box {
    max-width: calc(100vw - 28px);
    padding: 18px 18px;
    font-size: 14px;
  }
  .action-btn {
    width: calc(100vw - 36px);
    max-width: 360px;
    bottom: 62px;
    padding: 0 24px;
  }
  .scroll-track {
    width: calc(100vw - 72px);
    bottom: 130px;
  }
  .hand-guide {
    width: calc(100vw - 24px);
    justify-content: center;
    gap: 10px;
    font-size: 10px;
    bottom: 162px;
  }
  .reveal-slot {
    width: min(100%, 320px);
  }
  .reveal-slot .tarot-card {
    width: 100px;
    height: 170px;
    --card-w: 100px;
    --card-h: 170px;
  }
  .reveal-cards { gap: 12px; }
  .stage-footer {
    display: none;
  }
}
