/* ============================================================
   Reset & base
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html { height: 100%; }

body {
  min-height: 100%;
  background: radial-gradient(ellipse at 50% 0%, #1c1230 0%, #060410 70%);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #f5e6c8;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 16px 52px;
  overflow-x: hidden;
  position: relative;
}

/* ============================================================
   Champagne bubbles
   ============================================================ */
#bubbles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.bubble {
  position: absolute;
  bottom: -16px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%,
    rgba(255, 255, 255, 0.85),
    rgba(240, 210, 130, 0.2)
  );
  border: 0.5px solid rgba(212, 175, 55, 0.35);
  animation: rise var(--dur) ease-in var(--delay) infinite;
}

@keyframes rise {
  0%   { transform: translateY(0)        translateX(0);          opacity: 0; }
  12%  { opacity: var(--bright); }
  88%  { opacity: var(--bright); }
  100% { transform: translateY(-112vh)   translateX(var(--drift)); opacity: 0; }
}

/* ============================================================
   Theater curtain — countdown lock
   ============================================================ */
#countdown-lock {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- Valance (decorative top bar) --- */
.theater-valance {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 68px;
  z-index: 6;
  background: linear-gradient(to bottom, #7a1020 0%, #5c0c16 75%, #450910 100%);
  border-bottom: 2px solid #d4af37;
  box-shadow:
    0 4px 0 rgba(212, 175, 55, 0.25),
    0 6px 24px rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 8px;
  transition: transform 1.4s cubic-bezier(0.76, 0, 0.24, 1);
}

/* Scalloped hem */
.theater-valance::after {
  content: '';
  position: absolute;
  bottom: -22px;
  left: 0;
  right: 0;
  height: 22px;
  background:
    radial-gradient(circle 12px at 50% 0, #5c0c16 11px, transparent 12px);
  background-size: 36px 22px;
  background-repeat: repeat-x;
}

.theater-valance.open {
  transform: translateY(-120%);
}

.valance-label {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #d4af37;
  opacity: 0.85;
}

/* --- Curtain panels --- */
.curtain {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 42%;
  z-index: 2;
  transition: transform 1.6s cubic-bezier(0.76, 0, 0.24, 1);

  /* Velvet pleat texture */
  background:
    repeating-linear-gradient(
      to right,
      rgba(255, 190, 120, 0.00)  0px,
      rgba(255, 190, 120, 0.055) 5px,
      rgba(0,   0,   0,   0.00)  9px,
      rgba(0,   0,   0,   0.14)  15px,
      rgba(255, 190, 120, 0.03)  21px,
      rgba(0,   0,   0,   0.00)  27px,
      rgba(0,   0,   0,   0.12)  33px,
      rgba(255, 190, 120, 0.05)  39px,
      rgba(0,   0,   0,   0.00)  45px
    ),
    linear-gradient(to bottom, #8b1420 0%, #6a0e18 45%, #8b1420 75%, #4a0810 100%);
}

.curtain-l { left: 0; }

/* Right curtain mirrors pleat direction */
.curtain-r {
  right: 0;
  background:
    repeating-linear-gradient(
      to left,
      rgba(255, 190, 120, 0.00)  0px,
      rgba(255, 190, 120, 0.055) 5px,
      rgba(0,   0,   0,   0.00)  9px,
      rgba(0,   0,   0,   0.14)  15px,
      rgba(255, 190, 120, 0.03)  21px,
      rgba(0,   0,   0,   0.00)  27px,
      rgba(0,   0,   0,   0.12)  33px,
      rgba(255, 190, 120, 0.05)  39px,
      rgba(0,   0,   0,   0.00)  45px
    ),
    linear-gradient(to bottom, #8b1420 0%, #6a0e18 45%, #8b1420 75%, #4a0810 100%);
}

/* Gold fringe on inner edges */
.curtain-l::after,
.curtain-r::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(to bottom,
    #d4af37, #f0d060, #a07c20, #d4af37, #f0d060, #a07c20, #d4af37
  );
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.55);
}

.curtain-l::after { right: 0; }
.curtain-r::after { left:  0; }

.curtain-l.open { transform: translateX(-105%); }
.curtain-r.open { transform: translateX(105%); }

/* Spotlight glow on stage center */
#countdown-lock::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(
    ellipse 55% 65% at 50% 45%,
    rgba(212, 175, 55, 0.045) 0%,
    transparent 70%
  );
  pointer-events: none;
}

/* --- Countdown content --- */
.cd-content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 80px 16px 24px;
  max-width: 340px;
  width: 100%;
}

.cd-soon {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: clamp(14px, 4vw, 18px);
  color: #d4af37;
  opacity: 0.8;
  letter-spacing: 0.5px;
}

.cd-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(38px, 13vw, 66px);
  font-weight: 900;
  line-height: 1.0;
  background: linear-gradient(135deg, #d4af37 0%, #f0d060 50%, #a07c20 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
}

.cd-sub {
  font-size: clamp(13px, 3.8vw, 16px);
  color: #e8d4a8;
  opacity: 0.75;
}

.cd-timer {
  display: flex;
  align-items: flex-start;
  gap: clamp(4px, 2vw, 12px);
  margin: 18px 0 4px;
}

.cd-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.cd-unit span {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(34px, 11vw, 64px);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  color: #f0d060;
  text-shadow:
    0 0 24px rgba(212, 175, 55, 0.55),
    0 2px 8px rgba(0, 0, 0, 0.6);
  line-height: 1;
  min-width: 2ch;
  display: block;
}

.cd-unit label {
  font-size: clamp(8px, 2.2vw, 11px);
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: rgba(212, 175, 55, 0.5);
}

.cd-sep {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(26px, 8.5vw, 52px);
  font-weight: 700;
  color: rgba(212, 175, 55, 0.35);
  line-height: 1.05;
  padding-top: clamp(2px, 1vw, 5px);
  user-select: none;
}

/* ============================================================
   Main app — ball / opéra style
   ============================================================ */
#app {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  transition: opacity 1s ease 0.4s;
}

#app.visible { opacity: 1; }

header {
  text-align: center;
  padding: 36px 0 12px;
  position: relative;
  z-index: 1;
  width: 100%;
}

.emoji-row {
  font-size: clamp(22px, 6vw, 32px);
  animation: bob 1.6s ease-in-out infinite alternate;
  user-select: none;
  margin-bottom: 6px;
}

@keyframes bob {
  from { transform: translateY(0); }
  to   { transform: translateY(-7px); }
}

h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(14px, 4vw, 20px);
  font-weight: 700;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: #d4af37;
  text-shadow: 0 0 20px rgba(212, 175, 55, 0.35);
}

.name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(36px, 12vw, 72px);
  font-weight: 900;
  line-height: 1.0;
  background: linear-gradient(135deg, #d4af37 0%, #f5e6c8 45%, #d4af37 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subtitle {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: clamp(13px, 3.8vw, 16px);
  color: #c8a87a;
  margin-top: 10px;
  opacity: 0.85;
  letter-spacing: 0.3px;
}

/* ============================================================
   Wheel
   ============================================================ */
main {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 440px;
  position: relative;
  z-index: 1;
}

.wheel-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 14px 0 4px;
}

#wheel {
  display: block;
  width: 100%;
  max-width: 380px;
  height: auto;
  border-radius: 50%;
  box-shadow:
    0 0 0 3px rgba(212, 175, 55, 0.4),
    0 0 0 6px rgba(212, 175, 55, 0.08),
    0 0 50px rgba(212, 175, 55, 0.18),
    0 12px 40px rgba(0, 0, 0, 0.6);
  cursor: pointer;
  touch-action: manipulation;
}

.pointer {
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 13px solid transparent;
  border-right: 13px solid transparent;
  border-top: 28px solid #d4af37;
  z-index: 10;
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.5));
}

/* ============================================================
   Spin button
   ============================================================ */
#spinBtn {
  margin-top: 22px;
  padding: 16px 52px;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(15px, 4.5vw, 19px);
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #0c0a14;
  background: linear-gradient(135deg, #d4af37 0%, #f0d060 50%, #c9a030 100%);
  border: none;
  border-radius: 50px;
  cursor: pointer;
  user-select: none;
  touch-action: manipulation;
  box-shadow:
    0 4px 24px rgba(212, 175, 55, 0.45),
    0 0 60px rgba(212, 175, 55, 0.12);
  transition: transform 0.12s ease, box-shadow 0.12s ease, opacity 0.2s;
}

#spinBtn:active:not(:disabled) {
  transform: scale(0.95);
  box-shadow: 0 2px 12px rgba(212, 175, 55, 0.4);
}

#spinBtn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
}

.hint {
  font-size: 11px;
  letter-spacing: 1px;
  color: rgba(212, 175, 55, 0.3);
  margin-top: 10px;
  text-transform: uppercase;
}

/* ============================================================
   Overlay + Modal
   ============================================================ */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 100;
}

.modal {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 110;
  background: linear-gradient(180deg, #1e1030 0%, #0c0818 100%);
  border-top: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 24px 24px 0 0;
  padding: 32px 24px 52px;
  max-height: 88vh;
  overflow-y: auto;
  animation: slideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes slideUp {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.modal-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}

.close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(212, 175, 55, 0.25);
  background: rgba(212, 175, 55, 0.08);
  color: #d4af37;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.close-btn:hover { background: rgba(212, 175, 55, 0.18); }

#modalTitle {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(22px, 6vw, 30px);
  font-weight: 900;
  color: #d4af37;
  text-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}

.prize-img {
  width: 100%;
  max-width: 280px;
  border-radius: 12px;
  box-shadow:
    0 0 0 2px rgba(212, 175, 55, 0.3),
    0 8px 28px rgba(0, 0, 0, 0.5);
  object-fit: cover;
}

#prizeMsg {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: clamp(16px, 4.5vw, 20px);
  line-height: 1.6;
  color: #e8d4a8;
  white-space: pre-line;
}

.again-btn {
  margin-top: 8px;
  width: 100%;
  max-width: 300px;
  padding: 15px;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #d4af37;
  background: rgba(212, 175, 55, 0.07);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 50px;
  cursor: pointer;
  touch-action: manipulation;
  transition: background 0.15s;
}

.again-btn:hover { background: rgba(212, 175, 55, 0.15); }

/* ============================================================
   Mute button
   ============================================================ */
.mute-btn {
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 300;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(212, 175, 55, 0.2);
  background: rgba(6, 4, 16, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
  transition: transform 0.12s ease, opacity 0.2s;
  touch-action: manipulation;
}

.mute-btn:active      { transform: scale(0.88); }
.mute-btn.muted       { opacity: 0.45; }

/* ============================================================
   Scratch card / Rubbellos
   ============================================================ */
#unwrap-screen {
  position: fixed;
  inset: 0;
  z-index: 160;
  background: rgba(6, 4, 16, 0.96);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 24px 16px 32px;
  animation: fadeInFast 0.35s ease both;
}

@keyframes fadeInFast {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* --- The card --- */
.scratch-card {
  width: 100%;
  max-width: 340px;
  background: linear-gradient(160deg, #12082a 0%, #0c0618 100%);
  border: 1.5px solid rgba(212, 175, 55, 0.45);
  border-radius: 20px;
  overflow: hidden;
  box-shadow:
    0 0 0 4px rgba(212, 175, 55, 0.07),
    0 16px 48px rgba(0, 0, 0, 0.7);
}

/* Card top section */
.card-header {
  padding: 22px 20px 18px;
  text-align: center;
  background: linear-gradient(180deg, rgba(212,175,55,0.08) 0%, transparent 100%);
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
}

.card-brand {
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(212, 175, 55, 0.6);
  margin-bottom: 6px;
}

.card-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(26px, 8vw, 34px);
  font-weight: 900;
  background: linear-gradient(135deg, #d4af37, #f5e6c8, #d4af37);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}

.card-tagline {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: 13px;
  color: rgba(232, 212, 168, 0.6);
  margin-top: 6px;
}

.card-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(212,175,55,0.3), transparent);
}

/* --- Scratch zone --- */
.scratch-zone-wrap {
  position: relative;
  margin: 20px 16px;
  height: 170px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.2);
  background: #0a0616;
}

/* Prize reveal underneath silver coating */
#gift-reveal {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px 16px;
  gap: 6px;
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#gift-reveal.revealed {
  opacity: 1;
  transform: scale(1);
}

.gift-congrats {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(15px, 4.5vw, 18px);
  font-weight: 700;
  line-height: 1.55;
  color: #d4af37;
  text-align: center;
  text-shadow: 0 0 16px rgba(212, 175, 55, 0.4);
  animation: giftPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  animation-delay: 0.1s;
}

@keyframes giftPop {
  from { transform: scale(0.7); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

.haupt-link {
  display: inline-block;
  margin-top: 4px;
  padding: 7px 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  color: #0c0818;
  background: linear-gradient(135deg, #d4af37, #f0d060);
  border-radius: 50px;
  box-shadow: 0 2px 12px rgba(212, 175, 55, 0.4);
  transition: transform 0.12s, box-shadow 0.12s;
}
.haupt-link:active { transform: scale(0.95); }


/* Silver scratch canvas on top */
#scratch-canvas {
  position: absolute;
  inset: 0;
  cursor: crosshair;
  touch-action: none;
  border-radius: 10px;
  transition: opacity 0.9s ease;
}

/* Card footer */
.card-footer {
  padding: 4px 16px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.tear-hint {
  font-size: 13px;
  letter-spacing: 0.5px;
  color: rgba(212, 175, 55, 0.65);
  transition: opacity 0.5s ease;
  pointer-events: none;
}


/* Back button below card */
.gift-back-btn {
  padding: 13px 32px;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #d4af37;
  background: rgba(212, 175, 55, 0.07);
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: 50px;
  cursor: pointer;
  transition: background 0.15s;
}
.gift-back-btn:hover { background: rgba(212, 175, 55, 0.15); }

/* ============================================================
   Eatrenalin detail page
   ============================================================ */
#detail-page {
  position: fixed;
  inset: 0;
  z-index: 170;
  background: radial-gradient(ellipse at 50% 0%, #1c1230 0%, #060410 70%);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  animation: fadeInFast 0.3s ease both;
}

.detail-inner {
  max-width: 480px;
  margin: 0 auto;
  padding: 20px 20px 60px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.detail-back {
  align-self: flex-start;
  background: none;
  border: none;
  color: rgba(212, 175, 55, 0.6);
  font-size: 14px;
  letter-spacing: 1px;
  cursor: pointer;
  padding: 8px 0;
  transition: color 0.15s;
}
.detail-back:hover { color: #d4af37; }

/* Hero */
.detail-hero {
  text-align: center;
  padding: 12px 0 8px;
}

.detail-hero-icon {
  font-size: 56px;
  display: block;
  animation: bob 1.8s ease-in-out infinite alternate;
}

.detail-hero-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(32px, 10vw, 48px);
  font-weight: 900;
  background: linear-gradient(135deg, #d4af37, #f5e6c8, #d4af37);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 8px 0 6px;
}

.detail-hero-sub {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: clamp(14px, 4vw, 17px);
  color: rgba(232, 212, 168, 0.7);
}

/* Sections */
.detail-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.detail-section-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(16px, 4.5vw, 20px);
  font-weight: 700;
  color: #d4af37;
  letter-spacing: 1px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.detail-body {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: clamp(14px, 4vw, 16px);
  line-height: 1.7;
  color: #e8d4a8;
}

/* Image slots */
.detail-images {
  flex-direction: row;
  gap: 10px;
}

.detail-img-slot {
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.2);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.5);
}

.detail-img-slot img {
  width: 100%;
  height: auto;
  display: block;
}

/* Meta rows (date/location) */
.detail-meta {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.detail-meta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(212, 175, 55, 0.05);
  border: 1px solid rgba(212, 175, 55, 0.12);
  border-radius: 10px;
  padding: 12px 16px;
}

.meta-icon { font-size: 20px; }

.meta-text {
  font-size: 15px;
  color: #e8d4a8;
  line-height: 1.4;
}

/* Personal note */
.detail-note {
  background: rgba(212, 175, 55, 0.05);
  border-left: 3px solid rgba(212, 175, 55, 0.4);
  border-radius: 0 12px 12px 0;
  padding: 16px 20px;
}

.detail-note-text {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: clamp(15px, 4vw, 17px);
  line-height: 1.7;
  color: #e8d4a8;
}

/* Awards */
.detail-awards {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 10px;
}

.award-badge {
  font-size: 11px;
  letter-spacing: 1.5px;
  color: #d4af37;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 50px;
  padding: 4px 12px;
}

/* Sense grid */
.sense-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.sense-item {
  background: rgba(212, 175, 55, 0.05);
  border: 1px solid rgba(212, 175, 55, 0.12);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sense-icon { font-size: 22px; }

.sense-item p {
  font-size: 12px;
  line-height: 1.5;
  color: rgba(232, 212, 168, 0.75);
}

/* Course track */
.course-track {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-left: 12px;
  border-left: 2px solid rgba(212, 175, 55, 0.2);
  margin-bottom: 16px;
}

.course-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(212, 175, 55, 0.06);
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 14px;
  color: #e8d4a8;
}

.course-step--last { border-bottom: none; }

.course-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.4);
  margin-left: -16px;
  flex-shrink: 0;
}

.course-dot--gold {
  background: #d4af37;
  box-shadow: 0 0 6px rgba(212, 175, 55, 0.6);
}

/* Menu options */
.menu-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.menu-option {
  background: rgba(212, 175, 55, 0.05);
  border: 1px solid rgba(212, 175, 55, 0.15);
  border-radius: 12px;
  padding: 14px 16px;
}

.menu-option-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: 14px;
  color: #d4af37;
  margin-bottom: 6px;
}

.menu-option-body {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(232, 212, 168, 0.75);
}

/* Meta subtext */
.meta-subtext {
  font-size: 12px;
  color: rgba(232, 212, 168, 0.45);
  margin-top: 2px;
}

/* Deep link button */
.detail-deeplink {
  display: block;
  text-align: center;
  padding: 15px 32px;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #0c0818;
  background: linear-gradient(135deg, #d4af37 0%, #f0d060 50%, #c9a030 100%);
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.35);
  transition: transform 0.12s, box-shadow 0.12s;
}

.detail-deeplink:active {
  transform: scale(0.97);
  box-shadow: 0 2px 10px rgba(212, 175, 55, 0.25);
}

/* Placeholder style */
.placeholder      { opacity: 0.45; }
.placeholder-img  { font-size: 22px; color: rgba(212,175,55,0.3); }

/* ============================================================
   Utility
   ============================================================ */
.hidden { display: none !important; }

/* ============================================================
   Confetti
   ============================================================ */
#confetti {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 200;
  overflow: hidden;
}

.piece {
  position: absolute;
  top: -12px;
  border-radius: 2px;
  animation: fall linear forwards;
  will-change: transform, opacity;
}

@keyframes fall {
  0%  { transform: translateY(0)     rotate(0deg);   opacity: 1; }
  90% {                                               opacity: 1; }
  100%{ transform: translateY(108vh) rotate(720deg); opacity: 0; }
}
