:root {
  --color-bg: #1c1c1c;
  --color-surface: #252525;
  --color-primary: #c84b11;
  --color-accent: #ffd60a;
  --color-text: #f5f5f5;
  --color-muted: #b9b9b9;
  --color-border: rgba(255, 214, 10, 0.16);
  --shadow-strong: 0 20px 45px rgba(0, 0, 0, 0.38);
  --radius-card: 4px;
  --max-width: 1180px;
  --font-heading: "Anton", sans-serif;
  --font-body: "Roboto", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
  background: #111111;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background:
    radial-gradient(circle at bottom, rgba(200, 75, 17, 0.34), transparent 34%),
    linear-gradient(180deg, #111111 0%, var(--color-bg) 26%, #171717 100%);
  line-height: 1.6;
  overflow-x: hidden;
  max-width: 100%;
}

body:has(#ck-banner) {
  padding-bottom: 92px;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

.site-shell {
  position: relative;
  overflow-x: clip;
  min-height: 100vh;
  max-width: 100%;
}

main {
  overflow-x: clip;
  max-width: 100%;
}

.container {
  width: min(var(--max-width), calc(100% - 32px));
  max-width: 100%;
  margin: 0 auto;
}

.site-shell::before,
.site-shell::after {
  content: "";
  position: fixed;
  inset: auto auto 0 0;
  width: 100%;
  height: 260px;
  pointer-events: none;
  z-index: -2;
  background:
    radial-gradient(circle at 20% 100%, rgba(255, 214, 10, 0.16), transparent 22%),
    radial-gradient(circle at 48% 100%, rgba(200, 75, 17, 0.22), transparent 34%),
    radial-gradient(circle at 75% 100%, rgba(255, 214, 10, 0.12), transparent 20%);
}

.site-shell::after {
  z-index: -1;
  height: 100%;
  background-image:
    radial-gradient(circle, rgba(255, 214, 10, 0.18) 0 1px, transparent 1px),
    radial-gradient(circle, rgba(200, 75, 17, 0.24) 0 1.5px, transparent 1.5px),
    radial-gradient(circle, rgba(255, 214, 10, 0.13) 0 2px, transparent 2px);
  background-size: 170px 170px, 230px 230px, 310px 310px;
  background-position: 0 0, 40px 80px, 120px 180px;
  animation: emberRise 22s linear infinite;
  opacity: 0.4;
}

@keyframes emberRise {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-120px);
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px);
  background: rgba(16, 16, 16, 0.9);
  border-bottom: 1px solid rgba(255, 214, 10, 0.12);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex: 1 1 auto;
}

.brand-name {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.nav-toggle {
  display: none;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  margin-left: auto;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: rgba(37, 37, 37, 0.9);
  color: var(--color-text);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: currentColor;
}

.nav-toggle span::before {
  top: -7px;
}

.nav-toggle span::after {
  top: 7px;
}

input:not([type="checkbox"]):not([type="radio"]),
textarea,
select {
  max-width: 100%;
}

h1,
h2,
h3 {
  overflow-wrap: anywhere;
  word-break: break-word;
  max-width: 100%;
}

.site-disclaimer,
#ck-banner {
  max-width: 100%;
  box-sizing: border-box;
}

#ck-banner {
  flex-wrap: wrap !important;
  align-items: flex-start !important;
  width: 100% !important;
}

#ck-banner span {
  flex: 1 1 100% !important;
  min-width: 0 !important;
  overflow-wrap: anywhere;
}

#ck-banner > div {
  display: flex !important;
  flex-wrap: wrap !important;
  width: 100%;
  flex-shrink: 1 !important;
  gap: 8px;
}

.site-disclaimer {
  overflow-wrap: anywhere;
  word-break: break-word;
  padding-left: 12px !important;
  padding-right: 12px !important;
}

.brand img,
.footer-brand img {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.brand-name,
.footer-brand strong {
  font-family: var(--font-heading);
  letter-spacing: 0.08em;
  font-size: 1.5rem;
  color: var(--color-text);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: flex-end;
}

.site-nav a {
  position: relative;
  font-size: 0.95rem;
  color: var(--color-text);
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  transition: transform 0.25s ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a.is-current::after {
  transform: scaleX(1);
}

.hero {
  position: relative;
  padding: 92px 0 78px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 220px;
  background: linear-gradient(180deg, transparent, rgba(200, 75, 17, 0.36), rgba(255, 214, 10, 0.14));
  pointer-events: none;
}

.hero-grid,
.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 34px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  font-weight: 700;
}

.eyebrow::before {
  content: "";
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
}

h1,
h2,
h3,
h4 {
  margin: 0 0 16px;
  font-family: var(--font-heading);
  line-height: 1.05;
  letter-spacing: 0.03em;
}

h1 {
  font-size: clamp(3rem, 6vw, 5.8rem);
}

h2 {
  font-size: clamp(2rem, 3vw, 3rem);
}

h3 {
  font-size: clamp(1.3rem, 2vw, 1.8rem);
}

p {
  margin: 0 0 16px;
  color: var(--color-text);
}

.lead {
  font-size: 1.14rem;
  color: #e5e5e5;
  max-width: 58ch;
}

.hero-card,
.panel,
.game-card,
.news-card,
.rank-card,
.faq-item,
.contact-card,
.legal-card,
.category-block {
  background: linear-gradient(180deg, rgba(44, 44, 44, 0.96), rgba(29, 29, 29, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-bottom: 3px solid var(--color-primary);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-strong);
}

.hero-card {
  padding: 26px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 26px;
}

.hero-stats div {
  padding: 16px;
  background: rgba(255, 255, 255, 0.03);
  border-left: 3px solid var(--color-accent);
}

.hero-stats strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.65rem;
  color: var(--color-accent);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.button,
.filter-button,
.news-card a,
.game-card a,
.rank-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 18px;
  border-radius: 4px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform 0.25s ease, border-color 0.25s ease, color 0.25s ease, background 0.25s ease;
}

.button-primary,
.game-card a,
.rank-card a,
.news-card a {
  background: linear-gradient(135deg, var(--color-primary), #eb6a27);
  color: var(--color-text);
}

.button-secondary,
.filter-button {
  background: transparent;
  border-color: rgba(255, 214, 10, 0.25);
  color: var(--color-accent);
}

.button:hover,
.filter-button:hover,
.button:focus-visible,
.filter-button:focus-visible,
.game-card a:hover,
.rank-card a:hover,
.news-card a:hover {
  transform: translateY(-2px);
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.section {
  padding: 34px 0 72px;
}

.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
}

.section-intro {
  max-width: 62ch;
  color: var(--color-muted);
}

.slash-divider::before {
  content: "";
  display: block;
  width: 100%;
  height: 24px;
  margin-bottom: 24px;
  background:
    linear-gradient(120deg, transparent 0 8%, rgba(200, 75, 17, 0.82) 8% 14%, transparent 14% 22%, rgba(255, 214, 10, 0.72) 22% 28%, transparent 28% 100%);
  opacity: 0.85;
}

.cards-grid,
.news-grid,
.category-grid,
.offer-grid,
.footer-links {
  display: grid;
  gap: 22px;
}

.cards-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.news-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.category-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.game-card img,
.rank-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 4px 4px 0 0;
}

.game-card-content,
.news-card-content,
.rank-card-content,
.panel,
.category-block,
.contact-card,
.legal-card,
.faq-item {
  padding: 22px;
}

.badge-row,
.chip-row,
.filter-row,
.strength-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.badge,
.chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-accent);
  background: rgba(255, 214, 10, 0.08);
  border: 1px solid rgba(255, 214, 10, 0.16);
}

.game-card:hover,
.news-card:hover,
.rank-card:hover,
.category-block:hover {
  color: var(--color-accent);
}

.game-card p,
.news-card p,
.rank-card p,
.category-block p {
  color: #dddddd;
}

.inline-link {
  color: var(--color-accent);
  text-decoration: underline;
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.quote-box {
  padding: 22px;
  background: rgba(255, 214, 10, 0.05);
  border-left: 4px solid var(--color-accent);
}

.offer-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.offer-item {
  padding: 22px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 4px;
  border-bottom: 3px solid var(--color-primary);
}

.offer-item strong {
  display: block;
  margin-bottom: 10px;
  font-size: 1.05rem;
  color: var(--color-accent);
}

.visual-stack {
  display: grid;
  gap: 16px;
}

.flare-card {
  min-height: 160px;
  border-radius: 4px;
  background:
    linear-gradient(135deg, rgba(255, 214, 10, 0.25), transparent 45%),
    linear-gradient(180deg, rgba(200, 75, 17, 0.28), rgba(28, 28, 28, 0.88)),
    linear-gradient(120deg, #2f2f2f, #171717);
  border: 1px solid rgba(255, 214, 10, 0.12);
  box-shadow: var(--shadow-strong);
}

.news-thumb {
  height: 180px;
  border-radius: 4px 4px 0 0;
  background:
    linear-gradient(135deg, rgba(255, 214, 10, 0.18), transparent 45%),
    linear-gradient(180deg, rgba(200, 75, 17, 0.56), rgba(28, 28, 28, 0.92)),
    linear-gradient(120deg, #2e2e2e, #1b1b1b);
}

.news-meta,
.rank-position {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-accent);
}

.news-card[data-category].is-hidden {
  display: none;
}

.news-card {
  scroll-margin-top: 110px;
}

.filter-row {
  margin: 0 0 24px;
}

.filter-button.is-active {
  background: var(--color-primary);
  color: var(--color-text);
  border-color: var(--color-primary);
}

.rank-list {
  display: grid;
  gap: 22px;
}

.rank-card {
  display: grid;
  grid-template-columns: minmax(0, 240px) minmax(0, 1fr);
  overflow: hidden;
}

.rank-position {
  font-family: var(--font-heading);
  font-size: 1.45rem;
}

.strength-list {
  margin: 14px 0 18px;
  padding: 0;
  list-style: none;
}

.faq-list {
  display: grid;
  gap: 16px;
}

.faq-question {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--color-text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  cursor: pointer;
}

.faq-question span:last-child {
  font-size: 1.8rem;
  color: var(--color-accent);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.is-open .faq-answer {
  margin-top: 16px;
}

.form-grid {
  display: grid;
  gap: 16px;
}

.form-grid.two-cols {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

label {
  display: grid;
  gap: 8px;
  font-weight: 700;
  color: #ececec;
}

input,
textarea {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--color-text);
  border-radius: 4px;
}

input:focus,
textarea:focus {
  outline: 1px solid var(--color-accent);
  border-color: var(--color-accent);
}

textarea {
  min-height: 160px;
  resize: vertical;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 14px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--color-accent);
}

.footer-top {
  padding: 54px 0 26px;
  background: #141414;
  border-top: 1px solid rgba(255, 214, 10, 0.1);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 24px;
}

.footer-brand {
  display: grid;
  gap: 12px;
}

.footer-links {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.footer-links a,
.footer-legal a {
  color: #d7d7d7;
}

.footer-links a:hover,
.footer-legal a:hover {
  color: var(--color-accent);
}

.footer-bottom {
  padding: 18px 0 96px;
  background: #101010;
  color: #cbcbcb;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 12px 0 0;
}

.legal-card ul,
.rank-card ul {
  margin: 0;
  padding-left: 18px;
}

.legal-card li {
  margin-bottom: 10px;
}

.centered {
  text-align: center;
}

.muted {
  color: var(--color-muted);
}

@media (max-width: 980px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-header .brand-name {
    display: none;
  }

  .brand {
    flex: 0 1 auto;
  }

  .header-inner {
    flex-wrap: nowrap;
    align-items: center;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 50;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 12px 14px;
    background: rgba(22, 22, 22, 0.98);
    border: 1px solid rgba(255, 214, 10, 0.14);
    border-radius: 12px;
    box-shadow: var(--shadow-strong);
  }

  .site-nav.is-open {
    display: flex;
  }

  .hero-grid,
  .split-section,
  .footer-grid,
  .cards-grid,
  .news-grid,
  .offer-grid,
  .category-grid,
  .rank-card,
  .mini-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 68px;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(var(--max-width), calc(100% - 16px));
  }

  .brand img,
  .footer-brand img {
    width: 44px;
    height: 44px;
  }

  h1 {
    font-size: clamp(2rem, 10vw, 2.75rem);
  }

  .cta-row .btn {
    width: 100%;
    max-width: 100%;
  }

  .form-grid.two-cols,
  .hero-stats {
    grid-template-columns: 1fr;
  }

  .section-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .rank-card img,
  .game-card img {
    height: 200px;
  }

  .policy-body table,
  .cookie-body table {
    display: block;
    overflow-x: auto;
    max-width: 100%;
  }

  #ck-banner > div button {
    flex: 1 1 calc(50% - 4px);
    min-width: 0;
  }
}
