#boot-splash {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 28px;
  box-sizing: border-box;
  overflow-y: auto;
  color: var(--panel-text, #edeae1);
  background: #0c1216;
  text-align: center;
  font-family: "DM Sans", sans-serif;
}
#boot-splash .boot-card {
  width: min(780px, 100%);
  box-sizing: border-box;
  margin-block: auto;
  padding: 24px 24px 20px;
  border: 1px solid var(--panel-border, #405158);
  border-radius: 16px;
  background: var(--panel-base, #10191e);
  box-shadow: 0 24px 70px #0006;
}
#boot-splash p {
  margin: 0;
}
.boot-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  color: var(--panel-gold, #d6b777);
  font:
    26px/1 Georgia,
    serif;
  margin-bottom: 12px;
}
.boot-ornament span {
  width: 80px;
  height: 1px;
  background: var(--panel-border, #405158);
}
.boot-ornament span:last-child {
  transform: rotate(180deg);
}
#boot-splash .boot-eyebrow {
  color: var(--panel-muted, #adbdc4);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.26em;
}
#boot-splash h1 {
  margin: 4px 0 3px;
  font:
    500 clamp(38px, 6vw, 60px)/1.1 "Fraunces",
    Georgia,
    serif;
  letter-spacing: -0.025em;
  text-shadow: none;
}
#boot-splash .boot-subtitle {
  color: var(--panel-muted, #adbdc4);
  font-size: 13px;
}
.boot-art {
  position: relative;
  margin-top: 20px;
  overflow: hidden;
  border: 1px solid var(--panel-border, #405158);
  border-radius: 8px;
  background: #0a1015;
}
#boot-splash .boot-art img {
  display: block;
  width: 100%;
  max-height: min(43dvh, max(140px, calc(100dvh - 440px)));
  object-fit: cover;
  object-position: center top;
}
.boot-art-caption {
  position: absolute;
  inset: auto 0 0;
  padding: 44px 15px 17px;
  background: linear-gradient(transparent, #080e16ed);
}
.boot-art-caption span {
  font-size: 9px;
  letter-spacing: 0.25em;
  color: var(--panel-gold, #d6b777);
}
#boot-splash .boot-art-caption p {
  margin-top: 4px;
  font:
    21px Georgia,
    serif;
}
.boot-footer {
  padding: 18px 12px 0;
}
.boot-loading-line {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}
#boot-status {
  font-size: 13px;
  color: var(--panel-text, #edeae1);
}
.boot-spark {
  color: var(--panel-gold, #d6b777);
  font-size: 21px;
}
.boot-loading-track {
  height: 3px;
  max-width: 270px;
  margin: 10px auto 14px;
  overflow: hidden;
  background: var(--panel-raised, #1a272d);
  border-radius: 4px;
}
.boot-loading-track span {
  display: block;
  height: 100%;
  width: 45%;
  background: var(--panel-gold, #d6b777);
  animation: boot-glimmer 2.4s ease-in-out infinite;
}
#boot-splash .boot-hint {
  font-size: 11px;
  line-height: 1.5;
  color: var(--panel-muted, #adbdc4);
}
#boot-retry {
  display: inline-block;
  margin-top: 14px;
  padding: 12px 22px;
  color: var(--panel-gold, #d6b777);
  border: 1px solid var(--panel-border, #405158);
  border-radius: 6px;
  background: var(--panel-raised, #1a272d);
  text-decoration: none;
}
#boot-retry[hidden] {
  display: none;
}
#boot-low-quality {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  max-width: 100%;
  min-height: 48px;
  margin: 16px auto 0;
  padding: 11px 16px;
  border: 1px solid var(--panel-border, #405158);
  border-radius: 6px;
  background: var(--panel-raised, #1a272d);
  box-shadow: none;
  color: var(--panel-text, #edeae1);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
#boot-low-quality strong,
#boot-low-quality small {
  display: block;
}
#boot-low-quality strong {
  font:
    600 14px/1.4 "DM Sans",
    sans-serif;
}
#boot-low-quality small {
  margin-top: 3px;
  color: var(--panel-muted, #adbdc4);
  font-size: 11px;
  line-height: 1.4;
}
#boot-low-quality .boot-quality-icon {
  font-size: 24px;
}
#boot-low-quality .boot-quality-arrow {
  font-size: 19px;
  color: var(--panel-gold, #d6b777);
}
#boot-low-quality:hover,
#boot-retry:hover {
  border-color: var(--panel-gold, #d6b777);
  background: #263840;
}
#boot-low-quality:focus-visible,
#boot-retry:focus-visible {
  outline: 2px solid var(--panel-gold, #d6b777);
  outline-offset: 4px;
}
#boot-low-quality[hidden] {
  display: none;
}
#boot-splash[data-error] .boot-loading-track,
#boot-splash[data-error] .boot-hint {
  display: none;
}
@keyframes boot-glimmer {
  from {
    transform: translateX(-110%);
  }
  to {
    transform: translateX(330%);
  }
}
@media (max-width: 540px) {
  #boot-splash {
    padding: 18px;
  }
  #boot-splash .boot-card {
    padding: 20px 12px 18px;
  }
  .boot-art {
    margin-top: 16px;
  }
  #boot-splash .boot-art img {
    height: 34dvh;
    object-position: center;
  }
  .boot-footer {
    padding: 14px 4px 0;
  }
  .boot-art-caption {
    padding-bottom: 14px;
  }
  #boot-splash .boot-art-caption p {
    font-size: 18px;
  }
}
@media (max-height: 520px) and (min-width: 600px) {
  #boot-splash .boot-card {
    max-width: 660px;
    padding: 12px;
  }
  .boot-ornament,
  .boot-subtitle,
  .boot-hint {
    display: none;
  }
  #boot-splash h1 {
    font-size: 36px;
  }
  .boot-art {
    margin-top: 10px;
  }
  #boot-splash .boot-art img {
    max-height: 40dvh;
  }
  .boot-footer {
    padding-top: 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .boot-loading-track span {
    animation: none;
    width: 100%;
  }
}
