:root {
  --bg: #0a0a0f;
  --panel: #0e0e14;
  --inset: rgba(0, 0, 0, .38);
  --line: rgba(255, 255, 255, .1);
  --text: #f1f1f4;
  --muted: #a7a8b4;
  /* the sodium-orange of the city lights and the red of the Escalade on the cover */
  --accent: #ff9a1f;
  --accent-2: #e8411c;
  --good: #5fd38d;
  --bad: #ff6b5e;
  --radius: 14px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font: 16px/1.55 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* the key art behind everything, cropped below its own logo (img/background.webp, from assets/background.jpg) so it
   does not compete with ours; it fades into the page at the top. A fixed layer rather than
   background-attachment: fixed, which phones ignore */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: url(img/background.webp) center bottom / cover no-repeat var(--bg);
  filter: brightness(.75);
}
.backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--bg) 0%, rgba(10, 10, 15, .85) 18%, rgba(10, 10, 15, .25) 48%, rgba(10, 10, 15, .5) 100%);
}

main {
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(24px, 5vh, 56px) 18px 40px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

header { text-align: center; margin-bottom: 8px; }
h1 { margin: 0; }
h1 img {
  display: block;
  width: min(100%, 560px);
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 6px 24px rgba(0, 0, 0, .8));
}
.tagline {
  display: inline-block;
  margin: 12px 0 16px;
  padding: 6px 18px 6px calc(18px + .1em);
  border-radius: 50px;
  background: #000;
  font-size: .95rem;
  font-weight: 800;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--accent);
}
.version { color: var(--muted); letter-spacing: .1em; }
.lead {
  margin: 0 auto;
  max-width: 640px;
  color: #dcdce3;
  text-wrap: balance;
  text-shadow: 0 1px 10px #000;
}

.step {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  overflow: hidden;
}
/* a thin streak of tail-light along the top of each panel */
.step::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-2) 20%, var(--accent) 50%, transparent 85%);
  opacity: .8;
}
h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  font-size: 1.15rem;
  font-weight: 800;
}
.num {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 50%;
  font-size: .95rem;
  color: #1a0d00;
  background: var(--accent);
}

.buttons { display: flex; flex-wrap: wrap; gap: 10px; }
button, .button {
  display: inline-block;
  font: inherit;
  font-weight: 700;
  padding: .6em 1.2em;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .08);
  color: var(--text);
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
button:not(:disabled):hover, .button:hover { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .3); }
.button:first-child, button.primary {
  color: #1a0d00;
  border-color: transparent;
  background: var(--accent);
}
.button:first-child:hover, button.primary:not(:disabled):hover { background: #ffad45; border-color: transparent; }
button:disabled { cursor: default; opacity: .4; }
button:focus-visible, .button:focus-within { outline: 2px solid #fff; outline-offset: 2px; }
input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; }

.warning {
  /* under the buttons: space above; the hint below brings its own */
  margin: 14px 0 0;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 154, 31, .55);
  background: rgba(255, 154, 31, .1);
  color: var(--text);
  font-size: .93rem;
}
.warning strong { color: var(--accent); }
.hint { margin: 12px 0 0; color: var(--muted); font-size: .93rem; }
.hint strong { color: var(--text); }
code {
  font: .88em ui-monospace, SFMono-Regular, Menlo, monospace;
  padding: 1px 6px;
  border-radius: 5px;
  background: rgba(0, 0, 0, .45);
  border: 1px solid var(--line);
  color: #fff;
}
a { color: var(--accent); font-weight: 700; text-underline-offset: 3px; }
a:hover { color: #ffbe6a; }

.status {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 10px;
  background: var(--inset);
  border: 1px solid var(--line);
}
.status.good { border-color: rgba(95, 211, 141, .6); }
.status.bad { border-color: rgba(255, 107, 94, .6); }
.status .cover { border-radius: 6px; box-shadow: 0 2px 10px #000; flex: none; }
.status-title { font-weight: 800; }
.status.good .status-title { color: var(--good); }
.status.bad .status-title { color: var(--bad); }
.status-detail { color: var(--muted); font-size: .9rem; word-break: break-word; }

.progress { margin-top: 16px; }
.bar { height: 10px; border-radius: 99px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.fill {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: var(--accent);
  transition: width .2s linear;
}
.progress-text { margin-top: 6px; color: var(--muted); font-size: .88rem; font-variant-numeric: tabular-nums; }
.log { font: 13px/1.5 ui-monospace, Menlo, monospace; color: var(--muted); margin-top: 8px; }
.log:empty { display: none; }
.log .error { color: var(--bad); }
.log .ok { color: var(--good); }

ol { margin: 0; padding-left: 22px; }
li + li { margin-top: 6px; }

footer { text-align: center; margin-top: 6px; }
.links { margin: 0 0 14px; font-size: 1.02rem; }
.links a { white-space: nowrap; }
.links span { color: var(--muted); margin: 0 8px; }
.legal {
  margin: 0;
  padding: 12px 18px;
  border-radius: var(--radius);
  background: rgba(8, 8, 12, .7);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: .78rem;
  text-wrap: pretty;
}

@media (max-width: 560px) {
  .step { padding: 18px 16px; }
  .tagline { letter-spacing: .2em; }
}

