:root {
  --bg: #1c1e22;
  --bg-elevated: #25282e;
  --bg-panel: #2a2d32;
  --bg-input: #22252a;
  --border: #3a3e45;
  --text: #ffffff;
  --text-muted: #a8adb6;
  --green: #2eb840;
  --green-hover: #27a338;
  --gold: #f3b317;
  --gold-hover: #e0a40f;
  --radius: 10px;
  --radius-sm: 8px;
  --header-h: 64px;
  --font: "Outfit", system-ui, sans-serif;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  --max: 1100px;
}

*,
*::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.45;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--gold);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  background: var(--gold);
  color: #111;
  padding: 0.75rem 1rem;
  font-weight: 700;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(28, 30, 34, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header__inner {
  max-width: var(--max);
  margin: 0 auto;
  min-height: var(--header-h);
  padding: 0.65rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none;
  color: inherit;
}

.logo:hover {
  text-decoration: none;
}

.logo__mark {
  display: block;
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 6px;
  flex-shrink: 0;
}

.logo__text {
  display: flex;
  flex-direction: column;
  line-height: 0.95;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.logo__royal {
  font-size: 0.95rem;
  color: #fff;
}

.logo__reels {
  font-size: 0.95rem;
  color: #fff;
}

.header__actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-weight: 700;
  font-size: 0.875rem;
  padding: 0.55rem 0.95rem;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.15s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.btn:hover {
  text-decoration: none;
}

.btn:active {
  transform: scale(0.98);
}

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

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

.btn--ghost {
  background: transparent;
  color: #d0d4db;
  border: 1px solid #6b717c;
}

.btn--ghost:hover {
  border-color: #9aa0ab;
  color: #fff;
}

.btn--gold {
  background: var(--gold);
  color: #fff;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.15);
}

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

.btn--lg {
  width: 100%;
  max-width: 420px;
  padding: 0.9rem 1.25rem;
  font-size: 1.05rem;
  border-radius: var(--radius);
}

/* Hero */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1rem 1rem 1.5rem;
}

.hero__banner {
  border-radius: 14px;
  overflow: hidden;
  background: #151820;
  box-shadow: var(--shadow);
  animation: fadeUp 0.6s ease both;
}

.hero__img {
  width: 100%;
  height: auto;
  aspect-ratio: 1280 / 540;
  object-fit: cover;
  display: block;
}

.hero__copy {
  text-align: center;
  padding: 1.25rem 0.25rem 0.5rem;
  animation: fadeUp 0.7s ease 0.12s both;
}

.hero__eyebrow {
  margin: 0 0 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hero__title {
  margin: 0 0 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-weight: 800;
  line-height: 1.2;
}

.hero__brand {
  font-size: clamp(1.5rem, 5vw, 2rem);
  color: var(--gold);
}

.hero__package {
  font-size: clamp(1.2rem, 4vw, 1.55rem);
}

.hero__offer {
  font-size: clamp(1.05rem, 3.6vw, 1.35rem);
  font-weight: 700;
}

/* Filters / Lobby */
.lobby {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1rem 2rem;
}

.filters {
  background: var(--bg-elevated);
  border-radius: 12px;
  padding: 0.85rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.04);
  animation: fadeUp 0.65s ease 0.2s both;
}

.filters__row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
}

.providers {
  position: relative;
}

.providers__btn {
  height: 42px;
  padding: 0 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--bg-panel);
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.providers__btn:hover,
.providers__btn[aria-expanded="true"] {
  color: #fff;
  border-color: #555b66;
}

.providers__list {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 20;
  min-width: 220px;
  margin: 0;
  padding: 0.35rem;
  list-style: none;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}

.providers__list li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.7rem;
  border-radius: 6px;
  font-size: 0.875rem;
  color: var(--text-muted);
  cursor: pointer;
}

.providers__list li img {
  height: 22px;
  width: auto;
  max-width: 96px;
  border-radius: 4px;
}

.providers__list li span {
  font-size: 0.8rem;
}

.providers__list li[data-value="all"] {
  font-weight: 600;
}

.providers__list li:hover,
.providers__list li:focus {
  background: rgba(243, 179, 23, 0.15);
  color: #fff;
  outline: none;
}

.search {
  position: relative;
  display: block;
}

.search input {
  width: 100%;
  height: 42px;
  padding: 0 2.5rem 0 0.9rem;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: #fff;
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
}

.search input::placeholder {
  color: #7a808a;
}

.search input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(243, 179, 23, 0.2);
}

.search__icon {
  position: absolute;
  right: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: #8a9099;
  pointer-events: none;
}

.tabs {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.15rem;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.tabs::-webkit-scrollbar {
  display: none;
}

.tabs__btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  height: 40px;
  padding: 0 0.95rem;
  border: none;
  border-radius: 999px;
  background: var(--bg-panel);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.tabs__btn:hover {
  color: #fff;
}

.tabs__btn.is-active {
  background: var(--gold);
  color: #111;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.12);
}

.tabs__icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  display: inline-block;
  background-color: currentColor;
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
}

.tabs__icon--all { --icon: url("assets/svg/categories/all-games.svg"); }
.tabs__icon--popular { --icon: url("assets/svg/categories/popular.svg"); }
.tabs__icon--originals { --icon: url("assets/svg/categories/originals.svg"); }
.tabs__icon--slots { --icon: url("assets/svg/categories/slots.svg"); }
.tabs__icon--live { --icon: url("assets/svg/categories/live.svg"); }

/* Games grid */
.games {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.game {
  animation: fadeUp 0.5s ease both;
}

.game:nth-child(1) { animation-delay: 0.25s; }
.game:nth-child(2) { animation-delay: 0.3s; }
.game:nth-child(3) { animation-delay: 0.35s; }
.game:nth-child(4) { animation-delay: 0.4s; }
.game:nth-child(5) { animation-delay: 0.45s; }
.game:nth-child(6) { animation-delay: 0.5s; }

.game.is-hidden {
  display: none;
}

.game__link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.game__link:hover {
  text-decoration: none;
}

.game__thumb {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 0.75rem;
  background: #12141a;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.game__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.game__link:hover .game__thumb,
.game__link:focus-visible .game__thumb {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
}

.game__thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, transparent 55%);
  pointer-events: none;
}

.game__title {
  position: relative;
  z-index: 2;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

.games__empty {
  text-align: center;
  color: var(--text-muted);
  padding: 2rem 1rem;
}

/* Long-form SEO content */
.content {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.5rem 1rem 2.5rem;
}

.content > h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.35rem, 4vw, 1.75rem);
  font-weight: 800;
  line-height: 1.25;
  color: #fff;
}

.content > h3 {
  margin: 1.75rem 0 0.75rem;
  font-size: clamp(1.05rem, 3vw, 1.25rem);
  font-weight: 800;
  line-height: 1.3;
  color: #fff;
}

.content p {
  margin: 0 0 0.9rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
  max-width: 720px;
}

.content a {
  color: var(--gold);
}

.content ul,
.content ol {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
  max-width: 720px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.content li {
  margin-bottom: 0.45rem;
}

.content li strong {
  color: #e8eaed;
}

.content__steps {
  list-style: decimal;
  padding-left: 1.35rem;
}

.content__steps li {
  padding-left: 0.25rem;
}

.table-wrap {
  overflow-x: auto;
  margin: 0.75rem 0 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: var(--bg-elevated);
  -webkit-overflow-scrolling: touch;
}

.content table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.content thead th {
  background: var(--bg-panel);
  color: #fff;
  font-weight: 700;
  text-align: left;
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  white-space: nowrap;
}

.content tbody th,
.content tbody td {
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  text-align: left;
  vertical-align: top;
}

.content tbody th {
  color: #e4e6eb;
  font-weight: 700;
  white-space: nowrap;
}

.content tbody tr:last-child th,
.content tbody tr:last-child td {
  border-bottom: none;
}

.content tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.02);
}

.content .faq__list {
  margin-top: 0.75rem;
  max-width: none;
}

/* FAQ */
.faq {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1rem 2.5rem;
}

.faq h2 {
  margin: 0 0 1rem;
  font-size: 1.25rem;
  font-weight: 800;
}

.faq__list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.faq__item {
  background: var(--bg-elevated);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 0.15rem 1rem;
}

.faq__item summary {
  cursor: pointer;
  font-weight: 700;
  padding: 0.9rem 0;
  list-style: none;
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item summary::after {
  content: "+";
  float: right;
  color: var(--gold);
  font-weight: 800;
}

.faq__item[open] summary::after {
  content: "−";
}

.faq__item p {
  margin: 0 0 1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Footer */
.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: #16181c;
  padding: 1.75rem 1rem 6rem;
}

.footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  text-align: center;
}

.footer__block {
  margin-bottom: 1.75rem;
}

.footer__heading {
  margin: 0 0 0.85rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.logo-row {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
}

.logo-row li {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0.35rem 0.5rem;
  background: transparent;
  border: none;
  border-radius: 0;
}

.logo-row img {
  display: block;
  height: 24px;
  width: auto;
  max-width: 120px;
}

.logo-row--payments img {
  height: 22px;
}

.logo-icon {
  width: 28px !important;
  height: 28px !important;
  color: #fff;
  /* SVG with currentColor rendered as img stays black — invert for dark UI */
  filter: invert(1);
}

.logo-icon--btc { filter: none; }
.logo-icon--eth { filter: none; }
.logo-icon--ltc { filter: none; }
.logo-icon--usdt { filter: none; }

.logo-row--payments .logo-icon--btc,
.logo-row--payments .logo-icon--eth,
.logo-row--payments .logo-icon--ltc,
.logo-row--payments .logo-icon--usdt {
  /* keep brand-ish visibility on dark tiles via light fill already currentColor black → invert */
  filter: invert(1);
}

.social-row {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
}

.social-link {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.social-link:hover {
  background: rgba(243, 179, 23, 0.15);
  border-color: var(--gold);
  transform: translateY(-2px);
  text-decoration: none;
}

.social-link img {
  width: 20px;
  height: 20px;
  filter: invert(1);
  opacity: 0.9;
}

.footer__age {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin: 0 auto 0.85rem;
  border: 2px solid #fff;
  border-radius: 50%;
  font-weight: 800;
  font-size: 0.9rem;
}

.footer__legal {
  margin: 0 auto 1rem;
  max-width: 640px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.25rem;
  margin-bottom: 1rem;
}

.footer__nav a {
  color: #c8ccd4;
  font-size: 0.85rem;
  font-weight: 600;
}

.footer__copy {
  margin: 0;
  color: #6b717c;
  font-size: 0.8rem;
}

/* Chat */
.chat {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 200;
  width: 56px;
  height: 56px;
  border: none;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(46, 184, 64, 0.45);
  display: grid;
  place-items: center;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease;
  animation: chatPop 0.5s ease 0.8s both;
}

.chat:hover {
  background: var(--green-hover);
  transform: scale(1.06);
  text-decoration: none;
  color: #fff;
}

/* Animations */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes chatPop {
  from {
    opacity: 0;
    transform: scale(0.6);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* Desktop */
@media (min-width: 768px) {
  .header__inner,
  .hero,
  .lobby,
  .content {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .hero__img {
    aspect-ratio: 470 / 200;
  }

  .btn--lg {
    max-width: 360px;
  }

  .games {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }

  .game__title {
    font-size: 0.85rem;
  }
}

@media (min-width: 1024px) {
  .games {
    grid-template-columns: repeat(4, 1fr);
  }

  .filters__row {
    grid-template-columns: 160px 1fr;
  }
}
