/* App-update modals (forced + optional). Self-contained, matching the Cave Rush
   neon palette used by settings.css. Sits above everything else so the forced
   variant truly blocks the screen. */

.app-update-overlay {
  position: fixed;
  inset: 0;
  z-index: 10100; /* above the settings overlay (10001) */
  display: grid;
  place-items: center;
  padding: max(20px, env(safe-area-inset-top)) 20px
    max(20px, env(safe-area-inset-bottom));
  background: rgba(3, 6, 18, 0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.app-update-modal {
  width: min(420px, calc(100vw - 32px));
  border-radius: 22px;
  padding: 26px 22px;
  text-align: center;
  border: 1px solid rgba(120, 225, 255, 0.28);
  background:
    linear-gradient(150deg, rgba(42, 197, 255, 0.1), transparent 42%),
    rgba(7, 13, 30, 0.96);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 24px 60px rgba(0, 0, 0, 0.55),
    0 0 28px rgba(42, 246, 255, 0.18);
}

.app-update-title {
  margin: 0 0 12px;
  color: var(--cr-white, #fff);
  font-size: clamp(1.3rem, 5vw, 1.7rem);
  letter-spacing: -0.02em;
}

.app-update-message {
  margin: 0 0 22px;
  color: rgba(239, 249, 255, 0.78);
  font-size: 0.98rem;
  line-height: 1.5;
}

.app-update-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.app-update-btn {
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid rgba(120, 225, 255, 0.3);
  background: rgba(255, 255, 255, 0.05);
  color: var(--cr-white, #fff);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background 140ms ease, border-color 140ms ease, transform 80ms ease;
}

.app-update-btn:hover,
.app-update-btn:focus-visible {
  background: rgba(42, 246, 255, 0.12);
  border-color: rgba(42, 246, 255, 0.55);
  outline: none;
}

.app-update-btn:active {
  transform: translateY(1px);
}

.app-update-btn--primary {
  background: linear-gradient(135deg, #41efff 0%, #815cff 52%, #f044d9 100%);
  border-color: transparent;
  color: #06030f;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.app-update-btn--primary:hover,
.app-update-btn--primary:focus-visible {
  filter: brightness(1.06);
  border-color: transparent;
}
