:root {
  --color-bg: #0d1b2a;
  --color-surface: #112233;
  --color-primary: #1a4a7a;
  --color-accent: #e2b96f;
  --color-text: #f0e6d2;
  --color-muted: #c3b79d;
  --color-border: rgba(226, 185, 111, 0.2);
  --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.5);
  --radius: 8px;
  --max-width: 1180px;
  --font-heading: "Cinzel", serif;
  --font-body: "Lato", sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(13, 27, 42, 0.95), rgba(13, 27, 42, 1)),
    radial-gradient(circle at top right, rgba(226, 185, 111, 0.08), transparent 34%),
    radial-gradient(circle at 10% 20%, rgba(26, 74, 122, 0.28), transparent 30%),
    var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
  max-width: 100%;
}

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

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.02) 25%, transparent 25%) -12px 0 / 24px 24px,
    linear-gradient(225deg, rgba(255, 255, 255, 0.02) 25%, transparent 25%) -12px 0 / 24px 24px,
    linear-gradient(315deg, rgba(255, 255, 255, 0.015) 25%, transparent 25%) 0 0 / 24px 24px,
    linear-gradient(45deg, rgba(255, 255, 255, 0.015) 25%, transparent 25%) 0 0 / 24px 24px;
  opacity: 0.15;
}

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

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

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

.site-shell {
  position: relative;
  z-index: 1;
  overflow-x: clip;
  max-width: 100%;
}

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

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

.section {
  padding: 72px 0;
}

.section-tight {
  padding: 44px 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--color-accent);
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow::before,
.eyebrow::after {
  content: "";
  width: 24px;
  height: 1px;
  background: currentColor;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 18px;
  font-family: var(--font-heading);
  line-height: 1.2;
  overflow-wrap: anywhere;
  word-break: break-word;
  max-width: 100%;
}

h1 {
  font-size: clamp(2.6rem, 5vw, 4.6rem);
}

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

h3 {
  font-size: 1.4rem;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(226, 185, 111, 0.1);
  backdrop-filter: blur(14px);
  background: rgba(13, 27, 42, 0.88);
}

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

.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: 10px;
  background: rgba(17, 34, 51, 0.85);
  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;
}

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

.brand-copy {
  min-width: 0;
}

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

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

.brand-copy strong,
.footer-brand strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  letter-spacing: 0.04em;
}

.brand-copy span,
.footer-brand span {
  color: var(--color-muted);
  font-size: 0.9rem;
}

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

.site-nav a,
.footer-links a,
.legal-links a {
  position: relative;
  padding: 8px 10px;
  border-radius: 999px;
  color: var(--color-text);
  transition: color 0.25s ease, background-color 0.25s ease;
}

.site-nav a.active,
.site-nav a:hover,
.footer-links a:hover,
.legal-links a:hover {
  background: rgba(226, 185, 111, 0.12);
  color: var(--color-accent);
}

.hero {
  padding: 86px 0 72px;
}

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

.hero-copy p {
  max-width: 62ch;
  font-size: 1.05rem;
}

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

.btn,
.secondary-btn,
.news-filter button,
.submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  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;
  cursor: pointer;
}

.btn,
.submit-btn {
  background: linear-gradient(135deg, var(--color-accent), #f3d49a);
  color: #182635;
  border: none;
  box-shadow: 0 10px 24px rgba(226, 185, 111, 0.18);
}

.secondary-btn,
.news-filter button {
  background: transparent;
  color: var(--color-text);
  border: 1px solid rgba(226, 185, 111, 0.4);
}

.btn:hover,
.secondary-btn:hover,
.news-filter button:hover,
.submit-btn:hover {
  transform: translateY(-2px);
}

.hero-panel,
.card,
.news-card,
.faq-item,
.category-block,
.policy-card,
.contact-card,
.rank-card,
.guide-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(17, 34, 51, 0.96), rgba(11, 24, 37, 0.96));
  border: 1px solid rgba(226, 185, 111, 0.12);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.hero-panel {
  padding: 26px;
}

.hero-panel::before,
.category-block::before,
.policy-card::before,
.contact-card::before,
.rank-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(226, 185, 111, 0.12), transparent 36%);
  pointer-events: none;
}

.compass {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: 50%;
  margin: 0 auto 24px;
  width: min(100%, 340px);
  background:
    radial-gradient(circle, rgba(226, 185, 111, 0.16), transparent 45%),
    linear-gradient(180deg, rgba(26, 74, 122, 0.35), rgba(13, 27, 42, 0.1));
  border: 1px solid rgba(226, 185, 111, 0.35);
}

.compass-rose {
  position: relative;
  width: 72%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(226, 185, 111, 0.36);
}

.compass-rose::before,
.compass-rose::after {
  content: "";
  position: absolute;
  inset: 50%;
  width: 2px;
  height: 100%;
  background: linear-gradient(180deg, transparent, var(--color-accent), transparent);
  transform: translate(-50%, -50%);
}

.compass-rose::after {
  width: 100%;
  height: 2px;
}

.compass-rose span {
  position: absolute;
  inset: 12%;
  border: 1px dashed rgba(226, 185, 111, 0.18);
  transform: rotate(45deg);
}

.stat-grid,
.games-grid,
.news-grid,
.rank-grid,
.category-grid,
.feature-list,
.offers-grid,
.faq-preview-grid,
.guide-grid,
.preview-grid {
  display: grid;
  gap: 22px;
}

.stat-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 28px;
}

.stat-card {
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid rgba(226, 185, 111, 0.12);
  background: rgba(10, 22, 35, 0.72);
}

.stat-card strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.8rem;
  margin-bottom: 6px;
  color: var(--color-accent);
}

.games-grid,
.news-grid,
.category-grid,
.offers-grid,
.faq-preview-grid,
.preview-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card,
.news-card,
.contact-card,
.guide-card,
.policy-card,
.rank-card {
  height: 100%;
}

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

.card-media,
.rank-media,
.category-game img {
  height: 220px;
  overflow: hidden;
}

.card-media img,
.rank-media img,
.category-game img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-body,
.news-body,
.contact-body,
.policy-body,
.rank-body,
.guide-body {
  padding: 24px;
}

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

.badge,
.chip,
.news-tag,
.rank-number,
.mini-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(226, 185, 111, 0.3);
  background: rgba(226, 185, 111, 0.08);
  color: var(--color-accent);
  font-size: 0.86rem;
  font-weight: 700;
}

.chip-row {
  margin-top: 20px;
}

.chip {
  color: var(--color-text);
}

.chip:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.tick-list {
  padding: 0;
  margin: 18px 0 24px;
  list-style: none;
  flex-direction: column;
}

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

.split-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}

.frame {
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid rgba(226, 185, 111, 0.16);
  background: rgba(10, 22, 35, 0.76);
  box-shadow: var(--shadow-soft);
}

.quote-line {
  padding-left: 18px;
  border-left: 3px solid var(--color-accent);
}

.news-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 26px;
}

.news-filter button.active {
  background: rgba(226, 185, 111, 0.16);
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.news-image {
  position: relative;
  height: 160px;
  background:
    linear-gradient(145deg, rgba(26, 74, 122, 0.9), rgba(13, 27, 42, 0.9)),
    radial-gradient(circle at 20% 30%, rgba(226, 185, 111, 0.35), transparent 30%);
}

.news-image::after {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: calc(var(--radius) - 2px);
  border: 1px solid rgba(226, 185, 111, 0.28);
}

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

.rank-grid {
  gap: 24px;
}

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

.rank-media {
  height: 100%;
}

.rank-number {
  min-width: 70px;
  background: linear-gradient(135deg, rgba(226, 185, 111, 0.18), rgba(226, 185, 111, 0.05));
}

.category-block {
  padding: 30px;
}

.category-games {
  display: grid;
  gap: 18px;
  margin-top: 22px;
}

.category-game {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid rgba(226, 185, 111, 0.12);
  background: rgba(9, 19, 30, 0.82);
  box-shadow: var(--shadow-soft);
}

.category-game img {
  height: 100%;
}

.category-game-body {
  padding: 18px 18px 18px 0;
}

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

.faq-item button {
  width: 100%;
  padding: 22px 26px;
  color: var(--color-text);
  font: inherit;
  text-align: left;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  cursor: pointer;
}

.faq-item button span {
  font-family: var(--font-heading);
  font-size: 1.05rem;
}

.faq-item button strong {
  color: var(--color-accent);
  font-size: 1.4rem;
  transition: transform 0.25s ease;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 26px;
  transition: max-height 0.32s ease, padding-bottom 0.32s ease;
}

.faq-item.open .faq-answer {
  max-height: 260px;
  padding-bottom: 24px;
}

.faq-item.open button strong {
  transform: rotate(45deg);
}

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

.newsletter-inline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
}

label {
  display: block;
  margin-bottom: 8px;
  color: var(--color-muted);
  font-size: 0.95rem;
}

input,
textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 1px solid rgba(226, 185, 111, 0.18);
  background: rgba(8, 18, 29, 0.82);
  color: var(--color-text);
  font: inherit;
}

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

input:focus,
textarea:focus {
  outline: 2px solid rgba(226, 185, 111, 0.35);
  border-color: var(--color-accent);
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 18px;
}

th,
td {
  padding: 14px 16px;
  border: 1px solid rgba(226, 185, 111, 0.18);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--color-accent);
  font-family: var(--font-heading);
  background: rgba(10, 22, 35, 0.85);
}

.notice-strip {
  background: rgba(0, 0, 0, 0.85);
  border-top: 2px solid var(--color-accent);
  padding: 10px 20px;
  font-size: 11px;
  color: #bbb;
  line-height: 1.6;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.site-footer {
  padding: 42px 0 28px;
  border-top: 1px solid rgba(226, 185, 111, 0.1);
  background: rgba(8, 16, 24, 0.72);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

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

.page-hero {
  padding: 72px 0 28px;
}

.page-hero p {
  max-width: 72ch;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--color-muted);
  font-size: 0.92rem;
}

.breadcrumb a:hover {
  color: var(--color-accent);
}

#ck-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9998;
  background: #1a1a2e;
  color: #eee;
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.5);
}

#ck-banner a {
  color: #66b2ff;
  text-decoration: underline;
}

#ck-banner {
  box-sizing: border-box !important;
  max-width: 100% !important;
  width: 100% !important;
}

#ck-banner span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.cookie-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 1;
  flex-wrap: wrap;
}

.cookie-actions button {
  border-radius: 4px;
  cursor: pointer;
}

.cookie-actions .accept {
  background: #0f3460;
  color: #fff;
  border: none;
  padding: 8px 18px;
  font-weight: 700;
}

.cookie-actions .reject {
  background: transparent;
  color: #eee;
  border: 1px solid #555;
  padding: 8px 14px;
}

.hidden-mobile {
  display: inline;
}

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

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

  .brand {
    flex: 0 1 auto;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 40;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 12px 14px 14px;
    background: rgba(13, 27, 42, 0.98);
    border: 1px solid rgba(226, 185, 111, 0.12);
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
  }

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

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

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

  .rank-media {
    height: 280px;
  }
}

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

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

  .header-inner {
    flex-direction: row;
    flex-wrap: nowrap;
    padding: 12px 0;
  }

  .section {
    padding: 48px 0;
  }

  .hero {
    padding: 48px 0 40px;
  }

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

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

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

  .policy-panel,
  .legal-panel {
    overflow-x: auto;
  }

  table {
    display: block;
    overflow-x: auto;
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
  }

  th,
  td {
    word-break: break-word;
  }

  .games-grid,
  .news-grid,
  .category-grid,
  .offers-grid,
  .faq-preview-grid,
  .preview-grid,
  .stat-grid,
  .category-games {
    grid-template-columns: 1fr;
  }

  .newsletter-inline {
    grid-template-columns: 1fr;
  }

  .category-game {
    grid-template-columns: 1fr;
  }

  .category-game-body {
    padding: 0 18px 18px;
  }

  .card-media,
  .rank-media {
    height: 210px;
  }

  #ck-banner {
    flex-direction: column;
    align-items: flex-start;
  }

  .cookie-actions {
    width: 100%;
  }

  .cookie-actions button {
    flex: 1 1 0;
  }

  .hidden-mobile {
    display: none;
  }
}
