/* Anime Styled Professional Landing Overlay (Clean, Thin, Cool Anime, No Neon) */

.landing-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: 
    radial-gradient(circle at 12% 15%, rgba(115, 194, 251, 0.14) 0%, transparent 45%),
    radial-gradient(circle at 88% 22%, rgba(255, 119, 130, 0.14) 0%, transparent 45%),
    radial-gradient(circle at 50% 65%, rgba(115, 194, 251, 0.08) 0%, rgba(255, 119, 130, 0.08) 50%, transparent 70%),
    #080a12;
  color: #f8fafc;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 48px 24px 80px;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  scroll-behavior: smooth;
}

.landing-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Background delicate sakura particles */
.landing-sakura-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.landing-sakura-petal {
  position: absolute;
  top: -20px;
  background: linear-gradient(135deg, rgba(255, 119, 130, 0.45), rgba(115, 194, 251, 0.45));
  box-shadow: 0 0 8px rgba(255, 119, 130, 0.25);
  border-radius: 10px 1px 10px 10px;
  pointer-events: none;
  animation: sakuraFall linear infinite, sakuraSway ease-in-out infinite alternate;
}

@keyframes sakuraFall {
  0% {
    top: -20px;
  }
  100% {
    top: 105vh;
  }
}

@keyframes sakuraSway {
  0% {
    transform: translateX(0) rotate(0deg);
  }
  100% {
    transform: translateX(45px) rotate(360deg);
  }
}

/* Skip button in top right */
.landing-skip-btn {
  position: fixed;
  top: 24px;
  right: 28px;
  z-index: 100000;
  background: rgba(14, 18, 29, 0.85);
  backdrop-filter: blur(8px);
  color: #94a3b8;
  border: 1px solid rgba(115, 194, 251, 0.25);
  border-radius: 6px;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.landing-skip-btn:hover {
  background: #161c2b;
  color: #f1f5f9;
  border-color: #ff7782;
  transform: translateY(-1px);
}

/* Landing content wrapper */
.landing-content {
  position: relative;
  z-index: 10;
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 52px;
}

/* Hero Section */
.landing-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  gap: 20px;
}

.landing-title-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.landing-title {
  font-size: clamp(32px, 5vw, 44px);
  font-weight: 700;
  background: linear-gradient(135deg, #73c2fb 0%, #ffffff 45%, #ff7782 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.01em;
  margin: 0;
  line-height: 1.15;
  filter: drop-shadow(0 2px 18px rgba(115, 194, 251, 0.25));
}

.landing-title-sub {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #94a3b8;
}

/* Hero Character Display Frame */
.landing-hero-card {
  position: relative;
  width: 100%;
  max-width: 740px;
  height: 400px;
  background: rgba(14, 18, 29, 0.85);
  border: 1px solid rgba(115, 194, 251, 0.22);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5), 0 0 24px -4px rgba(115, 194, 251, 0.15);
  cursor: default;
}

/* Dual Maya Blue & Blush Pink HUD Corner Accents */
.hero-frame-corner {
  position: absolute;
  width: 12px;
  height: 12px;
  border-style: solid;
  pointer-events: none;
  z-index: 2;
}

.hero-frame-corner.top-left {
  top: 10px;
  left: 10px;
  border-width: 2px 0 0 2px;
  border-color: #73c2fb;
  box-shadow: -1px -1px 6px rgba(115, 194, 251, 0.4);
}

.hero-frame-corner.top-right {
  top: 10px;
  right: 10px;
  border-width: 2px 2px 0 0;
  border-color: #ff7782;
  box-shadow: 1px -1px 6px rgba(255, 119, 130, 0.4);
}

.hero-frame-corner.bottom-left {
  bottom: 10px;
  left: 10px;
  border-width: 0 0 2px 2px;
  border-color: #ff7782;
  box-shadow: -1px 1px 6px rgba(255, 119, 130, 0.4);
}

.hero-frame-corner.bottom-right {
  bottom: 10px;
  right: 10px;
  border-width: 0 2px 2px 0;
  border-color: #73c2fb;
  box-shadow: 1px 1px 6px rgba(115, 194, 251, 0.4);
}

.landing-hero-img {
  max-height: 100%;
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.6));
}

/* Separate Enter Button — Maya Blue & Blush Pink blend */
.landing-action-row {
  margin-top: 8px;
  display: flex;
  justify-content: center;
  width: 100%;
}

.landing-enter-btn {
  background: linear-gradient(135deg, rgba(115, 194, 251, 0.16) 0%, rgba(255, 119, 130, 0.16) 100%);
  color: #ffffff;
  border: 1px solid rgba(115, 194, 251, 0.4);
  padding: 13px 38px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 18px rgba(115, 194, 251, 0.18), 0 2px 10px rgba(255, 119, 130, 0.15);
}

.landing-enter-btn:hover {
  background: linear-gradient(135deg, #73c2fb 0%, #ff7782 100%);
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(115, 194, 251, 0.4), 0 4px 18px rgba(255, 119, 130, 0.45);
}

.landing-enter-btn:active {
  transform: translateY(0);
}

/* In-app direct voice note */
.direct-voice-pill {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(18, 14, 34, 0.7);
  border: 1px solid rgba(115, 194, 251, 0.35);
  border-radius: 9999px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
  max-width: 92vw;
  text-align: center;
}
.direct-voice-indicator {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff7782;
  box-shadow: 0 0 6px #ff7782;
  flex-shrink: 0;
  animation: pulse-voice 2s infinite ease-in-out;
}
@keyframes pulse-voice {
  0%, 100% { opacity: 0.9; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.25); }
}
.direct-voice-text {
  font-size: 12px;
  color: #e2e8f0;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.direct-voice-text strong {
  color: #73c2fb;
  font-weight: 700;
}

/* Section Header */
.landing-section {
  width: 100%;
}

.landing-section-header {
  text-align: center;
  margin-bottom: 22px;
}

.landing-section-title {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #f1f5f9;
  margin: 0;
}

/* Character Roster Grid */
.landing-roster-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  width: 100%;
}

.landing-character-card {
  position: relative;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 8px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: none;
}

.landing-character-card.locked .landing-character-avatar {
  filter: grayscale(0.35) brightness(0.85);
}

.landing-character-lock {
  position: absolute;
  top: 4px;
  right: 4px;
  background: rgba(14, 18, 29, 0.88);
  border: 1px solid rgba(255, 119, 130, 0.6);
  color: #ff7782;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 10px;
  backdrop-filter: blur(4px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  pointer-events: none;
  z-index: 2;
}

.landing-character-card:hover {
  transform: translateY(-5px);
  background: transparent;
  border: none;
  box-shadow: none;
}

.landing-character-card:nth-child(even):hover {
  border: none;
  box-shadow: none;
}

.landing-character-avatar {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  object-fit: cover;
  border: 2.5px solid transparent;
  background: linear-gradient(#0e121d, #0e121d) padding-box, linear-gradient(135deg, #73c2fb 0%, #ff7782 100%) border-box;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45), 0 0 16px rgba(115, 194, 251, 0.22);
  margin-bottom: 12px;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, filter 0.25s ease;
  display: block;
}

.landing-character-card:hover .landing-character-avatar {
  transform: scale(1.08);
  border: 2.5px solid transparent;
  background: linear-gradient(#0e121d, #0e121d) padding-box, linear-gradient(135deg, #ff7782 0%, #73c2fb 100%) border-box;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55), 0 0 24px rgba(255, 119, 130, 0.45), 0 0 18px rgba(115, 194, 251, 0.4);
  filter: brightness(1.06);
}

.landing-character-card:nth-child(even):hover .landing-character-avatar {
  transform: scale(1.08);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55), 0 0 24px rgba(255, 119, 130, 0.45), 0 0 18px rgba(115, 194, 251, 0.4);
}

.landing-character-name {
  font-size: 13.5px;
  font-weight: 500;
  color: #f1f5f9;
  letter-spacing: 0.02em;
}

/* Features Grid */
.landing-features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  width: 100%;
}

.landing-feature-card {
  background: rgba(14, 18, 29, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 16px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.landing-feature-card:hover {
  border-color: rgba(115, 194, 251, 0.45);
  box-shadow: 0 6px 20px -4px rgba(115, 194, 251, 0.15);
}

.landing-feature-card:nth-child(even):hover {
  border-color: rgba(255, 119, 130, 0.45);
  box-shadow: 0 6px 20px -4px rgba(255, 119, 130, 0.15);
}

.landing-feature-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.landing-feature-card:nth-child(1) .landing-feature-icon,
.landing-feature-card:nth-child(3) .landing-feature-icon {
  color: #73c2fb;
}

.landing-feature-card:nth-child(2) .landing-feature-icon,
.landing-feature-card:nth-child(4) .landing-feature-icon {
  color: #ff7782;
}

.landing-feature-title {
  font-size: 13px;
  font-weight: 500;
  color: #e2e8f0;
  margin: 0;
  letter-spacing: 0.01em;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .landing-roster-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .landing-features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .landing-hero-card {
    height: 320px;
  }
}

@media (max-width: 480px) {
  .landing-roster-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .landing-features-grid {
    grid-template-columns: 1fr;
  }
  .landing-skip-btn {
    top: 16px;
    right: 16px;
  }
}
