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

:root {
  --navy: #0b0e1c;
  --navy-2: #141a33;
  --velvet: #3d1128;
  --velvet-2: #551635;
  --brass: #c9974a;
  --brass-bright: #e8c374;
  --cream: #ede2c8;
  --smoke: #877a63;
  --lane-1: #c9974a;
  --lane-2: #b8663f;
  --lane-3: #7d3a63;
  --lane-4: #3b5f7a;

  /* 아르데코 타이틀 전용 — 영문 문구에만 사용, 한글 본문은 Pretendard 유지 */
  --font-deco: "Cinzel", "Playfair Display", "Pretendard", serif;
  --font-deco-alt: "Playfair Display", "Cinzel", "Pretendard", serif;
  --font-display: "Pretendard", "Apple SD Gothic Neo", sans-serif;
  --font-body: "Pretendard", "Apple SD Gothic Neo", sans-serif;
  --font-mono: "Pretendard", "SF Mono", monospace;

  /* 색소폰 실루엣 마스크 (Stage 3 장식용) */
  --sax-silhouette-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 200"><path d="M62 8c6 0 10 5 10 10 0 4-2 7-5 9l3 6c5 1 8 5 8 10 0 6-5 10-11 10h-2l8 20c3 1 5 4 5 7 0 5-4 8-9 8-3 0-6-2-7-4l-10-26-14-2 6 60c1 8-5 15-13 15s-14-6-14-14c0-6 4-11 10-13l-8-78c-4-2-6-6-6-11 0-7 6-13 13-13 5 0 9 3 11 7l25-5z" fill="black"/></svg>');
}

html, body {
  height: 100%;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 0%, var(--navy-2) 0%, var(--navy) 60%, #030408 100%);
  color: var(--cream);
  font-family: var(--font-body);
  position: relative;
}

.screen::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 40% at 20% 15%, rgba(201,151,74,0.09), transparent 60%),
    radial-gradient(ellipse 50% 35% at 85% 80%, rgba(125,58,99,0.12), transparent 60%);
  z-index: -1;
}

/* 무대 포스터풍 코너 장식 프레임 — 아르데코 이중 테두리 */
.screen::after {
  content: "";
  position: absolute;
  inset: 14px;
  pointer-events: none;
  border: 1px solid rgba(201, 151, 74, 0.18);
  outline: 1px solid rgba(201, 151, 74, 0.08);
  outline-offset: 5px;
  z-index: -1;
}

/* 네 귀퉁이의 아르데코 부채꼴(선버스트) 장식 */
.deco-corners {
  position: fixed;
  inset: 14px;
  pointer-events: none;
  z-index: 2;
}

.deco-corner {
  position: absolute;
  width: 44px;
  height: 44px;
  background:
    repeating-conic-gradient(from 180deg at 0% 0%,
      rgba(201,151,74,0.55) 0deg 4deg,
      transparent 4deg 16deg);
  -webkit-mask: radial-gradient(circle at 0% 0%, #000 60%, transparent 61%);
  mask: radial-gradient(circle at 0% 0%, #000 60%, transparent 61%);
  opacity: 0.65;
}

.deco-corner-tl { top: 0; left: 0; }
.deco-corner-tr { top: 0; right: 0; transform: scaleX(-1); }
.deco-corner-bl { bottom: 0; left: 0; transform: scaleY(-1); }
.deco-corner-br { bottom: 0; right: 0; transform: scale(-1, -1); }

#stars {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(2px 2px at 10% 20%, rgba(232, 195, 116,0.5) 0%, transparent 60%),
    radial-gradient(2px 2px at 80% 30%, rgba(232, 195, 116,0.4) 0%, transparent 60%),
    radial-gradient(1.5px 1.5px at 40% 70%, rgba(232, 195, 116,0.4) 0%, transparent 60%),
    radial-gradient(1.5px 1.5px at 60% 85%, rgba(232, 195, 116,0.3) 0%, transparent 60%),
    radial-gradient(2px 2px at 90% 60%, rgba(232, 195, 116,0.4) 0%, transparent 60%),
    radial-gradient(1px 1px at 25% 45%, rgba(232, 195, 116,0.3) 0%, transparent 60%);
  animation: twinkle 4s ease-in-out infinite alternate;
  z-index: 0;
}

@keyframes twinkle {
  from { opacity: 0.5; }
  to { opacity: 1; }
}

.screen {
  position: relative;
  z-index: 1;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  height: 100dvh;
  width: 100vw;
  text-align: center;
  padding: 16px;
  overflow-y: auto;
}

.screen.active {
  display: flex;
}

.sax-silhouette {
  font-size: 80px;
  margin-bottom: 8px;
  filter: drop-shadow(0 0 20px rgba(201, 151, 74, 0.5));
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-5deg); }
  50% { transform: translateY(-12px) rotate(5deg); }
}

.title {
  font-family: var(--font-deco);
  font-size: clamp(36px, 8.5vw, 66px);
  letter-spacing: 5px;
  color: var(--brass-bright);
  text-shadow: 0 0 20px rgba(232, 195, 116, 0.6), 0 0 40px rgba(232, 195, 116, 0.3);
  font-weight: 700;
  margin-bottom: 8px;
  text-wrap: balance;
}

.ornament {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 8px;
  color: var(--brass);
  opacity: 0.55;
  margin-bottom: 14px;
}

.ornament::before,
.ornament::after {
  content: "";
  width: 34px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--brass));
}

.ornament::after { background: linear-gradient(90deg, var(--brass), transparent); }

.subtitle {
  font-family: var(--font-display);
  font-size: clamp(20px, 4vw, 26px);
  letter-spacing: 0.2px;
  color: var(--cream);
  opacity: 0.9;
  margin-bottom: 20px;
  font-weight: 600;
}

.desc {
  font-size: 20px;
  line-height: 1.7;
  opacity: 0.85;
  margin-bottom: 32px;
  max-width: 420px;
}

.hint {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.5px;
  opacity: 0.5;
}

.btn-primary, .btn-secondary {
  position: relative;
  font-family: var(--font-display);
  font-size: 21px;
  letter-spacing: 0.2px;
  padding: 16px 46px;
  border-radius: 999px;
  border: 1px solid rgba(36, 20, 5, 0.3);
  cursor: pointer;
  background: linear-gradient(135deg, var(--brass-bright), var(--brass));
  color: #241405;
  font-weight: 700;
  box-shadow: 0 6px 24px rgba(201, 151, 74, 0.4);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary::before, .btn-secondary::before {
  content: "◆";
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 8px;
  opacity: 0.5;
}

.btn-primary::after, .btn-secondary::after {
  content: "◆";
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 8px;
  opacity: 0.5;
}

.btn-primary:hover, .btn-secondary:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 10px 30px rgba(201, 151, 74, 0.55);
}

.btn-primary:active, .btn-secondary:active {
  transform: translateY(0) scale(0.98);
}

/* ===================== STAGE SCREENS (공통) ===================== */

#screen-stage1, #screen-stage2, #screen-stage3, #screen-stage4 {
  justify-content: flex-start;
  padding: 12px 12px 20px;
  gap: 6px;
}

.hud {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 7px 16px;
  background: rgba(18, 23, 53, 0.6);
  border: 1px solid rgba(201, 151, 74, 0.25);
  border-radius: 16px;
  margin-bottom: 8px;
  font-family: var(--font-mono);
}

.hud-item {
  display: flex;
  flex-direction: column;
  font-size: 12px;
  letter-spacing: 1.5px;
  opacity: 0.6;
}

.hud-item span {
  font-size: 23px;
  font-weight: 700;
  color: var(--brass-bright);
  opacity: 1;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}

.hud-item.judge {
  min-width: 90px;
  font-size: 16px;
  font-weight: 700;
  color: var(--brass-bright);
  opacity: 1;
  justify-content: center;
  align-items: center;
}

#scene {
  position: relative;
  width: min(680px, 94vw);
  aspect-ratio: 1448 / 1086;
  max-height: 66vh;
  background: var(--navy);
  border: 1px solid rgba(201, 151, 74, 0.3);
  border-radius: 14px;
  overflow: hidden;
}

.scene-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  user-select: none;
  -webkit-user-drag: none;
  filter: brightness(1.28) contrast(1.05) saturate(1.08);
}

.scene-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 40%, rgba(232, 195, 116,0.14), transparent 70%);
}

.hidden-item {
  position: absolute;
  transform: translate(-50%, -50%);
  width: clamp(52px, 13vw, 84px);
  height: clamp(52px, 13vw, 84px);
  background: none;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  touch-action: manipulation;
}

.hidden-item.bonus {
  width: clamp(36px, 9vw, 56px);
  height: clamp(36px, 9vw, 56px);
}

.hidden-item:hover,
.hidden-item:focus-visible {
  background: radial-gradient(circle, rgba(232, 195, 116,0.22), transparent 70%);
  box-shadow: 0 0 18px rgba(232, 195, 116,0.35);
}

.hidden-item.found {
  pointer-events: none;
}

.scene-hint {
  margin-top: 10px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 19px;
  opacity: 0.7;
}

.checklist-label,
.shelf-label {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 1px;
  opacity: 0.55;
  margin-bottom: 4px;
}

.found-sparkle {
  position: absolute;
  font-size: 22px;
  pointer-events: none;
  animation: sparkleUp 0.7s ease-out forwards;
}

@keyframes sparkleUp {
  0% { opacity: 1; transform: translate(-50%, -50%) scale(0.6); }
  100% { opacity: 0; transform: translate(-50%, -140%) scale(1.4); }
}

/* ===================== PUZZLE SLOTS ===================== */

#puzzle-slots {
  display: flex;
  gap: 8px;
  margin-bottom: 4px;
}

.slot {
  width: clamp(34px, 8vw, 44px);
  height: clamp(34px, 8vw, 44px);
  border-radius: 10px;
  border: 1px dashed rgba(201, 151, 74, 0.35);
  background: rgba(18, 23, 53, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(16px, 4vw, 22px);
  filter: grayscale(1) opacity(0.25);
  transition: filter 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}

.slot.filled {
  filter: grayscale(0) opacity(1);
  border-color: rgba(232, 195, 116, 0.6);
  border-style: solid;
  background: rgba(201, 151, 74, 0.12);
  animation: slotPop 0.4s ease-out;
}

@keyframes slotPop {
  0% { transform: scale(0.5); }
  60% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

/* ===================== ENDING SCREEN (생일 카드 오픈) ===================== */

.cake {
  font-size: 56px;
  margin-bottom: 8px;
  animation: float 2.5s ease-in-out infinite;
}

/* 봉투가 닫혀 있는 동안 카드 위에 떠 있는 클릭 유도 힌트 */
.envelope-hint {
  position: absolute;
  inset: 0;
  z-index: 7;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.birthday-card.open .envelope-hint {
  opacity: 0;
}

.envelope-hint-icon {
  font-size: 44px;
  animation: float 2.5s ease-in-out infinite;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,0.4));
}

.envelope-hint-label {
  font-size: 15px;
  color: var(--cream);
  opacity: 0.75;
}

.birthday-card {
  position: relative;
  width: min(400px, 90vw);
  min-height: 320px;
  cursor: pointer;
  perspective: 1200px;
}

.card-front,
.card-inside {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  border: 1px solid rgba(201, 151, 74, 0.4);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  padding: 30px;
  text-align: center;
  backface-visibility: hidden;
  transition: transform 0.7s cubic-bezier(0.4, 0.1, 0.2, 1), opacity 0.4s ease;
}

.card-portrait {
  width: min(280px, 80%);
  height: auto;
  border-radius: 16px;
  border: 1px solid rgba(232, 195, 116, 0.5);
  box-shadow: 0 10px 30px rgba(0,0,0,0.45), 0 0 0 4px rgba(11,14,28,0.6);
  margin-bottom: 16px;
}

.card-inside-title {
  font-family: var(--font-deco);
  letter-spacing: 3px;
}

/* ===================== 봉투에서 카드가 펴지는 연출 ===================== */

.envelope-fold {
  position: absolute;
  left: -1px;
  right: -1px;
  height: 52%;
  z-index: 6;
  pointer-events: none;
  background: linear-gradient(180deg, var(--navy-2), var(--velvet));
  border: 1px solid rgba(201, 151, 74, 0.4);
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
  transition: transform 0.6s cubic-bezier(0.65, 0, 0.35, 1), opacity 0.3s ease 0.5s;
  opacity: 1;
}

.envelope-fold::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(90deg, rgba(0,0,0,0.06) 0 3px, transparent 3px 9px);
}

.envelope-fold-top {
  top: -1px;
  border-radius: 20px 20px 0 0;
  transform-origin: top center;
}

.envelope-fold-bottom {
  bottom: -1px;
  border-radius: 0 0 20px 20px;
  transform-origin: bottom center;
}

.birthday-card.open .envelope-fold-top {
  transform: rotateX(100deg);
  opacity: 0;
}

.birthday-card.open .envelope-fold-bottom {
  transform: rotateX(-100deg);
  opacity: 0;
}

.card-front {
  background: linear-gradient(160deg, var(--navy-2), var(--velvet));
}

.card-inside {
  background: linear-gradient(160deg, var(--velvet), var(--navy-2));
  transform: rotateY(180deg);
  opacity: 0;
  pointer-events: none;
}

.birthday-card.open .card-front {
  transform: rotateY(-180deg);
  opacity: 0;
  pointer-events: none;
}

.birthday-card.open .card-inside {
  transform: rotateY(0deg) scale(1);
  opacity: 1;
  pointer-events: auto;
  animation: cardOpenPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes cardOpenPop {
  0% { box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
  40% { box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 70px rgba(232,195,116,0.55); }
  100% { box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 0 rgba(232,195,116,0); }
}

.birthday-card.open .card-inside::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 22px;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle, rgba(232,195,116,0.4), transparent 70%);
  animation: cardGlowBurst 0.7s ease-out;
}

@keyframes cardGlowBurst {
  0% { opacity: 0.9; transform: scale(0.9); }
  100% { opacity: 0; transform: scale(1.25); }
}

.confetti {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 5;
}

.confetti-piece {
  position: absolute;
  top: -10px;
  border-radius: 2px;
  animation: fall linear forwards;
}

.confetti-piece.shape-circle { border-radius: 50%; }

.confetti-piece.shape-star {
  background: none !important;
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

@keyframes fall {
  to { transform: translateY(110vh) rotate(360deg); opacity: 0.3; }
}

/* ===================== STAGE CLEAR TRANSITION ===================== */

#screen-stage-clear .title {
  font-size: clamp(28px, 6vw, 44px);
  animation: clearPulse 1.2s ease-in-out infinite;
}

@keyframes clearPulse {
  0%, 100% { text-shadow: 0 0 20px rgba(232, 195, 116, 0.6), 0 0 40px rgba(232, 195, 116, 0.3); }
  50% { text-shadow: 0 0 32px rgba(232, 195, 116, 0.9), 0 0 60px rgba(232, 195, 116, 0.5); }
}

/* ===================== STAGE 2: 색소폰 핑거링 리듬게임 (4레인) ===================== */

#rhythm-area {
  position: relative;
  width: min(460px, 92vw);
  height: min(52vh, 440px);
  display: flex;
  gap: 3px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(201, 151, 74,0.10) 0%, transparent 60%),
    linear-gradient(180deg, rgba(11,14,31,0.5) 0%, rgba(5,6,17,0.92) 100%);
  border: 1px solid rgba(201, 151, 74, 0.3);
  border-radius: 14px;
  overflow: hidden;
  margin: 8px 0;
}

.rhythm-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 30%, rgba(232, 195, 116,0.08), transparent 65%);
  z-index: 1;
}

.rhythm-track {
  position: relative;
  flex: 1;
  height: 100%;
  border-right: 1px solid rgba(201, 151, 74, 0.1);
}

.rhythm-track:nth-child(2) { background: linear-gradient(180deg, transparent, rgba(201, 151, 74,0.07)); }
.rhythm-track:nth-child(3) { background: linear-gradient(180deg, transparent, rgba(201,107,74,0.07)); }
.rhythm-track:nth-child(4) { background: linear-gradient(180deg, transparent, rgba(138,59,107,0.07)); }
.rhythm-track:nth-child(5) { background: linear-gradient(180deg, transparent, rgba(59,107,138,0.07)); }

.rhythm-note {
  position: absolute;
  left: 8%;
  width: 84%;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  box-shadow: 0 0 12px rgba(0,0,0,0.4);
}

.rhythm-note.lane-0 { background: linear-gradient(135deg, var(--lane-1), #fff2c9); }
.rhythm-note.lane-1 { background: linear-gradient(135deg, var(--lane-2), #ffd6c2); }
.rhythm-note.lane-2 { background: linear-gradient(135deg, var(--lane-3), #f0c8e0); }
.rhythm-note.lane-3 { background: linear-gradient(135deg, var(--lane-4), #c6e8f7); }

.rhythm-hit-line {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 68px;
  height: 4px;
  background: linear-gradient(90deg, var(--lane-1), var(--lane-2), var(--lane-3), var(--lane-4));
  box-shadow: 0 0 16px rgba(232, 195, 116, 0.7);
  z-index: 2;
}

.rhythm-keys {
  width: min(460px, 92vw);
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.rhythm-key-btn {
  flex: 1;
  padding: 12px 0;
  border-radius: 12px;
  border: 1px solid var(--key-color, rgba(201, 151, 74, 0.35));
  background: rgba(18, 23, 53, 0.7);
  color: var(--key-color, var(--brass-bright));
  font-family: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  cursor: pointer;
  user-select: none;
  touch-action: manipulation;
  transition: background 0.08s ease, transform 0.08s ease;
}

.rhythm-key-btn.lane-0 { --key-color: var(--lane-1); }
.rhythm-key-btn.lane-1 { --key-color: var(--lane-2); }
.rhythm-key-btn.lane-2 { --key-color: var(--lane-3); }
.rhythm-key-btn.lane-3 { --key-color: var(--lane-4); }

.rhythm-key-btn .rk-label {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 20px;
}

.rhythm-key-btn .rk-note {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 15px;
  opacity: 0.7;
}

.rhythm-key-btn.pressed {
  background: color-mix(in srgb, var(--key-color, var(--brass)) 40%, transparent);
  transform: scale(0.94);
}

.rhythm-feedback {
  position: absolute;
  bottom: 96px;
  font-size: 14px;
  font-weight: 700;
  pointer-events: none;
  animation: popUp 0.5s ease-out forwards;
  z-index: 3;
}

@keyframes popUp {
  0% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-30px); }
}

.fb-perfect { color: var(--brass-bright); }
.fb-good { color: #a8d8b9; }
.fb-miss { color: var(--smoke); }

/* ===================== STAGE 3: 카드 매칭 ===================== */

#memory-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  width: min(360px, 90vw);
  margin-top: 8px;
}

.memory-card {
  aspect-ratio: 1;
  border-radius: 10px;
  cursor: pointer;
  perspective: 600px;
  animation: cardFloat 4s ease-in-out infinite;
}

@keyframes cardFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

.memory-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.4s ease;
  transform-style: preserve-3d;
}

.memory-card.flipped .memory-card-inner,
.memory-card.matched .memory-card-inner {
  transform: rotateY(180deg);
}

.memory-card-face {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  backface-visibility: hidden;
  font-size: clamp(22px, 6vw, 30px);
}

.memory-card-back {
  background: linear-gradient(160deg, var(--navy-2), var(--velvet));
  border: 1px solid rgba(201, 151, 74, 0.35);
}

.memory-card-back::after {
  content: "🎷";
  opacity: 0.3;
  font-size: 18px;
}

.memory-card-front {
  background: rgba(201, 151, 74, 0.15);
  border: 1px solid rgba(232, 195, 116, 0.5);
  transform: rotateY(180deg);
}

.memory-card.matched .memory-card-front {
  background: rgba(201, 151, 74, 0.3);
  box-shadow: 0 0 14px rgba(232, 195, 116,0.5);
}

/* ===================== STAGE 4: LP판 순서 맞추기 ===================== */

#lp-slots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px 10px;
  margin: 26px 0 16px;
  width: min(360px, 88vw);
}

.lp-slot {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 2px dashed rgba(201, 151, 74, 0.4);
  background: rgba(18, 23, 53, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lp-slot::before {
  content: attr(data-order);
  position: absolute;
  top: -24px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 18px;
  color: var(--brass-bright);
  opacity: 0.9;
  background: var(--navy);
  padding: 0 4px;
}

.lp-slot.drag-over {
  border-color: var(--brass-bright);
  background: rgba(201, 151, 74, 0.15);
}

.lp-slot .lp-disc.spinning {
  animation: spin 2s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

#btn-play-lp {
  margin: 4px 0 14px;
}

#btn-play-lp:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none !important;
}

#lp-shelf {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  width: min(420px, 92vw);
  padding: 14px;
  background: rgba(18, 23, 53, 0.35);
  border-radius: 16px;
  min-height: 90px;
}

.lp-disc {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  cursor: grab;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  border: 2px solid rgba(232, 195, 116, 0.4);
  box-shadow: 0 4px 14px rgba(0,0,0,0.4);
  transition: transform 0.15s ease, opacity 0.15s ease;
  touch-action: none;
}

.lp-disc:active {
  cursor: grabbing;
  transform: scale(1.08);
}

.lp-disc.dragging {
  opacity: 0.4;
}

.lp-disc.previewing {
  animation: lpPreviewPulse 0.4s ease-in-out infinite alternate;
  box-shadow: 0 0 18px rgba(232, 195, 116, 0.65);
}

@keyframes lpPreviewPulse {
  from { transform: scale(1); }
  to { transform: scale(1.1); }
}

.lp-disc.locked {
  cursor: default;
  border-color: rgba(232, 195, 116, 0.95);
  box-shadow: 0 0 14px rgba(232, 195, 116, 0.55), 0 4px 14px rgba(0,0,0,0.4);
}

.lp-disc.locked::after {
  content: "✓";
  position: absolute;
  top: -4px;
  right: -4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--brass-bright);
  color: #241405;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===================== SECURITY GATE (이름 인증) ===================== */

#screen-gate {
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 30%, #0d1420 0%, #05070c 70%);
}

#gate-form {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gate-title {
  font-size: clamp(28px, 6vw, 40px);
  letter-spacing: 3px;
}

.gate-input {
  font-family: var(--font-body);
  font-size: 20px;
  text-align: center;
  padding: 14px 20px;
  width: min(280px, 80vw);
  border-radius: 999px;
  border: 1px solid rgba(201, 151, 74, 0.4);
  background: rgba(18, 23, 53, 0.7);
  color: var(--cream);
  margin-bottom: 16px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.gate-input:focus {
  border-color: var(--brass-bright);
  box-shadow: 0 0 0 3px rgba(232, 195, 116, 0.2);
}

.gate-input::placeholder {
  color: var(--smoke);
}

.gate-result {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 16px;
  letter-spacing: 1px;
  min-height: 20px;
}

.gate-result.granted {
  color: #8fd9a8;
}

.gate-result.denied {
  color: #ff4d4d;
  animation: textFlicker 0.4s steps(2) 3;
}

@keyframes textFlicker {
  50% { opacity: 0.3; }
}

.gate-anyway-btn {
  margin-top: 14px;
  font-size: 14px;
  padding: 10px 24px;
}

/* 위→아래→위로 훑는 레드 스캔 레이저 */
.scan-laser {
  position: absolute;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #ff3b3b, transparent);
  box-shadow: 0 0 20px 4px rgba(255, 59, 59, 0.8);
  top: 0;
  opacity: 0;
  z-index: 3;
  pointer-events: none;
}

.scan-laser.scanning {
  opacity: 1;
  animation: laserSweep 1.1s ease-in-out;
}

@keyframes laserSweep {
  0% { top: 0; }
  50% { top: 100%; }
  100% { top: 0; }
}

/* 접근 거부 시 화면 전체가 붉게 깜빡이는 비상경보 오버레이 */
.alarm-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 0, 0, 0.18);
  opacity: 0;
  z-index: 1;
  pointer-events: none;
}

.alarm-overlay.alarming {
  animation: alarmFlash 0.5s steps(1) 4;
}

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

/* ===================== ENTRANCE (입구) ===================== */

#screen-entrance {
  position: relative;
  padding: 0;
  overflow: hidden;
}

.entrance-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 75% center;
  user-select: none;
  -webkit-user-drag: none;
}

.entrance-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(5,6,12,0.75) 0%, rgba(5,6,12,0.35) 55%, rgba(5,6,12,0.15) 100%);
}

.entrance-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px;
}

.entrance-title {
  text-shadow: 0 0 24px rgba(232, 195, 116, 0.7), 0 4px 20px rgba(0,0,0,0.6);
}

.entrance-date {
  font-family: var(--font-mono);
  font-size: 17px;
  letter-spacing: 3px;
  color: var(--brass-bright);
  opacity: 0.85;
  margin-bottom: 12px;
}

.entrance-btn {
  margin-top: 22px;
  animation: entranceGlow 2.2s ease-in-out infinite;
}

.music-credit {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  z-index: 2;
  font-size: 11px;
  letter-spacing: 0.2px;
  color: var(--cream);
  opacity: 0.45;
  text-align: center;
  pointer-events: none;
}

@keyframes entranceGlow {
  0%, 100% { box-shadow: 0 6px 24px rgba(201, 151, 74, 0.4); }
  50% { box-shadow: 0 6px 34px rgba(232, 195, 116, 0.7); }
}

@media (max-width: 480px) {
  .hud { gap: 16px; padding: 8px 14px; }
  .hud-item span { font-size: 18px; }
}

/* ===================== 재즈 팝업북 연출 =====================
   원칙: 실제 게임 판정 요소(#scene, .hidden-item, #rhythm-area, #memory-grid,
   #lp-slots, #lp-shelf 등)에는 transform/perspective를 절대 걸지 않는다.
   3D 종이 레이어(fold-layer)는 게임과 형제 요소로 두고 장식만 담당한다. */

.stage-screen {
  position: relative;
  perspective: 1400px;
  perspective-origin: center 55%;
}

.fold-layer {
  animation-fill-mode: both;
  animation-duration: 0.8s;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
  transform-style: preserve-3d;
  backface-visibility: hidden;
  will-change: transform, opacity;
}

.stage-screen.stage-entering .fold-layer {
  animation-name: foldUp;
}

@keyframes foldUp {
  0% { opacity: 0; transform: rotateX(72deg) translateY(28px) scaleY(0.9); }
  100% { opacity: 1; transform: rotateX(0deg) translateY(0) scaleY(1); }
}

/* 장식 레이어 — 클릭을 절대 가로채지 않음 */
.stage-popup-bg,
.stage-popup-curtain,
.stage-popup-floor,
.stage-popup-foreground,
.stage-intro-card {
  pointer-events: none;
}

.stage-popup-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  transform-origin: center 30%;
}

.stage-screen.stage-entering .stage-popup-bg { animation-delay: 0.02s; }

.stage-theme-1 .stage-popup-bg { background: radial-gradient(ellipse 70% 55% at 50% 10%, rgba(201,151,74,0.14), transparent 65%); }
.stage-theme-2 .stage-popup-bg { background: radial-gradient(ellipse 70% 55% at 30% 8%, rgba(125,58,99,0.18), transparent 65%); }
.stage-theme-3 .stage-popup-bg { background: radial-gradient(ellipse 70% 55% at 70% 10%, rgba(201,107,74,0.16), transparent 65%); }
.stage-theme-4 .stage-popup-bg { background: radial-gradient(ellipse 80% 60% at 50% 6%, rgba(59,107,138,0.18), transparent 65%); }

/* 종이 그레인 텍스처 — 배경 전체가 펼쳐진 책 페이지처럼 보이도록 */
.stage-popup-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.5;
  mix-blend-mode: overlay;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="180" height="180"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency="0.85" numOctaves="2" stitchTiles="stitch"/><feColorMatrix type="saturate" values="0"/></filter><rect width="100%25" height="100%25" filter="url(%23n)" opacity="0.35"/></svg>');
  background-size: 180px 180px;
}

/* 책 가운데 접힌 자국(book spine) — 은은한 그림자 두 줄 */
.stage-popup-bg::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 64px;
  transform: translateX(-50%);
  background:
    linear-gradient(90deg,
      transparent 0%,
      rgba(0,0,0,0.22) 46%,
      rgba(0,0,0,0.32) 50%,
      rgba(0,0,0,0.22) 54%,
      transparent 100%);
  opacity: 0.55;
}

/* 페이지 가장자리가 살짝 말려 그림자가 지는 비네트 */
.stage-popup-floor::before {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 30px 40px -20px rgba(0,0,0,0.35);
}

.stage-popup-curtain {
  position: absolute;
  inset: 0;
  z-index: 1;
  transform-origin: bottom center;
}

.stage-screen.stage-entering .stage-popup-curtain { animation-delay: 0.12s; }

.stage-popup-curtain::before,
.stage-popup-curtain::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 14%;
  background:
    repeating-linear-gradient(90deg,
      rgba(0,0,0,0.22) 0px, rgba(0,0,0,0.22) 4px,
      rgba(255,255,255,0.05) 4px, rgba(255,255,255,0.05) 7px,
      transparent 7px, transparent 13px),
    linear-gradient(180deg, rgba(85,22,53,0.6), rgba(11,14,28,0.18) 72%);
  box-shadow: inset -8px 0 20px rgba(0,0,0,0.35);
}

.stage-popup-curtain::before { left: 0; }
.stage-popup-curtain::after { right: 0; transform: scaleX(-1); }

/* 커튼 상단의 금술(태슬) 장식 */
.stage-popup-curtain .curtain-tassels {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 14px;
  background: repeating-linear-gradient(90deg,
    rgba(201,151,74,0.5) 0 3px, transparent 3px 16px);
  opacity: 0.7;
}

.stage-popup-floor {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 112%;
  height: 22%;
  z-index: 1;
  transform: translateX(-50%);
  transform-origin: bottom center;
  background: linear-gradient(180deg, transparent, rgba(201,151,74,0.06) 60%);
  border-top: 1px solid rgba(201,151,74,0.12);
}

.stage-screen.stage-entering .stage-popup-floor { animation-delay: 0.2s; }

.stage-popup-foreground {
  position: absolute;
  inset: 0;
  z-index: 2;
  transform-origin: bottom center;
}

.stage-screen.stage-entering .stage-popup-foreground { animation-delay: 0.32s; }

.stage-theme-1 .stage-popup-foreground::after,
.stage-theme-2 .stage-popup-foreground::after,
.stage-theme-3 .stage-popup-foreground::after,
.stage-theme-4 .stage-popup-foreground::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.5;
}

/* Stage 1 — 처음 켜지는 조명: 위쪽 아르데코 부채꼴 스포트라이트 */
.stage-theme-1 .stage-popup-foreground::after {
  top: 0;
  bottom: auto;
  height: 30%;
  background:
    conic-gradient(from 210deg at 50% 0%,
      transparent 0deg, rgba(232,195,116,0.14) 20deg, transparent 40deg,
      transparent 50deg, rgba(232,195,116,0.14) 70deg, transparent 90deg,
      transparent 100deg, rgba(232,195,116,0.14) 120deg, transparent 140deg);
}

/* Stage 2 — 피아노 건반 라인이 무대 하단을 가로지름 */
.stage-theme-2 .stage-popup-foreground::before {
  content: "";
  position: absolute;
  left: 6%;
  right: 6%;
  bottom: 0;
  height: 20px;
  background:
    repeating-linear-gradient(90deg,
      #efe6d2 0 4.9%, #d8cba8 4.9% 5%,
      #efe6d2 5% 9.9%, #1a1a1a 9.9% 10%),
    linear-gradient(180deg, rgba(0,0,0,0.15), rgba(0,0,0,0.35));
  background-blend-mode: multiply, normal;
  opacity: 0.5;
  border-radius: 2px 2px 0 0;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.4);
}

.stage-theme-2 .stage-popup-foreground::after {
  background: radial-gradient(circle 3px, rgba(232,195,116,0.5) 98%, transparent) 12% 85%/40px 40px no-repeat;
}

/* Stage 3 — 색소폰 실루엣 + 따뜻한 스포트라이트 */
.stage-theme-3 .stage-popup-foreground::before {
  content: "";
  position: absolute;
  right: 4%;
  bottom: 4%;
  width: clamp(60px, 16vw, 110px);
  height: clamp(110px, 30vw, 200px);
  background: radial-gradient(ellipse at 30% 20%, rgba(232,195,116,0.16), transparent 70%);
  -webkit-mask: var(--sax-silhouette-mask);
  mask: var(--sax-silhouette-mask);
  opacity: 0.4;
}

.stage-theme-3 .stage-popup-foreground::after {
  top: 8%;
  bottom: auto;
  height: 60%;
  background: radial-gradient(ellipse 45% 70% at 50% 0%, rgba(232,195,116,0.18), transparent 70%);
}

/* Stage 4 — 늦은 밤, 별빛과 크리스탈 샹들리에가 모두 모임 */
.stage-theme-4 .stage-popup-foreground::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: min(140px, 30vw);
  height: 56px;
  transform: translateX(-50%);
  background:
    radial-gradient(circle 3px at 20% 70%, rgba(232,195,116,0.55), transparent 60%),
    radial-gradient(circle 3px at 40% 85%, rgba(232,195,116,0.5), transparent 60%),
    radial-gradient(circle 3px at 60% 85%, rgba(232,195,116,0.5), transparent 60%),
    radial-gradient(circle 3px at 80% 70%, rgba(232,195,116,0.55), transparent 60%),
    radial-gradient(circle 4px at 50% 40%, rgba(232,195,116,0.6), transparent 65%),
    linear-gradient(180deg, transparent 0%, transparent 30%, rgba(201,151,74,0.4) 30%, rgba(201,151,74,0.4) 34%, transparent 34%);
  opacity: 0.75;
  filter: drop-shadow(0 0 10px rgba(232,195,116,0.35));
}

.stage-theme-4 .stage-popup-foreground::after {
  background:
    radial-gradient(1.5px 1.5px at 15% 20%, rgba(232,195,116,0.6), transparent 60%),
    radial-gradient(1.5px 1.5px at 85% 15%, rgba(232,195,116,0.5), transparent 60%),
    radial-gradient(1px 1px at 45% 12%, rgba(232,195,116,0.4), transparent 60%),
    radial-gradient(1.5px 1.5px at 25% 55%, rgba(232,195,116,0.35), transparent 60%),
    radial-gradient(1px 1px at 70% 60%, rgba(232,195,116,0.3), transparent 60%);
}

/* 게임 실제 콘텐츠 프레임 — transform 없음, opacity/pointer-events만 제어 */
.stage-game-frame {
  position: relative;
  z-index: 3;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.stage-game-frame.frame-ready {
  opacity: 1;
  pointer-events: auto;
  /* 팝업 애니메이션이 남긴 transform/3D 컨텍스트를 제거 — will-change: transform는
     transform 값이 none이어도 새로운 containing block을 만들어서, 안의
     position:fixed 드래그 좌표가 뷰포트가 아니라 이 요소 기준으로 계산되게 만든다.
     그 결과 드래그 중인 LP판이 손가락/마우스 위치에서 어긋나 보인다. */
  animation: none;
  transform: none;
  transform-style: flat;
  will-change: auto;
}

.stage-screen.stage-entering .stage-game-frame { animation-name: frameSettle; animation-delay: 0.26s; animation-duration: 0.5s; }

@keyframes frameSettle {
  0% { opacity: 0; transform: translateY(10px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* 스테이지 타이틀 카드 — 짧게 나타났다 사라짐 */
.stage-intro-card {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: rgba(5,6,14,0.55);
  opacity: 0;
}

.stage-intro-card::before {
  content: "";
  position: absolute;
  inset: 22px;
  border: 1px solid rgba(201,151,74,0.35);
  outline: 1px solid rgba(201,151,74,0.15);
  outline-offset: 5px;
}

.stage-intro-card.intro-visible {
  opacity: 1;
  animation: introFade 1.8s ease-in-out forwards;
}

@keyframes introFade {
  0% { opacity: 0; }
  15%, 70% { opacity: 1; }
  100% { opacity: 0; }
}

.stage-intro-eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 4px;
  color: var(--brass);
  opacity: 0.8;
  margin-bottom: 6px;
}

.stage-intro-title {
  font-family: var(--font-deco);
  font-size: clamp(28px, 6.5vw, 48px);
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--brass-bright);
  text-shadow: 0 0 24px rgba(232,195,116,0.6);
  margin-bottom: 6px;
}

.stage-intro-tagline {
  font-size: 15px;
  opacity: 0.75;
}

/* ===================== SETLIST 진행 표시 (음표 4개) ===================== */

.setlist {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-left: auto;
}

.setlist-note {
  font-size: 16px;
  opacity: 0.25;
  filter: grayscale(1);
  transition: opacity 0.3s ease, filter 0.3s ease, transform 0.3s ease;
}

.setlist-note.note-done {
  opacity: 0.7;
  filter: grayscale(0);
}

.setlist-note.note-current {
  opacity: 1;
  filter: grayscale(0);
  color: var(--brass-bright);
  transform: scale(1.25);
  text-shadow: 0 0 10px rgba(232,195,116,0.7);
}

.setlist-final {
  justify-content: center;
  margin: 10px 0 4px;
}

.setlist-final .setlist-note { font-size: 26px; }

/* ===================== STAGE CLEAR 보강 ===================== */

.stage-clear-lights {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}

.stage-clear-lights span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(201,151,74,0.25);
  box-shadow: 0 0 10px rgba(201,151,74,0.15);
  animation: lightDim 1.4s ease-in-out infinite alternate;
}

.stage-clear-lights span:nth-child(2) { animation-delay: 0.15s; }
.stage-clear-lights span:nth-child(3) { animation-delay: 0.3s; }
.stage-clear-lights span:nth-child(4) { animation-delay: 0.45s; }
.stage-clear-lights span:nth-child(5) { animation-delay: 0.6s; }

@keyframes lightDim {
  from { opacity: 0.35; }
  to { opacity: 0.9; box-shadow: 0 0 16px rgba(232,195,116,0.5); }
}

#stage-clear-message {
  margin-bottom: 4px;
}

#setlist-clear {
  margin: 6px 0 18px;
  justify-content: center;
}

/* ===================== FULL SHOW COMPLETE (전체 완료 연출) ===================== */

.finale-gather {
  position: relative;
  height: 64px;
  width: min(320px, 80vw);
  margin-bottom: 6px;
}

.fg-piece {
  position: absolute;
  top: 50%;
  left: 50%;
  font-size: 30px;
  opacity: 0;
  animation: gatherIn 0.7s ease-out forwards;
  filter: drop-shadow(0 0 10px rgba(232,195,116,0.4));
}

.fg-1 { animation-delay: 0.05s; transform: translate(-160%, -50%); }
.fg-2 { animation-delay: 0.2s; transform: translate(-60%, -140%); }
.fg-3 { animation-delay: 0.35s; transform: translate(60%, -140%); }
.fg-4 { animation-delay: 0.5s; transform: translate(160%, -50%); }

@keyframes gatherIn {
  0% { opacity: 0; }
  100% { opacity: 1; transform: translate(-50%, -50%); }
}

#screen-finale-intro .title {
  font-size: clamp(24px, 5.5vw, 38px);
  max-width: 480px;
}

/* ===================== STAGE TRANSITION OVERLAY (책장 넘김) ===================== */

#stage-transition-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
}

#stage-transition-overlay.active {
  opacity: 1;
  visibility: visible;
}

.st-curtain {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  background: linear-gradient(135deg, var(--navy-2), var(--velvet));
  transition: transform 0.6s cubic-bezier(0.76, 0, 0.24, 1);
}

.st-curtain-left { left: 0; transform: translateX(-100%); transform-origin: left center; }
.st-curtain-right { right: 0; transform: translateX(100%); transform-origin: right center; }

#stage-transition-overlay.active .st-curtain-left,
#stage-transition-overlay.active .st-curtain-right {
  transform: translateX(0);
}

#stage-transition-overlay.active.st-closing .st-curtain-left { transform: translateX(-100%); }
#stage-transition-overlay.active.st-closing .st-curtain-right { transform: translateX(100%); }

.st-page {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 40%, rgba(232,195,116,0.06), transparent 60%);
}

.st-content {
  position: relative;
  z-index: 2;
  text-align: center;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease 0.3s, transform 0.4s ease 0.3s;
}

#stage-transition-overlay.active .st-content {
  opacity: 1;
  transform: translateY(0);
}

.st-eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 4px;
  color: var(--brass);
  opacity: 0.8;
  margin-bottom: 6px;
}

.st-title {
  font-family: var(--font-deco);
  font-size: clamp(26px, 5.5vw, 42px);
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--brass-bright);
  text-shadow: 0 0 24px rgba(232,195,116,0.6);
  margin-bottom: 6px;
}

.st-subtitle {
  font-size: 15px;
  opacity: 0.75;
}

@media (prefers-reduced-motion: reduce) {
  .fold-layer,
  .stage-intro-card.intro-visible,
  .fg-piece,
  .st-curtain,
  .st-content {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
