:root {
  color-scheme: dark;
  font-family:
    Lexend, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  background: #351a84;
  color: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  background: #351a84;
}

.loading-screen {
  position: relative;
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: 100vh;
  overflow: hidden;
  background: #351a84;
  color: #ffffff;
}

.loading-screen__arcs {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  user-select: none;
}

.loading-screen__center {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: min(720px, calc(100% - 32px));
  min-height: 0;
  margin: 0 auto;
  padding: 32px 0;
  text-align: center;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 8px;
  font-size: clamp(2rem, 7vw, 3.75rem);
  font-weight: 500;
  line-height: 1.05;
}

.eyebrow {
  margin: 16px 0 8px;
  color: #dcff7d;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.message {
  min-height: 32px;
  margin: 0 0 20px;
  color: #ffffff;
  font-size: clamp(1.25rem, 4vw, 1.5rem);
  font-weight: 500;
  line-height: 1.2;
}

.loading-spinner {
  width: 180px;
  height: 180px;
  user-select: none;
}

.availability-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(100%, 480px);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 28px;
  padding: clamp(18px, 4vw, 28px);
  background: rgba(53, 26, 132, 0.56);
  box-shadow: 0 24px 90px rgba(22, 7, 64, 0.34);
  backdrop-filter: blur(18px);
  text-align: center;
}

.status-pill {
  display: inline-flex;
  min-width: 92px;
  justify-content: center;
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-idle {
  color: #ffffff;
}

.status-starting {
  color: #dcff7d;
}

.status-ready {
  color: #dcff7d;
}

.status-error {
  color: #ff8a8a;
}

.status-copy {
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.95rem;
  line-height: 1.5;
}

.step-in-button {
  min-width: 148px;
  margin-top: 22px;
  border: 0;
  border-radius: 999px;
  padding: 13px 24px;
  background: #dcff7d;
  color: #351a84;
  cursor: pointer;
  font: inherit;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24);
}

.step-in-button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.step-in-button:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 4px;
}

.loading-footer {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 0 16px max(16px, env(safe-area-inset-bottom, 0px));
  color: #ffffff;
  text-align: center;
  pointer-events: none;
  user-select: none;
}

.loading-footer__logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 40px;
}

.loading-footer__logo {
  display: block;
  width: auto;
  height: 36px;
  image-rendering: -webkit-optimize-contrast;
}

.loading-footer__logo--citiverses {
  height: 32px;
}

.loading-footer__logo--eu {
  height: 36px;
}

.loading-footer__disclaimer {
  width: 100%;
  max-width: 358px;
  margin: 0;
  color: #ffffff;
  font-family: "Schibsted Grotesk", Inter, system-ui, sans-serif;
  font-size: 7px;
  font-weight: 400;
  line-height: 1.4;
}

@media (max-width: 720px) {
  .loading-screen__center {
    justify-content: flex-start;
    padding-top: 40px;
  }
}

@media (max-height: 720px) {
  .loading-screen__center {
    padding: 20px 0;
  }

  .loading-spinner {
    width: 120px;
    height: 120px;
  }

  .eyebrow {
    margin-top: 10px;
  }
}
