/* ==========================================================================
   APPLE LIQUID GLASS & DARK THEME DESIGN SYSTEM (OPTIMIZED & FLUID)
   ========================================================================== */

:root {
  --bg-deep: #050507;
  --bg-glass: rgba(18, 18, 24, 0.75);
  --bg-glass-subtle: rgba(255, 255, 255, 0.05);
  --bg-glass-hover: rgba(255, 255, 255, 0.1);
  --border-glass: rgba(255, 255, 255, 0.12);
  --border-glass-bright: rgba(255, 255, 255, 0.22);
  
  --text-primary: #f5f5f7;
  --text-secondary: #86868b;
  --text-terracotta: #f28e6b;
  --color-terracotta: #e2725b;
  --color-terracotta-dark: #c85a38;
  --color-terracotta-glow: rgba(226, 114, 91, 0.35);
  
  --font-display: 'Bricolage Grotesque', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-horizon: 'Syne', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  
  --shadow-liquid: 0 25px 50px rgba(0, 0, 0, 0.7), inset 0 1px 1px rgba(255, 255, 255, 0.18);
  --shadow-glow: 0 0 30px rgba(242, 142, 107, 0.25);
  
  --radius-card: 26px;
  --radius-inner: 16px;
  --radius-pill: 9999px;
  
  --ease-apple: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html, body {
  width: 100%;
  height: 100%;
  height: 100dvh;
  overflow: hidden;
  background-color: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  user-select: none;
}

/* Ambient Liquid Glow Orbs */
.liquid-glow-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.32;
  will-change: transform;
  animation: floatAmbient 22s ease-in-out infinite alternate;
}

.glow-orb-1 {
  top: -10%;
  left: 20%;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, #e2725b, transparent 70%);
}

.glow-orb-2 {
  bottom: -5%;
  right: 15%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #4361ee, transparent 70%);
  animation-delay: -8s;
}

@keyframes floatAmbient {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(35px, 25px, 0) scale(1.08); }
  100% { transform: translate3d(-25px, 45px, 0) scale(0.95); }
}

/* Subtle Particles Canvas */
#particles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
  opacity: 0.3;
}

/* ==========================================================================
   APP STAGE & CARD DECK CONTAINER
   ========================================================================== */

.deck-stage-wrapper {
  position: relative;
  z-index: 10;
  width: 100%;
  height: 100%;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 55px 16px 65px;
}

/* Top Progress / Navigation Bar (Apple Frosted Glass Pill) */
.deck-top-bar {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(25, 25, 32, 0.75);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid var(--border-glass);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.15);
  padding: 5px 16px;
  border-radius: var(--radius-pill);
  transition: transform 0.3s var(--ease-out);
}

.deck-step-indicator {
  font-family: var(--font-horizon);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-primary);
}

.btn-nav-prev {
  background: none;
  border: none;
  font-family: var(--font-horizon);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-terracotta);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s var(--ease-out);
}

.btn-nav-prev:disabled {
  opacity: 0.2;
  cursor: not-allowed;
}

.btn-nav-prev:not(:disabled):hover {
  color: #ffffff;
  transform: translateX(-2px);
}

/* Cards Viewport (Center Stage) */
.cards-viewport {
  position: relative;
  width: 100%;
  max-width: 500px;
  height: 100%;
  max-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1200px;
}

/* Individual Liquid Glass Deck Cards */
.deck-card {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-glass);
  backdrop-filter: blur(40px) saturate(190%);
  -webkit-backdrop-filter: blur(40px) saturate(190%);
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-liquid);
  border-radius: var(--radius-card);
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  will-change: transform, opacity, filter;
  
  /* Initial State (Coming in from below with subtle blur) */
  opacity: 0;
  visibility: hidden;
  transform: translate3d(0, 35px, 0) scale(0.96);
  filter: blur(4px);
  pointer-events: none;
  transition: opacity 0.45s var(--ease-apple), transform 0.45s var(--ease-apple), filter 0.45s var(--ease-apple);
  z-index: 1;
}

/* Active Card State */
.deck-card.active {
  opacity: 1;
  visibility: visible;
  transform: translate3d(0, 0, 0) scale(1);
  filter: blur(0px);
  pointer-events: auto;
  z-index: 10;
}

/* Past Card State */
.deck-card.passed {
  opacity: 0;
  visibility: hidden;
  transform: translate3d(0, -30px, 0) scale(0.96);
  filter: blur(4px);
  pointer-events: none;
  z-index: 2;
}

/* Staggered Card Content Animation */
.deck-card.active .card-content-center {
  animation: contentStagger 0.5s var(--ease-out) 0.1s both;
}

@keyframes contentStagger {
  0% { opacity: 0; transform: translate3d(0, 10px, 0); }
  100% { opacity: 1; transform: translate3d(0, 0, 0); }
}

/* Card Content Container */
.card-content-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  flex: 1;
}

/* Card Section Header Tag */
.section-tag {
  font-family: var(--font-horizon);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-terracotta);
  display: inline-block;
  margin-bottom: 2px;
}

/* ==========================================================================
   BRUSH ART & IMAGE PRESENTATION
   ========================================================================== */

.art-image-frame {
  width: 100%;
  max-width: 240px;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-inner);
  border: 1px solid var(--border-glass-bright);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.2);
  overflow: hidden;
  background: #0f0f14;
  margin: 6px auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s var(--ease-apple);
}

.deck-card.active .art-image-frame:hover {
  transform: scale(1.02);
}

.art-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.art-meta-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-horizon);
  font-size: 0.72rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 6px;
  margin-bottom: 8px;
}

.art-poetic-quote {
  padding: 6px 0;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 3.8vw, 1.55rem);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: #ffffff;
  text-align: center;
}

.art-poetic-quote span {
  color: var(--text-terracotta);
}

/* Apple Pill Button */
.btn-apple-action {
  background: #ffffff;
  color: #000000;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  border: none;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.2);
  padding: 13px 22px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin-top: 10px;
  transition: transform 0.2s var(--ease-spring), box-shadow 0.2s var(--ease-out), background 0.2s ease;
  flex-shrink: 0;
}

.btn-apple-action:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 28px rgba(255, 255, 255, 0.35);
}

.btn-apple-action:active {
  transform: scale(0.97);
}

/* ==========================================================================
   TIMER CARD
   ========================================================================== */

.counter-section-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-inner);
  padding: 12px;
  margin-top: 8px;
  width: 100%;
}

.counter-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 5px;
  flex-wrap: wrap;
  gap: 4px;
}

.counter-date-label {
  font-family: var(--font-horizon);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-terracotta);
  font-weight: 700;
}

.timer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.timer-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 8px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.25s var(--ease-spring);
}

.timer-card:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.08);
}

.timer-number {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3.5vw, 1.8rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
}

.timer-label {
  font-family: var(--font-horizon);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-secondary);
  margin-top: 3px;
  font-weight: 700;
}

/* ==========================================================================
   QUIZ CARD
   ========================================================================== */

.quiz-progress-bar {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  margin-bottom: 14px;
  overflow: hidden;
}

.quiz-progress-fill {
  height: 100%;
  width: 25%;
  background: linear-gradient(90deg, var(--color-terracotta), #f28e6b);
  box-shadow: 0 0 10px var(--color-terracotta);
  transition: width 0.4s var(--ease-apple);
}

.quiz-question-title {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 3.5vw, 1.6rem);
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
  margin: 4px 0 14px;
  line-height: 1.25;
  text-align: center;
}

/* Runaway "No" Mechanics */
.runaway-arena {
  position: relative;
  min-height: 150px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-inner);
}

.btn-quiz-yes {
  background: linear-gradient(135deg, var(--color-terracotta), #d45d3e);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 700;
  padding: 13px 26px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  box-shadow: 0 4px 20px var(--color-terracotta-glow);
  transition: transform 0.25s var(--ease-spring), box-shadow 0.25s ease;
  z-index: 10;
}

.btn-quiz-yes:hover {
  transform: scale(1.06);
}

.btn-runaway-no {
  position: absolute;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  color: var(--text-secondary);
  border: 1px solid var(--border-glass);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  user-select: none;
  z-index: 5;
}

.quip-toast {
  position: absolute;
  top: 8px;
  color: var(--text-terracotta);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.quip-toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* Multiple choice buttons */
.options-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.btn-quiz-option {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 12px 16px;
  cursor: pointer;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.2s var(--ease-spring);
}

.btn-quiz-option:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateX(4px);
}

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

/* Boyfriend Rating Gauge */
.rating-number {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: var(--text-terracotta);
  line-height: 1;
  letter-spacing: -0.03em;
  text-shadow: 0 0 20px var(--color-terracotta-glow);
  transition: transform 0.2s var(--ease-spring);
}

.rating-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-glass);
  color: #ffffff;
  font-family: var(--font-horizon);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  margin-top: 6px;
  transition: all 0.2s var(--ease-spring);
}

.custom-slider-wrapper {
  margin: 14px auto 4px;
  max-width: 400px;
}

.rating-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  outline: none;
  cursor: pointer;
}

.rating-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid var(--color-terracotta);
  cursor: pointer;
  box-shadow: 0 0 15px var(--color-terracotta);
  transition: transform 0.15s var(--ease-spring);
}

.rating-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

/* ==========================================================================
   LOVE LETTER CARD & WAX SEAL
   ========================================================================== */

.envelope-3d-wrapper {
  perspective: 1200px;
  margin: 16px auto;
  cursor: pointer;
}

.envelope-box {
  position: relative;
  width: 230px;
  height: 140px;
  background: rgba(35, 35, 45, 0.85);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: 14px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
  display: grid;
  place-items: center;
  transition: transform 0.4s var(--ease-apple);
}

.envelope-box:hover {
  transform: translateY(-4px);
}

.envelope-flap {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  border-left: 115px solid transparent;
  border-right: 115px solid transparent;
  border-top: 75px solid rgba(48, 48, 62, 0.95);
  transform-origin: top;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 4;
}

.envelope-box.opened .envelope-flap {
  transform: rotateX(180deg);
  z-index: 1;
}

.wax-seal {
  position: absolute;
  top: 50px;
  left: 50%;
  transform: translateX(-50%);
  width: 42px;
  height: 42px;
  background: radial-gradient(circle, var(--color-terracotta), #963821);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5), 0 0 20px var(--color-terracotta-glow);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 1.05rem;
  z-index: 5;
  cursor: pointer;
  transition: transform 0.3s var(--ease-spring);
}

.wax-seal:hover {
  transform: translateX(-50%) scale(1.1);
}

.seal-prompt-text {
  font-family: var(--font-horizon);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-top: 10px;
  color: var(--text-terracotta);
  text-align: center;
  animation: pulseGlow 1.8s ease infinite alternate;
}

@keyframes pulseGlow {
  0% { opacity: 0.7; }
  100% { opacity: 1; }
}

.love-letter-parchment {
  display: none;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-inner);
  padding: 18px 16px;
  max-width: 100%;
  margin-top: 10px;
  text-align: left;
  animation: letterFadeIn 0.5s var(--ease-out) forwards;
}

@keyframes letterFadeIn {
  0% { opacity: 0; transform: translate3d(0, 15px, 0); }
  100% { opacity: 1; transform: translate3d(0, 0, 0); }
}

.letter-salutation {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-terracotta);
  margin-bottom: 8px;
}

.letter-body {
  font-family: var(--font-body);
  font-size: 0.9rem;
  line-height: 1.6;
  color: #e2e2e8;
  white-space: pre-line;
}

.letter-signature {
  font-family: var(--font-horizon);
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  margin-top: 12px;
  text-align: right;
  text-transform: uppercase;
}

/* Certificate */
.certificate-wrapper {
  display: none;
  margin-top: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-inner);
  padding: 14px 12px;
  text-align: center;
  width: 100%;
  animation: certFadeIn 0.6s var(--ease-out) 0.2s both;
}

@keyframes certFadeIn {
  0% { opacity: 0; transform: translate3d(0, 10px, 0); }
  100% { opacity: 1; transform: translate3d(0, 0, 0); }
}

.cert-title {
  font-family: var(--font-horizon);
  font-size: 0.85rem;
  font-weight: 800;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 3px;
}

.cert-recipient {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-terracotta);
  margin: 4px 0;
}

/* ==========================================================================
   LOVE COUPONS CARD
   ========================================================================== */

.coupons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 8px;
  width: 100%;
  margin-top: 8px;
}

.coupon-ticket {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 10px 12px;
  color: #ffffff;
  position: relative;
  text-align: left;
  transition: all 0.2s var(--ease-spring);
}

.coupon-ticket:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

.coupon-icon {
  font-size: 1.2rem;
  margin-bottom: 2px;
}

.coupon-title {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 2px;
}

.coupon-desc {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
  line-height: 1.3;
}

.btn-redeem-coupon {
  background: #ffffff;
  color: #000000;
  border: none;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: transform 0.2s var(--ease-spring), background 0.2s ease;
}

.btn-redeem-coupon:hover {
  background: var(--color-terracotta);
  color: #ffffff;
  transform: scale(1.05);
}

.coupon-ticket.redeemed {
  opacity: 0.65;
}

.coupon-ticket.redeemed::after {
  content: 'REDEEMED 💖';
  position: absolute;
  top: 12%;
  right: 6px;
  transform: rotate(-10deg);
  background: var(--color-terracotta);
  color: #fff;
  font-family: var(--font-horizon);
  font-weight: 800;
  font-size: 0.6rem;
  letter-spacing: 1px;
  padding: 2px 5px;
  border-radius: 4px;
}

/* ==========================================================================
   FLOATING AUDIO BAR (APPLE SLEEK PILL - CENTERED)
   ========================================================================== */

.floating-audio-bar {
  position: fixed;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 95;
  width: auto;
  max-width: calc(100% - 32px);
  background: rgba(25, 25, 32, 0.8);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  color: #ffffff;
  border: 1px solid var(--border-glass);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.15);
  padding: 5px 12px 5px 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: var(--radius-pill);
  transition: all 0.25s var(--ease-spring);
}

.vinyl-disc {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #111116;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: grid;
  place-items: center;
  cursor: pointer;
  animation: spinVinyl 6s linear infinite;
  animation-play-state: paused;
}

.vinyl-disc.playing {
  animation-play-state: running;
}

.vinyl-center {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-terracotta);
}

@keyframes spinVinyl {
  100% { transform: rotate(360deg); }
}

.track-info {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.track-title {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 5px;
}

.track-artist {
  font-family: var(--font-body);
  font-size: 0.62rem;
  color: var(--text-secondary);
}

.visualizer-bars {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 9px;
}

.v-bar {
  width: 2px;
  background: var(--color-terracotta);
  height: 2px;
}

.floating-audio-bar.playing .v-bar:nth-child(1) { animation: barDance 0.7s ease infinite alternate; }
.floating-audio-bar.playing .v-bar:nth-child(2) { animation: barDance 0.5s ease infinite 0.2s alternate; }
.floating-audio-bar.playing .v-bar:nth-child(3) { animation: barDance 0.8s ease infinite 0.4s alternate; }

@keyframes barDance {
  0% { height: 2px; }
  100% { height: 9px; }
}

.btn-audio-ctrl {
  background: #ffffff;
  border: none;
  color: #000000;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 0.68rem;
  transition: transform 0.2s var(--ease-spring);
}

.btn-audio-ctrl:hover {
  transform: scale(1.12);
}

.btn-audio-ctrl:active {
  transform: scale(0.95);
}

.lyrics-toast-btn {
  background: transparent;
  border: 1px solid var(--border-glass);
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background 0.2s ease;
}

.lyrics-toast-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Floating Lyrics Drawer */
.lyrics-modal {
  position: fixed;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 340px;
  background: rgba(22, 22, 28, 0.95);
  backdrop-filter: blur(35px);
  -webkit-backdrop-filter: blur(35px);
  color: #ffffff;
  border: 1px solid var(--border-glass);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  border-radius: 20px;
  padding: 14px;
  z-index: 94;
  display: none;
  animation: modalIn 0.3s var(--ease-out);
}

@keyframes modalIn {
  0% { opacity: 0; transform: translate3d(-50%, 10px, 0); }
  100% { opacity: 1; transform: translate3d(-50%, 0, 0); }
}

.lyrics-modal.show {
  display: block;
}

.lyrics-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 5px;
  margin-bottom: 8px;
}

.lyrics-content {
  font-family: var(--font-body);
  font-size: 0.85rem;
  line-height: 1.55;
  max-height: 160px;
  overflow-y: auto;
  text-align: center;
  color: #c2c2ce;
}

.lyrics-highlight {
  color: var(--text-terracotta);
  font-weight: 700;
}

/* ==========================================================================
   ENTRY MODAL
   ========================================================================== */

.entry-overlay-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(5, 5, 7, 0.88);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.entry-overlay-modal.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.entry-card {
  background: var(--bg-glass);
  backdrop-filter: blur(40px) saturate(190%);
  -webkit-backdrop-filter: blur(40px) saturate(190%);
  color: #ffffff;
  border: 1px solid var(--border-glass-bright);
  box-shadow: var(--shadow-liquid);
  border-radius: var(--radius-card);
  padding: 35px 24px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  animation: entryPop 0.5s var(--ease-spring);
}

@keyframes entryPop {
  0% { transform: scale(0.92); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* ==========================================================================
   RESPONSIVE ADJUSTMENTS
   ========================================================================== */

@media (max-width: 480px) {
  .deck-stage-wrapper {
    padding: 50px 12px 60px;
  }
  
  .cards-viewport {
    max-height: 540px;
  }
  
  .deck-card {
    padding: 16px 14px;
    border-radius: 22px;
  }
  
  .art-image-frame {
    max-width: 200px;
    margin: 4px auto 8px;
  }
  
  .art-poetic-quote {
    font-size: 1.15rem;
    padding: 4px 0;
  }

  .timer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
  }
}
