:root {
  --bg: #0F0E19;
  --bg-2: #14121F;
  --surface: #191627;
  --surface-2: #1F1B30;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #ECEBF4;
  --muted: #9B98B6;
  --accent: #7C5CFF;
  --accent-2: #A78BFF;
  --accent-dim: rgba(124, 92, 255, 0.16);
  --mint: #3DFFC0;
  --gold: #FFB020;
  --gold-dim: rgba(255, 176, 32, 0.14);
  --red: #FF4D5E;
  --danger-dim: rgba(255, 77, 94, 0.12);
  --tg: #2AABEE;
  --radius: 18px;
  --radius-sm: 12px;
  --font-head: "Russo One", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(700px 420px at 85% -10%, rgba(124, 92, 255, 0.14), transparent 60%),
    radial-gradient(600px 380px at -10% 25%, rgba(255, 77, 94, 0.07), transparent 60%),
    radial-gradient(800px 500px at 50% 115%, rgba(61, 255, 192, 0.05), transparent 60%),
    var(--bg);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(900px 600px at 50% 0%, #000 0%, transparent 75%);
}

::selection {
  background: rgba(124, 92, 255, 0.5);
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  border-radius: 12px;
  padding: 12px 18px;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
  user-select: none;
}

.btn:active {
  transform: translateY(1px);
}

.btn svg {
  flex-shrink: 0;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #5B3DFF);
  color: #fff;
  box-shadow: 0 6px 22px rgba(124, 92, 255, 0.35);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(124, 92, 255, 0.5);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold), #FF8A00);
  color: #1B1200;
  box-shadow: 0 6px 22px rgba(255, 176, 32, 0.28);
}

.btn-gold:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(255, 176, 32, 0.42);
}

.btn-tg {
  background: linear-gradient(135deg, #2AABEE, #1798DC);
  color: #fff;
  box-shadow: 0 6px 22px rgba(42, 171, 238, 0.3);
}

.btn-tg:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(42, 171, 238, 0.45);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--border-strong);
  color: var(--text);
}

.btn-outline:hover {
  border-color: var(--accent);
  background: var(--accent-dim);
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
}

.btn-ghost:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.btn-lg {
  padding: 15px 26px;
  font-size: 16px;
  border-radius: 14px;
}

.btn-sm {
  padding: 9px 13px;
  font-size: 13.5px;
  border-radius: 10px;
}

.btn-block {
  width: 100%;
}

.btn[disabled],
.btn.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
  box-shadow: none;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 14, 25, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 70px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
  font-family: var(--font-head);
  font-size: 19px;
  letter-spacing: 0.4px;
}

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), #5B3DFF);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(124, 92, 255, 0.45);
}

.logo-mark svg {
  width: 19px;
  height: 19px;
}

.logo-mark-img {
  padding: 0;
  overflow: hidden;
}

.logo-mark-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.logo b {
  font-weight: 400;
  color: #fff;
}

.logo span {
  display: block;
  font-size: 10.5px;
  letter-spacing: 2.4px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  margin-top: -3px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 14px;
}

.nav-links a {
  padding: 8px 13px;
  border-radius: 10px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.15s ease, background 0.15s ease;
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.nav-links a.active {
  color: #fff;
  background: var(--accent-dim);
}

.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-actions .btn {
  padding: 10px 15px;
  font-size: 14px;
  border-radius: 11px;
}

.burger {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.burger svg {
  width: 20px;
  height: 20px;
}

/* ---------- Steam chip ---------- */

.auth-chip {
  position: relative;
}

.auth-chip-btn {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  padding: 5px 10px 5px 5px;
  color: var(--text);
  transition: background 0.15s ease, border-color 0.15s ease;
}

.auth-chip-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent);
}

.auth-avatar {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--accent), #5B3DFF);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: var(--font-head);
  font-size: 13px;
  color: #fff;
}

.auth-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.auth-name {
  font-size: 13.5px;
  font-weight: 600;
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.auth-idc {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  line-height: 1.25;
}

.auth-idc .auth-name {
  line-height: 1.2;
}

.auth-role {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--muted);
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-role.role-admin {
  color: var(--mint);
}

.auth-chip-chev {
  color: var(--muted);
  width: 14px;
  height: 14px;
}

.auth-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 240px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  z-index: 50;
  animation: pop 0.16s ease;
}

@keyframes pop {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.auth-menu[hidden] {
  display: none;
}

.auth-menu-head {
  padding: 13px 15px;
  border-bottom: 1px solid var(--border);
}

.auth-menu-user {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.auth-menu-user .auth-avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  font-size: 18px;
}

.auth-menu-idc {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

.auth-menu-name {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 15px;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-menu-head .auth-id {
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: 12px;
  color: var(--text);
}

.auth-menu-head p {
  font-size: 12px;
  color: var(--muted);
  font-family: inherit;
}

.auth-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 11px 15px;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 14px;
  text-align: left;
  transition: background 0.12s ease;
}

.auth-menu-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.auth-menu-item.danger:hover {
  background: var(--danger-dim);
  color: var(--red);
}

.auth-menu-item svg {
  width: 16px;
  height: 16px;
  color: var(--muted);
}

.auth-menu-item.danger:hover svg {
  color: var(--red);
}

.steam-btn {
  background: linear-gradient(135deg, #17212B, #1B2838);
  border: 1px solid rgba(102, 192, 244, 0.35);
  color: #B9D9F2;
}

.steam-btn:hover {
  border-color: #66C0F4;
  color: #fff;
  box-shadow: 0 8px 22px rgba(102, 192, 244, 0.22);
}

.steam-btn svg {
  width: 18px;
  height: 18px;
  fill: #66C0F4;
}

.steam-btn img {
  width: 18px;
  height: 18px;
}

.admin-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--mint);
  background: rgba(61, 255, 192, 0.1);
  border: 1px solid rgba(61, 255, 192, 0.35);
  border-radius: 999px;
  padding: 2px 7px;
}

/* ---------- Hero ---------- */

.hero {
  padding: 92px 0 76px;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-2);
  background: var(--accent-dim);
  border: 1px solid rgba(124, 92, 255, 0.35);
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 24px;
}

.hero h1 {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: clamp(32px, 5.4vw, 62px);
  line-height: 1.14;
  letter-spacing: 0.3px;
  max-width: 860px;
  margin: 0 auto 20px;
}

.hero h1 span {
  background: linear-gradient(90deg, var(--accent-2), var(--mint));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  font-size: 17.5px;
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto 34px;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-size: 13.5px;
  color: var(--muted);
  flex-wrap: wrap;
}

.hero-note svg {
  width: 17px;
  height: 17px;
  color: var(--mint);
  flex-shrink: 0;
}

/* ---------- Sections ---------- */

.section {
  padding: 70px 0;
}

.section-head {
  text-align: center;
  margin-bottom: 42px;
}

.section-title {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: clamp(24px, 3.2vw, 36px);
  letter-spacing: 0.3px;
  margin-bottom: 12px;
}

.section-sub {
  color: var(--muted);
  font-size: 15.5px;
  max-width: 620px;
  margin: 0 auto;
}

/* ---------- Notice ---------- */

.notice {
  background:
    linear-gradient(135deg, rgba(255, 77, 94, 0.09), rgba(124, 92, 255, 0.07)),
    var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--red);
  border-radius: var(--radius);
  padding: 26px 30px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
  align-items: start;
  max-width: 860px;
  margin: 0 auto;
}

.notice-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--danger-dim);
  border: 1px solid rgba(255, 77, 94, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.notice-icon svg {
  width: 25px;
  height: 25px;
  color: var(--red);
}

.notice h3 {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 18px;
  margin-bottom: 6px;
}

.notice p {
  color: var(--muted);
  font-size: 14.5px;
}

.notice ul {
  margin-top: 12px;
  display: grid;
  gap: 9px;
  list-style: none;
}

.notice li {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  font-size: 14.5px;
  color: var(--text);
}

.notice li svg {
  width: 17px;
  height: 17px;
  color: var(--mint);
  margin-top: 4px;
  flex-shrink: 0;
}

/* ---------- Features ---------- */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 13px;
  position: relative;
  overflow: hidden;
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.18s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-dim);
  border: 1px solid rgba(124, 92, 255, 0.3);
  color: var(--accent-2);
}

.feature-icon svg {
  width: 22px;
  height: 22px;
}

.feature-icon.gold {
  background: var(--gold-dim);
  border-color: rgba(255, 176, 32, 0.3);
  color: var(--gold);
}

.feature-icon.tg {
  background: rgba(42, 171, 238, 0.12);
  border-color: rgba(42, 171, 238, 0.3);
  color: var(--tg);
}

.feature-card h3 {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 17px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.feature-card p {
  color: var(--muted);
  font-size: 14.5px;
  flex-grow: 1;
}

/* ---------- Badges ---------- */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 4px 10px;
  white-space: nowrap;
}

.badge-wip {
  color: #FFD98A;
  background: rgba(255, 176, 32, 0.12);
  border: 1px solid rgba(255, 176, 32, 0.4);
}

.badge-live {
  color: var(--mint);
  background: rgba(61, 255, 192, 0.1);
  border: 1px solid rgba(61, 255, 192, 0.4);
}

.badge-admin {
  color: #FF9DB0;
  background: rgba(255, 77, 94, 0.12);
  border: 1px solid rgba(255, 77, 94, 0.4);
}

/* ---------- Socials / Contacts ---------- */

.social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.social-card {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.social-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
}

.social-logo {
  width: 54px;
  height: 54px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
}

.social-logo img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.btn img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.social-logo.tg {
  background: linear-gradient(135deg, #2AABEE, #1798DC);
  box-shadow: 0 8px 20px rgba(42, 171, 238, 0.3);
}

.social-logo.discord {
  background: linear-gradient(135deg, #5865F2, #4652D8);
  box-shadow: 0 8px 20px rgba(88, 101, 242, 0.3);
}

.social-card h3 {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 17px;
  margin-bottom: 4px;
}

.social-card p {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 14px;
}

.social-card .btn {
  align-self: flex-end;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.contact-card .contact-label {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-card .contact-label svg {
  width: 17px;
  height: 17px;
  color: var(--accent-2);
}

.contact-card h3 {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 17px;
}

.contact-card p {
  color: var(--muted);
  font-size: 14px;
  flex-grow: 1;
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.contact-email {
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: 14px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 9px 12px;
}

.contact-hint {
  font-size: 12.5px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 7px;
}

.contact-hint svg {
  width: 15px;
  height: 15px;
  color: var(--accent-2);
}

/* ---------- Page head (download) ---------- */

.page-head {
  padding: 66px 0 36px;
  text-align: center;
}

.page-head h1 {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: clamp(30px, 4.4vw, 46px);
  margin-bottom: 14px;
}

.page-head p {
  color: var(--muted);
  font-size: 16px;
  max-width: 640px;
  margin: 0 auto 18px;
}

.steam-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 14px;
}

.steam-note svg {
  width: 15px;
  height: 15px;
  color: #66C0F4;
}

.steam-note img {
  width: 15px;
  height: 15px;
}

/* ---------- Download cards ---------- */

.dl-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}

.dl-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  overflow: hidden;
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.dl-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
}

.dl-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.dl-thumb .thumb-bg {
  position: absolute;
  inset: 0;
}

.dl-thumb-q {
  background:
    radial-gradient(320px 200px at 50% 20%, rgba(124, 92, 255, 0.28), transparent 70%),
    linear-gradient(160deg, #201C38, #14121F);
}

.dl-thumb-eye {
  background:
    radial-gradient(320px 200px at 50% 20%, rgba(61, 255, 192, 0.16), transparent 70%),
    linear-gradient(160deg, #14352E, #0F1F1A);
}

.q-mark {
  font-family: var(--font-head);
  font-size: clamp(60px, 9vw, 96px);
  line-height: 1;
  color: var(--accent-2);
  text-shadow: 0 12px 44px rgba(124, 92, 255, 0.55);
  position: relative;
  animation: floaty 4s ease-in-out infinite;
}

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.eye-icon {
  width: 74px;
  height: 74px;
  color: var(--mint);
  filter: drop-shadow(0 10px 34px rgba(61, 255, 192, 0.4));
  position: relative;
  animation: floaty 4s ease-in-out infinite;
}

.eye-icon svg {
  width: 100%;
  height: 100%;
}

.thumb-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
}

.dl-body {
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-grow: 1;
}

.dl-body h2 {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 21px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.dl-body .desc {
  color: var(--muted);
  font-size: 14.5px;
  flex-grow: 1;
}

.dl-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12.5px;
  color: var(--muted);
  flex-wrap: wrap;
}

.dl-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.dl-meta svg {
  width: 14px;
  height: 14px;
  color: var(--accent-2);
}

/* ---------- Access panel ---------- */

.access-panel {
  border-radius: 14px;
  border: 1px solid var(--border);
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: auto;
  background: rgba(255, 255, 255, 0.02);
}

.access-panel .access-icon {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
}

.access-panel .access-icon svg {
  width: 20px;
  height: 20px;
}

.access-panel .access-info {
  flex-grow: 1;
}

.access-panel .access-info b {
  display: block;
  font-size: 14px;
}

.access-panel .access-info span {
  display: block;
  font-size: 12.5px;
  color: var(--muted);
}

.state-anon .access-icon {
  color: var(--accent-2);
  background: var(--accent-dim);
}

.state-denied .access-icon {
  color: var(--red);
  background: var(--danger-dim);
}

.state-admin .access-icon {
  color: var(--mint);
  background: rgba(61, 255, 192, 0.12);
}

.state-loading .access-icon {
  color: var(--accent-2);
  background: var(--accent-dim);
}

.state-error .access-icon {
  color: var(--gold);
  background: var(--gold-dim);
}

.spinner {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2.5px solid rgba(124, 92, 255, 0.25);
  border-top-color: var(--accent);
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ---------- Steps ---------- */

.steps {
  max-width: 860px;
  margin: 0 auto;
  display: grid;
  gap: 14px;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
}

.step-num {
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 11px;
  background: var(--accent-dim);
  border: 1px solid rgba(124, 92, 255, 0.35);
  color: var(--accent-2);
  font-family: var(--font-head);
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step h3 {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 15.5px;
  margin-bottom: 3px;
}

.step p {
  color: var(--muted);
  font-size: 14px;
}

.step code {
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: 12.5px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1px 6px;
  color: var(--accent-2);
}

/* ---------- Links strip ---------- */

.links-strip {
  margin-top: 16px;
}

.dl-help {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  text-align: center;
  color: var(--muted);
  font-size: 14.5px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.dl-help svg {
  width: 17px;
  height: 17px;
  color: var(--gold);
  flex-shrink: 0;
}

.dl-help a {
  color: var(--accent-2);
  border-bottom: 1px dashed rgba(124, 92, 255, 0.45);
  transition: color 0.15s ease, border-color 0.15s ease;
}

.dl-help a:hover {
  color: var(--mint);
  border-color: rgba(61, 255, 192, 0.5);
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-2);
  margin-top: 40px;
  padding: 40px 0 28px;
}

.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}

.footer-brand p {
  color: var(--muted);
  font-size: 13.5px;
  max-width: 420px;
  margin-top: 12px;
}

.footer-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 13.5px;
  color: var(--muted);
  padding: 7px 11px;
  border-radius: 9px;
  transition: color 0.15s ease, background 0.15s ease;
}

.footer-links a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--muted);
}

.footer-bottom .disclaimer {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.footer-bottom .disclaimer svg {
  width: 14px;
  height: 14px;
  color: var(--gold);
}

/* ---------- Toast ---------- */

.toast-wrap {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  width: min(94vw, 460px);
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 11px;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: 13px;
  padding: 12px 16px;
  font-size: 14px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  animation: toastIn 0.22s ease;
  pointer-events: auto;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.toast.out {
  animation: toastOut 0.2s ease forwards;
}

@keyframes toastOut {
  to { opacity: 0; transform: translateY(12px); }
}

.toast svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.toast.ok svg { color: var(--mint); }
.toast.warn svg { color: var(--gold); }
.toast.err svg { color: var(--red); }

/* ---------- Helpers ---------- */

.muted {
  color: var(--muted);
}

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 26px; }
.mt-4 { margin-top: 40px; }

.text-center {
  text-align: center;
}

.hidden {
  display: none !important;
}

@media (min-width: 961px) {
  .hide-desktop {
    display: none !important;
  }
}

/* ---------- Mobile nav ---------- */

.mobile-nav {
  display: none;
  position: fixed;
  inset: 70px 0 0;
  z-index: 90;
  background: rgba(15, 14, 25, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 22px 24px 34px;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 13px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  border: 1px solid transparent;
}

.mobile-nav a:hover,
.mobile-nav a.active {
  background: rgba(124, 92, 255, 0.12);
  border-color: rgba(124, 92, 255, 0.3);
}

.mobile-nav a svg {
  width: 19px;
  height: 19px;
  color: var(--accent-2);
}

.mobile-nav .mobile-actions {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  .nav-links {
    display: none;
  }

  .burger {
    display: inline-flex;
  }

  .header-actions .btn-text {
    display: none;
  }

  .header-actions .btn {
    padding: 10px 12px;
  }
}

@media (max-width: 720px) {
  .container {
    padding: 0 18px;
  }

  .hero {
    padding: 66px 0 52px;
  }

  .section {
    padding: 52px 0;
  }

  .dl-grid {
    grid-template-columns: 1fr;
  }

  .notice {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .header-actions {
    gap: 8px;
  }

  .header-actions .btn {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 11px;
  }

  .auth-chip-btn .auth-idc,
  .auth-chip-chev {
    display: none;
  }

  .auth-chip-btn {
    padding: 5px;
  }

  .social-card,
  .access-panel {
    flex-direction: column;
    align-items: stretch;
    text-align: left;
  }

  .social-card .btn {
    align-self: flex-start;
  }

  .access-panel .access-info span {
    display: block;
  }
}

@media (max-width: 420px) {
  .logo > span {
    display: none;
  }
}