/* First-paint loader (index.html #boot, animated by /boot.js, driven by src/ui/Loader.tsx).
   Outside the JS bundle so it shows before any app script loads. Geometry matches boot.js: the three strata sit
   at 50% ± min(7vh, 46px), spanning min(72vw, 880px). */
.boot {
  --gap: min(7vh, 46px);
  --half-span: min(36vw, 440px);
  position: fixed;
  inset: 0;
  z-index: 100;
  background: #0a0908;
  color: #f1ece3;
  font-family: 'Inter Tight', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.15s, visibility 0.9s 0.15s;
}

.boot.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.boot canvas {
  position: absolute;
  inset: 0;
}

.boot-mark,
.boot-tag,
.boot-text,
.boot-choices {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  white-space: nowrap;
  text-align: center;
}

.boot-mark {
  top: calc(50% - var(--gap) * 2 - 92px);
  font-family: 'Playfair Display', 'Iowan Old Style', Georgia, serif;
  font-size: clamp(38px, 5vw, 56px);
  line-height: 1;
  letter-spacing: -0.01em;
}

.boot-mark span {
  color: #e9a866;
}

.boot-tag {
  top: calc(50% - var(--gap) * 2 - 30px);
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 15px;
  color: #7d776d;
}

/* far / mid / near, at the right end of each stratum */
.boot-layers {
  position: absolute;
  left: calc(50% + var(--half-span) + 16px);
  top: 50%;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: 'DM Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #4a463f;
}

.boot-layers li {
  position: absolute;
  transform: translateY(-50%);
}

.boot-layers li:nth-child(1) {
  top: calc(var(--gap) * -1);
}

.boot-layers li:nth-child(3) {
  top: var(--gap);
  color: #7d776d;
}

.boot-text {
  top: calc(50% + var(--gap) * 2 + 18px);
  min-height: 1.4em;
  font-family: 'DM Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #7d776d;
  font-variant-numeric: tabular-nums;
  transition: opacity 0.4s;
}

.boot-choices {
  top: calc(50% + var(--gap) * 2 + 8px);
  display: flex;
  gap: 10px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.boot.is-choosing .boot-choices {
  opacity: 1;
  pointer-events: auto;
}

.boot.is-choosing .boot-text {
  opacity: 0;
}

.boot-choices button {
  padding: 10px 18px;
  border-radius: 999px;
  font: inherit;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 15px;
  color: #b9b2a6;
  background: rgba(22, 20, 18, 0.62);
  border: 1px solid rgba(241, 236, 227, 0.1);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.boot-choices button[data-sound='on'] {
  color: #f1ece3;
  border-color: rgba(233, 168, 102, 0.45);
}

.boot-choices button:hover,
.boot-choices button:focus-visible {
  color: #f1ece3;
  border-color: #e9a866;
  outline: none;
}

.boot-legal {
  position: absolute;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  display: flex;
  gap: 14px;
  font-family: 'DM Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.boot-legal a {
  color: #7d776d;
  text-decoration: none;
}

.boot-legal a:hover,
.boot-legal a:focus-visible {
  color: #f1ece3;
}

@media (max-width: 560px) {
  .boot-layers {
    display: none;
  }
  .boot-choices {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (prefers-reduced-motion: reduce) {
  .boot,
  .boot-choices,
  .boot-text {
    transition: none;
  }
}
