/* =========================================================
   Kush Casino — тематическая вёрстка (тёмный фон + золото)
   ========================================================= */

:root {
  --bg: #0a0810;
  --bg-alt: #131020;
  --bg-card: #17132a;
  --bg-card-alt: #1c1730;
  --gold: #f4c661;
  --gold-strong: #ffdd88;
  --gold-deep: #b8863c;
  --text: #efe8db;
  --text-muted: #a89bb0;
  --border: rgba(244, 198, 97, 0.18);
  --border-strong: rgba(244, 198, 97, 0.4);
  --green: #4fd17a;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  --container: 1180px;
  font-size: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: radial-gradient(circle at 20% -10%, #241a34 0%, var(--bg) 45%) fixed;
  color: var(--text);
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--gold-strong);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3, h4 {
  font-family: inherit;
  color: var(--gold-strong);
  line-height: 1.25;
  margin: 0 0 14px;
}

h1 {
  font-size: clamp(28px, 4vw, 42px);
}

h2 {
  font-size: clamp(22px, 3vw, 30px);
}

h3 {
  font-size: 18px;
  color: var(--text);
}

p {
  margin: 0 0 16px;
  color: var(--text);
}

.text-muted {
  color: var(--text-muted);
}

.section {
  padding: 56px 0;
}

.section--tight {
  padding: 32px 0;
}

.section__head {
  max-width: 720px;
  margin-bottom: 28px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(244, 198, 97, 0.12);
  border: 1px solid var(--border);
  color: var(--gold);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.btn--gold {
  background: linear-gradient(135deg, var(--gold-strong), var(--gold-deep));
  color: #211405;
  box-shadow: 0 8px 20px rgba(244, 198, 97, 0.25);
}

.btn--gold:hover {
  box-shadow: 0 12px 26px rgba(244, 198, 97, 0.35);
}

.btn--ghost {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--gold-strong);
}

.btn--ghost:hover {
  background: rgba(244, 198, 97, 0.08);
}

.btn--block {
  width: 100%;
}

.btn--sm {
  padding: 8px 16px;
  font-size: 13px;
}

/* ---------- Header ---------- */

.site-header {
  position: relative;
}

.site-header__banner {
  background-image:
    linear-gradient(180deg, rgba(8, 6, 14, 0.55) 0%, rgba(8, 6, 14, 0.88) 78%, var(--bg) 100%),
    url("/assets/images/guest_banner.webp");
  background-size: cover;
  background-position: center top;
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 18px 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand__logo {
  height: 40px;
  width: auto;
}

.main-nav ul {
  display: flex;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav a {
  color: var(--text);
  font-weight: 600;
  font-size: 15px;
}

.main-nav a[aria-current="page"] {
  color: var(--gold-strong);
}

.main-nav a:hover {
  color: var(--gold-strong);
  text-decoration: none;
}

.site-header__actions {
  display: flex;
  gap: 10px;
  margin-left: auto;
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  width: 40px;
  height: 36px;
  position: relative;
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  height: 2px;
  background: var(--gold-strong);
}

.nav-toggle span {
  top: 17px;
}

.nav-toggle span::before {
  top: -6px;
}

.nav-toggle span::after {
  top: 6px;
}

/* ---------- Hero ---------- */

.hero {
  padding: 46px 0 60px;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: center;
}

.hero__grid--single {
  grid-template-columns: 1fr;
  max-width: 680px;
}

.hero__eyebrow {
  color: var(--gold);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 13px;
  margin-bottom: 10px;
}

.hero__lede {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 560px;
}

.hero__cta {
  display: flex;
  gap: 14px;
  margin-top: 22px;
  flex-wrap: wrap;
}

.perk-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 36px;
}

.perk-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
}

.perk-card__icon {
  font-size: 26px;
  margin-bottom: 8px;
}

.perk-card h3 {
  font-size: 14px;
  margin-bottom: 4px;
  color: var(--gold-strong);
}

.perk-card p {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}

/* ---------- Games grid ---------- */

.games-toolbar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.game-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.game-filters button {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 13px;
  cursor: pointer;
}

.game-filters button.is-active,
.game-filters button:hover {
  color: var(--gold-strong);
  border-color: var(--border-strong);
}

.gamelist {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}

.game-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.game-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
}

.game-card img {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
  background: #0a0810;
}

.game-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 8, 16, 0.55);
  opacity: 0;
  transition: opacity 0.18s ease;
}

.game-card:hover .game-card__overlay {
  opacity: 1;
}

.game-card__tag {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: #201203;
  background: var(--gold-strong);
  border-radius: 6px;
  padding: 3px 8px;
}

.game-card__name {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 20px 10px 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  background: linear-gradient(180deg, transparent, rgba(6, 4, 10, 0.92));
}

/* regular-game-slide / hot-game-slide reuse game-card styling */
.regular-game-slide,
.hot-game-slide {
  display: block;
}

/* ---------- Winners ticker ---------- */

.winners {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.winners__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.winners__live-dot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
}

.winners__live-dot::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(79, 209, 122, 0.6);
  animation: pulse 1.6s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(79, 209, 122, 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(79, 209, 122, 0); }
  100% { box-shadow: 0 0 0 0 rgba(79, 209, 122, 0); }
}

.winners-feed {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.winner-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 14px;
  animation: fade-in 0.35s ease;
}

@keyframes fade-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.winner-item__avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
  border: 1px solid var(--border-strong);
}

.winner-item__body {
  min-width: 0;
}

.winner-item__player {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.winner-item__game {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.winner-item__amount {
  margin-left: auto;
  font-weight: 800;
  color: var(--gold-strong);
  font-size: 14px;
  white-space: nowrap;
}

.winners__note {
  margin-top: 14px;
  font-size: 12px;
  color: var(--text-muted);
}

/* ---------- Content / SEO text blocks ---------- */

.article {
  max-width: 760px;
}

.article h2 {
  margin-top: 40px;
}

.article h2:first-of-type {
  margin-top: 0;
}

.content-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 40px;
  align-items: start;
}

.callout {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.callout h3 {
  color: var(--gold-strong);
  margin-bottom: 10px;
}

.callout ul {
  margin: 0;
  padding-left: 18px;
  color: var(--text-muted);
  font-size: 14px;
}

.callout li {
  margin-bottom: 8px;
}

/* ---------- FAQ ---------- */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 18px;
  font-weight: 700;
  color: var(--gold-strong);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 20px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: "\2212";
}

.faq-item__body {
  padding: 0 18px 16px;
  color: var(--text-muted);
  font-size: 14px;
}

/* ---------- Internal linking block ---------- */

.related-links {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-top: 30px;
}

.related-links h3 {
  margin-bottom: 12px;
}

.related-links ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
}

.related-links a {
  font-weight: 600;
}

/* ---------- Category cards (Live page) ---------- */

.live-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.live-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.live-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
}

.live-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  background: linear-gradient(135deg, rgba(244,198,97,0.22), rgba(244,198,97,0.05));
  margin-bottom: 14px;
}

.live-card h3 {
  margin-bottom: 6px;
}

.live-card p {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}

/* ---------- Bonus cards ---------- */

.bonus-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}

.bonus-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bonus-card__badge {
  align-self: flex-start;
}

.bonus-card__value {
  font-size: 26px;
  font-weight: 800;
  color: var(--gold-strong);
}

.bonus-card p {
  color: var(--text-muted);
  font-size: 14px;
  margin: 0;
}

.promo-code {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(244, 198, 97, 0.1);
  border: 1px dashed var(--border-strong);
  border-radius: 8px;
  padding: 8px 12px;
  font-family: "Courier New", monospace;
  font-weight: 700;
  color: var(--gold-strong);
  letter-spacing: 0.05em;
}

/* ---------- Breadcrumbs ---------- */

.breadcrumbs {
  padding: 16px 0 0;
}

.breadcrumbs ol {
  display: flex;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 13px;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.breadcrumbs li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--text-muted);
}

.breadcrumbs a {
  color: var(--text-muted);
}

.breadcrumbs a:hover {
  color: var(--gold-strong);
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding-top: 44px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.4fr;
  gap: 32px;
  padding-bottom: 28px;
}

.footer__logo {
  height: 32px;
  margin-bottom: 12px;
}

.footer__brand p {
  color: var(--text-muted);
  font-size: 13px;
}

.footer__nav h3,
.footer__legal h3 {
  font-size: 14px;
  color: var(--gold-strong);
  margin-bottom: 12px;
}

.footer__nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer__nav a {
  color: var(--text-muted);
  font-size: 14px;
}

.footer__nav a:hover {
  color: var(--gold-strong);
}

.footer__legal p {
  color: var(--text-muted);
  font-size: 12.5px;
}

.footer__bottom {
  border-top: 1px solid var(--border);
  padding: 16px 0;
  font-size: 12px;
  color: var(--text-muted);
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }
  .content-grid {
    grid-template-columns: 1fr;
  }
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
  .perk-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    display: none;
  }
  .main-nav.is-open {
    display: block;
  }
  .main-nav ul {
    flex-direction: column;
    padding: 16px 20px;
    gap: 14px;
  }
  .nav-toggle {
    display: block;
  }
  .site-header__actions .btn--ghost {
    display: none;
  }
  .footer__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .perk-row {
    grid-template-columns: 1fr 1fr;
  }
  .gamelist {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  }
}
