:root {
  --bg: #050c12;
  --bg-2: #071317;
  --sidebar: #0c1f26;
  --panel: #10262e;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f4f7f8;
  --muted: #9bb0b8;
  --lime: #8cc63f;
  --lime-2: #a4dc55;
  --gold: #f2b84b;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
  --header-h: 72px;
  --sidebar-w: 272px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--lime-2); }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }

.skip { position: absolute; left: -999px; }
.skip:focus {
  left: 12px; top: 12px; z-index: 100;
  background: var(--lime); color: #111;
  padding: 8px 12px; border-radius: 8px;
}

.header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 18px;
  background: rgba(8, 22, 27, 0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  color: #fff;
}
.brand { display: flex; align-items: center; height: 52px; flex-shrink: 0; }
.brand img { height: 44px; width: auto; }
.topnav { display: flex; gap: 6px; margin: 0 auto; }
.topnav a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  color: #d7e4e8;
  font-weight: 700;
  font-size: 14px;
}
.topnav a.active,
.topnav a:hover { background: rgba(58, 214, 208, 0.16); color: #fff; }
.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}
.bell {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--panel);
  display: grid;
  place-items: center;
}
.bell span {
  position: absolute;
  top: 4px; right: 4px;
  min-width: 16px; height: 16px;
  border-radius: 99px;
  background: var(--lime);
  color: #14240a;
  font-size: 10px;
  font-weight: 800;
  display: grid;
  place-items: center;
}
.balance { font-weight: 800; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  padding: 10px 22px;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
}
.btn-lime {
  background: linear-gradient(180deg, var(--lime-2), var(--lime));
  color: #14240a;
}
.btn-lime:hover { filter: brightness(1.08); color: #14240a; }
.btn-gold {
  background: linear-gradient(180deg, #ffd56a, #f2b84b);
  color: #3a2704;
}
.btn-gold:hover { color: #3a2704; }
.btn-dark, .btn-outline {
  background: #16313a;
  color: #fff;
  border: 1px solid var(--line);
}

.layout {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  min-height: calc(100vh - var(--header-h));
}
.sidebar {
  background: var(--sidebar);
  border-right: 1px solid var(--line);
  padding: 16px 12px 24px;
  overflow: auto;
}
.profile {
  background: #0f2831;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 14px;
}
.profile-top { display: flex; align-items: center; gap: 10px; }
.avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(180deg, #ffd24a, #ff8a1a);
  display: grid; place-items: center;
  font-weight: 800; color: #2a1600;
}
.uname { font-weight: 700; }
.ulevel { font-size: 12px; color: var(--muted); }
.progress {
  height: 8px; background: #17343d; border-radius: 99px;
  overflow: hidden; margin: 10px 0;
}
.progress i {
  display: block; height: 100%; width: 22%;
  background: linear-gradient(90deg, #3ad6d0, #7cf0c8);
}
.levels, .missions {
  display: flex; justify-content: space-between; gap: 6px;
  font-size: 11px; color: var(--muted);
}
.missions span {
  flex: 1; text-align: center;
  background: #16313a; border-radius: 8px; padding: 6px 0; color: #fff;
}
.side-link {
  width: 100%; display: flex; align-items: center; gap: 10px;
  padding: 11px 12px; color: #dbe7eb; border-radius: 12px;
  font-size: 14px; font-weight: 600;
}
.side-link:hover { background: rgba(255,255,255,.06); color: #fff; }
.badge {
  margin-left: auto; min-width: 22px; height: 18px; padding: 0 6px;
  border-radius: 99px; background: var(--lime); color: #14240a;
  font-size: 10px; font-weight: 800; display: inline-grid; place-items: center;
}
.side-drop { margin: 6px 0; }
.side-drop summary { cursor: pointer; padding: 11px 12px; border-radius: 12px; font-weight: 700; }
.side-drop .sub a { display: block; padding: 8px 12px 8px 28px; color: var(--muted); font-size: 13px; }
.side-drop .sub a:hover { color: #fff; }
.lang { margin-top: 16px; padding: 10px 12px; color: var(--muted); }

.main {
  min-width: 0;
  padding: 28px 24px 56px;
  background: radial-gradient(1200px 400px at 70% -10%, rgba(140,198,63,.08), transparent 50%), var(--bg-2);
}
.hero {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 22px;
  margin-bottom: 28px;
}
.hero > div, .hero-card {
  background: linear-gradient(180deg, #12262d, #0d1c22);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 32px;
  box-shadow: var(--shadow);
}
.kicker {
  color: var(--lime-2); font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; font-size: 12px; margin: 0 0 10px;
}
h1 { font-size: clamp(28px, 4vw, 42px); line-height: 1.12; margin: 0 0 14px; }
.lead { color: #c9d2e0; margin: 0 0 16px; }
.meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.chip {
  background: #16313a; border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 12px; font-size: 12px; font-weight: 700;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-card h3 { margin: 0 0 12px; }
.hero-card ul { margin: 0; padding-left: 18px; color: #c9d2e0; }
.banners { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 8px; }
.banners a { display: block; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); height: 220px; }
.banners img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }

.section { margin: 36px 0; }
.section h2 { font-size: 28px; margin: 0 0 8px; }
.section p { color: var(--muted); }
.section a { color: var(--lime-2); }
.section a.btn-lime, a.btn-lime { color: #14240a; }
.section a.btn-gold, a.btn-gold { color: #3a2704; }
.section a.btn-dark, .section a.btn-outline { color: #fff; }
.grid-2, .grid-3, .grid-4, .steps { display: grid; gap: 14px; }
.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.steps { grid-template-columns: repeat(4, 1fr); }
.card, .step {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 16px; padding: 18px;
}
.card h3 { margin: 0 0 8px; }
.card p { margin: 0; color: var(--muted); }

.table-wrap {
  overflow: auto; border: 1px solid var(--line);
  border-radius: 16px; background: #0c1b21;
}
table { width: 100%; border-collapse: collapse; min-width: 640px; }
th, td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
tbody th { color: #dce3ef; background: #0e2027; }
td { color: #c7d0de; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 16px; }
.filter {
  padding: 8px 14px; border-radius: 999px; background: #16313a;
  border: 1px solid var(--line); font-size: 13px; font-weight: 700;
}
.filter.active { background: var(--lime); color: #14240a; }
.games { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; align-items: stretch; }
.game {
  position: relative;
  display: block;
  background: var(--panel);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 4 / 3;
}
.game img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: fill;
  object-position: center center;
}
.game span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 28px 10px 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--lime);
  background: linear-gradient(transparent, rgba(5, 12, 18, 0.9));
}

.faq details {
  background: #0f2831; border: 1px solid var(--line);
  border-radius: 14px; padding: 14px 16px; margin-bottom: 10px;
}
.faq summary { cursor: pointer; font-weight: 800; }
.faq p { color: var(--muted); margin: 10px 0 0; }
.prose p, .prose li { color: #c7d0de; }
.prose a { color: var(--lime-2); }

.site-footer { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.crumbs { color: #8b93a3; font-size: 13px; margin-bottom: 18px; display: flex; gap: 8px; }
.foot-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.foot-col h4 { margin: 0 0 12px; font-size: 14px; }
.foot-col a { display: block; color: #cfd5e0; font-size: 14px; padding: 5px 0; }
.foot-col a:hover { color: var(--lime-2); }
.socials { display: flex; gap: 8px; flex-wrap: wrap; }
.socials a {
  width: 36px; height: 36px; border-radius: 50%; background: #161b22;
  display: grid; place-items: center; color: #fff;
}
.rg { display: flex; align-items: center; gap: 10px; margin-top: 14px; color: #9aa3b5; font-size: 12px; }
.badge-18 {
  width: 36px; height: 36px; border: 2px solid #fff; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; flex-shrink: 0;
}
.foot-acc { display: none; }
.logo-rows { margin-top: 28px; }
.logo-row {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 18px 32px; padding: 16px 0;
}
.logo-row + .logo-row { border-top: 1px solid var(--line); }
.pay img { height: 28px; width: auto; }

.cookie {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60;
  background: #151b24; border: 1px solid var(--line); border-radius: 16px;
  padding: 16px; display: none; gap: 12px; align-items: center;
  box-shadow: var(--shadow); max-width: 920px; margin: 0 auto;
}
.cookie.show { display: flex; }
.cookie p { margin: 0; color: #c9d2e0; font-size: 13px; }

@media (max-width: 1100px) {
  .grid-4, .games { grid-template-columns: repeat(3, 1fr); }
  .hero, .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed; top: var(--header-h); left: 0; bottom: 0;
    width: min(86vw, 320px); z-index: 30;
    transform: translateX(-110%); transition: transform .2s ease;
  }
  .sidebar.open { transform: none; }
  .menu-btn { display: grid; place-items: center; }
  .topnav, .balance { display: none; }
  .grid-2, .grid-3, .grid-4, .steps, .hero, .banners { grid-template-columns: 1fr; }
  .banners a { height: 180px; }
  .foot-grid { display: none; }
  .foot-acc { display: block; }
  .cookie { flex-direction: column; align-items: stretch; }
}
@media (max-width: 640px) {
  .games { grid-template-columns: 1fr 1fr; }
  .main { padding: 18px 14px 40px; }
}
