:root {
  --color-bg: #f5f0e8;
  --color-surface: #fffdf7;
  --color-primary: #3d2b1f;
  --color-accent: #c9a84c;
  --color-text: #2c1810;
  --color-border: #d4c4a8;
  --color-muted: #6f5a49;
  --shadow-soft: 0 2px 12px rgba(61, 43, 31, 0.08);
  --radius-card: 6px;
  --container: 1180px;
  --font-heading: "Playfair Display", serif;
  --font-body: "Merriweather", serif;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background:
    radial-gradient(circle at 15% 18%, rgba(201, 168, 76, 0.1), transparent 34%),
    radial-gradient(circle at 82% 22%, rgba(61, 43, 31, 0.05), transparent 30%),
    radial-gradient(circle at 50% 100%, rgba(201, 168, 76, 0.08), transparent 35%),
    var(--color-bg);
  line-height: 1.7;
  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;
}

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

.page-shell {
  position: relative;
  overflow-x: clip;
  max-width: 100%;
}

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

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

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

.site-disclaimer {
  max-width: 100%;
  box-sizing: border-box;
  overflow-wrap: anywhere;
  word-break: break-word;
  padding-left: 12px !important;
  padding-right: 12px !important;
}

#ck-banner {
  box-sizing: border-box !important;
  max-width: 100% !important;
  width: 100% !important;
  flex-wrap: wrap !important;
  align-items: flex-start !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;
}

.page-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.16;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(61, 43, 31, 0.03) 0, rgba(61, 43, 31, 0.03) 1px, transparent 1px),
    radial-gradient(circle at 80% 10%, rgba(201, 168, 76, 0.05) 0, rgba(201, 168, 76, 0.05) 2px, transparent 2px);
  background-size: 22px 22px, 44px 44px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(245, 240, 232, 0.94);
  border-bottom: 1px solid rgba(212, 196, 168, 0.85);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 88px;
}

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

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.brand-text strong,
.footer-brand strong {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  letter-spacing: 0.04em;
}

.brand-text span {
  font-size: 0.85rem;
  color: var(--color-muted);
}

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

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

.menu-toggle {
  display: none;
  flex-shrink: 0;
  margin-left: auto;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-primary);
  border-radius: 999px;
  padding: 10px 14px;
  cursor: pointer;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 0.95rem;
  color: var(--color-primary);
  transition: background-color 0.25s ease, color 0.25s ease;
}

.site-nav a:hover,
.site-nav a.active {
  background: rgba(201, 168, 76, 0.18);
  color: var(--color-primary);
}

.hero {
  position: relative;
  padding: 88px 0 72px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 28px;
  align-items: stretch;
}

.hero-copy,
.hero-panel {
  background: rgba(255, 253, 247, 0.88);
  border: 1px solid rgba(212, 196, 168, 0.85);
  box-shadow: var(--shadow-soft);
  border-radius: var(--radius-card);
  position: relative;
}

.hero-copy {
  padding: 42px 42px 36px;
}

.hero-panel {
  padding: 24px;
  display: grid;
  gap: 18px;
}

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

.eyebrow::before {
  content: "";
  width: 38px;
  height: 1px;
  background: var(--color-accent);
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  line-height: 1.15;
  margin: 0 0 18px;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
}

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

h3 {
  font-size: clamp(1.2rem, 2vw, 1.6rem);
}

.hero p,
.intro-text,
.card p,
.page-intro p,
.faq-preview p,
.news-card p,
.legal-section p,
.category-section p,
.about-panel p,
.article-teaser p {
  margin: 0 0 16px;
}

.lead {
  font-size: 1.07rem;
  color: var(--color-muted);
  max-width: 56ch;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}

.btn,
.secondary-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}

.btn {
  background: var(--color-primary);
  color: #fffaf1;
  box-shadow: 0 10px 18px rgba(61, 43, 31, 0.16);
}

.btn:hover,
.secondary-btn:hover,
.ghost-btn:hover {
  transform: translateY(-2px);
}

.secondary-btn {
  background: transparent;
  color: var(--color-primary);
  border: 1px solid var(--color-border);
}

.ghost-btn {
  background: rgba(201, 168, 76, 0.14);
  color: var(--color-primary);
}

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

.stat-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 16px;
}

.stat-card strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.7rem;
  margin-bottom: 8px;
}

.editorial-note {
  padding: 20px;
  background: linear-gradient(145deg, rgba(201, 168, 76, 0.12), rgba(255, 253, 247, 0.96));
  border-radius: var(--radius-card);
  border: 1px solid var(--color-border);
}

.section {
  padding: 26px 0 64px;
}

.section-head,
.page-intro {
  margin-bottom: 28px;
}

.ornament {
  position: relative;
  margin: 18px 0 24px;
  height: 18px;
}

.ornament::before,
.ornament::after {
  content: "";
  position: absolute;
  top: 50%;
  width: calc(50% - 24px);
  height: 1px;
  background: linear-gradient(to right, transparent, var(--color-accent), transparent);
}

.ornament::before {
  left: 0;
}

.ornament::after {
  right: 0;
}

.ornament span {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: var(--color-accent);
  font-size: 1.25rem;
}

.grid {
  display: grid;
  gap: 22px;
}

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

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

.categories-grid,
.values-grid,
.contact-grid,
.legal-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card,
.news-card,
.faq-preview article,
.about-panel,
.category-card,
.ranking-card,
.legal-card,
.contact-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-soft);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.card:hover,
.news-card:hover,
.faq-preview article:hover,
.about-panel:hover,
.category-card:hover,
.ranking-card:hover,
.legal-card:hover,
.contact-card:hover {
  border-color: var(--color-accent);
  transform: translateY(-3px);
}

.card-image,
.news-image,
.ranking-image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(201, 168, 76, 0.4), rgba(61, 43, 31, 0.18));
}

.card-image img,
.ranking-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-body,
.news-body,
.ranking-body,
.legal-card,
.contact-card,
.about-panel,
.category-card,
.faq-preview article {
  padding: 24px;
}

.badge-row,
.meta-row,
.chip-row,
.strengths,
.footer-links,
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.badge,
.chip,
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(201, 168, 76, 0.16);
  color: var(--color-primary);
  border: 1px solid rgba(201, 168, 76, 0.32);
  font-size: 0.84rem;
}

.chip-link {
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.chip-link:hover {
  background: rgba(201, 168, 76, 0.24);
  border-color: var(--color-accent);
}

.ranking-list {
  display: grid;
  gap: 18px;
}

.ranking-card {
  display: grid;
  grid-template-columns: 280px 1fr;
}

.ranking-position {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 1;
  background: var(--color-primary);
  color: #fffaf1;
  border-radius: 999px;
  padding: 10px 16px;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  box-shadow: 0 8px 16px rgba(61, 43, 31, 0.2);
}

.ranking-visual {
  position: relative;
}

.strengths {
  padding: 0;
  margin: 18px 0 20px;
  list-style: none;
}

.strengths li {
  width: 100%;
}

.strengths li::before {
  content: "✓";
  color: var(--color-accent);
  font-weight: 700;
  margin-right: 10px;
}

.split-section {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 24px;
  align-items: start;
}

.drop-cap::first-letter {
  float: left;
  font-family: var(--font-heading);
  font-size: 3.4rem;
  line-height: 0.8;
  padding-right: 10px;
  color: var(--color-accent);
}

.mini-list {
  margin: 0;
  padding-left: 20px;
}

.mini-list li {
  margin-bottom: 10px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.filter-btn {
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-primary);
  border-radius: 999px;
  padding: 10px 16px;
  cursor: pointer;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.filter-btn.active,
.filter-btn:hover {
  background: rgba(201, 168, 76, 0.2);
  border-color: var(--color-accent);
}

.news-image {
  display: grid;
  place-items: center;
  position: relative;
  min-height: 220px;
}

.news-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(61, 43, 31, 0.78), rgba(201, 168, 76, 0.52)),
    radial-gradient(circle at 22% 20%, rgba(255, 253, 247, 0.4), transparent 24%);
}

.news-image span {
  position: relative;
  z-index: 1;
  font-family: var(--font-heading);
  color: #fffaf1;
  font-size: 1.35rem;
  text-align: center;
  padding: 0 18px;
}

.news-extra {
  display: none;
  color: var(--color-muted);
}

.news-card.expanded .news-extra {
  display: block;
}

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

.faq-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

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

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

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

.faq-answer-inner {
  padding: 0 22px 22px;
  color: var(--color-muted);
}

.newsletter-box,
.contact-card,
.legal-card,
.about-panel,
.category-card {
  position: relative;
}

.newsletter-box {
  padding: 28px;
  background: linear-gradient(155deg, rgba(255, 253, 247, 0.98), rgba(201, 168, 76, 0.12));
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
}

form {
  display: grid;
  gap: 14px;
}

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

label {
  display: grid;
  gap: 8px;
  font-size: 0.95rem;
  color: var(--color-primary);
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  background: rgba(255, 253, 247, 0.92);
  color: var(--color-text);
  padding: 14px 15px;
}

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

input:focus,
textarea:focus {
  outline: 2px solid rgba(201, 168, 76, 0.28);
  border-color: var(--color-accent);
}

.helper-text,
.meta {
  color: var(--color-muted);
  font-size: 0.92rem;
}

.icon-points {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 16px;
}

.icon-points li {
  padding: 18px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  background: rgba(255, 253, 247, 0.8);
}

.icon-points strong {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-heading);
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-surface);
}

th,
td {
  padding: 14px;
  border: 1px solid var(--color-border);
  text-align: left;
  vertical-align: top;
}

th {
  background: rgba(201, 168, 76, 0.12);
  color: var(--color-primary);
}

.site-footer {
  margin-top: 0;
  padding: 44px 0 34px;
  background: #efe6d7;
  border-top: 1px solid var(--color-border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: start;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 16px;
}

.footer-links a,
.footer-legal a {
  color: var(--color-primary);
  padding: 4px 0;
}

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

.footer-copy {
  margin-top: 18px;
  color: var(--color-muted);
}

.note-box,
.criteria-box,
.guide-box {
  padding: 24px;
  background: rgba(255, 253, 247, 0.82);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
}

.hidden {
  display: none !important;
}

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

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

  .brand {
    flex: 0 1 auto;
  }

  .header-inner {
    flex-wrap: nowrap;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: rgba(255, 253, 247, 0.98);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    box-shadow: var(--shadow-soft);
    padding: 12px;
    display: none;
    z-index: 60;
  }

  .site-nav.open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
  }

  .site-nav a {
    border-radius: 10px;
  }
}

@media (max-width: 1024px) {
  .hero-grid,
  .split-section,
  .footer-grid,
  .contact-grid,
  .legal-grid,
  .categories-grid {
    grid-template-columns: 1fr;
  }

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

  .ranking-card {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding: 34px 30px 30px;
  }
}

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

  .header-inner {
    min-height: 72px;
    padding: 8px 0;
  }

  .hero,
  .section {
    padding-top: 32px;
    padding-bottom: 48px;
  }

  h1 {
    font-size: clamp(1.85rem, 9vw, 2.4rem);
  }

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

  .hero-stats,
  .games-grid,
  .news-grid,
  .form-row {
    grid-template-columns: 1fr;
  }

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

  .hero-copy,
  .hero-panel,
  .card-body,
  .news-body,
  .ranking-body,
  .about-panel,
  .category-card,
  .legal-card,
  .contact-card,
  .faq-preview article,
  .newsletter-box {
    padding: 18px;
  }

  .table-wrap {
    max-width: 100%;
  }

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