@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/onest-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/onest-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url("fonts/jetbrains-mono-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url("fonts/jetbrains-mono-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: dark;
  --bg: #06070c;
  --panel: #141213;
  --card: #1e1b1c;
  --bd: #2a2325;
  --bg2: #06070c;
  --nested: #171415;
  --deep: #0d0b0c;
  --console: #080607;
  --tx: #f5f5f5;
  --mut: #a1a1a6;
  --text: var(--tx);
  --text2: var(--mut);
  --text3: #757579;
  --accent: #eb4b4b;
  --accent-dim: #c62a47;
  --accent-glow: rgba(235, 75, 75, 0.25);
  --t1: #eb4b4b;
  --t2: #c62a47;
  --t3: #ff6a3d;
  --t4: #8f1d2c;
  --t5: #d9363e;
  --t6: #b5174f;
  --ok: #3ddc84;
  --warn: #ffc107;
  --danger: #ff4d4d;
  --info: #4db8ff;
  --stroke: var(--bd);
  --stroke2: #3b3033;
  --shadow: rgba(0, 0, 0, 0.65);
  --radius: 4px;
  --control-h: 44px;
  --control-radius: 10px;
  --gap: 10px;
  --font: "Onest", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", "Cascadia Mono", "Consolas", "Courier New", monospace;
}

*, *::before, *::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  background-color: #06070c;
  background-image: linear-gradient(
    180deg,
    rgba(235, 75, 75, 0.34) 0%,
    rgba(198, 42, 71, 0.18) 16%,
    rgba(143, 29, 44, 0.07) 32%,
    rgba(6, 7, 12, 0) 54%
  );
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-size: 100% 100vh;
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  letter-spacing: 0.002em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

@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;
  }
}

img, svg, video, canvas {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--accent-dim);
  text-decoration: underline;
}

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

h1 { font-size: clamp(30px, 5vw, 46px); }
h2 { font-size: clamp(22px, 3.4vw, 30px); }
h3 { font-size: clamp(18px, 2.4vw, 22px); }
h4 { font-size: clamp(16px, 2vw, 18px); }

p {
  margin: 0 0 12px;
  color: var(--text2);
}

.muted { color: var(--text2); }
.small { font-size: 13px; }
.mono { font-family: var(--font-mono); }

.w {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

@media (max-width: 640px) {
  .w { padding: 0 16px; }
}

/* ===== Pixel Frame ===== */
.pixel-frame {
  background: var(--stroke);
  clip-path: polygon(
    0 8px, 4px 8px, 4px 4px, 8px 4px, 8px 0,
    calc(100% - 8px) 0, calc(100% - 8px) 4px,
    calc(100% - 4px) 4px, calc(100% - 4px) 8px,
    100% 8px, 100% calc(100% - 8px),
    calc(100% - 4px) calc(100% - 8px),
    calc(100% - 4px) calc(100% - 4px),
    calc(100% - 8px) calc(100% - 4px),
    calc(100% - 8px) 100%,
    8px 100%, 8px calc(100% - 4px),
    4px calc(100% - 4px), 4px calc(100% - 8px),
    0 calc(100% - 8px)
  );
}

.pixel-frame__inner {
  clip-path: inherit;
  background: var(--card);
  min-height: 100%;
  padding: 24px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.pixel-frame--sm {
  clip-path: polygon(
    0 5px, 5px 5px, 5px 0, calc(100% - 5px) 0,
    calc(100% - 5px) 5px, 100% 5px, 100% calc(100% - 5px),
    calc(100% - 5px) calc(100% - 5px), calc(100% - 5px) 100%,
    5px 100%, 5px calc(100% - 5px), 0 calc(100% - 5px)
  );
}

.pixel-card {
  padding: 2px;
  display: flex;
  flex-direction: column;
  height: 100%;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.55));
}

.pixel-card > .pixel-frame {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

.pixel-card > .pixel-frame > .pixel-frame__inner {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

.pixel-card > .pixel-frame__inner {
  padding: 20px;
}

.pixel-card--compact > .pixel-frame__inner {
  padding: 14px;
}

/* ===== Icons ===== */
.ic {
  width: 1em;
  height: 1em;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}

.ic--sm { width: 16px; height: 16px; }
.ic--md { width: 20px; height: 20px; }
.ic--lg { width: 28px; height: 28px; }
.ic--xl { width: 40px; height: 40px; }

.icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(235, 75, 75, 0.12);
  border: 1px solid rgba(235, 75, 75, 0.3);
  color: var(--accent);
  flex-shrink: 0;
}

.icon-box--lg {
  width: 56px;
  height: 56px;
  border-radius: 14px;
}

.mc-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--stroke2);
  flex-shrink: 0;
}

.mc-icon img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  image-rendering: pixelated;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.35));
}

.mc-icon--flat img {
  width: 34px;
  height: 34px;
  border-radius: 3px;
  image-rendering: pixelated;
}

/* ===== Buttons ===== */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: var(--control-h);
  padding: 10px 20px;
  border: 1px solid var(--stroke2);
  border-radius: var(--control-radius);
  cursor: pointer;
  background: var(--card);
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
  line-height: 1;
  white-space: nowrap;
  user-select: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, color 0.15s ease, transform 0.05s ease;
  text-decoration: none;
}

.btn:hover {
  background: var(--nested);
  border-color: var(--accent-dim);
  color: var(--accent);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  text-decoration: none;
}

.btn:active {
  transform: translateY(1px);
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  color: var(--text2);
}

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.btn--primary {
  background: linear-gradient(180deg, #f56b6b 0%, var(--accent) 55%, var(--accent-dim) 100%);
  border-color: rgba(235, 75, 75, 0.7);
  color: #0a0a0a;
  box-shadow: 0 2px 6px rgba(235, 75, 75, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn--primary:hover {
  background: linear-gradient(180deg, #f87e7e 0%, var(--accent) 55%, var(--accent-dim) 100%);
  border-color: var(--accent);
  color: #0a0a0a;
  box-shadow: 0 4px 14px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn--primary:active {
  color: #111;
  box-shadow: 0 1px 3px rgba(235, 75, 75, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn--ghost {
  background: transparent;
  border-color: var(--stroke2);
  color: var(--text2);
  box-shadow: none;
}

.btn--ghost:hover {
  background: rgba(235, 75, 75, 0.08);
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: none;
}

.btn--danger {
  background: linear-gradient(180deg, #ff6b6b 0%, var(--danger) 55%, #cc3434 100%);
  border-color: rgba(255, 77, 77, 0.7);
  color: #1a0d0d;
  box-shadow: 0 2px 6px rgba(255, 77, 77, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn--sm {
  min-height: 38px;
  padding: 6px 16px;
  font-size: 13px;
  gap: 8px;
  border-radius: 8px;
}

.btn--lg {
  min-height: 52px;
  padding: 14px 32px;
  font-size: 15px;
  border-radius: 12px;
}

.btn--block { width: 100%; }

.btn .spin {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

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

/* ===== Badges ===== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--nested);
  color: var(--text2);
  border: 1px solid var(--stroke2);
  border-radius: 6px;
}

.badge--ok { color: var(--ok); border-color: rgba(61, 220, 132, 0.4); background: rgba(61, 220, 132, 0.08); }
.badge--warn { color: var(--warn); border-color: rgba(255, 193, 7, 0.4); background: rgba(255, 193, 7, 0.08); }
.badge--danger { color: var(--danger); border-color: rgba(255, 77, 77, 0.4); background: rgba(255, 77, 77, 0.08); }
.badge--accent { color: var(--accent); border-color: rgba(235, 75, 75, 0.45); background: rgba(235, 75, 75, 0.08); }
.badge--info { color: var(--info); border-color: rgba(77, 184, 255, 0.4); background: rgba(77, 184, 255, 0.08); }

.badge .dot {
  width: 7px;
  height: 7px;
  background: currentColor;
  border-radius: 50%;
  animation: pulse-dot 1.6s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* ===== Layout ===== */
.row { display: flex; gap: var(--gap); align-items: center; }
.row-wrap { display: flex; gap: var(--gap); align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }
.grid { display: grid; gap: 16px; align-items: stretch; }

.grid > * { height: 100%; min-width: 0; }

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

/* ===== Header ===== */
.header {
  display: block;
  position: relative;
  z-index: 50;
  background: transparent;
  border-bottom: 0;
  padding: 0;
}

.header__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 24px;
  padding: 16px 0 8px;
}

.header__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
  color: var(--text);
}

.header__logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  image-rendering: pixelated;
}

.header__title {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 6px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  justify-content: center;
}

.header__link {
  --btn: var(--t1);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 0;
  min-width: 44px;
  max-width: 44px;
  height: 44px;
  border: 0;
  border-radius: 0;
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--btn) 40%, #fff) 0%,
    color-mix(in srgb, var(--btn) 45%, #000) 100%
  );
  clip-path: polygon(
    0 6px, 6px 6px, 6px 0,
    calc(100% - 6px) 0, calc(100% - 6px) 6px, 100% 6px,
    100% calc(100% - 6px), calc(100% - 6px) calc(100% - 6px),
    calc(100% - 6px) 100%,
    6px 100%, 6px calc(100% - 6px), 0 calc(100% - 6px)
  );
  color: #fff;
  font-size: 0;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  flex: 0 0 auto;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
  box-shadow: none;
  filter: drop-shadow(0 3px 0 rgba(0, 0, 0, 0.5));
  transition: max-width 0.28s ease, padding 0.28s ease, gap 0.28s ease,
    font-size 0.15s ease, background 0.15s ease, border-color 0.15s ease,
    color 0.15s ease, filter 0.15s ease, transform 0.15s ease;
}

.header__link::before {
  content: "";
  position: absolute;
  inset: 2px;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--btn) 84%, #fff) 0%,
    var(--btn) 55%,
    color-mix(in srgb, var(--btn) 80%, #000) 100%
  );
  clip-path: polygon(
    0 6px, 6px 6px, 6px 0,
    calc(100% - 6px) 0, calc(100% - 6px) 6px, 100% 6px,
    100% calc(100% - 6px), calc(100% - 6px) calc(100% - 6px),
    calc(100% - 6px) 100%,
    6px 100%, 6px calc(100% - 6px), 0 calc(100% - 6px)
  );
}

.header__link:nth-child(1) { --btn: #dc2626; }
.header__link:nth-child(2) { --btn: #ea580c; }
.header__link:nth-child(3) { --btn: #db2777; }
.header__link:nth-child(4) { --btn: #9333ea; }
.header__link:nth-child(5) { --btn: #2563eb; }
.header__link:nth-child(6) { --btn: #0d9488; }

.header__link .ic { position: relative; z-index: 1; flex-shrink: 0; color: #fff; }

.header__link:hover,
.header__link:focus-visible {
  max-width: 220px;
  padding: 0 16px;
  gap: 8px;
  font-size: 14px;
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
  filter: drop-shadow(0 5px 0 rgba(0, 0, 0, 0.5)) brightness(1.08);
}

.header__link--active,
.header__link--active:hover,
.header__link--active:focus-visible {
  max-width: 220px;
  padding: 0 16px;
  gap: 8px;
  font-size: 14px;
  color: #fff;
  filter: drop-shadow(0 3px 0 rgba(0, 0, 0, 0.5)) brightness(1.12);
}

.header__link--active .ic { color: #fff; }

.header__cta {
  flex-shrink: 0;
  margin-left: auto;
  display: none;
}

@media (min-width: 769px) {
  .header__cta { display: inline-flex; }
}

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

@media (max-width: 900px) {
  .header__inner { gap: 12px; }
}

@media (max-width: 768px) {
  .header__nav { display: none; }
  .header__title { display: none; }
}

/* ===== Mobile Bottom Nav ===== */
.mobile-nav {
  display: none;
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 100;
  background: rgba(6, 7, 12, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--stroke);
  border-radius: 24px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55);
  padding: 6px;
}

@media (max-width: 768px) {
  .mobile-nav { display: flex; }
  body { padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }
}

.mobile-nav__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 8px 4px;
  border-radius: 14px;
  color: var(--text2);
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
  min-height: 56px;
  justify-content: center;
  transition: background 0.15s ease, color 0.15s ease;
}

.mobile-nav__item:hover,
.mobile-nav__item:focus-visible {
  background: var(--nested);
  color: var(--text);
  text-decoration: none;
}

.mobile-nav__item--active {
  background: rgba(235, 75, 75, 0.18);
  color: var(--accent);
}

.mobile-nav__item--play {
  flex: none;
  width: 52px;
  height: 52px;
  margin-top: -22px;
  border-radius: 50%;
  background: linear-gradient(180deg, #f56b6b, var(--accent));
  color: #0a0a0a;
  box-shadow: 0 8px 24px rgba(235, 75, 75, 0.5);
  border: 4px solid var(--bg);
  flex-direction: row;
  justify-content: center;
  min-height: 0;
  padding: 0;
}

.mobile-nav__item--play .ic { width: 24px; height: 24px; color: #0a0a0a; }

/* ===== Hero ===== */
.hero {
  text-align: center;
  padding: 60px 0 40px;
}

.hero__logo {
  width: min(420px, 85%);
  height: auto;
  margin: 0 auto 24px;
  filter: drop-shadow(0 16px 40px rgba(235, 75, 75, 0.35));
  image-rendering: pixelated;
}

.hero__status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding: 8px 18px;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  background: var(--nested);
  font-size: 13.5px;
  color: var(--text2);
}

.hero__status .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}

.hero__status .dot--online {
  background: var(--ok);
  box-shadow: 0 0 12px var(--ok);
}

.hero__status .dot--offline {
  background: var(--danger);
  box-shadow: 0 0 12px var(--danger);
}

.hero__status .dot--checking {
  background: var(--warn);
  box-shadow: 0 0 12px var(--warn);
  animation: pulse-dot 1.2s infinite;
}

.hero__title {
  margin-bottom: 12px;
  line-height: 1.15;
}

.hero__title .accent {
  color: var(--accent);
}

.hero__desc {
  max-width: 600px;
  margin: 0 auto 28px;
  font-size: 16px;
  color: var(--text2);
}

.hero__ip {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: 14px;
  padding: 14px 14px 14px 20px;
  max-width: 520px;
  margin: 0 auto;
  font-family: var(--font-mono);
  font-size: 17px;
  box-shadow: 0 8px 32px rgba(235, 75, 75, 0.12);
}

.hero__ip-text {
  flex: 1 1 auto;
  word-break: break-all;
  cursor: pointer;
  user-select: all;
}

.hero__ip-text:hover { color: var(--accent); }

/* ===== Sections ===== */
.section {
  padding: 56px 0;
}

.section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.section__title {
  margin: 0;
}

.section__subtitle {
  color: var(--text2);
  margin: 0;
}

/* ===== Cards ===== */
.feature-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  border-color: rgba(235, 75, 75, 0.5);
  box-shadow: 0 16px 40px rgba(235, 75, 75, 0.1);
  text-decoration: none;
}

.feature-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.feature-card__icon {
  margin-bottom: 16px;
}

.feature-card__title {
  margin-bottom: 8px;
}

.feature-card__desc {
  margin: 0;
  font-size: 14.5px;
}

/* ===== Social Cards ===== */
.social-card {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1 1 auto;
  height: 100%;
  text-decoration: none;
  color: var(--text);
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: 16px;
  padding: 18px;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.social-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(235, 75, 75, 0.12);
  text-decoration: none;
}

.social-card__icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--deep);
  border: 1px solid var(--stroke);
  color: var(--accent);
  flex-shrink: 0;
}

.social-card__icon .ic { width: 26px; height: 26px; }

.social-card__name { font-weight: 700; font-size: 16px; margin-bottom: 2px; }
.social-card__desc { margin: 0; font-size: 13.5px; color: var(--text2); }

/* ===== Stats ===== */
.stat {
  text-align: center;
  padding: 20px 12px;
}

.stat__value {
  font-size: clamp(22px, 5vw, 32px);
  font-weight: 800;
  font-family: var(--font-mono);
  line-height: 1.1;
}

.stat__label {
  color: var(--text2);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-top: 6px;
}

/* ===== Steps ===== */
.steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}

.steps__item {
  counter-increment: step;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--card);
  border: 1px solid var(--bd);
  border-radius: 16px;
  padding: 20px;
}

.steps__item::before {
  content: counter(step);
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #f56b6b, var(--accent));
  color: #0a0a0a;
  font-weight: 800;
  font-family: var(--font);
  font-size: 16px;
}

.steps__title { display: block; color: var(--text); font-size: 16.5px; font-weight: 700; margin-bottom: 4px; }
.steps__desc { font-size: 14.5px; color: var(--text2); }

/* ===== Server Info Cards ===== */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}

.info-card {
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: 14px;
  padding: 18px;
}

.info-card__label {
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text3);
  margin-bottom: 6px;
}

.info-card__value {
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 700;
  word-break: break-all;
}

.info-card__value--large { font-size: 22px; }

/* ===== Progress Bar ===== */
.progress {
  height: 10px;
  background: var(--deep);
  border: 1px solid var(--stroke);
  border-radius: 6px;
  overflow: hidden;
  margin-top: 12px;
}

.progress__bar {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-dim), var(--accent));
  border-radius: inherit;
  transition: width 0.6s ease;
}

/* ===== Tags ===== */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.tag {
  padding: 4px 14px;
  font-size: 12.5px;
  font-weight: 600;
  background: var(--deep);
  border: 1px solid var(--stroke);
  border-radius: 999px;
  color: var(--text2);
}

/* ===== Footer ===== */
.footer {
  position: relative;
  margin-top: auto;
  border-top: 1px solid var(--bd);
  background: transparent;
}

.footer::before {
  content: "";
  position: absolute;
  inset: -1px 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent) 50%, transparent);
  opacity: 0.7;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 48px;
  padding: 56px 0 40px;
  align-items: start;
}

.footer__brand-link {
  display: inline-block;
  margin-bottom: 16px;
}

.footer__logo {
  width: 150px;
  height: auto;
  image-rendering: pixelated;
  transition: transform 0.2s ease;
}

.footer__brand-link:hover .footer__logo { transform: translateY(-2px); }

.footer__desc {
  max-width: 300px;
  font-size: 14.5px;
  line-height: 1.65;
  margin: 0 0 20px;
}

.footer__col { min-width: 0; }

.footer__heading {
  margin: 0 0 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text3);
}

.footer__links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 2px;
}

.footer__links a {
  display: inline-block;
  color: var(--text2);
  font-size: 14.5px;
  text-decoration: none;
  padding: 4px 0;
  transition: color 0.15s ease, transform 0.15s ease;
}

.footer__links a:hover {
  color: var(--accent);
  transform: translateX(3px);
  text-decoration: none;
}

.footer__ip {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  background: var(--card);
  border: 1px solid var(--stroke2);
  border-radius: 10px;
  padding: 9px 14px;
  margin-bottom: 18px;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.footer__ip:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(235, 75, 75, 0.08);
}

.footer__meta {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
  color: var(--text2);
  font-size: 14px;
}

.footer__meta li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer__meta .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 10px rgba(61, 220, 132, 0.75);
  flex-shrink: 0;
}

.footer__social {
  display: flex;
  gap: 10px;
}

.footer__social-link {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--card);
  border: 1px solid var(--stroke);
  color: var(--text2);
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.footer__social-link:hover {
  color: #fff;
  border-color: var(--accent);
  background: var(--accent);
  transform: translateY(-2px);
  text-decoration: none;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--stroke);
  padding: 20px 0 26px;
  color: var(--text3);
  font-size: 13px;
}

.footer__bottom a { color: var(--text2); }
.footer__bottom a:hover { color: var(--accent); }

@media (max-width: 900px) {
  .footer__inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer__brand { grid-column: 1 / -1; }
  .footer__desc { max-width: 420px; }
}

@media (max-width: 560px) {
  .footer__inner {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 40px 0 24px;
    text-align: center;
  }
  .footer__brand-link { margin-bottom: 12px; }
  .footer__desc { margin-left: auto; margin-right: auto; }
  .footer__social { justify-content: center; }
  .footer__meta li { justify-content: center; }
  .footer__links a:hover { transform: none; }
  .footer__bottom { justify-content: center; text-align: center; }
}

/* ===== Page Specific ===== */
.page-title {
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.page-subtitle {
  color: var(--text2);
  font-size: 14.5px;
  margin-bottom: 28px;
}

.content-card {
  background: var(--panel);
  border: 1px solid var(--bd);
  border-radius: 16px;
  padding: 28px;
  margin-bottom: 20px;
}

.content-card h3 { margin: 0 0 10px; }
.content-card p { margin-bottom: 14px; }
.content-card p:last-child { margin-bottom: 0; }
.content-card ul, .content-card ol { margin: 12px 0 12px 20px; }
.content-card li { margin: 8px 0; color: var(--text2); }
.content-card li strong { color: var(--text); }

.content-card code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  padding: 2px 6px;
  background: var(--deep);
  border-radius: 5px;
  color: var(--accent);
}

.content-card pre {
  background: var(--console);
  border: 1px solid var(--stroke);
  border-radius: 10px;
  padding: 16px;
  overflow-x: auto;
  margin: 16px 0;
}

.content-card pre code {
  padding: 0;
  background: transparent;
  color: var(--text);
  font-size: 13.5px;
  line-height: 1.6;
}

/* ===== Status Page ===== */
.status-header {
  text-align: center;
  padding: 40px 0 24px;
}

.status-header__logo {
  width: min(360px, 80%);
  height: auto;
  margin: 0 auto 20px;
  image-rendering: pixelated;
}

.status-main {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, 1fr);
  margin-bottom: 28px;
}

@media (max-width: 640px) {
  .status-main { grid-template-columns: 1fr; }
}

.status-card {
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: 16px;
  padding: 22px;
}

.status-card__title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text2);
  margin-bottom: 16px;
}

.status-card__value {
  font-family: var(--font-mono);
  font-size: 36px;
  font-weight: 800;
  line-height: 1.1;
}

.status-card__value--small { font-size: 28px; }

.status-card__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  font-size: 13px;
  color: var(--text2);
}

.player-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.player-item {
  padding: 6px 12px;
  background: var(--deep);
  border: 1px solid var(--stroke);
  border-radius: 8px;
  font-size: 13px;
  font-family: var(--font-mono);
  color: var(--text2);
}

/* ===== Empty State ===== */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--text2);
}

.empty-state__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin-bottom: 16px;
  opacity: 0.5;
  color: var(--text3);
}

.empty-state__title { font-weight: 700; margin-bottom: 8px; color: var(--text); }
.empty-state__desc { margin: 0; }

/* ===== Animations ===== */
@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

.animate-fade-in { animation: fade-in 0.25s ease; }
.animate-slide-up { animation: slide-up 0.28s ease both; animation-delay: 0s !important; }

/* ===== Instant Page Transitions ===== */
@view-transition {
  navigation: auto;
}

::view-transition-old(root) {
  animation: vt-fade-out 0.16s ease both;
}

::view-transition-new(root) {
  animation: vt-fade-in 0.16s ease both;
}

@keyframes vt-fade-out {
  to { opacity: 0; }
}

@keyframes vt-fade-in {
  from { opacity: 0; }
}

/* ===== Scrollbar ===== */
* { scrollbar-width: thin; scrollbar-color: var(--stroke2) var(--bg); }
*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-track { background: var(--bg); }
*::-webkit-scrollbar-thumb { background: var(--stroke2); border-radius: 4px; border: 2px solid var(--bg); }
*::-webkit-scrollbar-thumb:hover { background: var(--stroke); }
*::-webkit-scrollbar-corner { background: var(--bg); }

/* ===== Focus Visible ===== */
:focus:not(:focus-visible) {
  outline: none;
}

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

/* ===== Selection ===== */
::selection { background: rgba(235, 75, 75, 0.3); color: var(--text); }

/* ===== Utility ===== */
.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;
}

.visually-hidden { position: absolute !important; height: 1px; width: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); }