:root {
  color-scheme: dark;
  --bg: #0f0b16;
  --ink: #f7f1ff;
  --muted: #c1b3d7;
  --line: rgba(217, 199, 242, .22);
  --lavender: #d9c7f2;
  --blue: #c9d8f2;
  --rose: #f2c9e1;
  --deep: #bda7de;
  --paper: rgba(27, 21, 39, .78);
  --paper-strong: rgba(35, 27, 49, .92);
  --paper-soft: rgba(255, 255, 255, .055);
  --shadow: 0 22px 70px rgba(0, 0, 0, .35);
  --font-ui: "Nunito Sans", "Aptos", "Segoe UI Variable", "Segoe UI", ui-sans-serif, system-ui, sans-serif;
  --font-display: "Montserrat", "Aptos Display", "Segoe UI Variable Display", "Segoe UI", ui-sans-serif, system-ui, sans-serif;
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #fbf8ff;
  --ink: #251e34;
  --muted: #7b6f8d;
  --line: #e8def5;
  --deep: #9482ad;
  --paper: rgba(255, 255, 255, .84);
  --paper-strong: rgba(255, 255, 255, .94);
  --paper-soft: rgba(255, 255, 255, .62);
  --shadow: 0 18px 50px rgba(118, 94, 151, .2);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 7% 4%, rgba(217, 199, 242, .2), transparent 29rem),
    radial-gradient(circle at 88% 8%, rgba(242, 201, 225, .15), transparent 28rem),
    radial-gradient(circle at 56% 40%, rgba(201, 216, 242, .12), transparent 34rem),
    linear-gradient(180deg, #0e0a15 0%, #171020 45%, #100c17 100%);
  font-family: var(--font-ui);
  letter-spacing: .005em;
  overflow-x: hidden;
}

html[data-theme="light"] body {
  background:
    radial-gradient(circle at 7% 4%, rgba(217, 199, 242, .6), transparent 32rem),
    radial-gradient(circle at 88% 9%, rgba(242, 201, 225, .48), transparent 30rem),
    radial-gradient(circle at 55% 42%, rgba(201, 216, 242, .34), transparent 34rem),
    linear-gradient(180deg, #fffaff 0%, #f7f1ff 48%, #fffaff 100%);
}

a {
  color: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 54px);
  border-bottom: 1px solid rgba(222, 208, 241, .16);
  background: rgba(15, 11, 22, .78);
  backdrop-filter: blur(18px);
}

html[data-theme="light"] .topbar {
  border-bottom-color: rgba(222, 208, 241, .9);
  background: rgba(251, 248, 255, .86);
}

.brand {
  text-decoration: none;
  font-weight: 750;
  letter-spacing: .06em;
  padding: 9px 12px;
  border: 1px solid rgba(217, 199, 242, .8);
  border-radius: 999px;
  background:
    linear-gradient(rgba(22, 17, 32, .96), rgba(22, 17, 32, .96)) padding-box,
    linear-gradient(90deg, #d9c7f2, #c9d8f2, #f2c9e1) border-box;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .22);
}

.brand::first-letter {
  color: #a990cf;
}

.brand {
  color: #f7f1ff;
  font-family: var(--font-display);
}

html[data-theme="light"] .brand {
  color: #4a3c62;
  background:
    linear-gradient(#fffafd, #fffafd) padding-box,
    linear-gradient(90deg, #d9c7f2, #c9d8f2, #f2c9e1) border-box;
  box-shadow: 0 8px 24px rgba(154, 140, 175, .13);
}

.brand-gradient {
  background: linear-gradient(90deg, #a990cf, #88a1d5, #c88bad);
  -webkit-background-clip: text;
  color: transparent;
}

.top-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-right: auto;
}

.top-pills span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 11px;
  border: 1px solid rgba(217, 199, 242, .86);
  border-radius: 999px;
  color: #eadfff;
  background: linear-gradient(135deg, rgba(217, 199, 242, .14), rgba(242, 201, 225, .1));
  box-shadow: 0 8px 24px rgba(0, 0, 0, .2);
  font-size: 12px;
  font-weight: 760;
}

html[data-theme="light"] .top-pills span,
html[data-theme="light"] .theme-toggle {
  color: #625274;
  background: linear-gradient(135deg, rgba(217, 199, 242, .52), rgba(242, 201, 225, .42));
  box-shadow: 0 8px 24px rgba(154, 140, 175, .14);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 16px;
  color: #cec1e4;
  font-size: 14px;
}

.nav a {
  text-decoration: none;
}

.nav a:hover {
  color: #fff;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid rgba(217, 199, 242, .76);
  border-radius: 999px;
  color: #eadfff;
  background: linear-gradient(135deg, rgba(217, 199, 242, .14), rgba(242, 201, 225, .1));
  box-shadow: 0 8px 24px rgba(0, 0, 0, .2);
  font-size: 12px;
  font-weight: 780;
  white-space: nowrap;
}

html[data-theme="light"] .nav {
  color: var(--muted);
}

html[data-theme="light"] .nav a:hover {
  color: var(--ink);
}

.hero {
  position: relative;
  min-height: 690px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(15, 11, 22, .78), rgba(39, 30, 54, .84)),
    url("data:image/svg+xml,%3Csvg width='1400' height='820' viewBox='0 0 1400 820' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' x2='1'%3E%3Cstop stop-color='%23d9c7f2'/%3E%3Cstop offset='.52' stop-color='%23c9d8f2'/%3E%3Cstop offset='1' stop-color='%23f2c9e1'/%3E%3C/linearGradient%3E%3Cfilter id='s'%3E%3CfeDropShadow dx='0' dy='20' stdDeviation='22' flood-color='%23000000' flood-opacity='.38'/%3E%3C/filter%3E%3C/defs%3E%3Crect width='1400' height='820' fill='%23100c17'/%3E%3Cpath d='M0 535C210 406 372 485 560 372C760 250 965 96 1400 168V820H0Z' fill='url(%23g)' opacity='.28'/%3E%3Cpath d='M0 318C270 210 455 288 670 176C888 63 1080 66 1400 96' fill='none' stroke='%23d9c7f2' stroke-width='2' opacity='.22'/%3E%3Cg filter='url(%23s)' opacity='.72'%3E%3Crect x='840' y='396' width='72' height='72' rx='8' fill='%23261b38'/%3E%3Crect x='914' y='348' width='72' height='120' rx='8' fill='%23311f45'/%3E%3Crect x='988' y='300' width='72' height='168' rx='8' fill='%2326354f'/%3E%3Crect x='1062' y='372' width='72' height='96' rx='8' fill='%23442a3d'/%3E%3Crect x='1136' y='420' width='72' height='48' rx='8' fill='%23332549'/%3E%3C/g%3E%3Ccircle cx='230' cy='202' r='94' fill='%23f2c9e1' opacity='.14'/%3E%3Ccircle cx='1030' cy='238' r='126' fill='%23c9d8f2' opacity='.13'/%3E%3Ccircle cx='705' cy='492' r='180' fill='%23d9c7f2' opacity='.1'/%3E%3C/svg%3E");
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}

html[data-theme="light"] .hero-bg {
  background:
    linear-gradient(120deg, rgba(69, 54, 92, .42), rgba(154, 140, 175, .14)),
    radial-gradient(circle at 18% 28%, rgba(242, 201, 225, .42), transparent 20rem),
    radial-gradient(circle at 78% 18%, rgba(201, 216, 242, .5), transparent 24rem),
    linear-gradient(135deg, #fbf7ff 0%, #efe6ff 48%, #fff7fc 100%);
}

.hero-inner {
  position: relative;
  width: min(980px, calc(100% - 32px));
  padding: 84px 0 56px;
  color: #fff;
  text-shadow: 0 1px 18px rgba(72, 55, 99, .26);
}

.hero-layout {
  width: min(1160px, calc(100% - 32px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
  gap: 34px;
  align-items: center;
}

.hero-copy {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--deep);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .18em;
  text-transform: uppercase;
}

html[data-theme="light"] .eyebrow {
  color: var(--deep);
}

.hero .eyebrow {
  color: #f8f3ff;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
  font-family: var(--font-display);
  text-wrap: balance;
}

h1 {
  max-width: 780px;
  font-size: clamp(54px, 10vw, 112px);
  letter-spacing: .04em;
}

h2 {
  font-size: clamp(31px, 5vw, 54px);
  color: #f4edff;
}

h3 {
  color: #efe6ff;
  font-size: 20px;
}

html[data-theme="light"] h2 {
  color: #352d46;
}

html[data-theme="light"] h3 {
  color: #423754;
}

.lead {
  max-width: 620px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, .9);
  font-size: 19px;
  line-height: 1.65;
}

.hero-card {
  border: 1px solid rgba(255, 255, 255, .56);
  border-radius: 8px;
  padding: 20px;
  color: #f5edff;
  background: rgba(27, 21, 39, .72);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .38);
  backdrop-filter: blur(20px);
  text-shadow: none;
}

html[data-theme="light"] .hero-card {
  color: #3c304f;
  background: rgba(255, 255, 255, .74);
  box-shadow: 0 24px 70px rgba(66, 49, 94, .24);
}

.hero-card-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.badge.soft {
  border-color: rgba(217, 199, 242, .78);
  background: rgba(255, 255, 255, .08);
}

.ip-box {
  display: grid;
  gap: 8px;
  margin: 18px 0;
  padding: 18px;
  border: 1px solid rgba(217, 199, 242, .78);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(217, 199, 242, .14), rgba(201, 216, 242, .1), rgba(242, 201, 225, .12));
}

.ip-box span {
  color: #c9badf;
  font-size: 12px;
  font-weight: 780;
  letter-spacing: .12em;
  text-transform: uppercase;
}

html[data-theme="light"] .ip-box span {
  color: #7c6d91;
}

.ip-box strong {
  font-size: 30px;
  letter-spacing: .02em;
}

.copy-button {
  justify-self: start;
  padding: 8px 12px;
  color: #fff;
  background: #9f89c5;
}

.entry-list {
  display: grid;
  gap: 10px;
}

.entry-list div {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(231, 222, 242, .8);
  border-radius: 8px;
  background: rgba(255, 255, 255, .06);
}

html[data-theme="light"] .entry-list div {
  background: rgba(255, 255, 255, .6);
}

.entry-list b {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, #aa90cf, #93a8dc);
}

.entry-list span {
  color: #d5c7e8;
  line-height: 1.35;
}

html[data-theme="light"] .entry-list span {
  color: #5e526f;
}

.hero-actions,
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.button,
button {
  border: 0;
  border-radius: 8px;
  padding: 12px 18px;
  color: #f8f2ff;
  background: rgba(255, 255, 255, .09);
  font: inherit;
  font-weight: 720;
  cursor: pointer;
  text-decoration: none;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}

html[data-theme="light"] .button,
html[data-theme="light"] button {
  color: #342b45;
  background: #fff;
}

.button:hover,
button:hover {
  transform: translateY(-1px);
}

.button.primary {
  color: #fff;
  background: linear-gradient(90deg, #a98dd1, #97aadd, #d79cbb);
  box-shadow: 0 12px 28px rgba(154, 140, 175, .28);
}

.button.ghost {
  color: #f1e8ff;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .14);
}

html[data-theme="light"] .button.ghost {
  color: #4b405e;
  background: rgba(255, 255, 255, .72);
  border: 1px solid rgba(255, 255, 255, .68);
}

.stats {
  display: grid;
  grid-template-columns: repeat(6, minmax(110px, 1fr));
  gap: 10px;
  margin-top: 42px;
}

.stats-light {
  margin-top: 22px;
}

.stats-light .stat {
  background: rgba(255, 255, 255, .075);
}

html[data-theme="light"] .stats-light .stat,
html[data-theme="light"] .stat {
  color: #3d3150;
  background: rgba(255, 255, 255, .82);
  border-color: rgba(255, 255, 255, .72);
  box-shadow: 0 14px 34px rgba(83, 65, 112, .18);
}

.stat,
.panel,
.rule-card,
.city-card,
.route-card {
  border: 1px solid rgba(231, 222, 242, .82);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.stat {
  padding: 16px;
  color: #f7f1ff;
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .12);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .22);
}

.stat strong {
  display: block;
  font-size: 27px;
  color: #fff;
}

html[data-theme="light"] .stat strong {
  color: #3d3150;
}

.stat span {
  color: #c7b8dd;
  font-size: 13px;
}

html[data-theme="light"] .stat span {
  color: #88779b;
}

.section {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 76px 0;
  overflow: hidden;
}

.route-section {
  padding-top: 64px;
}

.route-head {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.route-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.route-card {
  position: relative;
  overflow: hidden;
  min-height: 190px;
  padding: 22px;
}

.route-card::after {
  content: "";
  position: absolute;
  right: -30px;
  top: -30px;
  width: 120px;
  height: 120px;
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(217, 199, 242, .18), rgba(242, 201, 225, .11));
  transform: rotate(12deg);
}

.route-card span {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 18px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, #a98dd1, #97aadd);
  font-weight: 800;
}

.route-card p {
  color: var(--muted);
  line-height: 1.65;
}

.section-head {
  max-width: 720px;
  margin-bottom: 26px;
}

.section-head p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.7;
}

.muted-text {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.panel {
  padding: 22px;
}

.form {
  display: grid;
  gap: 16px;
}

.form.compact {
  margin-top: 22px;
}

label {
  display: grid;
  gap: 8px;
  color: #ded1f2;
  font-size: 14px;
  font-weight: 700;
}

html[data-theme="light"] label {
  color: #5b506c;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 13px;
  color: var(--ink);
  background: rgba(255, 255, 255, .08);
  font: inherit;
  outline: 0;
}

html[data-theme="light"] input,
html[data-theme="light"] textarea,
html[data-theme="light"] select {
  color: var(--ink);
  background: rgba(255, 255, 255, .86);
}

input::placeholder,
textarea::placeholder {
  color: rgba(218, 206, 236, .58);
}

html[data-theme="light"] input::placeholder,
html[data-theme="light"] textarea::placeholder {
  color: rgba(123, 111, 141, .64);
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  border-color: #bda7de;
  box-shadow: 0 0 0 3px rgba(217, 199, 242, .42);
}

.check {
  display: flex;
  align-items: center;
  gap: 10px;
}

.check input {
  width: auto;
}

.result {
  min-height: 24px;
  margin: 0;
  color: var(--deep);
}

.result.error {
  color: #a14f6f;
}

.grid-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.rules-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.rule-card {
  padding: 20px;
}

.rule-card ol {
  margin: 14px 0 0;
  padding-left: 22px;
  color: var(--muted);
  line-height: 1.65;
}

.rule-card li {
  margin: 10px 0;
}

.rule-card strong {
  color: #f1e7ff;
}

html[data-theme="light"] .rule-card strong {
  color: #3f3552;
}

.city-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.city-card {
  padding: 20px;
}

.city-card p {
  color: var(--muted);
  line-height: 1.6;
}

.player-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 12px;
  margin-bottom: 16px;
  max-width: 720px;
}

.players-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 14px;
  width: 100%;
  align-items: stretch;
}

.player-card {
  display: grid;
  grid-template-rows: auto auto auto 1fr;
  gap: 10px;
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(231, 222, 242, .86);
  border-radius: 8px;
  background: rgba(255, 255, 255, .075);
  box-shadow: var(--shadow);
  height: 100%;
  overflow: hidden;
}

html[data-theme="light"] .player-card,
html[data-theme="light"] .news-card,
html[data-theme="light"] .profile-card {
  background: rgba(255, 255, 255, .78);
}

.player-head {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.avatar {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  image-rendering: auto;
  background: linear-gradient(135deg, var(--lavender), var(--blue));
  box-shadow: 0 10px 22px rgba(122, 98, 156, .18);
}

.player-head > div {
  min-width: 0;
}

.player-card h3 {
  overflow: hidden;
  max-width: 100%;
  font-size: 16px;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-card p {
  overflow-wrap: anywhere;
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
  font-size: 14px;
}

.player-card .mini-actions {
  align-self: end;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.player-card .mini-actions button {
  min-width: 0;
  padding: 8px 7px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.news-card {
  overflow: hidden;
  border: 1px solid rgba(231, 222, 242, .86);
  border-radius: 8px;
  background: rgba(255, 255, 255, .075);
  box-shadow: var(--shadow);
}

.news-card img {
  width: 100%;
  max-height: 260px;
  object-fit: cover;
  display: block;
}

.news-body {
  padding: 18px;
}

.news-body p,
.news-body div {
  color: var(--muted);
  line-height: 1.65;
}

.cabinet {
  display: grid;
  gap: 16px;
}

.cabinet-grid {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 16px;
}

.profile-card {
  padding: 20px;
  border: 1px solid rgba(231, 222, 242, .86);
  border-radius: 8px;
  background: rgba(255, 255, 255, .075);
  box-shadow: var(--shadow);
  min-width: 0;
}

.profile-card .avatar {
  width: 86px;
  height: 86px;
  margin-bottom: 14px;
}

.cabinet-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.cabinet-tabs button {
  padding: 9px 12px;
  color: #ded1f2;
  background: rgba(255, 255, 255, .07);
  border: 1px solid var(--line);
}

html[data-theme="light"] .cabinet-tabs button,
html[data-theme="light"] .admin-tabs button {
  color: #5b506c;
  background: rgba(255, 255, 255, .72);
}

.cabinet-tabs button.active {
  color: #fff;
  background: linear-gradient(90deg, #a98dd1, #97aadd);
}

.badge {
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 10px;
  color: #ded0f3;
  background: rgba(255, 255, 255, .08);
  font-size: 12px;
  font-weight: 740;
  white-space: nowrap;
}

html[data-theme="light"] .badge {
  color: #6d5d83;
  background: rgba(255, 255, 255, .62);
}

.admin-login {
  max-width: 460px;
}

.hidden {
  display: none !important;
}

.admin-shell {
  display: grid;
  grid-template-columns: minmax(180px, 210px) minmax(0, 1fr);
  gap: 18px;
}

.admin-tabs {
  display: grid;
  gap: 8px;
  align-content: start;
}

.admin-tabs button {
  text-align: left;
  color: #ded1f2;
  background: rgba(255, 255, 255, .07);
  border: 1px solid var(--line);
}

.admin-tabs button.active {
  color: #fff;
  background: linear-gradient(90deg, #a98dd1, #8fa6d8);
}

.admin-content {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .06);
}

html[data-theme="light"] .table-wrap {
  background: rgba(255, 255, 255, .74);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

th,
td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-size: 14px;
}

th {
  color: #eadfff;
  background: rgba(217, 199, 242, .12);
}

td {
  color: #daceec;
}

html[data-theme="light"] th {
  color: #5b506c;
  background: rgba(217, 199, 242, .24);
}

html[data-theme="light"] td {
  color: #4b405e;
}

.mini-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.mini-actions button {
  padding: 7px 10px;
  font-size: 12px;
  background: rgba(217, 199, 242, .12);
}

html[data-theme="light"] .mini-actions button {
  background: #f4eefb;
}

.danger {
  color: #8d375b !important;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(18px, 4vw, 54px);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

@media (max-width: 1120px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .top-pills {
    margin-right: 0;
  }

  .nav {
    justify-content: flex-start;
  }
}

@media (max-width: 880px) {
  .footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    flex-wrap: wrap;
  }

  .top-pills {
    order: 3;
    width: 100%;
  }

  .stats,
  .rules-grid,
  .city-grid,
  .players-grid,
  .news-grid,
  .grid-two,
  .player-tools,
  .cabinet-grid,
  .admin-shell,
  .hero-layout,
  .route-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 560px;
  }

  h1 {
    font-size: clamp(42px, 15vw, 68px);
  }

  .admin-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .section,
  .hero-layout,
  .hero-inner {
    width: min(100% - 22px, 1120px);
  }

  .players-grid {
    grid-template-columns: 1fr;
  }

  .player-card .mini-actions {
    grid-template-columns: 1fr;
  }

  .admin-tabs {
    grid-template-columns: 1fr;
  }
}
