:root {
  --bg: #06070a;
  --bg-2: #0c0e14;
  --panel: rgba(14, 16, 22, 0.78);
  --panel-solid: #10131a;
  --line: rgba(232, 226, 214, 0.1);
  --line-strong: rgba(232, 226, 214, 0.18);
  --text: #f3efe6;
  --muted: #9a9aa8;
  --crimson: #c41628;
  --crimson-2: #ff3d4d;
  --ember: #ff7a45;
  --gold: #d4a54a;
  --silver: #b8c0cc;
  --bronze: #c47a4a;
  --green: #3ecf8e;
  --amber: #f0b429;
  --wrap: 1180px;
  --display: "Oswald", "Segoe UI", sans-serif;
  --ui: "Manrope", "Segoe UI", sans-serif;
  --radius: 14px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  font-family: var(--ui);
  background:
    radial-gradient(ellipse 70% 45% at 10% -10%, rgba(196, 22, 40, 0.18), transparent 55%),
    radial-gradient(ellipse 50% 40% at 90% 0%, rgba(255, 122, 69, 0.08), transparent 50%),
    linear-gradient(180deg, #08090d, var(--bg));
  line-height: 1.55;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
button { cursor: pointer; }
svg { display: block; }

.ambient {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: .55;
  background-image:
    linear-gradient(rgba(255,255,255,.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.015) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
}

.wrap {
  width: min(var(--wrap), calc(100% - 2rem));
  margin-inline: auto;
}

.site-announcement {
  position: relative;
  z-index: 35;
  padding: .7rem 1rem;
  text-align: center;
  font-size: .86rem;
  font-weight: 700;
  color: #f3efe6;
  background: linear-gradient(90deg, rgba(196,22,40,.22), rgba(255,122,69,.12), rgba(196,22,40,.22));
  border-bottom: 1px solid rgba(196, 22, 40, .35);
}
.news-empty {
  margin: .85rem 0 0;
  color: var(--muted);
  font-size: .88rem;
}

/* —— Nav —— */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(6, 7, 10, 0.78);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px) saturate(1.15);
}
.nav-row {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .85rem;
  flex: 0 0 auto;
}
.brand-claws {
  position: relative;
  width: 34px;
  height: 42px;
  flex: 0 0 auto;
}
.brand-claws i {
  position: absolute;
  top: 0;
  width: 5px;
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(180deg, #ff5260, var(--crimson));
  box-shadow: 0 0 16px rgba(196, 22, 40, .5);
  transform-origin: top center;
}
.brand-claws i:nth-child(1) { left: 4px; transform: rotate(-22deg); }
.brand-claws i:nth-child(2) { left: 14px; transform: rotate(-18deg); height: 108%; top: -2px; }
.brand-claws i:nth-child(3) { left: 24px; transform: rotate(-14deg); }
.brand-lockup {
  display: flex;
  flex-direction: column;
  line-height: 1;
  gap: .2rem;
}
.brand-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.85rem;
  letter-spacing: .08em;
}
.brand-sub {
  font-weight: 700;
  font-size: .74rem;
  letter-spacing: .34em;
  color: var(--crimson-2);
}
.menu {
  display: flex;
  gap: 1.4rem;
}
.menu a {
  position: relative;
  font-size: .86rem;
  font-weight: 700;
  color: var(--muted);
  padding: .35rem 0;
  letter-spacing: .02em;
  text-transform: uppercase;
  transition: color .15s;
}
.menu a:hover,
.menu a.active { color: var(--text); }
.menu a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: linear-gradient(90deg, var(--crimson), var(--ember));
}
.nav-right { display: flex; align-items: center; gap: .55rem; }
.nav-auth-guest,
.nav-auth-user {
  display: flex;
  align-items: center;
  gap: .55rem;
}
.nav-auth-guest[hidden],
.nav-auth-user[hidden] { display: none !important; }
.nav-user {
  max-width: 10rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
  font-size: .84rem;
  letter-spacing: .02em;
  color: var(--text, #f2f2f2);
  opacity: .92;
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: .72rem 1.15rem;
  font-weight: 800;
  font-size: .84rem;
  letter-spacing: .03em;
  text-transform: uppercase;
  transition: transform .15s, background .15s, border-color .15s, box-shadow .15s, filter .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn.ghost {
  background: rgba(255,255,255,.03);
  border-color: var(--line-strong);
}
.btn.ghost:hover { background: rgba(255,255,255,.07); }
.btn.primary {
  background: linear-gradient(135deg, #ff4a57, var(--crimson));
  color: #fff;
  box-shadow: 0 14px 34px rgba(196, 22, 40, .38);
}
.btn.primary:hover {
  filter: brightness(1.06);
  box-shadow: 0 18px 40px rgba(196, 22, 40, .48);
}
.btn.soft {
  background: rgba(255,255,255,.05);
  border-color: var(--line-strong);
}
.btn.lg { padding: 1rem 1.5rem; font-size: .9rem; }
.btn.wide { width: 100%; }
.btn-ico { width: 1.05em; height: 1.05em; flex: 0 0 auto; }
.btn.is-disabled { opacity: .7; cursor: not-allowed; filter: saturate(.7); }
.btn.discord {
  background: #5865f2;
  border-color: #5865f2;
  color: #fff;
  box-shadow: 0 10px 24px rgba(88, 101, 242, .28);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 700;
}
.linkish {
  border: 0;
  background: none;
  color: var(--crimson-2);
  font-weight: 700;
  padding: 0;
}
.linkish:hover { text-decoration: underline; }

/* —— Hero —— */
.hero {
  position: relative;
  z-index: 1;
  min-height: min(92vh, 820px);
  overflow: hidden;
  display: grid;
  align-items: center;
}
.hero-bg, .hero-veil { position: absolute; inset: 0; }
.hero-bg {
  background-size: cover;
  background-position: center 28%;
  transform: scale(1.05);
  animation: drift 22s ease-in-out infinite alternate;
}
.hero-veil {
  background:
    linear-gradient(115deg, rgba(6,7,10,.95) 0%, rgba(6,7,10,.7) 36%, rgba(6,7,10,.25) 62%, rgba(6,7,10,.82) 100%),
    linear-gradient(180deg, rgba(6,7,10,.35) 0%, transparent 30%, rgba(6,7,10,.98) 100%);
}
@keyframes drift {
  from { transform: scale(1.05) translate(0,0); }
  to { transform: scale(1.1) translate(-1.4%, -.8%); }
}
.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 1.8rem;
  align-items: end;
  padding: 6rem 0 4.4rem;
}
.pill {
  display: inline-flex;
  margin: 0 0 1rem;
  padding: .4rem .85rem;
  border: 1px solid var(--line-strong);
  background: rgba(255,255,255,.04);
  color: #ddd4c8;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  clip-path: polygon(0 0, 100% 0, 100% 70%, 94% 100%, 0 100%);
}
.hero-copy h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(3.8rem, 9vw, 6.4rem);
  line-height: .88;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.hero-copy h1 span {
  background: linear-gradient(90deg, var(--crimson-2), var(--ember));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead {
  margin: 1.15rem 0 0;
  max-width: 36ch;
  color: #cfc8bc;
  font-size: 1.08rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.7rem;
}

.online-panel {
  position: relative;
  align-self: center;
  justify-self: end;
  min-width: min(100%, 220px);
  padding: 1.35rem 1.5rem 1.45rem;
  text-align: center;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.08);
  background:
    linear-gradient(160deg, rgba(196,22,40,.16), rgba(8,8,10,.55) 45%, rgba(8,8,10,.72));
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.05);
  overflow: hidden;
}
.online-panel-glow {
  position: absolute;
  inset: -40% auto auto 50%;
  width: 180px;
  height: 180px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(196,22,40,.35), transparent 68%);
  pointer-events: none;
}
.online-kicker {
  position: relative;
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.online-kicker i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--muted);
}
.online-panel.is-live .online-kicker i {
  background: var(--green);
  box-shadow: 0 0 12px rgba(62, 207, 142, .85);
}
.online-panel.is-down .online-kicker i {
  background: #ff6b7a;
}
.online-count {
  position: relative;
  margin: .55rem 0 .15rem;
  font-family: var(--display);
  font-size: clamp(3.2rem, 6vw, 4.4rem);
  line-height: .95;
  letter-spacing: .02em;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 0 28px rgba(196,22,40,.35);
}
.online-count.is-muted {
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  letter-spacing: .04em;
  color: var(--amber);
  text-shadow: none;
}
.online-label {
  position: relative;
  margin: 0;
  font-family: var(--display);
  font-size: 1.05rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.72);
}

.server-card {
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 1.2rem;
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.05);
}
.server-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: 1rem;
}
.server-head h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.35rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .74rem;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
}
.badge i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--muted);
}
.badge.is-online { color: var(--green); }
.badge.is-online i {
  background: var(--green);
  box-shadow: 0 0 12px rgba(62, 207, 142, .85);
}
.badge.is-offline { color: #ff6b7a; }
.badge.is-offline i { background: #ff6b7a; }

.server-list { margin: 0; display: grid; gap: .65rem; }
.server-list > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .78rem .85rem;
  border-radius: 10px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.05);
}
.server-list dt {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  color: var(--muted);
  font-size: .84rem;
  font-weight: 700;
}
.stat-ico {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: rgba(196, 22, 40, .14);
  color: var(--crimson-2);
  flex: 0 0 auto;
}
.stat-ico svg { width: 15px; height: 15px; }
.server-list dd {
  margin: 0;
  font-weight: 800;
  font-size: .92rem;
}
.server-note {
  margin: .95rem 0 0;
  color: var(--muted);
  font-size: .74rem;
}

/* —— Quick cards —— */
.quick {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 1.4rem auto 1.8rem;
}
.qcard {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 1rem;
  text-align: left;
  min-height: 196px;
  padding: 1.2rem 1.15rem 1.1rem;
  border-radius: 18px;
  border: 1px solid rgba(232, 226, 214, 0.12);
  background:
    linear-gradient(165deg, rgba(255,255,255,.06), transparent 42%),
    linear-gradient(180deg, #171b25 0%, #0d1018 100%);
  color: inherit;
  box-shadow:
    0 18px 40px rgba(0,0,0,.35),
    inset 0 1px 0 rgba(255,255,255,.05);
  overflow: hidden;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.qcard::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--crimson-2), var(--ember));
  opacity: .75;
}
.qcard:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 61, 77, .42);
  box-shadow:
    0 24px 48px rgba(196, 22, 40, .18),
    inset 0 1px 0 rgba(255,255,255,.07);
}
.qico {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 30% 25%, rgba(255,120,90,.28), transparent 55%),
    linear-gradient(160deg, rgba(255, 70, 84, .22), rgba(196, 22, 40, .08));
  border: 1px solid rgba(255, 61, 77, .28);
  color: var(--crimson-2);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1);
}
.qico svg { width: 24px; height: 24px; }
.qcopy {
  display: grid;
  gap: .35rem;
  align-content: start;
}
.qcopy em {
  font-style: normal;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .16em;
  color: var(--muted);
}
.qcopy strong {
  display: block;
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  line-height: 1.05;
}
.qcopy small {
  color: #a7a7b4;
  font-size: .8rem;
  line-height: 1.4;
}
.qarrow {
  justify-self: end;
  color: rgba(255,255,255,.28);
  font-size: 1.15rem;
  transition: color .15s, transform .15s;
}
.qcard:hover .qarrow {
  color: var(--crimson-2);
  transform: translateX(4px);
}

/* —— Content / news —— */
.content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.2fr .9fr;
  gap: 1rem;
  margin: 2.2rem auto 1.4rem;
}
.feature {
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid var(--line);
  min-height: 430px;
  background: #0b0d12;
  box-shadow: var(--shadow);
}
.feature > img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
  filter: brightness(.66) saturate(1.05);
}
.feature-copy {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.6rem 1.45rem;
  background: linear-gradient(180deg, transparent, rgba(6,7,10,.96));
}
.kicker {
  margin: 0;
  color: var(--ember);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.feature-copy h2 {
  margin: .4rem 0 .5rem;
  font-family: var(--display);
  font-size: clamp(1.8rem, 3vw, 2.55rem);
  line-height: 1.02;
  text-transform: uppercase;
}
.feature-copy p {
  margin: 0;
  color: #d4cec4;
  max-width: 38ch;
}
.news {
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid var(--line);
  background: var(--panel-solid);
  padding: 1.1rem;
  display: grid;
  gap: .55rem;
  box-shadow: var(--shadow);
}
.news-head h2 {
  margin: 0 0 .5rem;
  font-family: var(--display);
  font-size: 1.4rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.news article {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: .8rem;
  padding: .55rem;
  border-radius: 10px;
  transition: background .15s;
}
.news article:hover { background: rgba(255,255,255,.035); }
.news img {
  width: 92px;
  height: 68px;
  object-fit: cover;
  border-radius: 8px;
}
.news time { color: var(--muted); font-size: .72rem; font-weight: 700; }
.news h3 {
  margin: .2rem 0 0;
  font-size: .94rem;
  line-height: 1.25;
}

/* —— Ranking boards —— */
.rank-preview {
  position: relative;
  z-index: 2;
  margin: 0 auto 3rem;
  clear: both;
}
.rank-shell {
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  background:
    linear-gradient(160deg, rgba(196, 22, 40, .08), transparent 40%),
    linear-gradient(180deg, #12151d, #0c0f15);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.rank-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem 1.4rem 1.1rem;
  border-bottom: 1px solid var(--line);
}
.rank-head h2 {
  margin: .2rem 0 0;
  font-family: var(--display);
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.rank-head p {
  margin: .35rem 0 0;
  color: var(--muted);
  font-size: .88rem;
}
.rank-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.2rem;
  padding: .85rem 1.4rem;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: .78rem;
  font-weight: 700;
}
.board-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
}
.board-col {
  min-width: 0;
  border-right: 1px solid rgba(255,255,255,.06);
  background: linear-gradient(180deg, rgba(255,255,255,.02), transparent 28%);
}
.board-col:last-child { border-right: 0; }
.board-col-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .95rem 1.1rem .75rem;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.board-col-title {
  margin: 0;
  font-family: var(--display);
  font-size: .88rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--text);
}
.board-col-metric {
  color: var(--muted);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.board-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.board-row {
  display: grid;
  grid-template-columns: 28px 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: .65rem;
  padding: .78rem 1.05rem;
  border-bottom: 1px solid rgba(255,255,255,.045);
}
.board-row:last-child { border-bottom: 0; }
.board-row:hover { background: rgba(255,255,255,.03); }
.board-place {
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--muted);
}
.board-place.is-1 { color: #ff6b7a; }
.board-place.is-2 { color: #c8d0dc; }
.board-place.is-3 { color: #b08968; }
.board-ico {
  width: 36px;
  height: 36px;
  object-fit: contain;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  -ms-interpolation-mode: nearest-neighbor;
  flex: 0 0 auto;
  filter: drop-shadow(0 0 0.5px rgba(255,255,255,.35));
}
.board-crest {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  background: #0a0d12;
  border: 1px solid rgba(212, 175, 95, .28);
}
.board-main {
  min-width: 0;
  display: grid;
  gap: .12rem;
}
.board-name {
  display: flex;
  align-items: center;
  gap: .4rem;
  margin: 0;
  font-weight: 800;
  font-size: .95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.board-sub {
  margin: 0;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.board-stat {
  text-align: right;
  display: grid;
  gap: .1rem;
  justify-items: end;
}
.board-stat-main {
  display: inline-flex;
  align-items: center;
  padding: .22rem .55rem;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 800;
  color: #e8e2d6;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  line-height: 1.2;
  max-width: 9.5rem;
}
.board-stat-sub {
  color: var(--muted);
  font-size: .66rem;
  font-weight: 600;
}
.online-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px rgba(62, 207, 142, .8);
  flex: 0 0 auto;
}
.rank-empty,
.rank-loading {
  padding: 2.2rem 1.2rem;
  text-align: center;
  color: var(--muted);
  font-size: .88rem;
}
.rank-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.4rem 1.25rem;
  border-top: 1px solid var(--line);
}

/* —— Download page —— */
.dl-hero {
  position: relative;
  z-index: 1;
  overflow: hidden;
  min-height: 420px;
  display: grid;
  align-items: end;
}
.dl-hero-bg, .dl-hero-veil { position: absolute; inset: 0; }
.dl-hero-bg {
  background-size: cover;
  background-position: center 30%;
  transform: scale(1.04);
}
.dl-hero-veil {
  background:
    linear-gradient(105deg, rgba(6,7,10,.94) 0%, rgba(6,7,10,.7) 42%, rgba(6,7,10,.45) 70%, rgba(6,7,10,.88) 100%),
    linear-gradient(180deg, rgba(6,7,10,.35) 0%, transparent 35%, rgba(6,7,10,.98) 100%);
}
.dl-hero-inner {
  position: relative;
  z-index: 2;
  padding: 5.5rem 0 3rem;
}
.dl-hero-inner h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.9rem, 6vw, 4.6rem);
  line-height: .95;
  text-transform: uppercase;
  letter-spacing: .02em;
}
.dl-hero-inner h1 span {
  background: linear-gradient(90deg, var(--crimson-2), var(--ember));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.dl-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.5rem;
}
.dl-meta {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: .86rem;
  font-weight: 700;
}
.dl-meta.is-soon { color: var(--amber); }
.dl-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 1rem;
  margin: 0 auto 1.5rem;
}
.dl-card {
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid var(--line);
  background:
    linear-gradient(160deg, rgba(255,255,255,.035), transparent 35%),
    var(--panel-solid);
  padding: 1.35rem 1.3rem 1.25rem;
  box-shadow: var(--shadow);
}
.dl-card.featured {
  border-color: rgba(196, 22, 40, .4);
  background:
    radial-gradient(ellipse 80% 50% at 20% 0%, rgba(196, 22, 40, .16), transparent 55%),
    linear-gradient(160deg, rgba(255,255,255,.04), transparent 40%),
    #10131a;
}
.dl-card-ico {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  color: var(--crimson-2);
  background: linear-gradient(160deg, rgba(255, 70, 84, .24), rgba(196, 22, 40, .08));
  border: 1px solid rgba(255, 61, 77, .25);
}
.dl-card-ico svg { width: 26px; height: 26px; }
.dl-card h2, .dl-card h3 {
  margin: 0 0 .55rem;
  font-family: var(--display);
  font-size: 1.4rem;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.dl-card > p {
  margin: 0 0 1.1rem;
  color: #c8c8d2;
  font-size: .95rem;
}
.dl-specs {
  list-style: none;
  margin: 0 0 1.2rem;
  padding: 0;
  display: grid;
  gap: .55rem;
}
.dl-specs li {
  display: flex;
  justify-content: space-between;
  gap: .75rem;
  padding: .7rem .85rem;
  border-radius: 10px;
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.06);
  font-size: .88rem;
}
.dl-specs span { color: var(--muted); }
.dl-side { display: grid; gap: 1rem; }
.dl-steps {
  list-style: none;
  margin: .85rem 0 0;
  padding: 0;
  display: grid;
  gap: .85rem;
}
.dl-steps li {
  display: flex;
  gap: .85rem;
  align-items: flex-start;
}
.step-num {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  font-weight: 800;
  font-size: .82rem;
  color: #fff;
  background: linear-gradient(180deg, #ff4454, var(--crimson));
}
.dl-steps strong { display: block; font-size: .94rem; }
.dl-steps small { color: var(--muted); font-size: .8rem; line-height: 1.4; }
.dl-reqs {
  list-style: none;
  margin: .85rem 0 0;
  padding: 0;
  display: grid;
  gap: .65rem;
}
.dl-reqs li {
  display: flex;
  align-items: center;
  gap: .7rem;
  color: #d2d2dc;
  font-size: .9rem;
  font-weight: 600;
}
.dl-reqs svg {
  width: 18px;
  height: 18px;
  color: var(--crimson-2);
  flex: 0 0 auto;
}
.dl-help {
  position: relative;
  z-index: 2;
  margin: 0 auto 3rem;
}
.dl-help-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  padding: 1.35rem 1.4rem;
  border-radius: calc(var(--radius) + 2px);
  border: 1px solid var(--line);
  background: linear-gradient(120deg, rgba(196, 22, 40, .12), rgba(16,19,26,.95));
}
.dl-help-card h2 {
  margin: 0 0 .35rem;
  font-family: var(--display);
  font-size: 1.3rem;
  text-transform: uppercase;
}
.dl-help-card p {
  margin: 0;
  color: var(--muted);
  max-width: 52ch;
  font-size: .92rem;
}

.page-hero {
  position: relative;
  z-index: 1;
  padding: 4.8rem 0 2rem;
}
.page-hero h1 {
  margin: .35rem 0 0;
  font-family: var(--display);
  font-size: clamp(2.6rem, 5vw, 4rem);
  letter-spacing: .04em;
  text-transform: uppercase;
  line-height: .95;
}
.page-hero p {
  margin: .85rem 0 0;
  color: var(--muted);
  max-width: 52ch;
}

/* —— Footer —— */
.footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--line);
  padding: 1.5rem 0 1.7rem;
  background: #040507;
}
.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.footer strong {
  font-family: var(--display);
  letter-spacing: .08em;
}
.footer p {
  margin: .15rem 0 0;
  color: var(--muted);
  font-size: .82rem;
}
.footer-links {
  display: flex;
  gap: 1.1rem;
  color: var(--muted);
  font-weight: 700;
  font-size: .86rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.footer-links a:hover { color: var(--text); }

/* —— Modals —— */
.modal[hidden], .toast[hidden] { display: none !important; }
.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1rem;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.82);
  backdrop-filter: blur(8px);
}
.modal-panel {
  position: relative;
  width: min(440px, 100%);
  padding: 1.45rem 1.25rem 1.2rem;
  border-radius: calc(var(--radius) + 4px);
  background:
    linear-gradient(180deg, rgba(255,255,255,.04), transparent 30%),
    linear-gradient(180deg, #171b24, #0c0f15);
  border: 1px solid rgba(196, 22, 40, .38);
  box-shadow: 0 28px 80px rgba(0,0,0,.55);
}
.modal-x {
  position: absolute;
  top: .55rem;
  right: .8rem;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 1.55rem;
}
.modal-brand {
  display: flex;
  align-items: center;
  gap: .7rem;
  margin-bottom: .35rem;
}
.modal-brand img {
  height: 48px;
  width: auto;
  object-fit: contain;
}
.modal-panel h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.7rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.modal-sub, .modal-note {
  color: var(--muted);
  font-size: .9rem;
}
#login-form,
#register-form {
  display: grid;
  gap: .75rem;
  margin-top: 1rem;
}
#login-form label,
#register-form label {
  display: grid;
  gap: .3rem;
  font-size: .82rem;
  font-weight: 700;
}
#login-form input,
#register-form input {
  width: 100%;
  padding: .8rem .9rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #090b11;
  outline: none;
  transition: border-color .15s;
}
#login-form input:focus,
#register-form input:focus {
  border-color: rgba(255, 61, 77, .6);
}
.form-msg { min-height: 1.15em; margin: 0; font-size: .88rem; }
.form-msg.error { color: #ff6b7a; }
.form-msg.ok { color: var(--green); }

.discord-gate {
  margin: .85rem 0 0;
  padding: .9rem .95rem;
  border-radius: 12px;
  border: 1px solid rgba(88, 101, 242, .35);
  background: rgba(88, 101, 242, .08);
}
.discord-gate-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .85rem;
}
.discord-gate-row strong { display: block; font-size: .92rem; }
.discord-gate-row small {
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.35;
}
.discord-gate-status {
  margin: .7rem 0 0;
  font-size: .84rem;
  font-weight: 700;
}
.discord-gate-status.ok { color: var(--green); }
.discord-gate-status.error { color: #ff6b7a; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.25rem;
  transform: translateX(-50%);
  z-index: 90;
  padding: .85rem 1.2rem;
  border-radius: 999px;
  background: #141820;
  border: 1px solid rgba(196, 22, 40, .35);
  box-shadow: 0 12px 40px rgba(0,0,0,.4);
}

/* —— Credit store —— */
.store-hero { padding-bottom: 1.2rem; }
.store-section { margin-bottom: 3.5rem; }
.redeem-section { margin-top: .4rem; }
.redeem-card {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 1.4rem;
  align-items: start;
  padding: 1.35rem 1.3rem;
  border-radius: 18px;
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(196, 22, 40, .12), transparent 42%),
    linear-gradient(180deg, #141820, #0d1016);
}
.redeem-card h2 {
  margin: .2rem 0 .45rem;
  font-family: var(--display);
  letter-spacing: .04em;
  text-transform: uppercase;
  font-size: clamp(1.4rem, 2.2vw, 1.85rem);
}
.redeem-card > div > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: .92rem;
  max-width: 36ch;
}
.redeem-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
}
.redeem-form label {
  display: grid;
  gap: .35rem;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--muted);
}
.redeem-form input {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(0,0,0,.28);
  padding: .75rem .85rem;
  color: var(--text);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 600;
  font-size: .95rem;
}
.redeem-span { grid-column: 1 / -1; }
.redeem-form .btn { justify-self: start; }
@media (max-width: 860px) {
  .redeem-card { grid-template-columns: 1fr; }
  .redeem-form { grid-template-columns: 1fr; }
}
.store-rate {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1.35rem;
  padding: .55rem .95rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
  font-size: .82rem;
}
.store-rate span {
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: .68rem;
}
.store-rate strong { font-weight: 800; }
.credit-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .85rem;
}
.credit-pack {
  position: relative;
  display: grid;
  gap: .85rem;
  padding: 1.15rem 1.1rem 1.05rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background:
    linear-gradient(165deg, rgba(255,255,255,.04), transparent 46%),
    linear-gradient(180deg, #141820, #0d1016);
  text-align: left;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.credit-pack:hover {
  border-color: rgba(196, 22, 40, .45);
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(0,0,0,.28);
}
.credit-pack.is-hot {
  border-color: rgba(196, 22, 40, .55);
  background:
    linear-gradient(165deg, rgba(196, 22, 40, .14), transparent 50%),
    linear-gradient(180deg, #171b24, #0d1016);
}
.credit-pack-badge {
  position: absolute;
  top: .75rem;
  right: .75rem;
  padding: .2rem .5rem;
  border-radius: 999px;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, #ff4a57, var(--crimson));
}
.credit-pack-amount {
  font-family: var(--display);
  font-size: clamp(1.55rem, 2.4vw, 2rem);
  letter-spacing: .03em;
  line-height: 1;
}
.credit-pack-amount small {
  display: block;
  margin-top: .35rem;
  font-family: var(--ui);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.credit-pack-price {
  font-size: 1.05rem;
  font-weight: 800;
}
.credit-pack-price span {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 600;
}
.credit-pack .btn { width: 100%; }

.cart-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: rgba(255,255,255,.03);
  color: var(--text);
}
.cart-btn:hover { background: rgba(255,255,255,.07); }
.cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--crimson);
  color: #fff;
  font-size: .68rem;
  font-weight: 800;
  line-height: 18px;
  text-align: center;
}
.cart-drawer[hidden] { display: none !important; }
.cart-drawer { position: fixed; inset: 0; z-index: 70; }
.cart-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.55);
}
.cart-panel {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(400px, 100%);
  display: flex;
  flex-direction: column;
  background: #0e1118;
  border-left: 1px solid var(--line);
  box-shadow: -20px 0 60px rgba(0,0,0,.4);
}
.cart-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.2rem;
  border-bottom: 1px solid var(--line);
}
.cart-panel-head h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.35rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.cart-items {
  flex: 1;
  overflow: auto;
  padding: .85rem 1.1rem;
  display: grid;
  gap: .65rem;
  align-content: start;
}
.cart-empty {
  padding: 2rem 1rem;
  text-align: center;
  color: var(--muted);
  font-size: .9rem;
}
.cart-line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .55rem .85rem;
  padding: .85rem .9rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
}
.cart-line-main strong { display: block; font-size: .95rem; }
.cart-line-main span {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 600;
}
.cart-line-side {
  display: grid;
  gap: .45rem;
  justify-items: end;
  align-content: start;
}
.cart-line-price { font-weight: 800; font-size: .9rem; }
.cart-qty {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.cart-qty button {
  width: 28px;
  height: 28px;
  border: 0;
  background: rgba(255,255,255,.04);
  color: var(--text);
  font-weight: 800;
}
.cart-qty button:hover { background: rgba(255,255,255,.08); }
.cart-qty em {
  min-width: 1.4rem;
  text-align: center;
  font-style: normal;
  font-weight: 800;
  font-size: .84rem;
}
.cart-remove {
  border: 0;
  background: none;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 700;
  padding: 0;
}
.cart-remove:hover { color: #ff6b7a; }
.cart-panel-foot {
  padding: 1rem 1.2rem 1.25rem;
  border-top: 1px solid var(--line);
  display: grid;
  gap: .65rem;
}
.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: .9rem;
}
.cart-total strong {
  font-family: var(--display);
  font-size: 1.4rem;
  letter-spacing: .02em;
}
.cart-credits {
  margin: -.25rem 0 0;
  color: var(--muted);
  font-size: .8rem;
  font-weight: 600;
}

@media (max-width: 980px) {
  .menu { display: none; }
  .brand-name { font-size: 1.45rem; }
  .hero-grid { grid-template-columns: 1fr; padding-top: 4.2rem; }
  .online-panel { justify-self: start; margin-top: .5rem; }
  .quick { grid-template-columns: 1fr 1fr; margin-top: 1rem; }
  .content { grid-template-columns: 1fr; }
  .dl-grid { grid-template-columns: 1fr; }
  .dl-help-card { flex-direction: column; align-items: flex-start; }
  .rank-head { flex-direction: column; align-items: flex-start; }
  .board-grid { grid-template-columns: 1fr; }
  .board-col { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.06); }
  .board-col:last-child { border-bottom: 0; }
  .credit-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .nav-row { min-height: 72px; }
  .brand-name { font-size: 1.2rem; }
  .brand-sub { letter-spacing: .22em; font-size: .64rem; }
  .brand-claws { width: 24px; height: 30px; }
  .brand-claws i { width: 4px; }
  .quick { grid-template-columns: 1fr; }
  .footer-row { flex-direction: column; text-align: center; }
  .qarrow { display: none; }
  .discord-gate-row { flex-direction: column; align-items: stretch; }
  .btn.discord { width: 100%; }
  .credit-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-bg { animation: none; }
}
