:root {
  --bg: #02040a;
  --surface: #0a1220;
  --surface-alt: #101a2c;
  --border: rgba(127, 148, 191, 0.2);
  --text: #eaf0ff;
  --muted: #9eb0d1;
  --accent: #19b7ff;
  --accent-soft: rgba(25, 183, 255, 0.2);
  --success: #66d6ff;
}

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

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  font-family: "Inter", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
}

body {
  overflow: hidden;
  background:
    radial-gradient(1200px 600px at 15% -10%, rgba(34, 117, 255, 0.2), transparent 60%),
    radial-gradient(900px 500px at 88% 110%, rgba(0, 177, 255, 0.16), transparent 62%),
    linear-gradient(165deg, #02040a 0%, #060b16 50%, #050911 100%);
}

.bg-glow {
  position: fixed;
  width: 44rem;
  height: 44rem;
  border-radius: 50%;
  filter: blur(110px);
  pointer-events: none;
  z-index: 0;
}

.bg-glow-left {
  background: rgba(34, 156, 255, 0.14);
  left: -12rem;
  top: -14rem;
}

.bg-glow-right {
  background: rgba(0, 195, 255, 0.12);
  right: -14rem;
  bottom: -15rem;
}

.bg-noise {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.08;
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.55) 0.55px, transparent 0.55px);
  background-size: 2.5px 2.5px;
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.2;
  background-image:
    linear-gradient(rgba(97, 141, 221, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(97, 141, 221, 0.16) 1px, transparent 1px);
  background-size: 54px 54px;
  -webkit-mask-image: radial-gradient(circle at center, black 35%, transparent 82%);
  mask-image: radial-gradient(circle at center, black 35%, transparent 82%);
}

@supports not ((-webkit-mask-image: radial-gradient(black, transparent)) or (mask-image: radial-gradient(black, transparent))) {
  .bg-grid {
    -webkit-mask-image: none;
    mask-image: none;
  }
}

.screen {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.panel {
  background: linear-gradient(180deg, var(--surface), var(--surface-alt));
  border: 1px solid var(--border);
  border-radius: 16px;
  backdrop-filter: blur(5px);
}

.panel-brand {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  backdrop-filter: none;
  pointer-events: none;
}

.brand-content {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 44rem;
  max-width: calc(100% - 2.2rem);
  min-width: 0;
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 0.85rem;
  padding: 2.4rem 2.2rem;
  background: linear-gradient(180deg, rgba(10, 18, 32, 0.72), rgba(16, 26, 44, 0.56));
  border: 1px solid rgba(114, 156, 223, 0.26);
  border-radius: 20px;
  box-shadow:
    0 24px 64px rgba(1, 5, 16, 0.65),
    inset 0 1px 0 rgba(192, 220, 255, 0.06);
  pointer-events: auto;
}

.logo {
  width: 180px;
  max-width: 36vw;
  min-width: 96px;
  filter: drop-shadow(0 8px 44px rgba(24, 183, 255, 0.42));
}

.eyebrow {
  margin: 0.7rem 0 0;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.76rem;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 4.3vw, 3.5rem);
  line-height: 1;
}

.subtitle {
  margin: 0.3rem 0 1rem;
  color: var(--muted);
  max-width: 36ch;
}

.loading {
  margin-top: 1.1rem;
  width: 100%;
  max-width: 32rem;
  background: rgba(5, 10, 18, 0.66);
  border: 1px solid rgba(111, 157, 232, 0.28);
  border-radius: 12px;
  padding: 0.95rem;
  box-shadow: inset 0 1px 0 rgba(201, 224, 255, 0.05);
}

.loading-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #d7e4ff;
  font-weight: 600;
  margin-bottom: 0.62rem;
  gap: 1rem;
  min-height: 1.35rem;
}

.loading-head #loading-status {
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: left;
}

.loading-head #loading-percent {
  flex: 0 0 auto;
  width: 3.5rem;
  text-align: right;
}

.progress-rail {
  width: 100%;
  height: 9px;
  border-radius: 999px;
  background: rgba(123, 146, 191, 0.22);
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #1499dd, #32c5f8 55%, #73e1ff);
  box-shadow: 0 0 30px rgba(47, 193, 255, 0.65);
  transition: width 0.38s ease;
}

@media (max-width: 1024px) {
  .screen {
    overflow: hidden;
    height: 100%;
  }

  body {
    overflow: hidden;
  }

  .panel-brand {
    position: absolute;
    inset: 0;
  }

  .brand-content {
    width: 44rem;
    max-width: calc(100% - 1.4rem);
    min-width: 0;
    padding: 1.8rem 1.2rem;
  }
}
