/* ViaBanda Casino — design system
   Brand: black / BANDA red / white. Premium, not noisy. */

:root {
  --bg: #09090b;
  --bg-2: #101014;
  --bg-3: #16161c;
  --card: rgba(22, 22, 28, 0.82);
  --card-solid: #16161c;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --red: #e10600;
  --red-2: #ff2a22;
  --red-dim: rgba(225, 6, 0, 0.16);
  --gold: #e8c547;
  --gold-dim: rgba(232, 197, 71, 0.14);
  --text: #f7f7f8;
  --text-2: #b8b8c0;
  --text-3: #7c7c86;
  --ok: #34d399;
  --radius: 16px;
  --radius-sm: 10px;
  --header-h: 72px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --font: "Manrope", system-ui, -apple-system, sans-serif;
  --display: "Unbounded", "Manrope", sans-serif;
  --max: 1180px;
  --z-header: 40;
  --z-nav: 50;
  --z-toast: 80;
  --z-modal: 100;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
body {
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
ul { list-style: none; }
:focus-visible {
  outline: 2px solid var(--red-2);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 200;
  background: var(--red);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
}
.skip-link:focus { top: 12px; }

.container {
  width: min(var(--max), calc(100% - 32px));
  margin-inline: auto;
}
.section { padding: 64px 0; }
.section--tight { padding: 40px 0; }

/* Promo strip */
.promo-strip {
  background: linear-gradient(90deg, #1a0505, #2a0808 40%, #1a0505);
  border-bottom: 1px solid rgba(225, 6, 0, 0.35);
  font-size: 13px;
  color: var(--text-2);
}
.promo-strip__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 40px;
  flex-wrap: wrap;
}
.promo-strip strong { color: #fff; font-weight: 700; }
.promo-strip a { color: var(--gold); font-weight: 700; }
.promo-strip a:hover { text-decoration: underline; }
.age-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.04em;
}
.age-chip img { width: 18px; height: 18px; border-radius: 50%; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  height: var(--header-h);
  backdrop-filter: blur(16px);
  background: rgba(9, 9, 11, 0.78);
  border-bottom: 1px solid var(--border);
}
.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 20px;
}
.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.logo img {
  height: 40px;
  width: auto;
  transform: rotate(-4deg);
}
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
}
.nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 10px;
  color: var(--text-2);
  font-weight: 600;
  font-size: 14px;
  transition: color 180ms var(--ease), background 180ms var(--ease);
}
.nav a:hover,
.nav a.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}
.nav a.is-active { box-shadow: inset 0 -2px 0 var(--red); }
.header-cta {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}
.burger {
  display: none;
  width: 44px;
  height: 44px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 10px;
  border: 1px solid var(--border);
}
.burger span {
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
  margin: 4px 0;
  transition: 180ms var(--ease);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.01em;
  transition: transform 180ms var(--ease), box-shadow 180ms var(--ease), background 180ms var(--ease);
  cursor: pointer;
  touch-action: manipulation;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--red {
  background: linear-gradient(180deg, var(--red-2), var(--red));
  color: #fff;
  box-shadow: 0 8px 24px rgba(225, 6, 0, 0.35);
}
.btn--ghost {
  border: 1px solid var(--border-strong);
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}
.btn--ghost:hover { border-color: rgba(255, 255, 255, 0.28); }
.btn--gold {
  background: linear-gradient(180deg, #f3d56a, var(--gold));
  color: #1a1404;
  box-shadow: 0 8px 24px rgba(232, 197, 71, 0.28);
}
.btn--lg { min-height: 52px; padding: 0 24px; font-size: 16px; }
.btn--block { width: 100%; }

/* Hero */
.hero {
  position: relative;
  min-height: min(78vh, 720px);
  display: grid;
  align-items: center;
  overflow: hidden;
  background: #08080a center / cover no-repeat;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 8, 10, 0.94) 0%, rgba(8, 8, 10, 0.72) 46%, rgba(8, 8, 10, 0.28) 100%),
    linear-gradient(180deg, rgba(8, 8, 10, 0.2), rgba(8, 8, 10, 0.55));
  pointer-events: none;
}
.hero--center::after {
  background:
    linear-gradient(180deg, rgba(8, 8, 10, 0.55), rgba(8, 8, 10, 0.88));
}
.hero__content {
  position: relative;
  z-index: 1;
  padding: 72px 0 64px;
  max-width: 640px;
}
.hero--center .hero__content {
  max-width: 760px;
  text-align: center;
  margin-inline: auto;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--red-dim);
  border: 1px solid rgba(225, 6, 0, 0.35);
  color: #ffd0cc;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
h1, .h1 {
  font-family: var(--display);
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 700;
  margin-bottom: 16px;
}
h1 span, .accent { color: var(--red-2); }
.lead {
  color: var(--text-2);
  font-size: 17px;
  margin-bottom: 28px;
  max-width: 52ch;
}
.hero--center .lead { margin-inline: auto; }
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
}
.hero--center .hero__actions { justify-content: center; }
.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
}
.stat strong {
  display: block;
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
}
.stat span { color: var(--text-3); font-size: 13px; }

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px 0 0;
  color: var(--text-3);
  font-size: 13px;
}
.breadcrumbs a { color: var(--text-2); }
.breadcrumbs a:hover { color: #fff; }
.breadcrumbs span[aria-current] { color: #fff; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.section-head h2,
h2 {
  font-family: var(--display);
  font-size: clamp(22px, 3vw, 30px);
  letter-spacing: -0.03em;
  line-height: 1.2;
}
.section-kicker {
  color: var(--red-2);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.muted { color: var(--text-2); }
.link-more {
  color: var(--gold);
  font-weight: 700;
  font-size: 14px;
}
.link-more:hover { text-decoration: underline; }

.prose {
  color: var(--text-2);
  max-width: 72ch;
}
.prose p + p { margin-top: 14px; }
.prose a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.prose h2 { color: var(--text); margin: 28px 0 12px; }
.prose h3 {
  color: var(--text);
  font-size: 18px;
  margin: 22px 0 8px;
}
.prose ul { list-style: disc; padding-left: 18px; margin: 10px 0; }
.prose li { margin: 6px 0; }
.prose strong { color: #fff; }

/* Cards */
.grid {
  display: grid;
  gap: 14px;
}
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.game-card {
  position: relative;
  display: block;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--card-solid);
  border: 1px solid var(--border);
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease);
}
.game-card:hover,
.game-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.game-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 280ms var(--ease);
}
.game-card:hover img { transform: scale(1.05); }
.game-card__meta {
  position: absolute;
  inset: auto 0 0 0;
  padding: 28px 12px 12px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.92));
}
.game-card__name {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
}
.game-card__sub {
  color: var(--text-3);
  font-size: 11px;
  margin-top: 2px;
}
.game-card__badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--red);
  color: #fff;
}
.game-card__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(8, 8, 10, 0.55);
  opacity: 0;
  transition: opacity 180ms var(--ease);
}
.game-card:hover .game-card__play,
.game-card:focus-visible .game-card__play { opacity: 1; }

.panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  backdrop-filter: blur(12px);
}
.panel h3 {
  font-size: 18px;
  margin-bottom: 8px;
}
.hub-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 180px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01)),
    var(--card-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  transition: border-color 180ms var(--ease), transform 180ms var(--ease);
}
.hub-card:hover {
  border-color: rgba(225, 6, 0, 0.45);
  transform: translateY(-3px);
}
.hub-card h3 { font-size: 18px; }
.hub-card p { color: var(--text-2); font-size: 14px; flex: 1; }

.bonus-card {
  position: relative;
  overflow: hidden;
  min-height: 230px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  display: flex;
  align-items: flex-end;
}
.bonus-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.38);
}
.bonus-card__body {
  position: relative;
  z-index: 1;
  padding: 22px;
  width: 100%;
  background: linear-gradient(transparent, rgba(8, 8, 10, 0.92));
}
.bonus-card small {
  color: var(--gold);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 11px;
}

.live-card {
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card-solid);
}
.live-card__visual {
  height: 140px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 30% 20%, rgba(225, 6, 0, 0.35), transparent 45%),
    radial-gradient(circle at 80% 80%, rgba(232, 197, 71, 0.18), transparent 40%),
    #121218;
  font-family: var(--display);
  font-size: 28px;
}
.live-card__body { padding: 16px 18px 20px; }
.live-card h3 { margin-bottom: 6px; }
.live-card p { color: var(--text-2); font-size: 14px; margin-bottom: 14px; }
.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.16);
}

.steps {
  counter-reset: step;
  display: grid;
  gap: 12px;
}
.step {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-2);
}
.step::before {
  counter-increment: step;
  content: counter(step);
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--red-dim);
  color: #fff;
  font-weight: 800;
}

.table-wrap { overflow-x: auto; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
th, td {
  text-align: left;
  padding: 12px 10px;
  border-bottom: 1px solid var(--border);
}
th { color: var(--text-3); font-weight: 700; font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; }

/* FAQ */
.faq-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-2);
  margin-bottom: 10px;
  overflow: hidden;
}
.faq-item button {
  width: 100%;
  text-align: left;
  min-height: 56px;
  padding: 14px 18px;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.faq-item button::after {
  content: "";
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--text-2);
  border-bottom: 2px solid var(--text-2);
  transform: rotate(45deg);
  transition: transform 180ms var(--ease);
  flex-shrink: 0;
}
.faq-item.is-open button::after { transform: rotate(225deg); }
.faq-item .faq-a {
  display: none;
  padding: 0 18px 16px;
  color: var(--text-2);
}
.faq-item.is-open .faq-a { display: block; }

/* Footer */
.site-footer {
  margin-top: 40px;
  padding: 48px 0 28px;
  background: #070709;
  border-top: 1px solid var(--border);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 28px;
}
.site-footer h3 {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 14px;
}
.site-footer a { color: var(--text-2); display: inline-block; min-height: 32px; }
.site-footer a:hover { color: #fff; }
.footer-brand img {
  height: 36px;
  width: auto;
  transform: rotate(-4deg);
  margin-bottom: 12px;
}
.legal {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  color: var(--text-3);
  font-size: 13px;
}
.legal p + p { margin-top: 8px; }

/* Toast wins */
.win-toast {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: var(--z-toast);
  width: min(320px, calc(100vw - 32px));
  background: rgba(16, 16, 20, 0.94);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  display: none;
}
.win-toast.is-on { display: block; animation: toast-in 220ms var(--ease); }
.win-toast__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.win-toast__label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}
.win-toast__close {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  color: var(--text-2);
}
.win-toast strong { display: block; }
.win-toast p { color: var(--text-2); font-size: 13px; }

@keyframes toast-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.mobile-nav {
  display: none;
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: var(--z-nav);
  background: rgba(9, 9, 11, 0.96);
  padding: 20px;
  overflow: auto;
}
.mobile-nav.is-open { display: block; }
.mobile-nav a {
  display: flex;
  align-items: center;
  min-height: 48px;
  border-bottom: 1px solid var(--border);
  font-weight: 700;
}

.search {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-2);
  color: #fff;
  margin-bottom: 18px;
}
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.filter-btn {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-2);
  font-weight: 700;
  font-size: 13px;
}
.filter-btn.is-active {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav { display: none; }
  .burger { display: flex; }
  .header-cta .btn--ghost { display: none; }
}
@media (max-width: 720px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .hero { min-height: 70vh; background-position: 70% center; }
  .hero::after {
    background: linear-gradient(180deg, rgba(8,8,10,.55) 0%, rgba(8,8,10,.88) 70%);
  }
  .footer-grid { grid-template-columns: 1fr; }
  .win-toast { left: 12px; right: 12px; width: auto; bottom: max(12px, env(safe-area-inset-bottom)); }
  .game-card__play {
    opacity: 1;
    background: linear-gradient(transparent 55%, rgba(8, 8, 10, 0.55));
    align-items: end;
    padding-bottom: 56px;
  }
}
@media (max-width: 420px) {
  .grid-4, .grid-3 { grid-template-columns: 1fr 1fr; }
}
