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

:root {
  --black: #050505;
  --white: #ffffff;
  --timing-slide: 1.6s;
  --timing-up: 0.8s;
  --timing-flip: 1.2s;
  --easing-smooth: cubic-bezier(0.77, 0, 0.175, 1);
  --easing-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Text sizing: MATCH has 5 chars, REV has 3. Size based on MATCH */
  --text-large: min(18vw, 24vh);
  --text-small: min(8vw, 10vh);
}

html,
body {
  height: 100%;
  overflow: hidden;
}

body {
  font-family: "Anton", "Impact", sans-serif;
  background-color: var(--black);
  color: var(--black);
}

.container {
  position: relative;
  width: 100%;
  height: 100dvh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 100dvh 0;
  transition: grid-template-rows var(--timing-up) var(--easing-smooth);
}

.quadrant {
  position: relative;
  overflow: hidden;
  display: flex;
  cursor: default;
}

/* Only bottom quadrants are interactive */
.quadrant-bottom-left,
.quadrant-bottom-right {
  cursor: pointer;
}

/* Initial positioning: Top quadrants slide in from right as full-height rectangles */
.quadrant-top-left,
.quadrant-top-right {
  grid-row: 1; /* Always stay in first row */
}

/* Top left quadrant: Black background, white text at BOTTOM RIGHT */
.quadrant-top-left {
  background-color: var(--black);
  color: var(--white);
  justify-content: flex-end;
  align-items: flex-end;
  padding: 2rem;
  transform: translateX(150vw);
  animation: slideInLeft var(--timing-slide) var(--easing-smooth) forwards;
  animation-delay: 0.2s;
}

.quadrant-top-left::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(112, 66, 20, 0.20);
  pointer-events: none;
}

/* Top right quadrant: White background, black text at BOTTOM LEFT */
.quadrant-top-right {
  background-color: var(--white);
  color: var(--black);
  justify-content: flex-start;
  align-items: flex-end;
  padding: 2rem;
  border-left: 1px solid rgba(0, 0, 0, 0.1);
  transform: translateX(150vw);
  animation: slideInRight var(--timing-slide) var(--easing-smooth) forwards;
  animation-delay: 0.2s;
}

.quadrant-top-right::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(112, 66, 20, 0.20);
  pointer-events: none;
}

/* Large text for REV and MATCH */
.quadrant-top-left .text,
.quadrant-top-right .text {
  font-size: var(--text-large);
  line-height: 0.9;
  letter-spacing: -0.02em;
  font-weight: 400;
  text-transform: uppercase;
}

/* Bottom quadrants: Visible during slide-up with matching colors */
.quadrant-bottom-left,
.quadrant-bottom-right {
  opacity: 1;
  pointer-events: none;
}

/* Bottom left: Matches top-left (black) */
.quadrant-bottom-left {
  background-color: var(--black);
  grid-column: 1;
  grid-row: 2;
}

.quadrant-bottom-left::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(112, 66, 20, 0.20);
  pointer-events: none;
  z-index: 0;
}

/* Bottom right: Matches top-right (white) */
.quadrant-bottom-right {
  background-color: var(--white);
  grid-column: 2;
  grid-row: 2;
  border-left: 1px solid rgba(0, 0, 0, 0.1);
}

.quadrant-bottom-right::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(112, 66, 20, 0.20);
  pointer-events: none;
  z-index: 0;
}

/* Flip wrapper for 3D flip effect */
.flip-wrapper {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transition: transform var(--timing-flip) var(--easing-smooth);
  z-index: 1;
}

.flip-front,
.flip-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  display: flex;
  padding: 2rem;
}

/* Front face matches parent quadrant color (left=black, right=white) */
.quadrant-bottom-left .flip-front {
  background-color: var(--black);
}

.quadrant-bottom-left .flip-front::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(112, 66, 20, 0.20);
  pointer-events: none;
}

.quadrant-bottom-right .flip-front {
  background-color: var(--white);
}

.quadrant-bottom-right .flip-front::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(112, 66, 20, 0.20);
  pointer-events: none;
}

/* Back face has inverse colors */
.quadrant-bottom-left .flip-back {
  background-color: var(--white);
  color: var(--black);
  justify-content: flex-end;
  align-items: flex-start;
  transform: rotateX(180deg);
}

.quadrant-bottom-left .flip-back::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(112, 66, 20, 0.20);
  pointer-events: none;
  z-index: 2;
}

/* Hover image for CHOOSE */
.quadrant-bottom-left .flip-back::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('choose-compressed.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
}

.quadrant-bottom-left:hover .flip-back::after {
  opacity: 1;
}

.quadrant-bottom-right .flip-back {
  background-color: var(--black);
  color: var(--white);
  justify-content: flex-start;
  align-items: flex-start;
  transform: rotateX(180deg);
  transition: background-color 0.6s ease, color 0.6s ease;
}

/* Change to white when expanded */
body.expanded .quadrant-bottom-right.active .flip-back {
  background-color: var(--white);
  color: var(--black);
}

.quadrant-bottom-right .flip-back::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(112, 66, 20, 0.20);
  pointer-events: none;
  z-index: 2;
}

/* Hover image for DRIVE */
.quadrant-bottom-right .flip-back::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('colorful-compressed.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
}

.quadrant-bottom-right:hover .flip-back::after {
  opacity: 1;
}

/* Small text for CHOOSE and DRIVE */
.quadrant-bottom-left .text,
.quadrant-bottom-right .text {
  font-size: var(--text-small);
  line-height: 0.9;
  letter-spacing: 0.05em;
  font-weight: 400;
  text-transform: uppercase;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

/* Text boxes on hover with frosted glass panel */
.quadrant-bottom-left:hover .text,
.quadrant-bottom-right:hover .text {
  background-color: rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 0.5rem 0.75rem;
  color: var(--white);
}

/* Apply sepia to DRIVE text using mix-blend like the quadrants */
.quadrant-bottom-right .text {
  color: var(--white);
}

/* Animation keyframes */
@keyframes slideInLeft {
  from {
    transform: translateX(150vw);
  }
  to {
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    transform: translateX(150vw);
  }
  to {
    transform: translateX(0);
  }
}

/* Stage 2: Slide up to quadrant layout (animate grid rows) */
body.stage-slide-up .container {
  grid-template-rows: 50vh 50vh;
}

/* Stage 3: Enable interaction with bottom quadrants */
body.stage-show-bottom .quadrant-bottom-left,
body.stage-show-bottom .quadrant-bottom-right {
  pointer-events: auto;
}

/* Stage 4 & 5: Flip bottom quadrants sequentially */
body.stage-flip-left .quadrant-bottom-left .flip-wrapper {
  transform: rotateX(-180deg);
}

body.stage-flip-right .quadrant-bottom-right .flip-wrapper {
  transform: rotateX(-180deg);
}

/* Stage 5: Quadrant expansion on click */
body.expanded .quadrant {
  position: fixed;
  inset: 0;
  grid-row: 1;
  grid-column: 1;
  width: 100vw;
  height: 100dvh;
  z-index: 10;
  cursor: default;
}

body.expanded .quadrant:not(.active) {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.95);
}

body.expanded .quadrant.active {
  transform: scale(1);
}

/* Auto-fade image when DRIVE quadrant is expanded */
body.expanded .quadrant-bottom-right.active .flip-back::after {
  opacity: 1;
  transition: opacity 0.8s ease 0.3s; /* Fade in after 0.3s delay */
}

/* Hide colorful image when showing reservation details (performance fix) */
body.expanded .quadrant-bottom-right.active.show-details .flip-back::after {
  opacity: 0;
  display: none;
}

/* Ensure expanded state text matches hover state */
body.expanded .quadrant.active .text {
  background-color: transparent;
  padding: 0.5rem 0.75rem;
  color: var(--white);
  z-index: 3;
  position: relative;
  transition: color 0.6s ease;
}

/* DRIVE text - hide original, use inline version in header row */
body.expanded .quadrant-bottom-right.active.show-details .flip-back > .text {
  display: none;
}

/* Reservation overlay - hidden until DRIVE is expanded */
.reservation-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease 0.4s;
  z-index: 1;
  will-change: transform;
  transform: translateZ(0);
}

body.expanded .quadrant-bottom-right.active .reservation-overlay {
  opacity: 1;
  pointer-events: auto;
}

/* Input state should always be clickable when overlay is visible */
.reservation-input-state {
  pointer-events: auto;
}

/* Reservation box - compact, just fits content */
.reservation-box {
  width: auto;
  max-width: 400px;
  padding: 1.5rem;
  position: relative;
  background-color: rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: none;
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reservation-box:focus-within {
  background-color: rgba(0, 0, 0, 0.12);
}

/* When showing details - box turns white and expands */
.reservation-box.show-panels {
  background-color: rgba(255, 255, 255, 1.0);
  border: none;
  width: 100vw;
  height: 100dvh;
  max-width: none;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  overflow-y: auto;
}

/* Input state - visible initially */
.reservation-input-state {
  opacity: 1;
  transition: opacity 0.3s ease;
}

.reservation-box.show-panels .reservation-input-state {
  opacity: 0;
  pointer-events: none;
}

/* Panels state - keep in DOM, hide with visibility */
.reservation-panels-state {
  visibility: hidden;
  position: absolute;
  pointer-events: none;
}

.reservation-box.show-panels .reservation-panels-state {
  visibility: visible;
  position: relative;
  pointer-events: auto;
  padding-top: 0.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

/* DRIVE header row - 3 column grid in a box */
.drive-header-row {
  display: flex;
  gap: 0;
  align-items: stretch;
  margin-bottom: 0.5rem;
  border: none;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.9);
  min-height: clamp(140px, 14vh, 180px);
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 0.6s ease-out, opacity 0.6s ease-out;
}

.drive-header-row.animate-in {
  transform: translateY(0);
  opacity: 1;
}

.drive-title-inline {
  font-family: 'Anton', 'Impact', sans-serif;
  font-size: clamp(3rem, 8vw, 5rem);
  line-height: 1;
  letter-spacing: 0.05em;
  font-weight: 400;
  text-transform: uppercase;
  color: var(--black);
  flex-shrink: 0;
  padding-right: 1rem;
  border-right: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.3rem;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.drive-title-inline:hover {
  transform: scale(1.05);
  opacity: 0.8;
}

/* Title row - DRIVE and dates side by side */
.title-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Date tags stacked vertically next to DRIVE title */
.title-date-tags {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.title-date-tag {
  font-family: 'Inter', sans-serif;
  font-size: 0.5rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: none;
  line-height: 1.3;
}

.date-label {
  font-weight: 600;
  text-transform: uppercase;
}

/* Welcome message - fills available space (hidden when empty) */
.welcome-message {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: clamp(0.85rem, 1.5vw, 1.1rem);
  color: var(--black);
  text-align: left;
  padding: 0.75rem 1rem;
  border-right: 0.5px solid rgba(0, 0, 0, 0.15);
  background: transparent;
  line-height: 1.6;
  transition: opacity 0.8s ease, transform 0.8s ease;
  margin: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  justify-content: center;
}

.welcome-message:empty {
  display: none;
}

/* Trip date tags */
/* Welcome text */
.welcome-text {
  font-family: 'Syne Mono', monospace;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 400;
  line-height: 1.3;
  text-transform: none;
}

.welcome-subtext {
  font-size: clamp(0.85rem, 1.5vw, 1.05rem);
  opacity: 0.9;
}

/* Turo details link */
.turo-details-link {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  background: var(--black);
  color: #fff;
  padding: 0.3rem 0.6rem;
  text-decoration: none !important;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 2px;
  width: fit-content;
  transition: all 0.2s ease;
}

.turo-details-link:hover {
  background: #333;
  color: #fff;
  text-decoration: none !important;
  transform: scale(1.05);
}

/* SBH video container - square */
.sbh-image-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 120px;
  background: var(--black);
  padding: 0;
  flex-shrink: 0;
  margin-left: 0.5rem;
  overflow: hidden;
  cursor: pointer;
}

.sbh-motion {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.welcome-message.animate-in {
  opacity: 1;
  transform: translateY(0);
  transition: none; /* Instant appearance, no fade */
}

/* Panels start hidden */
.panel-hidden {
  opacity: 0;
  transform: translateX(-100%);
}

#lockbox-panel.panel-hidden,
#rnt-panel.panel-hidden {
  opacity: 0;
}

#car-panel.panel-hidden {
  transform: translateY(100%);
}

.welcome-message.panel-hidden {
  opacity: 0;
  transform: translateY(20px);
}

/* Animation keyframes */
@keyframes slideFromLeft {
  from { opacity: 0; transform: translateX(-100%); }
  to { opacity: 1; transform: translateX(0); }
}

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

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

/* Trigger animations when animate-in class added */
#garage-panel.animate-in {
  animation: slideFromLeft 0.6s ease-out forwards;
  opacity: 1;
  transform: translateX(0);
}

#lockbox-panel.animate-in {
  animation: slideFromRight 0.6s ease-out forwards;
  opacity: 1;
  transform: translateX(0);
}

#car-panel.animate-in {
  animation: slideFromBottom 1s ease-out forwards;
  opacity: 1;
  transform: translateY(0);
}

#rnt-panel.animate-in {
  opacity: 1;
  transition: none; /* Instant appearance, no animation */
}

/* Custom label */
.custom-label {
  text-align: left;
  margin-bottom: 0.5rem;
  transition: color 0.6s ease;
}

.reservation-box.show-panels .custom-label span {
  color: var(--black) !important;
}

/* Input field with Inter font - completely fresh */
.reservation-field {
  all: unset;
  display: block;
  width: 100%;
  box-sizing: border-box;
  background-color: transparent;
  border: none;
  color: #ffffff;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  text-align: left;
  padding: 0.5rem 0;
  transition: all 0.3s ease;
}

.reservation-field:focus {
  outline: none;
}

/* Welcome message styling (merged with animation above) */

/* Panels state wrapper - tight stacking */
.reservation-panels-state {
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
  height: 100%;
}

/* 3-panel grid layout - compact spacing */
.panel-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
  width: 100%;
  grid-auto-rows: min-content; /* Tight stacking, no extra space */
}

/* Individual info panels - black boxes on white background */
.info-panel {
  background-color: var(--black);
  border: none;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* Compact GARAGE and LOCKBOX panels - fixed small size */
#garage-panel {
  padding: 0.75rem 1rem !important;
  transition: none !important;
  gap: 0.5rem !important;
  min-height: auto !important;
  max-height: 80px !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
}

#lockbox-panel {
  padding: 0.75rem 1rem !important;
  gap: 0.5rem !important;
  min-height: auto !important;
  max-height: 80px !important;
  flex-direction: column !important;
  transition: none !important;
  align-items: flex-start !important;
  justify-content: center !important;
}

#garage-panel .panel-title,
#lockbox-panel .panel-title {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  font-size: 0.506rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin: 0;
  line-height: 1;
}

#car-panel .panel-title {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  font-size: 1rem;
  text-transform: uppercase;
}

#garage-panel .panel-content,
#lockbox-panel .panel-content {
  font-size: 1.2rem;
  margin: 0;
  line-height: 1;
}

/* No padding on car panel - let split fill completely */
#car-panel {
  padding: 0;
  gap: 0;
  background-color: var(--white);
}

.clickable-panel {
  cursor: pointer;
}

.clickable-panel:hover {
  transform: scale(1.02);
}

/* The Purist split layout - prefer side by side */
.purist-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  width: 100%;
  height: 100%;
}

/* Only stack vertically on extremely narrow screens */
@media (max-width: 320px) {
  .purist-split {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }
}

.purist-image {
  background-image: url('purist.jpg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  position: relative;
  background-color: rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-right: none;
}

/* Remove vignette for clean white background */
.purist-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: none;
  pointer-events: none;
}

.purist-info {
  background-image: url('paper.jpeg');
  background-size: cover;
  background-position: center;
  background-color: var(--white);
  color: #1a3a52;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow-y: auto;
}

.purist-info .panel-content {
  color: #1a3a52;
  font-size: 0.95rem;
  line-height: 1.6;
  flex: 1;
}

.purist-title {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  text-transform: uppercase;
  color: #1a3a52;
  margin: 0;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(26, 58, 82, 0.2);
  display: flex;
  flex-direction: row;
  align-items: baseline;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.car-title-main {
  font-size: 1rem;
  font-weight: 400;
}

.car-title-details {
  font-size: 0.55rem;
  font-weight: 400;
  text-transform: none;
  line-height: 1.3;
  opacity: 0.7;
  display: flex;
  gap: 0.3rem;
  align-items: baseline;
}

.detail-separator {
  opacity: 0.5;
}

/* Mobile: GARAGE/LOCKBOX on same row, PURIST/RNT stacked */
@media (max-width: 768px) {
  .reservation-box.show-panels {
    padding: 0.4rem;
    overflow: hidden;
  }

  .reservation-panels-state {
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .drive-header-row {
    min-height: auto;
    flex-shrink: 0;
    padding: 0.4rem 0.4rem 0.8rem 0.4rem;
    gap: 0.5rem;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: start;
    margin-bottom: 0.6rem;
  }

  .drive-title-inline {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    padding: 0;
    border-right: none;
    border-bottom: none;
    grid-column: 1;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
  }

  .title-date-tags {
    gap: 0.15rem;
  }

  .title-date-tag {
    font-size: 0.48rem;
    padding: 0.12rem 0.25rem;
  }

  .welcome-text {
    font-size: clamp(0.9rem, 2vw, 1.2rem);
  }

  .welcome-message {
    display: none;
  }

  .lp-player-widget {
    grid-column: 2;
    grid-row: 1;
    align-self: start;
    z-index: 100;
  }

  .lp-circle {
    width: 45px;
    height: 45px;
  }

  .lp-track-name {
    font-size: 0.45rem;
    max-width: 80px;
    min-height: 0.9em;
  }

  .lp-compact-controls {
    gap: 0.15rem;
    margin-top: 0.15rem;
  }

  .lp-mini-btn {
    width: 20px;
    height: 20px;
    font-size: 0.65rem;
  }

  .lp-mini-play {
    width: 24px;
    height: 24px;
  }

  .panel-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto 45px 65px;
    gap: 0.4rem;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
  }

  /* Car gets top priority - full width, auto height */
  #car-panel {
    grid-column: 1 / -1;
    grid-row: 1;
    min-height: 200px;
  }

  /* RNT second - clickable strip with video background */
  #rnt-panel {
    grid-column: 1 / -1;
    grid-row: 2;
    height: 45px;
    min-height: 45px;
    max-height: 45px;
  }

  /* Garage and lockbox last - compact row */
  #garage-panel {
    grid-column: 1;
    grid-row: 3;
    height: 65px;
    min-height: 65px;
  }

  #lockbox-panel {
    grid-column: 2;
    grid-row: 3;
    height: 65px;
    min-height: 65px;
  }

  /* Hide RNT title on mobile, just show console text as subtle strip */
  #rnt-panel .rnt-main-title {
    display: none;
  }

  #rnt-panel .rnt-console-text {
    font-size: 0.65rem;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  #rnt-panel .rnt-glass-panel-main {
    padding: 0.6rem 0.75rem;
    max-width: 100%;
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    backdrop-filter: blur(2px);
  }

  #rnt-panel .rnt-background-video {
    display: block;
    object-fit: cover;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
  }

  #rnt-panel {
    background-color: transparent !important;
    padding: 0;
    overflow: hidden;
    position: relative;
  }

  #rnt-panel .rnt-overlay {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    position: relative;
    z-index: 2;
  }

  /* Car panel - image top, text below on mobile */
  #car-panel .purist-split {
    display: flex;
    flex-direction: column;
    overflow: auto;
    gap: 0.5rem;
  }

  .purist-image {
    width: 100%;
    height: 35vh;
    min-height: 220px;
    border-radius: 4px;
    background-color: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-right: none;
    flex-shrink: 0;
  }

  .purist-info {
    padding: 0 0.75rem 0.75rem 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
  }

  .purist-title {
    font-size: 1rem;
    order: -1;
    padding: 0;
    margin: 0;
  }

  .purist-info .panel-content {
    font-size: 0.85rem;
    line-height: 1.5;
  }

  .lp-player-widget {
    width: 100px;
  }

  /* Garage and Lockbox mobile adjustments */
  #garage-panel,
  #lockbox-panel {
    padding: 0.6rem 0.5rem;
    overflow: hidden;
  }

  /* Keep garage text readable, just add more spacing */
  #garage-panel #garage-content {
    gap: 0.5rem;
    padding: 0.2rem 0;
  }

  #garage-panel #garage-content > div:first-child {
    flex: 2;
    padding-right: 0.75rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.3rem;
  }

  #garage-panel #garage-content > div:last-child {
    flex: 1;
    flex-shrink: 0;
  }

  #lockbox-panel .panel-title {
    font-size: 0.5rem;
  }

  #lockbox-content {
    overflow: hidden;
  }

  #lockbox-content > div {
    transform: scale(0.8);
    transform-origin: center;
  }
}

.panel-title {
  font-family: 'Anton', 'Impact', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--white);
  margin: 0;
}

.panel-content {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1rem;
  color: var(--white);
  line-height: 1.6;
}

/* Garage unlock button */
.garage-button {
  width: 100%;
  background-color: var(--white);
  border: 2px solid var(--white);
  color: var(--black);
  padding: 1rem 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.garage-button:hover {
  background-color: transparent;
  color: var(--white);
}

.garage-button:active {
  transform: scale(0.98);
}

/* Road Not Taken panel with video background */
#rnt-panel {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.rnt-background-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  background-color: #2a5f4d;
}

.rnt-overlay {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  gap: 2rem;
}

/* Glass panel for form - compact */
.rnt-glass-panel {
  background: rgba(0, 0, 0, 0.2);
  padding: 1rem;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
}

.rnt-glass-panel-main {
  background: rgba(0, 0, 0, 0.2);
  padding: 1.25rem;
  border-radius: 4px;
  width: 90%;
  max-width: 500px;
}

.rnt-main-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.rnt-main-btn {
  font-family: 'Inter', sans-serif;
  font-size: clamp(0.875rem, 1.75vw, 1.1rem);
  font-weight: 600;
  padding: 0.875rem;
  background: var(--black);
  color: #E8C040;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  width: 100%;
  margin-top: 0.5rem;
}

.rnt-main-btn:hover {
  background: #0a0a0a;
  transform: scale(1.02);
}

.rnt-main-btn:active {
  transform: scale(0.98);
}

/* Header with title and subtitle */
.rnt-header {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0;
  align-items: center;
}

.rnt-main-title {
  font-family: 'Crimson Text', Georgia, serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  color: #E8C040;
  margin: 0;
  line-height: 1.2;
}

.rnt-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: clamp(0.375rem, 0.75vw, 0.5rem);
  font-weight: 600;
  color: var(--black);
  background: #D4A929;
  padding: 0.4rem 0.8rem;
  display: inline-block;
  text-transform: uppercase;
}

/* Console-style AI speech subtitle - vintage display */
.rnt-console-text {
  font-family: 'Google Sans Mono', 'Courier New', 'Courier', monospace;
  font-size: clamp(0.6rem, 1vw, 0.75rem); /* Middle ground size */
  font-weight: 400;
  color: #2a2a2a; /* Dark gray text for vintage display */
  background: rgba(232, 192, 64, 0.6); /* 60% transparent gold (same as title) */
  padding: 0.5rem 0.7rem;
  display: inline-block; /* Fits content width */
  text-transform: none;
  letter-spacing: 0.02em;
  line-height: 1.25;
  border-radius: 3px;
  border: 1px solid rgba(232, 192, 64, 0.3);
  max-width: 100%; /* Don't exceed container */
  text-align: left;
}

/* Car model tag - white on black, 60% opacity */
.rnt-console-text .car-model-tag {
  display: inline-block;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  padding: 0.1rem 0.4rem;
  border-radius: 2px;
  font-weight: 500;
  margin: 0 0.2rem;
}

/* Inline form on RNT panel */
.rnt-inline-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
}

.rnt-inline-input {
  font-family: 'Inter', sans-serif;
  font-size: clamp(0.875rem, 1.75vw, 1.1rem);
  padding: 0.6rem 0.875rem;
  border: none;
  background: rgba(0, 0, 0, 0.3);
  color: var(--white);
  transition: all 0.2s ease;
  display: flex;
  align-items: flex-end;
}

.rnt-inline-input:focus {
  outline: none;
  background: rgba(0, 0, 0, 0.4);
}

.rnt-inline-input::placeholder {
  font-family: 'Inter', sans-serif;
  font-size: clamp(0.75rem, 1.5vw, 0.95rem);
  color: rgba(255, 255, 255, 0.5);
  text-transform: none;
}

.rnt-inline-btn {
  font-family: 'Inter', sans-serif;
  font-size: clamp(0.875rem, 1.75vw, 1.1rem);
  font-weight: 600;
  text-transform: uppercase;
  padding: 0.75rem 1.25rem;
  background: #E8C040;
  color: var(--black);
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease;
  margin-top: 0.5rem;
}

.rnt-inline-btn:hover {
  transform: scale(1.02);
}

.rnt-inline-btn:active {
  transform: scale(0.98);
}

/* Large desktop: stack car and RNT vertically - optimized for 16:9 */
@media (min-width: 1024px) {
  .panel-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 80px minmax(200px, 1fr) minmax(150px, 0.8fr);
    gap: 0.5rem;
    max-height: calc(100vh - 200px); /* Account for header */
  }

  #garage-panel,
  #lockbox-panel {
    grid-column: span 1;
    grid-row: 1;
    height: 80px;
  }

  #car-panel {
    grid-column: 1 / -1;
    grid-row: 2;
    min-height: 200px;
  }

  #rnt-panel {
    grid-column: 1 / -1;
    grid-row: 3;
    min-height: 150px;
  }
}

/* Extra-large desktop (1440p+): More breathing room */
@media (min-width: 1440px) {
  .panel-grid {
    grid-template-rows: 80px minmax(250px, 1.2fr) minmax(180px, 0.9fr);
    max-height: calc(100vh - 180px);
  }
}

/* Wide screen optimization (21:9, ultrawide) */
@media (min-width: 1920px) {
  .panel-grid {
    grid-template-rows: 80px 1fr 0.7fr;
    max-height: calc(100vh - 160px);
  }
}

/* Specific 16:9 optimizations */
/* Standard 1080p (1920x1080) */
@media (min-width: 1920px) and (max-height: 1080px) {
  .drive-header-row {
    min-height: clamp(90px, 10vh, 120px);
    padding: 0.5rem 0.75rem;
  }

  .panel-grid {
    grid-template-rows: 70px minmax(180px, 1fr) minmax(140px, 0.75fr);
    max-height: calc(100vh - 140px);
    gap: 0.4rem;
  }

  #garage-panel,
  #lockbox-panel {
    height: 70px;
  }
}

/* Standard 768p (1366x768) */
@media (min-width: 1366px) and (max-width: 1439px) and (max-height: 768px) {
  .drive-header-row {
    min-height: clamp(85px, 11vh, 110px);
    padding: 0.5rem;
  }

  .panel-grid {
    grid-template-rows: 65px minmax(160px, 1fr) minmax(120px, 0.7fr);
    max-height: calc(100vh - 150px);
    gap: 0.4rem;
  }

  #garage-panel,
  #lockbox-panel {
    height: 65px;
  }

  .info-panel {
    padding: 0.75rem;
  }
}

/* Laptop screens (1440x900, 1280x800) */
@media (min-width: 1280px) and (max-width: 1439px) {
  .panel-grid {
    max-height: calc(100vh - 160px);
  }
}

/* Tablet: stack PURIST and RNT */
@media (min-width: 769px) and (max-width: 1023px) {
  .panel-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto;
    gap: 1.5rem;
  }

  #garage-panel,
  #lockbox-panel {
    grid-column: span 1;
    grid-row: 1;
  }

  #car-panel {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  #rnt-panel {
    grid-column: 1 / -1;
    grid-row: 3;
  }
}

/* Error message */
.error-message {
  margin-top: 0.5rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  color: #ffffff;
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.error-message.visible {
  opacity: 1;
}

/* Shake animation for errors */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-8px); }
  20%, 40%, 60%, 80% { transform: translateX(8px); }
}

.reservation-box.error {
  animation: shake 0.5s ease;
}


/* Fullscreen RNT iframe/widget */
.rnt-fullscreen {
  position: absolute;
  inset: 0;
  background: var(--black);
  display: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 11;
  flex-direction: column;
}

.rnt-fullscreen.active {
  display: flex;
  opacity: 1;
}

.rnt-back-btn {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.75rem 1.5rem;
  background: rgba(0, 0, 0, 0.8);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  z-index: 12;
  transition: all 0.2s ease;
}

.rnt-back-btn:hover {
  background: rgba(0, 0, 0, 0.95);
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateX(-4px);
}

.rnt-fullscreen iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.rnt-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  background: var(--black);
  color: var(--white);
  font-size: 2rem;
  line-height: 40px;
  text-align: center;
  cursor: pointer;
  z-index: 12;
  border-radius: 50%;
  transition: transform 0.2s ease;
}

.rnt-close:hover {
  transform: scale(1.1);
}

/* RNT Widget - overlay on video */
.rnt-widget {
  position: relative;
  z-index: 2;
  max-width: 600px;
  width: 100%;
  padding: 2rem;
}

.rnt-widget-form {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.rnt-question-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.rnt-question {
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--white);
  text-align: left;
}

.rnt-outline-input {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  padding: 0.75rem 1rem;
  border: 2px solid var(--white);
  background: transparent;
  color: var(--white);
  transition: all 0.2s ease;
}

.rnt-outline-input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
}

.rnt-outline-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.rnt-submit-btn {
  font-family: 'Anton', sans-serif;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 1rem;
  background: var(--white);
  color: var(--black);
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease;
  margin-top: 1rem;
}

.rnt-submit-btn:hover {
  transform: scale(1.02);
}

.rnt-submit-btn:active {
  transform: scale(0.98);
}

.rnt-loading {
  text-align: center;
  padding: 2rem 0;
}

.rnt-loading p {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  color: var(--black);
  margin-top: 1rem;
}

.rnt-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(0, 0, 0, 0.1);
  border-top-color: var(--black);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

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

/* Fullscreen car view with purist.jpg background */
.car-fullscreen {
  position: absolute;
  inset: 0;
  background-image: url('purist.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 10;
}

/* 25% sepia filter on car fullscreen */
.car-fullscreen::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(112, 66, 20, 0.25);
  pointer-events: none;
  z-index: 1;
}

.car-fullscreen.active {
  display: block;
  opacity: 1;
}

/* Back button for car view */
.car-back-btn {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 10;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.5rem 1rem;
  background: rgba(0, 0, 0, 0.8);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 4px;
}

.car-back-btn:hover {
  background: rgba(0, 0, 0, 0.95);
  transform: translateX(-3px);
}

/* Responsive layout for image + text */
.car-content-layout {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  padding: 4rem 2rem 2rem 2rem;
  position: relative;
  z-index: 2;
}

.car-image-section {
  background-image: url('purist.jpg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  background-color: #fff;
  border-radius: 8px;
  min-height: 400px;
}

.car-text-section {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  justify-content: center;
}

.car-title {
  font-family: 'Anton', 'Impact', sans-serif;
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--white);
  margin: 0;
}

.car-description {
  font-family: 'Inter', sans-serif;
  font-size: clamp(0.9rem, 1.5vw, 1.1rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

/* Mobile: Stack vertically */
@media (max-width: 768px) {
  .car-content-layout {
    grid-template-columns: 1fr;
    grid-template-rows: 40vh auto;
    padding: 3rem 1.5rem 1.5rem 1.5rem;
  }

  .car-image-section {
    min-height: unset;
  }
}

/* Mobile/portrait adjustments - compact layout */
@media (max-width: 768px) {
  .reservation-field {
    font-size: clamp(1.2rem, 5vw, 2rem);
    padding: 0.75rem 1rem;
  }

  .reservation-box.show-panels {
    padding: 0.75rem;
  }

  .info-panel {
    padding: 0.5rem;
  }

  /* Override: Keep GARAGE and LOCKBOX tiny on mobile */
  #garage-panel,
  #lockbox-panel {
    padding: 0.4rem 0.5rem;
  }

  #garage-panel .panel-content,
  #lockbox-panel .panel-content {
    font-size: 0.5rem;
  }

  .garage-toggle {
    padding: 1rem;
  }

  .toggle-btn {
    font-size: 0.75rem;
    padding: 0.5rem 1rem;
  }

  .panel-grid {
    gap: 0.5rem;
  }

  .welcome-message {
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
    padding-bottom: 0.75rem;
  }

  .purist-image {
    min-height: 120px;
  }

  .purist-info {
    padding: 0.75rem;
  }

  .panel-content {
    font-size: 0.65rem;
    line-height: 1.4;
  }

  /* Sticky DRIVE header on mobile */
  body.expanded .quadrant-bottom-right.active.show-details .text {
    padding: 1rem 0.75rem;
    margin: -0.75rem -0.75rem 0.5rem -0.75rem;
  }
}


/* RNT Side Panel Styling */
.rnt-side-panel {
  position: relative;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.rnt-side-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.rnt-side-content {
  position: relative;
  z-index: 2;
  width: 90%;
  max-width: 500px;
  background: rgba(0, 0, 0, 0.2);
  padding: 1.25rem;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.rnt-side-title {
  font-family: 'Crimson Text', Georgia, serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  color: #E8C040;
  margin: 0 0 0.5rem 0;
  text-align: center;
}

.rnt-side-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Route Section */
.route-section {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.5rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  align-items: center;
}

.route-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.55rem;
  font-weight: 400;
  color: #E8C040;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  white-space: nowrap;
  align-self: stretch;
  display: flex;
  justify-content: center;
}

/* Location Inputs - 3 Column Grid */
.location-inputs-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem;
  width: 100%;
}

.via-column {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-height: 100%;
}

.via-waypoints {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem;
  flex-shrink: 0;
}

.waypoint-chip {
  font-family: 'Inter', sans-serif;
  font-size: 0.6rem;
  font-weight: 600;
  padding: 0.2rem 0.35rem;
  background: #E8C040;
  color: var(--black);
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.waypoint-chip .remove {
  cursor: pointer;
  font-weight: 400;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.waypoint-chip .remove:hover {
  opacity: 1;
}

.rnt-location-input {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  padding: 0.4rem 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.3);
  color: var(--white);
  transition: all 0.2s ease;
  border-radius: 4px;
  min-width: 0;
  width: 100%;
}

.rnt-location-input:focus {
  outline: none;
  background: rgba(0, 0, 0, 0.4);
  border-color: #E8C040;
}

.rnt-location-input:not(:placeholder-shown) {
  background: #E8C040;
  color: var(--black);
  border-color: #E8C040;
  font-weight: 600;
}

.rnt-location-input::placeholder {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.5);
  text-transform: lowercase;
  font-weight: 400;
}

.add-via-btn {
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  font-weight: 400;
  padding: 0.3rem 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  cursor: pointer;
  text-transform: lowercase;
  letter-spacing: 0.05em;
  transition: all 0.2s ease;
  width: fit-content;
}

.add-via-btn:hover {
  background: rgba(232, 192, 64, 0.1);
  border-color: rgba(232, 192, 64, 0.3);
  color: #E8C040;
}

.rnt-plus-btn {
  font-family: 'Inter', sans-serif;
  font-size: 1.5rem;
  font-weight: 300;
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  margin: 0.5rem 0;
}

.rnt-plus-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  transform: scale(1.1);
}

.rnt-plus-btn:active {
  transform: scale(0.95);
}

.rnt-side-btn {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 600;
  text-transform: uppercase;
  padding: 1rem 1.5rem;
  background: #E8C040;
  color: var(--black);
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease;
  margin-top: 0.5rem;
}

.rnt-side-btn:hover {
  transform: scale(1.02);
}

.rnt-side-btn:active {
  transform: scale(0.98);
}

.rnt-qr-container {
  display: none;
  justify-content: center;
  align-items: center;
  margin-top: 1rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 4px;
}

.rnt-qr-container img {
  max-width: 300px;
  width: 100%;
  height: auto;
}

/* Minimal Chatbot Interface */
.rnt-chat-container {
  display: none;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
  height: 400px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.rnt-chat-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 30px;
  height: 30px;
  background: rgba(0, 0, 0, 0.6);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.2s ease;
}

.rnt-chat-close:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: scale(1.1);
}

.rnt-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.chat-message {
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  line-height: 1.5;
  padding: 0.75rem;
  border-radius: 4px;
  max-width: 85%;
}

.chat-message.user {
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  align-self: flex-end;
}

.chat-message.assistant {
  background: rgba(0, 0, 0, 0.4);
  color: var(--white);
  align-self: flex-start;
}

.rnt-chat-input-wrapper {
  display: flex;
  gap: 0.5rem;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.2);
}

.rnt-chat-input {
  flex: 1;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  padding: 0.75rem;
  border: none;
  background: rgba(0, 0, 0, 0.3);
  color: var(--white);
  border-radius: 4px;
}

.rnt-chat-input:focus {
  outline: none;
  background: rgba(0, 0, 0, 0.4);
}

.rnt-chat-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.rnt-chat-send {
  width: 50px;
  height: 50px;
  background: #E8C040;
  color: var(--black);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.rnt-chat-send:hover {
  transform: scale(1.1);
}

.rnt-chat-send:active {
  transform: scale(0.95);
}

/* Decorator Styles */
.decorator-container {
  margin-top: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Quick Reply Chips */
.decorator-container.decorator-quick_reply {
  gap: 0.5rem;
}

.decorator-chip {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  padding: 0.4rem 0.9rem;
  background: rgba(232, 192, 64, 0.2);
  color: #E8C040;
  border: 1px solid #E8C040;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.decorator-chip:hover {
  background: #E8C040;
  color: var(--black);
  transform: translateY(-1px);
}

.decorator-chip:active {
  transform: translateY(0);
}

/* List Items */
.decorator-container.decorator-list {
  flex-direction: column;
  gap: 0;
}

.decorator-list {
  list-style: none;
  width: 100%;
  margin: 0;
  padding: 0;
}

.decorator-list-item {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  padding: 0.6rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: all 0.2s ease;
}

.decorator-list-item:first-child {
  border-radius: 6px 6px 0 0;
}

.decorator-list-item:last-child {
  border-radius: 0 0 6px 6px;
  border-bottom: none;
}

.decorator-list-item:only-child {
  border-radius: 6px;
}

.decorator-list-item:hover {
  background: rgba(232, 192, 64, 0.15);
  color: #E8C040;
  padding-left: 1.2rem;
}

/* Action Buttons */
.decorator-container.decorator-buttons {
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
}

.decorator-button {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.75rem 1.25rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}

.decorator-button.primary {
  background: #E8C040;
  color: var(--black);
}

.decorator-button.primary:hover {
  background: #f5d467;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(232, 192, 64, 0.3);
}

.decorator-button.secondary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.decorator-button.secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #E8C040;
  color: #E8C040;
  transform: translateY(-2px);
}

.decorator-button:active {
  transform: translateY(0);
}

.cassette-video {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 30vh;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  z-index: 15;
  pointer-events: none;
}

/* On wide screens, position cassette relative to music player panel */
@media (min-width: 768px) {
  .music-player-content {
    position: relative;
    overflow: hidden;
  }

  .cassette-video {
    left: 50%;
    transform: translateX(-50%);
    max-width: 100%;
  }
}

.music-player-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #2a2a2a 0%, #1a1a1a 50%, #0a0a0a 100%);
  position: relative;
  /* z-index removed - let children control their own stacking */
  padding: calc(30vh + 1rem) 1.5rem 1.5rem 1.5rem;
  height: 100vh;
  border: 3px solid #0a0a0a;
  box-shadow:
    inset 0 2px 0 rgba(255,255,255,0.1),
    inset 0 -2px 0 rgba(0,0,0,0.5),
    0 10px 30px rgba(0,0,0,0.8);
}

.player-close-area {
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 200px;
  cursor: pointer;
  z-index: 20;
  transition: background 0.2s ease;
}

.player-close-area:hover {
  background: radial-gradient(circle at top right, rgba(255,255,255,0.15) 0%, transparent 60%);
}

.player-close-x {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 50px;
  height: 50px;
  background: rgba(0, 0, 0, 0.8);
  color: var(--white);
  font-size: 2.5rem;
  line-height: 50px;
  text-align: center;
  cursor: pointer;
  z-index: 21;
  border-radius: 50%;
  transition: all 0.2s ease;
  display: none;
}

.player-close-x:hover {
  background: rgba(0, 0, 0, 0.95);
  transform: scale(1.1);
}

/* Show X button on landscape and square screens (not portrait) */
@media (min-aspect-ratio: 1/1) {
  .player-close-x {
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* Vintage Tape Player Controls */
.tape-controls {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem;
}

.tape-btn {
  background: linear-gradient(180deg, #3a3a3a 0%, #1a1a1a 100%);
  border: 1px solid #0a0a0a;
  border-radius: 4px;
  color: var(--white);
  width: 70px;
  height: 60px;
  cursor: pointer;
  transition: all 0.1s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.1),
    0 3px 0 #050505,
    0 4px 6px rgba(0,0,0,0.6);
  position: relative;
  top: 0;
}

.tape-btn:hover {
  background: linear-gradient(180deg, #4a4a4a 0%, #2a2a2a 100%);
}

.tape-btn:active {
  transform: translateY(3px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.1),
    0 0 0 #050505,
    0 1px 3px rgba(0,0,0,0.6);
}

.tape-btn-play {
  width: 80px;
  height: 70px;
}

.btn-label {
  font-family: 'Inter', sans-serif;
  font-size: clamp(0.75rem, 1.5vw, 1rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #999;
  text-shadow: 0 -1px 0 rgba(0,0,0,0.5);
}

/* Progress Bar */
.tape-progress {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  border-radius: 4px;
}

.tape-time {
  font-family: 'Inter', monospace;
  font-size: clamp(0.85rem, 1.8vw, 1.1rem);
  color: var(--white);
  min-width: 50px;
  text-align: center;
}

.tape-scrubber {
  flex: 1;
  height: 6px;
  -webkit-appearance: none;
  appearance: none;
  background: #E8C040;
  border-radius: 3px;
  outline: none;
  cursor: pointer;
}

.tape-scrubber::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  background: linear-gradient(180deg, #4a4a4a 0%, #2a2a2a 100%);
  border: 1px solid #1a1a1a;
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.2s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

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

.tape-scrubber::-moz-range-thumb {
  width: 16px;
  height: 16px;
  background: linear-gradient(180deg, #4a4a4a 0%, #2a2a2a 100%);
  border: 1px solid #1a1a1a;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

/* Scrolling Tracklist - White text on black */
.tape-tracklist {
  flex: 1;
  overflow-y: auto;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  padding: 1rem;
  border-radius: 4px;
}

.loading-tracks {
  font-family: 'Inter', sans-serif;
  font-size: clamp(0.95rem, 2vw, 1.2rem);
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
  padding: 2rem;
}

.track-item {
  font-family: 'Inter', sans-serif;
  font-size: clamp(0.8rem, 1.6vw, 0.95rem);
  color: rgba(255, 255, 255, 0.85);
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.track-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.track-item.active {
  background: var(--black);
  color: #E8C040;
  border-left: 2px solid #E8C040;
  padding-left: calc(0.75rem - 2px);
  font-weight: 500;
  font-family: 'Courier New', monospace;
}

.track-item.active .track-duration {
  color: #E8C040;
  font-family: 'Courier New', monospace;
}

.track-duration {
  font-family: 'Inter', monospace;
  font-size: clamp(0.85rem, 1.8vw, 1.05rem);
  color: rgba(255, 255, 255, 0.5);
  margin-left: 1rem;
}

/* Make text clickable in expanded state */
body.expanded .text {
  cursor: pointer;
  transition: transform 0.2s ease;
}

body.expanded .text:hover {
  transform: scale(1.02);
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  :root {
    --text-large: min(16vw, 20vh);
    --text-small: min(10vw, 12vh);
  }

  .quadrant {
    padding: 1.5rem;
  }

  .flip-front,
  .flip-back {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  :root {
    --text-large: min(18vw, 18vh);
    --text-small: min(12vw, 14vh);
  }

  .quadrant {
    padding: 1rem;
  }

  .flip-front,
  .flip-back {
    padding: 1rem;
  }
}

/* Timeframe Row */
.timeframe-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  margin-bottom: 0.4rem;
}

.timeframe-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
}

.timeframe-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.55rem;
  font-weight: 400;
  color: #E8C040;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.timeframe-select-inline {
  width: fit-content;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 400;
  padding: 0.4rem 1.5rem 0.4rem 0.5rem;
  background: rgba(0, 0, 0, 0.3);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  cursor: pointer;
  outline: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='8' height='6' viewBox='0 0 8 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L4 4L7 1' stroke='rgba(255,255,255,0.5)' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.4rem center;
  transition: all 0.2s ease;
}
.timeframe-select-inline:hover {
  background: rgba(0, 0, 0, 0.4);
  border-color: #E8C040;
}
.timeframe-select-inline:focus {
  background: rgba(0, 0, 0, 0.4);
  border-color: #E8C040;
}
.timeframe-select-inline option {
  background: var(--black);
  color: #fff;
  text-transform: lowercase;
}

/* Experience Tags - Grid with Sideways Labels */
.experience-label { display: block; font-family: 'Inter', sans-serif; font-size: 0.7rem; font-weight: 600; color: #E8C040; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.75rem; }
.experience-selector { margin: 0.5rem 0 0 0; }
.experience-categories { display: grid; grid-template-columns: auto 1fr; gap: 0.5rem; align-items: start; }
.experience-category { display: grid; grid-template-columns: subgrid; grid-column: 1 / -1; align-items: start; gap: 0.5rem; }
.category-title { font-family: 'Inter', sans-serif; font-size: 0.55rem; font-weight: 400; color: #E8C040; text-transform: uppercase; letter-spacing: 0.1em; writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; align-self: stretch; display: flex; justify-content: center; }
.experience-tags { display: grid; grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)); gap: 0.4rem; }
.experience-tag { font-family: 'Inter', sans-serif; font-size: 0.65rem; font-weight: 400; padding: 0.35rem 0.5rem; background: rgba(255, 255, 255, 0.1); color: rgba(255, 255, 255, 0.7); border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 4px; cursor: pointer; transition: all 0.2s ease; text-transform: lowercase; text-align: center; }
.experience-tag:hover { background: rgba(232, 192, 64, 0.2); color: #E8C040; border-color: #E8C040; }
.experience-tag.selected { background: #E8C040; color: var(--black); border-color: #E8C040; font-weight: 600; }

/* Experience More Toggle */
.experience-more-toggle {
  font-family: 'Inter', sans-serif;
  font-size: 0.55rem;
  font-weight: 400;
  color: #E8C040;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: transparent;
  border: none;
  padding: 0.35rem 0;
  cursor: pointer;
  transition: color 0.2s ease;
  margin-bottom: 0.3rem;
}
.experience-more-toggle:hover {
  color: rgba(232, 192, 64, 0.7);
}

/* More Options Button */
.rnt-more-options-btn {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.5rem;
  background: var(--black);
  color: #E8C040;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  grid-column: 1 / -1;
  margin-top: 0.5rem;
}
.rnt-more-options-btn:hover {
  background: #0a0a0a;
  transform: scale(1.02);
}
.rnt-more-options-btn:active {
  transform: scale(0.98);
}

/* Player Close Button (X in top right) */
.player-close-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 50px;
  height: 50px;
  padding: 0;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  cursor: pointer;
  z-index: 30;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  line-height: 1;
  color: #fff;
  font-family: Arial, sans-serif;
  font-weight: 300;
}

.player-close-btn:hover {
  background: rgba(0, 0, 0, 0.5);
  border-color: rgba(255, 255, 255, 0.5);
  transform: scale(1.05);
}

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

/* Invisible click area in top right of cassette player */
.cassette-open-area {
  position: absolute;
  top: 0;
  right: 0;
  width: 150px;
  height: 150px;
  z-index: 10;
  cursor: pointer;
  /* Uncomment for debugging: */
  /* background: rgba(255, 0, 0, 0.2); */
}

.cassette-open-area:hover {
  /* Optional: Add subtle visual feedback */
  background: rgba(232, 192, 64, 0.05);
}

/* ==========================================
   LP PLAYER WIDGET - Always visible in top right
   ========================================== */

.lp-player-widget {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  position: relative;
  z-index: 10;
  cursor: pointer;
  margin-left: auto;
  padding: 0.5rem;
  width: 120px;
  min-height: 130px;
  height: auto;
  flex-shrink: 0;
}

.lp-link::before {
  content: "YOUTUBE";
  position: absolute;
  top: -22px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Inter', sans-serif;
  font-size: 0.5rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--black);
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: auto;
  transition: opacity 0.15s ease-in, opacity 0.8s ease-out 0.3s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  z-index: 10;
  cursor: pointer;
}

/* Extend hover area to include the text */
.lp-link::after {
  content: "";
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 40px;
  pointer-events: auto;
  z-index: 9;
}

/* Show text on hover when LP is spinning (playing) */
.lp-link:has(.lp-circle.playing):hover::before {
  opacity: 1;
  transition-delay: 0s;
}

/* Mobile override - must come after global */
@media (max-width: 768px) {
  .lp-player-widget {
    width: 85px;
    min-height: 125px;
    height: auto;
    padding: 0.4rem 0.3rem;
    flex-shrink: 0;
  }
}

.lp-circle {
  width: 100px;
  height: 100px;
  object-fit: cover;
  transition: transform 0.3s ease;
  border-radius: 50%;
  clip-path: circle(50% at center);
  background: #000;
  flex-shrink: 0;
  display: block;
  aspect-ratio: 1;
}

/* Spin continuously when music is playing */
.lp-circle.playing {
  animation: spin-lp 3s linear infinite;
}

/* Pulse when loading */
.lp-circle.loading {
  animation: pulse-lp 1s ease-in-out infinite;
  opacity: 0.7;
}

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

@keyframes pulse-lp {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

.lp-track-name {
  font-family: 'Inter', sans-serif;
  font-size: 0.55rem;
  color: var(--black);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 110px;
  letter-spacing: 0.02em;
  text-align: center;
  min-height: 1em;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lp-track-name.visible {
  opacity: 1;
}

/* LP Compact Controls - REV/PLAY/FF trio */
.lp-compact-controls {
  display: flex;
  gap: 0.25rem;
  align-items: center;
  margin-top: 0.2rem;
}

.lp-mini-btn {
  width: 24px;
  height: 24px;
  background: rgba(0, 0, 0, 0.15);
  border: none;
  border-radius: 3px;
  color: rgba(0, 0, 0, 0.7);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.lp-mini-play {
  width: 28px;
  height: 28px;
}

.lp-mini-btn:hover {
  background: rgba(0, 0, 0, 0.25);
  transform: scale(1.05);
}

.lp-mini-btn:active {
  transform: scale(0.95);
}

.lp-mini-btn:focus {
  outline: none;
}

/* LP link wraps the circle */
.lp-link {
  display: block;
  position: relative;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.lp-link:hover {
  transform: scale(1.05);
}

/* ============================================
   CHOOSE Fleet Carousel
   ============================================ */

/* Container */
.choose-fullscreen {
  position: fixed;
  inset: 0;
  background-image: url('choose-compressed.jpg');
  background-size: cover;
  background-position: center;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.choose-fullscreen::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: -1;
}

.choose-fullscreen.active {
  opacity: 1;
  pointer-events: auto;
}

/* Header */
.choose-header {
  position: absolute;
  top: 2rem;
  right: 2rem;
  z-index: 10;
}

.choose-title {
  font-family: 'Anton', sans-serif;
  font-size: clamp(3rem, 8vw, 5rem);
  color: #fff;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
  line-height: 1;
  letter-spacing: 0.05em;
  font-weight: 400;
  text-transform: uppercase;
}

.choose-title:hover {
  transform: scale(1.05);
  opacity: 0.8;
}

/* Carousel */
.fleet-carousel {
  width: 100%;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 0 10%;
}

.carousel-track {
  display: flex;
  gap: 2rem;
  transition: transform 0.3s ease-out;
  will-change: transform;
  cursor: grab;
}

.carousel-track:active {
  cursor: grabbing;
}

.fleet-card {
  flex-shrink: 0;
  width: 80vw;
  max-width: 1200px;
  height: 70vh;
  background: rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
  overflow: hidden;
}

/* Loading state */
.fleet-loading {
  font-family: 'Inter', sans-serif;
  font-size: 1.2rem;
  color: rgba(0, 0, 0, 0.5);
  padding: 2rem;
  text-align: center;
}

/* Car Card (Reuse purist-split pattern) */
.fleet-card .purist-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 100%;
}

.fleet-car-image {
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  background-color: rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-right: none;
}

.fleet-car-info {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  background-image: url('paper.jpeg');
  background-size: cover;
  background-position: center;
  background-color: rgba(255, 255, 255, 0.95);
}

.fleet-car-header {
  display: flex;
  gap: 1.5rem;
  align-items: baseline;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.fleet-car-title {
  font-family: 'Anton', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  margin: 0;
  color: #1a3a52;
  flex-shrink: 0;
  line-height: 1;
}

.fleet-car-meta {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  justify-content: flex-start;
  min-width: 0;
  padding-top: 0.1rem;
}

.fleet-car-name {
  font-family: 'Inter', sans-serif;
  font-size: clamp(0.7rem, 0.9vw, 0.85rem);
  line-height: 1.3;
  color: rgba(26, 58, 82, 0.7);
  margin: 0;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.fleet-car-details {
  font-family: 'Inter', sans-serif;
  font-size: clamp(0.65rem, 0.85vw, 0.8rem);
  line-height: 1.3;
  color: rgba(26, 58, 82, 0.6);
  margin: 0;
}

.fleet-car-description {
  font-family: 'Inter', sans-serif;
  font-size: clamp(0.9rem, 1.2vw, 1.1rem);
  line-height: 1.6;
  color: #1a3a52;
  margin: 0;
}

/* BOOK Button (Hover reveal) */
.fleet-book-btn {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  padding: 0.75rem 1.5rem;
  background: #000;
  color: #fff;
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 4px;
  opacity: 0;
  transition: all 0.3s ease;
}

.fleet-card:hover .fleet-book-btn {
  display: block !important;
  opacity: 1;
}

.fleet-book-btn:hover {
  background: #222;
  transform: scale(1.05);
}

/* Responsive Breakpoints */

/* Tablet (768-1023px) */
@media (max-width: 1023px) {
  .fleet-card {
    width: 85vw;
  }

  .fleet-carousel {
    padding: 0 7.5%;
  }
}

/* Mobile (<768px) */
@media (max-width: 767px) {
  .fleet-card {
    width: 90vw;
    height: 80vh;
  }

  .fleet-carousel {
    padding: 0 5%;
  }

  .choose-header {
    top: 1.5rem;
    right: 1.5rem;
  }

  .fleet-card .purist-split {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 1fr;
  }

  .fleet-car-image {
    border-right: none;
    border-bottom: none;
  }

  .fleet-car-info {
    padding: 1.5rem;
  }

  .fleet-car-header {
    flex-direction: column;
    gap: 0.5rem;
    padding-bottom: 0.75rem;
    align-items: flex-start;
  }

  .fleet-book-btn {
    bottom: 1.5rem;
    right: 1.5rem;
  }
}

/* Narrow desktop/tablet - stack header vertically */
@media (max-width: 1200px) {
  .fleet-car-header {
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
  }

  .fleet-car-meta {
    padding-top: 0;
  }
}

/* ============================================
   Garage Unlock Modal
   ============================================ */

/* Modal Container */
.garage-unlock-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.garage-unlock-modal.active {
  opacity: 1;
  pointer-events: auto;
}

/* Close Button (Top Right) */
.garage-unlock-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.75rem 1.5rem;
  background: #000;
  color: #fff;
  border: 1px solid #fff;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
}

.garage-unlock-close:hover {
  background: #fff;
  color: #000;
  transform: scale(1.05);
}

/* Content Container */
.garage-unlock-content {
  max-width: 600px;
  width: 90%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  padding: 2rem;
}

/* Image Container */
.garage-image-container {
  width: 100%;
  max-width: 500px;
  border: 2px solid #fff;
  border-radius: 8px;
  overflow: hidden;
}

.garage-image {
  width: 100%;
  height: auto;
  display: block;
}

/* Instructions Text */
.garage-unlock-instructions {
  font-family: 'Inter', sans-serif;
  font-size: clamp(0.9rem, 1.2vw, 1.1rem);
  line-height: 1.6;
  color: #fff;
  text-align: center;
  max-width: 500px;
}

.garage-unlock-instructions p {
  margin: 0;
}

/* Status Message */
.garage-status-message {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  color: #fff;
  text-align: center;
  min-height: 1.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.garage-status-message.visible {
  opacity: 1;
}

.garage-status-message.success {
  color: #4CAF50;
}

.garage-status-message.error {
  color: #f44336;
}

.garage-status-message.info {
  color: #fff;
}

/* UNLOCK Button (Matches OPEN Button Style) */
.garage-unlock-btn {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 1rem 2.5rem;
  background: #fff;
  color: #000;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 200px;
}

.garage-unlock-btn:hover:not(:disabled) {
  background: #000;
  color: #fff;
  border: 1px solid #fff;
  transform: scale(1.05);
}

.garage-unlock-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.garage-unlock-btn.unlocking {
  background: #666;
  color: #fff;
}

.garage-unlock-btn.success {
  background: #4CAF50;
  color: #fff;
}

.garage-unlock-btn.error {
  background: #f44336;
  color: #fff;
}

/* Mobile Responsiveness */
@media (max-width: 767px) {
  .garage-unlock-close {
    top: 1rem;
    right: 1rem;
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
  }

  .garage-unlock-content {
    padding: 1rem;
    gap: 1.5rem;
  }

  .garage-image-container {
    max-width: 100%;
  }

  .garage-unlock-instructions {
    font-size: 0.9rem;
  }

  .garage-unlock-btn {
    padding: 0.875rem 2rem;
    font-size: 0.85rem;
  }
}

/* YouTube link in tracklist */
.youtube-link {
  display: inline-flex;
  align-items: center;
  margin-left: auto;
  padding: 4px 8px;
  color: #ff0000;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.youtube-link:hover {
  opacity: 1;
}

.track-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.track-item.active {
  background: rgba(255, 255, 255, 0.1);
}

/* Platform links styling update */
.track-title {
  flex: 1;
}

.track-links {
  display: flex;
  gap: 8px;
  align-items: center;
}

.platform-link {
  display: inline-flex;
  align-items: center;
  padding: 4px;
  opacity: 0.6;
  transition: opacity 0.2s, transform 0.2s;
}

.platform-link:hover {
  opacity: 1;
  transform: scale(1.1);
}

.spotify-link {
  color: #1DB954;
}

/* Platform icon buttons flanking tape controls */
.platform-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s, transform 0.2s;
}

.platform-icon-btn:hover {
  opacity: 1;
  transform: scale(1.1);
}

.youtube-icon {
  color: #ff0000;
}

.spotify-icon {
  color: #1DB954;
}
