:root {
  --orange: #e36b1e;
  --paper: #d8d2c8;
  --ink: #11110f;
  --void: #050506;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--void);
  color: var(--paper);
  font-family: "Univers", "Helvetica Neue", Helvetica, Arial, sans-serif;
  letter-spacing: 0.04em;
}

#gl {
  display: block;
  width: 100%;
  height: 100%;
  cursor: none;
}

#boot {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse at 50% 40%, #1a120c 0%, #050506 70%);
  z-index: 5;
}

.boot-inner { text-align: center; width: min(520px, 88vw); }

.aperture { margin-bottom: 22px; opacity: 0.95; }

.boot-kicker {
  font-size: 11px;
  letter-spacing: 0.42em;
  color: var(--orange);
  margin-bottom: 10px;
}

h1 {
  font-weight: 500;
  font-size: 22px;
  letter-spacing: 0.08em;
  color: var(--paper);
  margin-bottom: 18px;
}

.boot-map {
  display: inline-block;
  border: 1px solid var(--orange);
  color: var(--orange);
  padding: 6px 14px;
  font-size: 13px;
  letter-spacing: 0.28em;
  margin-bottom: 28px;
}

#boot-status {
  font-size: 12px;
  color: #8a847c;
  margin-bottom: 10px;
  min-height: 1.2em;
}

.bar {
  height: 3px;
  background: #222;
  overflow: hidden;
}
#bar-fill {
  height: 100%;
  width: 0%;
  background: var(--orange);
  transition: width 0.15s linear;
}

#hud { pointer-events: none; }

.crosshair {
  position: fixed;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translate(-50%, -50%);
}
.ch {
  position: absolute;
  background: rgba(255,255,255,0.85);
}
.ch-n, .ch-s { left: 8px; width: 2px; height: 5px; }
.ch-n { top: 0; }
.ch-s { bottom: 0; }
.ch-e, .ch-w { top: 8px; height: 2px; width: 5px; }
.ch-e { right: 0; }
.ch-w { left: 0; }

#hint {
  position: fixed;
  left: 0; right: 0; bottom: 18px;
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: rgba(216,210,200,0.55);
  text-transform: uppercase;
}

#debug {
  position: fixed;
  left: 14px;
  top: 12px;
  font: 11px/1.45 ui-monospace, "SF Mono", Menlo, monospace;
  color: rgba(216,210,200,0.7);
  text-shadow: 0 1px 2px #000;
  letter-spacing: 0;
}

#boot.gone { display: none; }

#credits {
  position: fixed;
  inset: 0;
  z-index: 4;
  display: grid;
  grid-template-columns: minmax(220px, 1.1fr) minmax(180px, 0.7fr) minmax(280px, 1.1fr);
  gap: 24px;
  padding: 88px 48px 48px;
  background: #000;
  color: #ffb600;
  font-family: "Courier New", Courier, "Lucida Console", monospace;
  letter-spacing: 0.02em;
  overflow: hidden;
}
#credits[hidden] { display: none; }
#credits-lyrics,
#credits-names,
#credits-art {
  margin: 0;
  white-space: pre;
  font-size: 15px;
  line-height: 1.35;
  text-shadow: none;
}
#credits-art {
  font-size: 11px;
  line-height: 1.15;
  opacity: 0.95;
}
#hud #debug { z-index: 6; }
