/* =============================================
   Spotlight Auth & Profile Styles
   ============================================= */

/* --- Auth Modal --- */
.auth-modal {
  max-width: 440px;
  width: min(440px, calc(100% - 32px));
  padding: 32px 28px 28px;
  border-radius: 20px;
  background: rgba(18, 18, 20, 0.96);
  backdrop-filter: blur(32px) saturate(1.8);
  -webkit-backdrop-filter: blur(32px) saturate(1.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.06);
  font-family: var(--ui-font);
  color: #f5f5f7;
  -webkit-font-smoothing: antialiased;
}

.auth-modal .modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.6);
  font-size: 18px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.auth-modal .modal-close:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  transform: scale(1.06);
}

.auth-recovery-link {
  display: block;
  margin: 14px auto 0;
  border: 0;
  background: none;
  color: rgba(255, 255, 255, 0.55);
  font-family: var(--ui-font);
  font-size: 12px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  transition: color 0.18s ease;
}
.auth-recovery-link:hover { color: #ffffff; }
.auth-recovery-link[hidden] { display: none; }
.auth-recovery-link:focus-visible { outline: 2px solid #ffffff; outline-offset: 3px; }

.recovery-code {
  display: block;
  overflow-wrap: anywhere;
  margin: 18px 0;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  font: 500 13px/1.5 'DM Mono', monospace;
  letter-spacing: 0.04em;
  user-select: all;
}

.auth-modal-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.auth-modal .ui-cd-logo.is-modal {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.auth-modal .modal-label {
  margin: 0 0 4px;
  color: rgba(255, 255, 255, 0.45);
  font-family: var(--ui-font);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-modal-header h2,
.auth-modal h2 {
  margin: 0;
  font-family: var(--ui-font);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.035em;
  color: #ffffff;
  line-height: 1.2;
}

.auth-tabs {
  display: flex;
  gap: 0;
  margin: 0 0 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.auth-tab {
  flex: 1;
  height: 40px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  color: rgba(255, 255, 255, 0.45);
  font-family: var(--ui-font);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-transform: none;
  cursor: pointer;
  transition: color 0.18s ease, border-color 0.18s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-tab:hover { color: rgba(255, 255, 255, 0.85); }
.auth-tab.is-active {
  color: #ffffff;
  border-bottom-color: #ffffff;
}

/* --- Form Labels --- */
.auth-modal .field-label {
  display: block;
  margin: 14px 0 8px;
  color: rgba(255, 255, 255, 0.72);
  font-family: var(--ui-font);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

/* --- Username Field --- */
.username-field {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  overflow: hidden;
  height: 46px;
  transition: border-color 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              background-color 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.username-field:focus-within {
  border-color: rgba(255, 255, 255, 0.36);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.07);
}

.username-field.is-available {
  border-color: rgba(48, 209, 88, 0.8) !important;
  box-shadow: 0 0 0 3px rgba(48, 209, 88, 0.2) !important;
}

.username-field.is-taken {
  border-color: rgba(255, 69, 58, 0.8) !important;
  box-shadow: 0 0 0 3px rgba(255, 69, 58, 0.2) !important;
}

.username-field.is-checking {
  border-color: rgba(255, 255, 255, 0.35);
}

.username-prefix {
  padding: 0 0 0 14px;
  color: rgba(255, 255, 255, 0.38);
  font-family: var(--ui-font);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: nowrap;
  user-select: none;
  pointer-events: none;
  display: flex;
  align-items: center;
}

.username-input,
.username-field input,
.username-field input:focus,
.username-field input:focus-visible {
  flex: 1;
  min-width: 0;
  border: 0 !important;
  outline: none !important;
  outline-offset: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  color: #ffffff;
  font-family: var(--ui-font);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
  padding: 0 12px 0 2.5px;
  height: 100%;
}

.username-input::placeholder {
  color: rgba(255, 255, 255, 0.26);
  font-weight: 400;
}

.slug-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  margin-right: 14px;
  border-radius: 50%;
  flex-shrink: 0;
  opacity: 0;
  transition: opacity 0.2s, color 0.2s;
  pointer-events: none;
}

.slug-status.is-visible { opacity: 1; }
.slug-status.is-available { opacity: 1; color: #30d158; }
.slug-status.is-taken { opacity: 1; color: #ff453a; }
.slug-status.is-checking { opacity: 1; color: rgba(255, 255, 255, 0.45); }

.slug-status svg {
  width: 16px;
  height: 16px;
}

.slug-spinner {
  animation: slug-spin 0.8s linear infinite;
}

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

/* Helper text below username field */
.slug-feedback {
  margin: 6px 0 14px;
  font-family: var(--ui-font);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.01em;
  min-height: 15px;
  transition: color 0.2s;
}

.slug-feedback[hidden] { display: none; }
.slug-feedback.is-available { color: #30d158; }
.slug-feedback.is-taken { color: #ff453a; }
.slug-feedback.is-checking { color: rgba(255, 255, 255, 0.5); }

/* --- Password / Text Fields --- */
.auth-modal .text-field {
  width: 100%;
  height: 46px;
  margin-bottom: 0;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  padding: 0 14px;
  font-family: var(--ui-font);
  font-size: 13.5px;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: #ffffff;
  transition: border-color 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              background-color 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.auth-modal .text-field::placeholder {
  color: rgba(255, 255, 255, 0.26);
}

.auth-modal .text-field:focus,
.auth-modal .text-field:focus-visible {
  outline: none !important;
  outline-offset: 0 !important;
  border-color: rgba(255, 255, 255, 0.36);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.07);
}

.auth-error {
  margin: 14px 0 0;
  padding: 10px 14px;
  border: 1px solid rgba(255, 69, 58, 0.35);
  border-radius: 10px;
  background: rgba(255, 69, 58, 0.1);
  color: #ff453a;
  font-family: var(--ui-font);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.4;
}

.auth-error[hidden] { display: none; }

.auth-submit,
.auth-modal .modal-primary {
  width: 100%;
  height: 46px;
  margin-top: 22px;
  border: 0;
  border-radius: 999px;
  background: #ffffff !important;
  color: #000000 !important;
  font-family: var(--ui-font) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  letter-spacing: -0.015em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.12);
  transition: transform 0.18s ease, filter 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.auth-submit:not(:disabled):hover,
.auth-modal .modal-primary:not(:disabled):hover {
  transform: scale(1.02);
  filter: brightness(1.05);
  box-shadow: 0 10px 28px rgba(255, 255, 255, 0.2);
}

.auth-submit:not(:disabled):active,
.auth-modal .modal-primary:not(:disabled):active {
  transform: scale(0.985);
}

.auth-submit:disabled,
.auth-modal .modal-primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.auth-modal .modal-foot {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.4);
  font-family: var(--ui-font);
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

/* =============================================
   Public Profile Loading Screen (Rotating CD Disc)
   ============================================= */

.profile-loader {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000000;
  opacity: 1;
  transition: opacity 0.42s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: all;
}

.profile-loader[hidden] {
  display: none !important;
}

html.is-profile-route #profileLoader:not(.is-dismissed) {
  display: flex !important;
}

.profile-loader.is-fading {
  opacity: 0;
  pointer-events: none;
}

.profile-loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px;
}

.profile-loader-disc-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 104px;
  height: 104px;
  margin-bottom: 26px;
}

.loader-cd-disc {
  width: 96px;
  height: 96px;
  animation: loader-cd-spin 3.2s linear infinite;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.9), 0 0 45px rgba(123, 177, 248, 0.16), inset 0 0 0 1px rgba(255, 255, 255, 0.28);
  will-change: transform;
}

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

.loader-disc-glow {
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(123, 177, 248, 0.24) 0%, rgba(229,229,234, 0.08) 45%, transparent 72%);
  animation: loader-glow-pulse 2.4s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes loader-glow-pulse {
  0% { transform: scale(0.88); opacity: 0.35; }
  100% { transform: scale(1.18); opacity: 0.85; }
}

.profile-loader-text {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.profile-loader-sub {
  font: 400 10.5px 'DM Mono', monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

@media (prefers-reduced-motion: reduce) {
  .loader-cd-disc,
  .loader-disc-glow {
    animation: none !important;
  }
}

/* =============================================
   Dedicated Full-Page Onboarding Experience
   ============================================= */

.onboarding-screen {
  position: fixed;
  inset: 0;
  z-index: 250;
  display: flex;
  flex-direction: column;
  background: #000000;
  color: #fff;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding-top: env(safe-area-inset-top, 0);
  transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1), transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.onboarding-screen[hidden],
html.is-profile-route #onboardingScreen {
  display: none !important;
}

.onboarding-screen.is-dismissing {
  opacity: 0;
  transform: scale(1.04);
  pointer-events: none;
}

/* Interactive Album Cursor Trail */
.cursor-trail-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 5;
  overflow: hidden;
}

.trail-item {
  position: absolute;
  width: 76px;
  height: 76px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.92), 0 0 0 1px rgba(255, 255, 255, 0.14);
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.18, 0.89, 0.32, 1.28), opacity 0.35s ease;
  will-change: transform, opacity;
  pointer-events: none;
}

.trail-item.is-active {
  transform: translate(-50%, -50%) scale(1) rotate(var(--rot, 0deg));
  opacity: 1;
}

.trail-item.is-fading {
  transform: translate(-50%, -50%) scale(0.92) rotate(var(--rot, 0deg));
  opacity: 0;
  transition: transform 0.5s ease-out, opacity 0.5s ease-out;
}

/* Sticky Top Announcement Banner */
.onboarding-notice-banner {
  position: sticky;
  top: 0;
  z-index: 35;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 6px 24px 6px 44px;
  background: #111113;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 11.5px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.78);
  text-align: center;
}

.onboarding-notice-banner[hidden] {
  display: none !important;
}

.notice-banner-inner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.notice-banner-text {
  font-weight: 450;
}

.notice-banner-link {
  color: #fff;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: opacity 0.15s;
  white-space: nowrap;
}

.notice-banner-link:hover {
  opacity: 0.8;
}

.notice-banner-close {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: rgba(255, 255, 255, 0.5);
  font-size: 16px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}

.notice-banner-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

/* Topbar - Logo and Sign-in Pinned to Sides */
.onboarding-topbar {
  position: relative;
  z-index: 20;
  flex-shrink: 0;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 3.5vw, 40px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.onboarding-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.onboarding-brand .brand-text {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
}

.onboarding-nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.onboarding-auth-trigger {
  height: 32px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.85);
  font: 500 10.5px 'DM Mono', monospace;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.onboarding-auth-trigger:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

.onboarding-close-trigger {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #888;
  font-size: 20px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}

.onboarding-close-trigger:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.onboarding-close-trigger[hidden] {
  display: none !important;
}

/* Main Content - Centered in Viewport */
.onboarding-main {
  position: relative;
  z-index: 10;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 24px 18px;
  box-sizing: border-box;
}

.onboarding-container {
  width: 100%;
  max-width: 730px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

/* Clean Minimal Hero */
.onboarding-hero {
  text-align: left;
  margin-bottom: clamp(12px, 2vh, 18px);
  padding: 0 2px;
}

.onboarding-headline {
  margin: 0 0 6px;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: #ffffff;
}

.onboarding-description {
  margin: 0;
  max-width: 520px;
  font-size: clamp(12.5px, 1.4vw, 14px);
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 400;
}

/* Editorial Grid */
.spot-editorial-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(12px, 1.8vw, 16px);
  margin-bottom: clamp(12px, 1.8vw, 16px);
}

.spot-card {
  border-radius: 28px;
  padding: 30px 26px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 290px;
  transition: transform 0.25s, box-shadow 0.25s;
}

.spot-card:hover {
  transform: translateY(-2px);
}

/* Card 1: Vibrant Sky-Blue Editorial Card */
.spot-card-blue {
  background: #7bb1f8;
  color: #050b14;
  box-shadow: 0 16px 44px rgba(123, 177, 248, 0.18);
}

.spot-card-blue .spot-tag {
  font: 700 9px 'DM Mono', monospace;
  letter-spacing: 0.14em;
  color: rgba(5, 11, 20, 0.65);
  display: block;
}

.spot-card-blue h2 {
  font-size: clamp(24px, 3vw, 30px);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin: 10px 0 12px;
  color: #050b14;
  line-height: 1.12;
}

.spot-card-blue p {
  font-size: 13px;
  line-height: 1.5;
  color: rgba(5, 11, 20, 0.8);
  font-weight: 500;
  margin: 0;
}

.spot-card-blue p strong {
  font-weight: 800;
  color: #050b14;
}

/* Pill Buttons */
.spot-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}

.spot-pill-btn:hover {
  transform: scale(1.04);
}

.spot-pill-btn.is-black {
  background: #000;
  color: #fff;
  border: 0;
}

.spot-pill-btn.is-white {
  background: #fff;
  color: #000;
  border: 0;
}

.spot-pill-btn .arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.spot-pill-btn .arrow svg {
  display: block;
}

.spot-pill-btn.is-black:hover .arrow {
  transform: translate(2px, -2px);
}

.spot-pill-btn.is-white:hover .arrow {
  transform: translateX(3px);
}

/* Card 2: Image-Heavy Drop & Map Card */
.spot-card-drop {
  background: #141514;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
}

.spot-card-drop .spot-tag {
  font: 700 9px 'DM Mono', monospace;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.45);
  display: block;
}

.spot-art-strip {
  display: flex;
  gap: 8px;
  margin: 12px 0 16px;
  overflow: hidden;
}

.spot-art-strip img {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.6);
  flex-shrink: 0;
  transition: transform 0.2s;
}

.spot-card-drop:hover .spot-art-strip img {
  transform: translateY(-2px);
}

.spot-card-drop h2 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 6px;
  color: #fff;
}

.spot-card-drop p {
  font-size: 12px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.65);
  margin: 0 0 16px;
}

/* Drop Zone */
.onboarding-drop-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100px;
  padding: 16px;
  border: 1.5px dashed rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.onboarding-drop-zone:hover,
.onboarding-drop-zone.is-over {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 24px rgba(255, 255, 255, 0.03);
}

.onboarding-drop-zone.is-importing {
  pointer-events: none;
  border-style: solid;
  border-color: rgba(255, 255, 255, 0.65);
}

.onboarding-drop-zone input {
  display: none;
}

.onboard-drop-idle {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.onboard-drop-icon {
  width: 36px;
  height: 36px;
  margin-bottom: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  color: #ffffff;
  display: grid;
  place-items: center;
}

.onboard-drop-title {
  font-size: 12px;
  font-weight: 600;
  color: #fff;
}

.onboard-drop-subtitle {
  margin-top: 2px;
  font-size: 10px;
  color: #888;
}

/* Busy State */
.onboard-drop-busy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.onboard-drop-busy[hidden] { display: none !important; }
.onboard-drop-idle[hidden] { display: none !important; }

.onboard-spinner {
  width: 26px;
  height: 26px;
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spot-spin 0.7s linear infinite;
}

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

.onboard-busy-title {
  font-size: 12px;
  font-weight: 600;
  color: #fff;
}

.onboard-busy-subtitle {
  font-size: 10px;
  color: #a7a7a7;
}

/* Card 3: Split Editorial Banner */
.spot-banner-card {
  border-radius: 28px;
  background: #141514;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 28px 32px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 28px;
  position: relative;
  overflow: hidden;
}

.spot-banner-content .spot-tag {
  font: 700 9px 'DM Mono', monospace;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.45);
  display: block;
  margin-bottom: 8px;
}

.spot-banner-content h2 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 8px;
  color: #fff;
}

.spot-banner-content p {
  font-size: 12.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.65);
  margin: 0 0 18px;
  max-width: 420px;
}

.spot-banner-art {
  position: relative;
  width: 150px;
  height: 100px;
  flex-shrink: 0;
}

.art-grid-stack {
  position: relative;
  width: 100%;
  height: 100%;
}

.art-grid-stack img {
  position: absolute;
  width: 72px;
  height: 72px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.15);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.art-tilt-1 { top: 0; left: 0; transform: rotate(-8deg); z-index: 1; }
.art-tilt-2 { top: 12px; left: 36px; transform: rotate(4deg); z-index: 2; }
.art-tilt-3 { top: 22px; left: 74px; transform: rotate(-3deg); z-index: 3; }

.spot-banner-card:hover .art-tilt-1 { transform: rotate(-12deg) translateY(-4px); }
.spot-banner-card:hover .art-tilt-2 { transform: rotate(2deg) translateY(-6px); }
.spot-banner-card:hover .art-tilt-3 { transform: rotate(-1deg) translateY(-3px); }

/* Responsive adjustments */
@media (hover: none) and (pointer: coarse) {
  .cursor-trail-layer {
    display: none !important;
  }
}

@media (max-width: 700px) {
  .spot-editorial-grid {
    grid-template-columns: 1fr;
  }
  .spot-banner-card {
    grid-template-columns: 1fr;
  }
  .spot-banner-art {
    display: none;
  }
  .onboarding-pills-nav {
    display: none;
  }
  .onboarding-topbar {
    padding: 0 18px;
  }
  .onboarding-main {
    padding: 20px 16px 40px;
  }
}

@media (max-width: 600px) {
  .cursor-trail-layer {
    display: none !important;
  }

  /* Sticky announcement banner: clean wrapping, no collision with close icon */
  .onboarding-notice-banner {
    padding: 8px 36px 8px 14px;
    min-height: auto;
    font-size: 11px;
    line-height: 1.42;
    text-align: left;
    justify-content: flex-start;
  }

  .notice-banner-inner {
    display: inline;
    text-align: left;
  }

  .notice-banner-text {
    display: inline;
  }

  .notice-banner-link {
    display: inline;
    margin-left: 4px;
    white-space: nowrap;
  }

  .notice-banner-close {
    position: absolute;
    left: auto;
    right: 8px;
    top: 6px;
    transform: none;
    width: 24px;
    height: 24px;
    font-size: 18px;
  }

  /* Topbar: tight, no overflowing brand or actions */
  .onboarding-topbar {
    height: 48px;
    padding: 0 14px;
  }

  .onboarding-brand {
    gap: 8px;
  }

  .onboarding-brand .brand-text {
    font-size: 13px;
  }

  .onboarding-auth-trigger {
    height: 30px;
    padding: 0 11px;
    font-size: 9.5px;
    letter-spacing: 0.02em;
    white-space: nowrap;
  }

  /* Main viewport container */
  .onboarding-main {
    padding: 14px 14px calc(28px + env(safe-area-inset-bottom, 0px));
    align-items: flex-start;
  }

  .onboarding-container {
    max-width: 100%;
  }

  .onboarding-hero {
    margin-bottom: 14px;
    padding: 0 2px;
  }

  .onboarding-headline {
    font-size: clamp(26px, 7.5vw, 32px);
    line-height: 1.08;
    margin: 0 0 6px;
  }

  .onboarding-description {
    font-size: 12.5px;
    line-height: 1.45;
  }

  /* Editorial cards tailored for phone ergonomics */
  .spot-editorial-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 12px;
  }

  .spot-card {
    border-radius: 20px;
    padding: 20px 16px;
    min-height: auto;
  }

  .spot-card-blue h2,
  .spot-card-drop h2 {
    font-size: 21px;
    line-height: 1.15;
    margin: 8px 0 8px;
  }

  .spot-card-blue p,
  .spot-card-drop p {
    font-size: 12.5px;
    line-height: 1.45;
  }

  .spot-card-footer {
    margin-top: 16px;
  }

  /* Full-width touch-friendly pill buttons */
  .spot-pill-btn {
    height: 44px;
    min-height: 44px;
    padding: 0 20px;
    font-size: 12px;
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
  }

  .spot-art-strip {
    margin: 10px 0 12px;
    gap: 7px;
  }

  .spot-art-strip img {
    width: 44px;
    height: 44px;
    border-radius: 8px;
  }

  .onboarding-drop-zone {
    min-height: 90px;
    padding: 12px;
    border-radius: 14px;
  }

  .onboard-drop-icon {
    width: 32px;
    height: 32px;
    margin-bottom: 6px;
  }

  .onboard-drop-icon svg {
    width: 18px;
    height: 18px;
  }

  .onboard-drop-title {
    font-size: 11.5px;
  }

  .onboard-drop-subtitle {
    font-size: 9.5px;
  }

  /* Featured Spotlight card */
  .spot-banner-card {
    border-radius: 20px;
    padding: 20px 16px;
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .spot-banner-content h2 {
    font-size: 19px;
    margin: 0 0 6px;
  }

  .spot-banner-content p {
    font-size: 12px;
    line-height: 1.45;
    margin: 0 0 14px;
  }

  /* Auth modal phone adjustments & prevent iOS Safari auto-zoom */
  .auth-modal {
    width: calc(100% - 24px);
    padding: 24px 18px 20px;
    border-radius: 18px;
  }

  .auth-modal .text-field {
    font-size: 16px;
    height: 44px;
  }
}

@media (max-width: 375px) {
  .onboarding-headline {
    font-size: 25px;
  }

  .onboarding-auth-trigger {
    padding: 0 9px;
    font-size: 9px;
  }

  .spot-card-blue h2,
  .spot-card-drop h2 {
    font-size: 19px;
  }
}
