:root {
  --bg: #0c0c0c;
  --bg-2: #111;
  --card: #161616;
  --card-2: #1b1b1b;
  --elev: #202020;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f5f5f5;
  --muted: #9a9a9a;
  --green: #c6ff3d;
  --green-2: #b4f02a;
  --green-dim: rgba(198, 255, 61, 0.16);
  --gold: #f5d547;
  --gold-text: #1a1400;
  --danger: #ff5a3d;
  --orange: #ff8a1a;
  --red: #ff4d6d;
  --wrap: 1240px;
  --header: 72px;
  --radius: 16px;
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
  --font: "Manrope", "Segoe UI", sans-serif;
}

[data-theme="light"] {
  --bg: #f3f4f6;
  --bg-2: #fff;
  --card: #fff;
  --card-2: #f8fafc;
  --elev: #fff;
  --line: rgba(15, 23, 42, 0.1);
  --text: #111827;
  --muted: #6b7280;
  --green-dim: rgba(132, 204, 22, 0.18);
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 400px at 10% -10%, rgba(198, 255, 61, 0.07), transparent 55%),
    radial-gradient(700px 300px at 90% 0%, rgba(34, 197, 94, 0.05), transparent 50%);
  z-index: 0;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

.wrap {
  width: min(100% - 32px, var(--wrap));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: -999px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  height: var(--header);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  height: var(--header);
  display: flex;
  align-items: center;
  gap: 18px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  letter-spacing: 0.04em;
  white-space: nowrap;
  flex-shrink: 0;
}

.logo em {
  color: var(--green);
  font-style: normal;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-inline: auto;
}

.nav a {
  padding: 8px 12px;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
  border-bottom: 2px solid transparent;
}

.nav a:hover,
.nav a.is-active {
  color: var(--text);
}

.nav a.is-active {
  color: var(--green);
  border-bottom-color: var(--green);
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.icon-btn {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  display: grid;
  place-items: center;
}

.icon-btn:hover {
  background: var(--elev);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  cursor: pointer;
  font-weight: 800;
  border-radius: 12px;
  padding: 12px 18px;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.btn-green {
  background: var(--green);
  color: #111;
}

.btn-gold {
  background: var(--gold);
  color: var(--gold-text);
  font-size: 0.78rem;
  padding: 10px 12px;
  border-radius: 10px;
  white-space: nowrap;
}

.btn-ghost {
  background: var(--elev);
  color: var(--text);
}

.btn-complaint {
  background: var(--green);
  color: #111;
  font-size: 0.86rem;
  padding: 10px 14px;
  border-radius: 12px;
}

.menu-btn {
  display: none;
}

/* Hero */
.hero {
  position: relative;
  z-index: 1;
  padding: 22px 0 8px;
}

.hero-slide {
  display: none;
  min-height: 280px;
  padding: 36px 40px;
  border-radius: 24px;
  background:
    radial-gradient(500px 220px at 75% 50%, rgba(198, 255, 61, 0.18), transparent 55%),
    linear-gradient(105deg, #141414 10%, #163016 48%, #0e0e0e 100%);
  border: 1px solid rgba(198, 255, 61, 0.12);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow);
}

.hero-slide.is-on {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 20px;
}

.hero-kicker {
  color: var(--green);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin: 0 0 8px;
}

.hero h1,
.hero-title {
  margin: 0 0 10px;
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  line-height: 1.15;
  font-weight: 800;
}

.hero p {
  margin: 0 0 22px;
  color: var(--muted);
  max-width: 46ch;
}

.hero-art {
  position: relative;
  min-height: 220px;
}

.hero-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}

.hero-dots button {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  border: 0;
  background: #3a3a3a;
  cursor: pointer;
  padding: 0;
}

.hero-dots button.is-on {
  width: 22px;
  background: var(--green);
}

/* Quick cats */
.cats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
  padding: 18px 0 8px;
}

.cat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 6px;
  border-radius: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-align: center;
}

.cat:hover,
.cat.is-active {
  color: var(--text);
  border-color: rgba(198, 255, 61, 0.35);
  background: var(--card-2);
}

.cat-ico {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--green-dim);
  color: var(--green);
}

/* Layout */
.layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 22px;
  padding: 18px 0 40px;
  align-items: start;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 14px;
}

.section-head h2 {
  margin: 0;
  font-size: 1.35rem;
}

.casino-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.c-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 12px 14px;
  display: flex;
  flex-direction: column;
  min-height: 250px;
  position: relative;
}

.c-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  padding: 4px 7px;
  border-radius: 6px;
  background: #ff7a1a;
  color: #111;
  z-index: 1;
}

.c-badge.hit { background: #ff4d6d; color: #fff; }
.c-badge.fast { background: #22d3ee; color: #042f2e; }
.c-badge.live { background: #a78bfa; color: #1e1b4b; }
.c-badge.new { background: var(--green); color: #111; }
.c-badge.slots { background: #60a5fa; color: #0b1b33; }
.c-badge.bonus { background: #f472b6; color: #3b0764; }
.c-badge.gift { background: #f5d547; color: #1a1400; }
.c-badge.pack { background: #86efac; color: #052e16; }
.c-badge.classic { background: #818cf8; color: #111827; }
.c-badge.event { background: #fb7185; color: #1c0a0a; }

.c-rate {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--gold);
}

.c-logo {
  height: 92px;
  margin: 28px 0 10px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-align: center;
  padding: 8px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}

.c-bonus {
  margin: 0 0 10px;
  text-align: center;
  font-weight: 700;
  font-size: 0.86rem;
  min-height: 2.4em;
}

.c-play {
  background: var(--green);
  color: #111;
  font-weight: 800;
  text-align: center;
  padding: 10px 12px;
  border-radius: 10px;
}

.c-review {
  display: block;
  text-align: center;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.c-review:hover {
  color: var(--text);
}

/* Sidebar */
.side {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  position: sticky;
  top: calc(var(--header) + 14px);
}

.side h2 {
  margin: 0 0 14px;
  font-size: 1.05rem;
}

.rank-item {
  display: grid;
  grid-template-columns: 28px 44px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.rank-n {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: var(--green);
  color: #111;
  font-weight: 800;
  font-size: 0.8rem;
  display: grid;
  place-items: center;
}

.rank-logo {
  width: 44px;
  height: 36px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 0.48rem;
  font-weight: 800;
  text-align: center;
  line-height: 1.1;
  padding: 2px;
}

.rank-name {
  font-weight: 800;
  font-size: 0.82rem;
}

.rank-bonus {
  color: var(--muted);
  font-size: 0.72rem;
}

.rank-item .btn-gold {
  grid-column: 1 / -1;
  margin-top: 4px;
}

.side-more {
  display: block;
  margin-top: 12px;
  text-align: center;
  background: var(--elev);
  padding: 12px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.88rem;
}

/* Trust */
.trust {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 0 0 48px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  font-weight: 700;
}

.trust-item svg {
  color: var(--green);
  flex-shrink: 0;
}

/* Footer */
.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  color: var(--muted);
  font-size: 0.88rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 24px;
  margin-bottom: 22px;
}

.site-footer h3 {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 0.95rem;
}

.site-footer a:hover {
  color: var(--green);
}

.legal {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  font-size: 0.8rem;
}

.age {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 2px solid var(--green);
  border-radius: 8px;
  color: var(--green);
  font-weight: 800;
  margin-right: 8px;
}

/* Inner pages */
.page-hero {
  position: relative;
  z-index: 1;
  padding: 28px 0 8px;
}

.page-hero h1 {
  margin: 0 0 8px;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.page-hero p {
  margin: 0;
  color: var(--muted);
  max-width: 62ch;
}

.panel {
  position: relative;
  z-index: 1;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  margin: 16px 0 40px;
}

.bonus-list,
.news-list,
.review-list {
  display: grid;
  gap: 12px;
}

.bonus-row,
.news-card,
.rev-row {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
}

.news-card {
  grid-template-columns: minmax(0, 1fr);
}

.news-card h2 {
  margin: 0 0 6px;
  font-size: 1.1rem;
}

.muted {
  color: var(--muted);
}

.prose h2 {
  margin-top: 1.4em;
}

.prose ul {
  padding-left: 1.2em;
}

.form {
  display: grid;
  gap: 12px;
  max-width: 560px;
}

.form label {
  display: grid;
  gap: 6px;
  font-weight: 700;
  font-size: 0.9rem;
}

.form input,
.form textarea,
.form select {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
}

.form textarea {
  min-height: 140px;
  resize: vertical;
}

.note {
  background: var(--green-dim);
  border: 1px solid rgba(198, 255, 61, 0.25);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 0.88rem;
}

.split {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
}

.kv {
  display: grid;
  gap: 8px;
}

.kv div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.game-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  min-height: 140px;
}

.game-card h3 {
  margin: 8px 0 6px;
}

/* Search overlay */
.search-layer {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.72);
  padding: 12vh 16px 16px;
}

.search-layer.is-on {
  display: block;
}

.search-box {
  width: min(100%, 560px);
  margin: 0 auto;
  background: var(--card);
  border-radius: 18px;
  padding: 16px;
  border: 1px solid var(--line);
}

.search-box input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
}

.search-hits {
  margin-top: 10px;
  display: grid;
  gap: 6px;
}

.search-hits a {
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--elev);
  display: flex;
  justify-content: space-between;
}

/* Slot art */
.slot-art {
  width: min(100%, 340px);
  margin-left: auto;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.45));
}

/* Toast */
.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 120;
  background: var(--green);
  color: #111;
  font-weight: 800;
  padding: 12px 16px;
  border-radius: 12px;
  display: none;
}

.toast.is-on {
  display: block;
}

@media (max-width: 1100px) {
  .layout {
    grid-template-columns: 1fr;
  }
  .side {
    position: static;
  }
  .casino-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .cats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .hero-slide.is-on {
    grid-template-columns: 1fr;
  }
  .hero-art {
    min-height: 160px;
  }
  .split,
  .footer-grid,
  .trust,
  .games-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 780px) {
  .nav,
  .btn-complaint {
    display: none;
  }
  .menu-btn {
    display: grid;
  }
  .nav.is-open {
    display: flex;
    position: absolute;
    top: var(--header);
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg-2);
    border-bottom: 1px solid var(--line);
    padding: 10px 16px 16px;
    z-index: 90;
  }
  .cats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .casino-grid,
  .trust,
  .games-grid,
  .bonus-row,
  .rev-row,
  .split,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .header-inner {
    gap: 8px;
  }
}
