/*
 * ============================================================================
 * VX-THEME — Merged base (aggressive-casino) + brand override
 * Anti-fingerprint: all class names use unique `vx-` prefix
 * Brand: Игорный клуб Лев (levisfiesta-top)
 * Stream: ru-igaming | Style: aggressive-casino
 * ============================================================================
 */

:root {
  --vx-accent: #e10b1f;
  --vx-accent-hi: #ff2235;
  --vx-gold: #ffce00;
  --vx-gold-hi: #ffe04a;
  --vx-bg-0: #0a0a0a;
  --vx-bg-1: #141416;
  --vx-bg-2: #1d1d20;
  --vx-bg-3: #2a2a2e;
  --vx-fn-display: 'Roboto Condensed';
  --vx-fn-body: 'Inter';

  --vx-accent-dim: rgba(225, 11, 31, 0.14);
  --vx-gold-dim: rgba(255, 206, 0, 0.14);
  --vx-accent-glow: rgba(225, 11, 31, 0.45);
  --vx-gold-glow: rgba(255, 206, 0, 0.45);

  /* WCAG-AAA body text on #0a0a0a (~9:1) */
  --vx-text-0: #ffffff;
  --vx-text-1: #d4d6db;
  --vx-text-2: #8a8d96;

  --vx-border: rgba(255, 255, 255, 0.08);
  --vx-border-hi: rgba(255, 206, 0, 0.4);

  --vx-radius: 8px;
  --vx-radius-sm: 4px;
  --vx-radius-pill: 100px;
  --vx-ease: cubic-bezier(0.16, 1, 0.3, 1);

  --vx-font-display: var(--vx-fn-display), 'Arial Narrow', sans-serif;
  --vx-font-body: var(--vx-fn-body), system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
  font-family: var(--vx-font-body);
  background: var(--vx-bg-0);
  color: var(--vx-text-1);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}
body::before {
  content: ""; position: fixed; inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 50% 0%, var(--vx-accent-dim), transparent 70%),
    radial-gradient(ellipse 50% 30% at 80% 100%, var(--vx-gold-dim), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

a {
  color: var(--vx-gold);
  text-decoration: none;
  font-weight: 700;
  transition: color 0.25s var(--vx-ease), text-shadow 0.25s var(--vx-ease);
}
a:hover {
  color: var(--vx-gold-hi);
  text-shadow: 0 0 8px var(--vx-gold-glow);
}
img { display: block; max-width: 100%; height: auto; }

/* === Layout === */
.vx-wrap { max-width: 1180px; margin: 0 auto; padding: 0 22px; position: relative; z-index: 1; }

/* === TOPBAR === */
.vx-bar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(16px);
  border-bottom: 2px solid var(--vx-accent);
  padding: 14px 0;
  box-shadow: 0 4px 28px rgba(225, 11, 31, 0.18);
}
.vx-bar .vx-wrap {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.vx-logo {
  font-family: var(--vx-font-display);
  font-size: 1.65rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--vx-text-0);
  line-height: 1;
}
.vx-logo a { color: inherit; display: inline-flex; align-items: center; }
.vx-logo img { height: 40px; width: auto; display: block; }
.vx-logo .vx-hi { color: var(--vx-accent); }

.vx-links { display: flex; gap: 2px; flex: 1; flex-wrap: wrap; }
.vx-links a {
  padding: 8px 16px;
  font-family: var(--vx-font-display);
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--vx-text-1);
  border-radius: var(--vx-radius-sm);
  transition: all 0.25s var(--vx-ease);
}
.vx-links a:hover {
  color: var(--vx-text-0);
  background: var(--vx-accent-dim);
  text-shadow: none;
}
.vx-links a[aria-current=page] {
  color: var(--vx-bg-0);
  background: var(--vx-gold);
  text-shadow: none;
}

/* === Buttons === */
.vx-btn, .vx-action {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 32px;
  font-family: var(--vx-font-display);
  font-size: 1rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: var(--vx-radius);
  border: 2px solid transparent;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s var(--vx-ease);
}
.vx-btn-primary, .vx-action {
  background: var(--vx-gold);
  color: #0a0a0a;
  box-shadow: 0 0 0 0 var(--vx-gold-glow), 0 6px 20px rgba(255, 206, 0, 0.35);
  animation: vx-pulse 2.4s var(--vx-ease) infinite;
}
.vx-btn-primary:hover, .vx-action:hover {
  background: var(--vx-gold-hi);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 0 32px var(--vx-gold-glow), 0 8px 28px rgba(255, 206, 0, 0.5);
  color: #0a0a0a;
}
.vx-btn-primary:active, .vx-action:active { transform: scale(0.97); }

.vx-btn-ghost {
  background: transparent;
  color: var(--vx-text-1);
  border-color: var(--vx-border-hi);
}
.vx-btn-ghost:hover {
  background: var(--vx-gold-dim);
  color: var(--vx-text-0);
}
.vx-btn:focus-visible, .vx-action:focus-visible { outline: 3px solid var(--vx-gold-hi); outline-offset: 3px; }

@keyframes vx-pulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--vx-gold-glow), 0 6px 20px rgba(255, 206, 0, 0.35); }
  50% { box-shadow: 0 0 0 8px transparent, 0 8px 28px rgba(255, 206, 0, 0.5); }
}

/* === HERO === */
.vx-splash {
  position: relative; overflow: hidden;
  padding: 96px 0 112px;
  min-height: min(560px, 72vh);
}
.vx-splash::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 50% 60% at 70% 50%, var(--vx-accent-dim), transparent 70%),
    linear-gradient(160deg, var(--vx-bg-0) 30%, #160606 100%);
  z-index: 0;
}
.vx-splash::after {
  content: ""; position: absolute;
  top: -30%; right: -10%; width: 60%; height: 160%;
  background: radial-gradient(circle, var(--vx-accent-glow) 0%, transparent 60%);
  filter: blur(70px);
  z-index: 0;
}
.vx-splash-art {
  position: absolute; top: 0; bottom: 0; right: 0;
  width: 72%; z-index: 1;
  pointer-events: none;
}
.vx-splash-art img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: right center;
  opacity: 1;
}
.vx-splash-art::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to right,
    var(--vx-bg-0) 0%,
    var(--vx-bg-0) 14%,
    rgba(10, 10, 10, 0.85) 34%,
    rgba(10, 10, 10, 0.35) 60%,
    transparent 85%);
  pointer-events: none;
}
.vx-splash-body { position: relative; z-index: 2; max-width: 600px; }

.vx-eyebrow {
  display: inline-flex; align-items: center;
  font-family: var(--vx-font-display);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--vx-gold);
  padding: 7px 18px;
  background: var(--vx-gold-dim);
  border: 1px solid var(--vx-border-hi);
  border-radius: var(--vx-radius-pill);
  margin-bottom: 22px;
}

.vx-splash-body h1 {
  font-family: var(--vx-font-display);
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--vx-text-0);
  margin-bottom: 22px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}
.vx-splash-body h1 .vx-hi { color: var(--vx-accent); }
.vx-splash-body h1 .vx-glow {
  color: var(--vx-gold);
  text-shadow: 0 0 32px var(--vx-gold-glow);
}

.vx-lead {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--vx-text-1);
  max-width: 48ch;
  font-weight: 500;
  margin-bottom: 30px;
}

/* Stat strip */
.vx-stats { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.vx-stat {
  display: flex; flex-direction: column; gap: 4px;
  padding: 16px 22px;
  background: var(--vx-bg-1);
  border: 1px solid var(--vx-border);
  border-left: 3px solid var(--vx-accent);
  border-radius: var(--vx-radius-sm);
  min-width: 130px;
}
.vx-stat strong {
  font-family: var(--vx-font-display);
  font-size: 1.85rem;
  font-weight: 900;
  color: var(--vx-gold);
  line-height: 1;
}
.vx-stat span {
  font-size: 0.68rem;
  color: var(--vx-text-2);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
}

/* === Content === */
main { padding: 50px 0 80px; position: relative; z-index: 1; }
section { margin: 40px auto; }

h2 {
  font-family: var(--vx-font-display);
  font-size: clamp(1.85rem, 3.5vw, 2.8rem);
  font-weight: 900;
  text-transform: uppercase;
  color: var(--vx-text-0);
  letter-spacing: -0.005em;
  margin: 48px 0 20px;
  line-height: 1.05;
}
h2 .vx-hi { color: var(--vx-accent); }
h3 {
  font-family: var(--vx-font-display);
  font-size: 1.4rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--vx-text-0);
  letter-spacing: 0.01em;
  margin: 28px 0 10px;
}
p { margin-bottom: 1em; max-width: 65ch; }

/* === Cards === */
.vx-tile {
  background: var(--vx-bg-1);
  border: 1px solid var(--vx-border);
  border-radius: var(--vx-radius);
  overflow: hidden;
  position: relative;
  transition: all 0.3s var(--vx-ease);
}
.vx-tile::before {
  content: ""; position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--vx-accent), var(--vx-gold));
  opacity: 0;
  transition: opacity 0.3s var(--vx-ease);
}
.vx-tile:hover {
  transform: translateY(-6px);
  border-color: var(--vx-border-hi);
  box-shadow: 0 14px 40px rgba(225, 11, 31, 0.18);
}
.vx-tile:hover::before { opacity: 1; }
.vx-tile-img {
  width: 100%; aspect-ratio: 16/10;
  object-fit: cover;
}
.vx-tile-body { padding: 22px 24px; }
.vx-tile-body h3 { margin-top: 0; }
.vx-tile-body p { font-size: 0.92rem; color: var(--vx-text-1); margin-bottom: 14px; }

.vx-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin: 36px 0;
}

/* === Offer cards === */
.vx-offer {
  background: linear-gradient(135deg, var(--vx-bg-1) 0%, var(--vx-bg-2) 100%);
  border: 1px solid var(--vx-border);
  border-radius: var(--vx-radius);
  padding: 26px;
  position: relative;
  transition: all 0.3s var(--vx-ease);
}
.vx-offer:hover {
  border-color: var(--vx-border-hi);
  box-shadow: 0 10px 30px rgba(225, 11, 31, 0.15);
}
.vx-badge {
  display: inline-block;
  background: var(--vx-accent);
  color: var(--vx-text-0);
  font-family: var(--vx-font-display);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: var(--vx-radius-pill);
  margin-bottom: 14px;
}
.vx-amount {
  font-family: var(--vx-font-display);
  font-size: 2.6rem;
  font-weight: 900;
  color: var(--vx-gold);
  line-height: 1;
  text-shadow: 0 0 24px var(--vx-gold-glow);
}

/* === Tables === */
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--vx-bg-1);
  color: var(--vx-text-1);
  border-radius: var(--vx-radius);
  overflow: hidden;
  margin: 28px 0;
  font-size: 0.92rem;
  border: 1px solid var(--vx-border);
}
thead { background: var(--vx-bg-2); }
th {
  padding: 14px 18px;
  text-align: left;
  font-family: var(--vx-font-display);
  font-weight: 800;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--vx-gold);
  border-bottom: 2px solid var(--vx-accent);
}
td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--vx-border);
  color: var(--vx-text-0);
  vertical-align: top;
}
tbody tr { transition: background 0.25s var(--vx-ease); }
tbody tr:hover { background: var(--vx-accent-dim); }
tbody tr:last-child td { border-bottom: none; }
table a { color: var(--vx-gold); font-weight: 700; }

/* === Review / Rating === */
.vx-rating-block {
  display: flex; align-items: center; gap: 20px;
  background: var(--vx-bg-1);
  border: 1px solid var(--vx-border);
  border-radius: var(--vx-radius);
  padding: 28px;
  margin: 28px 0;
}
.vx-rating-score {
  font-family: var(--vx-font-display);
  font-size: 3.8rem;
  font-weight: 900;
  color: var(--vx-gold);
  line-height: 1;
  text-shadow: 0 0 30px var(--vx-gold-glow);
}
.vx-rating-stars { color: var(--vx-gold); font-size: 1.4rem; letter-spacing: 4px; }
.vx-rating-count { color: var(--vx-text-2); font-size: 0.85rem; margin-top: 4px; }

/* === FAQ === */
.vx-faq { margin: 48px 0; }
.vx-faq-item {
  border-bottom: 1px solid var(--vx-border);
  padding: 20px 0;
}
.vx-faq-item summary {
  font-family: var(--vx-font-display);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--vx-text-0);
  cursor: pointer;
  list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
.vx-faq-item summary::after { content: "+"; font-size: 1.4rem; color: var(--vx-gold); transition: transform 0.3s var(--vx-ease); }
.vx-faq-item[open] summary::after { transform: rotate(45deg); }
.vx-faq-item p { margin-top: 12px; color: var(--vx-text-1); max-width: 65ch; }

/* === Promo banner === */
.vx-promo {
  background: linear-gradient(135deg, #160606 0%, var(--vx-bg-1) 100%);
  border: 1px solid var(--vx-accent);
  border-radius: var(--vx-radius);
  padding: 40px 32px;
  text-align: center;
  margin: 48px 0;
  position: relative;
  overflow: hidden;
}
.vx-promo::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, var(--vx-accent-dim), transparent 70%);
  pointer-events: none;
}
.vx-promo h2 { margin-top: 0; }
.vx-promo p { margin: 0 auto 24px; }

/* === Sticky CTA bar === */
.vx-sticky {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 30;
  background: linear-gradient(90deg, var(--vx-accent) 0%, #b00917 100%);
  padding: 12px 22px;
  display: none; align-items: center; justify-content: space-between; gap: 14px;
  box-shadow: 0 -8px 28px rgba(225, 11, 31, 0.4);
}
.vx-sticky p {
  margin: 0; color: var(--vx-text-0); font-weight: 700;
  font-family: var(--vx-font-display); text-transform: uppercase; letter-spacing: 0.04em;
}
.vx-sticky .vx-btn-primary { animation: none; padding: 10px 22px; font-size: 0.88rem; }

/* === Footer === */
.vx-footer {
  border-top: 2px solid var(--vx-accent);
  padding: 48px 0 32px;
  margin-top: 70px;
  background: #050505;
  position: relative;
  z-index: 1;
}
.vx-footer .vx-wrap {
  display: flex; flex-wrap: wrap; gap: 18px;
  justify-content: space-between;
  font-size: 0.85rem; color: var(--vx-text-2);
}
.vx-footer a { color: var(--vx-text-1); font-weight: 600; }
.vx-footer a:hover { color: var(--vx-gold); }

.vx-age {
  font-family: var(--vx-font-display);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--vx-accent);
  text-align: center;
  padding: 14px;
  border: 2px solid var(--vx-accent);
  border-radius: var(--vx-radius-sm);
  margin: 24px 0;
}

/* === Review card === */
.vx-review {
  background: var(--vx-bg-1);
  border: 1px solid var(--vx-border);
  border-radius: var(--vx-radius);
  padding: 24px;
  margin: 16px 0;
}
.vx-review-author {
  font-weight: 700; color: var(--vx-text-0);
  margin-bottom: 8px;
}
.vx-review-stars { color: var(--vx-gold); margin-bottom: 8px; }
.vx-review p { color: var(--vx-text-1); font-size: 0.92rem; }

/* === Responsive === */
@media (max-width: 768px) {
  .vx-wrap { padding: 0 16px; }
  .vx-bar .vx-wrap { gap: 10px; }
  .vx-links a { padding: 6px 10px; font-size: 0.78rem; }
  .vx-splash { padding: 56px 0 72px; min-height: auto; overflow: hidden; }
  .vx-splash-body h1 { font-size: 2.2rem; }
  .vx-splash-art { width: 58%; opacity: 0.45; right: -10%; }
  table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; white-space: nowrap; }
  .vx-grid { grid-template-columns: 1fr; }
  .vx-stat { min-width: 100px; padding: 12px 14px; }
  .vx-stat strong { font-size: 1.4rem; }
  .vx-amount { font-size: 2rem; }
  th, td { padding: 10px 12px; font-size: 0.82rem; }
  .vx-rating-block { flex-direction: column; text-align: center; }
  .vx-sticky { display: flex; }
}
@media (max-width: 480px) {
  .vx-bar { padding: 10px 0; }
  .vx-logo { font-size: 1.3rem; }
  h2 { font-size: 1.7rem; }
  .vx-sticky { flex-direction: column; padding: 10px 14px; }
  .vx-sticky p { text-align: center; font-size: 0.85rem; }
}

/* === Motion === */
@media (prefers-reduced-motion: reduce) {
  .vx-btn-primary, .vx-action { animation: none; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
@media (prefers-reduced-motion: no-preference) {
  @keyframes vx-slam {
    from { opacity: 0; transform: translateY(20px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
  }
  .vx-splash-body { animation: vx-slam 0.6s var(--vx-ease) both; }
  .vx-stat:nth-child(1) { animation: vx-slam 0.5s 0.1s var(--vx-ease) both; }
  .vx-stat:nth-child(2) { animation: vx-slam 0.5s 0.2s var(--vx-ease) both; }
  .vx-stat:nth-child(3) { animation: vx-slam 0.5s 0.3s var(--vx-ease) both; }
}

/* === Utilities === */
.vx-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.vx-muted { color: var(--vx-text-2); font-size: 0.85rem; }

/* === Scroll-reveal (SSR-safe: visible by default) === */
.vx-reveal { opacity: 1; transform: none; }
html.js-anim .vx-reveal {
  opacity: 0; transform: translateY(16px);
  transition: opacity .5s cubic-bezier(.4,0,.2,1), transform .5s cubic-bezier(.4,0,.2,1);
}
html.js-anim .vx-reveal.visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  html.js-anim .vx-reveal { opacity: 1; transform: none; transition: none; }
}

/* === Mobile burger nav (checkbox hack — works without JS) === */
.vx-nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.vx-burger {
  display: none;
  flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 40px; padding: 9px 10px;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--vx-radius-sm);
}
.vx-burger span {
  display: block; height: 2px; width: 100%;
  background: var(--vx-text-0); border-radius: 2px;
  transition: transform 0.25s var(--vx-ease), opacity 0.25s var(--vx-ease);
}
.vx-nav-toggle:checked ~ .vx-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.vx-nav-toggle:checked ~ .vx-burger span:nth-child(2) { opacity: 0; }
.vx-nav-toggle:checked ~ .vx-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
  .vx-bar .vx-wrap { justify-content: space-between; }
  .vx-burger { display: flex; margin-left: 4px; }
  .vx-links { display: none; }
  .vx-nav-toggle:checked ~ .vx-links {
    display: flex; flex-direction: column;
    flex: 1 1 100%; order: 10;
    gap: 4px; padding: 12px 0 4px; margin-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }
  .vx-nav-toggle:checked ~ .vx-links a { padding: 12px 10px; font-size: 0.95rem; }
  .vx-bar .vx-btn-primary { padding: 10px 18px; font-size: 0.9rem; }
}
