/* Cashed Casino — casinocashed.net
   Токены цвета взяты из оригинальной темы снэпшота. */

:root {
  --header-bg: #14261c;
  --main-bg: #14261c;
  --content-bg: #1c3627;
  --banner-bg: #10241a;

  --gold: #e1b95d;
  --gold-ink: #10241a;
  --green-soft: #254737;
  --success: #2db866;

  --heading: #ffffff;
  --text: #e5ede8;
  --muted: #b9c8bf;

  --table-border: #384b45;
  --table-head: #213129;
  --table-even: #22362c;
  --table-odd: #1c3627;

  --radius: 10px;
  --wrap: 1140px;
  --header-h: 62px;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  padding-top: var(--header-h);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--content-bg);
  -webkit-text-size-adjust: 100%;
}

img { max-width: 100%; height: auto; }

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

h1, h2, h3, h4 { color: var(--heading); font-weight: 700; line-height: 1.2; }

.container { max-width: var(--wrap); width: 100%; margin: 0 auto; padding: 0 16px; }

.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: 200;
  background: var(--gold); color: var(--gold-ink); padding: 10px 16px; font-weight: 600;
}
.skip-link:focus { left: 8px; top: 8px; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ------------------------------------------------------------------ boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 10px 20px; border: 1px solid transparent;
  border-radius: 8px; font-size: 15px; font-weight: 600; text-decoration: none;
  cursor: pointer; transition: filter .2s ease, background-color .2s ease;
}
.btn:hover { filter: brightness(1.08); }
.btn--lg { min-height: 56px; padding: 14px 32px; font-size: 16px; border-radius: var(--radius); }

.btn--primary { background: var(--gold); color: var(--gold-ink); }
.btn--outline { background: var(--green-soft); color: var(--gold); }
.btn--ghost   { background: transparent; color: var(--gold); border-color: transparent; }
.btn--success { background: var(--success); color: #06210f; }

/* ------------------------------------------------------------------- header */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 99;
  height: var(--header-h); background: var(--header-bg);
}
.header__inner { display: flex; align-items: center; height: var(--header-h); gap: 16px; }

.logo a { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--gold); }
.logo img { max-height: 40px; width: auto; }
.logo span {
  font-size: 18px; font-weight: 700; line-height: 20px;
  letter-spacing: .18px; text-transform: uppercase; white-space: nowrap;
}

.main-nav { margin-left: 32px; }
.main-nav ul { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.main-nav a { color: var(--gold); text-decoration: none; font-size: 16px; }
.main-nav a:hover { text-decoration: underline; }

.header__buttons { display: flex; align-items: center; gap: 12px; margin-left: auto; }

.nav-burger { display: none; }

/* --------------------------------------------------------------------- hero */
.hero { padding: 56px 0 24px; }
.hero__title { font-size: 40px; text-align: center; margin: 0 0 32px; }
.hero__text { max-width: 900px; margin: 0 auto 32px; }
.hero__text p { margin: 0; font-size: 17px; line-height: 1.6; }
.hero__buttons { display: flex; flex-wrap: wrap; gap: 24px; justify-content: center; }

.banner { margin: 0 0 56px; text-align: center; }
.banner img { border-radius: var(--radius); }

/* -------------------------------------------------------------------- jeux */
.games { max-width: 1110px; width: 100%; margin: 0 auto 72px; padding: 0 16px; }
.games h2 { font-size: 28px; text-align: center; margin: 0 auto 32px; }

.games__nav {
  display: flex; align-items: stretch; gap: 10px;
  list-style: none; margin: 0 0 28px; padding: 0; overflow-x: auto;
}
.games__nav li { flex: 1 1 0; min-width: 150px; }
.games__tab {
  width: 100%; height: 48px; padding: 0 10px;
  display: flex; align-items: center; justify-content: center;
  background: var(--banner-bg); color: #fff; border: 1px solid transparent;
  border-radius: 6px; font: 600 15px/1.2 var(--font); cursor: pointer;
  transition: background-color .25s ease, color .25s ease;
}
.games__tab:hover { background: var(--main-bg); }
.games__tab.is-active { background: var(--main-bg); color: var(--gold); border-color: var(--gold); }

.games__list { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px 12px; }
.games__card { margin: 0; }
.games__thumb { display: block; margin-bottom: 10px; border-radius: var(--radius); overflow: hidden; }
.games__thumb img { display: block; width: 100%; }
.games__name { display: block; margin-bottom: 4px; font-size: 16px; color: var(--gold); }
.games__provider { display: block; font-size: 13px; color: var(--heading); opacity: .8; }

/* ------------------------------------------------------------------- tableau */
.infotable { max-width: 1110px; width: 100%; margin: 0 auto 72px; padding: 0 16px; }
.infotable h2 { font-size: 28px; text-align: center; margin: 0 0 28px; }

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.infotable table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 16px; }
.infotable th, .infotable td {
  padding: 14px 20px; border: 1px solid var(--table-border);
  text-align: left; vertical-align: top;
}
.infotable thead th { background: var(--table-head); color: var(--heading); font-weight: 700; }
.infotable tbody th { background: var(--table-odd); color: var(--text); font-weight: 700; width: 34%; }
.infotable tbody td { background: var(--table-odd); }
.infotable tbody tr:nth-child(even) th,
.infotable tbody tr:nth-child(even) td { background: var(--table-even); }

/* ------------------------------------------------------------------ contenu */
.content {
  max-width: 900px; width: 100%; margin: 0 auto 72px; padding: 0 16px;
  font-size: 17px; line-height: 1.65;
}
.content h2 { font-size: 28px; text-align: center; margin: 48px 0 20px; }
.content h3 { font-size: 21px; margin: 32px 0 14px; }
.content p { margin: 0 0 16px; }
.content strong { color: var(--heading); }
.content ul { margin: 0 0 20px; padding-left: 22px; }
.content li { margin-bottom: 8px; }

/* ---------------------------------------------------------------- sommaire */
.toc {
  max-width: 900px; width: 100%; margin: 0 auto 48px;
  padding: 24px 28px; border-radius: var(--radius);
  background: var(--banner-bg); border: 1px solid rgba(225, 185, 93, .28);
}
.toc__title { font-size: 18px; margin: 0 0 16px; text-transform: uppercase; letter-spacing: .04em; }
.toc__list { margin: 0; padding-left: 20px; columns: 2; column-gap: 32px; }
.toc__list li { margin-bottom: 10px; break-inside: avoid; }
.toc__list a { color: var(--gold); text-decoration: none; }
.toc__list a:hover { text-decoration: underline; }

/* --------------------------------------------------------------------- FAQ */
.faq { max-width: 900px; width: 100%; margin: 0 auto 72px; padding: 0 16px; }
.faq__title { font-size: 28px; text-align: center; margin: 0 0 28px; }
.faq__list { display: flex; flex-direction: column; gap: 12px; }

.faq__item {
  border: 1px solid var(--table-border); border-radius: var(--radius);
  background: var(--banner-bg); overflow: hidden;
  transition: border-color .2s ease;
}
.faq__item[open] { border-color: rgba(225, 185, 93, .5); }
.faq__item:hover { border-color: rgba(225, 185, 93, .35); }

.faq__q {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 22px; cursor: pointer; list-style: none;
  user-select: none;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q h3 { flex: 1; margin: 0; font-size: 17px; line-height: 1.4; font-weight: 600; }
.faq__item[open] .faq__q h3 { color: var(--gold); }

.faq__chevron {
  flex: none; width: 12px; height: 12px; margin-right: 4px;
  border-right: 2px solid var(--gold); border-bottom: 2px solid var(--gold);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform .25s ease;
}
.faq__item[open] .faq__chevron { transform: rotate(-135deg) translate(-3px, -3px); }

.faq__a {
  padding: 0 22px 20px;
  border-top: 1px solid rgba(255, 255, 255, .07);
  margin-top: -1px;
}
.faq__a p { margin: 16px 0 0; color: var(--text); line-height: 1.65; }

/* --------------------------------------------------------------- mise à jour */
.updated { max-width: 1110px; width: 100%; margin: 0 auto 72px; padding: 0 16px; }
.updated__box {
  margin: 0; padding: 16px 32px; border-radius: var(--radius);
  background: var(--header-bg); color: var(--text); font-size: 18px;
  border-left: 5px solid var(--gold);
}

/* ------------------------------------------------------------------- footer */
.footer { background: var(--main-bg); }
.footer__inner {
  display: flex; flex-wrap: wrap; gap: 40px;
  justify-content: space-between; padding-top: 48px; padding-bottom: 40px;
}
.footer__info { max-width: 320px; }
.logo--footer { margin-bottom: 20px; }
.footer__age { margin: 0 0 18px; font-size: 14px; color: var(--muted); }
.age-badge {
  display: inline-block; margin-right: 6px; padding: 2px 8px;
  border: 1px solid var(--gold); border-radius: 999px;
  color: var(--gold); font-weight: 700; font-size: 13px;
}
.footer__badges { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.footer__badges img { max-height: 44px; width: auto; opacity: .9; }

.footer__links { display: flex; flex-wrap: wrap; gap: 40px; }
.footer__nav ul { list-style: none; margin: 0; padding: 0; }
.footer__nav li { margin-bottom: 12px; }
.footer__nav a { color: var(--gold); text-decoration: none; font-size: 15px; }
.footer__nav a:hover { text-decoration: underline; }

.footer__bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding: 20px 0; }
.footer__bottom p { margin: 0; font-size: 13px; color: var(--muted); }

/* -------------------------------------------------------------------- promo */
.promo {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, .6); padding: 16px;
}
.promo[hidden] { display: none; }
.promo__box {
  position: relative; width: 100%; max-width: 440px;
  display: flex; flex-direction: column; align-items: center; gap: 20px;
  padding: 40px 24px; text-align: center;
  background: var(--banner-bg); border: 1px solid var(--gold); border-radius: var(--radius);
}
.promo__close {
  position: absolute; top: 8px; right: 12px;
  background: none; border: 0; color: var(--text);
  font-size: 28px; line-height: 1; cursor: pointer;
}
.promo__brand { display: flex; align-items: center; gap: 16px; text-decoration: none; }
.promo__brand span { font-size: 28px; font-weight: 700; color: var(--heading); }
.promo__lead { margin: 0; font-size: 26px; font-weight: 700; color: var(--heading); }
.promo__main { margin: 0; font-size: 20px; color: var(--gold); }

/* --------------------------------------------------------------- responsive */
@media (max-width: 1024px) {
  .games__list { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 900px) {
  .main-nav {
    position: fixed; top: var(--header-h); right: 0; bottom: 0;
    width: 100%; max-width: 286px; margin: 0; padding: 8px 0;
    background: var(--header-bg); transform: translateX(100%);
    transition: transform .3s ease; overflow-y: auto;
  }
  .nav-toggle:checked ~ .main-nav { transform: translateX(0); }
  .main-nav ul { display: block; }
  .main-nav li { border-bottom: 1px solid var(--main-bg); }
  .main-nav li:first-child { border-top: 1px solid var(--main-bg); }
  .main-nav a { display: block; padding: 14px 16px; }

  .nav-burger {
    order: 3; display: flex; flex-direction: column; justify-content: center;
    gap: 5px; width: 32px; height: 32px; margin-left: 8px; cursor: pointer;
  }
  .nav-burger span { display: block; height: 2px; background: var(--gold); border-radius: 2px; }

  .header__buttons { margin-left: auto; }
  .btn--ghost { display: none; }
}

@media (max-width: 768px) {
  .hero { padding: 32px 0 16px; }
  .hero__title { font-size: 28px; margin-bottom: 20px; }
  .hero__text p { font-size: 16px; }
  .hero__buttons { gap: 12px; }
  .btn--lg { width: 100%; min-height: 52px; padding: 12px 20px; }
  .banner { margin-bottom: 40px; }

  .games, .infotable, .content, .updated, .faq, .toc { margin-bottom: 40px; }
  .games h2, .infotable h2, .content h2, .faq__title { font-size: 24px; }

  .toc { padding: 18px 20px; }
  .toc__list { columns: 1; }
  .faq__q { padding: 14px 16px; gap: 12px; }
  .faq__q h3 { font-size: 16px; }
  .faq__a { padding: 0 16px 16px; }
  .games__list { grid-template-columns: repeat(3, 1fr); gap: 12px 8px; }
  .games__name { font-size: 14px; }
  .games__provider { font-size: 12px; }
  .games__nav li { min-width: 130px; }

  .content { font-size: 16px; }
  .content h3 { font-size: 19px; }
  .updated__box { padding: 14px 18px; font-size: 16px; }

  .footer__inner { flex-direction: column; gap: 28px; }
  .footer__links { gap: 28px; }
  .logo span { font-size: 15px; }
}

@media (max-width: 480px) {
  .games__list { grid-template-columns: repeat(2, 1fr); }
}
