/* ═══════════════════════════════════════════
   Night Paradise — style.css
   ═══════════════════════════════════════════ */

/* ── Переменные ─────────────────────────────── */
:root {
  --accent:       #7c3aed;
  --accent-dim:   #5b21b6;
  --bg:           #0a0a0f;
  --bg2:          #111118;
  --bg3:          #1a1a24;
  --glass:        rgba(255,255,255,0.04);
  --glass-border: rgba(255,255,255,0.08);
  --text:         #e2e8f0;
  --text-muted:   #64748b;
  --radius:       12px;
  --radius-sm:    8px;
  --transition:   0.25s ease;
  --shadow:       0 4px 32px rgba(0,0,0,0.5);
  --font-main:    'Inter', sans-serif;
  --font-display: 'Orbitron', sans-serif;
}

/* ── Сброс ──────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-main);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  cursor: none; /* скрываем стандартный курсор */
}

a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: #a78bfa; }

img { max-width: 100%; display: block; }
button { font-family: var(--font-main); cursor: none; }

/* ── Skip-link ──────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--accent);
  color: #fff;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  z-index: 9999;
  font-weight: 600;
  transition: top var(--transition);
}
.skip-link:focus { top: 16px; }

/* ── Screen-reader only ─────────────────────── */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

/* ── Кастомный курсор ───────────────────────── */
#customCursor {
  position: fixed;
  width: 20px; height: 20px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 99999;
  transition: transform 0.1s ease, background 0.2s ease, width 0.15s ease, height 0.15s ease;
  mix-blend-mode: screen;
}
#customCursor.active {
  width: 14px; height: 14px;
  background: #fff;
}

/* ── Контейнер ──────────────────────────────── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* ── Navbar ─────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 24px;
  height: 64px;
  background: rgba(10,10,15,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--text);
  white-space: nowrap;
}
.brand img { border-radius: 6px; }
.brand:hover { color: var(--accent); }

.navlinks {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
  margin-left: auto;
}
.navlinks a {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}
.navlinks a:hover {
  color: var(--text);
  background: var(--glass);
}

/* Индикатор онлайна в навбаре */
.nav-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}
.nav-status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
  transition: background var(--transition);
}
.nav-status-dot.online  { background: #22c55e; box-shadow: 0 0 6px #22c55e; }
.nav-status-dot.offline { background: #ef4444; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 8px;
}

#accentSelect {
  background: var(--bg3);
  color: var(--text);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 4px 8px;
  font-size: 0.8rem;
  cursor: none;
}

.icon-btn {
  background: none;
  border: 1px solid var(--glass-border);
  color: var(--text);
  font-size: 1.2rem;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
  display: none; /* показывается только на мобиле */
}
.icon-btn:hover { background: var(--glass); }

/* ── Боковое меню ───────────────────────────── */
.side-menu {
  position: fixed;
  top: 0; right: -320px;
  width: 280px;
  height: 100%;
  background: var(--bg2);
  border-left: 1px solid var(--glass-border);
  z-index: 999;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: right 0.3s cubic-bezier(0.4,0,0.2,1);
}
.side-menu.open { right: 0; }

.side-menu nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 16px;
}
.side-menu nav a {
  color: var(--text);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: background var(--transition), color var(--transition);
}
.side-menu nav a:hover {
  background: var(--glass);
  color: var(--accent);
}

.side-menu .close {
  align-self: flex-end;
  display: block;
  font-size: 1.5rem;
}

/* Оверлей-подложка */
.side-menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 998;
  backdrop-filter: blur(2px);
}
.side-menu-overlay.open { display: block; }

/* ── Hero ───────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 40%, #1a0a2e 0%, var(--bg) 70%);
}

#stars {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
}

.hero-bg-fallback {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, #1a0a2e, var(--bg));
}

.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 40px 20px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 7vw, 5rem);
  color: #fff;
  text-shadow: 0 0 40px var(--accent), 0 2px 8px rgba(0,0,0,0.8);
  min-height: 1.2em;
  letter-spacing: 0.03em;
}

.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: var(--text-muted);
  margin: 12px 0 24px;
}

.uptime-counter {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.uptime-counter strong { color: var(--accent); }

.hero-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.server-tag {
  display: inline-block;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  padding: 6px 16px;
  border-radius: 99px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 8px;
}
.server-tag b { color: var(--accent); }

/* ── Кнопки ─────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.9rem;
  border: 2px solid transparent;
  transition: all var(--transition);
  cursor: none;
  white-space: nowrap;
}
.btn.primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn.primary:hover {
  background: var(--accent-dim);
  border-color: var(--accent-dim);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(124,58,237,0.4);
}
.btn.ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--glass-border);
}
.btn.ghost:hover {
  background: var(--glass);
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}
.btn.tiny {
  padding: 5px 12px;
  font-size: 0.78rem;
  border-radius: 6px;
}

/* ── Секции ─────────────────────────────────── */
.section { padding: 80px 0; }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  margin-bottom: 36px;
  color: #fff;
  position: relative;
  display: inline-block;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: -8px; left: 0;
  width: 48px; height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

/* ── Glassmorphism ──────────────────────────── */
.glass {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
}

/* ── Карточки ───────────────────────────────── */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.card {
  background: var(--bg3);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--accent);
}
.card-icon { font-size: 2rem; margin-bottom: 12px; }
.card h3 { font-size: 1.1rem; margin-bottom: 8px; color: #fff; }
.card p  { color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; }

/* Команда */
.team-card { text-align: center; }
.team-avatar {
  border-radius: 50%;
  margin: 0 auto 12px;
  border: 2px solid var(--accent);
  image-rendering: pixelated;
  width: 64px; height: 64px;
}
.team-role {
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ── IP-блок ────────────────────────────────── */
.ip-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.server-ip {
  background: var(--bg3);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 12px 20px;
  font-family: monospace;
  font-size: 1rem;
  color: var(--text);
  min-height: 48px;
  display: flex;
  align-items: center;
}
.server-ip strong { color: var(--accent); margin-left: 6px; }

/* ── Статус сервера ─────────────────────────── */
.status-card {
  background: var(--bg3);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.status-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 99px;
  font-weight: 700;
  font-size: 0.85rem;
}
.status-badge.online  { background: rgba(34,197,94,0.15); color: #22c55e; }
.status-badge.offline { background: rgba(239,68,68,0.15);  color: #ef4444; }
.status-version { color: var(--text-muted); font-size: 0.9rem; }
.status-motd    { color: var(--text-muted); font-size: 0.85rem; font-style: italic; }

/* Список игроков */
.player-list-wrap { margin-top: 20px; }
.player-list-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #fff;
}
.player-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.player-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg3);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  font-size: 0.85rem;
}
.player-item img {
  border-radius: 3px;
  image-rendering: pixelated;
}

/* Скелетоны */
.skel {
  height: 16px;
  background: linear-gradient(90deg, var(--bg3) 25%, var(--bg2) 50%, var(--bg3) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: 6px;
  width: 100%;
}
.skel:nth-child(2) { width: 70%; }
.skel:nth-child(3) { width: 50%; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ── Новости ────────────────────────────────── */
.news-list { display: flex; flex-direction: column; gap: 16px; }
.news-item {
  padding: 20px 24px;
  border-radius: var(--radius);
  transition: border-color var(--transition), transform var(--transition);
}
.news-item:hover { border-color: var(--accent); transform: translateX(4px); }
.news-item time {
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 600;
  display: block;
  margin-bottom: 6px;
}
.news-item p { color: var(--text); line-height: 1.6; font-size: 0.95rem; }

/* ── Галерея ────────────────────────────────── */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.gallery figure {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
}
.gallery figure:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow);
}
.gallery img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.gallery figcaption {
  padding: 8px 12px;
  font-size: 0.8rem;
  color: var(--text-muted);
  background: var(--bg3);
}

/* ── Lightbox ───────────────────────────────── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 9000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius);
  object-fit: contain;
}
.lightbox .icon-btn {
  position: absolute;
  top: 20px; right: 20px;
  display: block;
  font-size: 2rem;
  border: none;
  color: #fff;
  background: rgba(255,255,255,0.1);
}
.lightbox .icon-btn:hover { background: rgba(255,255,255,0.2); }

/* ── Правила ────────────────────────────────── */
.rules-meta { padding: 20px 24px; margin-bottom: 24px; }
.sev-legend {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.hint { font-size: 0.85rem; color: var(--text-muted); }
.sev-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 99px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.sev-low  { color: #22c55e; background: rgba(34,197,94,0.1); }
.sev-med  { color: #f59e0b; background: rgba(245,158,11,0.1); }
.sev-high { color: #f97316; background: rgba(249,115,22,0.1); }
.sev-crit { color: #ef4444; background: rgba(239,68,68,0.1); }

.tip {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.5;
}

.rules-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.rules-search { position: relative; }
.rules-search input {
  width: 100%;
  background: var(--bg3);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 8px 12px;
  font-size: 0.9rem;
  transition: border-color var(--transition);
}
.rules-search input:focus {
  outline: none;
  border-color: var(--accent);
}

.rules-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  align-items: start;
}

.rules-toc {
  padding: 16px;
  position: sticky;
  top: 80px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.rules-toc a {
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.rules-toc a:hover {
  color: var(--accent);
  background: var(--glass);
}

.rule-acc {
  margin-bottom: 12px;
  border-radius: var(--radius);
  overflow: hidden;
}
.rule-acc summary {
  padding: 16px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background var(--transition);
}
.rule-acc summary:hover { background: var(--glass); }
.rule-acc summary::after {
  content: '▼';
  font-size: 0.7rem;
  color: var(--text-muted);
  transition: transform var(--transition);
}
.rule-acc[open] summary::after { transform: rotate(180deg); }
.rule-title { font-weight: 700; color: #fff; }

.rules-list {
  list-style: none;
  padding: 0 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.rules-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.5;
  padding: 8px 0;
  border-bottom: 1px solid var(--glass-border);
}
.rules-list li:last-child { border-bottom: none; }
.num {
  font-family: var(--font-display);
  font-size: 0.75rem;
  color: var(--accent);
  white-space: nowrap;
  padding-top: 2px;
  min-width: 32px;
}

.penalty-matrix { padding: 20px 24px; margin-top: 24px; }
.penalty-matrix summary { cursor: pointer; padding: 4px 0; margin-bottom: 12px; }

/* ── Форма жалобы ───────────────────────────── */
.form-steps {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.step-chip {
  padding: 6px 16px;
  border-radius: 99px;
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--bg3);
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
  transition: all var(--transition);
}
.step-chip.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.report-form { padding: 28px 24px; display: flex; flex-direction: column; gap: 20px; }

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

.field { position: relative; }
.field input,
.field textarea {
  width: 100%;
  background: var(--bg3);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 14px 14px 6px;
  font-size: 0.95rem;
  font-family: var(--font-main);
  transition: border-color var(--transition);
  resize: vertical;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.field label {
  position: absolute;
  top: 10px; left: 14px;
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: all var(--transition);
  pointer-events: none;
}
.field input:focus ~ label,
.field input:not(:placeholder-shown) ~ label,
.field textarea:focus ~ label,
.field textarea:not(:placeholder-shown) ~ label {
  top: 4px;
  font-size: 0.7rem;
  color: var(--accent);
}

.select-field select {
  width: 100%;
  background: var(--bg3);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 14px 14px 6px;
  font-size: 0.9rem;
  font-family: var(--font-main);
  transition: border-color var(--transition);
  cursor: none;
}
.select-field select:focus { outline: none; border-color: var(--accent); }
.select-field label {
  position: absolute;
  top: 4px; left: 14px;
  font-size: 0.7rem;
  color: var(--accent);
  pointer-events: none;
}

.chips-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 5px 14px;
  border-radius: 99px;
  border: 1px solid var(--glass-border);
  background: var(--bg3);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  transition: all var(--transition);
  cursor: none;
}
.chip:hover, .chip.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.label-top {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
  display: block;
  margin-bottom: 8px;
}

.note {
  background: rgba(124,58,237,0.1);
  border: 1px solid rgba(124,58,237,0.3);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.85rem;
  color: var(--text);
}

.row { display: flex; align-items: center; gap: 12px; }
.space-between { justify-content: space-between; }

.check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  cursor: none;
}
.check input[type="checkbox"] { accent-color: var(--accent); width: 16px; height: 16px; }

.error {
  color: #ef4444;
  font-size: 0.82rem;
  margin-top: 6px;
}

.form-result {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
}
.form-result.success {
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.3);
  color: #22c55e;
}
.form-result.error {
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.3);
  color: #ef4444;
}

/* Rule picker */
.rp {
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.rp-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 8px;
  background: var(--bg3);
  border-bottom: 1px solid var(--glass-border);
}
.rp-input {
  flex: 1;
  min-width: 160px;
  background: none;
  border: none;
  color: var(--text);
  font-size: 0.85rem;
  outline: none;
  font-family: var(--font-main);
}
.rp-clear {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  cursor: none;
  padding: 2px 6px;
}
.rp-clear:hover { color: #ef4444; }
.rp-dropdown {
  max-height: 180px;
  overflow-y: auto;
  background: var(--bg3);
}
.rp-dropdown [role="option"] {
  padding: 8px 14px;
  font-size: 0.85rem;
  cursor: none;
  display: flex;
  gap: 10px;
  align-items: center;
  transition: background var(--transition);
}
.rp-dropdown [role="option"]:hover { background: var(--glass); }
.rp-dropdown [role="option"][aria-selected="true"] { color: var(--accent); }
.rp-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 12px;
  font-size: 0.78rem;
  border-top: 1px solid var(--glass-border);
}
.rp-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.rp-chips .chip { padding: 2px 8px; font-size: 0.75rem; }

/* ── Discord виджет ─────────────────────────── */
.discord-widget {
  display: block;
  margin-top: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--glass-border);
  max-width: 100%;
}

/* ── Соцсети ────────────────────────────────── */
#discord, #telegram { text-align: center; }
#discord p, #telegram p { color: var(--text-muted); margin-bottom: 20px; }

/* ── Footer ─────────────────────────────────── */
.footer {
  border-top: 1px solid var(--glass-border);
  padding: 24px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ── Toast ──────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 80px; right: 20px;
  background: var(--bg3);
  border: 1px solid var(--accent);
  color: var(--text);
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  z-index: 9999;
  transform: translateY(20px);
  opacity: 0;
  transition: all var(--transition);
  pointer-events: none;
}
.toast.show { transform: translateY(0); opacity: 1; }

/* ── Кнопка наверх ──────────────────────────── */
.to-top {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 44px; height: 44px;
  padding: 0;
  border-radius: 50%;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: var(--shadow);
}

/* ── Fade-in анимация ───────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Мелочи ─────────────────────────────────── */
.muted { color: var(--text-muted); font-size: 0.85rem; }

/* ══════════════════════════════════════════════
   АДАПТИВ
   ══════════════════════════════════════════════ */
@media (max-width: 900px) {
  .navlinks { display: none; }
  .icon-btn { display: flex; }
  .rules-layout { grid-template-columns: 1fr; }
  .rules-toc { position: static; flex-direction: row; flex-wrap: wrap; }
}

@media (max-width: 640px) {
  .grid { grid-template-columns: 1fr; }
  .ip-wrap { flex-direction: column; align-items: stretch; }
  .server-ip { min-height: 48px; font-size: 0.9rem; }
  .hero-cta { flex-direction: column; align-items: center; }
  .btn { width: 100%; justify-content: center; }
  .cards { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .form-steps { flex-direction: column; }
  #customCursor { display: none; }
  body { cursor: auto; }
  button { cursor: pointer; }
  a { cursor: pointer; }
}

@media (max-width: 400px) {
  .gallery { grid-template-columns: 1fr; }
}

/* ── Печать правил ──────────────────────────── */
@media print {
  .navbar, .hero, .side-menu, .to-top,
  .toast, .lightbox, #customCursor,
  .rules-actions, .form-steps, .nav-actions { display: none !important; }
  body { background: #fff; color: #000; }
  .section { padding: 20px 0; }
  .rule-acc { border: 1px solid #ccc; }
  .glass { background: #f9f9f9; border: 1px solid #ddd; }
}

.team-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
}

