/*
SPDX-FileCopyrightText: 2026 Jake Wehmeier (BTSpaniel) <https://github.com/BTSpaniel>

SPDX-License-Identifier: LicenseRef-ParticleRealms-Alpha
*/

:root {
  color-scheme: dark;
  --ink: #eaf8fc;
  --muted: #8da5b1;
  --line: rgba(112, 220, 255, 0.2);
  --accent: #70dfff;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  background: #020711;
  color: var(--ink);
}

* { box-sizing: border-box; }
html, body { min-height: 100%; margin: 0; }
body {
  background:
    radial-gradient(circle at 50% 22%, rgba(76, 190, 255, 0.12), transparent 38%),
    linear-gradient(rgba(99, 213, 255, 0.025) 1px, transparent 1px) 0 0 / 42px 42px,
    #020711;
}

main { width: min(1320px, calc(100% - 32px)); margin: 0 auto; padding: 28px 0 34px; }
header { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 18px; }
header p { margin: 0 0 7px; color: var(--accent); font: 750 10px/1 ui-monospace, monospace; letter-spacing: 0.14em; }
h1 { margin: 0; font-size: clamp(31px, 5vw, 67px); line-height: 0.95; letter-spacing: -0.055em; }
header span { display: block; margin-top: 10px; color: var(--muted); font-size: 13px; }
nav { display: flex; flex-wrap: wrap; justify-content: end; gap: 8px; }
a { color: var(--accent); text-decoration: none; }
nav a, aside a { min-height: 40px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 7px; font: 700 9px/1.5 ui-monospace, monospace; letter-spacing: 0.07em; }
nav a:hover, aside a:hover { border-color: rgba(112, 223, 255, 0.55); background: rgba(112, 223, 255, 0.06); }

.starter-stage { position: relative; min-height: min(68vh, 720px); overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: #01050d; box-shadow: 0 28px 90px rgba(0, 0, 0, 0.48); }
.starter-stage__bar { position: absolute; z-index: 4; inset: 0 0 auto; display: flex; min-height: 46px; align-items: center; justify-content: space-between; padding: 0 15px; border-bottom: 1px solid var(--line); background: rgba(3, 10, 20, 0.9); backdrop-filter: blur(14px); font: 730 8px/1 ui-monospace, monospace; letter-spacing: 0.1em; }
.starter-stage__bar div { display: flex; align-items: center; gap: 8px; }
.starter-stage__bar i { width: 6px; height: 6px; border-radius: 50%; background: #73efb8; box-shadow: 0 0 10px #73efb8; }
#starter-status { color: #73efb8; }
#starter-canvas { position: absolute; inset: 46px 0 58px; display: block; width: 100%; height: calc(100% - 104px); }
.starter-stage dl { position: absolute; z-index: 4; inset: auto 0 0; display: grid; grid-template-columns: repeat(4, 1fr); min-height: 58px; margin: 0; border-top: 1px solid var(--line); background: rgba(3, 9, 18, 0.92); }
.starter-stage dl div { display: grid; place-content: center; gap: 5px; padding: 8px; text-align: center; border-right: 1px solid var(--line); }
.starter-stage dl div:last-child { border-right: 0; }
dt { color: #54707d; font: 700 7px/1 ui-monospace, monospace; letter-spacing: 0.12em; }
dd { margin: 0; font: 760 13px/1 ui-monospace, monospace; }
.starter-diagnostic { position: absolute; z-index: 5; inset: 46px 0 58px; display: grid; place-content: center; padding: 28px; background: #05080d; color: #ffc47f; text-align: center; font: 650 12px/1.7 ui-monospace, monospace; }
.starter-diagnostic[hidden] { display: none; }
aside { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 12px 14px; border: 1px solid rgba(112, 220, 255, 0.12); border-radius: 9px; color: var(--muted); background: rgba(4, 11, 21, 0.75); }
aside strong { flex: 0 0 auto; color: var(--ink); font-size: 12px; }
aside p { flex: 1; margin: 0; font-size: 11px; line-height: 1.55; }
aside a { flex: 0 0 auto; }

@media (max-width: 760px) {
  main { width: min(100% - 20px, 1320px); padding-top: 18px; }
  header { align-items: start; flex-direction: column; }
  nav { justify-content: start; }
  .starter-stage { min-height: 62vh; }
  .starter-stage dl { grid-template-columns: repeat(2, 1fr); }
  .starter-stage dl div:nth-child(2) { border-right: 0; }
  #starter-canvas, .starter-diagnostic { bottom: 116px; height: calc(100% - 162px); }
  aside { align-items: stretch; flex-direction: column; }
  aside a { text-align: center; }
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; } }
