:root {
  color-scheme: dark;
  font: 16px/1.5 "Segoe UI Variable", "Segoe UI", system-ui, sans-serif;
  color: #f7efff;
  background: #100d18;
  --surface: #1d172a;
  --panel: #241a35;
  --border: #553b70;
  --muted: #cdc0df;
  --accent: #d7afff;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  min-width: 290px;
  min-height: 100dvh;
  margin: 0;
  padding: 0 clamp(16px, 5vw, 64px) 48px;
  background: radial-gradient(ellipse at 29% 14%, #3b2458 0, transparent 63%), #100d18;
}
h1, h2, p { margin: 0; }
h1, h2 { font-family: "Bahnschrift", "Segoe UI", sans-serif; line-height: 1.12; }
h1 { font-size: clamp(2.35rem, 5.3vw, 4rem); letter-spacing: -.055em; }
h2 { font-size: 1.35rem; letter-spacing: -.025em; }
p { color: var(--muted); }
.topbar {
  max-width: 1100px; min-height: 82px; margin: auto; display: flex; justify-content: space-between;
  align-items: center; padding-inline: 5px; border-bottom: 1px solid #624b785e;
}
.wordmark { width: clamp(106px, 18vw, 143px); height: auto; filter: drop-shadow(0 0 12px #9f54ff77); }
.realm { display: flex; align-items: center; gap: 9px; color: var(--muted); font-weight: 650; }
.realm i, .badge::before { width: 7px; height: 7px; background: #bf91ff; }
main { max-width: 1000px; margin: clamp(26px, 10vh, 108px) auto 0; }
.gateway, .roster {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  box-shadow: 0 26px 56px #08051094, inset 0 1px #e4afff18;
}
.gateway { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); overflow: hidden; }
.art {
  min-height: 350px; position: relative; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(ellipse at 49% 49%, #6f4097, #33235b 62%, #1a152c);
  border-right: 1px solid var(--border); isolation: isolate;
}
.art::before, .art::after { content: ""; position: absolute; z-index: -1; }
.art::before { inset: 9% 12%; border: 1px solid #cf90ff66; box-shadow: 0 0 0 8px #27194250; }
.art::after { width: 57%; height: 15%; bottom: 12%; background: #160c2a94; filter: blur(13px); }
.grid {
  position: absolute; inset: 0; z-index: -1; opacity: .48;
  background: repeating-linear-gradient(90deg, transparent 0 30px, #d2a9fa54 30px 31px),
              repeating-linear-gradient(0deg, transparent 0 30px, #d2a9fa54 30px 31px);
  mask-image: radial-gradient(ellipse, #000, transparent 77%);
}
.art img { width: min(81%, 292px); height: auto; filter: drop-shadow(0 15px 25px #0f0527a6); }
.login-content { padding: clamp(25px, 5vw, 53px); align-self: center; }
.login-content > p { margin-top: 12px; max-width: 34ch; }
form, #challenge { display: grid; gap: 9px; margin-top: 27px; }
label { font-size: .92rem; font-weight: 700; }
input, button { min-height: 46px; border: 1px solid #775992; border-radius: 6px; font: inherit; }
input { width: 100%; min-width: 0; padding: 9px 12px; background: #120f1c; color: #faf4ff; }
input::placeholder { color: #ab9abf; }
button { font-weight: 750; padding: 8px 14px; cursor: pointer; color: #27133f; background: var(--accent); box-shadow: inset 0 -3px #a676d0; }
button:hover:enabled { background: #e8cfff; }
button:disabled { opacity: .65; cursor: wait; }
:focus-visible { outline: 2px solid #f1c8ff; outline-offset: 3px; }
form button { display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.step-heading { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
#time-left { color: #efcfff; font: 700 .88rem Consolas, monospace; }
#login-command { font-family: Consolas, monospace; font-size: .84rem; }
#challenge p { font-size: .9rem; }
.text-button { justify-self: start; padding-inline: 0; min-height: 32px; }
.text-button, .text-button:hover:enabled { background: transparent; border: 0; box-shadow: none; color: var(--accent); }
.text-button:hover:enabled { text-decoration: underline; }
.feedback { margin-top: 12px; color: #f2cfff; }
.feedback:empty { display: none; }
.dashboard { max-width: 780px; margin-inline: auto; }
.dashboard-header, .roster-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.dashboard-header { margin-bottom: 24px; }
.dashboard-header p { display: flex; gap: 6px 12px; flex-wrap: wrap; margin-top: 10px; }
.dashboard-header p strong { color: #f2e5ff; }
.secondary { background: var(--panel); color: #f0ddff; box-shadow: none; }
.secondary:hover:enabled { background: #39284e; }
.roster { padding: clamp(18px, 4vw, 32px); }
.roster-heading { margin-bottom: 18px; }
#member-count { margin-top: 3px; font-size: .92rem; }
.badge {
  display: inline-flex; align-items: center; gap: 7px; padding: 4px 8px; border: 1px solid #806635;
  border-radius: 5px; color: #ffdda0; background: #32271b; font-size: .82rem; white-space: nowrap;
}
.badge::before { content: ""; background: #ffcc78; }
.badge.online { border-color: #46725d; color: #b7f5d6; background: #183229; }
.badge.online::before { background: #8aebb5; }
ul { list-style: none; margin: 0; padding: 0; }
li { display: flex; justify-content: space-between; align-items: center; gap: 16px; border-top: 1px solid #513963; padding: 11px 1px; overflow-wrap: anywhere; }
li strong { font-family: Consolas, monospace; }
li span { color: var(--muted); text-align: right; }
@media (max-width: 660px) {
  .topbar { min-height: 66px; }
  .gateway { grid-template-columns: 1fr; }
  .art { min-height: 138px; height: 31vw; max-height: 195px; border-right: none; border-bottom: 1px solid var(--border); }
  .art img { width: auto; height: 96%; }
  .art::before { inset: 12% 9%; }
  form, #challenge { margin-top: 20px; }
  .dashboard-header { align-items: flex-start; }
  .dashboard-header h1 { font-size: clamp(1.7rem, 8vw, 2.45rem); }
}
