/* Base, layout, typography, utilities */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html:focus-within { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text-primary);
  font: 400 16px/1.5 system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  text-rendering: optimizeLegibility;
  background-color:black;
}
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 2px;
  border-radius: 6px;
}
img { max-width: 100%; display: block; }
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 16px;
}
@media (min-width: 1025px) {
  .container { padding-inline: 24px; }
}
.visually-hidden {
  position: absolute !important;
  clip: rect(1px, 1px, 1px, 1px);
  padding: 0;
  border: 0;
  height: 1px; width: 1px;
  overflow: hidden;
  white-space: nowrap;
}
.skip-link {
  position: absolute;
  left: 8px; top: 8px;
  background: var(--surface);
  color: var(--text-primary);
  padding: 8px 12px;
  z-index: 10000;
  transform: translateY(-200%);
  transition: transform .2s ease;
  border-radius: 8px;
}
.skip-link:focus { transform: translateY(0); }

/* Headings */
h1 { font-size: 40px; line-height: 48px; margin: 0 0 12px; }
h2 { font-size: 28px; line-height: 36px; margin: 24px 0 12px; }
h3 { font-size: 22px; line-height: 28px; margin: 20px 0 10px; }
p { color: var(--text-secondary); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  border-radius: 12px;
  padding: 10px 16px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .06s ease, background .2s ease, border-color .2s ease, opacity .2s ease;
  will-change: transform;
}
.btn:active { transform: translateY(1px); }
.btn--primary {     background-color: #1d4643;
    border: 1px solid #3ee6e0;
    border-radius: 4px;
    color: #3ee6e0;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: .05em;
    padding: 10px 30px;
    position: relative;
    text-align: center;
    text-shadow: 1px 1px 0 #000;
    text-transform: uppercase;
    transition: all .3s 
ease;}
.btn--primary:hover { background: #3ee6e0;; }
.btn--ghost { background: transparent; background-color: #4c440f; color: #f9dd0e; border-color: 1px solid #f9dd0e; text-shadow: 1px 1px 0 #000; }
.btn--ghost:hover { background: #f9dd0e; }
.btn--outline { background: transparent; color: var(--text-primary); border-color: var(--brand-accent); }
.btn--sm { padding: 8px 12px; border-radius: 10px; }
.btn--lg { padding: 12px 20px; border-radius: 14px; }

/* Header */
.header {
  position: sticky; top: 0; z-index: 999;
  background: rgba(20,20,20,0.82);
  backdrop-filter: saturate(120%) blur(8px);
  box-shadow: none;
  transition: box-shadow .2s ease, transform .2s ease, height .2s ease, padding .2s ease;
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; }
.header__logo { display: inline-flex; align-items: center; gap: 10px; }
.header__logo img { width: 132px; height: 28px; }
.nav { display: none; }
.header__cta { display: none; gap: 8px; }
.header__burger { background: #3ee6e0; border: 0; padding: 8px; border-radius: 10px; }
.header__burger svg { width: 24px; height: 24px; }

/* Compact on scroll */
.header--compact {
  box-shadow: var(--shadow-2);
  background: rgba(20,20,20,0.92);
}
.header--compact .header__inner { padding: 8px 0; }
.header--compact .header__logo img { width: 116px; height: 24px; }

/* Desktop nav */
@media (min-width: 1025px) {
  .nav { display: block; }
  .nav__list { display: flex; gap: 16px; list-style: none; margin: 0; padding: 0; }
  .nav__link {
    display: inline-flex; align-items: center; padding: 8px 12px; border-radius: 10px; color: var(--text-secondary);
  }
  .nav__link:hover, .nav__link[aria-current="page"] { color: var(--text-primary); background: var(--surface-2); }
  .header__cta { display: flex; }
  .header__burger { display: none; }
}

/* Off-canvas */
.offcanvas {
  position: fixed; inset: 0 0 0 40%;
  translate: 100% 0;
  background: var(--surface);
  box-shadow: var(--shadow-1);
  transition: translate .25s ease;
  z-index: 1001;
  display: flex; flex-direction: column;
  max-width: 420px;
}
.offcanvas--open { translate: 0 0; }
.offcanvas__header { display: flex; align-items: center; justify-content: space-between; padding: 16px; border-bottom: 1px solid var(--surface-3); }
.offcanvas__body { padding: 12px 16px 24px; overflow-y: auto; }
.offcanvas__nav { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.offcanvas__nav a { display: block; padding: 12px; border-radius: 10px; color: var(--text-secondary); }
.offcanvas__nav a:hover, .offcanvas__nav a[aria-current="page"] { color: var(--text-primary); background: var(--surface-2); }
.offcanvas__footer { margin-top: auto; padding: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.offcanvas__overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(2px);
  opacity: 0; pointer-events: none; transition: opacity .2s ease; z-index: 1000;
}
.offcanvas__overlay--show { opacity: 1; pointer-events: auto; }
@media (max-width: 480px) {
  .offcanvas { inset: 0 0 0 64px; }
}

/* Hero */
.hero{
  position: relative;
  border-radius: 0 0 24px 24px;
  overflow: hidden;
  background-image:
    linear-gradient(0deg, rgba(0,0,0,.6), #3ee6e0),
    url("assets/img/banner.png");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
.hero__inner{
  position: relative;     
  padding: 60px 0;      
}
.hero__title { max-width: 780px; font-size: 35px; }
.hero__subtitle { max-width: 720px; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 16px; }




/* Breadcrumbs */
.breadcrumbs { padding: 8px 0 0; }
.breadcrumbs nav { font-size: 14px; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; gap: 8px; color: var(--text-muted); }
.breadcrumbs a { color: var(--text-secondary); }
.breadcrumbs li[aria-current="page"] { color: var(--text-primary); }

/* Sections */
.section { padding: 28px 0; }
.section--tight { padding: 16px 0; }
.card {
  background: var(--surface); border: 1px solid var(--surface-3);
  border-radius: var(--radius); box-shadow: var(--shadow-2);
}
.grid { display: grid; gap: 12px; }
.grid--games { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 481px) { .grid--games { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 769px) { nav.tabbar {display: none} .grid--games { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1025px) { .grid--games { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1441px) { .grid--games { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Game card */
.game-card { overflow: hidden; display: flex; flex-direction: column; }
.game-card__media {
  aspect-ratio: 16/9; background: var(--surface-2);
  position: relative; overflow: hidden;
}
.game-card__img {
  width: 100%; height: 100%; object-fit: cover;
}
.game-card__badge {
  position: absolute; left: 8px; top: 8px;
  background: rgba(0,0,0,.6); color: #fff; padding: 4px 8px; border-radius: 999px; font-size: 12px;
}
.game-card__body { padding: 10px; display: grid; gap: 10px; }
.game-card__title { font-size: 16px; color: var(--text-primary); }
.game-card__meta { font-size: 13px; color: var(--text-muted); display: flex; gap: 8px; flex-wrap: wrap; }
.game-card__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

/* Skeleton loader */
.skeleton { position: relative; overflow: hidden; background: var(--surface-2); }
.skeleton::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.06), transparent);
  animation: shimmer 1.2s infinite;
}
@keyframes shimmer { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }

/* Provider slider */
.providers {
  display: grid; gap: 12px; grid-auto-flow: column; grid-auto-columns: max-content;
  overflow-x: auto; padding: 8px;
  scroll-snap-type: x mandatory;
}
.providers::-webkit-scrollbar { height: 6px; }
.providers::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 999px; }
.provider {
  scroll-snap-align: start; background: var(--surface-2); border: 1px solid var(--surface-3);
  border-radius: 999px; padding: 8px 14px; display: inline-flex; align-items: center; gap: 8px; color: var(--text-secondary);
}

/* Payments table */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; min-width: 640px; }
.table th, .table td { text-align: left; padding: 12px; border-bottom: 1px solid var(--surface-3); }
.table thead th { position: sticky; top: 0; background: var(--surface); z-index: 1; }

/* FAQ accordion */
.faq { max-width: 960px; margin: 0 auto; }
.accordion { display: grid; gap: 8px; }
.accordion__item { border: 1px solid var(--surface-3); border-radius: 12px; background: var(--surface); }
.accordion__header { width: 100%; text-align: left; background: transparent; border: 0; padding: 14px 16px; font-weight: 600; color: var(--text-primary); border-radius: 12px; }
.accordion__panel { padding: 0 16px 16px; color: var(--text-secondary); display: none; }
.accordion__item[aria-expanded="true"] .accordion__panel { display: block; }

/* Footer */
.footer { margin-top: 24px; border-top: 1px solid var(--surface-3); }
.footer__inner { display: grid; gap: 16px; padding: 24px 0; }
.footer__top { display: grid; gap: 16px; }
.footer__brand { display: flex; align-items: center; gap: 10px; }
.footer__menu { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.footer__legal { display: flex; flex-wrap: wrap; gap: 12px; font-size: 14px; color: var(--text-muted); }
.footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--text-muted); }
@media (min-width: 769px) {
  .footer__top { grid-template-columns: 1fr auto; align-items: start; }
  .footer__menu { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Bottom tabbar (optional mobile) */
.tabbar {
  position: sticky; bottom: 0; inset-inline: 0;
  background: var(--surface);
  border-top: 1px solid var(--surface-3);
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 0;
}
.tabbar a {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 8px 6px; color: var(--text-secondary); font-size: 12px;
}
.tabbar a[aria-current="page"], .tabbar a:hover { color: var(--text-primary); background: var(--surface-2); }

/* Cookie banner */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1100;
  background: var(--surface); color: var(--text-secondary);
  border-top: 1px solid var(--surface-3);
  padding: 10px 16px;
  display: none; /* will be flex when shown */
  align-items: center; gap: 12px; flex-wrap: wrap;
}
.cookie-banner__text { flex: 1 1 auto; min-width: 220px; }
.cookie-banner__actions { display: flex; gap: 8px; }

/* Cookie modal */
.modal {
  position: fixed; inset: 0; z-index: 1200; display: none; align-items: center; justify-content: center;
}
.modal--open { display: flex; }
.modal__overlay { position: absolute; inset: 0; background: rgba(0,0,0,.5); backdrop-filter: blur(2px); }
.modal__dialog {
  position: relative; background: var(--surface); border: 1px solid var(--surface-3);
  border-radius: 16px; box-shadow: var(--shadow-1);
  width: 92%; max-width: 560px; padding: 16px;
}
.modal__header { display: flex; align-items: center; justify-content: space-between; }
.modal__title { margin: 0; font-size: 20px; }
.modal__body { margin-top: 8px; color: var(--text-secondary); }
.modal__footer { margin-top: 16px; display: flex; gap: 10px; justify-content: flex-end; }
.no-scroll { overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
@media (min-width: 769px){
  .offcanvas { display: none; }
  .offcanvas.offcanvas--open { display: none; }}