/* ==========================================================================
   WAVE RATER - Track Grader Stylesheet
   Unified Atmospheric Ocean Radio Aesthetic · Stacked Card Deck & Swipe Physics
   Zero dependencies · Pure CSS3 · Fully Responsive
   ========================================================================== */

:root {
  --app-bg: #070A10;
  --app-navy-deep: #0B132B;
  --app-navy-mid: #1C2541;
  --app-navy-light: #3A506B;
  --cyan-primary: #38BDF8;
  --cyan-bright: #00F0FF;
  --cyan-glow: rgba(56, 189, 248, 0.35);
  --emerald-accent: #10B981;
  --amber-accent: #F59E0B;
  --fuchsia-accent: #D946EF;
  --pass-red: #EF4444;
  --pass-glow: rgba(239, 68, 68, 0.45);
  --fire-green: #10B981;
  --fire-glow: rgba(16, 185, 129, 0.45);
  --text-primary: #F8FAFC;
  --text-secondary: #CBD5E1;
  --text-muted: #94A3B8;
  --font-display: 'Syne', system-ui, -apple-system, sans-serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

html, body {
  width: 100%;
  min-height: 100%;
  background-color: var(--app-bg);
  color: var(--text-primary);
  font-family: var(--font-sans);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  user-select: none;
  -webkit-user-select: none;
}

.tabular-nums {
  font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   Background Canvas & Cosmic Starfield
   ========================================================================== */
#global-artwork-backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  filter: blur(60px) saturate(2);
  opacity: 0.2;
  mix-blend-mode: screen;
  pointer-events: none;
  transition: background-image 0.8s ease, opacity 0.5s ease;
  transform: scale(1.08);
}

#ocean-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.cosmic-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(circle at 80% 15%, rgba(147, 51, 234, 0.18) 0%, transparent 45%),
    radial-gradient(circle at 20% 75%, rgba(6, 182, 212, 0.15) 0%, transparent 50%),
    #070A10;
  overflow: hidden;
}

.cosmic-stars {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image: url("https://images.unsplash.com/photo-1506703719100-a0f3a48c0f86?w=1920&q=80&auto=format&fit=crop");
  background-size: cover;
  background-position: center;
  mix-blend-mode: screen;
}

.cosmic-noise {
  position: absolute;
  inset: 0;
  opacity: 0.025;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Hidden YouTube element */
#rater-yt-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 2px;
  height: 2px;
  opacity: 0.01;
  pointer-events: none;
  z-index: -999;
  overflow: hidden;
}

/* ==========================================================================
   Master App Wrapper
   ========================================================================== */
.rater-app {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* ==========================================================================
   Header Navigation (Unified Station Styling)
   ========================================================================== */
.games-header {
  position: relative;
  z-index: 40;
  width: 100%;
  padding: 0.65rem 1.5rem 0.5rem;
  background: rgba(7, 10, 16, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(58, 80, 107, 0.3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-shrink: 0;
}

.header-left {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-width: 0;
}

.btn-back-radio {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  background: rgba(11, 19, 43, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #CBD5E1;
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  white-space: nowrap;
}

.btn-back-radio:hover {
  background: var(--app-navy-mid);
  border-color: var(--cyan-primary);
  color: #FFFFFF;
  transform: translateX(-2px);
  box-shadow: 0 6px 16px rgba(56, 189, 248, 0.3);
}

.header-center {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  color: inherit;
}

.brand-title-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
}

.brand-icon-box {
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 0.55rem;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan-primary);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.2);
  flex-shrink: 0;
}

.brand-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #FFFFFF !important;
  text-transform: uppercase;
  line-height: 1;
}

.brand-subtitle {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  color: var(--cyan-primary) !important;
  text-transform: uppercase;
  margin-top: 3px;
  font-weight: 600;
  opacity: 0.95;
}

.header-right {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
}

.btn-firelist-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.8rem;
  border-radius: 9999px;
  background: rgba(11, 19, 43, 0.85);
  border: 1px solid rgba(251, 146, 60, 0.38);
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: #FED7AA;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  outline: none;
}

.btn-firelist-toggle:hover {
  background: rgba(28, 37, 65, 0.95);
  border-color: #FB923C;
  color: #FFF7ED;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(251, 146, 60, 0.35);
}

.firelist-icon {
  font-size: 0.85rem;
  line-height: 1;
}

.firelist-label {
  font-weight: 600;
  letter-spacing: 0.02em;
}

.firelist-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.15rem;
  height: 1.15rem;
  padding: 0 0.25rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, #FF6B00, #EF4444);
  color: #FFFFFF;
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 0 8px rgba(255, 107, 0, 0.5);
}

.graded-counter-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  background: rgba(11, 19, 43, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.3);
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: #94A3B8;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  transition: all 0.25s ease;
  white-space: nowrap;
}

.graded-counter-pill strong {
  color: var(--cyan-primary);
  font-weight: 700;
}

.tier-separator {
  color: rgba(148, 163, 184, 0.4);
  font-weight: 400;
}

.listener-tier-badge {
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--cyan-primary);
  text-transform: uppercase;
  font-size: 0.7rem;
}

/* Level Up Pulse Animation */
@keyframes tierLevelUpPulse {
  0% {
    transform: scale(1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  }
  50% {
    transform: scale(1.08);
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.8), 0 0 10px rgba(16, 185, 129, 0.6);
    border-color: #00F0FF;
    color: #FFFFFF;
  }
  100% {
    transform: scale(1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  }
}

.tier-levelup-pulse {
  animation: tierLevelUpPulse 0.9s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.pill-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 9999px;
  background: var(--cyan-primary);
  box-shadow: 0 0 8px var(--cyan-primary);
  animation: pulseNeonDot 1.8s infinite ease-in-out;
}

@keyframes pulseNeonDot {
  0%, 100% { opacity: 0.45; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.2); }
}

/* ==========================================================================
   Main Stage & Stacked Card UI
   ========================================================================== */
.rater-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.25rem;
  width: 100%;
}

.rater-stage-wrapper {
  width: 100%;
  max-width: 27rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Stats Row: Fire List & Graded Tier non-overlapping layout */
.rater-stats-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  width: 100%;
}

.stage-title {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 4vw, 2.35rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #FFFFFF;
  text-align: center;
  margin-bottom: 0.85rem;
  line-height: 1.1;
  background: linear-gradient(135deg, #FFFFFF 20%, #38BDF8 65%, #00F0FF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 20px rgba(56, 189, 248, 0.45));
}

.rater-card-stage {
  position: relative;
  width: 100%;
  height: 31rem;
  perspective: 1000px;
}

/* ==========================================================================
   Stacked Cards Deck
   ========================================================================== */
.rater-card {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(11, 19, 43, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(58, 80, 107, 0.55);
  border-radius: 1.35rem;
  padding: 1.25rem 1.35rem;
  box-shadow: 0 20px 48px -12px rgba(0, 0, 0, 0.85);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  will-change: transform, opacity;
  transform-origin: 50% 100%;
  touch-action: none;
}

/* Stack Layers */
.card-stack-layer {
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.3, 1), opacity 0.35s ease, filter 0.35s ease;
}

.card-stack-2 {
  z-index: 1;
  transform: translate3d(0, 22px, -60px) scale(0.9);
  opacity: 0.45;
  filter: brightness(0.65);
}

.card-stack-1 {
  z-index: 2;
  transform: translate3d(0, 11px, -30px) scale(0.95);
  opacity: 0.75;
  filter: brightness(0.82);
}

.card-active {
  z-index: 10;
  transform: translate3d(0, 0, 0) scale(1);
  opacity: 1;
  cursor: grab;
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 0 24px 56px -12px rgba(0, 0, 0, 0.9), 0 0 28px rgba(56, 189, 248, 0.2);
  animation: cardAuraBreathe 4s ease-in-out infinite;
}

@keyframes cardAuraBreathe {
  0%, 100% {
    box-shadow: 0 24px 56px -12px rgba(0, 0, 0, 0.9), 0 0 24px rgba(56, 189, 248, 0.18);
    border-color: rgba(56, 189, 248, 0.45);
  }
  50% {
    box-shadow: 0 28px 64px -10px rgba(0, 0, 0, 0.95), 0 0 42px rgba(0, 240, 255, 0.38), 0 0 16px rgba(56, 189, 248, 0.25);
    border-color: rgba(0, 240, 255, 0.7);
  }
}

.card-active:active {
  cursor: grabbing;
}

/* Swipe Exit Transitions (Strictly 350ms to match JS state lock) */
.swipe-right {
  animation: none !important;
  transform: translate3d(130%, 30px, 0) rotate(22deg) !important;
  opacity: 0 !important;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.3, 1), opacity 0.32s ease !important;
  pointer-events: none !important;
}

.swipe-left {
  animation: none !important;
  transform: translate3d(-130%, 30px, 0) rotate(-22deg) !important;
  opacity: 0 !important;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.3, 1), opacity 0.32s ease !important;
  pointer-events: none !important;
}

.enter-card {
  animation: enterCard 0.32s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes enterCard {
  from {
    transform: translate3d(0, 15px, 0) scale(0.96);
    opacity: 0.7;
  }
  to {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 1;
  }
}

/* ==========================================================================
   Welcome & Rules Interactive Launcher Card
   ========================================================================== */
.card-welcome {
  z-index: 15;
  background: linear-gradient(172deg, rgba(15, 23, 42, 0.96) 0%, rgba(11, 19, 43, 0.98) 60%, rgba(8, 14, 30, 0.99) 100%);
  border-color: rgba(56, 189, 248, 0.55);
  box-shadow: 0 24px 56px -12px rgba(0, 0, 0, 0.92), 0 0 32px rgba(56, 189, 248, 0.22);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.welcome-card-inner {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  gap: 0.75rem;
}

.welcome-header {
  text-align: center;
  padding-top: 0.2rem;
}

.welcome-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.2rem 0.65rem;
  border-radius: 9999px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.35);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--cyan-primary);
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.welcome-badge-ping {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #00F0FF;
  box-shadow: 0 0 8px #00F0FF;
  animation: pulseNeonDot 1.5s infinite;
}

.welcome-title {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 3.8vw, 1.45rem);
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: 0.06em;
  line-height: 1.2;
  margin: 0 0 0.2rem 0;
  text-transform: uppercase;
  background: linear-gradient(135deg, #FFFFFF 30%, #38BDF8 80%, #00F0FF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.welcome-subtitle {
  font-size: 0.75rem;
  color: #94A3B8;
  margin: 0;
  line-height: 1.35;
}

.welcome-rules-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.rule-card,
.welcome-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.7rem 0.75rem;
  border-radius: 0.85rem;
  background: rgba(30, 41, 59, 0.55);
  border: 1px solid rgba(56, 189, 248, 0.2);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  min-height: 0;
  text-align: left;
}

.rule-card:hover,
.welcome-feature-item:hover {
  background: rgba(11, 19, 43, 0.85);
  border-color: rgba(56, 189, 248, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4), 0 0 12px rgba(56, 189, 248, 0.15);
}

.rule-icon,
.welcome-feature-icon {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  padding: 0.4rem;
  background: rgba(56, 189, 248, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.rule-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.rule-listen {
  background: rgba(56, 189, 248, 0.16);
  color: #38BDF8;
}

.rule-fire {
  background: rgba(245, 158, 11, 0.18);
  color: #F59E0B;
}

.rule-pass {
  background: rgba(239, 68, 68, 0.18);
  color: #EF4444;
  font-weight: 800;
}

.rule-tier {
  background: rgba(168, 85, 247, 0.18);
  color: #A855F7;
}

.rule-title {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 800;
  color: #F1F5F9;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1.25;
  margin: 0;
}

.rule-desc {
  font-size: 0.68rem;
  color: #94A3B8;
  line-height: 1.35;
  margin: 0;
}

.welcome-action-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.2rem;
}

.btn-start-rater {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.5rem;
  border-radius: 0.85rem;
  border: none;
  background: linear-gradient(135deg, #0284C7 0%, #00F0FF 100%);
  color: #04101F;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 0 24px rgba(0, 240, 255, 0.45), 0 8px 20px -4px rgba(0, 0, 0, 0.6);
  transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.18s ease;
}

.btn-start-rater:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 0 32px rgba(0, 240, 255, 0.65), 0 12px 28px -4px rgba(0, 0, 0, 0.7);
}

.btn-start-rater:active {
  transform: translateY(1px) scale(0.98);
}

.welcome-hint-caption {
  font-size: 0.66rem;
  color: #64748B;
  text-align: center;
  margin: 0;
}

/* ==========================================================================
   Swipe Badges (FIRE / PASS)
   ========================================================================== */
.swipe-badge {
  position: absolute;
  top: 1.5rem;
  z-index: 25;
  padding: 0.4rem 1.15rem;
  border-radius: 0.65rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.08em;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.badge-fire {
  right: 1.5rem;
  border: 2.5px solid var(--emerald-accent);
  color: var(--emerald-accent);
  background: rgba(16, 185, 129, 0.2);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.5);
  transform: rotate(12deg) scale(0.9);
}

.badge-pass {
  left: 1.5rem;
  border: 2.5px solid var(--pass-red);
  color: var(--pass-red);
  background: rgba(239, 68, 68, 0.2);
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.5);
  transform: rotate(-12deg) scale(0.9);
}

/* ==========================================================================
   Card Visual Frame & Vinyl Record with Artwork Thumbnails
   ========================================================================== */
.card-visual-frame {
  position: relative;
  width: 100%;
  height: 12.5rem;
  border-radius: 1.15rem;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 50%, rgba(15, 23, 42, 0.6), rgba(7, 10, 16, 0.9));
  border: 1px solid rgba(56, 189, 248, 0.35);
  margin-bottom: 0.85rem;
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.7);
}

.card-aura {
  position: absolute;
  inset: -20px;
  background: radial-gradient(circle at 50% 50%, rgba(56, 189, 248, 0.35), transparent 70%);
  opacity: 0.75;
  pointer-events: none;
  transition: opacity 0.3s;
}

/* Background Track Artwork Backdrop - Highly Vibrant & Colorful */
.card-artwork-backdrop {
  position: absolute;
  inset: -12px;
  background-size: cover;
  background-position: center;
  filter: blur(8px) brightness(0.92) saturate(1.45);
  opacity: 0.85;
  transform: scale(1.06);
  transition: background-image 0.4s ease, opacity 0.4s ease;
  pointer-events: none;
}

.card-visual-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(7, 10, 16, 0.15) 0%, rgba(7, 10, 16, 0.65) 90%);
  pointer-events: none;
  z-index: 3;
}

/* Vinyl Mockup */
.vinyl-mock {
  position: relative;
  z-index: 5;
  width: 9.5rem;
  height: 9.5rem;
  border-radius: 9999px;
  background: radial-gradient(circle, #0F172A 0%, #030712 70%, #000 100%);
  border: 3px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.9), 0 0 26px rgba(56, 189, 248, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Glossy 3D Sheer Reflection / Glare over Record */
.vinyl-mock::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.38) 0%,
    rgba(255, 255, 255, 0.12) 28%,
    transparent 48%,
    rgba(255, 255, 255, 0.05) 72%,
    rgba(255, 255, 255, 0.2) 100%
  );
  pointer-events: none;
  z-index: 8;
}

.vinyl-mock.spinning {
  animation: spinVinyl 14s linear infinite;
}

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

.vinyl-groove {
  position: absolute;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.vinyl-groove.g-1 {
  inset: 0.9rem;
}

.vinyl-groove.g-2 {
  inset: 1.8rem;
}

/* Center Artwork Label on Vinyl */
.vinyl-center-dot {
  width: 3.8rem;
  height: 3.8rem;
  border-radius: 9999px;
  overflow: hidden;
  position: relative;
  border: 2px solid rgba(56, 189, 248, 0.7);
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.45);
  background: #0B132B;
}

.vinyl-art-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.vinyl-spindle-hole {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 9999px;
  background: #070A10;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.8);
}

.status-chip {
  position: absolute;
  bottom: 0.75rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 8;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  background: rgba(7, 10, 16, 0.82);
  border: 1px solid rgba(56, 189, 248, 0.4);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--cyan-primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  white-space: nowrap;
}

.chip-ping {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 9999px;
  background: var(--cyan-bright);
  box-shadow: 0 0 8px var(--cyan-bright);
  animation: pulseNeonDot 1.6s infinite ease-in-out;
}

/* ==========================================================================
   Track Meta & Countdown
   ========================================================================== */
.card-meta {
  text-align: center;
  margin-bottom: 0.75rem;
}

.track-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.2;
  margin-bottom: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track-artist {
  font-size: 0.875rem;
  color: var(--cyan-primary);
  font-weight: 600;
  margin-bottom: 0.45rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.genre-pill {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.countdown-wrapper {
  margin-bottom: 1rem;
}

.countdown-wrapper.dummy-countdown {
  opacity: 0.35;
}

.countdown-track {
  width: 100%;
  height: 5px;
  border-radius: 9999px;
  background: rgba(58, 80, 107, 0.35);
  overflow: hidden;
  margin-bottom: 0.35rem;
}

.countdown-bar {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #38BDF8, #00F0FF);
  border-radius: 9999px;
  transition: width 0.1s linear;
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.5);
}

.countdown-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Voting Action Buttons - Vibrant & High-Impact
   ========================================================================== */
.voting-actions-bar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.95rem;
  margin-top: 0.25rem;
}

.btn-vote {
  position: relative;
  padding: 0.85rem 1.15rem;
  border-radius: 1.15rem;
  border: 2.5px solid transparent;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  min-height: 58px;
  transition: all 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
  outline: none;
}

.btn-vote-content {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.btn-label {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.key-hint {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  opacity: 0.85;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Enhanced Pass Button */
.btn-pass {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.22) 0%, rgba(185, 28, 28, 0.3) 100%);
  border-color: rgba(239, 68, 68, 0.7);
  color: #FFA4A4;
  box-shadow: 0 6px 18px rgba(239, 68, 68, 0.25), inset 0 0 14px rgba(239, 68, 68, 0.15);
}

.btn-pass:hover {
  background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
  border-color: #F87171;
  color: #FFFFFF;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 30px rgba(239, 68, 68, 0.55), 0 0 24px rgba(239, 68, 68, 0.5);
}

.btn-pass:active {
  transform: translateY(0) scale(0.98);
}

/* Enhanced Fire Button */
.btn-fire {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.25) 0%, rgba(6, 182, 212, 0.35) 100%);
  border-color: rgba(52, 211, 153, 0.75);
  color: #6EE7B7;
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.3), inset 0 0 14px rgba(6, 182, 212, 0.2);
}

.btn-fire:hover {
  background: linear-gradient(135deg, #10B981 0%, #00F0FF 100%);
  border-color: #A7F3D0;
  color: #070A10;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 32px rgba(16, 185, 129, 0.6), 0 0 28px rgba(0, 240, 255, 0.55);
}

.btn-fire:active {
  transform: translateY(0) scale(0.98);
}

/* Stage Sub-Actions: Undo Button & Key Hint */
.stage-sub-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 0.85rem;
}

.btn-undo-circle {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 9999px;
  background: rgba(11, 19, 43, 0.9);
  border: 1.5px solid rgba(56, 189, 248, 0.4);
  color: #94A3B8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  outline: none;
  flex-shrink: 0;
}

.btn-undo-circle:not(:disabled):hover {
  background: rgba(28, 37, 65, 0.95);
  border-color: var(--cyan-primary);
  color: var(--cyan-primary);
  transform: translateY(-2px) scale(1.08);
  box-shadow: 0 6px 18px rgba(0, 240, 255, 0.35);
}

.btn-undo-circle:not(:disabled):active {
  transform: translateY(0) scale(0.95);
}

.btn-undo-circle:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  border-color: rgba(148, 163, 184, 0.15);
}

/* Desktop Volume Slider: Sleek Glowing Neon Aesthetic (Desktop-only >= 900px) */
.desktop-volume-wrap {
  display: none;
}

@media (min-width: 900px) {
  .desktop-volume-wrap {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.75rem;
    background: rgba(11, 19, 43, 0.85);
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: 9999px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4), inset 0 0 10px rgba(56, 189, 248, 0.1);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
  }

  .desktop-volume-wrap:hover {
    border-color: var(--cyan-primary);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5), 0 0 12px rgba(56, 189, 248, 0.25);
  }

  .volume-icon {
    display: flex;
    align-items: center;
    color: var(--cyan-primary);
    opacity: 0.9;
  }

  .volume-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 82px;
    height: 5px;
    background: rgba(58, 80, 107, 0.6);
    border-radius: 9999px;
    outline: none;
    cursor: pointer;
    transition: background 0.2s ease;
  }

  .volume-slider:hover {
    background: rgba(58, 80, 107, 0.9);
  }

  .volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #00F0FF;
    border: 2px solid #FFFFFF;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.8), 0 0 4px rgba(0, 0, 0, 0.5);
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
  }

  .volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.22);
    box-shadow: 0 0 14px rgba(0, 240, 255, 1);
  }

  .volume-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #00F0FF;
    border: 2px solid #FFFFFF;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.8);
    cursor: pointer;
  }

  .volume-pct {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    color: var(--cyan-primary);
    min-width: 2.2rem;
    font-weight: 600;
  }
}

/* Bulletproof Rapid-Fire Interaction Lock */
.voting-actions-bar.locked-actions,
.rater-card-stage.locked-stage {
  pointer-events: none !important;
  user-select: none !important;
}

/* 30-Second Ad Interstitial Mode */
.ad-mode-active .voting-actions-bar,
.ad-mode-active .stage-sub-actions,
.ad-mode-active .onboarding-swipe-overlay {
  display: none !important;
}

.ad-mode-banner {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.75rem 1rem;
  margin-top: 0.4rem;
  border-radius: 0.85rem;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.45);
  color: #FCD34D;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.15);
}

.ad-mode-active .ad-mode-banner {
  display: flex !important;
}

.status-chip.chip-ad {
  background: rgba(245, 158, 11, 0.25) !important;
  border-color: #F59E0B !important;
  color: #FCD34D !important;
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.45) !important;
}

.status-chip.chip-ad .chip-ping {
  background-color: #F59E0B !important;
}

.desktop-key-hint {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
}

.desktop-key-hint strong {
  color: var(--cyan-primary);
}

/* ==========================================================================
   End of Catalog View (All Tracks Rated)
   ========================================================================== */
.end-catalog-view {
  width: 100%;
  animation: enterCatalogView 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes enterCatalogView {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.end-catalog-card {
  background: rgba(11, 19, 43, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1.5px solid rgba(56, 189, 248, 0.45);
  border-radius: 1.5rem;
  padding: 2.2rem 1.8rem;
  text-align: center;
  box-shadow: 0 24px 60px -12px rgba(0, 0, 0, 0.9), 0 0 32px rgba(56, 189, 248, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.15rem;
  max-width: 28rem;
  margin: 0 auto;
}

.end-catalog-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(217, 70, 239, 0.2) 100%);
  border: 1px solid rgba(245, 158, 11, 0.6);
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.25);
}

.end-catalog-badge .badge-icon {
  font-size: 1.25rem;
}

.end-catalog-badge .badge-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #FCD34D;
}

.end-catalog-title {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1.25;
  background: linear-gradient(135deg, #FFFFFF 20%, #38BDF8 65%, #00F0FF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 16px rgba(56, 189, 248, 0.4));
}

.end-catalog-desc {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  line-height: 1.55;
  color: #CBD5E1;
  max-width: 24rem;
}

.end-catalog-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
  margin-top: 0.4rem;
}

.btn-catalog-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.85rem 1.25rem;
  border-radius: 1rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
  outline: none;
}

.btn-catalog-radio {
  background: linear-gradient(135deg, #38BDF8 0%, #00F0FF 100%);
  color: #070A10;
  border: 1.5px solid #00F0FF;
  box-shadow: 0 6px 20px rgba(0, 240, 255, 0.4);
}

.btn-catalog-radio:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 240, 255, 0.6);
  filter: brightness(1.08);
}

.btn-catalog-restart {
  background: rgba(28, 37, 65, 0.85);
  color: #CBD5E1;
  border: 1px solid rgba(58, 80, 107, 0.6);
}

.btn-catalog-restart:hover {
  background: rgba(58, 80, 107, 0.9);
  color: #FFFFFF;
  border-color: var(--cyan-primary);
  transform: translateY(-2px);
}

/* Footer Reset Link */
.footer-reset-link {
  background: transparent;
  border: none;
  color: #64748B;
  font-size: 0.6875rem;
  font-family: inherit;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s ease;
}

.footer-reset-link:hover {
  color: #EF4444;
}

/* ==========================================================================
   Feedback Pop-Up Toast
   ========================================================================== */
.vote-toast {
  position: fixed;
  top: 4.8rem;
  left: 50%;
  transform: translateX(-50%) translateY(-24px) scale(0.9);
  opacity: 0;
  pointer-events: none;
  z-index: 1000;
  transition: all 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.vote-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
}

.toast-inner {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 1.35rem;
  border-radius: 9999px;
  background: rgba(11, 19, 43, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(56, 189, 248, 0.5);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8), 0 0 24px rgba(56, 189, 248, 0.3);
  color: #FFFFFF;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.toast-inner.fire-toast {
  border-color: rgba(16, 185, 129, 0.6);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8), 0 0 24px rgba(16, 185, 129, 0.35);
}

.toast-inner.pass-toast {
  border-color: rgba(239, 68, 68, 0.6);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8), 0 0 24px rgba(239, 68, 68, 0.35);
}

.toast-icon {
  font-size: 1.15rem;
}

/* ==========================================================================
   Unified Footer Bar (Exact Main Radio & Games Hub Layout)
   ========================================================================== */
.app-footer {
  position: relative;
  z-index: 30;
  width: 100%;
  padding: 0.55rem 1.5rem;
  padding-bottom: max(0.55rem, env(safe-area-inset-bottom, 14px));
  padding-left: max(1rem, env(safe-area-inset-left, 0px));
  padding-right: max(1rem, env(safe-area-inset-right, 0px));
  background: rgba(7, 10, 16, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(58, 80, 107, 0.25);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.75rem;
  flex-shrink: 0;
}

.footer-copy {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: #94A3B8;
  font-size: 0.6875rem;
  opacity: 0.95;
  white-space: nowrap;
}

.footer-copy-text {
  color: #94A3B8;
}

.footer-copy-divider {
  color: #475569;
}

.footer-partner-link {
  color: #CBD5E1;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.footer-partner-link:hover {
  color: var(--cyan-primary) !important;
}

.footer-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.footer-nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.6rem;
  border-radius: 9999px;
  background: rgba(11, 19, 43, 0.75);
  border: 1px solid rgba(58, 80, 107, 0.35);
  color: #CBD5E1;
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.footer-nav-pill:hover {
  background: var(--app-navy-mid);
  border-color: rgba(56, 189, 248, 0.55);
  color: #FFFFFF;
  transform: translateY(-1px);
}

/* ==========================================================================
   Submit Modal Styles
   ========================================================================== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(7, 10, 16, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  box-sizing: border-box;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.modal-overlay.open {
  display: flex !important;
  opacity: 1;
}

.modal-card {
  position: relative;
  background: #0B132B;
  border: 1px solid rgba(58, 80, 107, 0.6);
  border-radius: 1.25rem;
  width: 100%;
  max-width: 36rem;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.9), 0 0 30px rgba(56, 189, 248, 0.15);
  overflow: hidden;
  animation: modalEnter 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalEnter {
  from { opacity: 0; transform: scale(0.95) translateY(12px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header {
  padding: 1rem 1.25rem 0.85rem;
  border-bottom: 1px solid rgba(58, 80, 107, 0.4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(11, 19, 43, 0.95);
  flex-shrink: 0;
}

.modal-header-left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.modal-header-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan-primary);
  flex-shrink: 0;
}

.modal-title-text {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.2;
}

.modal-subtitle-text {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 1px;
}

.modal-header-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-modal-back {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.65rem;
  border-radius: 9999px;
  background: rgba(58, 80, 107, 0.3);
  border: 1px solid rgba(58, 80, 107, 0.5);
  color: #CBD5E1;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-modal-back:hover {
  background: rgba(58, 80, 107, 0.6);
  color: #FFFFFF;
}

.btn-modal-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.35rem;
  border-radius: 0.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.btn-modal-close:hover {
  background: rgba(58, 80, 107, 0.3);
  color: #FFFFFF;
}

.modal-body {
  padding: 1.25rem;
  overflow-y: auto;
  max-height: calc(88vh - 4.5rem);
}

.modal-choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.choice-card {
  background: rgba(28, 37, 65, 0.6);
  border: 1px solid rgba(58, 80, 107, 0.5);
  border-radius: 1rem;
  padding: 1.25rem 1rem;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  outline: none;
}

.choice-card:hover {
  background: rgba(28, 37, 65, 0.95);
  border-color: var(--cyan-primary);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(56, 189, 248, 0.2);
}

.choice-icon-wrap {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.85rem;
}

.music-icon-wrap {
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: var(--cyan-primary);
}

.ad-icon-wrap {
  background: rgba(217, 70, 239, 0.15);
  border: 1px solid rgba(217, 70, 239, 0.35);
  color: var(--fuchsia-accent);
}

.choice-card-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 0.4rem;
}

.choice-card-desc {
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.choice-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--cyan-primary);
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.form-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-input {
  background: rgba(7, 10, 16, 0.8);
  border: 1px solid rgba(58, 80, 107, 0.6);
  border-radius: 0.55rem;
  padding: 0.55rem 0.75rem;
  color: #FFFFFF;
  font-family: inherit;
  font-size: 0.8125rem;
  outline: none;
  transition: border-color 0.2s;
}

.form-input:focus {
  border-color: var(--cyan-primary);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.2);
}

.form-textarea {
  resize: vertical;
  min-height: 4.5rem;
}

.modal-form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem;
  margin-top: 0.5rem;
}

.btn-modal-cancel {
  background: transparent;
  border: 1px solid rgba(58, 80, 107, 0.5);
  color: var(--text-secondary);
  padding: 0.55rem 1rem;
  border-radius: 0.55rem;
  font-size: 0.8rem;
  cursor: pointer;
}

.btn-modal-submit {
  background: linear-gradient(135deg, #0284C7 0%, #0369A1 100%);
  border: 1px solid rgba(56, 189, 248, 0.5);
  color: #FFFFFF;
  padding: 0.55rem 1.25rem;
  border-radius: 0.55rem;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
  transition: all 0.2s;
}

.btn-modal-submit:hover {
  background: linear-gradient(135deg, #00F0FF 0%, #38BDF8 100%);
  color: #070A10;
  box-shadow: 0 6px 18px rgba(56, 189, 248, 0.5);
}

.modal-success-view {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem 1rem;
}

.success-icon-badge {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1rem;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.success-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 0.4rem;
}

.success-desc {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-secondary);
  max-width: 24rem;
}

/* ==========================================================================
   Inactivity / Idle Modal Styles
   ========================================================================== */
.idle-modal-card {
  position: relative;
  background: #0B132B;
  border: 1px solid rgba(56, 189, 248, 0.65);
  border-radius: 1.35rem;
  width: 100%;
  max-width: 25.5rem;
  padding: 2rem 1.75rem;
  text-align: center;
  box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.95), 0 0 35px rgba(56, 189, 248, 0.25);
  animation: modalEnter 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.idle-icon-wrap {
  width: 4rem;
  height: 4rem;
  border-radius: 1.15rem;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan-primary);
  margin-bottom: 1.15rem;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.3);
}

.idle-modal-title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 0.5rem;
}

.idle-modal-desc {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.btn-idle-resume {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.85rem 1.5rem;
  border-radius: 0.85rem;
  background: linear-gradient(135deg, #0284C7 0%, #00F0FF 100%);
  border: 1px solid rgba(56, 189, 248, 0.6);
  color: #070A10;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(2, 132, 199, 0.45);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-idle-resume:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 240, 255, 0.6);
}

.btn-idle-resume:active {
  transform: translateY(0);
}

/* ==========================================================================
   Micro-Onboarding Swipe Hand Overlay
   ========================================================================== */
.onboarding-swipe-overlay {
  position: absolute;
  inset: 0;
  z-index: 35;
  border-radius: inherit;
  background: rgba(7, 10, 16, 0.72);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  transition: opacity 0.32s ease, visibility 0.32s ease;
  user-select: none;
}

.onboarding-swipe-overlay.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.swipe-hand-gesture {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  text-align: center;
  padding: 1rem;
}

.swipe-hand-icon {
  width: 3.8rem;
  height: 3.8rem;
  border-radius: 9999px;
  background: rgba(56, 189, 248, 0.16);
  border: 1.5px solid rgba(56, 189, 248, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #00F0FF;
  box-shadow: 0 0 28px rgba(0, 240, 255, 0.45);
  animation: handSwipeAnim 2.2s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}

@keyframes handSwipeAnim {
  0% {
    transform: translateX(-38px) rotate(-10deg) scale(0.96);
  }
  25% {
    transform: translateX(0px) rotate(0deg) scale(1.05);
  }
  50% {
    transform: translateX(42px) rotate(12deg) scale(0.96);
  }
  75% {
    transform: translateX(0px) rotate(0deg) scale(1.05);
  }
  100% {
    transform: translateX(-38px) rotate(-10deg) scale(0.96);
  }
}

.swipe-hint-track {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.9rem;
  border-radius: 9999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.hint-pass-text {
  color: #F87171;
}

.hint-fire-text {
  color: #34D399;
}

.hint-dot-path {
  display: flex;
  gap: 4px;
}

.path-dot {
  width: 4px;
  height: 4px;
  border-radius: 9999px;
  background: rgba(148, 163, 184, 0.5);
}

.swipe-hint-label {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ==========================================================================
   Swipe Particle Physics (DOM Sparks & Smoke Shatter)
   ========================================================================== */
.particle-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1200;
  overflow: hidden;
}

.particle {
  position: absolute;
  pointer-events: none;
  border-radius: 9999px;
  will-change: transform, opacity;
}

.particle-fire {
  box-shadow: 0 0 10px currentColor;
}

.particle-pass {
  border-radius: 2px;
  box-shadow: 0 0 6px currentColor;
}

/* ==========================================================================
   Fire List Slide-out Drawer & Backdrop
   ========================================================================== */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 7, 18, 0.7);
  backdrop-filter: blur(6px);
  z-index: 1050;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.drawer-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.firelist-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(92vw, 390px);
  background: #0B132B;
  border-left: 1px solid rgba(56, 189, 248, 0.35);
  z-index: 1060;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.85);
}

.firelist-drawer.open {
  transform: translateX(0);
}

.drawer-header {
  padding: 1.15rem 1.25rem;
  border-bottom: 1px solid rgba(56, 189, 248, 0.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(15, 23, 42, 0.65);
}

.drawer-brand-col {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.drawer-fire-badge {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.65rem;
  background: rgba(251, 146, 60, 0.16);
  border: 1px solid rgba(251, 146, 60, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  box-shadow: 0 0 14px rgba(251, 146, 60, 0.25);
  flex-shrink: 0;
}

.drawer-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  color: #FFFFFF;
  margin: 0;
  letter-spacing: 0.02em;
}

.drawer-subtitle {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: #94A3B8;
  margin: 0.15rem 0 0 0;
}

.drawer-subtitle span {
  color: #FB923C;
  font-weight: 700;
}

.btn-drawer-close {
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 0.55rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #94A3B8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.18s ease;
  outline: none;
}

.btn-drawer-close:hover {
  background: rgba(239, 68, 68, 0.22);
  border-color: #EF4444;
  color: #FFFFFF;
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.15rem;
  display: flex;
  flex-direction: column;
}

.firelist-empty {
  margin: auto;
  text-align: center;
  padding: 2.5rem 1rem;
  max-width: 260px;
}

.empty-icon-wrap {
  width: 3.6rem;
  height: 3.6rem;
  border-radius: 1rem;
  background: rgba(251, 146, 60, 0.12);
  border: 1px solid rgba(251, 146, 60, 0.35);
  font-size: 1.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.1rem;
  box-shadow: 0 0 20px rgba(251, 146, 60, 0.2);
}

.empty-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 0.35rem;
}

.empty-desc {
  font-size: 0.8125rem;
  color: #94A3B8;
  line-height: 1.45;
}

.firelist-items-container {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.firelist-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.75rem;
  border-radius: 0.85rem;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(56, 189, 248, 0.2);
  transition: all 0.2s ease;
}

.firelist-card:hover {
  background: rgba(28, 37, 65, 0.75);
  border-color: rgba(251, 146, 60, 0.5);
  transform: translateX(-2px);
}

.firelist-thumb {
  width: 3rem;
  height: 3rem;
  border-radius: 0.55rem;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.firelist-info {
  flex: 1;
  min-width: 0;
}

.firelist-track-title {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.firelist-track-artist {
  font-size: 0.75rem;
  color: var(--cyan-primary);
  margin: 0.15rem 0 0.3rem 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.firelist-meta-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.firelist-genre {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  color: #94A3B8;
  background: rgba(255, 255, 255, 0.06);
  padding: 0.15rem 0.45rem;
  border-radius: 9999px;
  text-transform: uppercase;
}

.firelist-yt-link {
  color: #EF4444;
  font-size: 0.7rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  text-decoration: none;
  font-family: var(--font-mono);
  margin-left: auto;
  transition: opacity 0.15s;
}

.firelist-yt-link:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.drawer-footer {
  padding: 0.95rem 1.15rem max(0.95rem, env(safe-area-inset-bottom, 12px));
  border-top: 1px solid rgba(56, 189, 248, 0.2);
  background: rgba(15, 23, 42, 0.65);
}

.drawer-note-card {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.8rem;
  border-radius: 0.65rem;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.2);
}

.note-icon {
  font-size: 1.1rem;
}

.note-text {
  font-size: 0.72rem;
  color: #CBD5E1;
  line-height: 1.4;
  margin: 0;
}

/* ==========================================================================
   Card Undo Entrance Keyframe
   ========================================================================== */
@keyframes undoEnterCard {
  from {
    transform: translate3d(0, -22px, 0) scale(0.94);
    opacity: 0.3;
  }
  to {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 1;
  }
}

.rater-card.undo-enter {
  animation: undoEnterCard 0.32s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media (max-width: 600px) {
  .games-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: max(0.85rem, env(safe-area-inset-top, 12px)) 0.85rem 0.65rem;
    gap: 0.5rem;
  }

  .btn-back-radio span {
    display: none;
  }

  .btn-back-radio {
    padding: 0.45rem;
  }

  .brand-title {
    font-size: 1rem;
  }

  .brand-subtitle {
    font-size: 0.58rem;
  }

  .rater-card-stage {
    height: 29.5rem;
  }

  .rater-card {
    padding: 1.1rem;
  }

  .welcome-rules-grid {
    gap: 0.5rem;
  }

  .rule-card {
    padding: 0.55rem 0.65rem;
    gap: 0.25rem;
  }

  .rule-card-header {
    gap: 0.35rem;
  }

  .rule-icon {
    width: 1.55rem;
    height: 1.55rem;
    font-size: 0.85rem;
  }

  .rule-title {
    font-size: 0.72rem;
  }

  .rule-desc {
    font-size: 0.62rem;
    line-height: 1.25;
  }

  .btn-start-rater {
    padding: 0.75rem 1.25rem;
    font-size: 0.95rem;
  }

  .card-visual-frame {
    height: 11.5rem;
  }

  .vinyl-mock {
    width: 8.5rem;
    height: 8.5rem;
  }

  .vinyl-center-dot {
    width: 3.4rem;
    height: 3.4rem;
  }

  .track-title {
    font-size: 1.2rem;
  }

  .modal-choice-grid {
    grid-template-columns: 1fr;
  }

  .form-grid-2 {
    grid-template-columns: 1fr;
  }

  .app-footer {
    flex-direction: column;
    text-align: center;
    padding: 0.75rem 0.85rem max(0.75rem, env(safe-area-inset-bottom, 12px));
    gap: 0.5rem;
  }

  .footer-copy {
    justify-content: center;
    flex-wrap: wrap;
    font-size: 0.65rem;
  }

  .footer-actions {
    justify-content: center;
    width: 100%;
    flex-wrap: wrap;
    gap: 0.35rem;
  }

  .footer-nav-pill {
    padding: 0.3rem 0.65rem;
    min-height: 34px;
    font-size: 0.7rem;
  }
}
