/* ElysiumNet website. Layout: sticky top bar + one view at a time (Home, Games, Online, Link, Account).
   Look: black/red brand, HUD frames, angled buttons, animated hero grid; everything still under reduced motion. */
:root {
  color-scheme: dark;
  --bg: #08080a; --surface: #111116; --surface-2: #18181f; --line: #262630;
  --text: #f2f3f5; --muted: #a2a5ad; --faint: #6c6f79;
  --red: #ff2a3d; --red-deep: #b00d20; --red-glow: rgba(255, 42, 61, .16);
  --blue: #4aa3ff; --green: #4ade80; --gold: #f5c04a; --discord: #5865f2;
  --f-display: "Chakra Petch", "Segoe UI", system-ui, sans-serif;
  --f-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --r: 10px; --cut: 10px; --glow: 0 0 24px rgba(255, 42, 61, .35);
}
* { box-sizing: border-box; }
html, body { background: var(--bg); color: var(--text); margin: 0; }
body { font: 16px/1.55 var(--f-body); padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px);
  background-image: linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
  background-size: 48px 48px; background-attachment: fixed; }
body::after { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 30; background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .018) 0 1px, transparent 1px 3px); mix-blend-mode: overlay; }
img { max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--f-display); line-height: 1.1; margin: 0; text-wrap: balance; letter-spacing: .01em; }
.wrap { max-width: 1120px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.eyebrow { font: 600 12px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.eyebrow::before { content: "▮ "; animation: blink 1.1s steps(1) infinite; }
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }
.note { margin-top: 24px; }
.pt0 { padding-top: 0 !important; }

/* top bar */
header.top { position: sticky; top: 0; z-index: 9; background: rgba(8, 8, 10, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
header.top .wrap { display: flex; align-items: center; gap: 20px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 19px var(--f-display); letter-spacing: .02em; }
.logo { width: 34px; height: 34px; object-fit: contain; filter: drop-shadow(0 0 10px rgba(74, 163, 255, .55)); flex: none; }
.logo.big { width: 72px; height: 72px; margin: 0 auto; }
.mark { width: 28px; height: 28px; border-radius: 7px; background: linear-gradient(140deg, var(--red), var(--red-deep)); display: grid; place-items: center; font: 700 16px var(--f-display); color: #fff; box-shadow: 0 0 16px rgba(255, 42, 61, .6); }
nav.main { display: flex; gap: 4px; margin-left: 8px; }
nav.main a { text-decoration: none; color: var(--muted); padding: 8px 12px; border-radius: 8px; font-weight: 500; font-size: 15px; }
nav.main a:hover { color: var(--text); background: var(--surface); }
nav.main a[aria-current="page"] { color: var(--text); background: var(--surface-2); }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.live-pill { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex: none; animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, .45); } 50% { box-shadow: 0 0 0 6px rgba(74, 222, 128, 0); } }
.avatar-btn { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 99px; padding: 4px 14px 4px 4px; text-decoration: none; font-weight: 600; font-size: 14px; }
.av { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, #3b2a6b, #c23a5a) center / cover; display: grid; place-items: center; font: 700 13px var(--f-display); color: #fff; flex: none; overflow: hidden; }
.menu-btn { display: none; }
nav.main a, .live-pill, .top-right .btn, .avatar-btn { white-space: nowrap; }
.top-right .btn { padding: 9px 14px; font-size: 14px; --cut: 8px; }

/* buttons: angled, light sweep, glow */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 0; padding: 11px 18px; font-weight: 600; cursor: pointer; text-decoration: none; font-size: 15px; letter-spacing: .02em;
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut)); position: relative; overflow: hidden; transition: transform .2s, filter .2s, background .2s; }
.btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .28) 50%, transparent 70%); transform: translateX(-120%); transition: transform .6s; }
.btn:hover::after { transform: translateX(120%); }
.btn:hover { transform: translateY(-1px); filter: drop-shadow(0 0 10px rgba(255, 42, 61, .45)); }
.btn:disabled { opacity: .5; cursor: default; transform: none; filter: none; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-discord { background: var(--discord); color: #fff; }
.btn-discord:hover { background: #4752e0; filter: drop-shadow(0 0 10px rgba(88, 101, 242, .6)); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: #ff4757; }
.btn-ghost { background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.btn-ghost:hover { filter: drop-shadow(0 0 8px rgba(74, 163, 255, .35)); }
.sm { padding: 7px 12px; font-size: 14px; --cut: 7px; }

/* HUD frame + scan line */
.hud { position: relative; }
.hud::before { content: ""; position: absolute; inset: -1px; pointer-events: none; border-radius: inherit;
  background:
    linear-gradient(var(--red), var(--red)) top left / 18px 2px, linear-gradient(var(--red), var(--red)) top left / 2px 18px,
    linear-gradient(var(--red), var(--red)) top right / 18px 2px, linear-gradient(var(--red), var(--red)) top right / 2px 18px,
    linear-gradient(var(--red), var(--red)) bottom left / 18px 2px, linear-gradient(var(--red), var(--red)) bottom left / 2px 18px,
    linear-gradient(var(--red), var(--red)) bottom right / 18px 2px, linear-gradient(var(--red), var(--red)) bottom right / 2px 18px;
  background-repeat: no-repeat; filter: drop-shadow(0 0 6px rgba(255, 42, 61, .7)); }
.scan { overflow: hidden; }
.scan::after { content: ""; position: absolute; left: 0; right: 0; top: -30%; height: 30%; pointer-events: none; background: linear-gradient(180deg, transparent, rgba(255, 42, 61, .09), transparent); animation: scan 4.5s linear infinite; }
@keyframes scan { to { top: 130%; } }

main { padding-bottom: 64px; min-height: 60vh; }
section.band { padding-block: 64px; }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.sec-head h2 { font-size: clamp(26px, 3.4vw, 34px); }
.sec-head p { margin: 6px 0 0; color: var(--muted); }

/* hero */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); background: radial-gradient(ellipse at 70% 0%, rgba(255, 42, 61, .12), transparent 55%); }
#fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: .9; }
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; padding-block: 72px 64px; }
.hero h1 { font-size: clamp(38px, 5.6vw, 64px); margin: 14px 0 18px; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--red), #ff8a5c, var(--blue), var(--red)); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: sheen 6s linear infinite; }
@keyframes sheen { to { background-position: 300% 0; } }
.glitch { position: relative; display: inline-block; }
.glitch::before, .glitch::after { content: attr(data-text); position: absolute; inset: 0; pointer-events: none; opacity: 0; }
.glitch::before { color: var(--blue); clip-path: inset(0 0 60% 0); animation: glitch 7s steps(1) infinite; }
.glitch::after { color: var(--red); clip-path: inset(55% 0 0 0); animation: glitch 7s steps(1) infinite .12s; }
@keyframes glitch { 0%, 91%, 100% { opacity: 0; } 92% { opacity: .8; transform: translate(3px, -1px); } 93% { opacity: .6; transform: translate(-3px, 1px); } 94% { opacity: 0; } }
@keyframes blink { 50% { opacity: 0; } }
.hero .lead { font-size: 19px; color: var(--muted); max-width: 32em; margin: 0 0 28px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-note { margin: 12px 0 0; font-size: 14px; color: var(--faint); }
.hero-stats { display: flex; gap: 32px; margin-top: 36px; flex-wrap: wrap; }
.hero-stats div { display: grid; gap: 2px; border-left: 2px solid var(--red-deep); padding-left: 12px; }
.hero-stats b { font: 700 28px var(--f-display); text-shadow: 0 0 18px rgba(255, 42, 61, .35); }
.hero-stats span { font-size: 13px; color: var(--muted); }

/* now playing */
.np { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; min-width: 0; }
.np-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); font: 600 13px var(--f-display); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.np-head > span::before { content: "● "; color: var(--red); animation: blink 1.4s steps(1) infinite; }
.np-all { color: var(--muted); text-decoration: none; letter-spacing: 0; text-transform: none; font-family: var(--f-body); }
.np-row { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding: 12px 18px; border-bottom: 1px solid var(--line); transition: background .3s; }
.np-row:last-child { border-bottom: 0; }
.np-row .gt { width: 64px; height: 30px; border-radius: 4px; background: var(--surface-2) center / cover; box-shadow: 0 0 0 1px var(--line); }
.np-row b { display: block; font-weight: 600; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.np-row small { color: var(--muted); font-size: 13px; }
.np-row .cnt { font: 600 15px var(--f-display); font-variant-numeric: tabular-nums; display: flex; align-items: center; gap: 8px; }
.np-empty { padding: 28px 18px; color: var(--muted); text-align: center; }

/* ticker */
.ticker { border-bottom: 1px solid var(--line); background: rgba(17, 17, 22, .85); overflow: hidden; font: 500 13px var(--f-mono); color: var(--muted); }
.ticker-track { display: flex; gap: 48px; width: max-content; padding-block: 10px; animation: tick 60s linear infinite; }
.ticker-track span b { color: var(--text); font-weight: 600; }
.ticker-track span i { color: var(--red); font-style: normal; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes tick { to { transform: translateX(-50%); } }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: s; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; display: grid; gap: 8px; align-content: start; }
.step::before { counter-increment: s; content: counter(s); font: 700 15px var(--f-mono); color: var(--red); width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--red-deep); display: grid; place-items: center; margin-bottom: 6px; box-shadow: 0 0 14px rgba(255, 42, 61, .35); }
.step h3 { font-size: 19px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }
.step code { font: 600 13px var(--f-mono); color: var(--text); background: var(--surface-2); padding: 1px 6px; border-radius: 5px; overflow-wrap: anywhere; }
.glyph { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid currentColor; font: 700 12px var(--f-display); margin-right: 6px; vertical-align: -5px; }
.glyph.x { color: var(--blue); }
.glyph.o { color: var(--red); }

/* games */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.chip { border: 1px solid var(--line); background: var(--surface); border-radius: 99px; padding: 6px 14px; font-size: 14px; cursor: pointer; color: var(--muted); }
.chip[aria-pressed="true"] { color: var(--text); border-color: var(--red); background: var(--red-glow); }
.search { flex: 1 1 220px; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 9px; padding: 9px 14px; font-size: 15px; }
.games { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.game { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; min-width: 0; transition: transform .25s, border-color .25s, box-shadow .25s; }
.game:hover { transform: translateY(-4px); border-color: rgba(255, 42, 61, .55); box-shadow: 0 10px 30px rgba(0, 0, 0, .5), var(--glow); }
.cover { aspect-ratio: 460 / 215; max-width: 100%; position: relative; overflow: hidden; background: var(--surface-2) center / cover; filter: saturate(.92) brightness(.92); transition: filter .3s; }
.game:hover .cover { filter: saturate(1.1) brightness(1.04); }
.cover::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .18) 0 2px, transparent 2px 4px); opacity: .5; }
.cover::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .22) 50%, transparent 65%); transform: translateX(-100%); transition: transform .7s; }
.game:hover .cover::before { transform: translateX(100%); }
.cover.noart { display: grid; place-items: center; font: 700 20px var(--f-display); color: var(--muted); filter: none; }
.tagl { position: absolute; top: 8px; left: 8px; display: flex; gap: 6px; z-index: 2; }
.tag { font: 600 11px/1 var(--f-display); letter-spacing: .1em; text-transform: uppercase; padding: 5px 7px; border-radius: 5px; background: rgba(0, 0, 0, .6); color: #fff; }
.tag.online { color: var(--green); }
.tag.lan { color: var(--blue); }
.game-body { padding: 10px 14px 12px; display: grid; gap: 4px; font-size: 14px; color: var(--muted); }
.gname { color: var(--text); font: 600 15px/1.25 var(--f-display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cnt { display: flex; align-items: center; gap: 7px; color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.cnt.zero { color: var(--faint); font-weight: 500; }
.cnt.zero .dot { background: var(--faint); animation: none; }

/* status */
.status { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.svc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; display: grid; gap: 10px; min-width: 0; transition: transform .25s, border-color .25s; }
.svc:hover { transform: translateY(-3px); border-color: rgba(255, 42, 61, .45); }
.svc-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-weight: 600; min-width: 0; }
.svc-top span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pill { font: 600 12px/1 var(--f-display); letter-spacing: .08em; text-transform: uppercase; padding: 5px 8px; border-radius: 6px; flex: none; }
.pill.ok { background: rgba(74, 222, 128, .14); color: var(--green); }
.pill.warn { background: rgba(245, 192, 74, .14); color: var(--gold); }
.pill.bad { background: rgba(255, 42, 61, .16); color: var(--red); }
.pill.idle { background: var(--surface-2); color: var(--muted); }
.bars { display: grid; grid-template-columns: repeat(24, 1fr); gap: 2px; height: 22px; }
.bars i { border-radius: 2px; background: var(--green); opacity: .85; transform-origin: bottom; animation: bar .8s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--b, 0) * 25ms); }
.bars i.warn { background: var(--gold); }
.bars i.bad { background: var(--red); }
.bars i.none { background: var(--line); }
@keyframes bar { from { transform: scaleY(.15); opacity: .3; } }
.svc small { color: var(--faint); font-size: 12px; display: flex; justify-content: space-between; }

.community { background: var(--surface); border-block: 1px solid var(--line); }
.community .wrap { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; padding-block: 48px; }
.community h2 { font-size: 30px; margin-bottom: 8px; }
.community p { margin: 0; color: var(--muted); max-width: 40em; }
footer { border-top: 1px solid var(--line); color: var(--faint); font-size: 13px; }
footer .wrap { padding-block: 28px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* who's online */
.online-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.og { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); min-width: 0; overflow: hidden; transition: transform .25s, border-color .25s; }
.og:hover { transform: translateY(-3px); border-color: rgba(255, 42, 61, .45); }
.og-head { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); font-weight: 600; }
.og-head .gt { width: 64px; height: 30px; border-radius: 4px; background: var(--surface-2) center / cover; }
.og-head .cnt { font: 600 14px var(--f-display); color: var(--muted); }
.og ul { list-style: none; margin: 0; padding: 6px 0; }
.og li { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 7px 16px; font-size: 15px; }
.og li .t { color: var(--faint); font-variant-numeric: tabular-nums; font-size: 14px; }
.host { font: 600 10px/1 var(--f-display); letter-spacing: .1em; color: var(--gold); border: 1px solid rgba(245, 192, 74, .4); border-radius: 4px; padding: 2px 5px; margin-left: 6px; vertical-align: 2px; }
.empty { padding: 40px 16px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--r); }

/* leaderboards */
.lb-banner { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 18px; min-height: 150px; display: flex; align-items: end; background: var(--surface); }
.lb-cover { position: absolute; inset: 0; background: center / cover; opacity: .55; }
.lb-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 8, 10, .95) 15%, rgba(8, 8, 10, .35)); }
.lb-title { position: relative; padding: 22px; display: grid; gap: 6px; }
.lb-title h3 { font-size: clamp(22px, 3vw, 30px); }
.lb-title p { margin: 0; }
.lb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.lb-card h3 { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.lb-card h3 small { font: 400 13px var(--f-body); }
.lb-list { list-style: none; margin: 0; padding: 0; display: grid; }
.lb-list li { display: grid; grid-template-columns: 30px 1fr auto; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.lb-list li:last-child { border-bottom: 0; }
.lb-rank { font: 700 14px var(--f-mono); color: var(--faint); text-align: center; }
.lb-name { min-width: 0; display: grid; }
.lb-name b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.lb-name small { color: var(--faint); font-size: 12px; }
.lb-val { font: 700 16px var(--f-display); font-variant-numeric: tabular-nums; }
.lb-list li.gold .lb-rank, .lb-list li.gold .lb-val { color: var(--gold); text-shadow: 0 0 12px rgba(245, 192, 74, .45); }
.lb-list li.silver .lb-rank, .lb-list li.silver .lb-val { color: #d6dbe4; }
.lb-list li.bronze .lb-rank, .lb-list li.bronze .lb-val { color: #e0975a; }
.lb-list li.gold { background: linear-gradient(90deg, rgba(245, 192, 74, .08), transparent 70%); }

/* link */
.link-stage { min-height: 70vh; display: grid; place-items: start center; padding-block: 48px; }
.link-card { width: 100%; max-width: 440px; background: linear-gradient(180deg, rgba(255, 42, 61, .05), transparent 40%), var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 28px 24px; display: grid; gap: 20px; }
.link-card h2 { font-size: 26px; text-align: center; }
.link-card p { margin: 0; color: var(--muted); text-align: center; }
.url-line { font: 600 14px var(--f-mono); color: var(--faint); text-align: center; word-break: break-all; }
.url-line b { color: var(--text); }
.code { display: flex; justify-content: center; gap: 6px; }
.code span { width: 44px; height: 54px; border-radius: 9px; background: var(--surface-2); border: 1px solid var(--line); display: grid; place-items: center; font: 700 26px var(--f-mono);
  box-shadow: inset 0 0 0 1px rgba(255, 42, 61, .25), 0 0 16px rgba(255, 42, 61, .12); animation: cell .5s cubic-bezier(.2, .8, .2, 1) both; }
.code span:nth-child(2) { animation-delay: 90ms; } .code span:nth-child(3) { animation-delay: 180ms; } .code span:nth-child(4) { animation-delay: 270ms; }
.code span:nth-child(5) { animation-delay: 360ms; } .code span:nth-child(6) { animation-delay: 450ms; }
@keyframes cell { from { transform: rotateX(90deg); color: var(--red); } }
.fineprint { font-size: 13px; color: var(--faint) !important; text-align: center; }
.who { display: flex; align-items: center; gap: 12px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.who .av { width: 42px; height: 42px; font-size: 16px; }
.who b { display: block; }
.who small { color: var(--muted); }
.staging .link-stage { place-items: center; min-height: 100vh; }
.staging .link-card { text-align: center; }

/* account */
.acct { display: grid; grid-template-columns: 240px 1fr; gap: 24px; padding-block: 40px; align-items: start; }
.acct.single { grid-template-columns: 1fr; justify-items: center; }
.rail { position: sticky; top: 84px; display: grid; gap: 4px; }
.rail button { text-align: left; background: none; border: 0; border-radius: 9px; padding: 10px 14px; cursor: pointer; color: var(--muted); font-weight: 500; display: flex; justify-content: space-between; align-items: center; }
.rail button:hover { background: var(--surface); color: var(--text); }
.rail button[aria-selected="true"] { background: var(--surface-2); color: var(--text); box-shadow: inset 2px 0 0 var(--red), -6px 0 18px -8px var(--red); }
.rail .signout { margin-top: 12px; color: var(--faint); }
.rail .rail-go { margin-top: 8px; padding: 10px 14px; border-radius: 9px; text-decoration: none; color: var(--muted); font-weight: 500; display: flex; justify-content: space-between; align-items: center; box-shadow: inset 0 0 0 1px var(--line); }
.rail .rail-go:hover { background: var(--surface); color: var(--text); }
.badge-n { font: 600 12px/1 var(--f-display); background: var(--red); color: #fff; border-radius: 99px; padding: 3px 7px; }
.panel { min-width: 0; display: grid; gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 20px; min-width: 0; }
.card h3 { font-size: 18px; margin-bottom: 14px; }
.profile-hero { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.profile-hero .av { width: 84px; height: 84px; font-size: 32px; box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--red), 0 0 24px rgba(255, 42, 61, .5); }
.profile-hero h2 { font-size: 30px; overflow-wrap: anywhere; }
.pills { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.bdg { font: 700 11px/1 var(--f-display); letter-spacing: .12em; padding: 5px 8px; border-radius: 5px; text-transform: uppercase; }
.bdg.owner { background: rgba(255, 42, 61, .16); color: var(--red); }
.bdg.admin { background: rgba(167, 112, 255, .16); color: #b48cff; }
.bdg.mod { background: rgba(74, 222, 128, .14); color: var(--green); }
.bdg.supporter { background: rgba(245, 192, 74, .16); color: var(--gold); }
.bdg.booster { background: rgba(255, 115, 200, .16); color: #ff8ad8; }
.kv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.kv div { background: var(--surface-2); border-radius: 9px; padding: 12px 14px; display: grid; gap: 2px; min-width: 0; }
.kv span { font-size: 13px; color: var(--muted); }
.kv b { font: 700 20px var(--f-display); font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
label.f { display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
.input { background: var(--surface-2); border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px; width: 100%; min-width: 0; }
textarea.input { resize: vertical; min-height: 70px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.row .input { flex: 1 1 200px; width: auto; }
.row-actions { display: flex; gap: 10px; justify-content: end; flex-wrap: wrap; }
.list { display: grid; }
.li { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.li:last-child { border-bottom: 0; }
.li > div { min-width: 0; }
.li b { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.li small { color: var(--muted); font-size: 13px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.li .acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: end; }
.li.click { cursor: pointer; }
.li.click:hover b { color: var(--red); }
.st-on { color: var(--green) !important; }
.thread { display: grid; gap: 8px; max-height: 420px; overflow-y: auto; padding: 4px 2px 8px; }
.bubble { max-width: 78%; padding: 9px 12px; border-radius: 12px; background: var(--surface-2); overflow-wrap: anywhere; font-size: 15px; }
.bubble.mine { justify-self: end; background: rgba(255, 42, 61, .16); }
.bubble time { display: block; font-size: 11px; color: var(--faint); margin-top: 3px; }
.crew { display: grid; gap: 16px; }
.crew h3 { margin: 2px 0 0; font-size: 22px; }
.crew-head { display: flex; gap: 16px; align-items: center; min-width: 0; }
.crew-head > div { min-width: 0; }
.crew-icon { width: 72px; height: 72px; border-radius: 14px; flex: none; background: var(--surface-2) center / cover; box-shadow: 0 0 0 1px var(--line), 0 0 22px rgba(255, 42, 61, .25); }
.crew-icon.none { display: grid; place-items: center; font: 700 18px var(--f-mono); color: var(--red); }
.crew-tag { font: 600 13px var(--f-mono); color: var(--red); letter-spacing: .08em; display: flex; gap: 8px; align-items: center; }
.motto { margin: 6px 0 0; color: var(--text); font-style: italic; overflow-wrap: anywhere; }
.motto.empty { color: var(--faint); font-style: normal; font-size: 14px; }
.members { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.member { display: inline-flex; align-items: center; gap: 6px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 99px; padding: 4px 12px; font-size: 14px; }
.crown { color: var(--gold); }
.member .x { background: none; border: 0; color: var(--faint); cursor: pointer; padding: 0 0 0 2px; font-size: 12px; }
.member .x:hover { color: var(--red); }
.crew-settings { border-top: 1px solid var(--line); padding-top: 16px; display: grid; gap: 14px; }
.crew-settings h4 { margin: 0; font: 600 13px var(--f-display); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.btn.danger { color: var(--red); }
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 12px 18px; font-size: 15px; z-index: 40; max-width: calc(100vw - 32px); }
.toast.err { border-color: var(--red); }
.loading { color: var(--muted); padding: 24px 0; }

/* entrance motion */
.in { animation: rise .55s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i, 0) * 45ms); }
@keyframes rise { from { transform: translateY(14px); opacity: .25; filter: blur(3px); } }
[data-view]:not([hidden]) { animation: viewIn .4s ease both; }
@keyframes viewIn { from { opacity: .3; transform: translateY(8px); } }

/* header: shed labels before anything wraps */
@media (max-width: 1240px) {
  .live-pill span, .top-right .join-top span { display: none; }
  .top-right .join-top { padding: 9px; }
  header.top .wrap { gap: 14px; }
  nav.main { margin-left: 0; }
  nav.main a { padding: 8px 10px; }
}
@media (max-width: 960px) {
  nav.main { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px max(16px, env(safe-area-inset-right, 0px)) 12px max(16px, env(safe-area-inset-left, 0px)); margin: 0; }
  nav.main.open { display: flex; }
  .menu-btn { display: inline-flex; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; cursor: pointer; }
}
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; padding-block: 48px; }
  .status { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .acct { grid-template-columns: 1fr; }
  .rail { position: static; grid-auto-flow: column; overflow-x: auto; }
  .rail button, .rail .rail-go { white-space: nowrap; }
  .rail .rail-go { margin-top: 0; gap: 8px; }
  .rail .signout { margin-top: 0; }
  .community .wrap { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .live-pill span, .top-right .btn-discord span, .top-right .join-top span, .avatar-btn span:last-child { display: none; }
  .top-right .btn-discord, .top-right .join-top { padding: 9px; }
  .avatar-btn { padding: 4px; }
  .kv, .status { grid-template-columns: 1fr; }
  section.band { padding-block: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  #fx { display: none; }
}

/* ── Minecraft server panel (/minecraft) ── */
.mc { width: 100%; max-width: 760px; display: grid; gap: 16px; }
.mc-head h2 { font-size: 30px; margin: 10px 0 6px; }
.mc-head p { margin: 0; }
.mc-server { display: grid; gap: 16px; }
.mc-title { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.mc-title h3 { margin: 0 0 2px; }
.mc-st { font: 600 13px/1 var(--f-mono); display: inline-flex; align-items: center; gap: 8px; padding: 7px 11px; border-radius: 99px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); white-space: nowrap; }
.mc-st i { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); }
.mc-st.on { color: var(--green); } .mc-st.on i { background: var(--green); box-shadow: 0 0 10px var(--green); }
.mc-st.wait { color: var(--gold); } .mc-st.wait i { background: var(--gold); }
.mc-st.off { color: var(--muted); }
.mc-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mc-note { margin: 0; font-size: 14px; }
.mc-add .input { flex: 1 1 120px; min-width: 0; }
.mc select.input { appearance: none; cursor: pointer; }
.mono { font-family: var(--f-mono); }
@media (max-width: 640px) { .mc-2 { grid-template-columns: 1fr; } .mc-title { flex-wrap: wrap; } }
.mc-sub { margin: 4px 0 0; font: 600 12px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.mc-rules { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 20px; }
.mc-rule { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); cursor: pointer; color: var(--text); font-size: 15px; }
.mc-rule span { display: grid; gap: 2px; } .mc-rule small { color: var(--muted); font-size: 13px; }
.mc-rule .input { width: 84px; flex: none; text-align: center; }
.sw { position: relative; flex: none; width: 40px; height: 22px; }
.sw input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.sw i { position: absolute; inset: 0; border-radius: 99px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); transition: background .15s; pointer-events: none; }
.sw i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--muted); transition: transform .15s, background .15s; }
.sw input:checked + i { background: var(--red); box-shadow: none; } .sw input:checked + i::after { transform: translateX(18px); background: #fff; }
.sw input:focus-visible + i { outline: 2px solid var(--red); outline-offset: 2px; }
.mc-quick { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 640px) { .mc-rules { grid-template-columns: 1fr; } }
