:root {
  --bg: #0d0f11;
  --bg-soft: #11141a;
  --panel: #161b22;
  --panel-2: #1b212b;
  --border: #232b36;
  --border-strong: #2f3a48;
  --text: #eae7e2;
  --muted: #8b929d;
  --dim: #5d6570;
  --accent: #e8701a;
  --accent-2: #ff9b3d;
  --accent-soft: rgba(232, 112, 26, 0.14);
  --green: #4fbf7e;
  --green-soft: rgba(79, 191, 126, 0.14);
  --red: #e05d5d;
  --red-soft: rgba(224, 93, 93, 0.14);
  --radius: 10px;
  --font: "Segoe UI", Inter, Roboto, Arial, sans-serif;
  --mono: "Cascadia Code", Consolas, "Roboto Mono", monospace;
}

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

body {
  font-family: var(--font);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(1100px 520px at 75% -12%, rgba(232, 112, 26, 0.08), transparent 60%),
    radial-gradient(800px 420px at 0% 0%, rgba(232, 112, 26, 0.05), transparent 55%),
    linear-gradient(180deg, #0e1116, var(--bg) 40%);
  background-attachment: fixed;
}

/* ===== Анимированный фон (4K) ===== */
#bg3d {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.container { width: min(1180px, 100% - 40px); margin: 0 auto; }
main.page { flex: 1; padding: 30px 0 60px; }
a { color: inherit; text-decoration: none; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.center { text-align: center; }
.narrow { max-width: 640px; }

/* ===== Шапка ===== */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(13, 15, 17, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; letter-spacing: 0.04em; }
.logo-mark { width: 26px; height: 26px; }
.logo .accent { color: var(--accent-2); }
.nav { display: flex; gap: 4px; }
.nav a { padding: 8px 14px; border-radius: 8px; color: var(--muted); font-size: 14px; }
.nav a:hover { color: var(--text); background: var(--panel-2); }
.nav a.active { color: var(--text); background: var(--accent-soft); }

/* ===== Герой / статистика ===== */
.hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin: 26px 0; }
.hero-left { display: flex; align-items: center; gap: 18px; }
.game-icon { width: 64px; height: 64px; border-radius: 14px; box-shadow: 0 0 0 1px var(--border), 0 8px 24px rgba(0, 0, 0, 0.4); }
.eyebrow { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-2); margin-bottom: 6px; }
h1 { margin: 0; font-size: clamp(24px, 4vw, 34px); text-transform: uppercase; letter-spacing: 0.02em; }
.stat-tiles { display: flex; gap: 12px; }
.stat-tile { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 18px; min-width: 92px; text-align: center; }
.stat-value { font-size: 24px; font-weight: 700; font-family: var(--mono); }
.stat-value.online { color: var(--green); }
.stat-value.accent { color: var(--accent-2); }
.stat-label { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* ===== Панель инструментов ===== */
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.seg { display: flex; background: var(--panel); border: 1px solid var(--border); border-radius: 10px; padding: 3px; }
.seg-btn { border: 0; background: transparent; color: var(--muted); padding: 7px 14px; border-radius: 8px; cursor: pointer; font-size: 13px; font-family: inherit; }
.seg-btn:hover { color: var(--text); }
.seg-btn.active { background: var(--accent-soft); color: var(--accent-2); }
.toolbar-right { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.search { background: var(--panel); border: 1px solid var(--border); border-radius: 8px; padding: 8px 12px; color: var(--text); width: 210px; font-family: inherit; }
.search::placeholder { color: var(--dim); }
.select { background: var(--panel); border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; color: var(--text); font-family: inherit; }

/* ===== Кнопки ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid var(--border-strong); background: var(--panel-2); color: var(--text);
  border-radius: 8px; padding: 9px 16px; font-size: 14px; cursor: pointer; font-family: inherit;
  transition: border-color 0.15s, background 0.15s;
}
.btn:hover { border-color: var(--accent); }
.btn.primary { background: linear-gradient(180deg, var(--accent-2), var(--accent)); border-color: rgba(232, 112, 26, 0.6); color: #1a1208; font-weight: 700; }
.btn.primary:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; }
.btn.mini { padding: 5px 9px; font-size: 12px; }
.btn.small { padding: 7px 12px; font-size: 13px; }
.btn.active { border-color: var(--accent); color: var(--accent-2); }
.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid var(--border-strong); background: transparent; color: var(--text);
  border-radius: 8px; padding: 6px 12px; font-size: 13px; cursor: pointer; font-family: inherit;
  text-decoration: none; transition: border-color 0.15s, background 0.15s;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-2); }

/* ===== Авторизация ===== */
.btn-login {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(180deg, #1b2838, #0f1a26); color: #e5ecf5;
  border: 1px solid #2c3e50; border-radius: 8px; padding: 8px 15px;
  font-size: 14px; font-weight: 700; font-family: inherit; cursor: pointer;
}
.btn-login:hover { border-color: var(--accent); }
.btn-login .steam-ico { width: 18px; height: 18px; }
.inline-form { display: inline; margin: 0; }
.user-link { display: inline-flex; align-items: center; gap: 8px; }
.avatar { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--border-strong); object-fit: cover; }
.user-name { max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ===== Кабинет ===== */
.balance-card {
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  background: linear-gradient(120deg, rgba(232, 112, 26, 0.12), var(--panel) 60%);
  border: 1px solid var(--border-strong); border-radius: 12px; padding: 22px; margin-bottom: 22px;
}
.balance-value { font-size: 34px; font-weight: 700; font-family: var(--mono); color: var(--accent-2); }
.balance-note { color: var(--muted); font-size: 13px; margin-top: 4px; }
.profile-row { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.profile-avatar { width: 64px; height: 64px; border-radius: 50%; border: 2px solid var(--border-strong); object-fit: cover; }
.profile-name { font-size: 22px; font-weight: 700; }
.profile-id { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.mono-table td { font-family: var(--mono); font-size: 12.5px; }
.pill { display: inline-block; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; border-radius: 999px; padding: 3px 9px; }
.pill.paid { color: var(--green); background: var(--green-soft); border: 1px solid rgba(79, 191, 126, 0.3); }
.pill.pending { color: var(--accent-2); background: var(--accent-soft); border: 1px solid rgba(232, 112, 26, 0.35); }
.delete-form { display: inline; }
.btn.danger { border-color: rgba(224, 93, 93, 0.4); color: var(--red); background: transparent; }
.btn.danger:hover { background: var(--red-soft); border-color: var(--red); }

/* ===== Позиция в списке ===== */
.place {
  display: inline-block; min-width: 30px; text-align: center;
  font-family: var(--mono); font-weight: 700; font-size: 16px;
  color: var(--text); background: var(--panel-2); border: 1px solid var(--border-strong);
  border-radius: 8px; padding: 4px 8px;
}
.place-top { color: var(--accent-2); border-color: var(--accent); }

/* ===== Платные услуги / продвижение ===== */
.accent { color: var(--accent-2); }
.pill.promo { color: #ffd23d; background: rgba(255, 210, 61, 0.12); border: 1px solid rgba(255, 210, 61, 0.4); }
.pill.top { color: var(--accent-2); background: var(--accent-soft); border: 1px solid rgba(232, 112, 26, 0.4); }

.srv-badge {
  display: inline-block; font-family: var(--mono); font-size: 10px; text-transform: uppercase;
  letter-spacing: 0.05em; border-radius: 4px; padding: 1px 6px; vertical-align: 2px;
}
.srv-badge.promo { color: #ffd23d; border: 1px solid rgba(255, 210, 61, 0.5); background: rgba(255, 210, 61, 0.1); }
.srv-badge.top { color: var(--accent-2); border: 1px solid var(--accent); background: var(--accent-soft); }
.hl-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-left: 8px; vertical-align: 1px; box-shadow: 0 0 6px currentColor; }

.notice { border-radius: 8px; padding: 10px 14px; font-size: 13.5px; margin-bottom: 14px; }
.notice.ok { color: var(--green); background: var(--green-soft); border: 1px solid rgba(79, 191, 126, 0.35); }
.notice.err { color: var(--red); background: var(--red-soft); border: 1px solid rgba(224, 93, 93, 0.35); }

.promo-form { display: flex; flex-direction: column; gap: 16px; }
.promo-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.promo-card {
  display: block; position: relative; cursor: pointer;
  border: 1px solid var(--border); border-radius: 10px; padding: 14px 14px 14px 40px;
  transition: border-color 0.15s, background 0.15s;
}
.promo-card:hover { border-color: var(--border-strong); }
.promo-card input[type="radio"] { position: absolute; left: 14px; top: 16px; accent-color: var(--accent); }
.promo-card:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.promo-name { font-weight: 700; font-size: 15px; }
.promo-price { font-family: var(--mono); font-size: 18px; color: var(--accent-2); margin: 3px 0; }
.promo-price .muted { font-family: var(--font); font-size: 12px; }
.promo-desc { font-size: 12.5px; color: var(--muted); }

.promo-fields { display: flex; gap: 20px; flex-wrap: wrap; align-items: flex-end; }
.promo-fields label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--muted); font-weight: 600; }
.promo-fields input[type="number"] { background: var(--bg-soft); border: 1px solid var(--border); border-radius: 8px; padding: 9px 12px; color: var(--text); font-family: inherit; width: 130px; }
.color-palette { display: flex; gap: 8px; }
.swatch { cursor: pointer; border-radius: 50%; padding: 2px; border: 2px solid transparent; }
.swatch span { display: block; width: 26px; height: 26px; border-radius: 50%; }
.swatch.sel { border-color: var(--text); }
.swatch:hover { border-color: var(--muted); }

.active-services { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.active-services .pill { font-size: 12px; }

/* ===== Промо-секция (шапка сайта) ===== */
.promo-section { margin-bottom: 22px; }
.promo-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.promo-strip {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px;
  padding: 16px; border-radius: 14px;
  background:
    radial-gradient(700px 160px at 20% 0%, rgba(255, 210, 61, 0.1), transparent 60%),
    linear-gradient(120deg, rgba(232, 112, 26, 0.12), var(--panel) 55%);
  border: 1px solid rgba(232, 112, 26, 0.45);
  box-shadow: inset 0 0 40px rgba(232, 112, 26, 0.05);
}
.promo-card-item {
  display: flex; flex-direction: column; gap: 9px;
  background: var(--panel); border: 1px solid var(--border-strong); border-radius: 10px; padding: 14px;
}
.promo-status { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--green); align-self: flex-start; }
.promo-status .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.promo-status.off { color: var(--red); }
.promo-title { font-size: 15px; font-weight: 700; line-height: 1.3; }
.promo-title:hover { color: var(--accent-2); }
.promo-tag { font-family: var(--mono); font-size: 11px; color: var(--accent-2); }
.promo-meta { display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: var(--muted); }
.promo-meta .mono { color: var(--dim); }
.promo-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; }



/* ===== Таблица ===== */
.view { margin-bottom: 30px; }
.servers-table {
  width: 100%; border-collapse: collapse;
  background: var(--panel); border: 1px solid var(--border); border-radius: 12px; overflow: hidden;
}
.servers-table th {
  text-align: left; font-family: var(--mono); font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--dim); padding: 12px 14px;
  border-bottom: 1px solid var(--border); background: var(--bg-soft);
}
.servers-table td { padding: 12px 14px; border-bottom: 1px solid rgba(35, 43, 54, 0.5); vertical-align: middle; }
.servers-table tbody tr:last-child td { border-bottom: 0; }
.servers-table tbody tr:hover { background: rgba(232, 112, 26, 0.04); }
.srv-name { font-weight: 600; font-size: 14px; }
.srv-name:hover { color: var(--accent-2); }
.srv-tag { font-family: var(--mono); font-size: 11px; color: var(--muted); margin-top: 3px; }
.conn:hover { color: var(--accent-2); }
.cell-online { min-width: 150px; }
.now .num { font-family: var(--mono); font-weight: 700; font-size: 15px; }
.pop-bar { height: 4px; background: rgba(255, 255, 255, 0.07); border-radius: 2px; margin-top: 7px; overflow: hidden; width: 130px; }
.pop-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); border-radius: 2px; }
.off { color: var(--red); font-size: 13px; }

.star { border: 0; background: transparent; color: var(--dim); cursor: pointer; font-size: 17px; padding: 2px 4px; line-height: 1; }
.star:hover { color: var(--accent-2); }
.star.fav { color: var(--accent-2); }

/* ===== Статус ===== */
.status-pill {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--mono); font-size: 12px; color: var(--green);
  background: var(--green-soft); border: 1px solid rgba(79, 191, 126, 0.3);
  border-radius: 999px; padding: 5px 11px; text-transform: uppercase; letter-spacing: 0.05em;
}
.status-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.status-pill.offline { color: var(--red); background: var(--red-soft); border-color: rgba(224, 93, 93, 0.3); }

/* ===== Сетка ===== */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 18px; }
.server-card {
  position: relative; display: flex; flex-direction: column; gap: 12px;
  background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 18px;
  transition: border-color 0.15s, transform 0.15s;
}
.server-card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.card-star { position: absolute; top: 14px; right: 14px; }
.card-title { font-size: 16px; font-weight: 700; line-height: 1.3; padding-right: 26px; }
.card-title:hover { color: var(--accent-2); }
.card-tag { font-family: var(--mono); font-size: 11px; color: var(--accent-2); text-transform: uppercase; letter-spacing: 0.05em; min-height: 13px; }
.card-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; font-size: 12.5px; border-top: 1px solid var(--border); padding-top: 12px; }
.card-meta .label { display: block; color: var(--dim); font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 3px; }
.card-addr { font-size: 12.5px; color: var(--muted); }
.card-actions { display: flex; gap: 8px; margin-top: auto; }

.empty { padding: 30px; text-align: center; background: var(--panel); border: 1px dashed var(--border-strong); border-radius: 12px; }

/* ===== Страница сервера ===== */
.breadcrumbs { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: 13px; margin-bottom: 18px; flex-wrap: wrap; }
.breadcrumbs a:hover { color: var(--accent-2); }
.panel { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 22px; }
.server-hero { margin-bottom: 22px; }
.server-hero-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.server-hero h1 { font-size: clamp(22px, 3vw, 28px); }
.tagline { color: var(--accent-2); font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; margin: 6px 0 20px; }
.meta-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-bottom: 22px; }
.meta { border-top: 1px solid var(--border); padding-top: 10px; }
.meta .label { color: var(--dim); font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 5px; }
.meta .value { font-size: 15px; font-weight: 600; }
.server-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.players-panel { padding: 22px; }
.panel-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; gap: 10px; }
.panel-head h2 { margin: 0; font-size: 18px; text-transform: uppercase; }
.players-table { width: 100%; border-collapse: collapse; }
.players-table th { text-align: left; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--dim); padding: 9px 10px; border-bottom: 1px solid var(--border); }
.players-table td { padding: 9px 10px; border-bottom: 1px solid rgba(35, 43, 54, 0.5); font-size: 13.5px; }
.players-table .pname { font-weight: 600; }
.players-table tbody tr:last-child td { border-bottom: 0; }

/* ===== Форма ===== */
.add-form { display: flex; flex-direction: column; gap: 16px; max-width: 460px; }
.add-form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--muted); font-weight: 600; }
.add-form label .muted { font-weight: 400; }
.add-form input, .add-form select { background: var(--bg-soft); border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; color: var(--text); font-family: inherit; font-size: 14px; }
.add-form input:focus, .add-form select:focus { outline: none; border-color: var(--accent); }
.add-form .hint { font-size: 12px; font-weight: 400; margin-top: -2px; }
.add-form label[hidden] { display: none; }
.form-actions { display: flex; align-items: center; gap: 14px; margin-top: 6px; }

/* ===== Подвал ===== */
.footer { border-top: 1px solid var(--border); padding: 22px 0; color: var(--dim); font-size: 13px; }
.footer .container { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.footer-left { display: flex; flex-direction: column; gap: 6px; }
.footer-docs { display: flex; gap: 16px; }
.footer-docs a { color: var(--muted); }
.footer-docs a:hover { color: var(--accent-2); }
.footer-operator { font-size: 12px; }
.footer-right { display: flex; align-items: center; gap: 14px; }
.age-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border: 1px solid var(--border-strong); border-radius: 8px;
  font-family: var(--mono); font-size: 13px; font-weight: 700; color: var(--muted);
}

/* ===== Cookie-баннер ===== */
.cookie-banner[hidden] { display: none; }
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 200;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  background: var(--panel); border: 1px solid var(--border-strong); border-radius: 12px;
  padding: 14px 18px; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
  max-width: 640px; margin: 0 auto;
}
.cookie-banner-text { font-size: 13px; color: var(--muted); line-height: 1.5; }
.cookie-banner-text a { color: var(--accent-2); }
.cookie-banner-actions { display: flex; }

/* ===== Юридические страницы ===== */
.legal-block { margin-bottom: 16px; padding: 20px 22px; }
.legal-block h2 { margin: 0 0 12px; font-size: 17px; }
.legal-block p { font-size: 14px; line-height: 1.6; color: var(--text); margin: 8px 0; }
.legal-block ul { margin: 8px 0; padding-left: 20px; }
.legal-block li { font-size: 14px; line-height: 1.6; margin: 5px 0; }
.legal-block a { color: var(--accent-2); }
.legal-block a:hover { text-decoration: underline; }

/* ===== Согласие на обработку ПДн ===== */
.consent-check {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13px; color: var(--muted); font-weight: 400 !important; line-height: 1.5;
}
.consent-check input[type="checkbox"] { margin-top: 2px; accent-color: var(--accent); }
.consent-check a { color: var(--accent-2); }
.consent-check a:hover { text-decoration: underline; }

/* ===== Сетка игр ===== */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 14px;
  margin-top: 6px;
}
.game-card {
  display: flex; align-items: center; gap: 16px;
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px;
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.game-card:hover {
  border-color: var(--game-accent, var(--accent));
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px var(--game-accent, var(--accent)), 0 10px 26px rgba(0, 0, 0, 0.35);
}
.game-card .game-icon { width: 52px; height: 52px; border-radius: 12px; flex-shrink: 0; }
.game-card-body { flex: 1; min-width: 0; }
.game-card-name { font-weight: 700; font-size: 16px; margin-bottom: 6px; }
.game-card-meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.game-card-meta b { color: var(--text); font-family: var(--mono); }
.game-card-meta .ok b { color: var(--green); }
.game-card-meta .accent b { color: var(--accent-2); }
.game-chevron { width: 20px; height: 20px; color: var(--dim); flex-shrink: 0; }
.game-card:hover .game-chevron { color: var(--game-accent, var(--accent)); }

/* ===== Меню выбора игры в шапке ===== */
.game-menu { position: relative; }
.game-menu-toggle { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; }
.game-menu-toggle .caret { width: 12px; height: 12px; opacity: 0.6; transition: transform 0.15s; }
.game-menu.open .game-menu-toggle .caret { transform: rotate(180deg); }
.game-dropdown {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 260px; max-width: 340px;
  background: var(--panel-2); border: 1px solid var(--border-strong); border-radius: 12px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5); padding: 6px; display: none;
  max-height: 70vh; overflow-y: auto; z-index: 60;
}
.game-menu.open .game-dropdown { display: block; }
.game-dropdown a {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px;
  color: var(--text); font-size: 14px;
}
.game-dropdown a:hover { background: var(--panel); }
.game-dropdown a.active { background: var(--accent-soft); color: var(--accent-2); }
.game-dropdown a img { width: 30px; height: 30px; border-radius: 7px; }
.game-dropdown .dropdown-label { padding: 8px 10px 4px; font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--dim); font-family: var(--mono); }

/* ===== Адаптивность ===== */
@media (max-width: 720px) {
  .toolbar { flex-direction: column; align-items: stretch; }
  .toolbar-right { justify-content: space-between; }
  .search { width: 100%; }
  .servers-table th:nth-child(5), .servers-table td:nth-child(5),
  .servers-table th:nth-child(6), .servers-table td:nth-child(6) { display: none; }
}
