:root {
  --bg: #0c0910;
  --bg-soft: #15101c;
  --panel: rgba(32, 24, 41, .72);
  --panel-2: rgba(42, 32, 54, .74);
  --border: rgba(187, 132, 233, .20);
  --border-strong: rgba(191, 133, 242, .42);
  --text: #f4eff8;
  --muted: #b7aabd;
  --violet: #8f4bc2;
  --violet-light: #c38af1;
  --violet-bright: #d59cff;
  --glow: rgba(160, 80, 224, .32);
  --max: 1180px;
  --header-h: 76px;
}

* { box-sizing: border-box; }
html.gunity-loading { background: #0e0c12; overflow: hidden; }
html.gunity-loading body > :not(#gunity-loader) { visibility: hidden; }
#gunity-loader { position: fixed; inset: 0; z-index: 2147483000; display: flex; align-items: center; justify-content: center; padding: 24px; overflow: auto; background: radial-gradient(ellipse at 50% 40%, #21132f 0%, #0e0c12 65%); color: #f3f0f7; font: 16px/1.5 system-ui, sans-serif; text-align: center; }
#gunity-loader[hidden] { display: none; pointer-events: none; }
#gunity-loader .loader-inner { width: min(440px, 100%); margin: auto; }
#gunity-loader img { display: block; width: 100%; height: auto; max-height: 235px; object-fit: contain; margin-bottom: 20px; }
#gunity-loader progress { display: block; width: 100%; height: 6px; border: 0; border-radius: 8px; overflow: hidden; background: #30243d; accent-color: #a779d0; }
#gunity-loader progress::-webkit-progress-bar { background: #30243d; }
#gunity-loader progress::-webkit-progress-value { background: linear-gradient(90deg, #70429b, #c4a7e7); }
#gunity-loader progress::-moz-progress-bar { background: #a779d0; }
#gunity-loader .loader-percent { margin: 16px 0 2px; font-size: 26px; font-weight: 600; font-variant-numeric: tabular-nums; }
#gunity-loader .loader-status { margin: 0 0 8px; color: #d7cce2; }
#gunity-loader small { color: #a79bb3; font-size: 12px; }
#gunity-loader button { display: block; margin: 24px auto 0; padding: 8px 14px; border: 1px solid #6a527e; border-radius: 7px; background: transparent; color: #ded2e9; font: inherit; cursor: pointer; }
#gunity-loader button:hover { background: rgba(167,121,208,.15); }
#gunity-loader button:focus-visible { outline: 3px solid #c4a7e7; outline-offset: 4px; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.65;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--violet-light); outline-offset: 5px; }
img { max-width: 100%; display: block; }
code { color: #d9b8ef; background: rgba(116, 66, 148, .15); padding: 2px 5px; border-radius: 5px; }
::selection { background: rgba(179, 104, 229, .42); color: #fff; }

/* Hintergrund – bewusst wie beim ersten Entwurf */
.page-bg {
  position: fixed;
  inset: 0;
  z-index: -5;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 12%, rgba(94, 48, 124, .22), transparent 34%),
    radial-gradient(circle at 82% 36%, rgba(82, 38, 111, .13), transparent 28%),
    radial-gradient(circle at 16% 62%, rgba(111, 54, 143, .10), transparent 30%),
    linear-gradient(180deg, #130e19 0%, #0c0910 42%, #09070c 100%);
}
.page-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(0,0,0,.24), transparent 20%, transparent 80%, rgba(0,0,0,.24));
}
.cloud {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .17;
  mix-blend-mode: screen;
  animation: drift 18s ease-in-out infinite alternate;
}
.cloud-a { width: 560px; height: 190px; top: 110px; left: 13%; background: #6b2f91; transform: rotate(-8deg); }
.cloud-b { width: 650px; height: 210px; top: 250px; right: 3%; background: #43205e; animation-duration: 24s; }
.cloud-c { width: 520px; height: 170px; top: 66%; left: 29%; background: #6b3388; animation-duration: 27s; }
.stars {
  position: absolute;
  inset: 0;
  opacity: .2;
  background-image:
    radial-gradient(circle at 20% 30%, #cf9cff 0 1px, transparent 1.4px),
    radial-gradient(circle at 74% 21%, #fff 0 1px, transparent 1.4px),
    radial-gradient(circle at 59% 68%, #ba82e5 0 1px, transparent 1.3px),
    radial-gradient(circle at 36% 84%, #fff 0 1px, transparent 1.3px);
  background-size: 420px 370px, 510px 470px, 450px 520px, 600px 610px;
}
@keyframes drift { to { transform: translate3d(36px, 20px, 0) scale(1.06); } }

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  padding: 0 clamp(18px, 3.2vw, 54px);
  border-bottom: 1px solid transparent;
  background: rgba(11, 8, 16, .16);
  backdrop-filter: blur(4px);
  transition: .25s;
}
.site-header.scrolled {
  background: rgba(12, 8, 17, .84);
  border-bottom-color: rgba(189, 130, 225, .12);
  backdrop-filter: blur(18px);
  box-shadow: 0 8px 35px rgba(0,0,0,.22);
}
.brand { display: flex; align-items: center; gap: 10px; font-size: .85rem; letter-spacing: .24em; font-weight: 850; }
.brand img { width: 38px; height: 38px; object-fit: contain; filter: drop-shadow(0 0 10px rgba(174,76,235,.25)); }
.main-nav { margin-left: auto; display: flex; align-items: center; gap: clamp(13px, 1.5vw, 24px); font-size: .79rem; font-weight: 650; color: #bcaec4; }
.main-nav > a, .nav-dropdown-toggle { position: relative; padding: 27px 0; border: 0; background: transparent; cursor: pointer; white-space: nowrap; }
.main-nav > a::after, .nav-dropdown-toggle::after {
  content: "";
  position: absolute;
  left: 50%; right: 50%; bottom: 19px;
  height: 1px;
  background: var(--violet-light);
  box-shadow: 0 0 9px var(--violet);
  transition: .22s;
}
.main-nav > a:hover, .main-nav > a.active, .nav-dropdown-toggle:hover { color: #fff; }
.main-nav > a:hover::after, .main-nav > a.active::after, .nav-dropdown-toggle:hover::after { left: 0; right: 0; }
.nav-panel { border: 1px solid rgba(190,126,230,.23) !important; padding: 8px 13px !important; border-radius: 8px; background: rgba(91,48,118,.13); }
.nav-panel::after { display: none; }
.nav-dropdown { position: relative; }
.nav-dropdown-toggle span { color: #9e64c2; margin-left: 3px; }
.nav-dropdown-menu {
  position: absolute;
  top: 64px;
  left: 50%;
  width: 215px;
  padding: 9px;
  transform: translate(-50%, -7px);
  opacity: 0;
  pointer-events: none;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(18,13,24,.97);
  box-shadow: 0 22px 65px rgba(0,0,0,.38);
  transition: .2s;
}
.nav-dropdown-menu { visibility: hidden; }
.nav-dropdown.open .nav-dropdown-menu { visibility: visible; opacity: 1; transform: translate(-50%,0); pointer-events: auto; }
.nav-dropdown-toggle.active { color: #fff; }
.nav-dropdown-toggle.active::after { left: 0; right: 0; }
.nav-dropdown-toggle[aria-expanded="true"] span { display: inline-block; transform: rotate(180deg); }
.nav-dropdown-menu a.active { color: #fff; background: rgba(135,70,177,.24); }
.nav-dropdown-menu a { display: block; padding: 9px 11px; border-radius: 7px; color: #c6b9cc; }
.nav-dropdown-menu a:hover { background: rgba(135,70,177,.16); color: #fff; }
.nav-toggle { display: none; margin-left: auto; width: 42px; height: 42px; border: 1px solid var(--border); border-radius: 9px; background: rgba(48,35,58,.45); cursor: pointer; }
.nav-toggle span { display: block; width: 19px; height: 1px; margin: 5px auto; background: #d9c9e2; }

.section { position: relative; width: min(var(--max), calc(100% - 42px)); margin: 0 auto; padding: 110px 0; }
.hero { width: 100%; max-width: none; min-height: 100vh; padding: 120px 20px 86px; display: grid; place-items: center; text-align: center; }
.hero-inner { position: relative; z-index: 2; width: min(930px, 100%); }
.hero-glow { position: absolute; width: min(950px,85vw); height: 500px; top: 80px; left: 50%; transform: translateX(-50%); background: radial-gradient(ellipse,rgba(116,54,154,.18),rgba(80,39,105,.08) 38%,transparent 70%); filter: blur(10px); }
.hero-logo { width: min(600px,80vw); max-height: 285px; object-fit: contain; margin: 0 auto -4px; filter: drop-shadow(0 0 30px rgba(144,67,196,.14)); border-radius: 8px; }
.eyebrow { margin: 0 0 10px; color: #a16bc4; font-size: .68rem; font-weight: 850; letter-spacing: .2em; text-transform: uppercase; }
.hero h1, .section h2, .legal-card h1 { margin: 0; line-height: 1.08; font-weight: 770; letter-spacing: -.035em; }
.hero h1 { font-size: clamp(2.7rem,6vw,5.4rem); }
.hero h1 span, .section h2 span { color: #c48cef; text-shadow: 0 0 30px rgba(150,71,206,.14); }
.hero-copy { max-width: 690px; margin: 24px auto 0; color: var(--muted); font-size: 1.04rem; }
.hero-actions { display: flex; justify-content: center; gap: 11px; margin-top: 31px; }
.btn, .small-btn { display: inline-flex; align-items: center; justify-content: center; border-radius: 9px; font-weight: 750; cursor: pointer; transition: .22s; }
.btn { min-height: 48px; padding: 0 20px; border: 1px solid var(--border-strong); font-size: .84rem; }
.btn-primary { background: linear-gradient(90deg,#7742a3,#8d4bbb); color: #fff; box-shadow: 0 12px 35px rgba(110,48,152,.2), inset 0 1px rgba(255,255,255,.08); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 38px rgba(135,55,190,.28),0 0 22px rgba(142,65,194,.12); }
.btn-secondary { background: rgba(48,36,59,.55); color: #cfc1d5; border-color: rgba(181,125,215,.2); }
.btn-secondary:hover { background: rgba(61,43,73,.7); color: #fff; }
.scroll-hint { width: 20px; height: 34px; margin: 46px auto 0; border: 1px solid rgba(199,151,229,.22); border-radius: 99px; display: grid; place-items: start center; padding-top: 7px; }
.scroll-hint span { width: 2px; height: 5px; border-radius: 4px; background: #ba7fe0; animation: scrollhint 1.8s ease infinite; }
@keyframes scrollhint { 50% { transform: translateY(11px); opacity: .2; } }

.section-heading { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section h2 { font-size: clamp(2.25rem,4.5vw,4rem); }
.section-heading > p:last-child { color: var(--muted); margin: 15px auto 0; }
.card-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.glass-card { min-height: 280px; padding: 30px; border: 1px solid var(--border); border-radius: 16px; background: linear-gradient(145deg,rgba(43,31,54,.72),rgba(21,17,27,.65)); box-shadow: inset 0 1px rgba(255,255,255,.02); backdrop-filter: blur(16px); transition: .22s; }
.glass-card:hover { transform: translateY(-5px); border-color: rgba(192,123,239,.4); box-shadow: 0 25px 70px rgba(0,0,0,.24),0 0 26px rgba(128,53,179,.08); }
.card-icon { width: 49px; height: 49px; display: grid; place-items: center; border-radius: 11px; border: 1px solid rgba(207,145,248,.34); color: #eadbfa; background: linear-gradient(145deg,rgba(137,75,178,.46),rgba(73,37,97,.32)); font-weight: 900; font-size: 1.2rem; }
.glass-card h3 { margin: 24px 0 8px; font-size: 1.2rem; }
.glass-card p { margin: 0; color: var(--muted); }
.text-link { display: inline-flex; gap: 8px; align-items: center; margin-top: 22px; color: var(--violet-light); font-size: .88rem; font-weight: 750; }
.text-link span { transition: .2s; }
.text-link:hover span { transform: translateX(4px); }

.split-section { display: grid; grid-template-columns: minmax(320px,.85fr) minmax(380px,1.15fr); align-items: center; gap: clamp(48px,8vw,110px); }
.orbital-visual { position: relative; aspect-ratio: 1; display: grid; place-items: center; }
.orbital-visual::before { content: ""; position: absolute; width: 70%; height: 70%; border-radius: 50%; background: rgba(134,64,183,.18); filter: blur(60px); }
.orbital-visual img { width: 70%; position: relative; z-index: 2; filter: drop-shadow(0 0 28px rgba(178,90,235,.25)); }
.orbital-ring { position: absolute; border: 1px solid rgba(186,104,235,.25); border-radius: 50%; box-shadow: 0 0 28px rgba(137,55,193,.11); }
.ring-one { width: 78%; height: 78%; transform: rotate(26deg) scaleY(.48); }
.ring-two { width: 93%; height: 93%; transform: rotate(-32deg) scaleY(.3); border-color: rgba(205,143,243,.13); }
.content-panel > p:not(.eyebrow) { color: var(--muted); font-size: 1.04rem; }
.tag-row { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 25px; }
.tag-row span { border: 1px solid var(--border); border-radius: 999px; padding: 7px 12px; color: #cbbdd2; background: rgba(52,39,65,.52); font-size: .76rem; font-weight: 700; }

.discord-card-wide { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 26px; padding: 34px 38px; border: 1px solid var(--border); border-radius: 17px; background: linear-gradient(120deg,rgba(65,43,81,.58),rgba(29,22,37,.76)); }
.discord-icon { width: 76px; height: 76px; display: grid; place-items: center; border: 1px solid rgba(199,139,241,.35); border-radius: 18px; color: #f0e3fa; background: radial-gradient(circle at 35% 30%,rgba(200,144,239,.34),rgba(92,48,119,.45)); font-size: 1.7rem; font-weight: 900; box-shadow: 0 0 28px rgba(135,55,193,.12); }
.discord-card-wide h2 { font-size: clamp(1.7rem,3vw,2.7rem); }
.discord-card-wide p:not(.eyebrow) { margin: 9px 0 0; color: var(--muted); }

.game-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; }
.game-card { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 0 18px; padding: 26px; border: 1px solid var(--border); border-radius: 16px; background: linear-gradient(145deg,rgba(43,31,54,.68),rgba(19,15,25,.74)); overflow: hidden; }
.game-card::before { content: ""; position: absolute; width: 180px; height: 180px; right: -70px; top: -90px; border-radius: 50%; background: rgba(128,55,174,.1); filter: blur(26px); }
.game-mark { position: relative; grid-column: 1/-1; height: 150px; margin-bottom: 22px; padding: 18px 26px; border: 1px solid rgba(198,139,236,.18); border-radius: 13px; display: grid; place-items: center; background: radial-gradient(ellipse at center,rgba(126,64,166,.22),rgba(16,12,23,.65) 75%); }
.game-mark img { width: 100%; max-width: 280px; height: 110px; object-fit: contain; filter: grayscale(1) sepia(.35) hue-rotate(220deg) saturate(1.8) drop-shadow(0 0 12px rgba(185,115,235,.2)); }
.game-card > div { grid-column: 1/-1; min-width: 0; }
.status-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.status-toolbar p { color: var(--muted); font-size: .8rem; margin: 0; }
.status-toolbar button:disabled { opacity: .5; cursor: wait; }
.server-status-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-bottom: 18px; }
.server-status { display: inline-flex; align-items: center; gap: 7px; color: #c1b3cc; font-size: .76rem; font-weight: 700; }
.server-status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.server-status[data-state="online"] { color: #93ddb2; }
.server-status[data-state="unreachable"] { color: #f2a0aa; }
.server-status-detail { color: var(--muted); font-size: .72rem; }
.game-card > .server-status-detail { grid-column: 1/-1; margin: 0 0 18px; padding: 12px 14px; border-left: 2px solid var(--violet); border-radius: 0 7px 7px 0; background: rgba(130,76,166,.08); font-size: .8rem; }
.game-card > .server-status-detail:empty { display: none; }
.game-card .small-btn { align-self: end; }
.game-card h3 { overflow-wrap: anywhere; }
.nav-dropdown-menu { width: min(310px, calc(100vw - 60px)); max-height: min(70vh, 620px); overflow-y: auto; }
.game-card dl > div:first-child { grid-column: 1/-1; }
.game-card h3 { margin: 0; font-size: 1.2rem; }
.game-card > div > p:last-child { margin: 4px 0 0; color: var(--muted); font-size: .88rem; }
.game-card dl { grid-column: 1/-1; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; margin: 23px 0 15px; }
.game-card dl div { padding: 11px 12px; border: 1px solid rgba(180,119,217,.13); border-radius: 9px; background: rgba(17,13,22,.45); }
.game-card dt { color: #8f7a9b; font-size: .65rem; text-transform: uppercase; letter-spacing: .12em; }
.game-card dd { margin: 2px 0 0; color: #ded2e5; font-size: .82rem; font-weight: 700; overflow-wrap: anywhere; }
.small-btn { grid-column: 1/-1; width: max-content; min-height: 37px; padding: 0 12px; border: 1px solid rgba(189,130,226,.24); background: rgba(64,44,76,.54); font-size: .75rem; }
.small-btn:hover { border-color: rgba(206,147,243,.5); background: rgba(89,51,112,.62); }
.primary-link { background: linear-gradient(90deg,#6c3b93,#8948b5); }

.hardware-card { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; min-height: 470px; border: 1px solid var(--border-strong); border-radius: 20px; background: linear-gradient(135deg,rgba(52,38,65,.72),rgba(18,14,24,.82)); overflow: hidden; box-shadow: 0 40px 110px rgba(0,0,0,.28),0 0 50px rgba(110,44,153,.08); }
.server-image-wrap { position: relative; min-height: 410px; display: grid; place-items: center; padding: 42px 28px; background: radial-gradient(circle at 48% 52%,rgba(122,57,165,.18),transparent 52%),linear-gradient(130deg,#16101e,#0a080e); }
.server-aura { position: absolute; width: 75%; height: 42%; border-radius: 50%; background: rgba(157,69,211,.22); filter: blur(70px); }
.server-image-wrap img { position: relative; z-index: 2; width: 98%; filter: drop-shadow(0 28px 28px rgba(0,0,0,.55)) drop-shadow(0 0 18px rgba(144,67,193,.14)); }
.server-copy { padding: clamp(38px,5vw,66px); }
.server-name { color: #d9cbe1; font-weight: 700; margin: 20px 0 24px; }
.spec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.spec-grid div { padding: 17px; border: 1px solid rgba(184,128,219,.13); border-radius: 11px; background: rgba(27,21,34,.64); }
.spec-grid small { display: block; color: #9e76b6; font-size: .66rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.spec-grid strong { display: block; margin-top: 3px; color: #efe8f3; font-size: .96rem; }
.spec-grid span { color: #887d8e; font-size: .78rem; }


.rules-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 960px; margin: 0 auto; }
.rule { display: flex; gap: 18px; align-items: flex-start; padding: 24px 25px; border: 1px solid rgba(181,122,219,.16); border-radius: 14px; background: rgba(31,24,39,.62); }
.rule:last-child { grid-column: 1/-1; }
.rule-number { color: #9e62c5; font-size: .72rem; font-weight: 850; letter-spacing: .12em; padding-top: 4px; }
.rule h3 { margin: 0 0 5px; font-size: 1.04rem; }
.rule p { margin: 0; color: var(--muted); font-size: .93rem; }

.support-box { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 26px; padding: 34px 38px; border: 1px solid var(--border); border-radius: 17px; background: linear-gradient(120deg,rgba(65,43,81,.58),rgba(29,22,37,.76)); }
.support-box img { width: 82px; filter: drop-shadow(0 0 16px rgba(174,84,231,.24)); }
.support-box h2 { font-size: clamp(1.65rem,3vw,2.5rem); }
.support-box p:not(.eyebrow) { margin: 9px 0 0; color: var(--muted); }
.support-note { font-size: .78rem; color: #836e90 !important; }

.site-footer { width: min(var(--max),calc(100% - 42px)); margin: 0 auto; border-top: 1px solid rgba(184,121,221,.12); color: #796f7e; font-size: .78rem; }
.footer-top { min-height: 125px; display: flex; align-items: center; gap: 26px; }
.footer-brand { display: flex; align-items: center; gap: 8px; color: #9e8ea7; letter-spacing: .13em; font-weight: 800; }
.footer-brand img { width: 31px; height: 31px; object-fit: contain; }
.footer-top > p { margin-right: auto; }
.footer-top nav { display: flex; gap: 20px; }
.footer-top nav a:hover { color: #c39bdd; }
.footer-bottom { padding: 16px 0 24px; border-top: 1px solid rgba(184,121,221,.07); }

.toast { position: fixed; z-index: 120; left: 50%; bottom: 28px; transform: translate(-50%,20px); opacity: 0; pointer-events: none; padding: 10px 15px; border: 1px solid var(--border-strong); border-radius: 9px; background: rgba(22,15,28,.94); box-shadow: 0 16px 50px rgba(0,0,0,.4); color: #e7dbea; font-size: .8rem; transition: .2s; }
.toast.show { opacity: 1; transform: translate(-50%,0); }
.modal-backdrop { position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(4,3,6,.68); backdrop-filter: blur(10px); opacity: 0; transition: .18s; }
.modal-backdrop[hidden] { display: none; }
.modal-backdrop:not(.open) { pointer-events: none; visibility: hidden; }
.modal-backdrop.open { opacity: 1; visibility: visible; pointer-events: auto; }
.modal { position: relative; width: min(460px,100%); padding: 34px; border: 1px solid var(--border-strong); border-radius: 17px; background: linear-gradient(145deg,#211729,#110d16); box-shadow: 0 35px 110px rgba(0,0,0,.5); text-align: center; transform: translateY(8px); transition: .18s; }
.modal-backdrop.open .modal { transform: none; }
.modal > img { width: 72px; margin: 0 auto 14px; }
.modal h2 { font-size: 1.45rem; }
.modal p { color: var(--muted); }
.modal-close { position: absolute; right: 12px; top: 10px; width: 36px; height: 36px; border: 0; background: transparent; color: #a697ae; font-size: 1.7rem; cursor: pointer; }
.modal-ok { margin-top: 5px; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease,transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* Rechtliche Seiten */
.legal-page { padding-top: var(--header-h); }
.legal-nav { margin-left: auto; color: #b9a9c1; font-size: .82rem; }
.legal-main { width: min(900px,calc(100% - 36px)); margin: 0 auto; padding: 70px 0 90px; }
.legal-card { padding: clamp(28px,5vw,56px); border: 1px solid var(--border); border-radius: 18px; background: rgba(27,20,34,.75); box-shadow: 0 30px 90px rgba(0,0,0,.25); }
.legal-card h1 { font-size: clamp(2.3rem,5vw,4rem); margin-bottom: 32px; }
.legal-card h2 { font-size: 1.18rem; margin: 33px 0 10px; letter-spacing: -.01em; }
.legal-card p, .legal-card li { color: var(--muted); }
.legal-card a { color: #c18ce4; }
.legal-card ul { padding-left: 20px; }
.legal-warning { padding: 15px 17px; border: 1px solid rgba(216,164,80,.25); border-radius: 10px; background: rgba(139,88,31,.11); color: #d8c3a5; font-size: .87rem; }
.legal-small { margin-top: 35px; padding-top: 20px; border-top: 1px solid rgba(184,121,221,.12); font-size: .78rem; }
.compact-footer .footer-top { min-height: 90px; }
.compact-footer .footer-top > a { margin-right: auto; }

@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

@media (max-width: 1120px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 18px; left: 18px;
    max-height: calc(100vh - 100px);
    overflow: auto;
    padding: 14px;
    flex-direction: column;
    align-items: stretch;
    gap: 3px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: rgba(17,12,23,.98);
    box-shadow: 0 18px 50px rgba(0,0,0,.32);
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: .2s;
  }
  .main-nav { visibility: hidden; }
  .main-nav.open { visibility: visible; opacity: 1; transform: none; pointer-events: auto; }
  .main-nav > a, .nav-dropdown-toggle { display: block; width: 100%; padding: 11px 13px !important; text-align: left; border-radius: 9px; }
  .main-nav > a:hover, .nav-dropdown-toggle:hover { background: rgba(126,72,158,.14); }
  .main-nav > a::after, .nav-dropdown-toggle::after { display: none; }
  .nav-dropdown-menu { position: static; width: auto; margin: 0 0 4px 18px; transform: none !important; display: none; opacity: 1; pointer-events: auto; background: rgba(10,8,14,.4); box-shadow: none; }
  .nav-dropdown.open .nav-dropdown-menu { display: block; }
  .split-section { grid-template-columns: 1fr; gap: 15px; }
  .orbital-visual { max-width: 520px; width: 88%; margin: 0 auto; }
  .content-panel { text-align: center; }
  .tag-row { justify-content: center; }
  .hardware-card { grid-template-columns: 1fr; }
  .server-image-wrap { min-height: 350px; }
  .discord-card-wide { grid-template-columns: auto 1fr; }
  .discord-card-wide .btn { grid-column: 1/-1; }
  .support-box { grid-template-columns: auto 1fr; }
  .support-box .btn { grid-column: 1/-1; }
  .footer-top { flex-wrap: wrap; justify-content: center; text-align: center; padding: 32px 0; gap: 12px 22px; }
  .footer-top > p { margin-right: 0; }
  .footer-top nav { width: 100%; justify-content: center; }
}

@media (max-width: 720px) {
  .card-grid, .game-grid, .rules-grid { grid-template-columns: 1fr; }
  .rule:last-child { grid-column: auto; }
  .game-card dl { grid-template-columns: 1fr 1fr; }
  .hero { min-height: 780px; }
  .spec-grid { grid-template-columns: 1fr; }
  .discord-card-wide, .support-box { grid-template-columns: 1fr; text-align: center; padding: 29px 23px; }
  .discord-icon, .support-box img { margin: 0 auto; }
  .footer-top { flex-direction: column; }
  .footer-top nav { width: auto; }
  .legal-card { border-radius: 13px; }
}

@media (max-width: 520px) {
  :root { --header-h: 66px; }
  .site-header { padding: 0 15px; }
  .brand span { display: none; }
  .section { width: min(100% - 30px,var(--max)); padding: 82px 0; }
  .hero { width: 100%; padding: 100px 15px 70px; }
  .hero-logo { width: min(540px,100%); }
  .hero h1 { font-size: clamp(2.15rem,11vw,3.35rem); }
  .hero-copy { font-size: .98rem; }
  .hero-actions { flex-direction: column; align-items: stretch; max-width: 360px; margin-left: auto; margin-right: auto; }
  .btn { width: 100%; }
  .game-card { padding: 21px; }
  .game-card dl { grid-template-columns: 1fr; }
  .server-image-wrap { min-height: 260px; padding: 30px 12px; }
  .server-copy { padding: 30px 22px; }
  .site-footer { width: calc(100% - 30px); }
}
#server-details-dialog { width: min(680px, calc(100% - 32px)); max-height: 85vh; overflow: auto; padding: 28px; color: var(--text); border: 1px solid var(--border-strong); border-radius: 18px; background: #191120; box-shadow: 0 24px 90px #0009; }
#server-details-dialog::backdrop { background: #08050cc9; backdrop-filter: blur(7px); }
#server-details-dialog h2 { clear: both; overflow-wrap: anywhere; }
.details-close { float: right; }
#server-details-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
#server-details-list > div { padding: 12px; border: 1px solid var(--border); border-radius: 8px; }
#server-details-list dt { color: var(--muted); font-size: .75rem; }
#server-details-list dd { margin: 4px 0 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.details-note { color: var(--muted); font-size: .8rem; }
.server-details-button { margin-bottom: 10px; }
@media(max-width: 560px) { #server-details-list { grid-template-columns: 1fr; } }
.game-card { cursor: pointer; transition: border-color .2s, box-shadow .2s; }
.game-card:hover { border-color: var(--border-strong); box-shadow: 0 12px 35px #0003; }
.game-card:focus-visible, .copy-address:focus-visible { outline: 2px solid var(--violet-light); outline-offset: 4px; }
.game-card .copy-address { cursor: copy; transition: background .2s, border-color .2s; }
.game-card .copy-address:hover { background: rgba(143,75,194,.2); border-color: var(--violet-light); }
.copy-address dt span { float: right; color: var(--violet-light); font-size: 1rem; }
.discord-live { margin-top: 20px; }
.footer-bottom-counter { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px 20px; }
.visitor-counter { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px; color: var(--violet-light); font-size: .8rem; }
.visitor-counter > span[aria-hidden] { font-size: .5rem; }
.visitor-counter strong { font-weight: 700; font-variant-numeric: tabular-nums; }
.visitor-note { font-size: .7rem; }
.visitor-note:empty { display: none; }
@media(max-width: 600px) { .footer-bottom-counter { justify-content: center; } }
.discord-icon img { width: 64px; height: 64px; object-fit: contain; }
#discord-presence { font-weight: 600; font-size: .95rem; }
#discord-presence[data-state="online"]::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #7cdda6; margin-right: 9px; box-shadow: 0 0 12px #7cdda644; }
#discord-channels { margin-top: 12px; gap: 8px; flex-wrap: wrap; }
#discord-channels span { overflow-wrap: anywhere; max-width: 100%; }
@media (max-width: 720px) { #discord-channels { justify-content: center; } }
