/* ============================================================
   Tokens
   ============================================================ */
:root {
  --bg:         #0b0914;
  --bg-card:    #130f20;
  --bg-nav:     #0f0c1a;
  --bg-el:      #1a1530;
  --border:     rgba(255,255,255,0.08);
  --border-pink:rgba(240,44,142,0.35);

  --pink:       #f01e8c;
  --pink-2:     #c4157a;
  --pink-glow:  rgba(240,30,140,0.40);
  --pink-soft:  rgba(240,30,140,0.12);
  --gold:       #ffd97d;
  --green:      #26e882;

  --txt:        #ede8f5;
  --txt-2:      #a89fc0;
  --txt-3:      #635b7a;

  --r:    14px;
  --r-sm: 10px;
  --r-xs: 7px;
  --r-pill: 999px;
  --t:    0.18s ease;
  --font: "Onest", system-ui, sans-serif;
}

/* ============================================================
   Reset
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--txt);
  line-height: 1.55;
  min-height: 100vh;
}
img { display: block; max-width: 100%; height: auto; }
a   { color: var(--pink); text-decoration: none; }
a:hover { text-decoration: underline; }
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: var(--bg-nav); }
::-webkit-scrollbar-thumb { background: var(--bg-el); border-radius: 2px; }

.container {
  width: min(1180px, 100% - 24px);
  margin-inline: auto;
}

/* ============================================================
   Top bar
   ============================================================ */
.top-bar {
  background: var(--bg-nav);
  border-bottom: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--txt-3);
}
.top-bar .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 0;
}
.top-bar a { color: var(--txt-2); font-weight: 500; transition: color var(--t); }
.top-bar a:hover { color: var(--txt); text-decoration: none; }

/* ============================================================
   Navbar
   ============================================================ */
.navbar {
  background: var(--bg-nav);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 200;
}
.navbar .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none !important;
}
.brand__logo { width: 42px; height: 30px; filter: drop-shadow(0 0 10px rgba(240,30,140,.5)); }
.brand__name {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: .06em;
  background: linear-gradient(120deg,#fff 30%,var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.navbar-actions { display: flex; gap: 8px; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 22px;
  border-radius: var(--r-pill);
  font-weight: 700;
  font-size: .875rem;
  font-family: inherit;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform var(--t), box-shadow var(--t), opacity var(--t);
  text-decoration: none !important;
}
.btn:active { transform: scale(.97); }

.btn-ghost {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.13);
  color: var(--txt);
}
.btn-ghost:hover { background: rgba(255,255,255,.10); }

.btn-primary {
  background: linear-gradient(135deg, var(--pink) 0%, var(--pink-2) 100%);
  color: #fff;
  box-shadow: 0 4px 20px var(--pink-glow);
}
.btn-primary:hover {
  box-shadow: 0 4px 32px rgba(240,30,140,.6);
  transform: translateY(-1px);
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  min-height: 320px;
  display: flex;
  align-items: flex-end;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: url("../header-bg.webp") center top / cover no-repeat;
  opacity: .9;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(11,9,20,.88) 0%,
    rgba(11,9,20,.50) 40%,
    rgba(11,9,20,.10) 70%,
    transparent 100%
  ),
  linear-gradient(
    to top,
    rgba(11,9,20,.95) 0%,
    rgba(11,9,20,.20) 55%,
    transparent 100%
  );
}

.hero__content {
  position: relative;
  z-index: 1;
  padding: 40px 0 36px;
  max-width: 520px;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--pink-soft);
  border: 1px solid var(--border-pink);
  border-radius: var(--r-pill);
  padding: 5px 14px;
  font-size: .78rem;
  font-weight: 600;
  color: var(--pink);
  letter-spacing: .04em;
  margin-bottom: 14px;
}

.hero__title {
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.02em;
  margin-bottom: 14px;
}
.hero__title span {
  background: linear-gradient(120deg, var(--pink) 0%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__sub {
  font-size: .95rem;
  color: var(--txt-2);
  margin-bottom: 24px;
  max-width: 42ch;
  line-height: 1.65;
}

.hero__actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ============================================================
   Features strip
   ============================================================ */
.features {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
}
.features .inner {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.features .inner::-webkit-scrollbar { display: none; }

.feat-item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 20px;
  border-right: 1px solid var(--border);
  font-size: .85rem;
  font-weight: 600;
  color: var(--txt-2);
  transition: color var(--t), background var(--t);
  cursor: default;
  white-space: nowrap;
}
.feat-item:last-child { border-right: 0; }
.feat-item:hover { color: var(--txt); background: rgba(255,255,255,.03); }
.feat-icon { font-size: 1.3rem; }

/* ============================================================
   Category nav
   ============================================================ */
.cat-nav {
  background: var(--bg-nav);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 52px;
  z-index: 100;
}
.cat-nav .inner {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 8px 0;
}
.cat-nav .inner::-webkit-scrollbar { display: none; }

.cat-item {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 8px 16px;
  border-radius: var(--r-sm);
  background: transparent;
  border: 1px solid transparent;
  color: var(--txt-2);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .03em;
  text-align: center;
  white-space: nowrap;
  transition: color var(--t), background var(--t), border-color var(--t);
  text-decoration: none !important;
}
.cat-item:hover {
  color: var(--txt);
  background: rgba(255,255,255,.05);
  border-color: var(--border);
}
.cat-item[aria-current="page"],
.cat-item--active {
  color: var(--txt);
  background: var(--pink-soft);
  border-color: var(--border-pink);
}
.cat-icon { font-size: 1.4rem; line-height: 1; }

/* ============================================================
   Main content
   ============================================================ */
main { padding-bottom: 60px; }

/* section wrapper */
.sec { padding: 28px 0 0; }
.sec:last-child { padding-bottom: 28px; }

.sec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.sec-title {
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 9px;
  letter-spacing: .01em;
}
.sec-title .ico { font-size: 1.15rem; }

.sec-count {
  font-size: .78rem;
  color: var(--txt-3);
  font-weight: 500;
}

.link-all {
  font-size: .8rem;
  font-weight: 600;
  color: var(--txt-2);
  white-space: nowrap;
  transition: color var(--t);
}
.link-all:hover { color: var(--pink); text-decoration: none; }

/* ============================================================
   Game grid
   ============================================================ */
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(138px, 1fr));
  gap: 10px;
}

.game-card {
  position: relative;
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  aspect-ratio: 3/4;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.game-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 16px 40px rgba(0,0,0,.55), 0 0 24px rgba(240,30,140,.18);
  border-color: var(--border-pink);
  z-index: 2;
}
.game-card a {
  display: block;
  height: 100%;
  text-decoration: none !important;
}
.game-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.game-card:hover img { transform: scale(1.06); }

/* title+overlay */
.game-card span {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11,9,20,.97) 0%, rgba(11,9,20,.45) 38%, transparent 62%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 10px;
  font-size: .68rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
}
.game-card span::after {
  content: "Играть";
  display: inline-flex;
  align-self: flex-start;
  margin-top: 7px;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  background: linear-gradient(135deg, var(--pink), var(--pink-2));
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .04em;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity var(--t), transform var(--t);
}
.game-card:hover span::after { opacity: 1; transform: translateY(0); }

/* ============================================================
   Live wins
   ============================================================ */
.live-block {
  border-radius: var(--r);
  background: var(--bg-card);
  border: 1px solid var(--border);
  overflow: hidden;
}
.live-block__hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 18px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,.025);
}
.live-block__hd h2 {
  margin: 0;
  font-size: .9rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}
.live-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(38,232,130,.2);
  animation: dot-pulse 1.8s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes dot-pulse {
  0%,100% { box-shadow: 0 0 0 3px rgba(38,232,130,.2); }
  50%      { box-shadow: 0 0 0 7px rgba(38,232,130,.0); }
}
.live-block__meta { font-size: .72rem; color: var(--txt-3); }

.live-list {
  list-style: none;
  max-height: 280px;
  overflow: hidden;
}
.live-list li {
  display: grid;
  grid-template-columns: 30px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 18px;
  border-bottom: 1px solid rgba(255,255,255,.04);
  animation: row-in .38s ease;
  transition: background var(--t);
}
.live-list li:hover { background: rgba(255,255,255,.025); }
.live-list li:last-child { border-bottom: 0; }

@keyframes row-in {
  from { opacity: 0; transform: translateY(7px); }
  to   { opacity: 1; transform: translateY(0); }
}

.win-av {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, #9b1af0, var(--pink));
  display: grid;
  place-items: center;
  font-size: .72rem;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}
.win-user  { color: var(--txt-3); font-size: .73rem; }
.win-game  { font-weight: 600; font-size: .82rem; color: var(--txt); margin-top: 1px; }
.win-amt   { font-weight: 800; font-size: .95rem; color: var(--gold); white-space: nowrap; letter-spacing: -.01em; }

/* ============================================================
   SEO article
   ============================================================ */
.seo-article {
  padding: 28px 30px;
  border-radius: var(--r);
  background: var(--bg-card);
  border: 1px solid var(--border);
}
.seo-article__header { margin-bottom: 24px; }
.seo-article__header h1 {
  font-size: clamp(1.25rem, 2.8vw, 1.7rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.02em;
  margin-bottom: 12px;
}
.seo-article__lead { color: var(--txt-2); font-size: .9375rem; line-height: 1.75; }

.seo-section { margin-bottom: 22px; }
.seo-section h2 { font-size: 1.05rem; font-weight: 700; margin-bottom: 9px; line-height: 1.3; }
.seo-section p  { color: var(--txt-2); font-size: .9375rem; line-height: 1.75; }

.faq-block        { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--border); }
.faq-block__title { font-size: 1.05rem; font-weight: 700; margin-bottom: 14px; }

.faq-list details {
  border-radius: var(--r-sm);
  background: rgba(255,255,255,.03);
  border: 1px solid var(--border);
  margin-bottom: 8px;
  overflow: hidden;
  transition: border-color var(--t);
}
.faq-list details:hover { border-color: var(--border-pink); }
.faq-list details[open] { border-color: var(--border-pink); }

.faq-list summary {
  cursor: pointer; list-style: none; font-weight: 600; font-size: .9rem;
  padding: 14px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+"; font-size: 1.2rem; font-weight: 300;
  color: var(--pink); flex-shrink: 0;
  transition: transform .22s ease;
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list .answer { padding: 0 16px 14px; color: var(--txt-2); font-size: .9rem; line-height: 1.7; }

.internal-links { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--border); }
.internal-links__title { font-size: 1rem; font-weight: 700; margin-bottom: 10px; }
.internal-links__text  { color: var(--txt-2); font-size: .9rem; margin-bottom: 12px; }
.internal-links__list  { list-style: none; display: flex; flex-direction: column; gap: 7px; }
.internal-links__list li a {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .9rem; font-weight: 500; color: var(--txt-2);
  transition: color var(--t);
}
.internal-links__list li a::before { content: "→"; color: var(--pink); }
.internal-links__list li a:hover { color: var(--txt); text-decoration: none; }

/* ============================================================
   CTA row
   ============================================================ */
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

/* ============================================================
   Bonus cards (bonuses page)
   ============================================================ */
.bonus-cards { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(260px,1fr)); }
.bonus-card {
  padding: 22px; border-radius: var(--r);
  background: var(--bg-card); border: 1px solid var(--border);
  transition: border-color var(--t), transform var(--t);
}
.bonus-card:hover { border-color: var(--border-pink); transform: translateY(-2px); }
.bonus-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.bonus-card p  { color: var(--txt-2); font-size: .9rem; margin-bottom: 18px; line-height: 1.65; }

/* ============================================================
   Page hero (inner pages)
   ============================================================ */
.page-hero { padding: 28px 0 10px; }
.page-hero h1 {
  font-size: clamp(1.4rem, 3.5vw, 1.9rem);
  font-weight: 800; letter-spacing: -.02em; margin-bottom: 10px;
}
.page-hero .lead { color: var(--txt-2); font-size: .95rem; line-height: 1.7; max-width: 65ch; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--bg-nav);
  border-top: 1px solid var(--border);
  padding: 40px 0 28px;
  color: var(--txt-3);
  font-size: .875rem;
}
.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand img { width: 38px; height: 26px; filter: drop-shadow(0 0 8px rgba(240,30,140,.4)); }
.footer-brand__name {
  font-size: 1rem; font-weight: 800; letter-spacing: .06em;
  background: linear-gradient(120deg,#fff 30%,var(--gold));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.footer-brand__desc { font-size: .75rem; color: var(--txt-3); margin-top: 2px; }

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px,1fr));
  gap: 24px;
}
.site-footer h3 {
  font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em;
  color: var(--txt-3); margin-bottom: 12px;
}
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 9px; }
.site-footer a  { color: var(--txt-2); font-size: .875rem; transition: color var(--t); }
.site-footer a:hover { color: var(--txt); text-decoration: none; }

.footer-legal {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: .75rem;
  color: var(--txt-3);
  line-height: 1.8;
  text-align: center;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 640px) {
  .navbar-actions .btn-ghost { display: none; }
  .hero__content { padding: 28px 0 26px; }
  .hero__title  { font-size: 1.6rem; }
  .game-grid    { grid-template-columns: repeat(auto-fill, minmax(110px,1fr)); gap: 8px; }
  .seo-article  { padding: 20px 16px; }
  .footer-top   { flex-direction: column; }
}
@media (max-width: 380px) {
  .game-grid { grid-template-columns: repeat(3,1fr); }
}
