html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

body.immersive-page {
  margin: 0;
  min-height: 100vh;
  overflow: hidden;
  background: #07111f;
}

.immersive-container,
.immersive-container main {
  width: 100%;
  min-height: 100vh;
  padding: 0 !important;
}

.sky-home {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 520px;
  overflow: hidden;
  color: #f8fbff;
  background: #07111f;
}

.sky-scene,
.sky-scene canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.sky-scene {
  position: absolute;
  inset: 0;
}

.sky-title {
  position: absolute;
  top: clamp(24px, 6vh, 64px);
  left: clamp(20px, 6vw, 72px);
  z-index: 2;
  max-width: min(520px, calc(100vw - 40px));
  pointer-events: none;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .34);
}

.sky-kicker {
  margin: 0 0 .35rem;
  font-size: clamp(.82rem, 1.4vw, .95rem);
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(248, 251, 255, .78);
}

.sky-title h1 {
  margin: 0;
  font-size: clamp(3rem, 9vw, 7.2rem);
  line-height: .9;
  font-weight: 800;
  letter-spacing: 0;
}

.time-panel {
  position: absolute;
  right: clamp(14px, 4vw, 42px);
  bottom: clamp(16px, 4vh, 38px);
  z-index: 3;
  width: min(380px, calc(100vw - 28px));
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 8px;
  color: #f8fbff;
  background: rgba(6, 18, 33, .64);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .28);
  backdrop-filter: blur(16px);
}

.test-toggle,
.time-control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.test-toggle {
  margin-bottom: 14px;
  font-weight: 700;
}

.test-toggle input {
  width: 1.15rem;
  height: 1.15rem;
  accent-color: #f6c445;
}

.time-control {
  margin-bottom: 8px;
  color: rgba(248, 251, 255, .86);
  font-size: .95rem;
}

.time-control output {
  min-width: 54px;
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: #ffffff;
}

.time-panel input[type="range"] {
  width: 100%;
  accent-color: #f6c445;
}

.time-panel input[type="range"]:disabled {
  cursor: not-allowed;
  opacity: .52;
}

.time-panel:focus-within {
  box-shadow: 0 0 0 .2rem rgba(246, 196, 69, .34), 0 18px 50px rgba(0, 0, 0, .28);
}

@media (max-width: 640px) {
  .sky-home {
    min-height: 560px;
  }

  .sky-title {
    top: 22px;
    left: 18px;
  }

  .time-panel {
    left: 14px;
    right: 14px;
    bottom: 14px;
    width: auto;
  }
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}
