:root {
  --accent: #00ff41;
  --panel: rgba(10, 12, 16, 0.96);
  --border: #1d2530;
  --muted: #9aa0a6;
  --text: #e8eaed;
  --font: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --upd-blue: #0078d7;
  --upd-blue-11: #005a9e;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: #06080a;
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  overflow-x: hidden;
}

.site-header { border-bottom: 1px solid var(--border); padding: 14px 6vw; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.logo a { color: var(--accent); text-decoration: none; font-weight: 700; letter-spacing: 0.06em; }
.nav-links { display: flex; gap: 18px; flex-wrap: wrap; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 0.9rem; }
.nav-links a:hover { color: var(--accent); }

.stage { max-width: 1100px; margin: 0 auto; padding: 28px 6vw 0; }
.stage h1 { font-size: clamp(1.4rem, 3.2vw, 2rem); color: var(--accent); margin-bottom: 8px; }
.lede { color: var(--muted); margin-bottom: 22px; max-width: 70ch; }

.controls { border: 1px solid var(--border); border-radius: 10px; background: var(--panel); padding: 18px 20px; margin-bottom: 18px; }
.control-row { display: flex; gap: 18px; flex-wrap: wrap; align-items: flex-end; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 160px; flex: 1 1 180px; }
.field label { font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.field select, .field input[type="number"] {
  background: #0c0f14; border: 1px solid var(--border); color: var(--text);
  font-family: var(--font); font-size: 0.9rem; padding: 9px 10px; border-radius: 6px; width: 100%;
}
.field select:focus, .field input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.field.check { flex-direction: row; align-items: center; gap: 8px; flex: 0 0 auto; }
.field.check label { text-transform: none; letter-spacing: 0; font-size: 0.85rem; color: var(--text); }
.field.check input { accent-color: var(--accent); width: 16px; height: 16px; }

.btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.btn {
  font-family: var(--font); font-size: 0.9rem; letter-spacing: 0.04em;
  padding: 11px 22px; border-radius: 6px; border: 1px solid var(--accent);
  background: transparent; color: var(--accent); cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease; text-decoration: none; display: inline-block;
}
.btn:hover { background: var(--accent); color: #04060a; }
.btn.primary { background: var(--accent); color: #04060a; font-weight: 700; }
.btn.primary:hover { filter: brightness(1.15); }

.hint { color: var(--muted); font-size: 0.82rem; margin-top: 12px; }
.hint kbd { background: #0c0f14; border: 1px solid var(--border); border-bottom-width: 2px; border-radius: 4px; padding: 1px 6px; font-size: 0.8em; color: var(--text); }

/* ---------- The update screen ---------- */
.update-screen {
  position: fixed; inset: 0; z-index: 9999; display: none;
  flex-direction: column; align-items: center; justify-content: center;
  background: var(--upd-blue); color: #fff;
  font-family: 'Segoe UI', 'Selawik', Tahoma, Geneva, Verdana, sans-serif;
  cursor: none; user-select: none; text-align: center; padding: 6vh 8vw;
}
.update-screen.active { display: flex; }
.update-screen.win11 { background: var(--upd-blue-11); }
.update-screen.black { background: #000; }

.spinner {
  width: clamp(52px, 6.5vw, 82px);
  height: clamp(52px, 6.5vw, 82px);
  margin-bottom: 5vh;
  position: relative;
}

/* Six dots chasing a circle — the Windows boot spinner */
.spinner span {
  position: absolute; top: 0; left: 50%;
  width: 100%; height: 100%; margin-left: -50%;
  animation: orbit 2.4s linear infinite;
}
.spinner span::before {
  content: ''; position: absolute; top: 0; left: 50%;
  width: 12%; height: 12%; margin-left: -6%;
  background: #fff; border-radius: 50%;
}
.spinner span:nth-child(1) { animation-delay: -0.00s; }
.spinner span:nth-child(2) { animation-delay: -0.12s; }
.spinner span:nth-child(3) { animation-delay: -0.24s; }
.spinner span:nth-child(4) { animation-delay: -0.36s; }
.spinner span:nth-child(5) { animation-delay: -0.48s; }
.spinner span:nth-child(6) { animation-delay: -0.60s; }

@keyframes orbit { to { transform: rotate(360deg); } }

.upd-headline {
  font-size: clamp(1.15rem, 2.9vw, 2.05rem);
  font-weight: 400; line-height: 1.4; max-width: 26ch; margin-bottom: 2.4vh;
}
.upd-sub { font-size: clamp(0.95rem, 1.9vw, 1.35rem); opacity: 0.92; margin-bottom: 1.6vh; }
.upd-warn { font-size: clamp(0.85rem, 1.6vw, 1.1rem); opacity: 0.78; }

.exit-hint {
  position: fixed; bottom: 14px; left: 0; right: 0; text-align: center;
  font-size: 0.78rem; opacity: 0.3; font-family: var(--font);
  transition: opacity 0.4s ease;
}
.update-screen.hide-hint .exit-hint { opacity: 0; }

/* ---------- Reference content ---------- */
.tool-info { max-width: 1100px; margin: 40px auto 90px; padding: 0 6vw; color: var(--muted); }
.tool-info h2 { color: var(--accent); font-size: 1.25rem; margin: 32px 0 12px; }
.tool-info h3 { color: var(--text); font-size: 1.02rem; margin: 22px 0 8px; }
.tool-info p, .tool-info li { margin-bottom: 12px; }
.tool-info ul, .tool-info ol { margin: 0 0 16px 22px; }
.tool-info strong { color: var(--text); }
.tool-info a { color: var(--accent); }
.tool-info code { background: #0c0f14; border: 1px solid var(--border); border-radius: 4px; padding: 1px 6px; color: var(--accent); font-size: 0.88em; }

.callout { border: 1px solid var(--accent); border-radius: 8px; background: #0a0e13; padding: 14px 18px; margin: 8px 0 22px; }
.callout p { margin-bottom: 0; }

.site-footer { border-top: 1px solid var(--border); padding: 16px 10px; text-align: center; font-size: 0.85rem; background: rgba(10, 12, 16, 0.95); }
.site-footer .links { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; margin-bottom: 6px; }
.site-footer a { color: var(--accent); text-decoration: none; }
.site-footer .copy { color: var(--muted); font-size: 0.75rem; }

@media (prefers-reduced-motion: reduce) {
  .spinner span { animation-duration: 8s; }
  html { scroll-behavior: auto; }
}
