/* style.css - Complete self-contained design system for "A Date with Maui" */
/* Impeccable Craft Standards: High contrast, neutral elevation depth, smooth exponential easing */

:root {
  --bg-deep: #140402;
  --bg-dark: #220803;
  --bg-mid: #330c05;
  --bg-surface: #260a04;
  --bg-elevated: #3a1107;
  
  --text-primary: #ffffff;
  --text-secondary: #fef08a;
  --text-muted: #fde68a;
  --text-dim: #fbd38d;

  --card-bg: rgba(38, 10, 4, 0.85);
  --card-bg-hover: rgba(58, 17, 7, 0.95);
  --card-border: rgba(251, 191, 36, 0.32);
  --card-border-hover: rgba(251, 191, 36, 0.7);
  --card-selected-bg: #fbbf24;
  --card-selected-text: #220803;

  --accent-rose: #be123c;
  --accent-rose-hover: #9f1239;
  --accent-teal: #0f766e;
  --accent-teal-hover: #115e59;
  --accent-gold: #f59e0b;

  --focus-ring: #fbbf24;
  --shadow-elevation-1: 0 2px 6px rgba(0, 0, 0, 0.4);
  --shadow-elevation-2: 0 8px 24px rgba(0, 0, 0, 0.55);
  --shadow-elevation-3: 0 16px 36px rgba(0, 0, 0, 0.7);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);

  /* Typographic Hierarchy Tokens */
  --font-display: "Playfair Display", "Georgia", "Times New Roman", serif;
  --font-sans: "Be Vietnam Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --font-handwriting: "Caveat", "Segoe Print", "Bradley Hand", cursive;
  --font-typewriter: "Special Elite", "Courier Prime", "Courier New", monospace;
}

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

html {
  color-scheme: dark;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-dark) 28%, var(--bg-mid) 60%, var(--bg-deep) 100%);
  background-attachment: fixed;
  color: var(--text-primary);
  font-family: var(--font-sans);
  min-height: 100vh;
  min-height: 100dvh;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Browser surface customization */
::selection {
  background: #be123c;
  color: #ffffff;
}

input, textarea {
  caret-color: #fbbf24;
}

a {
  text-underline-offset: 0.25em;
}

.numeral, .status-badge, #bpm, #lb, .ticket-header {
  font-variant-numeric: tabular-nums;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: rgba(20, 4, 2, 0.9);
}
::-webkit-scrollbar-thumb {
  background: rgba(251, 191, 36, 0.5);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(251, 191, 36, 0.85);
}

:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
}

/* Headings & Typography */
h1, h2, h3 {
  font-family: var(--font-display);
  letter-spacing: -0.018em;
  line-height: 1.25;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  font-weight: 700;
  text-wrap: balance;
}

p {
  line-height: 1.55;
  text-wrap: pretty;
}

/* Tabular Numerals & Monospace Roles */
.tabular-nums, [data-tabular] {
  font-variant-numeric: tabular-nums;
}

/* Atmospheric Night Canopy (Stars & Drifting Embers) */
.stars-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='300'%3E%3Ccircle cx='30' cy='40' r='1' fill='%23fde68a' opacity='0.85'/%3E%3Ccircle cx='90' cy='150' r='0.8' fill='%23ffffff' opacity='0.7'/%3E%3Ccircle cx='170' cy='80' r='1.4' fill='%23fbbf24' opacity='0.9'/%3E%3Ccircle cx='260' cy='220' r='0.9' fill='%23fef08a' opacity='0.75'/%3E%3Ccircle cx='340' cy='110' r='1.2' fill='%23ffffff' opacity='0.85'/%3E%3Ccircle cx='70' cy='260' r='1.1' fill='%23fde68a' opacity='0.8'/%3E%3Ccircle cx='210' cy='20' r='0.7' fill='%23ffffff' opacity='0.6'/%3E%3Ccircle cx='380' cy='240' r='1.3' fill='%23fbbf24' opacity='0.85'/%3E%3C/svg%3E");
  background-size: 400px 300px;
  opacity: 0.65;
  animation: starsDrift 16s ease-in-out infinite alternate;
}

@keyframes starsDrift {
  0% { opacity: 0.55; transform: scale(1) translateY(0); }
  50% { opacity: 0.85; transform: scale(1.02) translateY(-6px); }
  100% { opacity: 0.6; transform: scale(1) translateY(0); }
}

/* Top Navigation Bar */
.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  box-shadow: var(--shadow-elevation-2);
}

.player-bar {
  background: rgba(18, 5, 4, 0.82);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  padding: 0.45rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border-bottom: 1px solid rgba(251, 191, 36, 0.22);
  min-height: 52px;
  box-sizing: border-box;
}

/* Left Group: Back Button + Level Badge */
.player-left-group {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
}

.nav-back-btn {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(251, 191, 36, 0.35);
  color: var(--text-primary);
  padding: 0.25rem 0.65rem 0.25rem 0.5rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  user-select: none;
}

.nav-back-icon {
  font-size: 1.15rem;
  line-height: 1;
  font-weight: 700;
  color: #fbbf24;
  margin-top: -1px;
}

.nav-back-btn:hover {
  background: rgba(251, 191, 36, 0.2);
  border-color: rgba(251, 191, 36, 0.75);
  transform: translateX(-2px);
  color: #ffffff;
  box-shadow: 0 0 10px rgba(251, 191, 36, 0.25);
}

.nav-back-btn:active {
  transform: scale(0.95);
}

.level-indicator-capsule {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.22rem 0.65rem;
  border-radius: var(--radius-full);
}

.level-badge {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(225, 29, 72, 0.25));
  border: 1px solid rgba(251, 191, 36, 0.5);
  color: #fbbf24;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.12rem 0.45rem;
  border-radius: var(--radius-full);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.level-title {
  color: var(--text-primary);
  font-size: 0.85rem;
  font-weight: 600;
  max-width: 140px;
}

/* Center Group: Now Playing Pill */
.player-center-track {
  flex: 1;
  display: flex;
  justify-content: center;
  min-width: 0;
}

.now-playing-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: rgba(0, 0, 0, 0.38);
  border: 1px solid rgba(251, 191, 36, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 2px 10px rgba(0, 0, 0, 0.3);
  padding: 0.26rem 0.85rem;
  border-radius: var(--radius-full);
  max-width: 320px;
  width: 100%;
  justify-content: space-between;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.now-playing-pill:hover {
  border-color: rgba(251, 191, 36, 0.5);
  box-shadow: 0 0 14px rgba(251, 191, 36, 0.2);
}

.track-title {
  color: #fff;
  font-size: 0.82rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  text-align: left;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-full);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  flex-shrink: 0;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #94a3b8;
}

.equalizer.playing + .track-title + .status-pill,
.status-pill.playing {
  background: rgba(34, 197, 94, 0.18);
  color: #4ade80;
  border: 1px solid rgba(74, 222, 128, 0.35);
}

.equalizer.playing + .track-title + .status-pill .status-dot,
.status-pill.playing .status-dot {
  background: #4ade80;
  box-shadow: 0 0 6px #4ade80;
  animation: pulseDot 1.6s ease-in-out infinite alternate;
}

@keyframes pulseDot {
  0% { transform: scale(0.9); opacity: 0.7; }
  100% { transform: scale(1.3); opacity: 1; }
}

/* Right Group: Transport Controls & Separate Volume Bar */
.player-right-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.transport-controls {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.player-circle-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(251, 191, 36, 0.28);
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.media-icon {
  width: 14px;
  height: 14px;
  display: block;
  fill: currentColor;
  color: #fbbf24;
  transition: transform 0.15s ease, color 0.15s ease, filter 0.15s ease;
  pointer-events: none;
}

.media-play {
  margin-left: 1.5px; /* optical centering for triangle */
}

.media-vol,
.media-mute {
  width: 15px;
  height: 15px;
}

.player-circle-btn img.emoji {
  height: 1.1em;
  width: 1.1em;
  margin: 0;
  vertical-align: middle;
}

.player-circle-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(251, 191, 36, 0.65);
  transform: scale(1.08);
}

.player-circle-btn:hover .media-icon,
.vol-btn:hover .media-icon {
  color: #ffffff;
  transform: scale(1.08);
}

.player-circle-btn:active {
  transform: scale(0.95);
}

.player-circle-btn.hero-play {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.22), rgba(225, 29, 72, 0.25));
  border: 1px solid rgba(251, 191, 36, 0.65);
  box-shadow: 0 0 10px rgba(251, 191, 36, 0.25);
}

.player-circle-btn.hero-play .media-icon {
  width: 16px;
  height: 16px;
  color: #fbbf24;
}

.player-circle-btn.hero-play:hover {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.35), rgba(225, 29, 72, 0.4));
  box-shadow: 0 0 14px rgba(251, 191, 36, 0.45);
  transform: scale(1.1);
}

.player-circle-btn.hero-play:hover .media-icon {
  color: #fffbeb;
  filter: drop-shadow(0 0 6px rgba(251, 191, 36, 0.7));
}

/* Distinct Aesthetic Volume Bar Capsule */
.volume-bar-capsule {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(0, 0, 0, 0.38);
  border: 1px solid rgba(251, 191, 36, 0.3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  padding: 0.22rem 0.55rem;
  border-radius: var(--radius-full);
}

.vol-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.15rem;
  border-radius: 50%;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

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

.vol-btn img.emoji {
  height: 1.15em;
  width: 1.15em;
  margin: 0;
}

.volume-slider-container {
  display: flex;
  align-items: center;
  width: 72px;
}

/* Custom styled range slider */
#vol-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 5px;
  background: linear-gradient(
    to right,
    #fbbf24 0%,
    #f59e0b var(--vol-percent, 40%),
    rgba(255, 255, 255, 0.15) var(--vol-percent, 40%),
    rgba(255, 255, 255, 0.15) 100%
  );
  border-radius: 9999px;
  outline: none;
  cursor: pointer;
  transition: background 0.1s linear;
}

#vol-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #fbbf24;
  border: 2px solid #140402;
  box-shadow: 0 0 6px rgba(251, 191, 36, 0.8), 0 1px 3px rgba(0, 0, 0, 0.5);
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

#vol-slider::-webkit-slider-thumb:hover {
  transform: scale(1.25);
  background: #fde047;
}

#vol-slider::-moz-range-thumb {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #fbbf24;
  border: 2px solid #140402;
  box-shadow: 0 0 6px rgba(251, 191, 36, 0.8), 0 1px 3px rgba(0, 0, 0, 0.5);
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

#vol-slider::-moz-range-thumb:hover {
  transform: scale(1.25);
  background: #fde047;
}

.vol-percent-badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: #fbbf24;
  font-variant-numeric: tabular-nums;
  min-width: 2.2rem;
  text-align: right;
  letter-spacing: -0.01em;
}

.level-bar {
  display: none;
}

.icon-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.25);
  color: var(--text-primary);
  font-size: 0.95rem;
  cursor: pointer;
  padding: 0.32rem 0.55rem;
  border-radius: var(--radius-sm);
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(251, 191, 36, 0.6);
  transform: scale(1.05);
}

.icon-btn:active {
  transform: scale(0.96);
}

/* ==========================================================================
   Custom External Colorful Icons (Twemoji SVG System)
   ========================================================================== */
img.emoji {
  display: inline-block;
  vertical-align: -0.18em;
  height: 1.18em;
  width: 1.18em;
  margin: 0 0.12em;
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.25));
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Audio Player control buttons */
.icon-btn img.emoji {
  height: 1.15em;
  width: 1.15em;
  margin: 0;
  vertical-align: middle;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}

.icon-btn.text-lg img.emoji {
  height: 1.35em;
  width: 1.35em;
}

/* Selection Cards Icon */
.card .text-2xl img.emoji {
  height: 1.75em;
  width: 1.75em;
  margin: 0.1rem 0.2rem 0.25rem 0;
  vertical-align: middle;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.35));
}

.card:hover img.emoji {
  transform: scale(1.15) rotate(3deg);
}

/* Primary and Action Buttons */
.btn img.emoji,
.snd-btn img.emoji,
.stamp img.emoji {
  margin-right: 0.25em;
  margin-left: 0.1em;
  vertical-align: -0.16em;
}

.btn:hover img.emoji,
.snd-btn:hover img.emoji {
  transform: scale(1.12);
}

/* Stamp icons */
.stamp img.emoji {
  height: 1.1em;
  width: 1.1em;
  vertical-align: -0.15em;
}

/* Hero / Large Display Icons (Bowl, Locator pin, Fireworks, Epilogue banner) */
.hero-emoji,
.text-5xl img.emoji,
.text-6xl img.emoji {
  height: 0.95em;
  width: 0.95em;
  margin: 0 0.05em;
  vertical-align: -0.1em;
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.45));
}

.text-4xl img.emoji {
  height: 0.9em;
  width: 0.9em;
  margin: 0 0.08em;
  vertical-align: -0.1em;
}

.float-particle img.emoji {
  width: 1.35em;
  height: 1.35em;
  margin: 0;
  vertical-align: middle;
  filter: drop-shadow(0 4px 10px rgba(225, 29, 72, 0.45));
}

.back-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.4);
  color: var(--text-secondary);
  padding: 0.25rem 0.8rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.back-btn:hover {
  background: rgba(251, 191, 36, 0.25);
  color: #ffffff;
  border-color: rgba(251, 191, 36, 0.8);
  transform: translateX(-2px);
}

/* Animated Equalizer */
.equalizer {
  display: inline-flex;
  align-items: flex-end;
  gap: 2.5px;
  height: 13px;
  margin-right: 4px;
}

.equalizer-bar {
  width: 2.5px;
  height: 3px;
  background: var(--text-secondary);
  border-radius: 1px;
  transition: height 0.15s ease;
}

.equalizer.playing .equalizer-bar:nth-child(1) { animation: eq 0.65s ease-in-out infinite alternate; }
.equalizer.playing .equalizer-bar:nth-child(2) { animation: eq 0.45s ease-in-out infinite alternate 0.15s; }
.equalizer.playing .equalizer-bar:nth-child(3) { animation: eq 0.85s ease-in-out infinite alternate 0.05s; }
.equalizer.playing .equalizer-bar:nth-child(4) { animation: eq 0.55s ease-in-out infinite alternate 0.25s; }

@keyframes eq {
  0% { height: 2px; }
  100% { height: 13px; }
}

/* Level Sections */
.lv {
  display: none;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 4.6rem 1.2rem 4rem;
  align-items: center;
  justify-content: flex-start;
  gap: 1.15rem;
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.lv.on {
  display: flex;
  flex-direction: column;
  animation: sceneUnfold 0.44s var(--ease-out-expo) forwards;
}

@keyframes sceneUnfold {
  0% {
    opacity: 0;
    transform: scale(0.985) translateY(12px);
    filter: blur(3px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: blur(0);
  }
}

.lv.on > * {
  animation: elementCascade 0.42s var(--ease-out-expo) both;
}
.lv.on > *:nth-child(1) { animation-delay: 0.02s; }
.lv.on > *:nth-child(2) { animation-delay: 0.06s; }
.lv.on > *:nth-child(3) { animation-delay: 0.10s; }
.lv.on > *:nth-child(4) { animation-delay: 0.14s; }
.lv.on > *:nth-child(5) { animation-delay: 0.18s; }
.lv.on > *:nth-child(6) { animation-delay: 0.22s; }

@keyframes elementCascade {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Buttons */
.btn {
  background: var(--accent-rose);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  padding: 0.72rem 1.8rem;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.015em;
  transition: transform 0.22s var(--ease-out-expo), background 0.2s ease, box-shadow 0.22s var(--ease-out-expo), border-color 0.2s ease;
  box-shadow: var(--shadow-elevation-1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  user-select: none;
  touch-action: manipulation;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -60%;
  width: 35%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transform: rotate(25deg);
  transition: left 0.65s var(--ease-out-expo);
  pointer-events: none;
}

.btn:hover::before {
  left: 140%;
}

.btn:hover {
  background: var(--accent-rose-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-elevation-2);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn:active {
  transform: translateY(1px) scale(0.98);
  box-shadow: var(--shadow-elevation-1);
}

.btn.pulse-heart {
  animation: heartPulse 1.25s cubic-bezier(0.25, 0.8, 0.25, 1) infinite;
}

@keyframes heartPulse {
  0%, 100% { transform: scale(var(--btn-scale, 1)); }
  18% { transform: scale(calc(var(--btn-scale, 1) * 1.07)); box-shadow: var(--shadow-elevation-3); }
  32% { transform: scale(calc(var(--btn-scale, 1) * 1.015)); }
  46% { transform: scale(calc(var(--btn-scale, 1) * 1.05)); box-shadow: var(--shadow-elevation-2); }
}

.btn.alt {
  background: var(--accent-teal);
}

.btn.alt:hover {
  background: var(--accent-teal-hover);
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* Pickers Grid */
.choice-preview {
  min-height: 1.5rem;
  color: #fde68a;
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  margin: -0.2rem 0 0.4rem;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
  transition: opacity 0.2s ease;
}

.grid2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.9rem;
  width: 100%;
  max-width: 740px;
  margin: 0.4rem 0 0.8rem;
}

/* Selection Cards */
.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 1rem;
  cursor: pointer;
  transition: transform 0.24s var(--ease-out-expo), background 0.2s ease, border-color 0.2s ease, box-shadow 0.24s ease;
  text-align: left;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
  user-select: none;
  box-shadow: var(--shadow-elevation-1);
}

.card:hover {
  transform: translateY(-4px) scale(1.012);
  background: var(--card-bg-hover);
  border-color: var(--card-border-hover);
  box-shadow: var(--shadow-elevation-2);
}

.card:active {
  transform: translateY(-1px) scale(0.985);
}

.card.sel {
  background: var(--card-selected-bg);
  color: var(--card-selected-text);
  border-color: #f59e0b;
  animation: cardSelectPop 0.38s var(--ease-out-expo) forwards;
}

@keyframes cardSelectPop {
  0% { transform: scale(0.96); }
  50% { transform: scale(1.035); box-shadow: var(--shadow-elevation-3); }
  100% { transform: translateY(-2px) scale(1); box-shadow: var(--shadow-elevation-2); }
}

.card.sel .text-xs {
  color: #220803 !important;
  font-weight: 600;
}

.tag {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  background: var(--accent-rose);
  color: #ffffff;
  border-radius: var(--radius-full);
  padding: 2px 7px;
  margin-left: 6px;
  vertical-align: middle;
}

/* Canvas & Phaser Container Defaults */
canvas {
  max-width: 100%;
  touch-action: none;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  display: block;
  margin: 0 auto;
}

#badminton-container canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  border-radius: 0.75rem;
  touch-action: none;
}

/* Thought Bubble (Level 3b) */
.thought-container {
  position: relative;
  margin-top: 1.2rem;
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.think {
  background: #ffffff;
  color: #260a04;
  border-radius: var(--radius-lg);
  padding: 0.95rem 1.25rem;
  font-size: 0.92rem;
  line-height: 1.55;
  font-weight: 500;
  box-shadow: var(--shadow-elevation-2);
  position: relative;
  width: 100%;
  max-width: 420px;
  margin-bottom: 1.2rem;
  text-align: left;
}

.think::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 14px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.think::before {
  content: "";
  position: absolute;
  bottom: -18px;
  left: calc(50% - 4px);
  width: 8px;
  height: 8px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

/* ==========================================================================
   Level 8: Master Vintage Turntable & Jukebox Deck (Experience Mode)
   ========================================================================== */
.turntable-container {
  width: 100%;
  max-width: 540px;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  align-items: center;
  margin: 0.5rem 0;
}

/* Boarding Pass / Ticket */
.itinerary-ticket {
  width: 100%;
  background: #fffdf5;
  color: #260a04;
  border-radius: var(--radius-md);
  padding: 1.2rem 1.4rem;
  text-align: left;
  border: 1px dashed #b45309;
  position: relative;
  box-shadow: var(--shadow-elevation-2);
}

.itinerary-ticket::before, .itinerary-ticket::after {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  background: var(--bg-deep);
  border-radius: 50%;
}
.itinerary-ticket::before { left: -8px; }
.itinerary-ticket::after { right: -8px; }

.ticket-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #b45309;
  padding-bottom: 0.4rem;
  margin-bottom: 0.7rem;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #92400e;
}

.ticket-row {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
}

.ticket-row b {
  color: #b45309;
}

/* Turntable Plinth */
.turntable-deck {
  width: 100%;
  max-width: 480px;
  height: 270px;
  margin: 0 auto;
  background: linear-gradient(135deg, #1f0703 0%, #2f0d05 35%, #1c0602 100%);
  border-radius: var(--radius-lg);
  border: 4px solid #854d0e;
  border-top-color: #a16207;
  border-bottom-color: #713f12;
  box-shadow: 
    inset 0 0 0 1px rgba(251, 191, 36, 0.2),
    inset 0 2px 6px rgba(255, 255, 255, 0.08), 
    var(--shadow-elevation-3);
  position: relative;
  overflow: hidden;
  padding: 1.25rem 1.5rem;
  box-sizing: border-box;
  user-select: none;
}

/* Cast Aluminum Platter with Rubber Mat */
.turntable-platter {
  position: absolute;
  left: 24px;
  top: 27px;
  width: 216px;
  height: 216px;
  border-radius: 50%;
  background: radial-gradient(circle at center, #18181b 0%, #27272a 75%, #3f3f46 95%, #71717a 100%);
  box-shadow: inset 0 0 0 4px #52525b, inset 0 0 12px rgba(0, 0, 0, 0.9), 0 8px 24px rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: transform 0.2s var(--ease-out-expo);
}

.turntable-platter:active {
  transform: scale(0.99);
}

.strobe-rim {
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  border: 2px dashed rgba(255, 255, 255, 0.18);
  pointer-events: none;
}

/* High-Fidelity Vinyl LP */
.vinyl-disc {
  width: 204px;
  height: 204px;
  border-radius: 50%;
  background: radial-gradient(
    circle at center,
    #111113 0%,
    #18181c 20%,
    #0c0c0e 38%,
    #1c1c20 54%,
    #09090b 70%,
    #161619 86%,
    #08080a 100%
  );
  box-shadow: inset 0 0 0 2px #2b2b30, inset 0 0 12px rgba(0, 0, 0, 0.9), 0 4px 12px rgba(0, 0, 0, 0.6);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.vinyl-disc::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg, 
    transparent 0deg, 
    rgba(255, 255, 255, 0.08) 35deg, 
    transparent 70deg, 
    transparent 180deg, 
    rgba(255, 255, 255, 0.08) 215deg, 
    transparent 250deg
  );
  pointer-events: none;
  z-index: 2;
}

.vinyl-disc.spin {
  animation: sp var(--vinyl-speed, 14s) linear infinite;
  transition: animation-duration 0.4s ease;
}

.turntable-platter:hover .vinyl-disc.spin {
  animation-duration: 22s;
}

.vinyl-disc.spin::before {
  animation: grooveSheen 18s linear infinite reverse;
}

@keyframes grooveSheen {
  to { transform: rotate(360deg); }
}

@keyframes sp {
  to { transform: rotate(360deg); }
}

.vinyl-groove-band {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.05);
  pointer-events: none;
}
.band-1 { width: 172px; height: 172px; }
.band-2 { width: 132px; height: 132px; }

.vinyl-silent-gap {
  position: absolute;
  width: 152px;
  height: 152px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.07);
  pointer-events: none;
}

/* Vintage Custom Pressed Center Label with Authentic Artwork */
.vinyl-center-label {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: radial-gradient(circle at center, #881337 0%, #4c0519 100%);
  box-shadow: inset 0 0 0 2px #fbbf24, inset 0 0 0 4px #881337, inset 0 0 0 5px rgba(251, 191, 36, 0.4), 0 2px 8px rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  position: relative;
  z-index: 3;
  user-select: none;
  overflow: hidden;
}

.vinyl-cover-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  z-index: 1;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.vinyl-center-label.has-art {
  background: #140402;
  box-shadow: inset 0 0 0 2px #fbbf24, inset 0 0 0 3px #140402, 0 3px 10px rgba(0, 0, 0, 0.7);
}

.vinyl-art-overlay {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at center, transparent 38%, rgba(0, 0, 0, 0.25) 75%, rgba(0, 0, 0, 0.5) 100%);
  pointer-events: none;
  z-index: 2;
  box-shadow: inset 0 0 0 1.5px rgba(251, 191, 36, 0.6);
}

.vinyl-center-label:not(.has-art) .vinyl-cover-art,
.vinyl-center-label:not(.has-art) .vinyl-art-overlay {
  display: none;
}

.vinyl-center-label:not(.has-art) {
  background: radial-gradient(circle at center, #881337 0%, #4c0519 100%);
  box-shadow: inset 0 0 0 2px #fbbf24, inset 0 0 0 4px #881337, inset 0 0 0 5px rgba(251, 191, 36, 0.4), 0 2px 8px rgba(0, 0, 0, 0.6);
}

/* Hide extra text inside the vinyl disc circle as requested */
.vinyl-center-label .v-title,
.v-label-brand {
  display: none !important;
}

/* Text wrap style on the black vinyl surface outside the circle */
.vinyl-groove-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

.groove-artist-wrap {
  fill: #fbbf24;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.95));
  opacity: 0.95;
}

.spindle-pin {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  background: radial-gradient(circle at 35% 35%, #ffffff 0%, #d4d4d8 50%, #52525b 85%, #27272a 100%);
  border-radius: 50%;
  border: 1.5px solid #18181b;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.8), inset 0 1px 1px rgba(255, 255, 255, 0.9);
  z-index: 5;
  margin: 0;
}

/* Jukebox Track Item with Artwork Thumbnails */
.track-thumb {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid rgba(251, 191, 36, 0.35);
  margin-right: 10px;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.track-thumb-fallback {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  background: radial-gradient(circle at center, #881337 0%, #350805 100%);
  border: 1px solid rgba(251, 191, 36, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
  flex-shrink: 0;
}

.track-thumb-fallback svg {
  width: 22px;
  height: 22px;
}

/* Calibrated Metallic S-Tonearm with Counterweight */
.tonearm-assembly {
  position: absolute;
  top: 22px;
  left: 310px;
  width: 48px;
  height: 195px;
  transform-origin: 24px 25px;
  transform: rotate(0deg);
  transition: transform 0.68s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  z-index: 10;
}

.tonearm-assembly.playing {
  transform: rotate(52deg);
}

.tonearm-pivot {
  position: absolute;
  top: 7px;
  left: 6px;
  width: 36px;
  height: 36px;
  background: radial-gradient(circle at 35% 35%, #e4e4e7 0%, #71717a 80%, #3f3f46 100%);
  border-radius: 50%;
  border: 2px solid #a1a1aa;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.5);
}

.tonearm-counterweight {
  position: absolute;
  top: -6px;
  left: 10px;
  width: 28px;
  height: 18px;
  background: linear-gradient(180deg, #52525b 0%, #27272a 50%, #3f3f46 100%);
  border-radius: 3px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.armrest-clip {
  position: absolute;
  top: 132px;
  left: 328px;
  width: 12px;
  height: 12px;
  background: #3f3f46;
  border-radius: 2px;
  z-index: 5;
}

.tonearm-bar {
  position: absolute;
  top: 36px;
  left: 22px;
  width: 5px;
  height: 130px;
  background: linear-gradient(90deg, #e4e4e7 0%, #a1a1aa 50%, #d4d4d8 100%);
  border-radius: 3px;
  box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.35);
}

.tonearm-head {
  position: absolute;
  top: 160px;
  left: 14px;
  width: 20px;
  height: 30px;
  background: #18181b;
  border-radius: 3px;
  transform: rotate(-24deg);
  box-shadow: 2px 4px 8px rgba(0, 0, 0, 0.5);
}

.headshell-lift {
  position: absolute;
  top: 2px;
  right: -7px;
  width: 7px;
  height: 3px;
  background: #fbbf24;
  border-radius: 1px;
}

.cartridge {
  position: absolute;
  bottom: 4px;
  left: 3px;
  right: 3px;
  height: 12px;
  background: #b91c1c;
  border-radius: 1px;
}

.stylus-needle {
  position: absolute;
  bottom: -4px;
  left: 8px;
  width: 3px;
  height: 6px;
  background: #fbbf24;
  border-radius: 1px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.status-lamp {
  position: absolute;
  bottom: 16px;
  right: 24px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fde68a;
  z-index: 5;
}

.lamp-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ef4444;
  transition: all 0.25s ease;
}

.status-lamp.active .lamp-dot {
  background: #22c55e;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
  animation: lampBreathe 1.8s ease-in-out infinite alternate;
}

@keyframes lampBreathe {
  0% { opacity: 0.65; transform: scale(0.9); }
  100% { opacity: 1; transform: scale(1.1); }
}

/* Jukebox Tray */
.jukebox-tray {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  max-height: 195px;
  overflow-y: auto;
  padding-right: 4px;
}

.jukebox-tray::-webkit-scrollbar {
  width: 5px;
}
.jukebox-tray::-webkit-scrollbar-track {
  background: rgba(20, 4, 2, 0.5);
  border-radius: 3px;
}
.jukebox-tray::-webkit-scrollbar-thumb {
  background: rgba(251, 191, 36, 0.45);
  border-radius: 3px;
}
.jukebox-tray::-webkit-scrollbar-thumb:hover {
  background: rgba(251, 191, 36, 0.8);
}

.jukebox-track-item {
  background: rgba(38, 10, 4, 0.8);
  border: 1px solid rgba(251, 191, 36, 0.25);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.18s ease;
  text-align: left;
}

.jukebox-track-item:hover {
  background: rgba(58, 17, 7, 0.95);
  border-color: rgba(251, 191, 36, 0.6);
  transform: translateX(3px);
}

.jukebox-track-item.active {
  background: rgba(251, 191, 36, 0.18);
  border-color: #fbbf24;
}

.jukebox-track-item.active .track-name {
  color: #fef08a;
  font-weight: 700;
}

/* Vintage Aerogramme Letter (Level 7) */
.postal-frame {
  width: 100%;
  max-width: 540px;
  background: #fffbeb;
  color: #260a04;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 12px 30px -8px rgba(30, 27, 75, 0.4), var(--shadow-elevation-2);
  border: 1px solid rgba(254, 215, 170, 0.5);
  text-align: left;
  transition: transform 0.3s var(--ease-out-expo), box-shadow 0.3s ease;
}

.postal-picture-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #1e1b4b;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.postal-picture-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1), filter 0.5s ease;
}

.postal-frame:hover .postal-picture-img {
  transform: scale(1.025);
}

.airmail-trim {
  height: 5px;
  width: 100%;
  background: repeating-linear-gradient(
    135deg,
    #dc2626 0,
    #dc2626 12px,
    #fffdf5 12px,
    #fffdf5 18px,
    #2563eb 18px,
    #2563eb 30px,
    #fffdf5 30px,
    #fffdf5 36px
  );
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.12);
}

.paper {
  background: #fffdf5;
  color: #260a04;
  border: 2px solid #b91c1c;
  outline: 1px dashed #dc2626;
  outline-offset: -6px;
  padding: 1.25rem;
  max-width: 540px;
  width: 100%;
  text-align: left;
  box-shadow: var(--shadow-elevation-2);
  border-radius: 4px;
}

.letter-box {
  font-family: var(--font-typewriter);
  font-size: 1.05rem;
  line-height: 1.6;
  letter-spacing: 0.02em;
  resize: vertical;
  color: #260a04;
  -webkit-user-select: text;
  user-select: text;
  -webkit-appearance: none;
  touch-action: manipulation;
  width: 100%;
  background: transparent;
  outline: none;
  border: none;
  border-bottom: 2px dashed #b45309;
  padding: 0.5rem 0;
  margin: 0.5rem 0;
  transition: border-color 0.2s ease;
}

.letter-box:focus {
  border-bottom: 2px solid #b91c1c;
  outline: none;
}

#ep.typing::after {
  content: "▮";
  display: inline-block;
  margin-left: 3px;
  color: #fbbf24;
  animation: blinkCursor 0.75s step-start infinite;
}

@keyframes blinkCursor {
  50% { opacity: 0; }
}

.letter-box::placeholder {
  color: #92400e;
  opacity: 0.7;
}

.stamp {
  border: 2px dashed #991b1b;
  color: #991b1b;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 700;
  opacity: 0.85;
  cursor: pointer;
  transition: transform 0.2s var(--ease-out-expo), background 0.2s ease, opacity 0.2s ease;
  user-select: none;
  display: inline-block;
}

.stamp:hover {
  opacity: 1;
  transform: scale(1.05) rotate(1deg);
}

.stamp:active {
  transform: scale(0.92) rotate(-3deg);
}

.stamp.ink {
  opacity: 1;
  background: rgba(220, 38, 38, 0.16);
  animation: stampPress 0.34s var(--ease-out-expo) forwards;
}

@keyframes stampPress {
  0% { transform: scale(1.25) rotate(-8deg); opacity: 0.6; }
  65% { transform: scale(0.95) rotate(-3deg); }
  100% { transform: scale(1) rotate(-4deg); opacity: 1; }
}

.snd-btn {
  background: #fef3c7;
  border: 1px solid rgba(180, 83, 9, 0.4);
  color: #78350f;
  padding: 0.32rem 0.7rem;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s var(--ease-out-expo), background 0.18s ease, box-shadow 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.snd-btn:hover {
  background: #fde68a;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(180, 83, 9, 0.25);
}

.snd-btn:active {
  transform: translateY(1px) scale(0.96);
}

/* Wax Seal Stamping */
#wx {
  background: radial-gradient(circle at 35% 35%, #b91c1c, #7f1d1d);
  color: #ffffff;
  border: 2px solid #fbbf24;
  box-shadow: inset 0 2px 5px rgba(255, 255, 255, 0.35), inset 0 -2px 6px rgba(0, 0, 0, 0.6), 0 8px 24px rgba(0, 0, 0, 0.6);
  transform-origin: center center;
  font-weight: 800;
}

#wx.stamped {
  animation: waxSealStamp 0.54s var(--ease-out-expo) forwards;
}

@keyframes waxSealStamp {
  0% {
    transform: scale(0.1) rotate(-22deg);
    opacity: 0;
  }
  65% {
    transform: scale(1.15) rotate(4deg);
    box-shadow: var(--shadow-elevation-3);
  }
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
    box-shadow: var(--shadow-elevation-2);
  }
}

/* Bowl Stirring */
#bowl {
  display: inline-block;
  transform-origin: center bottom;
}

#bowl.stirring {
  animation: bowlStirTilt 0.32s ease infinite alternate;
}

@keyframes bowlStirTilt {
  0% { transform: rotate(-7deg) translateY(-2px); }
  100% { transform: rotate(7deg) translateY(0); }
}

/* Floating Celebratory Particles */
.float-particle {
  position: fixed;
  pointer-events: none;
  z-index: 999;
  user-select: none;
  animation: floatUpAndFade 1.6s var(--ease-out-expo) forwards;
}

@keyframes floatUpAndFade {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(0.6) translateY(0) rotate(0deg);
  }
  60% {
    opacity: 0.95;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.25) translateY(-75px) rotate(var(--rot, 15deg));
  }
}

/* ==========================================================================
   Level 9: Maui Locator & Wayfinder Navigation System
   Bespoke, high-craft UI fusing vintage navigational instruments with Dhaka romance
   ========================================================================== */

.locator-section {
  max-width: 780px !important;
  gap: 1.35rem !important;
  padding-top: 5.5rem !important;
}

/* Masthead Header */
.locator-masthead {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
}

.locator-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.45);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #6ee7b7;
  text-transform: uppercase;
}

.status-beacon-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
}

.locator-tagline {
  font-size: 0.95rem;
  color: var(--text-muted);
  opacity: 0.95;
  text-wrap: balance;
}

/* Nav Console Deck: Tactile Instrument */
.nav-console-deck {
  position: relative;
  width: 100%;
  background: linear-gradient(160deg, #240a05 0%, #170402 100%);
  border: 2px solid rgba(251, 191, 36, 0.45);
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(251, 191, 36, 0.25);
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  overflow: hidden;
}

/* Bezel Brass Screws */
.bezel-screw {
  position: absolute;
  width: 10px;
  height: 10px;
  background: radial-gradient(circle, #fde68a 25%, #92400e 80%);
  border-radius: 50%;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.8), 0 1px 1px rgba(255,255,255,0.2);
  z-index: 10;
  pointer-events: none;
}
.bezel-screw::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 2px;
  right: 2px;
  height: 1.5px;
  background: #451a03;
  transform: translateY(-50%) rotate(38deg);
}
.bezel-screw.top-left { top: 8px; left: 8px; }
.bezel-screw.top-right { top: 8px; right: 8px; transform: rotate(45deg); }
.bezel-screw.bottom-left { bottom: 8px; left: 8px; transform: rotate(90deg); }
.bezel-screw.bottom-right { bottom: 8px; right: 8px; transform: rotate(15deg); }

/* Radar & Cartographic Sonar Viewport */
.radar-card-viewport {
  position: relative;
  width: 100%;
  height: 240px;
  background: #090201;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(251, 191, 36, 0.3);
  box-shadow: inset 0 4px 16px rgba(0, 0, 0, 0.9);
}

.radar-canvas {
  width: 100%;
  height: 100%;
  display: block;
  image-rendering: pixelated;
}

.radar-glass-glare {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.07) 0%, transparent 45%);
  pointer-events: none;
  z-index: 4;
}

/* Radar HUD Overlay */
.radar-hud-overlay {
  position: absolute;
  inset: 0;
  padding: 0.75rem 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  pointer-events: none;
  z-index: 5;
}

.hud-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.hud-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.65rem;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(251, 191, 36, 0.35);
  border-radius: var(--radius-sm);
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.76rem;
  font-weight: 600;
  color: #fde68a;
  letter-spacing: 0.04em;
}

.hud-chip .chip-dot {
  width: 6px;
  height: 6px;
  background: #10b981;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.hud-center-target {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
}

.target-reticle {
  width: 44px;
  height: 44px;
  border: 1.5px dashed rgba(251, 191, 36, 0.65);
  border-radius: 50%;
  animation: spinSlow 16s linear infinite;
}

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

.target-label {
  margin-top: 0.4rem;
  background: rgba(38, 10, 4, 0.95);
  border: 1px solid rgba(251, 191, 36, 0.5);
  border-radius: var(--radius-sm);
  padding: 0.2rem 0.6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.target-name {
  font-size: 0.82rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.06em;
}

.target-coord {
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 0.74rem;
  color: #fbbf24;
  font-weight: 600;
}

.hud-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.hud-sonar-wave {
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 0.76rem;
  font-weight: 700;
  color: #6ee7b7;
  letter-spacing: 0.05em;
  background: rgba(0, 0, 0, 0.75);
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.hud-dist-badge {
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 0.82rem;
  font-weight: 800;
  color: #fde68a;
  background: rgba(190, 18, 60, 0.85);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(251, 191, 36, 0.5);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* Telemetry Instrument Metrics Bar */
.telemetry-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(251, 191, 36, 0.25);
  border-radius: var(--radius-md);
  padding: 0.75rem 0.5rem;
  align-items: center;
}

.telemetry-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}

.telemetry-label {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #fbbf24;
  opacity: 0.9;
}

.telemetry-value {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.92rem;
  font-weight: 800;
  color: #ffffff;
}

.telemetry-value.highlight-gold {
  color: #fde68a;
}

.telemetry-sub {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-dim);
  opacity: 0.85;
  letter-spacing: 0.02em;
}

.telemetry-divider {
  display: none;
}

@media (max-width: 640px) {
  .telemetry-bar {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem 0.5rem;
  }
}

/* Live Street View Container */
.streetview-container {
  width: 100%;
  background: linear-gradient(160deg, #240a05 0%, #190502 100%);
  border: 2px solid rgba(251, 191, 36, 0.4);
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6);
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.streetview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0.25rem;
}

.rec-dot {
  width: 8px;
  height: 8px;
  background: #ef4444;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
}

.streetview-heading-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 0.76rem;
  font-weight: 700;
  color: #fde68a;
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(251, 191, 36, 0.3);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
}

/* Street View Viewport Frame */
.streetview-viewport-frame {
  position: relative;
  width: 100%;
  height: 230px;
  background: #0f172a;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(251, 191, 36, 0.35);
  cursor: grab;
  user-select: none;
  touch-action: pan-y;
}

.streetview-viewport-frame:active {
  cursor: grabbing;
}

.streetview-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.streetview-lens-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, transparent 65%, rgba(0, 0, 0, 0.55) 100%);
  pointer-events: none;
  z-index: 2;
}

.streetview-reticle {
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: calc(var(--radius-md) - 6px);
  pointer-events: none;
  z-index: 3;
}
.streetview-reticle::before,
.streetview-reticle::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border-color: rgba(251, 191, 36, 0.6);
  border-style: solid;
}
.streetview-reticle::before {
  top: -1px; left: -1px;
  border-width: 2px 0 0 2px;
}
.streetview-reticle::after {
  bottom: -1px; right: -1px;
  border-width: 0 2px 2px 0;
}

/* Street Sign Plate */
.street-sign-plate {
  position: absolute;
  bottom: 12px;
  left: 12px;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: linear-gradient(180deg, #064e3b 0%, #022c22 100%);
  border: 1.5px solid #34d399;
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.75rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.7);
  z-index: 4;
  pointer-events: none;
}

.street-sign-icon {
  font-size: 1.25rem;
}

.street-sign-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.street-sign-title {
  font-size: 0.82rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.street-sign-sub {
  font-size: 0.78rem;
  color: #a7f3d0;
  font-weight: 500;
}

.streetview-pan-hint {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  pointer-events: none;
  z-index: 4;
  transition: opacity 0.4s ease;
}

/* Street View Action Toolbar */
.streetview-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  width: 100%;
}

.sv-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.9rem;
  background: rgba(58, 17, 7, 0.85);
  border: 1px solid rgba(251, 191, 36, 0.35);
  border-radius: var(--radius-full);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s var(--ease-out-expo);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.sv-action-btn:hover {
  background: rgba(85, 24, 10, 0.95);
  border-color: rgba(251, 191, 36, 0.75);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.sv-action-btn:active {
  transform: translateY(1px);
}

.sv-action-btn:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

/* Polaroid Keepsake Card */
.polaroid-wrapper {
  margin: 0.5rem auto 0;
  animation: polaroidDrop 0.5s var(--ease-out-expo) forwards;
}

@keyframes polaroidDrop {
  0% { opacity: 0; transform: scale(0.9) translateY(-14px) rotate(-3deg); }
  100% { opacity: 1; transform: scale(1) translateY(0) rotate(-1.5deg); }
}

.polaroid-frame {
  background: #faf8f5;
  border-radius: 4px;
  padding: 10px 10px 18px 10px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.65), 0 2px 6px rgba(0, 0, 0, 0.4);
  width: 280px;
  margin: 0 auto;
  border: 1px solid #e2ded5;
}

.polaroid-photo {
  width: 260px;
  height: 180px;
  background: #0f172a;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.4);
}

.polaroid-photo canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.polaroid-caption {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  margin-top: 10px;
}

.polaroid-text {
  font-family: var(--font-handwriting);
  font-size: 1.35rem;
  font-weight: 700;
  color: #1f2937;
  letter-spacing: 0.01em;
}

.polaroid-date {
  font-size: 0.78rem;
  font-weight: 600;
  color: #6b7280;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Verified Heart Reviews Showcase */
.reviews-showcase-container {
  width: 100%;
  background: linear-gradient(160deg, #240a05 0%, #1a0502 100%);
  border: 2px solid rgba(251, 191, 36, 0.4);
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6);
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.reviews-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(251, 191, 36, 0.25);
}

.overall-stars {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.stars-gold {
  color: #f59e0b;
  font-size: 1.05rem;
  letter-spacing: 0.1em;
  text-shadow: 0 1px 4px rgba(245, 158, 11, 0.4);
}

.stars-numeric {
  font-weight: 800;
  font-size: 1.1rem;
  color: #ffffff;
}

.reviews-count-badge {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-muted);
}

.reviews-award-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  color: #fde68a;
}

/* Reviews Grid */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
  width: 100%;
}

@media (max-width: 680px) {
  .reviews-grid {
    grid-template-columns: 1fr;
  }
}

.review-card {
  background: rgba(38, 10, 4, 0.88);
  border: 1px solid rgba(251, 191, 36, 0.28);
  border-radius: var(--radius-md);
  padding: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  text-align: left;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
  transition: transform 0.2s var(--ease-out-expo), border-color 0.2s ease, box-shadow 0.2s ease;
  animation: reviewFadeUp 0.45s var(--ease-out-expo) both;
}

.review-card:hover {
  transform: translateY(-2px);
  border-color: rgba(251, 191, 36, 0.65);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}

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

.review-card-header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.review-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  border: 1.5px solid rgba(251, 191, 36, 0.45);
  background: linear-gradient(135deg, #451a03 0%, #1c0602 100%);
  flex-shrink: 0;
}

.review-meta {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  flex: 1;
  min-width: 0;
}

.review-author-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.review-author {
  font-size: 0.82rem;
  font-weight: 700;
  color: #ffffff;
}

.review-badge {
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.review-badge.moana {
  background: rgba(225, 29, 72, 0.2);
  border: 1px solid rgba(244, 63, 94, 0.45);
  color: #fda4af;
}

.review-badge.police {
  background: rgba(59, 130, 246, 0.2);
  border: 1px solid rgba(96, 165, 250, 0.45);
  color: #93c5fd;
}

.review-stars-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.review-stars {
  color: #f59e0b;
  font-size: 0.88rem;
  letter-spacing: 0.06em;
}

.review-time {
  font-size: 0.76rem;
  color: var(--text-dim);
  opacity: 0.85;
}

.review-body {
  font-size: 0.92rem;
  line-height: 1.5;
  color: #fef08a;
  font-style: italic;
  margin: 0;
}

.review-owner-response {
  background: rgba(251, 191, 36, 0.09);
  border: 1px solid rgba(251, 191, 36, 0.3);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem;
  font-size: 0.78rem;
  color: #fef08a;
  line-height: 1.45;
}

.review-owner-response strong {
  color: #fbbf24;
}

.review-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.45rem;
  border-top: 1px dashed rgba(251, 191, 36, 0.22);
  font-size: 0.76rem;
  color: var(--text-dim);
}

.review-tag {
  background: rgba(255, 255, 255, 0.08);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.74rem;
}

.review-helpful {
  font-weight: 600;
  color: #f43f5e;
  font-size: 0.76rem;
}

/* Reviews Reaction Bar */
.reviews-reaction-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding: 0.7rem 0.95rem;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(251, 191, 36, 0.25);
  border-radius: var(--radius-md);
}

.reaction-prompt {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
}

.btn-reaction {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.85rem;
  background: rgba(58, 17, 7, 0.85);
  border: 1px solid rgba(251, 191, 36, 0.35);
  border-radius: var(--radius-full);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}
  border: 1px solid rgba(251, 191, 36, 0.3);
  border-radius: var(--radius-full);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-reaction:hover {
  background: rgba(88, 24, 10, 0.95);
  border-color: rgba(251, 191, 36, 0.7);
  transform: translateY(-1px) scale(1.03);
}

.btn-reaction:active {
  transform: translateY(1px) scale(0.97);
}

.btn-reaction:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

/* Floating Toast */
.locator-toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(20, 4, 2, 0.96);
  border: 1.5px solid #fbbf24;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.75);
  border-radius: var(--radius-full);
  padding: 0.55rem 1.25rem;
  color: #fef08a;
  font-size: 0.82rem;
  font-weight: 700;
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  transition: all 0.3s var(--ease-out-expo);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

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

/* Locator Footer Nav */
.locator-footer-nav {
  margin-top: 0.5rem;
  display: flex;
  justify-content: center;
  width: 100%;
}

.btn-hero {
  padding: 0.85rem 2.2rem !important;
  font-size: 1.05rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.02em !important;
  box-shadow: 0 8px 24px rgba(190, 18, 60, 0.45) !important;
}


/* Utilities */
.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.text-5xl { font-size: 3rem; }
.text-6xl { font-size: 3.75rem; }

.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.opacity-70 { opacity: 0.7; }
.opacity-80 { opacity: 0.8; }
.opacity-90 { opacity: 0.9; }

.hidden { display: none !important; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-around { justify-content: space-around; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1 1 0%; }

.w-full { width: 100%; }
.max-w-sm { max-width: 24rem; }
.max-w-md { max-width: 28rem; }
.max-w-lg { max-width: 32rem; }
.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }

.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.my-1 { margin-top: 0.25rem; margin-bottom: 0.25rem; }
.p-2 { padding: 0.5rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }

.rounded { border-radius: var(--radius-sm); }
.rounded-xl { border-radius: var(--radius-md); }
.rounded-full { border-radius: var(--radius-full); }

.relative { position: relative; }
.absolute { position: absolute; }
.inset-0 { inset: 0; }
.inset-x-0 { left: 0; right: 0; }
.top-0 { top: 0; }

.overflow-hidden { overflow: hidden; }

/* Responsive Adjustments */
@media (max-width: 768px) {
  .player-bar {
    padding: 0.4rem 0.65rem;
    gap: 0.5rem;
  }
  .now-playing-pill {
    max-width: 240px;
    padding: 0.22rem 0.65rem;
  }
  .level-title {
    max-width: 110px;
  }
  .volume-slider-container {
    width: 58px;
  }
}

@media (max-width: 580px) {
  .player-bar {
    padding: 0.35rem 0.5rem;
    gap: 0.35rem;
  }
  .nav-back-label {
    display: none;
  }
  .nav-back-btn {
    padding: 0.2rem 0.45rem;
  }
  .level-indicator-capsule {
    padding: 0.18rem 0.45rem;
    gap: 0.3rem;
  }
  .level-title {
    display: none;
  }
  .now-playing-pill {
    max-width: 160px;
  }
  .status-pill {
    display: none;
  }
  .volume-slider-container {
    width: 48px;
  }
  .vol-percent-badge {
    min-width: 1.8rem;
    font-size: 0.74rem;
  }
  .player-circle-btn {
    width: 28px;
    height: 28px;
  }
  .player-circle-btn.hero-play {
    width: 32px;
    height: 32px;
  }
}

@media (max-width: 480px) {
  .lv {
    padding-top: 4.2rem;
    padding-left: 0.8rem;
    padding-right: 0.8rem;
    gap: 0.9rem;
  }
  .grid2 {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
  }
  .card {
    padding: 0.75rem;
  }
  .turntable-deck {
    height: 240px;
    padding: 1rem 1.1rem;
  }
  .turntable-platter {
    position: absolute;
    left: 16px;
    top: 27px;
    width: 185px;
    height: 185px;
  }
  .vinyl-disc {
    width: 175px;
    height: 175px;
  }
  .band-1 { width: 145px; height: 145px; }
  .band-2 { width: 110px; height: 110px; }
  .vinyl-silent-gap { width: 128px; height: 128px; }
  .vinyl-center-label {
    width: 66px;
    height: 66px;
    padding: 3px;
  }
  .vinyl-center-label .v-title {
    font-size: 0.72rem;
    max-width: 56px;
  }
  .tonearm-assembly {
    top: 18px;
    left: 245px;
    width: 44px;
    height: 170px;
    transform-origin: 22px 22px;
  }
  .tonearm-assembly.playing {
    transform: rotate(52deg);
  }
  .tonearm-bar {
    height: 110px;
  }
  .tonearm-head {
    top: 136px;
  }
  .armrest-clip {
    top: 115px;
    left: 261px;
    width: 10px;
    height: 10px;
  }
  .text-3xl {
    font-size: 1.55rem;
  }
  .text-2xl {
    font-size: 1.25rem;
  }
  .btn {
    padding: 0.65rem 1.4rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 380px) {
  .now-playing-pill {
    max-width: 115px;
  }
  .volume-slider-container {
    width: 38px;
  }
}

/* ==========================================================================
   Loading Skeleton Screen (Initial Paint & Boot State)
   ========================================================================== */
.skeleton-screen {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: radial-gradient(circle at 50% 25%, #260a04 0%, #140402 75%, #0d0201 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s;
  overflow: hidden;
}

.skeleton-screen.skeleton-fade-out {
  opacity: 0;
  visibility: hidden;
}

.skeleton-header {
  width: 100%;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  background: rgba(20, 4, 2, 0.85);
  border-bottom: 1px solid rgba(251, 191, 36, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.skeleton-shimmer {
  background: linear-gradient(90deg, rgba(251, 191, 36, 0.05) 0%, rgba(253, 230, 138, 0.16) 50%, rgba(251, 191, 36, 0.05) 100%);
  background-size: 200% 100%;
  animation: skeletonWave 1.6s ease-in-out infinite;
  border: 1px solid rgba(251, 191, 36, 0.12);
}

@keyframes skeletonWave {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton-header-left { width: 140px; height: 30px; border-radius: 9999px; }
.skeleton-header-center { width: 200px; height: 30px; border-radius: 9999px; }
.skeleton-header-right { width: 160px; height: 30px; border-radius: 9999px; }
@media (max-width: 640px) { .skeleton-header-center { display: none; } }

.skeleton-main {
  width: 100%;
  max-width: 820px;
  padding: 4.6rem 1.2rem 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.15rem;
}

.skeleton-title { width: 330px; max-width: 88%; height: 36px; border-radius: 10px; }
.skeleton-subtitle { width: 270px; max-width: 76%; height: 18px; border-radius: 6px; }
.skeleton-card {
  width: 340px;
  max-width: 90%;
  height: 170px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.skeleton-badge {
  font-size: 2.2rem;
  animation: skeletonPulse 1.4s ease-in-out infinite alternate;
  filter: drop-shadow(0 0 12px rgba(225, 29, 72, 0.6));
  user-select: none;
}

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

.skeleton-actions { display: flex; align-items: center; gap: 1rem; margin-top: 0.5rem; }
.skeleton-btn-primary { width: 105px; height: 44px; border-radius: 9999px; }
.skeleton-btn-alt { width: 80px; height: 44px; border-radius: 9999px; }

/* Accessibility: Intentional Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .lv.on {
    animation: none !important;
    filter: none !important;
    opacity: 1 !important;
  }
  .lv.on > * {
    animation: none !important;
    opacity: 1 !important;
  }
  .stars-overlay {
    animation: none !important;
    opacity: 0.6 !important;
  }
  .vinyl-disc.spin,
  .vinyl-disc.spin::before {
    animation: none !important;
  }
  .btn.pulse-heart {
    animation: none !important;
  }
  .float-particle {
    display: none !important;
  }
}
