/* Public pages (download, link, portal, results) in the dashboard's "Neon" look. See DESIGN.md. */
@font-face { font-family: "Saira"; font-style: italic; font-weight: 100 900; font-stretch: 50% 125%; font-display: swap; src: url("fonts/saira-italic.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("fonts/inter.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 100 800; font-display: swap; src: url("fonts/jetbrains-mono.woff2") format("woff2"); }
:root {
  --text: #f2f3f5; --muted: #8f939d; --line: rgba(255, 255, 255, 0.07);
  --red: #ff2a3d; --red-hi: #ff5566; --red-text: #ff6b7a; --glow: rgba(255, 42, 61, 0.55); --tube: rgba(255, 60, 75, 0.65);
  --ok: #2bf0a0; --bad: #ff5c7a; --focus: #ffd0d5;
  --chrome-text: linear-gradient(180deg, #fff 0%, #c9ccd3 45%, #7d828c 52%, #e8eaee 100%);
  --wide: "Saira", "Inter", system-ui, sans-serif; --mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { background: radial-gradient(ellipse 70% 50% at 70% 10%, rgba(255, 30, 50, 0.12), transparent 60%), radial-gradient(ellipse 60% 60% at 0% 100%, rgba(255, 30, 50, 0.07), transparent 60%), repeating-linear-gradient(45deg, #070707 0 2px, #0b0b0b 2px 4px), #000;
  background-attachment: fixed; }
body { margin: 0; min-height: 100vh; display: grid; place-items: center; padding: 30px 16px 26vh; color: var(--text); font: 15px/1.55 "Inter", "Segoe UI", system-ui, sans-serif; position: relative; overflow-x: hidden; }
body::after { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, 0.75)); }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
a { color: var(--red-text); text-underline-offset: 3px; }
.card { width: 100%; max-width: 560px; padding: 32px 32px 28px; border-radius: 22px; border: 1px solid var(--tube); animation: rise 0.35s ease-out both;
  background: linear-gradient(180deg, rgba(20, 6, 9, 0.96), rgba(6, 3, 4, 0.98)); box-shadow: 0 0 0 1px rgba(255, 42, 61, 0.15), 0 0 28px rgba(255, 42, 61, 0.32), inset 0 0 24px rgba(255, 42, 61, 0.1); }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
.brand { display: block; width: 260px; max-width: 75%; height: auto; margin: 0 0 18px; filter: drop-shadow(0 0 14px rgba(255, 42, 61, 0.55)); }
/* the neon streak under the logo */
.brand + h1::before { content: ""; display: block; height: 2px; width: 100%; margin-bottom: 18px; background: linear-gradient(90deg, transparent, var(--red) 20%, #ffb3bb 45%, var(--red) 60%, transparent); box-shadow: 0 0 14px var(--red), 0 0 30px var(--glow); }
h1 { margin: 0 0 14px; font: italic 800 expanded clamp(20px, 4.6vw, 26px)/1.3 var(--wide); letter-spacing: 0.02em; text-transform: uppercase; text-wrap: balance; background: var(--chrome-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
h1:has(.icon) { display: flex; align-items: center; gap: 12px; }
h1 .icon { width: 26px; height: 26px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ok h1, .error h1 { color: var(--text); background: none; }
.ok h1 .icon { color: var(--ok); filter: drop-shadow(0 0 8px rgba(43, 240, 160, 0.6)); }
.error h1 .icon { color: var(--bad); filter: drop-shadow(0 0 8px rgba(255, 92, 122, 0.55)); }
.ver { display: inline-block; vertical-align: middle; padding: 3px 9px; border-radius: 99px; border: 1px solid rgba(255, 60, 75, 0.5); font: 500 12px var(--mono); letter-spacing: 0.06em; text-transform: none; color: var(--red-text); -webkit-text-fill-color: var(--red-text); }
p { margin: 0 0 12px; }
.muted { color: var(--muted); font-size: 13px; }
code { font-family: var(--mono); font-size: 13px; }
.hash { font-size: 11px; color: var(--muted); }
dl { margin: 22px 0 8px; }
dl > div { display: grid; grid-template-columns: 104px 1fr; gap: 12px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); }
dl > div:last-child { border-bottom: 0; }
dt { color: var(--muted); font: 500 13px/1.4 "Inter", system-ui, sans-serif; }
dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.meter { display: flex; align-items: center; gap: 12px; }
.leds { display: flex; gap: 3px; flex: 1; max-width: 230px; }
.leds i { flex: 1; height: 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.07); }
.leds i.on { background: linear-gradient(90deg, #7a0a16, var(--red)); box-shadow: 0 0 8px var(--red); }
.meter b { font: 600 12px var(--mono); letter-spacing: 0.06em; white-space: nowrap; }
.btn { appearance: none; display: flex; align-items: center; justify-content: center; width: 100%; min-height: 54px; margin: 8px 0 4px; padding: 14px 26px; border: 1px solid #ff5566; border-radius: 16px; cursor: pointer; text-decoration: none;
  background: linear-gradient(180deg, #e11d35, #b80d24); color: #fff; font: italic 800 expanded 15px/1 var(--wide); letter-spacing: 0.1em; text-transform: uppercase;
  box-shadow: 0 0 26px rgba(255, 42, 61, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.25); transition: background 0.15s, box-shadow 0.15s; }
.btn:hover { background: linear-gradient(180deg, #e11d35, #c8102a); box-shadow: 0 0 36px rgba(255, 42, 61, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.3); }
.install { margin-top: 10px; padding: 14px 16px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, 0.08); background: rgba(0, 0, 0, 0.35); }
.install p:last-child { margin-bottom: 0; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
@media (max-width: 480px) { .card { padding: 26px 20px 22px; } dl > div { grid-template-columns: 1fr; gap: 4px; } }

/* Motion. Everything here switches off under reduced motion. */
@property --beam { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.embers { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.floor { position: fixed; left: 0; right: 0; top: 74vh; bottom: 0; z-index: -1; perspective: 380px; overflow: hidden; pointer-events: none; }
.floor::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; z-index: 1; background: linear-gradient(90deg, transparent, rgba(255, 42, 61, 0.8) 25%, #ffc2c9 50%, rgba(255, 42, 61, 0.8) 75%, transparent); box-shadow: 0 0 30px 4px rgba(255, 42, 61, 0.45); }
.floor .plane { position: absolute; left: -60%; right: -60%; top: 0; height: 200%; transform: rotateX(72deg); transform-origin: top; -webkit-mask-image: linear-gradient(#000, transparent 60%); mask-image: linear-gradient(#000, transparent 60%); }
.floor .grid { position: absolute; inset: -80px 0 0; background: linear-gradient(rgba(255, 42, 61, 0.3) 1px, transparent 1px) 0 0 / 80px 80px, linear-gradient(90deg, rgba(255, 42, 61, 0.3) 1px, transparent 1px) 0 0 / 80px 80px; animation: road 2.2s linear infinite; }
@keyframes road { to { transform: translateY(80px); } }

.card { position: relative; animation: power-on 1s ease-out both; }
@keyframes power-on {
  0% { opacity: 0; transform: translateY(14px) scale(0.98); border-color: transparent; box-shadow: none; }
  30% { opacity: 1; transform: none; border-color: var(--tube); box-shadow: 0 0 40px rgba(255, 42, 61, 0.6); }
  38% { border-color: rgba(255, 60, 75, 0.15); box-shadow: none; }
  46% { border-color: var(--tube); box-shadow: 0 0 40px rgba(255, 42, 61, 0.6); }
  56% { border-color: rgba(255, 60, 75, 0.3); }
  100% { border-color: var(--tube); }
}
/* the light beam running round the card's border */
.card::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: conic-gradient(from var(--beam), transparent 0 72%, rgba(255, 85, 102, 0.5) 82%, #ffd0d5 88%, #ff2a3d 92%, transparent 97%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  filter: drop-shadow(0 0 6px #ff2a3d); animation: beam 5s 1s linear infinite both; }
@keyframes beam { from { --beam: 0deg; } to { --beam: 360deg; } }
.brand + h1::before { transform-origin: left; animation: streak 0.9s 0.35s cubic-bezier(0.22, 1, 0.36, 1) both; }
@keyframes streak { from { transform: scaleX(0); opacity: 0; } }
h1 { background: linear-gradient(100deg, transparent 42%, rgba(255, 255, 255, 0.95) 50%, transparent 58%) no-repeat, var(--chrome-text); background-size: 250% 100%, 100% 100%;
  -webkit-background-clip: text; background-clip: text; animation: shine 1.8s 0.5s ease-out both; }
@keyframes shine { from { background-position: 130% 0, 0 0; } to { background-position: -60% 0, 0 0; } }
.ok h1, .error h1 { animation: rise 0.5s 0.3s ease-out both; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
/* result icons draw themselves */
h1 .icon path { stroke-dasharray: 80; stroke-dashoffset: 80; animation: draw 0.9s 0.55s ease-out forwards; }
h1 .icon path + path { animation-delay: 0.95s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
/* content slides in after the card lights up */
.card > p, .card > form, .card > dl > div, .card > .install, .card > .btn { animation: rise 0.5s ease-out both; }
.card > p { animation-delay: 0.55s; }
.card > form, .card > .btn { animation-delay: 0.65s; }
.card > dl > div:nth-child(1) { animation-delay: 0.75s; }
.card > dl > div:nth-child(2) { animation-delay: 0.83s; }
.card > dl > div:nth-child(3) { animation-delay: 0.91s; }
.card > dl > div:nth-child(4) { animation-delay: 0.99s; }
.card > .install { animation-delay: 1.07s; }
/* meters light up one segment at a time */
.leds i.on { animation: lamp 0.35s ease-out both; }
.leds i:nth-child(1) { animation-delay: 1.0s; } .leds i:nth-child(2) { animation-delay: 1.06s; } .leds i:nth-child(3) { animation-delay: 1.12s; }
.leds i:nth-child(4) { animation-delay: 1.18s; } .leds i:nth-child(5) { animation-delay: 1.24s; } .leds i:nth-child(6) { animation-delay: 1.3s; }
.leds i:nth-child(7) { animation-delay: 1.36s; } .leds i:nth-child(8) { animation-delay: 1.42s; } .leds i:nth-child(9) { animation-delay: 1.48s; }
.leds i:nth-child(10) { animation-delay: 1.54s; } .leds i:nth-child(11) { animation-delay: 1.6s; } .leds i:nth-child(12) { animation-delay: 1.66s; }
@keyframes lamp { from { background: rgba(255, 255, 255, 0.07); box-shadow: none; } 60% { background: #fff; box-shadow: 0 0 14px #ff5566; } }
/* the download button: a shimmer passes across it; busy shows moving stripes; done turns green */
.btn { position: relative; overflow: hidden; }
.btn::before { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.45), transparent); transform: skewX(-20deg); animation: sweep 3.6s 1.6s ease-in-out 2; }
@keyframes sweep { 0% { left: -60%; } 40%, 100% { left: 130%; } }
.btn span { position: relative; }
.btn.busy { background: repeating-linear-gradient(-45deg, #e11d35 0 14px, #b80d24 14px 28px); background-size: 40px 40px; animation: stripes 0.6s linear infinite; }
.btn.busy::before, .btn.done::before { display: none; }
@keyframes stripes { to { background-position: 40px 0; } }
.btn.done { background: linear-gradient(180deg, #2bf0a0, #17b97a); border-color: #6fffc8; color: #04150d; box-shadow: 0 0 26px rgba(43, 240, 160, 0.5); }
.btn[aria-disabled="true"] { cursor: progress; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  h1 .icon path { stroke-dashoffset: 0; }
  .card::after, .btn::before { display: none; }
}
/* result pages: the title is a flex row (icon + text), so the light streak needs its own full-width line */
.brand + h1:has(.icon) { flex-wrap: wrap; }
.brand + h1:has(.icon)::before { flex: 0 0 100%; }

/* Member portal */
.portal .card { max-width: 860px; }
.portal-login .card { text-align: center; }
.portal-login .brand { margin-left: auto; margin-right: auto; }
.btn.discord { background: linear-gradient(180deg, #6b77f5, #5865f2); border-color: #8a94ff; color: #fff; box-shadow: 0 0 26px rgba(88, 101, 242, 0.55); }
.btn.discord:hover { background: linear-gradient(180deg, #7d88ff, #6370f5); }
.who { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; padding: 12px 14px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, 0.08); background: rgba(0, 0, 0, 0.35); }
.who .avatar { width: 40px; height: 40px; border-radius: 50%; box-shadow: 0 0 0 2px var(--red), 0 0 12px var(--glow); }
.who .hello { font: 500 12px "Inter", system-ui, sans-serif; color: var(--muted); }
.who form { margin-left: auto; }
.who > a.btn { margin-left: auto; }
.who > a.btn + form { margin-left: 8px; }
.btn.small { width: auto; min-height: 42px; margin: 0; padding: 10px 18px; font-size: 13px; border-radius: 12px; white-space: nowrap; }
.btn.ghost { background: rgba(0, 0, 0, 0.45); border-color: rgba(255, 255, 255, 0.16); color: var(--text); box-shadow: none; }
.btn.ghost:hover { border-color: var(--tube); box-shadow: 0 0 16px rgba(255, 42, 61, 0.3); background: rgba(0, 0, 0, 0.45); }
.btn.ghost::before { display: none; }
.status, .notice { margin: 0 0 16px; padding: 11px 14px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.1); background: rgba(0, 0, 0, 0.35); }
.status.ok { border-color: rgba(43, 240, 160, 0.4); }
.status.warn, .notice.error { border-color: rgba(255, 181, 71, 0.45); }
.status.bad { border-color: rgba(255, 92, 122, 0.5); color: #ffb3c0; }
.notice.ok { border-color: rgba(43, 240, 160, 0.4); }
.section { margin: 22px 0 10px; font: 600 13px "Inter", system-ui, sans-serif; color: var(--muted); }
.mods { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.mod { display: flex; align-items: center; gap: 16px; padding: 14px 16px; border-radius: 14px; border: 1px solid rgba(255, 60, 75, 0.4); background: rgba(0, 0, 0, 0.35); transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s; animation: rise 0.45s ease-out both; }
.mod:hover { border-color: var(--tube); box-shadow: 0 0 18px rgba(255, 42, 61, 0.3); transform: translateY(-1px); }
.mod .mod-main { flex: 1; min-width: 0; }
.mod h2 { margin: 0 0 4px; font: italic 800 expanded 15px/1.3 var(--wide); letter-spacing: 0.02em; text-transform: uppercase; }
.mod p { margin: 0; }
.mod form { margin: 0; }
.mod.locked { border-color: rgba(255, 255, 255, 0.08); }
.mod.locked h2 { color: #c5c8cf; }
.mod.locked:hover { box-shadow: none; transform: none; }
.mod .why { margin-top: 6px; font-size: 13px; color: #ffcf8a; }
.mod .lock { width: 22px; height: 22px; flex: none; fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mod .soon { font: 500 13px "Inter", system-ui, sans-serif; color: var(--muted); white-space: nowrap; }
.mods .mod:nth-child(2) { animation-delay: 0.05s; } .mods .mod:nth-child(3) { animation-delay: 0.1s; } .mods .mod:nth-child(4) { animation-delay: 0.15s; } .mods .mod:nth-child(n+5) { animation-delay: 0.2s; }
.fine { margin-top: 20px; }
@media (max-width: 560px) { .mod { flex-wrap: wrap; } .mod form, .mod form .btn, .mod .soon { width: 100%; } }
