/* ==========================================================================
   GGZ Community – Neon Cyber Theme
   ========================================================================== */

@font-face { font-family: "Orbitron"; font-weight: 500; font-display: swap; src: url("../fonts/orbitron-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Orbitron"; font-weight: 700; font-display: swap; src: url("../fonts/orbitron-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Orbitron"; font-weight: 900; font-display: swap; src: url("../fonts/orbitron-latin-900-normal.woff2") format("woff2"); }
@font-face { font-family: "Rajdhani"; font-weight: 400; font-display: swap; src: url("../fonts/rajdhani-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Rajdhani"; font-weight: 500; font-display: swap; src: url("../fonts/rajdhani-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Rajdhani"; font-weight: 500; font-display: swap; src: url("../fonts/rajdhani-latin-ext-500-normal.woff2") format("woff2"); unicode-range: U+0100-024F, U+1E00-1EFF, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Rajdhani"; font-weight: 600; font-display: swap; src: url("../fonts/rajdhani-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Rajdhani"; font-weight: 700; font-display: swap; src: url("../fonts/rajdhani-latin-700-normal.woff2") format("woff2"); }

:root {
  color-scheme: dark;
  --bg: #0a0808;
  --bg-2: #120e0e;
  --panel: rgba(22, 16, 16, .66);
  --panel-solid: #161111;
  --panel-hi: rgba(48, 26, 22, .55);
  --line: rgba(255, 90, 60, .2);
  --line-strong: rgba(255, 120, 70, .5);
  --text: #f3eeea;
  --muted: #b9aea8;
  --dim: #7d716c;
  --magenta: #ff2a2a;
  --pink: #ff5a4f;
  --violet: #ff9a1a;
  --indigo: #ffcc00;
  --cyan: #ffd34d;
  --green: #3dffa8;
  --amber: #ffc94d;
  --red: #ff4d6d;
  --grad: linear-gradient(90deg, #ff2a2a 0%, #ff7a00 55%, #ffcc00 100%);
  --grad-soft: linear-gradient(135deg, rgba(255, 42, 42, .18), rgba(255, 196, 0, .12));
  --glow-m: 0 0 18px rgba(255, 42, 42, .45), 0 0 48px rgba(255, 42, 42, .18);
  --glow-v: 0 0 18px rgba(255, 138, 0, .4);
  --radius: 10px;
  --radius-sm: 6px;
  --f-display: "Orbitron", "Segoe UI", system-ui, sans-serif;
  --f-ui: "Rajdhani", "Segoe UI", system-ui, sans-serif;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-ui);
  font-weight: 500;
  font-size: 17px;
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
}
main { flex: 1; }
img, svg { display: block; max-width: 100%; }
a { color: var(--pink); text-decoration: none; }
a:hover { color: var(--magenta); }
code, pre { font-family: "Cascadia Code", "JetBrains Mono", Consolas, monospace; font-size: .88em; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }
::selection { background: rgba(255, 42, 42, .4); color: #fff; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ic { width: 1.15em; height: 1.15em; flex: none; }
.ic-end { margin-left: .1em; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap.narrow { max-width: 820px; }

/* ---------- Background ---------- */
.bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.bg-glow {
  position: absolute; inset: -20% -10% auto -10%; height: 120vh;
  background:
    radial-gradient(40% 35% at 75% 18%, rgba(255, 138, 0, .28), transparent 70%),
    radial-gradient(35% 30% at 15% 10%, rgba(255, 42, 42, .18), transparent 70%),
    radial-gradient(50% 40% at 50% 90%, rgba(255, 196, 0, .12), transparent 70%);
}
.bg-grid {
  position: absolute; left: -50%; right: -50%; bottom: -10%; height: 55vh;
  background-image:
    linear-gradient(rgba(255, 138, 0, .22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 138, 0, .22) 1px, transparent 1px);
  background-size: 64px 64px;
  transform: perspective(500px) rotateX(62deg);
  transform-origin: bottom;
  mask-image: linear-gradient(to top, rgba(0, 0, 0, .7), transparent 85%);
  animation: grid-move 6s linear infinite;
  opacity: .5;
}
@keyframes grid-move { to { background-position: 0 64px, 0 0; } }
.bg-noise {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .018) 0 1px, transparent 1px 3px);
}

/* ---------- Typography ---------- */
.kicker {
  margin: 0 0 .5rem;
  font-family: var(--f-ui);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--magenta);
}
.h-section, .h-page, .hero-title, .h-card {
  font-family: var(--f-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  line-height: 1.15;
  margin: 0 0 .75rem;
  color: #fff;
}
.h-section { font-size: clamp(1.45rem, 3.2vw, 2.1rem); }
.h-page { font-size: clamp(1.9rem, 5vw, 3.1rem); }
.h-card { font-size: 1rem; display: flex; align-items: center; gap: .55rem; letter-spacing: .08em; margin-bottom: 1rem; }
.h-card .ic { color: var(--magenta); }
.grad {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 14px rgba(255, 42, 42, .35));
}
.lead { font-size: 1.15rem; max-width: 62ch; }

/* ---------- Panels ---------- */
.panel {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04), 0 20px 40px -24px rgba(0, 0, 0, .8);
}
.panel::before, .panel::after {
  content: ""; position: absolute; width: 14px; height: 14px; pointer-events: none;
  border: 2px solid var(--magenta); opacity: .75;
}
.panel::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; border-top-left-radius: var(--radius); }
.panel::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; border-bottom-right-radius: var(--radius); }
.card { padding: clamp(18px, 2.5vw, 26px); }
.card.flush { padding: 0; overflow-x: auto; }
.hud-title {
  margin: 0 0 .9rem;
  font-family: var(--f-display); font-size: .72rem; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase; color: var(--cyan);
  display: flex; align-items: center; gap: .5rem;
}
.blink { color: var(--green); animation: blink 1.4s steps(2) infinite; font-size: .7em; }
@keyframes blink { 50% { opacity: .2; } }

/* ---------- Buttons ---------- */
.btn {
  --b: var(--line-strong);
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 46px; padding: .6rem 1.25rem;
  font-family: var(--f-ui); font-weight: 700; font-size: .95rem;
  letter-spacing: .14em; text-transform: uppercase;
  color: #fff; background: transparent;
  border: 1px solid var(--b); border-radius: var(--radius-sm);
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease, color .2s;
}
.btn:hover { color: #fff; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--grad); border-color: transparent; box-shadow: var(--glow-m); }
.btn-primary:hover { box-shadow: 0 0 26px rgba(255, 42, 42, .7), 0 0 60px rgba(255, 138, 0, .35); }
.btn-outline { border-color: var(--magenta); color: #ffe0d6; background: rgba(255, 42, 42, .06); }
.btn-outline:hover, .btn-outline.is-active { background: rgba(255, 42, 42, .16); box-shadow: var(--glow-m); }
.btn-ghost { border-color: var(--line); color: var(--muted); }
.btn-ghost:hover { border-color: var(--line-strong); color: #fff; background: var(--panel-hi); }
.btn-danger { border-color: var(--red); color: #ffd0d9; background: rgba(255, 77, 109, .08); }
.btn-danger:hover { background: rgba(255, 77, 109, .2); box-shadow: 0 0 20px rgba(255, 77, 109, .4); }
.btn-done { border-color: rgba(61, 255, 168, .5); color: var(--green); background: rgba(61, 255, 168, .07); cursor: default; }
.btn-done:hover { transform: none; }
.btn-discord { background: #5865f2; border-color: #7983ff; box-shadow: 0 0 20px rgba(88, 101, 242, .45); }
.btn-discord:hover { background: #6a75ff; box-shadow: 0 0 28px rgba(88, 101, 242, .7); }
.btn.is-disabled { opacity: .45; pointer-events: none; }
.btn-sm { min-height: 36px; padding: .35rem .85rem; font-size: .82rem; letter-spacing: .12em; }
.btn-block { width: 100%; }
.btn .num { color: var(--magenta); }
.btn-link { background: none; border: 0; color: var(--pink); font: inherit; cursor: pointer; padding: 0; text-decoration: underline; }
.link-arrow { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: .85rem; }
.link-back { display: inline-block; margin-bottom: 1rem; font-weight: 700; letter-spacing: .08em; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 8, 8, .72);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner { display: flex; align-items: center; gap: 1.5rem; min-height: 68px; }
.logo {
  font-family: var(--f-display); font-weight: 900; font-size: 1.35rem; letter-spacing: .06em;
  color: #fff; text-shadow: 0 0 12px rgba(255, 42, 42, .55);
  flex: none;
}
.logo:hover { color: #fff; }
.logo-br { color: var(--magenta); }
.mainnav { display: flex; align-items: center; gap: .25rem; margin-left: auto; }
.mainnav > a {
  position: relative; padding: .5rem .8rem;
  color: var(--muted); font-weight: 700; font-size: .86rem; letter-spacing: .14em; text-transform: uppercase;
}
.mainnav > a .num { color: var(--dim); }
.mainnav > a:hover, .mainnav > a.is-active { color: #fff; }
.mainnav > a.is-active .num, .mainnav > a:hover .num { color: var(--magenta); }
.mainnav > a.is-active::after {
  content: ""; position: absolute; left: .8rem; right: .8rem; bottom: .1rem; height: 2px;
  background: var(--grad); box-shadow: var(--glow-m);
}
.nav-account { margin-left: .75rem; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); color: #fff; border-radius: var(--radius-sm); width: 44px; height: 44px; align-items: center; justify-content: center; cursor: pointer; }
.nav-toggle .ic { width: 22px; height: 22px; }

.account { position: relative; }
.account summary { list-style: none; display: flex; align-items: center; gap: .6rem; cursor: pointer; padding: .3rem .55rem .3rem .3rem; border: 1px solid var(--line); border-radius: 999px; }
.account summary::-webkit-details-marker { display: none; }
.account[open] summary, .account summary:hover { border-color: var(--line-strong); background: var(--panel-hi); }
.account-name { font-weight: 700; max-width: 14ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 190px; padding: .4rem;
  background: var(--panel-solid); border: 1px solid var(--line-strong); border-radius: var(--radius);
  box-shadow: 0 20px 40px rgba(0, 0, 0, .6), var(--glow-v);
}
.account-menu a, .account-menu button {
  display: flex; align-items: center; gap: .6rem; width: 100%; padding: .55rem .7rem; border-radius: var(--radius-sm);
  color: var(--text); background: none; border: 0; font: inherit; font-weight: 600; cursor: pointer; text-align: left;
}
.account-menu a:hover, .account-menu button:hover { background: rgba(255, 42, 42, .12); color: #fff; }
.account-menu .ic { color: var(--magenta); }

.avatar {
  --s: 40px;
  width: var(--s); height: var(--s); flex: none; border-radius: 50%;
  display: inline-grid; place-items: center; overflow: hidden;
  background: var(--grad-soft); border: 1px solid var(--line-strong);
  font-family: var(--f-display); font-weight: 700; font-size: calc(var(--s) * .36); color: #fff;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; }
.avatar.sm { --s: 32px; }
.avatar.xl { --s: 104px; border-width: 2px; border-color: var(--magenta); box-shadow: var(--glow-m); }

/* ---------- Toasts ---------- */
.toasts { position: fixed; top: 80px; right: var(--gutter); z-index: 60; display: grid; gap: .6rem; width: min(420px, calc(100vw - 2 * var(--gutter))); }
.toast {
  display: flex; align-items: flex-start; gap: .7rem; padding: .85rem 1rem;
  background: var(--panel-solid); border: 1px solid var(--line-strong); border-left-width: 3px; border-radius: var(--radius-sm);
  box-shadow: 0 16px 32px rgba(0, 0, 0, .55); animation: toast-in .35s ease both;
}
.toast > .ic { margin-top: .2rem; }
.toast span { flex: 1; }
.toast-success { border-left-color: var(--green); } .toast-success > .ic { color: var(--green); }
.toast-error { border-left-color: var(--red); } .toast-error > .ic { color: var(--red); }
.toast-info { border-left-color: var(--cyan); } .toast-info > .ic { color: var(--cyan); }
.toast-x { background: none; border: 0; color: var(--dim); cursor: pointer; padding: .1rem; }
.toast-x:hover { color: #fff; }
.toast.is-out { animation: toast-out .3s ease forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateX(20px); } }
@keyframes toast-out { to { opacity: 0; transform: translateX(20px); } }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(40px, 7vw, 90px) 0 clamp(60px, 8vw, 110px); overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-city { position: absolute; inset: auto 0 0 0; height: 60%; opacity: .9; }
.hero-city svg { width: 100%; height: 100%; }
.hero-grid {
  position: relative;
  display: grid; grid-template-columns: 56px minmax(0, 1.35fr) minmax(0, .75fr) minmax(260px, .85fr);
  gap: clamp(16px, 2.5vw, 32px); align-items: center;
}
.rail { list-style: none; margin: 0; padding: 0 0 0 14px; display: grid; gap: 1.3rem; border-left: 1px solid var(--line); align-self: center; }
.rail li { position: relative; font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); line-height: 1.2; }
.rail li span { display: block; font-family: var(--f-display); font-size: .78rem; color: var(--muted); }
.rail li::before { content: ""; position: absolute; left: -19px; top: 4px; width: 9px; height: 9px; border-radius: 50%; background: var(--bg); border: 1px solid var(--dim); }
.rail li.is-active span { color: var(--magenta); }
.rail li.is-active::before { background: var(--magenta); border-color: var(--magenta); box-shadow: var(--glow-m); }

.hero-copy { grid-column: 2; }
.hero-title { font-size: clamp(2rem, 4.3vw, 4rem); font-weight: 900; margin-bottom: .6rem; line-height: 1.04; letter-spacing: .02em; }
.hero-title span { display: block; }
.hero-title .grad { filter: drop-shadow(0 0 22px rgba(255, 42, 42, .5)); }
.hero-sub { font-family: var(--f-display); font-weight: 500; text-transform: uppercase; letter-spacing: .14em; font-size: clamp(.95rem, 1.6vw, 1.25rem); margin: 0 0 1rem; color: #fff; }
.hero-lead { color: var(--muted); max-width: 46ch; margin: 0 0 1.6rem; font-size: 1.12rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; }
.ip-chip {
  margin-top: 1.4rem; display: inline-flex; align-items: center; gap: .75rem;
  padding: .55rem .9rem; background: rgba(16, 12, 12, .7); border: 1px dashed var(--line-strong); border-radius: var(--radius-sm);
  color: #fff; font: inherit; cursor: pointer; transition: border-color .2s, box-shadow .2s;
}
.ip-chip:hover { border-color: var(--magenta); box-shadow: var(--glow-m); }
.ip-chip code { font-size: 1rem; color: var(--cyan); letter-spacing: .03em; }
.ip-chip .ic { color: var(--muted); }
.ip-label { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); font-weight: 700; }

.hero-visual { grid-column: 3; display: grid; place-items: center; }
.cube-wrap { position: relative; width: min(100%, 320px); aspect-ratio: 200 / 220; animation: float 6s ease-in-out infinite; }
.neon-cube { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 0 14px rgba(255, 42, 42, .6)) drop-shadow(0 0 40px rgba(255, 196, 0, .35)); }
.neon-cube .cube-edges { animation: edge-pulse 3s ease-in-out infinite; }
.cube-ring {
  position: absolute; left: 50%; bottom: -12%; width: 90%; height: 22%; transform: translateX(-50%);
  border-radius: 50%; border: 2px solid rgba(255, 42, 42, .55);
  box-shadow: 0 0 30px rgba(255, 42, 42, .5), inset 0 0 30px rgba(255, 138, 0, .4);
}
.cube-ring::after { content: ""; position: absolute; inset: 18%; border-radius: 50%; border: 1px solid rgba(255, 196, 0, .6); }
@keyframes float { 50% { transform: translateY(-14px); } }
@keyframes edge-pulse { 50% { opacity: .75; } }

.hud { grid-column: 4; display: grid; gap: 1rem; }
.hud-card { padding: 16px 18px; }
.hud-big { display: flex; align-items: baseline; gap: .6rem; margin-bottom: .9rem; }
.hud-big b { font-family: var(--f-display); font-size: 2.3rem; line-height: 1; color: #fff; text-shadow: 0 0 18px rgba(255, 42, 42, .6); }
.hud-big span { color: var(--muted); font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; }
.hud-row { display: grid; grid-template-columns: 74px 1fr 28px; align-items: center; gap: .6rem; font-size: .85rem; margin-top: .45rem; }
.hud-name { color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; font-size: .75rem; }
.hud-val { text-align: right; font-family: var(--f-display); font-size: .78rem; }
.term { margin: 0 0 .9rem; color: #e8ddd6; font-size: .8rem; line-height: 1.7; white-space: pre-wrap; }
.term .ok { color: var(--green); }
.caret { animation: blink 1s steps(2) infinite; color: var(--magenta); }

.bar { display: block; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.bar > span { display: block; height: 100%; border-radius: inherit; background: var(--grad); box-shadow: 0 0 10px rgba(255, 42, 42, .7); transition: width .6s ease; }
.bar.thin { height: 4px; }
.meter-row { display: flex; justify-content: space-between; align-items: baseline; font-size: .82rem; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; margin-bottom: .35rem; }
.meter-row b { color: #fff; font-family: var(--f-display); font-size: .82rem; letter-spacing: .04em; }

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 96px) 0 0; }
.section.tight { padding-top: clamp(24px, 4vw, 40px); }
.section:last-of-type { padding-bottom: clamp(56px, 8vw, 96px); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.6rem; }
.section-head .h-section { margin: 0; }
.page-head { padding: clamp(40px, 6vw, 72px) 0 0; }
.page-head.compact { padding-top: clamp(28px, 4vw, 44px); }
.empty { color: var(--dim); font-style: italic; }
.split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.split > div > .btn { margin-top: 1rem; }

/* reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Server cards ---------- */
.srv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.25rem; }
.srv-grid > div { display: flex; }
.srv { --acc: var(--magenta); display: flex; flex-direction: column; gap: 1rem; padding: 22px; width: 100%; transition: transform .25s ease, border-color .25s, box-shadow .25s; }
.srv:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--acc) 60%, transparent); box-shadow: 0 0 0 1px color-mix(in srgb, var(--acc) 25%, transparent), 0 20px 50px -20px color-mix(in srgb, var(--acc) 60%, transparent); }
.srv::before, .srv::after { border-color: var(--acc); }
.accent-violet { --acc: var(--violet); }
.accent-cyan { --acc: var(--cyan); }
.srv-head { display: grid; grid-template-columns: auto 1fr auto; gap: .9rem; align-items: center; }
.srv-icon {
  width: 52px; height: 52px; display: grid; place-items: center; border-radius: var(--radius-sm);
  color: var(--acc); border: 1px solid color-mix(in srgb, var(--acc) 55%, transparent);
  background: color-mix(in srgb, var(--acc) 10%, transparent);
  box-shadow: 0 0 18px color-mix(in srgb, var(--acc) 35%, transparent);
}
.srv-icon .ic { width: 28px; height: 28px; }
.srv-name { font-family: var(--f-display); text-transform: uppercase; font-size: 1.1rem; letter-spacing: .06em; margin: 0; color: #fff; }
.srv-tag { margin: .1rem 0 0; color: var(--muted); font-size: .95rem; }
.srv-desc { margin: 0; color: var(--muted); font-size: .98rem; }
.srv-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin: 0; }
.srv-stats div { padding: .5rem .6rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: rgba(0, 0, 0, .18); min-width: 0; }
.srv-stats dt { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); font-weight: 700; }
.srv-stats dd { margin: 0; font-weight: 700; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.srv .bar > span { background: linear-gradient(90deg, var(--acc), color-mix(in srgb, var(--acc) 40%, var(--indigo))); box-shadow: 0 0 10px var(--acc); }
.srv-foot { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-top: auto; flex-wrap: wrap; }
.join {
  display: inline-flex; align-items: center; gap: .5rem; min-height: 36px; padding: .3rem .7rem;
  background: rgba(0, 0, 0, .25); border: 1px dashed var(--line-strong); border-radius: var(--radius-sm);
  color: var(--cyan); font: inherit; cursor: pointer; max-width: 100%;
}
.join:hover { border-color: var(--cyan); box-shadow: 0 0 14px rgba(255, 211, 77, .35); }
.join code { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.network-card { margin-bottom: 1.25rem; }
.network-card .srv { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); column-gap: 2rem; }
.network-card .srv > * { grid-column: 1; }
.network-card .srv-meter, .network-card .srv-stats, .network-card .srv-foot { grid-column: 2; }
.network-card .srv-head { grid-row: 1; }
.network-card .srv-desc { grid-row: 2; }
.network-card .chips { grid-row: 3; }
.network-card .srv-meter { grid-row: 1; align-self: end; }
.network-card .srv-stats { grid-row: 2; }
.network-card .srv-foot { grid-row: 3; }

.pill {
  display: inline-flex; align-items: center; gap: .4rem; padding: .22rem .65rem;
  border: 1px solid var(--line-strong); border-radius: 999px;
  font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
  white-space: nowrap;
}
.pill .ic { width: 14px; height: 14px; }
.pill.sm { padding: .1rem .5rem; font-size: .66rem; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--dim); flex: none; }
.is-online .pill { border-color: rgba(61, 255, 168, .45); color: var(--green); }
.is-online .pill .dot { background: var(--green); box-shadow: 0 0 10px var(--green); animation: pulse 2s ease-in-out infinite; }
.is-offline .pill { border-color: rgba(255, 77, 109, .45); color: var(--red); }
.is-offline .pill .dot { background: var(--red); }
.is-offline { opacity: .82; }
.pill-admin { border-color: var(--magenta); color: #ffd8d0; background: rgba(255, 42, 42, .1); }
.pill-discord { border-color: #7983ff; color: #c9ceff; background: rgba(88, 101, 242, .12); }
.pill-warn { border-color: rgba(255, 201, 77, .5); color: var(--amber); }
.pill-warn .dot { background: var(--amber); }
@keyframes pulse { 50% { box-shadow: 0 0 2px var(--green); } }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.chips li { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: var(--muted); padding: .15rem .55rem; border-radius: 4px; background: rgba(255, 138, 0, .1); border: 1px solid var(--line); }

/* ---------- Stats strip ---------- */
.stat-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1rem; margin-top: 1.6rem; }
.stat { padding: 16px 18px; display: flex; flex-direction: column; gap: .2rem; text-align: left; font: inherit; color: inherit; }
.stat span { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); font-weight: 700; }
.stat b { font-family: var(--f-display); font-size: 1.7rem; color: #fff; line-height: 1.2; }
.stat small { color: var(--muted); }
.stat-ip { cursor: pointer; }
.stat-ip b { color: var(--cyan); font-size: 1.1rem; word-break: break-all; }
.stat-ip:hover { border-color: var(--cyan); }

/* ---------- News ---------- */
.news-grid { display: grid; grid-template-columns: 1.3fr 1fr; grid-auto-rows: 1fr; gap: 1.25rem; }
.news-grid .is-feature { grid-row: span 2; flex-direction: column; }
.news-grid .is-feature .news-art { width: 100%; height: 190px; }
.news-grid .is-feature:only-child { grid-column: 1 / -1; grid-row: auto; flex-direction: row; }
.news-grid .is-feature:only-child .news-art { width: 280px; height: auto; min-height: 150px; }
.news-list { display: grid; gap: 1rem; }
.news-card { display: flex; gap: 1.2rem; padding: 18px; color: var(--text); transition: transform .25s, border-color .25s, box-shadow .25s; align-items: stretch; }
.news-card:hover { color: var(--text); transform: translateY(-3px); border-color: var(--line-strong); box-shadow: 0 18px 40px -20px rgba(255, 42, 42, .55); }
.news-art {
  flex: none; width: 120px; border-radius: var(--radius-sm); display: grid; place-items: center;
  background: radial-gradient(circle at 50% 60%, rgba(255, 42, 42, .25), transparent 65%), linear-gradient(160deg, #2a0f0f, #100c0c);
  border: 1px solid var(--line); overflow: hidden;
}
.mini-cube { width: 58%; max-width: 110px; filter: drop-shadow(0 0 10px rgba(255, 42, 42, .7)); }
.news-body { flex: 1; min-width: 0; }
.news-body h3 { font-family: var(--f-display); text-transform: uppercase; letter-spacing: .04em; font-size: 1.02rem; margin: .2rem 0 .4rem; color: #fff; line-height: 1.3; }
.news-body p { margin: 0; color: var(--muted); }
.news-meta { display: flex; gap: .9rem; align-items: center; flex-wrap: wrap; margin: 0 0 .2rem; color: var(--dim); font-size: .85rem; }
.news-meta .kicker { margin: 0; }
.news-go { align-self: flex-end; color: var(--magenta); }

.prose { padding: clamp(20px, 3vw, 34px); margin: 1.4rem 0; font-size: 1.08rem; }
.prose h2 { font-family: var(--f-display); text-transform: uppercase; letter-spacing: .05em; font-size: 1.15rem; margin: 1.6em 0 .6em; color: #fff; }
.prose h3 { font-size: 1.1rem; margin: 1.4em 0 .5em; color: #fff; letter-spacing: .04em; }
.prose > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }
.prose ul { padding-left: 1.2rem; }
.prose li::marker { color: var(--magenta); }
.prose code { color: var(--cyan); background: rgba(0, 0, 0, .3); padding: .1em .35em; border-radius: 4px; }
.prose strong { color: #fff; }
.notice { padding: .7rem 1rem; border: 1px solid rgba(255, 201, 77, .45); border-radius: var(--radius-sm); color: var(--amber); background: rgba(255, 201, 77, .06); }
.article .h-page { font-size: clamp(1.6rem, 4vw, 2.5rem); }
.error-code { font-family: var(--f-display); font-weight: 900; font-size: clamp(4rem, 14vw, 8rem); line-height: 1; margin: 0; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 30px rgba(255, 42, 42, .45)); }

/* ---------- Steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; position: relative; }
.steps::before { content: ""; position: absolute; top: 36px; left: 12%; right: 12%; height: 1px; background: linear-gradient(90deg, transparent, var(--line-strong), transparent); }
.steps li { position: relative; text-align: center; padding: 0 .5rem; }
.step-ic {
  width: 72px; height: 72px; margin: 0 auto .9rem; display: grid; place-items: center; border-radius: 50%;
  background: var(--bg-2); border: 1px solid var(--magenta); color: var(--magenta);
  box-shadow: var(--glow-m), inset 0 0 20px rgba(255, 42, 42, .2);
}
.step-ic .ic { width: 30px; height: 30px; }
.steps b { display: block; font-family: var(--f-display); font-size: .78rem; color: var(--dim); letter-spacing: .15em; }
.steps h3 { margin: .2rem 0 .4rem; font-size: 1rem; text-transform: uppercase; letter-spacing: .1em; color: #fff; }
.steps p { margin: 0; color: var(--muted); font-size: .95rem; }
.steps code { color: var(--cyan); }

/* ---------- Leaderboard ---------- */
.board { padding: 20px 22px; }
.board-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.board-list li { display: grid; grid-template-columns: 38px 32px minmax(0, 1fr) 90px 34px; gap: .7rem; align-items: center; padding: .45rem .5rem; border-radius: var(--radius-sm); }
.board-list li:nth-child(1) { background: rgba(255, 42, 42, .09); }
.board-list li:nth-child(1) .rank { color: var(--magenta); text-shadow: var(--glow-m); }
.rank { font-family: var(--f-display); font-size: .8rem; color: var(--dim); }
.board-name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board-name small { display: block; color: var(--dim); font-weight: 500; font-size: .8rem; }
.board-list b { font-family: var(--f-display); font-size: .9rem; text-align: right; }
.ticks { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .55rem; color: var(--muted); }
.ticks li { display: flex; gap: .6rem; align-items: flex-start; }
.ticks .ic { color: var(--green); margin-top: .2rem; }

/* ---------- CTA ---------- */
.cta { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; align-items: center; padding: clamp(24px, 4vw, 48px); background: linear-gradient(120deg, rgba(255, 42, 42, .1), rgba(22, 16, 16, .7) 45%, rgba(255, 196, 0, .12)); overflow: hidden; }
.cta-art { display: grid; place-items: center; }
.cta-art .neon-cube { width: min(240px, 100%); animation: float 7s ease-in-out infinite; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 1rem; }
.form-grid { grid-template-columns: 1fr 1fr; }
.span2 { grid-column: 1 / -1; }
.field { display: grid; gap: .35rem; }
.field > span { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.field small { text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--dim); font-size: .82rem; }
.field-link { text-transform: none; letter-spacing: 0; font-size: .85rem; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=search], select, textarea {
  width: 100%; min-height: 46px; padding: .6rem .85rem;
  background: rgba(8, 6, 6, .7); color: #fff;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  font: inherit; font-weight: 500; font-size: 1.02rem;
  transition: border-color .2s, box-shadow .2s;
}
textarea { resize: vertical; line-height: 1.5; font-family: "Cascadia Code", Consolas, monospace; font-size: .92rem; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--magenta); box-shadow: 0 0 0 3px rgba(255, 42, 42, .18), 0 0 18px rgba(255, 42, 42, .25); }
input::placeholder { color: var(--dim); }
.check { display: flex; gap: .6rem; align-items: center; color: var(--muted); cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--magenta); flex: none; }
.hp { position: absolute; left: -9999px; }
.form-actions { display: flex; gap: .75rem; flex-wrap: wrap; }
.form-inline { display: flex; gap: .6rem; align-items: center; margin-top: .8rem; }
.divider { display: flex; align-items: center; gap: .8rem; margin: 1.2rem 0; color: var(--dim); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---------- Auth ---------- */
.auth { padding: clamp(32px, 6vw, 72px) 0; }
.auth-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); gap: clamp(16px, 3vw, 32px); align-items: stretch; max-width: 980px; }
.auth-art { padding: 26px; display: flex; flex-direction: column; background: linear-gradient(160deg, rgba(50, 18, 14, .8), rgba(14, 10, 10, .8)); }
.auth-cube { flex: 1; display: grid; place-items: center; padding: 1.5rem 0; }
.auth-cube .neon-cube { width: min(220px, 70%); animation: float 6s ease-in-out infinite; }
.auth-card { padding: clamp(22px, 3.5vw, 38px); }
.auth-card .h-section { font-size: clamp(1.35rem, 3vw, 1.8rem); }
.auth-card > .muted { margin-top: 0; }
.auth-card .btn-discord { margin-top: .6rem; }
.auth-switch { margin: 1.2rem 0 0; color: var(--muted); text-align: center; }

/* ---------- Profile ---------- */
.profile-head { display: grid; grid-template-columns: auto 1fr auto; gap: 1.5rem; align-items: center; padding: clamp(20px, 3vw, 30px); }
.profile-id .h-section { margin-bottom: .4rem; }
.badges { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: 0; }
.profile-stats { display: flex; gap: 1rem; margin: 0; }
.profile-stats div { text-align: center; padding: .6rem 1rem; border: 1px solid var(--line); border-radius: var(--radius-sm); min-width: 110px; }
.profile-stats dt { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); font-weight: 700; }
.profile-stats dd { margin: 0; font-family: var(--f-display); font-size: 1.6rem; color: #fff; text-shadow: 0 0 14px rgba(255, 42, 42, .5); }
.profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; align-items: start; }
.conn { list-style: none; margin: 0 0 1.6rem; padding: 0; display: grid; gap: .6rem; }
.conn li { display: flex; align-items: center; gap: .8rem; padding: .7rem .8rem; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.conn li > div { flex: 1; min-width: 0; }
.conn b { display: block; }
.conn small { color: var(--muted); overflow-wrap: anywhere; }
.conn-ic { width: 38px; height: 38px; display: grid; place-items: center; border-radius: var(--radius-sm); background: rgba(255, 138, 0, .12); color: var(--violet); flex: none; }
.vote-log { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; }
.vote-log li { display: flex; justify-content: space-between; padding: .45rem 0; border-bottom: 1px solid var(--line); }
.vote-log time { color: var(--dim); }
.danger { border-color: rgba(255, 77, 109, .35); }
.danger::before, .danger::after { border-color: var(--red); }
.danger .h-card .ic { color: var(--red); }

/* ---------- Admin ---------- */
.admin-grid { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.admin-nav { padding: .5rem; display: grid; gap: .2rem; position: sticky; top: 84px; }
.admin-nav a { display: flex; align-items: center; gap: .65rem; padding: .65rem .8rem; border-radius: var(--radius-sm); color: var(--muted); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .88rem; }
.admin-nav a:hover { color: #fff; background: var(--panel-hi); }
.admin-nav a.is-active { color: #fff; background: rgba(255, 42, 42, .14); box-shadow: inset 2px 0 0 var(--magenta); }
.admin-nav a.is-active .ic { color: var(--magenta); }
.admin-main { display: grid; gap: 1.25rem; min-width: 0; }
.admin-main .stat-strip { margin-top: 0; }
.admin-two { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.admin-bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.admin-bar p { margin: 0; }
.admin-bar .search { flex: 1; min-width: 200px; }
.setup { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.setup li { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.setup li b { margin-left: auto; font-family: var(--f-display); font-size: .8rem; }
.setup .ok .ic, .setup .ok .dot { color: var(--green); background: var(--green); }
.setup .ok .ic { background: none; }
.setup .todo .ic { color: var(--amber); }
.setup .todo .dot { background: var(--red); }
.table { width: 100%; border-collapse: collapse; font-size: .96rem; }
.table th { text-align: left; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); padding: .8rem 1rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: .75rem 1rem; border-bottom: 1px solid rgba(255, 90, 60, .1); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tr:hover td { background: rgba(255, 138, 0, .05); }
.table tr.is-muted { opacity: .55; }
.table code { color: var(--cyan); }
.table .actions { display: flex; gap: .4rem; justify-content: flex-end; }
.state { font-weight: 700; font-size: .85rem; }
.state.ok { color: var(--green); }
.state.off { color: var(--red); }

/* ---------- Footer ---------- */
.footer { margin-top: clamp(56px, 8vw, 96px); border-top: 1px solid var(--line); background: rgba(8, 6, 6, .85); }
.footer-inner { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 2rem; padding-top: 2.4rem; padding-bottom: 2.4rem; }
.footer-brand p { color: var(--dim); font-size: .88rem; margin: .6rem 0 0; }
.footer-links { display: flex; flex-direction: column; gap: .35rem; }
.footer-links a { color: var(--muted); font-weight: 600; }
.footer-links a:hover { color: #fff; }
.footer .kicker { font-size: .72rem; }
.sys { display: flex; align-items: center; gap: .55rem; margin: 0 0 .5rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: .82rem; }
.sys.is-ok { color: var(--green); } .sys.is-ok .dot { background: var(--green); box-shadow: 0 0 10px var(--green); animation: pulse 2s infinite; }
.sys.is-warn { color: var(--amber); } .sys.is-warn .dot { background: var(--amber); }
.sparkline { width: 100%; max-width: 240px; height: 40px; }
.sparkline polyline { fill: none; stroke: var(--magenta); stroke-width: 1.5; filter: drop-shadow(0 0 4px var(--magenta)); vector-effect: non-scaling-stroke; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .hero-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
  .rail { display: none; }
  .hero-copy { grid-column: 1; }
  .hero-visual { grid-column: 2; grid-row: 1; }
  .hud { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .mainnav {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    padding: .5rem var(--gutter) 1rem; background-color: #0e0b0b; border-bottom: 1px solid var(--line-strong);
    box-shadow: 0 24px 40px rgba(0, 0, 0, .7); z-index: 2;
    display: none;
  }
  .mainnav.is-open { display: flex; }
  .mainnav > a { padding: .85rem .2rem; border-bottom: 1px solid var(--line); }
  .mainnav > a.is-active::after { display: none; }
  .nav-account { margin: 1rem 0 0; }
  .nav-account .btn { width: 100%; }
  .account summary { width: fit-content; }
  .account-menu { position: static; margin-top: .5rem; box-shadow: none; }
  .split, .cta, .auth-grid, .profile-grid, .admin-two, .footer-inner { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .news-grid .is-feature { grid-row: auto; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 2rem; }
  .steps::before { display: none; }
  .cta-art { display: none; }
  .auth-art { display: none; }
  .admin-grid { grid-template-columns: 1fr; }
  .admin-nav { position: static; grid-auto-flow: column; overflow-x: auto; }
  .network-card .srv { display: flex; }
  .profile-head { grid-template-columns: auto 1fr; }
  .profile-stats { grid-column: 1 / -1; }
  .form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { grid-column: 1; grid-row: auto; }
  .cube-wrap { width: 180px; }
  .hud { grid-template-columns: 1fr; }
  .hero-cta .btn { flex: 1 1 100%; }
  .srv-grid { grid-template-columns: 1fr; }
  .news-card { flex-direction: column; }
  .news-art { width: 100%; height: 120px; }
  .steps { grid-template-columns: 1fr; }
  .board-list li { grid-template-columns: 34px 32px minmax(0, 1fr) 34px; }
  .board-list .bar { display: none; }
  .profile-head { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .badges { justify-content: center; }
  .profile-stats { justify-content: center; }
  .table th:nth-child(n+4), .table td:nth-child(n+4):not(.actions) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   GGZ Wolf branding (black · red · gold)
   ========================================================================== */
.logo { display: inline-flex; align-items: center; gap: .55rem; text-shadow: 0 0 14px rgba(255, 42, 42, .55); }
.logo-wolf { width: 42px; height: auto; filter: drop-shadow(0 0 8px rgba(255, 60, 30, .55)); transition: transform .3s ease; }
.logo:hover .logo-wolf { transform: rotate(-6deg) scale(1.06); }
.footer .logo-wolf { width: 36px; }

.hero-logo {
  width: 100%; height: auto;
  filter: drop-shadow(0 0 24px rgba(255, 42, 42, .45)) drop-shadow(0 0 60px rgba(255, 150, 0, .2));
}
.cube-wrap { aspect-ratio: auto; width: min(100%, 380px); }
.cube-ring { bottom: -6%; height: 16%; border-color: rgba(255, 42, 42, .5); box-shadow: 0 0 30px rgba(255, 42, 42, .45), inset 0 0 30px rgba(255, 160, 0, .35); z-index: -1; }
.cube-ring::after { border-color: rgba(255, 196, 0, .55); }

.mini-cube { width: 70%; max-width: 96px; height: auto; filter: drop-shadow(0 0 10px rgba(255, 60, 30, .6)); }
.news-art { background: radial-gradient(circle at 50% 60%, rgba(255, 42, 42, .28), transparent 65%), linear-gradient(160deg, #2a0f0f, #100c0c); }
.auth-cube img { width: min(260px, 80%); height: auto; animation: float 6s ease-in-out infinite; filter: drop-shadow(0 0 22px rgba(255, 42, 42, .45)); }
.cta-art img { width: min(280px, 100%); height: auto; animation: float 7s ease-in-out infinite; filter: drop-shadow(0 0 24px rgba(255, 42, 42, .5)); }
.cta { background: linear-gradient(120deg, rgba(255, 42, 42, .12), rgba(22, 16, 16, .75) 45%, rgba(255, 196, 0, .08)); }

/* Banner as faded backdrop on sub-page headers */
.page-head { position: relative; isolation: isolate; }
.page-head:not(.compact):not(.article)::before {
  content: ""; position: absolute; inset: 0 0 -40px 35%; z-index: -1; pointer-events: none;
  background: url("../img/banner-sm.webp") right center / cover no-repeat;
  opacity: .28;
  mask-image: linear-gradient(90deg, transparent, #000 45%), linear-gradient(to bottom, #000 60%, transparent);
  mask-composite: intersect;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 45%);
}

/* Warmer background glow + ember particles */
.bg-glow {
  background:
    radial-gradient(40% 35% at 78% 15%, rgba(255, 42, 42, .22), transparent 70%),
    radial-gradient(35% 30% at 12% 8%, rgba(255, 150, 0, .12), transparent 70%),
    radial-gradient(50% 40% at 50% 95%, rgba(255, 42, 42, .1), transparent 70%);
}
.hero-title .grad { filter: drop-shadow(0 0 22px rgba(255, 60, 30, .5)); }
.hero-sub { color: #e6d3c9; }

@media (max-width: 640px) {
  .cube-wrap { width: 220px; }
  .logo-wolf { width: 36px; }
  .page-head:not(.compact):not(.article)::before { inset: 0 0 -20px 0; opacity: .16; }
}

/* Simplified server cards: player count + main IP */
.srv-count { display: flex; align-items: baseline; gap: .5rem; margin-bottom: .55rem; }
.srv-count b { font-family: var(--f-display); font-size: 2rem; line-height: 1; color: #fff; text-shadow: 0 0 16px color-mix(in srgb, var(--acc) 70%, transparent); }
.srv-count > span { color: var(--muted); font-size: .9rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; }
.srv .bar { height: 8px; }
.join-ip { width: 100%; justify-content: center; min-height: 44px; font-size: 1rem; }
.join-ip .join-hint { margin-left: auto; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); font-weight: 700; }
.network-card .srv { display: flex; }
.vote-list { list-style: none; margin: 1.2rem 0 0; padding: 0; display: grid; gap: .5rem; }
.vote-list li { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .6rem .8rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: rgba(0, 0, 0, .2); }
.vote-name { font-weight: 700; }
.vote-name small { display: block; color: var(--dim); font-weight: 500; font-size: .82rem; }
.network-card .srv > * { align-self: stretch; grid-column: auto; grid-row: auto; }

/* ---------- Multigaming: game tiles ---------- */
.game-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; }
.game {
  --acc: var(--magenta);
  position: relative; display: flex; flex-direction: column; gap: .35rem; padding: 24px 22px 22px; min-height: 230px;
  color: var(--text); overflow: hidden; transition: transform .25s ease, border-color .25s, box-shadow .25s;
  background: linear-gradient(160deg, color-mix(in srgb, var(--acc) 10%, transparent), var(--panel) 55%);
}
.game::before, .game::after { border-color: var(--acc); }
a.game:hover { color: var(--text); transform: translateY(-4px); border-color: color-mix(in srgb, var(--acc) 60%, transparent); box-shadow: 0 20px 50px -22px color-mix(in srgb, var(--acc) 70%, transparent); }
.game-ic {
  width: 56px; height: 56px; display: grid; place-items: center; border-radius: var(--radius-sm); margin-bottom: .6rem;
  color: var(--acc); border: 1px solid color-mix(in srgb, var(--acc) 55%, transparent); background: color-mix(in srgb, var(--acc) 12%, transparent);
  box-shadow: 0 0 20px color-mix(in srgb, var(--acc) 35%, transparent);
}
.game-ic .ic { width: 30px; height: 30px; }
.game-badge { position: absolute; top: 20px; right: 18px; font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--acc); border: 1px solid color-mix(in srgb, var(--acc) 50%, transparent); border-radius: 999px; padding: .15rem .6rem; }
.game-genre { margin: 0; font-size: .74rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--acc); }
.game-name { margin: 0; font-family: var(--f-display); font-size: 1.12rem; text-transform: uppercase; letter-spacing: .05em; color: #fff; line-height: 1.25; }
.game-desc { margin: .25rem 0 0; color: var(--muted); font-size: .98rem; }
.game-go { margin-top: auto; align-self: flex-end; color: var(--acc); }

/* Discord HUD */
.hud-duo { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; margin-bottom: .9rem; }
.hud-duo .hud-big { flex-direction: column; align-items: flex-start; gap: .25rem; margin: 0; }
.hud-duo .hud-big b { font-size: 1.9rem; }
.hud-duo .hud-big span { font-size: .72rem; }
.hero-title { font-size: clamp(1.9rem, 2.85vw, 2.9rem); }
.hero-title .grad { white-space: nowrap; }
@media (max-width: 640px) { .hero-title { font-size: clamp(1.8rem, 9vw, 2.4rem); } }

/* ---------- News images ---------- */
.news-art.has-img { padding: 0; background: #120e0e; }
.news-art.has-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.news-card:not(.is-feature) .news-art.has-img { aspect-ratio: 16 / 9; height: auto; align-self: flex-start; width: 180px; }
.news-grid .is-feature .news-art.has-img { height: 220px; }
.article-img { margin: 1.4rem 0 0; padding: 0; overflow: hidden; }
.article-img img { width: 100%; height: auto; display: block; border-radius: var(--radius); max-height: 560px; object-fit: cover; }

/* Admin upload field */
.img-field > span { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.img-current { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin: .2rem 0 .6rem; }
.img-current img { width: 220px; height: auto; border-radius: var(--radius-sm); border: 1px solid var(--line-strong); }
.upload {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem;
  min-height: 130px; padding: 1rem; text-align: center; cursor: pointer;
  border: 2px dashed var(--line-strong); border-radius: var(--radius); background: rgba(0, 0, 0, .25); color: var(--muted);
  transition: border-color .2s, background .2s;
}
.upload:hover, .upload.is-drag { border-color: var(--magenta); background: rgba(255, 42, 42, .06); color: #fff; }
.upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload-ic { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--magenta); color: var(--magenta); }
.upload-preview { max-width: 320px; width: 100%; height: auto; border-radius: var(--radius-sm); }
@media (max-width: 640px) { .news-card:not(.is-feature) .news-art.has-img { width: 100%; } }

/* ---------- Uniform news rows: same image + box size everywhere ---------- */
.news-uniform { display: grid; gap: 1rem; }
.news-uniform .news-card { display: grid; grid-template-columns: 300px minmax(0, 1fr) auto; gap: 1.4rem; align-items: center; min-height: 0; padding: 16px; }
.news-uniform .news-art,
.news-uniform .news-art.has-img { width: 300px; height: auto; aspect-ratio: 16 / 9; align-self: center; }
.news-uniform .news-art img.mini-cube { width: 34%; max-width: 72px; height: auto; }
.news-uniform .news-body h3 { font-size: 1.05rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-uniform .news-body p:last-child { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-uniform .news-go { align-self: center; }
@media (max-width: 760px) {
  .news-uniform .news-card { grid-template-columns: 1fr; gap: .9rem; }
  .news-uniform .news-art, .news-uniform .news-art.has-img { width: 100%; }
  .news-uniform .news-go { display: none; }
}
.news-uniform .news-card .news-art,
.news-uniform .news-card .news-art.has-img { width: 300px; height: 169px; aspect-ratio: auto; align-self: center; }
.news-uniform .news-card { min-height: 201px; }
@media (max-width: 760px) {
  .news-uniform .news-card .news-art,
  .news-uniform .news-card .news-art.has-img { width: 100%; height: auto; aspect-ratio: 16 / 9; }
  .news-uniform .news-card { min-height: 0; }
}

/* Server cards: player bar + IP button always sit at the same height (bottom of card) */
.srv .srv-meter { margin-top: auto; }
.srv .srv-foot { margin-top: 0; }
.game-grid-lg .game { min-height: 260px; padding: 28px 26px 24px; } .game-grid-lg .game-name { font-size: 1.25rem; }

/* ---------- Game titles inside categories ---------- */
.game-titles { list-style: none; margin: .9rem 0 0; padding: 0; display: grid; gap: .4rem; }
.game-titles li > a, .game-titles li > .gt-name:first-child { color: inherit; }
.game-titles li { border: 1px solid var(--line); border-radius: var(--radius-sm); background: rgba(0, 0, 0, .25); }
.game-titles li > a, .game-titles li { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.game-titles li { padding: .5rem .7rem; }
.game-titles li > a { width: 100%; color: var(--text); }
.game-titles li:has(> a) { padding: 0; }
.game-titles li > a { padding: .5rem .7rem; border-radius: var(--radius-sm); transition: background .2s; }
.game-titles li > a:hover { background: color-mix(in srgb, var(--acc) 12%, transparent); color: #fff; }
.gt-name { font-weight: 700; color: #fff; }
.gt-name::before { content: "▸ "; color: var(--acc); }
.gt-note { color: var(--muted); font-size: .88rem; }
.gt-go { margin-left: auto; color: var(--acc); width: 16px; height: 16px; }
.gt-empty { margin: .9rem 0 0; color: var(--dim); font-style: italic; font-size: .92rem; }
.game-more { margin-top: auto; padding-top: 1rem; align-self: flex-start; color: var(--acc); }
.gt-chips { list-style: none; margin: .7rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.gt-chips li { font-size: .74rem; font-weight: 700; letter-spacing: .06em; color: #fff; padding: .15rem .55rem; border-radius: 4px; background: color-mix(in srgb, var(--acc) 16%, transparent); border: 1px solid color-mix(in srgb, var(--acc) 40%, transparent); }
.gt-chips .gt-more { color: var(--acc); }

/* Admin: "Spiel hinzufügen" row */
input[type=url] { width: 100%; min-height: 46px; padding: .6rem .85rem; background: rgba(8, 6, 6, .7); color: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); font: inherit; font-weight: 500; font-size: 1.02rem; transition: border-color .2s, box-shadow .2s; }
.title-add { margin-top: 1.6rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.title-add .kicker { margin-bottom: .2rem; }
.title-add-row { display: grid; grid-template-columns: 1.1fr 1.2fr 1.4fr auto; gap: 1rem; align-items: end; }
.title-add-row .btn { margin-top: 1.2rem; min-height: 46px; }
@media (max-width: 900px) {
  .title-add-row { grid-template-columns: 1fr; }
  .title-add-row .btn { margin-top: .6rem; justify-self: start; }
}

/* Clickable game chips on the home page */
.gt-chips li { padding: 0; }
.gt-chips li > a, .gt-chips li > span { display: inline-flex; align-items: center; gap: .3rem; padding: .15rem .55rem; color: #fff; }
.gt-chips li > a { border-radius: 4px; transition: background .2s, box-shadow .2s; }
.gt-chips li:has(> a):hover { background: color-mix(in srgb, var(--acc) 32%, transparent); box-shadow: 0 0 12px color-mix(in srgb, var(--acc) 45%, transparent); }
.gt-chips .gt-chip-go { width: 12px; height: 12px; color: var(--acc); }
.gt-chips .gt-more > a { color: var(--acc); }
