/*
 * The boot screens of the two top rank ups (ui/rank-boot.js). Each covers
 * the whole results panel, then lifts. The specs are
 * docs/mockups/rank-up-64-bit.html and docs/mockups/rank-up-overclocked.html.
 */
.rank-boot {
  position: absolute;
  inset: 0;
  z-index: 4;
  padding: var(--space-6) var(--space-6);
  overflow: hidden;
  background: #07080b;
  border-radius: inherit;
  color: #a87443;
  font: var(--text-sm) / 1.85 var(--font-mono);
  white-space: pre;
  opacity: 0;
}

/* Faint scanlines, as on an old monitor. */
.rank-boot::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(to bottom, transparent 0 2px, rgb(0 0 0 / 0.35) 2px 3px);
}

.rank-boot b {
  font-weight: 700;
}

.rank-boot__cur::after {
  content: '_';
  animation: rank-moment-blink 1s steps(1) infinite;
}

.rank-boot.is-red {
  background: #0a0607;
  color: #9a5a52;
}

/* The setup screen. */
.rank-boot.is-bios {
  display: flex;
  flex-direction: column;
  justify-content: center;
  white-space: normal;
}

.rank-boot__bar {
  background: #ff3b3b;
  color: #0a0607;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.2em;
}

.rank-boot__menu {
  display: flex;
  gap: var(--space-6);
  padding: 0 var(--space-2);
}

.rank-boot__menu .is-on {
  padding-inline: var(--space-2);
  background: #ffd0d0;
  color: #0a0607;
}

.rank-boot__rule {
  margin: var(--space-1) 0;
  border-top: 1px solid #5a3a3a;
}

.rank-boot__row {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
  padding: 0 var(--space-2);
  white-space: pre;
}

.rank-boot__row b {
  color: #ffd0d0;
}

.rank-boot__row.is-on {
  background: rgb(255 59 59 / 0.22);
  color: #ffd0d0;
}

.rank-boot__keys {
  padding: 0 var(--space-2);
  color: #6a4a4a;
}

.rank-boot__keys.is-on {
  color: #ffd0d0;
}

.rank-boot__ask {
  position: absolute;
  left: 50%;
  top: 58%;
  padding: var(--space-3) var(--space-5);
  background: #0a0607;
  border: 1px solid #ff3b3b;
  box-shadow: 0 0 24px -8px #ff3b3b;
  color: #ffd0d0;
  text-align: center;
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  :root:not([data-motion='full']) .rank-boot__cur::after {
    animation: none;
  }
}

:root[data-motion='reduced'] .rank-boot__cur::after {
  animation: none;
}

/* Phones: smaller type and less padding, still with no scroll. */
:root:is([data-phone='true'], [data-tight='true']) .rank-boot {
  padding: var(--space-4) var(--space-3);
  font-size: 0.66rem;
}

:root:is([data-phone='true'], [data-tight='true']) .rank-boot__menu {
  gap: var(--space-3);
}
