
:root {
  --bg-dark: #060919;
  --bg-gradient: radial-gradient(circle at 50% 20%, #0d1538 0%, #060817 70%, #03040c 100%);
  --card-bg: rgba(15, 22, 45, 0.65);
  --card-border: rgba(135, 120, 255, 0.25);
  --card-glow: 0 8px 32px 0 rgba(0, 0, 0, 0.5), inset 0 0 1px 1px rgba(255, 255, 255, 0.08);
  
  --color-primary: #00f2fe;
  --color-secondary: #7f00ff;
  --color-accent-cyan: #38ef7d;
  --color-cyan: #00d2ff;
  --color-purple: #9b51e0;
  --color-orange: #ff6a00;
  --color-orange-end: #ee0979;
  --color-badge-purple: #7000ff;
  
  --gradient-main: linear-gradient(135deg, #00f2fe 0%, #7f00ff 100%);
  --gradient-btn: linear-gradient(90deg, #00d2ff 0%, #8e2de2 100%);
  --gradient-progress: linear-gradient(90deg, #38ef7d 0%, #00f2fe 50%, #9b51e0 100%);
  --gradient-hot: linear-gradient(135deg, #ff7e5f 0%, #feb47b 100%);
  
  --text-primary: #ffffff;
  --text-secondary: #a0aec0;
  --text-muted: #64748b;
  --text-cyan: #00f2fe;
  --text-purple: #bb86fc;
  
  --font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --radius-pill: 9999px;
}

/* Reset & Base Setup */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: var(--font-family);
  background-color: var(--bg-dark);
  color: var(--text-primary);
}

/* Custom Sleek Scrollbar for Route List */
::-webkit-scrollbar {
  width: 4px;
}
::-webkit-scrollbar-track {
  background: rgba(6, 9, 25, 0.4);
}
::-webkit-scrollbar-thumb {
  background: rgba(0, 242, 254, 0.4);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 242, 254, 0.75);
}

/* Background Canvas & Elements */
.app-viewport {
  position: relative;
  width: 100%;
  height: 100vh;
  margin: 0 auto;
  overflow: hidden;
  background: var(--bg-gradient);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 16px;
  box-sizing: border-box;
}

body.landing-mode {
  background: #060810 !important;
  background-color: #060810 !important;
}

body.landing-mode .app-viewport {
  padding: 0 !important;
  margin: 0 !important;
  background: #060810 !important;
  background-color: #060810 !important;
  background-image: none !important;
  justify-content: flex-start;
  align-items: stretch;
}

body.landing-mode .stars-bg,
body.landing-mode .planet-bg,
body.landing-mode .lang-switcher {
  display: none !important;
}

/* Starfield & Planet background effects */
.stars-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  background-image: 
    radial-gradient(1.5px 1.5px at 20px 30px, #ffffff, rgba(0,0,0,0)),
    radial-gradient(1.5px 1.5px at 40px 70px, rgba(255,255,255,0.7), rgba(0,0,0,0)),
    radial-gradient(1px 1px at 90px 40px, #ffffff, rgba(0,0,0,0)),
    radial-gradient(2px 2px at 160px 120px, rgba(0,242,254,0.9), rgba(0,0,0,0)),
    radial-gradient(1.5px 1.5px at 230px 190px, rgba(255,255,255,0.8), rgba(0,0,0,0)),
    radial-gradient(2px 2px at 310px 80px, rgba(155,81,224,0.9), rgba(0,0,0,0)),
    radial-gradient(1px 1px at 370px 150px, #ffffff, rgba(0,0,0,0)),
    radial-gradient(1.5px 1.5px at 420px 240px, rgba(255,255,255,0.6), rgba(0,0,0,0)),
    radial-gradient(2px 2px at 50px 320px, rgba(0,242,254,0.8), rgba(0,0,0,0)),
    radial-gradient(1.5px 1.5px at 180px 390px, #ffffff, rgba(0,0,0,0)),
    radial-gradient(1px 1px at 280px 460px, rgba(255,255,255,0.7), rgba(0,0,0,0)),
    radial-gradient(2px 2px at 340px 520px, rgba(155,81,224,0.7), rgba(0,0,0,0)),
    radial-gradient(1.5px 1.5px at 110px 590px, #ffffff, rgba(0,0,0,0)),
    radial-gradient(2px 2px at 240px 650px, rgba(0,242,254,0.9), rgba(0,0,0,0)),
    radial-gradient(1.5px 1.5px at 390px 690px, #ffffff, rgba(0,0,0,0));
  background-repeat: repeat;
  background-size: 450px 750px;
  animation: starsTwinkle 4s ease-in-out infinite alternate;
}

@keyframes starsTwinkle {
  0% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 0.95; transform: scale(1.02); }
  100% { opacity: 0.7; transform: scale(1); }
}

.planet-bg {
  position: absolute;
  bottom: -150px;
  right: -150px;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #4c1185 0%, #1d073e 40%, #05021a 75%);
  box-shadow: 
    -14px -14px 45px rgba(160, 70, 255, 0.75),
    -4px -4px 16px rgba(0, 242, 254, 0.45),
    inset 4px 4px 25px rgba(0, 242, 254, 0.25);
  pointer-events: none;
  z-index: 1;
  opacity: 0.92;
}

@media (max-width: 600px) {
  .planet-bg {
    width: 240px;
    height: 240px;
    bottom: -70px;
    right: -70px;
    box-shadow: 
      -10px -10px 30px rgba(160, 70, 255, 0.7),
      -3px -3px 12px rgba(0, 242, 254, 0.4),
      inset 3px 3px 16px rgba(0, 242, 254, 0.2);
  }
}

/* Dynamic Container Screen States */
.screen-state {
  display: none;
  width: 100%;
  z-index: 10;
  animation: fadeInScale 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.screen-state.active {
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

/* Glassmorphism Main Card */
.glass-card {
  width: 100%;
  max-width: 380px;
  background: var(--card-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--card-glow);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -50%;
  width: 200%;
  height: 100%;
  background: linear-gradient(
    115deg,
    transparent 0%,
    rgba(255, 255, 255, 0.03) 45%,
    rgba(255, 255, 255, 0.08) 50%,
    rgba(255, 255, 255, 0.03) 55%,
    transparent 100%
  );
  pointer-events: none;
}

/* Header Text Styles */
.card-title {
  font-size: 26px;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}

.card-subtitle {
  font-size: 14px;
  color: #94a3b8;
  text-align: center;
  margin-bottom: 24px;
  font-weight: 400;
}

.divider {
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin-bottom: 24px;
}

/* 
   Screen 1: Loading & Progress State
  */
.progress-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 15px;
}

.progress-label {
  color: #cbd5e1;
  font-weight: 400;
}

.progress-percent {
  font-size: 22px;
  font-weight: 700;
  background: linear-gradient(90deg, #9b51e0, #00f2fe);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.progress-track {
  width: 100%;
  height: 12px;
  background: rgba(20, 25, 50, 0.8);
  border-radius: var(--radius-pill);
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 32px;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #00f2fe 0%, #4facfe 50%, #9b51e0 100%);
  border-radius: var(--radius-pill);
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.6);
  transition: width 0.3s ease-out;
}

/* Steps Sequence (1-2-3-4) */
.steps-container {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
  margin-bottom: 28px;
}

.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
  flex: 1;
}

.step-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  transition: all 0.3s ease;
  background: rgba(20, 28, 55, 0.9);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  color: var(--text-muted);
}

.step-item.completed .step-circle {
  background: #00f2fe;
  border-color: #00f2fe;
  color: #050b18;
  box-shadow: 0 0 16px rgba(0, 242, 254, 0.6);
}

.step-item.active .step-circle {
  background: rgba(127, 0, 255, 0.15);
  border-color: #9b51e0;
  color: #ffffff;
  box-shadow: 0 0 16px rgba(155, 81, 224, 0.5);
  animation: pulseActive 2s infinite;
}

@keyframes pulseActive {
  0% { box-shadow: 0 0 0 0 rgba(155, 81, 224, 0.6); }
  70% { box-shadow: 0 0 0 8px rgba(155, 81, 224, 0); }
  100% { box-shadow: 0 0 0 0 rgba(155, 81, 224, 0); }
}

.step-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
  text-align: center;
}

.step-item.completed .step-label {
  color: #00f2fe;
}

.step-item.active .step-label {
  color: #e2e8f0;
}

/* Dotted step connectors */
.step-connectors {
  position: absolute;
  top: 22px;
  left: 12%;
  right: 12%;
  display: flex;
  justify-content: space-between;
  z-index: 1;
  pointer-events: none;
}

.connector-line {
  flex: 1;
  height: 2px;
  margin: 0 8px;
  background-image: linear-gradient(to right, rgba(255, 255, 255, 0.2) 40%, rgba(255, 255, 255, 0) 0%);
  background-position: bottom;
  background-size: 6px 2px;
  background-repeat: repeat-x;
}

/* Pagination Dots */
.pagination-dots {
  display: flex;
  gap: 8px;
  align-items: center;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.dot.active-cyan {
  background: #00f2fe;
  box-shadow: 0 0 8px #00f2fe;
}

.dot.active-purple {
  background: #9b51e0;
  box-shadow: 0 0 8px #9b51e0;
}

/* 
   Screen 2 & 3: Security Captcha / Slider Check
    */
.security-features {
  width: 100%;
  display: flex;
  justify-content: space-around;
  margin-bottom: 28px;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.feature-icon-box {
  width: 60px;
  height: 60px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(20, 30, 60, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.feature-icon-box.cyan {
  border-color: rgba(0, 242, 254, 0.4);
  box-shadow: inset 0 0 15px rgba(0, 242, 254, 0.15);
}

.feature-icon-box.purple {
  border-color: rgba(155, 81, 224, 0.4);
  box-shadow: inset 0 0 15px rgba(155, 81, 224, 0.15);
}

.feature-icon-box.blue {
  border-color: rgba(0, 180, 256, 0.4);
  box-shadow: inset 0 0 15px rgba(0, 180, 256, 0.15);
}

.feature-label {
  font-size: 13px;
  font-weight: 500;
}

.feature-label.cyan { color: #00f2fe; }
.feature-label.purple { color: #bb86fc; }
.feature-label.blue { color: #38bdf8; }

/* Interactive Slider Box */
.slider-container {
  width: 100%;
  position: relative;
  margin-bottom: 16px;
}

.slider-track {
  width: 100%;
  height: 56px;
  background: rgba(15, 22, 45, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  touch-action: none;
}

.slider-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0%;
  background: var(--gradient-btn);
  border-radius: var(--radius-pill);
  transition: width 0.05s ease-out;
}

.slider-text {
  font-size: 15px;
  color: #cbd5e1;
  font-weight: 500;
  z-index: 2;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.slider-handle {
  position: absolute;
  left: 4px;
  top: 4px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00f2fe 0%, #7f00ff 100%);
  box-shadow: 0 0 16px rgba(0, 242, 254, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  cursor: grab;
  z-index: 3;
  transition: transform 0.05s ease, box-shadow 0.2s ease;
}

.slider-handle:active {
  cursor: grabbing;
  box-shadow: 0 0 24px rgba(0, 242, 254, 0.8);
}

.slider-hint {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
}

/* Verification Success Verified Bar State */
.verified-bar {
  width: 100%;
  height: 56px;
  background: var(--gradient-btn);
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px 0 24px;
  box-shadow: 0 0 20px rgba(0, 210, 255, 0.4);
}

.verified-text {
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
}

.verified-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #38ef7d;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #050d1a;
  box-shadow: 0 0 10px rgba(56, 239, 125, 0.8);
}

/* 
   Screen 4: Verification Complete State
   */
.complete-card {
  text-align: center;
  padding: 40px 24px;
}

.glow-line {
  width: 140px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #00f2fe, #9b51e0, transparent);
  box-shadow: 0 0 10px #00f2fe;
  margin: 16px auto 32px auto;
}

.btn-cta {
  width: 100%;
  height: 56px;
  background: var(--gradient-btn);
  border-radius: var(--radius-pill);
  border: none;
  color: #ffffff;
  font-size: 17px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 210, 255, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  margin-bottom: 24px;
}

.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 210, 255, 0.5);
}

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

/* Entering state: "正在进入官网 •••" while the next website opens */
.btn-cta .btn-dots {
  display: none;
  align-items: center;
  gap: 4px;
}

.btn-cta .btn-dots i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  animation: btnDotPulse 1s ease-in-out infinite;
}

.btn-cta .btn-dots i:nth-child(2) { animation-delay: 0.15s; }
.btn-cta .btn-dots i:nth-child(3) { animation-delay: 0.3s; }

.btn-cta.is-entering {
  cursor: default;
  transform: none;
  opacity: 0.9;
}

.btn-cta.is-entering .btn-arrow { display: none; }
.btn-cta.is-entering .btn-dots { display: inline-flex; }

@keyframes btnDotPulse {
  0%, 80%, 100% { opacity: 0.3; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-2px); }
}

.footer-badges {
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

/* 
   Screen 5: Select a Route
   */
#screen-routes {
  height: 100%;
  max-height: 100vh;
  overflow: hidden;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

#screen-routes.active {
  display: flex;
}

.route-screen-container {
  width: 100%;
  max-width: 420px;
  height: 100%;
  max-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
  padding: 16px 0 8px 0;
  overflow: hidden;
}

.route-header {
  flex-shrink: 0;
  text-align: center;
  margin-bottom: 12px;
}

.welcome-tag {
  font-size: 15px;
  color: #cbd5e1;
  font-weight: 400;
  margin-bottom: 4px;
}

.route-title {
  font-size: 26px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 6px;
}

.route-subtitle {
  font-size: 13px;
  color: #94a3b8;
}

/* App Header Card (Fixed) */
.app-info-card {
  flex-shrink: 0;
  width: 100%;
  background: rgba(18, 24, 48, 0.65);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(135, 120, 255, 0.25);
  border-radius: 18px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.app-icon {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(168, 85, 247, 0.55));
}

.app-name {
  font-size: 17px;
  font-weight: 600;
  color: #ffffff;
}

/* Scrollable Container ONLY for Route Cards */
.routes-scroll-container {
  flex: 1;
  width: 100%;
  min-height: 0; /* Allows container to shrink and enable vertical scroll */
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding-right: 4px;
  margin-bottom: 8px;
}

/* Route Grid */
.routes-grid {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 24px;
  box-sizing: border-box;
}

.route-card {
  background: rgba(18, 24, 48, 0.65);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(135, 120, 255, 0.25);
  border-radius: 18px;
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  position: relative;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  overflow: hidden;
}

.route-card:hover, .route-card:active {
  transform: translateY(-2px);
  border-color: #00f2fe;
  box-shadow: 0 8px 24px rgba(0, 242, 254, 0.25);
}

.route-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
  gap: 4px;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.route-info-group {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
  overflow: hidden;
}

.route-name {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.route-domain-text {
  font-size: 10px;
  color: #94a3b8;
  font-weight: 400;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.tag-badge {
  padding: 2px 6px;
  border-radius: var(--radius-pill);
  font-size: 10px;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 0.2px;
  flex-shrink: 0;
  white-space: nowrap;
  max-width: max-content;
}

.tag-badge.hot {
  background: linear-gradient(135deg, #ff5e36 0%, #ff2a6d 100%);
  box-shadow: 0 2px 8px rgba(255, 94, 54, 0.4);
}

.tag-badge.recommended {
  background: linear-gradient(135deg, #7000ff 0%, #9b51e0 100%);
  box-shadow: 0 2px 8px rgba(112, 0, 255, 0.4);
}

.tag-badge.available {
  background: linear-gradient(135deg, #00d2ff 0%, #3a7bd5 100%);
  box-shadow: 0 2px 8px rgba(0, 210, 255, 0.4);
}

.route-card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  width: 100%;
  min-width: 0;
  margin-top: auto;
}

.latency-value {
  font-size: 15px;
  font-weight: 700;
  color: #00f2fe;
  white-space: nowrap;
}

/* Signal Strength Bars */
.signal-icon {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 16px;
  flex-shrink: 0;
}

.signal-bar {
  width: 4px;
  background: #00f2fe;
  border-radius: 2px;
  box-shadow: 0 0 6px rgba(0, 242, 254, 0.5);
}

.signal-bar:nth-child(1) { height: 6px; }
.signal-bar:nth-child(2) { height: 10px; }
.signal-bar:nth-child(3) { height: 14px; }
.signal-bar:nth-child(4) { height: 18px; }

.route-footer-hint {
  flex-shrink: 0;
  font-size: 13px;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0.8;
  margin-top: auto;
  padding-top: 4px;
}

.route-footer-hint::before, .route-footer-hint::after {
  content: '';
  width: 40px;
  height: 1px;
  background: rgba(255, 255, 255, 0.15);
}

/* Modal Popup Confirmation */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(4, 7, 20, 0.85);
  backdrop-filter: blur(10px);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
  animation: fadeIn 0.2s ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-box {
  background: rgba(18, 24, 48, 0.95);
  border: 1px solid rgba(0, 242, 254, 0.3);
  box-shadow: 0 10px 40px rgba(0, 242, 254, 0.3);
  border-radius: 24px;
  padding: 28px 24px;
  width: 100%;
  max-width: 340px;
  text-align: center;
}

.modal-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(0, 242, 254, 0.15);
  border: 1px solid #00f2fe;
  color: #00f2fe;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px auto;
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.4);
}

.modal-title {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}

.modal-desc {
  font-size: 14px;
  color: #94a3b8;
  margin-bottom: 24px;
}

/* Language Switcher Floating Header Widget */
.lang-switcher {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(15, 22, 45, 0.85);
  border: 1px solid rgba(135, 120, 255, 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-pill);
  padding: 4px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5), 0 0 10px rgba(0, 242, 254, 0.15);
}

.lang-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.lang-btn:hover {
  color: #ffffff;
}

.lang-btn.active {
  background: var(--gradient-btn);
  color: #ffffff;
  box-shadow: 0 0 8px rgba(0, 242, 254, 0.5);
}

.no-routes-notice {
  grid-column: 1 / -1;
  width: 100%;
  padding: 24px 16px;
  text-align: center;
  color: #94a3b8;
  font-size: 14px;
  background: rgba(18, 24, 48, 0.65);
  border: 1px dashed rgba(135, 120, 255, 0.3);
  border-radius: 16px;
  backdrop-filter: blur(12px);
}

/* Mobile Responsiveness for small screens (< 420px) */
@media (max-width: 420px) {
  .app-viewport {
    padding: 48px 8px 24px 8px;
  }
  .routes-grid {
    gap: 8px;
  }
  .route-card {
    padding: 10px 8px;
    border-radius: 14px;
  }
  .route-card-top {
    margin-bottom: 8px;
    gap: 2px;
  }
  .route-name {
    font-size: 13px;
  }
  .route-domain-text {
    font-size: 9px;
  }
  .tag-badge {
    font-size: 9px;
    padding: 1px 4px;
  }
  .latency-value {
    font-size: 14px;
  }
}

/* ==========================================================================
   Page 1: Game Lobby / Landing Entry Page Styles
   ========================================================================== */

#screen-landing {
  width: 100%;
  height: 100%;
  height: 100dvh;
  position: relative;
  z-index: 10;
  display: none;
  justify-content: center;
  align-items: center;
  overflow: hidden !important;
  background: #060810;
  cursor: pointer !important;
}

#screen-landing.active {
  display: flex;
}

.landing-viewport-frame {
  width: 100%;
  height: 100%;
  height: 100dvh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden !important;
  position: relative;
  background: #060810;
  cursor: pointer !important;
}

/* --------------------------------------------------------------------------
   Mobile View: Edge-to-Edge Full Screen Fit (Zero Space Left/Right/Top/Bottom)
   -------------------------------------------------------------------------- */
.landing-mobile-view {
  position: relative;
  width: 100vw;
  width: 100%;
  height: 100dvh;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden !important;
  margin: 0;
  padding: 0;
  background: #060810;
  cursor: pointer !important;
}

.landing-container-mobile {
  position: relative;
  width: 100vw;
  width: 100%;
  height: 100%;
  height: 100dvh;
  margin: 0;
  padding: 0;
  overflow: hidden !important;
  background: #060810;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer !important;
}

.landing-container-mobile .landing-bg-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: fill;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
  image-rendering: auto;
  image-rendering: -webkit-optimize-contrast;
  cursor: pointer !important;
}

/* Interactive Hotspot Buttons (Shared by Mobile and PC) - Completely Invisible Overlay */
.landing-cta-btn {
  position: absolute;
  border: none !important;
  background: transparent !important;
  background-color: transparent !important;
  cursor: pointer;
  outline: none !important;
  -webkit-tap-highlight-color: transparent !important;
  border-radius: 9999px;
  z-index: 25;
  box-shadow: none !important;
  transform: none !important;
  user-select: none;
}

.landing-cta-btn:hover,
.landing-cta-btn:focus,
.landing-cta-btn:active {
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  outline: none !important;
  transform: none !important;
}

/* 1. Hero Primary CTA Button (立即进入游戏 >) */
.hero-cta-btn {
  top: 26.7%;
  left: 29.2%;
  width: 41.6%;
  height: 4.6%;
}

/* 2. Bottom Primary CTA Button (立即参与免费赛) */
.bottom-cta-btn {
  top: 90.4%;
  left: 31.0%;
  width: 38.0%;
  height: 4.4%;
}

/* --------------------------------------------------------------------------
   PC Desktop View: Crisp One-Page Full Height Fit (Zero Scroll, Pure Luxury)
   -------------------------------------------------------------------------- */
.landing-pc-view {
  display: none;
}

@media (min-width: 768px) {
  html, body.landing-mode {
    width: 100% !important;
    height: 100% !important;
    height: 100dvh !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body.landing-mode .app-viewport {
    width: 100% !important;
    height: 100% !important;
    height: 100dvh !important;
    overflow: hidden !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    background: #060810 !important;
  }

  body.landing-mode #screen-landing {
    width: 100% !important;
    height: 100% !important;
    height: 100dvh !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    background: #060810 !important;
  }

  body.landing-mode .landing-viewport-frame {
    width: 100% !important;
    height: 100% !important;
    height: 100dvh !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    background: #060810 !important;
  }

  .landing-mobile-view {
    display: none !important;
  }

  .landing-pc-view {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
    height: 100dvh !important;
    overflow: hidden !important;
    background: #060810 !important;
    cursor: pointer !important;
  }

  .landing-pc-scroll-area {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
    height: 100dvh !important;
    overflow: hidden !important;
    padding: 0 !important;
    margin: 0 !important;
    background: #060810 !important;
    cursor: pointer !important;
  }

  .landing-pc-container {
    position: relative !important;
    height: 100% !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    max-height: 100% !important;
    width: min(100vw, calc(100dvh * (920 / 2048))) !important;
    aspect-ratio: 920 / 2048 !important;
    max-width: 100vw !important;
    margin: 0 auto !important;
    overflow: hidden !important;
    background: #060810 !important;
    border-radius: 0 !important;
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.9) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    cursor: pointer !important;
  }

  .landing-pc-img {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    object-fit: contain !important;
    user-select: none !important;
    -webkit-user-drag: none !important;
    pointer-events: none !important;
    image-rendering: auto;
    image-rendering: -webkit-optimize-contrast;
    cursor: pointer !important;
  }
}






