/* WallBang site styles. Mobile first, RTL, dark only. No external resources. */

@font-face {
  font-family: "Vazirmatn";
  src: url("/fonts/vazirmatn-wght.woff2") format("woff2-variations"),
       url("/fonts/vazirmatn-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #0a0a0c;
  --bg-2: #0f0f13;
  --surface: #14141a;
  --surface-2: #1a1a22;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #f2f2f5;
  --muted: #a6a6b1;
  --faint: #6e6e7a;
  --c1: #ff3b3b;
  --c2: #ff5733;
  --c3: #ff7a2e;
  --c4: #ff9f29;
  --c5: #ffb627;
  --c6: #ffcc26;
  --c7: #ffe033;
  --c8: #fff04d;
  /* 270deg: starts red on the right, where RTL reading starts. */
  --grad: linear-gradient(270deg, #ff3b3b, #ff5733, #ff7a2e, #ff9f29, #ffb627, #ffcc26, #ffe033, #fff04d);
  --accent: #ffb627;
  --hot: #ff5733;
  --ok: #34d399;
  --bad: #f87171;
  --vip: #b983ff;
  --radius: 16px;
  --gutter: 16px;
  --maxw: 1120px;
  --header-h: 60px;
  --font: "Vazirmatn", Tahoma, "Segoe UI", system-ui, -apple-system, "Noto Sans Arabic", sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, "SFMono-Regular", Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

[hidden] { display: none !important; }
html:not(.js) .live { display: none !important; }

html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.8;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--c7); }

h1, h2, h3 { line-height: 1.35; margin: 0; }
p { margin: 0; }
b, strong { font-weight: 700; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

::selection { background: rgba(255, 122, 46, 0.35); color: #fff; }

code, kbd {
  font-family: var(--mono);
  font-size: 0.88em;
  direction: ltr;
  unicode-bidi: isolate;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.05em 0.4em;
  white-space: nowrap;
}
kbd { border-bottom-width: 2px; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--surface-2);
  color: var(--text);
  border-radius: 10px;
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

.hot { color: var(--hot); }
.key { color: var(--accent); font-weight: 700; }
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 12, 0.86);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header::after {
  content: "";
  position: absolute;
  right: 0;
  left: 0;
  bottom: -1px;
  height: 1px;
  background: var(--grad);
  opacity: 0.45;
}

.header-in {
  max-width: var(--maxw);
  height: var(--header-h);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  flex: 0 0 auto;
  color: var(--text);
  text-decoration: none;
}
.brand:hover { color: var(--text); }
.brand img { width: 52px; height: 32px; }
.brand-name {
  display: none;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.01em;
}

.nav {
  margin-inline-start: auto;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav::-webkit-scrollbar { display: none; }
.nav ul {
  display: flex;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 8px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s, background-color 0.15s;
}
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.nav a[aria-current="true"] { color: var(--text); background: rgba(255, 159, 41, 0.1); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 12px;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.12s, filter 0.15s, background-color 0.15s, border-color 0.15s;
}
.btn:active { transform: translateY(1px); }
.btn-lg { min-height: 50px; padding: 0 24px; font-size: 16px; }

.btn-primary {
  background: var(--grad);
  color: #1b0c00;
  box-shadow: 0 8px 26px -10px rgba(255, 87, 51, 0.75);
}
.btn-primary:hover { color: #1b0c00; filter: brightness(1.08) saturate(1.05); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line-2);
  color: var(--text);
}
.btn-ghost:hover { color: var(--text); background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.24); }
.btn-ghost.is-done { border-color: rgba(52, 211, 153, 0.55); color: var(--ok); }
.btn-ghost.is-fail { border-color: rgba(248, 113, 113, 0.55); color: var(--bad); }

/* ---------- hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 36px var(--gutter) 52px;
  text-align: center;
  border-bottom: 1px solid var(--line);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(55% 45% at 50% 28%, rgba(255, 87, 51, 0.24), transparent 70%),
    radial-gradient(35% 30% at 50% 36%, rgba(255, 182, 39, 0.14), transparent 70%),
    radial-gradient(80% 60% at 50% 120%, rgba(255, 59, 59, 0.08), transparent 70%);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 35%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 35%, #000 20%, transparent 75%);
}
.hero-in { max-width: 760px; margin: 0 auto; }

.hero-logo {
  width: min(210px, 56vw);
  margin: 0 auto;
  filter: drop-shadow(0 0 22px rgba(255, 87, 51, 0.38)) drop-shadow(0 0 60px rgba(255, 159, 41, 0.18));
  animation: rise 0.7s ease-out both;
}
.hero-title {
  margin: 14px 0 6px;
  font-size: clamp(38px, 10vw, 66px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 0.01em;
}
.lead {
  max-width: 34em;
  margin: 0 auto;
  color: #d4d4dc;
  font-size: clamp(16px, 4.2vw, 19px);
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}
.hero-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 6px 14px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 14px;
}
.hero-live b { color: var(--text); }

.facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}
.facts li {
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
  font-size: 13.5px;
}
.facts b { color: var(--text); }

@keyframes rise {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

/* ---------- sections ---------- */

.section { padding: 52px 0; }
.section.alt {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

.section-head { margin-bottom: 24px; }
.section-head h2 {
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
  font-size: clamp(25px, 6vw, 32px);
  font-weight: 800;
}
.section-head h2::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 56px;
  height: 3px;
  border-radius: 3px;
  background: var(--grad);
}
.section-head p { margin-top: 8px; color: var(--muted); }

.note {
  margin: 0 0 16px;
  padding: 10px 14px;
  border: 1px dashed var(--line-2);
  border-radius: 12px;
  color: var(--muted);
  font-size: 14px;
}

.sub { margin-top: 10px; color: var(--muted); font-size: 14.5px; }

.panel, .rule, .srv, .points, .contact-card, .season {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
}

.panel-h { margin-bottom: 12px; font-size: 17px; font-weight: 800; }

/* ---------- servers ---------- */

.srv-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }

.srv {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
  transition: border-color 0.2s;
}
.srv.is-online { border-color: rgba(255, 159, 41, 0.22); }
.srv.is-offline .srv-name, .srv.is-offline .srv-addr { opacity: 0.7; }

.srv-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.srv-kicker { color: var(--faint); font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-align: right; }
.srv-name { font-size: 21px; font-weight: 800; }
.srv-addr { color: var(--muted); font-family: var(--mono); font-size: 15px; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  padding: 4px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.srv.is-online .pill { color: var(--ok); border-color: rgba(52, 211, 153, 0.3); background: rgba(52, 211, 153, 0.07); }
.srv.is-offline .pill { color: var(--faint); }

.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--faint);
}
.dot-on, .srv.is-online .dot {
  background: var(--ok);
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6);
  animation: pulse 2.4s ease-out infinite;
}
.srv.is-offline .dot { background: #4a4a54; }

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55); }
  70% { box-shadow: 0 0 0 7px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

.srv-live { display: flex; flex-direction: column; gap: 8px; }
.srv-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 28px; }
.srv-row .k { color: var(--muted); font-size: 14px; }
.srv-row .v { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
bdi.v { display: inline-block; }

.badge {
  padding: 1px 9px;
  border: 1px solid rgba(185, 131, 255, 0.4);
  border-radius: 999px;
  background: rgba(185, 131, 255, 0.12);
  color: #d9c0ff;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.badge.is-full { border-color: rgba(248, 113, 113, 0.45); background: rgba(248, 113, 113, 0.12); color: #fca5a5; }

.cap { display: flex; gap: 7px; margin-top: 2px; }
.cap-g { display: flex; flex: 16 1 0; gap: 3px; min-width: 0; }
.cap-g.vip { flex: 4 1 0; }
.cap i {
  flex: 1 1 0;
  min-width: 0;
  height: 10px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.07);
  transition: background-color 0.3s;
}
.cap-g.vip i { background: rgba(185, 131, 255, 0.1); box-shadow: inset 0 0 0 1px rgba(185, 131, 255, 0.35); }
.cap i.on { background: var(--c5); }
.cap-g:first-child i.on:nth-child(-n+2) { background: var(--c1); }
.cap-g:first-child i.on:nth-child(n+3):nth-child(-n+4) { background: var(--c2); }
.cap-g:first-child i.on:nth-child(n+5):nth-child(-n+6) { background: var(--c3); }
.cap-g:first-child i.on:nth-child(n+7):nth-child(-n+8) { background: var(--c4); }
.cap-g:first-child i.on:nth-child(n+9):nth-child(-n+10) { background: var(--c5); }
.cap-g:first-child i.on:nth-child(n+11):nth-child(-n+12) { background: var(--c6); }
.cap-g:first-child i.on:nth-child(n+13):nth-child(-n+14) { background: var(--c7); }
.cap-g:first-child i.on:nth-child(n+15) { background: var(--c8); }
.cap-g.vip i.on { background: var(--vip); box-shadow: 0 0 10px -2px rgba(185, 131, 255, 0.7); }

.cap-legend { display: flex; justify-content: space-between; color: var(--faint); font-size: 12px; }
.vip-txt { color: var(--vip); font-weight: 700; }

.srv-actions { display: flex; gap: 8px; margin-top: auto; }
.srv-actions .btn { flex: 1 1 0; padding: 0 12px; }

.hint {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 14px;
}
.hint code { white-space: normal; overflow-wrap: anywhere; }
.hint-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  color: var(--accent);
  font-family: Georgia, serif;
  font-size: 13px;
  font-style: italic;
  font-weight: 700;
}

/* ---------- rules ---------- */

.rules-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.rule { padding: 18px; }
.rule h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 17px;
  font-weight: 800;
}
.rule h3::before {
  content: "";
  width: 4px;
  height: 18px;
  border-radius: 2px;
  background: var(--grad);
}
.rule p { color: #d4d4dc; font-size: 15px; }

.dots { margin: 0; padding: 0; list-style: none; }
.dots li {
  position: relative;
  padding-right: 16px;
  color: #d4d4dc;
  font-size: 15px;
}
.dots li + li { margin-top: 6px; }
.dots li::before {
  content: "";
  position: absolute;
  top: 0.78em;
  right: 2px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--c4);
}
.dots code { white-space: normal; overflow-wrap: anywhere; }

.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}
.chips li {
  padding: 3px 11px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  font-size: 13.5px;
  font-weight: 600;
}

.kv { margin: 8px 0 0; }
.kv div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 0;
  border-top: 1px solid var(--line);
  font-size: 15px;
}
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 700; }

.cmds { margin: 0; }
.cmds div { padding: 10px 0; border-top: 1px solid var(--line); }
.cmds div:first-child { border-top: 0; padding-top: 0; }
.cmds dt { margin-bottom: 4px; }
.cmds dt code { color: var(--c6); font-size: 14px; }
.cmds dd { margin: 0; color: #d4d4dc; font-size: 15px; }

.conduct {
  margin-top: 16px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 59, 59, 0.25);
  border-right: 3px solid var(--c1);
  border-radius: 12px;
  background: rgba(255, 59, 59, 0.06);
  color: #e9e9ee;
  font-size: 15px;
}
.conduct b { color: #ff8a8a; }

/* ---------- VIP ---------- */

.vip-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.vip-grid .panel { padding: 20px 18px; }
.vip-grid .panel-h + .durations { margin-top: 0; }
.vip-grid .sub + .panel-h { margin-top: 22px; }

.vip-tag {
  display: inline-block;
  color: var(--vip);
  font-family: var(--mono);
  font-size: 0.9em;
  font-weight: 700;
}

.checks { margin: 0; padding: 0; list-style: none; }
.checks li {
  position: relative;
  padding: 8px 32px 8px 0;
  border-top: 1px solid var(--line);
  color: #e1e1e8;
  font-size: 15px;
}
.checks li:first-child { border-top: 0; }
.checks li::before {
  content: "";
  position: absolute;
  top: 0.95em;
  right: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(185, 131, 255, 0.14);
  box-shadow: inset 0 0 0 1px rgba(185, 131, 255, 0.45);
}
.checks li::after {
  content: "";
  position: absolute;
  top: calc(0.95em + 5px);
  right: 7px;
  width: 5px;
  height: 9px;
  border: solid var(--vip);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.checks code { white-space: nowrap; }

.durations {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.durations li {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 6px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
}
.durations b { font-size: 26px; font-weight: 900; line-height: 1.2; }
.durations li:last-child { border-color: rgba(255, 159, 41, 0.45); background: rgba(255, 159, 41, 0.06); }
.durations li:last-child b { color: var(--accent); }
.durations span { color: var(--muted); font-size: 13px; }

.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li {
  position: relative;
  padding-right: 38px;
  color: #e1e1e8;
  font-size: 15px;
  counter-increment: step;
}
.steps li + li { margin-top: 14px; }
.steps li::before {
  content: counter(step, persian);
  position: absolute;
  top: 1px;
  right: 0;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--grad);
  color: #1b0c00;
  font-size: 14px;
  font-weight: 800;
}
.steps code { display: inline-block; margin-top: 6px; white-space: normal; overflow-wrap: anywhere; color: var(--c6); }

/* ---------- rank ---------- */

.season {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 18px;
  margin-bottom: 16px;
}
.season-label { color: var(--faint); font-size: 13px; }
.season-name { font-size: 22px; font-weight: 800; }
.season-end { color: var(--muted); font-size: 14.5px; }

.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.cd-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 4px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.25);
}
.cd-box b {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.25;
  font-variant-numeric: tabular-nums;
}
.cd-box:first-child b { color: var(--accent); }
.cd-box span { color: var(--muted); font-size: 12px; }
.cd-done { color: var(--accent); font-weight: 700; }

.board-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.search {
  width: 100%;
  max-width: 340px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 15px;
  -webkit-appearance: none;
  appearance: none;
}
.search::placeholder { color: var(--faint); }
.search:focus { border-color: rgba(255, 159, 41, 0.6); outline: none; box-shadow: 0 0 0 3px rgba(255, 159, 41, 0.15); }
.board-updated { color: var(--faint); font-size: 13px; }

.table-wrap {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.table-wrap:focus-visible { outline-offset: 0; }

.board {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 14.5px;
}
.board th {
  padding: 11px 12px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
  text-align: right;
  white-space: nowrap;
}
.board td {
  padding: 9px 12px;
  border-top: 1px solid var(--line);
  white-space: nowrap;
  vertical-align: middle;
}
.board tbody tr:hover td { background: rgba(255, 255, 255, 0.025); }
.board .num { text-align: center; font-variant-numeric: tabular-nums; }
.board .c-rank { width: 52px; }
.board td.pts-cell { font-weight: 800; }
.board td.empty { padding: 28px 12px; color: var(--muted); text-align: center; white-space: normal; }

.rk {
  display: inline-grid;
  place-items: center;
  min-width: 30px;
  height: 30px;
  padding: 0 6px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.05);
  font-weight: 800;
  font-size: 14px;
}
.rk.r1 { background: linear-gradient(135deg, #ffe033, #ff9f29); color: #1b0c00; }
.rk.r2 { background: linear-gradient(135deg, #f1f5f9, #a5adba); color: #111; }
.rk.r3 { background: linear-gradient(135deg, #ffb47a, #c8693a); color: #1b0c00; }

.nm {
  display: inline-block;
  max-width: 210px;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
  font-weight: 600;
}

.elig {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  margin-right: 6px;
  border-radius: 50%;
  background: rgba(255, 182, 39, 0.14);
  color: var(--accent);
  font-size: 11px;
  line-height: 1;
  vertical-align: middle;
}

.tier {
  display: inline-block;
  padding: 2px 10px;
  border: 1px solid;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.6;
  white-space: nowrap;
}
.t-silver { color: #cbd5e1; border-color: rgba(203, 213, 225, 0.28); background: rgba(203, 213, 225, 0.07); }
.t-gold { color: #fcd34d; border-color: rgba(252, 211, 77, 0.32); background: rgba(252, 211, 77, 0.08); }
.t-mg { color: #7cb4ff; border-color: rgba(124, 180, 255, 0.32); background: rgba(124, 180, 255, 0.08); }
.t-le { color: #4fd8c4; border-color: rgba(79, 216, 196, 0.32); background: rgba(79, 216, 196, 0.08); }
.t-smfc { color: #c79bff; border-color: rgba(199, 155, 255, 0.34); background: rgba(199, 155, 255, 0.09); }
.t-ge { color: #ff7b7b; border-color: rgba(255, 123, 123, 0.38); background: rgba(255, 123, 123, 0.1); }

.legend { margin-top: 12px; color: var(--muted); font-size: 13.5px; }
.legend .elig { margin: 0 0 0 4px; }
#rank-none { margin-top: 12px; }

.points { margin-top: 28px; padding: 20px 18px; }
.pts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}
.pts li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 40px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  font-size: 14.5px;
}
.pos { color: var(--ok); font-weight: 800; }
.neg { color: var(--bad); font-weight: 800; }

/* ---------- contact ---------- */

.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  max-width: 560px;
  padding: 20px 18px;
}
.tg-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--grad);
  color: #1b0c00;
}
.contact-body h3 { margin-bottom: 4px; font-size: 18px; font-weight: 800; }
.contact-body p { color: var(--muted); }
.contact-body p b { color: var(--accent); }
.contact-body .btn { margin-top: 12px; }

/* ---------- footer ---------- */

.site-footer {
  padding: 34px 0 calc(40px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 13.5px;
  text-align: center;
}
.site-footer p + p { margin-top: 6px; }
.footer-mark { width: 52px; height: 32px; margin: 0 auto 14px; opacity: 0.55; }
.site-footer .copy { margin-top: 14px; }

/* ---------- toast and copy buffer ---------- */

.toast {
  position: fixed;
  right: 16px;
  left: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 90;
  max-width: 380px;
  margin: 0 auto;
  padding: 12px 16px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: #1d1d25;
  box-shadow: 0 12px 40px -12px rgba(0, 0, 0, 0.8);
  color: var(--text);
  font-size: 14.5px;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.2s, transform 0.2s, visibility 0s linear 0.2s;
}
.toast.show {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.2s, transform 0.2s, visibility 0s;
}

.copy-buf {
  position: fixed;
  top: 0;
  right: 0;
  width: 1px;
  height: 1px;
  padding: 0;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

/* ---------- 404 ---------- */

.page-404 { display: flex; flex-direction: column; }
.nf {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 70vh;
  padding: 48px var(--gutter);
  text-align: center;
}
.nf img { width: 120px; height: auto; opacity: 0.9; filter: drop-shadow(0 0 22px rgba(255, 87, 51, 0.35)); }
.nf .nf-code { font-size: clamp(64px, 20vw, 110px); font-weight: 900; line-height: 1; color: transparent; }
.nf h1 { font-size: 22px; font-weight: 800; }
.nf p { color: var(--muted); }

/* ---------- wider screens ---------- */

@media (min-width: 420px) {
  .brand-name { display: inline; }
}

@media (min-width: 600px) {
  :root { --gutter: 24px; }
  .nav a { padding: 0 12px; font-size: 15px; }
  .pts { grid-template-columns: repeat(2, 1fr); }
  .season { flex-direction: row; align-items: center; justify-content: space-between; }
  .countdown { min-width: 320px; }
}

@media (min-width: 760px) {
  .hero { padding: 56px var(--gutter) 72px; }
  .section { padding: 72px 0; }
  .srv-grid { grid-template-columns: repeat(3, 1fr); }
  .rules-grid { grid-template-columns: repeat(2, 1fr); }
  .rule-wide { grid-column: 1 / -1; }
  .cmds { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 28px; }
  .cmds div:nth-child(2) { border-top: 0; padding-top: 0; }
}

@media (min-width: 980px) {
  .rules-grid { grid-template-columns: repeat(3, 1fr); }
  .vip-grid { grid-template-columns: 1.35fr 1fr; }
  .pts { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
