/* SBS Namalsk - public start page. "Frost" theme: cold blue-black, ice accents,
   a warm ember tone reserved for the things that matter (rank 1, live). */

:root {
  --bg: #06090f;
  --bg-2: #0b111b;
  --panel: rgba(14, 21, 33, 0.78);
  --panel-solid: #0f1724;
  --line: rgba(150, 205, 255, 0.12);
  --line-strong: rgba(150, 205, 255, 0.24);
  --text: #e7eef7;
  --muted: #8b9cb2;
  --ice: #8fe3ff;
  --ice-2: #39b4e3;
  --ice-glow: rgba(143, 227, 255, 0.35);
  --ember: #ffb454;
  --ok: #4be08a;
  --bad: #ff6b6b;
  --discord: #5865f2;
  --radius: 14px;
  --display: 'Bahnschrift', 'DIN Alternate', 'Arial Narrow', 'Segoe UI', sans-serif;
  --body: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
svg { width: 18px; height: 18px; flex: none; }
[hidden] { display: none !important; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 18px;
  border: 1px solid transparent; border-radius: 10px;
  font: 600 14px/1 var(--body); letter-spacing: 0.02em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform 0.15s, background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible, .icon-btn:focus-visible, .ip-copy:focus-visible { outline: 2px solid var(--ice); outline-offset: 2px; }
.btn-ice { background: linear-gradient(180deg, var(--ice), var(--ice-2)); color: #04131c; box-shadow: 0 6px 24px -8px var(--ice-glow); }
.btn-ice:hover { box-shadow: 0 8px 30px -6px var(--ice-glow); }
.btn-frost { background: rgba(143, 227, 255, 0.08); border-color: var(--line-strong); color: var(--text); backdrop-filter: blur(8px); }
.btn-frost:hover { background: rgba(143, 227, 255, 0.16); border-color: var(--ice); }
.btn-ghost { background: transparent; border-color: var(--line-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--ice); color: var(--ice); }
.btn-discord { background: var(--discord); color: #fff; }
.btn-discord:hover { background: #4752e0; }

/* ---------- Top bar ---------- */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; gap: 24px;
  height: 68px; padding: 0 max(16px, calc((100vw - 1240px) / 2));
  transition: background 0.25s, border-color 0.25s;
  border-bottom: 1px solid transparent;
}
.topbar.scrolled { background: rgba(6, 9, 15, 0.86); backdrop-filter: blur(14px); border-color: var(--line); }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ice); }
.logo-mark { width: 34px; height: 34px; filter: drop-shadow(0 0 8px var(--ice-glow)); }
.logo-text { font: 700 22px/1 var(--display); letter-spacing: 0.08em; color: var(--text); }
.logo-text span { margin-left: 6px; color: var(--ice); font-weight: 300; letter-spacing: 0.22em; font-size: 15px; }
.topnav { display: flex; gap: 4px; margin-left: auto; }
.topnav a {
  padding: 8px 14px; border-radius: 8px; text-decoration: none;
  font: 500 15px/1 var(--display); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted);
}
.topnav a:hover { color: var(--text); background: rgba(143, 227, 255, 0.07); }
.top-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 10px;
  color: var(--muted); border: 1px solid var(--line); background: rgba(143, 227, 255, 0.04);
}
.icon-btn:hover { color: #fff; background: var(--discord); border-color: var(--discord); }
.icon-btn svg { width: 22px; height: 22px; }

/* ---------- Dropdown menus ---------- */
.menu { position: relative; }
.dropdown {
  position: absolute; right: 0; top: calc(100% + 10px); width: 270px; padding: 14px;
  background: var(--panel-solid); border: 1px solid var(--line-strong); border-radius: var(--radius);
  box-shadow: 0 24px 60px -12px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(0, 0, 0, 0.3);
  animation: drop 0.16s ease-out;
}
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } }
.steam-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px; height: 46px; border-radius: 10px;
  background: linear-gradient(180deg, #1b2838, #10171f); border: 1px solid #2a475e;
  color: #fff; font-weight: 600; text-decoration: none;
}
.steam-btn:hover { border-color: #66c0f4; box-shadow: 0 0 0 3px rgba(102, 192, 244, 0.15); }
.steam-btn svg { width: 22px; height: 22px; color: #66c0f4; }
.drop-note { margin: 10px 2px 12px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.drop-link { display: block; padding-top: 10px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; text-decoration: none; text-align: center; }
.drop-link:hover { color: var(--ice); }

.btn-account { padding: 0 12px 0 6px; background: rgba(143, 227, 255, 0.06); border-color: var(--line-strong); color: var(--text); }
.btn-account:hover { border-color: var(--ice); }
.avatar {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px;
  background: linear-gradient(135deg, var(--ice-2), #1d4f7a); color: #fff; font: 700 14px/1 var(--display);
}
.account-name { max-width: 140px; overflow: hidden; text-overflow: ellipsis; }
.chev { width: 16px; height: 16px; opacity: 0.7; }
.dropdown-list { width: 240px; padding: 6px; }
.dropdown-list a, .dropdown-list button, .dropdown-list .soon {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border: 0; border-radius: 8px;
  background: none; color: var(--text); font: 500 14px/1.2 var(--body); text-decoration: none; text-align: left; cursor: pointer;
}
.dropdown-list a svg, .dropdown-list button svg, .dropdown-list .soon svg { color: var(--ice); }
.dropdown-list a:hover, .dropdown-list button:hover { background: rgba(143, 227, 255, 0.08); }
.dropdown-list .soon { cursor: default; color: var(--muted); }
.dropdown-list .soon svg { color: var(--muted); }
.dropdown-list em {
  margin-left: auto; padding: 3px 7px; border-radius: 5px; font: 700 10px/1 var(--display);
  letter-spacing: 0.1em; text-transform: uppercase; font-style: normal;
  color: var(--ember); background: rgba(255, 180, 84, 0.12); border: 1px solid rgba(255, 180, 84, 0.3);
}
.dropdown-list hr { margin: 6px 4px; border: 0; border-top: 1px solid var(--line); }
.dropdown-list #logoutBtn svg { color: var(--bad); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(100vh, 980px); display: flex; flex-direction: column; justify-content: center; align-items: stretch; padding: 110px 16px 80px; overflow: hidden; isolation: isolate; }
/* The 4x4 satellite tiles form a square; keep it square and let it overflow. */
.hero-map {
  position: absolute; z-index: -3; left: 62%; top: 50%;
  width: max(120vw, 1500px); aspect-ratio: 1;
  display: grid; grid-template-columns: repeat(4, 1fr);
  transform: translate(-50%, -50%) rotate(-8deg);
  filter: grayscale(1) brightness(0.55) contrast(1.25);
  animation: drift 80s ease-in-out infinite alternate;
}
.hero-map img { width: 100%; aspect-ratio: 1; display: block; }
@keyframes drift { to { transform: translate(-53%, -47%) rotate(-6deg) scale(1.06); } }
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(0deg, var(--bg) 0%, transparent 35%),
    linear-gradient(rgba(14, 60, 100, 0.35), rgba(14, 60, 100, 0.35)),
    radial-gradient(1200px 600px at 75% 40%, rgba(57, 180, 227, 0.16), transparent 60%),
    linear-gradient(90deg, rgba(6, 9, 15, 0.96) 0%, rgba(6, 9, 15, 0.7) 45%, rgba(6, 9, 15, 0.55) 100%);
}
.hero::after {
  /* faint scan grid, like a recon screen */
  content: ''; position: absolute; inset: 0; z-index: -2; opacity: 0.25;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 70% 50%, #000 10%, transparent 70%);
}
.snow { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
.hero-inner {
  width: 100%; max-width: 1240px; margin: 0 auto;
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center;
}
.status-pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 12px; border-radius: 999px;
  background: rgba(14, 21, 33, 0.7); border: 1px solid var(--line-strong);
  font: 600 13px/1 var(--display); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
}
.pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); }
.status-pill.on { color: var(--ok); border-color: rgba(75, 224, 138, 0.35); }
.status-pill.on .pulse { background: var(--ok); box-shadow: 0 0 0 0 rgba(75, 224, 138, 0.6); animation: pulse 2s infinite; }
.status-pill.off { color: var(--bad); border-color: rgba(255, 107, 107, 0.35); }
.status-pill.off .pulse { background: var(--bad); }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(75, 224, 138, 0); } 100% { box-shadow: 0 0 0 0 rgba(75, 224, 138, 0); } }
.hero h1 {
  margin: 22px 0 18px; font: 700 clamp(52px, 8vw, 104px)/0.92 var(--display);
  letter-spacing: -0.01em; text-transform: uppercase;
}
.hero h1 span {
  color: transparent; background: linear-gradient(180deg, #fff 0%, var(--ice) 55%, var(--ice-2) 100%);
  -webkit-background-clip: text; background-clip: text;
  filter: drop-shadow(0 0 28px rgba(143, 227, 255, 0.25));
}
.lead { max-width: 520px; margin: 0 0 30px; font-size: 17px; color: #b4c3d6; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-cta .btn { height: 50px; padding: 0 24px; font-size: 15px; }
#heroIp { font-variant-numeric: tabular-nums; }

/* ---------- Server card ---------- */
.server-card {
  position: relative; border-radius: 20px; overflow: hidden;
  background: var(--panel); border: 1px solid var(--line-strong);
  backdrop-filter: blur(16px);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.server-card::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--ice), transparent);
}
.sc-banner { position: relative; aspect-ratio: 2 / 1; overflow: hidden; border-bottom: 1px solid var(--line); background: #0b0f15; }
.sc-logo { display: block; width: 100%; height: 100%; object-fit: cover; }
.sc-banner::after { content: ''; position: absolute; inset: auto 0 0 0; height: 30%; background: linear-gradient(0deg, rgba(14, 21, 33, 0.9), transparent); pointer-events: none; }
.sc-title { padding: 16px 22px 14px; background: var(--panel-solid); border-bottom: 1px solid var(--line); }
.sc-kicker { font: 600 12px/1 var(--display); letter-spacing: 0.22em; text-transform: uppercase; color: var(--ice); }
.sc-title h2 { margin: 6px 0 0; font: 700 22px/1.15 var(--display); letter-spacing: 0.02em; }
.sc-live {
  position: absolute; right: 16px; top: 16px; z-index: 2; padding: 6px 10px; border-radius: 8px;
  font: 700 12px/1 var(--display); letter-spacing: 0.14em; text-transform: uppercase;
  background: rgba(6, 9, 15, 0.7); border: 1px solid var(--line-strong); color: var(--muted);
}
.sc-live.on { color: var(--ok); border-color: rgba(75, 224, 138, 0.4); }
.sc-live.off { color: var(--bad); border-color: rgba(255, 107, 107, 0.4); }
.sc-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 0; background: var(--line); }
.sc-facts > div { padding: 16px 22px; background: var(--panel-solid); }
.sc-facts dt { font: 600 11px/1 var(--display); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.sc-facts dd { margin: 8px 0 0; font: 600 18px/1.2 var(--display); font-variant-numeric: tabular-nums; }
.ip-copy {
  display: inline-flex; align-items: center; gap: 8px; padding: 0; border: 0; background: none; cursor: pointer;
  color: var(--text); font: inherit;
}
.ip-copy svg { width: 15px; height: 15px; color: var(--muted); }
.ip-copy:hover, .ip-copy:hover svg { color: var(--ice); }
.meter { height: 5px; margin-top: 8px; border-radius: 9px; background: rgba(143, 227, 255, 0.1); overflow: hidden; }
.meter span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--ice-2), var(--ice)); transition: width 0.8s ease; }
.mods { border-top: 1px solid var(--line); background: var(--panel-solid); }
.mods summary {
  padding: 12px 22px; cursor: pointer; list-style: none; color: var(--muted);
  font: 600 12px/1 var(--display); letter-spacing: 0.14em; text-transform: uppercase;
}
.mods summary::-webkit-details-marker { display: none; }
.mods summary::after { content: ' +'; color: var(--ice); }
.mods[open] summary::after { content: ' –'; }
.mods ul { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0 22px 16px; list-style: none; }
.mods li { padding: 4px 9px; border-radius: 6px; font-size: 12px; color: #b4c3d6; background: rgba(143, 227, 255, 0.06); border: 1px solid var(--line); }
.sc-actions { display: grid; grid-template-columns: 1fr; gap: 10px; padding: 18px 22px 20px; border-top: 1px solid var(--line); }
.sc-hint { margin: -6px 22px 18px; padding: 10px 12px; border-radius: 10px; font-size: 13px; color: #cfe9f5; background: rgba(143, 227, 255, 0.08); border: 1px solid var(--line-strong); }

/* ---------- Sections ---------- */
.section { max-width: 1240px; margin: 0 auto; padding: 80px 16px 0; }
.section-head { margin-bottom: 28px; }
.eyebrow { font: 600 13px/1 var(--display); letter-spacing: 0.24em; text-transform: uppercase; color: var(--ice); }
.section-head h2, .clan-copy h2 { margin: 10px 0 6px; font: 700 clamp(30px, 4vw, 44px)/1.05 var(--display); text-transform: uppercase; }
.section-head p { margin: 0; color: var(--muted); }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; }
.stat {
  position: relative; padding: 22px 20px 20px; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(180deg, rgba(20, 30, 46, 0.9), rgba(12, 18, 28, 0.9));
  border: 1px solid var(--line);
  transition: border-color 0.2s, transform 0.2s;
}
.stat:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.stat::after {
  content: ''; position: absolute; right: -30px; top: -30px; width: 90px; height: 90px; border-radius: 50%;
  background: radial-gradient(circle, var(--c, var(--ice)) 0%, transparent 70%); opacity: 0.12;
}
.stat svg { width: 26px; height: 26px; color: var(--c, var(--ice)); }
.stat b { display: block; margin-top: 14px; font: 700 30px/1 var(--display); font-variant-numeric: tabular-nums; letter-spacing: 0.01em; }
.stat span { display: block; margin-top: 6px; font: 600 12px/1.2 var(--display); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

.boards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.board { border-radius: var(--radius); background: var(--panel-solid); border: 1px solid var(--line); overflow: hidden; }
.board h3 {
  display: flex; align-items: center; gap: 10px; margin: 0; padding: 16px 18px;
  font: 700 16px/1 var(--display); letter-spacing: 0.1em; text-transform: uppercase; border-bottom: 1px solid var(--line);
}
.board h3 svg { color: var(--ice); }
.board ol { margin: 0; padding: 6px; list-style: none; }
.board li { display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px; }
.board li:nth-child(odd) { background: rgba(143, 227, 255, 0.03); }
.rank { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; font: 700 13px/1 var(--display); color: var(--muted); background: rgba(143, 227, 255, 0.06); }
.board li:first-child .rank { color: #1b1203; background: linear-gradient(180deg, #ffd38a, var(--ember)); box-shadow: 0 0 16px -2px rgba(255, 180, 84, 0.6); }
.board li:nth-child(2) .rank { color: #0b1420; background: #c9d6e4; }
.board li:nth-child(3) .rank { color: #1a0f06; background: #c98f5a; }
.pname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.pval { font: 600 15px/1 var(--display); font-variant-numeric: tabular-nums; color: var(--ice); }
.board .empty { padding: 18px; color: var(--muted); font-size: 14px; }

.clan-teaser {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; padding: 44px;
  border-radius: 22px; border: 1px solid var(--line-strong); position: relative; overflow: hidden;
  background:
    radial-gradient(600px 300px at 0% 0%, rgba(88, 101, 242, 0.22), transparent 70%),
    radial-gradient(500px 300px at 100% 100%, rgba(57, 180, 227, 0.16), transparent 70%),
    var(--bg-2);
}
.clan-copy p { margin: 0; color: #b4c3d6; max-width: 460px; }
.steps { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.steps li { display: flex; align-items: center; gap: 16px; padding: 14px 16px; border-radius: 12px; background: rgba(6, 9, 15, 0.55); border: 1px solid var(--line); }
.steps li > span {
  display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 10px;
  font: 700 18px/1 var(--display); color: var(--ice); border: 1px solid var(--line-strong); background: rgba(143, 227, 255, 0.06);
}
.steps strong { display: block; font: 700 16px/1.2 var(--display); letter-spacing: 0.04em; text-transform: uppercase; }
.steps small { color: var(--muted); font-size: 13px; }

.footer {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  max-width: 1240px; margin: 80px auto 0; padding: 26px 16px 34px; border-top: 1px solid var(--line);
  color: var(--muted); font-size: 13px;
}
.footer a { text-decoration: none; }
.footer a:hover { color: var(--ice); }

.toast {
  position: fixed; left: 50%; bottom: 26px; z-index: 100; transform: translateX(-50%);
  padding: 12px 18px; border-radius: 10px; font-weight: 600; color: #04131c;
  background: var(--ice); box-shadow: 0 12px 40px -10px var(--ice-glow);
  animation: drop 0.2s ease-out;
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero { min-height: auto; padding-top: 100px; }
  .clan-teaser { grid-template-columns: 1fr; padding: 28px; gap: 24px; }
}
@media (max-width: 760px) {
  .topnav { display: none; }
  .top-actions { margin-left: auto; }
  .account-name { display: none; }
  .logo-text span { display: none; }
  .sc-facts { grid-template-columns: 1fr; }
  .sc-actions { grid-template-columns: 1fr; }
  .stat b { font-size: 24px; }
  .section { padding-top: 60px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* Grid children may not grow past the viewport on narrow phones. */
.hero-inner > *, .clan-teaser > *, .boards > *, .stat-grid > * { min-width: 0; }
@media (max-width: 420px) {
  .stat-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat { padding: 16px 14px; }
  .hero h1 { font-size: 46px; }
  .hero-cta .btn { width: 100%; }
}

/* ---------- Stats strip inside the hero (seen right away) ---------- */
.hero-stats { width: 100%; max-width: 1240px; margin: 56px auto 0; }
.hs-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 12px; }
.hs-title { font: 700 18px/1 var(--display); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text); }
.hero-stats .stat-grid {
  grid-template-columns: repeat(7, 1fr); gap: 0;
  border-radius: 18px; overflow: hidden;
  background: rgba(10, 16, 26, 0.62); border: 1px solid var(--line-strong);
  backdrop-filter: blur(14px);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.hero-stats .stat {
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center;
  padding: 18px 16px; border: 0; border-radius: 0; background: none; align-content: center;
  border-left: 1px solid var(--line);
}
.hero-stats .stat:first-child { border-left: 0; }
.hero-stats .stat:hover { transform: none; background: rgba(143, 227, 255, 0.04); }
.hero-stats .stat::after {
  right: auto; left: 0; top: auto; bottom: 0; width: 100%; height: 2px; border-radius: 0;
  background: linear-gradient(90deg, transparent, var(--c), transparent); opacity: 0; transition: opacity 0.25s;
}
.hero-stats .stat:hover::after { opacity: 0.8; }
.hero-stats .stat svg {
  grid-row: 1 / 3; width: 38px; height: 38px; padding: 8px; border-radius: 10px;
  background: color-mix(in srgb, var(--c) 14%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 30%, transparent);
}
.hero-stats .stat b { margin: 0; font-size: 26px; }
.hero-stats .stat span { margin-top: 5px; font-size: 11px; line-height: 1.25; letter-spacing: 0.1em; }
@media (max-width: 1200px) {
  .hero-stats .stat-grid { grid-template-columns: repeat(4, 1fr); }
  .hero-stats .stat { border-top: 1px solid var(--line); }
  .hero-stats .stat:nth-child(4n + 1) { border-left: 0; }
  .hero-stats .stat:nth-child(-n + 4) { border-top: 0; }
}
@media (max-width: 640px) {
  .hero-stats .stat-grid { grid-template-columns: 1fr 1fr; }
  .hero-stats .stat { border-top: 1px solid var(--line) !important; border-left: 1px solid var(--line) !important; }
  .hero-stats .stat:nth-child(odd) { border-left: 0 !important; }
  .hero-stats .stat:nth-child(-n + 2) { border-top: 0 !important; }
  .hero-stats .stat b { font-size: 21px; }
  .hs-head { flex-direction: column; gap: 6px; }
}

/* ---------- Language switch ---------- */
.lang-switch { display: flex; padding: 3px; border-radius: 10px; border: 1px solid var(--line); background: rgba(143, 227, 255, 0.04); }
.lang-switch button {
  height: 34px; padding: 0 10px; border: 0; border-radius: 7px; background: none; cursor: pointer;
  color: var(--muted); font: 700 12px/1 var(--display); letter-spacing: 0.1em;
}
.lang-switch button:hover { color: var(--text); }
.lang-switch button.active { background: rgba(143, 227, 255, 0.14); color: var(--ice); }

/* =================== My stats page =================== */
.skeleton { background: linear-gradient(90deg, rgba(143,227,255,.06), rgba(143,227,255,.14), rgba(143,227,255,.06)); background-size: 200% 100%; animation: shimmer 1.4s infinite linear; }
@keyframes shimmer { to { background-position: -200% 0; } }

.me-hero { position: relative; padding: 120px 16px 0; overflow: hidden; isolation: isolate; }
.me-hero::before {
  content: ''; position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(0deg, var(--bg) 0%, transparent 45%),
    linear-gradient(rgba(14, 60, 100, 0.35), rgba(14, 60, 100, 0.35)),
    linear-gradient(90deg, rgba(6, 9, 15, 0.94) 0%, rgba(6, 9, 15, 0.6) 100%);
}
.me-hero .hero-map { left: 60%; top: 40%; }
.me-inner {
  max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end;
}
.me-inner > * { min-width: 0; }
.me-profile { display: flex; align-items: center; gap: 28px; }
.me-avatar {
  flex: none; width: 128px; height: 128px; border-radius: 26px; overflow: hidden; display: grid; place-items: center;
  border: 2px solid var(--ice); box-shadow: 0 0 0 6px rgba(143, 227, 255, 0.08), 0 20px 50px -10px rgba(57, 180, 227, 0.45);
  background: linear-gradient(135deg, var(--ice-2), #12324f);
}
.me-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.me-avatar span { font: 700 56px/1 var(--display); color: #fff; }
.me-id { min-width: 0; }
.me-id h1 {
  margin: 14px 0 10px; font: 700 clamp(36px, 5.5vw, 64px)/0.95 var(--display); text-transform: uppercase; letter-spacing: 0.01em;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.me-sub { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: 14px; }
.me-sub a, .me-sub span { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.me-sub a { color: #b4c3d6; }
.me-sub a:hover { color: var(--ice); }
.me-sub svg { width: 16px; height: 16px; }
.me-playtime {
  display: grid; justify-items: end; gap: 4px; padding: 18px 24px; border-radius: 18px; text-align: right;
  background: rgba(10, 16, 26, 0.62); border: 1px solid var(--line-strong); backdrop-filter: blur(14px);
}
.me-playtime b { font: 700 54px/1 var(--display); color: var(--ice); text-shadow: 0 0 30px rgba(143, 227, 255, 0.3); font-variant-numeric: tabular-nums; }
.me-pt-sub { color: var(--muted); font-size: 13px; }
.rank-chip, .stat-rank {
  display: inline-block; padding: 4px 9px; border-radius: 999px; font: 700 11px/1 var(--display); letter-spacing: 0.08em; font-style: normal;
  color: var(--ember); background: rgba(255, 180, 84, 0.1); border: 1px solid rgba(255, 180, 84, 0.3); white-space: nowrap;
}
.me-stats { margin-top: 40px; }
.me-stats .stat-grid { grid-template-columns: repeat(4, 1fr); }
.me-stats .stat { border-top: 1px solid var(--line); padding: 20px 22px; }
.me-stats .stat:nth-child(4n + 1) { border-left: 0; }
.me-stats .stat:nth-child(-n + 4) { border-top: 0; }
.me-stats .stat b { font-size: 30px; }
.me-stats .stat svg { width: 44px; height: 44px; padding: 10px; }
.me-stats .stat { grid-template-rows: auto auto auto; }
.me-stats .stat .stat-rank { grid-column: 2; justify-self: start; margin-top: 8px; padding: 3px 7px; font-size: 10px; }
.me-stats .stat .stat-rank[hidden] { display: none; }

.me-main { padding-top: 48px; max-width: 1272px; }
.me-boards .section-head, .me-next { max-width: none; }
.me-cols { display: grid; grid-template-columns: 1.15fr 1fr; gap: 16px; }
.me-cols > * { min-width: 0; }
.panel { border-radius: 18px; background: var(--panel-solid); border: 1px solid var(--line); overflow: hidden; }
.panel-head { display: flex; align-items: center; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.panel-head h2 { margin: 0; font: 700 18px/1 var(--display); letter-spacing: 0.1em; text-transform: uppercase; }
.panel-icon {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; flex: none; color: var(--c);
  background: color-mix(in srgb, var(--c) 14%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 30%, transparent);
}
.panel-icon svg { width: 20px; height: 20px; }
.weapons { padding: 10px 22px 20px; }
.weapon { padding: 10px 0; border-bottom: 1px solid rgba(150, 205, 255, 0.06); }
.weapon:last-child { border-bottom: 0; }
.weapon-row { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.weapon-name { display: flex; align-items: center; gap: 10px; font: 600 16px/1.2 var(--display); letter-spacing: 0.03em; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.weapon-pos { color: var(--muted); font-size: 12px; width: 14px; }
.weapon-meta { color: var(--muted); font-size: 13px; white-space: nowrap; }
.weapon-meta b { color: var(--text); font-weight: 600; }
.weapon-bar { height: 4px; margin-top: 8px; margin-left: 24px; border-radius: 9px; background: rgba(143, 227, 255, 0.07); overflow: hidden; }
.weapon-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #ff9a3c, var(--ember)); }
.weapon:first-child .weapon-bar span { box-shadow: 0 0 12px rgba(255, 180, 84, 0.6); }
.facts { margin: 0; padding: 6px 22px 14px; }
.facts > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid rgba(150, 205, 255, 0.06); }
.facts > div:last-child { border-bottom: 0; }
.facts dt { color: var(--muted); font-size: 14px; }
.facts dd { margin: 0; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.muted-note { color: var(--muted); margin: 16px 0; }

.me-boards { margin-top: 64px; }
.boards-6 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); align-items: start; }
.board h3 small { margin-left: auto; font: 500 11px/1 var(--body); letter-spacing: 0.02em; text-transform: none; color: var(--muted); }
.board li.me { background: rgba(143, 227, 255, 0.1) !important; box-shadow: inset 3px 0 0 var(--ice); }
.board li.me .pname { color: var(--ice); }
.board li.me em { font: 700 10px/1 var(--display); letter-spacing: 0.1em; text-transform: uppercase; padding: 2px 6px; border-radius: 5px; background: var(--ice); color: #04131c; margin-left: 6px; }
.board li.gap { display: block; text-align: center; color: var(--muted); padding: 2px; background: none !important; }

.me-next { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 64px; }
.next-card {
  display: flex; gap: 18px; align-items: flex-start; padding: 26px; border-radius: 18px; border: 1px solid var(--line-strong);
  background: radial-gradient(500px 220px at 0% 0%, rgba(57, 180, 227, 0.14), transparent 70%), var(--bg-2);
}
.next-card.discord { background: radial-gradient(500px 220px at 0% 0%, rgba(88, 101, 242, 0.22), transparent 70%), var(--bg-2); }
.next-card .panel-icon { width: 46px; height: 46px; border-radius: 12px; }
.next-card .panel-icon svg { width: 24px; height: 24px; }
.next-card h3 { margin: 8px 0 6px; font: 700 22px/1.1 var(--display); text-transform: uppercase; letter-spacing: 0.03em; }
.next-card p { margin: 0; color: #b4c3d6; }

.me-empty { display: grid; place-items: center; min-height: 70vh; padding: 120px 16px 40px; }
.me-empty-box { max-width: 520px; text-align: center; padding: 40px; border-radius: 22px; border: 1px solid var(--line-strong); background: var(--panel-solid); }
.me-empty-box h2 { margin: 10px 0 8px; font: 700 30px/1.1 var(--display); text-transform: uppercase; }
.me-empty-box p { color: var(--muted); margin: 0 0 22px; }
.me-is-empty .me-hero, .me-is-empty .me-main { display: none; }

@media (max-width: 1000px) {
  .me-inner { grid-template-columns: 1fr; align-items: start; }
  .me-playtime { justify-items: start; text-align: left; }
  .me-cols, .me-next { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .me-hero { padding-top: 96px; }
  .me-profile { flex-direction: column; align-items: flex-start; gap: 16px; }
  .me-avatar { width: 92px; height: 92px; border-radius: 20px; }
  .me-stats .stat-grid { grid-template-columns: 1fr 1fr; }
  .me-playtime b { font-size: 42px; }
}

/* Discord card on My stats */
.dc-body { flex: 1; min-width: 0; }
.dc-btn { margin-top: 16px; }
.dc-btn svg { width: 20px; height: 20px; }
.dc-user { display: flex; align-items: center; gap: 14px; margin: 12px 0 8px; }
.dc-user img, .dc-noav { width: 52px; height: 52px; border-radius: 50%; flex: none; box-shadow: 0 0 0 3px rgba(88, 101, 242, 0.45); }
.dc-noav { display: grid; place-items: center; background: var(--discord); color: #fff; font: 700 22px/1 var(--display); }
.dc-user h3 { margin: 0; }
.dc-user small { color: var(--muted); }
.dc-ok { color: var(--ok) !important; font-weight: 600; margin-top: 6px !important; }
.dc-warn { color: var(--ember) !important; margin-top: 6px !important; }
.dc-unlink { margin-top: 14px; height: 36px; font-size: 13px; }

/* =================== Clans =================== */
.clan-tag {
  --cc: #8fe3ff;
  display: inline-grid; place-items: center; min-width: 34px; height: 24px; padding: 0 8px; border-radius: 7px; flex: none;
  font: 700 12px/1 var(--display); letter-spacing: 0.08em; text-transform: uppercase; color: var(--cc);
  background: color-mix(in srgb, var(--cc) 14%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--cc) 45%, transparent);
}
.clan-tag.lg { min-width: 52px; height: 40px; border-radius: 10px; font-size: 16px; }
.clan-tag.xl {
  min-width: 112px; height: 112px; border-radius: 26px; font-size: 34px; padding: 0 16px;
  box-shadow: inset 0 0 0 2px var(--cc), 0 0 0 6px color-mix(in srgb, var(--cc) 10%, transparent), 0 20px 50px -10px color-mix(in srgb, var(--cc) 55%, transparent);
}

.page-hero { position: relative; padding: 120px 16px 48px; overflow: hidden; isolation: isolate; }
.page-hero::before {
  content: ''; position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(0deg, var(--bg) 0%, transparent 55%),
    radial-gradient(800px 400px at 80% 30%, color-mix(in srgb, var(--cc, #39b4e3) 22%, transparent), transparent 70%),
    linear-gradient(90deg, rgba(6, 9, 15, 0.95) 0%, rgba(6, 9, 15, 0.65) 100%);
}
.page-hero .hero-map { left: 65%; top: 40%; }
.page-hero-inner { max-width: 1240px; margin: 0 auto; display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.page-hero h1 { margin: 12px 0 10px; font: 700 clamp(44px, 7vw, 84px)/0.95 var(--display); text-transform: uppercase; }
.page-hero .lead { margin: 0; }
.page-hero-cta .btn { height: 48px; }
.page-hero-cta .btn svg { width: 20px; height: 20px; }

.clans-main { padding-top: 24px; max-width: 1272px; }
.clans-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.seg { display: inline-flex; padding: 4px; border-radius: 12px; border: 1px solid var(--line); background: rgba(143, 227, 255, 0.04); }
.seg button {
  height: 36px; padding: 0 14px; border: 0; border-radius: 8px; background: none; cursor: pointer; color: var(--muted);
  font: 600 13px/1 var(--display); letter-spacing: 0.1em; text-transform: uppercase;
}
.seg button:hover { color: var(--text); }
.seg button.active { background: rgba(143, 227, 255, 0.14); color: var(--ice); }

.clan-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.clan-card {
  --cc: #8fe3ff;
  position: relative; display: block; padding: 22px; border-radius: 18px; text-decoration: none; overflow: hidden;
  background: radial-gradient(400px 180px at 100% 0%, color-mix(in srgb, var(--cc) 14%, transparent), transparent 70%), var(--panel-solid);
  border: 1px solid var(--line); transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.clan-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--cc) 50%, transparent); box-shadow: 0 20px 40px -20px color-mix(in srgb, var(--cc) 60%, transparent); }
.clan-rank { position: absolute; top: 14px; right: 18px; font: 700 40px/1 var(--display); color: rgba(143, 227, 255, 0.08); }
.clan-card:nth-child(1) .clan-rank { color: rgba(255, 180, 84, 0.35); }
.clan-card-head { display: flex; align-items: center; gap: 14px; }
.clan-card-title { min-width: 0; }
.clan-card-title h3 { margin: 0; font: 700 22px/1.1 var(--display); letter-spacing: 0.02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.clan-card-title small { color: var(--muted); }
.clan-card-meta { display: flex; gap: 16px; margin: 16px 0 14px; color: var(--muted); font-size: 13px; }
.clan-card-meta span { display: inline-flex; align-items: center; gap: 6px; }
.clan-card-meta svg { width: 15px; height: 15px; }
.clan-card-meta .on { color: var(--ok); }
.clan-card-meta .on i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.clan-card-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin: 0; border-radius: 10px; overflow: hidden; background: var(--line); }
.clan-card-stats div { padding: 10px; background: rgba(6, 9, 15, 0.6); text-align: center; }
.clan-card-stats dt { font: 600 10px/1 var(--display); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.clan-card-stats dd { margin: 6px 0 0; font: 700 18px/1 var(--display); font-variant-numeric: tabular-nums; }

/* Clan page */
.clan-hero { padding-bottom: 0; }
.clan-id { display: flex; align-items: center; gap: 28px; min-width: 0; }
.clan-id > div:last-child { min-width: 0; }
.back-link { color: var(--muted); text-decoration: none; font-size: 13px; }
.back-link:hover { color: var(--ice); }
.clan-desc { max-width: 640px; margin: 0 0 12px; color: #b4c3d6; white-space: pre-line; }
.clan-stats { margin-top: 36px; max-width: 1240px; margin-left: auto; margin-right: auto; }
.clan-stats .stat-grid { grid-template-columns: repeat(6, 1fr); }
.clan-stats .stat:nth-child(4n + 1) { border-left: 1px solid var(--line); }
.clan-stats .stat:first-child { border-left: 0; }
.clan-stats .stat:nth-child(-n + 4) { border-top: 0; }
.clan-stats .stat { border-top: 0; }
.clan-main .me-cols { grid-template-columns: 1.3fr 1fr; align-items: start; }
.panel-count { margin-left: auto; color: var(--muted); font: 600 14px/1 var(--display); }
.panel-body { padding: 18px 22px 22px; }
.panel-body h4, .mini-head { margin: 18px 0 8px; font: 700 13px/1 var(--display); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.panel-title { margin: 0 0 6px; font: 700 18px/1.1 var(--display); text-transform: uppercase; letter-spacing: 0.05em; }
.clan-side { display: grid; gap: 16px; }
.small { font-size: 13px; }

.roster { list-style: none; margin: 0; padding: 6px 12px 12px; }
.roster-row { display: flex; align-items: center; gap: 14px; padding: 12px 10px; border-radius: 10px; border-bottom: 1px solid rgba(150, 205, 255, 0.06); flex-wrap: wrap; }
.roster-row:last-child { border-bottom: 0; }
.roster-row.me { background: rgba(143, 227, 255, 0.06); }
.roster-dot { width: 9px; height: 9px; border-radius: 50%; background: #3a4656; flex: none; }
.roster-dot.on { background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.roster-main { flex: 1; min-width: 180px; }
.roster-name { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.roster-name strong { font: 600 16px/1.2 var(--display); letter-spacing: 0.02em; }
.roster-main small { color: var(--muted); }
.role-badge { padding: 3px 7px; border-radius: 5px; font: 700 10px/1 var(--display); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line-strong); }
.role-badge.leader { color: #1b1203; background: linear-gradient(180deg, #ffd38a, var(--ember)); border-color: transparent; }
.role-badge.officer { color: var(--ice); border-color: rgba(143, 227, 255, 0.4); }
.you { font: 700 10px/1 var(--display); letter-spacing: 0.1em; text-transform: uppercase; padding: 3px 6px; border-radius: 5px; background: var(--ice); color: #04131c; font-style: normal; }
.roster-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.chip-btn {
  height: 30px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--line-strong); background: rgba(143, 227, 255, 0.04);
  color: var(--text); font: 600 12px/1 var(--body); cursor: pointer; white-space: nowrap;
}
.chip-btn:hover { border-color: var(--ice); color: var(--ice); }
.chip-btn.danger:hover, .btn.danger:hover { border-color: var(--bad); color: var(--bad); }
.chip-btn.ok { border-color: rgba(75, 224, 138, 0.45); color: var(--ok); }
.chip-btn.ok:hover { background: rgba(75, 224, 138, 0.12); }

.mini-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.mini-list li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: rgba(6, 9, 15, 0.5); border: 1px solid var(--line); }
.mini-list li > span:first-child:not(.clan-tag) { flex: 1; }
.mini-list .grow { flex: 1; min-width: 0; display: grid; }
.mini-list small { color: var(--muted); font-size: 12px; }

.form { display: grid; gap: 12px; }
.form label { display: grid; gap: 6px; }
.form label > span { font: 600 11px/1 var(--display); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.form input:not([type="color"]):not([type="hidden"]), .form textarea, .ac-box input {
  width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line-strong); background: rgba(6, 9, 15, 0.6);
  color: var(--text); font: 500 14px/1.4 var(--body); outline: none;
}
.form input:focus, .form textarea:focus, .ac-box input:focus { border-color: var(--ice); box-shadow: 0 0 0 3px rgba(143, 227, 255, 0.12); }
.form textarea { resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 110px; gap: 10px; }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: space-between; }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.swatch { width: 28px; height: 28px; border-radius: 8px; border: 2px solid transparent; background: var(--sw); cursor: pointer; }
.swatch.on { border-color: #fff; box-shadow: 0 0 0 2px var(--sw); }
.swatches input[type="color"] { width: 34px; height: 30px; padding: 0; border: 0; background: none; cursor: pointer; }
.create-clan { margin-top: 6px; }

.ac-box { position: relative; }
.ac-drop { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 20; padding: 6px; border-radius: 12px; background: var(--panel-solid); border: 1px solid var(--line-strong); box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.8); }
.ac-row { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 9px 10px; border: 0; border-radius: 8px; background: none; color: var(--text); cursor: pointer; font: 500 14px/1.2 var(--body); text-align: left; }
.ac-row:hover:not([disabled]) { background: rgba(143, 227, 255, 0.08); }
.ac-row em { font-style: normal; color: var(--ice); font-size: 12px; font-weight: 600; }
.ac-row small { color: var(--muted); }
.ac-row[disabled] { opacity: 0.5; cursor: default; }
.ac-empty { padding: 8px 10px; color: var(--muted); }

/* Start page: top clans */
.clan-grid.mini { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.section-link { display: inline-flex; margin-top: 18px; color: var(--ice); text-decoration: none; font: 600 14px/1 var(--display); letter-spacing: 0.1em; text-transform: uppercase; }
.section-link:hover { text-decoration: underline; }

@media (max-width: 1000px) {
  .clan-main .me-cols { grid-template-columns: 1fr; }
  .clan-stats .stat-grid { grid-template-columns: repeat(3, 1fr); }
  .clan-stats .stat:nth-child(3n + 1) { border-left: 0; }
  .clan-stats .stat:nth-child(n + 4) { border-top: 1px solid var(--line); }
}
@media (max-width: 640px) {
  .clan-id { flex-direction: column; align-items: flex-start; gap: 16px; }
  .clan-tag.xl { min-width: 84px; height: 84px; font-size: 26px; border-radius: 20px; }
  .clan-stats .stat-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr 90px; }
}

/* =================== Discord gate =================== */
.is-gated .me-hero, .is-gated .me-main, .is-gated .me-empty,
.is-gated .page-hero, .is-gated .clans-main, .is-gated .clan-main, .is-gated #clanMissing { display: none !important; }
.gate-wrap { display: grid; place-items: center; min-height: 78vh; padding: 120px 16px 40px; }
.gate {
  max-width: 620px; width: 100%; padding: 44px 40px 36px; border-radius: 22px; text-align: center;
  background:
    radial-gradient(520px 260px at 50% 0%, rgba(88, 101, 242, 0.24), transparent 70%),
    var(--panel-solid);
  border: 1px solid rgba(88, 101, 242, 0.35);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8);
}
.gate-icon {
  display: inline-grid; place-items: center; width: 78px; height: 78px; border-radius: 22px; margin-bottom: 18px;
  color: #fff; background: var(--discord); box-shadow: 0 16px 40px -10px rgba(88, 101, 242, 0.7);
}
.gate-icon svg { width: 42px; height: 42px; }
.gate h2 { margin: 0 0 12px; font: 700 30px/1.1 var(--display); text-transform: uppercase; letter-spacing: 0.02em; }
.gate p { margin: 0 auto 10px; max-width: 480px; color: #c7d3e3; }
.gate .gate-sub { color: var(--muted); font-size: 14px; }
.gate-btn { height: 50px; margin: 18px 0 12px; padding: 0 26px; font-size: 15px; }
.gate-btn svg { width: 22px; height: 22px; }
.gate small { display: block; color: var(--muted); font-size: 12px; }

/* Gate inside the leaderboard grid on the start page */
.boards > .gate { grid-column: 1 / -1; justify-self: center; }

/* Clan tag in the account menu */
.dropdown-list .menu-tag { margin-left: auto; }
.dropdown-list .menu-tag .clan-tag { height: 20px; min-width: 28px; font-size: 11px; padding: 0 6px; }
