:root {
  --bg-primary: #111318;
  --bg-secondary: #1a1d24;
  --bg-card: #22262f;
  --accent: #3b82f6;
  --accent-hover: #2563eb;
  --text-primary: #f1f5f9;
  --text-muted: #94a3b8;
  --border: #2d3340;
  --badge: #1d4ed8;
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
  --shadow-soft: 0 18px 40px rgb(0 0 0 / 0.28);
  --shadow-card: 0 10px 24px rgb(0 0 0 / 0.22);
  --shadow-hover: 0 6px 20px rgb(0 0 0 / 0.35);
  --overlay: rgb(0 0 0 / 0.72);
  --container: 1200px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: "Outfit", sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

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

a {
  color: var(--accent);
  text-decoration: none;
}

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

h1,
h2,
h3 {
  margin: 0 0 0.75rem;
  font-weight: 800;
  line-height: 1.2;
}

p {
  margin: 0 0 1rem;
}

ul,
ol {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.container {
  width: min(100%, var(--container));
  margin: 0 auto;
  padding: 0 24px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgb(26 29 36 / 0.96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 78px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text-primary);
  font-weight: 800;
  letter-spacing: 0.01em;
}

.brand:hover {
  color: var(--text-primary);
}

.brand-logo {
  width: auto;
  height: 36px;
}

.brand-text {
  font-size: 1.1rem;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--bg-card);
  color: var(--text-primary);
  cursor: pointer;
}

.nav-toggle-line {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--text-primary);
  position: relative;
}

.nav-toggle-line::before,
.nav-toggle-line::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--text-primary);
}

.nav-toggle-line::before {
  top: -6px;
}

.nav-toggle-line::after {
  top: 6px;
}

.site-nav {
  position: absolute;
  inset: calc(100% + 1px) 24px auto;
  display: none;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

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

.site-nav a {
  color: var(--text-primary);
  font-weight: 600;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--accent);
}

.compliance-bar {
  padding: 6px 12px;
  background: var(--bg-primary);
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 13px;
}

.compliance-bar a {
  color: var(--accent);
  font-weight: 600;
}

.hero {
  padding: 72px 0 48px;
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.hero-inner {
  max-width: 760px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
}

.hero p {
  max-width: 640px;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.trust-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 1.5rem;
}

.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 14px;
}

.section {
  padding: 72px 0;
}

.section-header {
  margin-bottom: 28px;
}

.section-header p {
  max-width: 760px;
  color: var(--text-muted);
}

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

.operator-card {
  position: relative;
  display: grid;
  gap: 18px;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.operator-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--badge);
  color: var(--text-primary);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.operator-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--text-primary);
  font-weight: 800;
  font-size: 1.15rem;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.12);
}

.operator-logo-box {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 86px;
  padding: 18px;
  background: rgb(17 19 24 / 0.75);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.operator-logo {
  max-height: 42px;
  width: auto;
  object-fit: contain;
}

.operator-main h3 {
  margin-bottom: 0.35rem;
  color: var(--accent);
  font-size: 1.35rem;
}

.operator-categories,
.operator-disclaimer {
  color: var(--text-muted);
}

.operator-rating {
  display: grid;
  gap: 4px;
  align-content: center;
}

.operator-stars {
  color: var(--warning);
  letter-spacing: 0.16em;
  font-size: 1.05rem;
}

.operator-score {
  font-size: 1.5rem;
  font-weight: 800;
}

.btn-visit,
.btn-secondary,
.age-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: var(--text-primary);
  font-weight: 800;
  cursor: pointer;
  text-align: center;
}

.btn-visit:hover,
.btn-secondary:hover,
.age-action:hover {
  color: var(--text-primary);
}

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

.games-grid,
.content-grid,
.contact-grid,
.help-grid {
  display: grid;
  gap: 18px;
}

.game-card,
.content-card,
.contact-card,
.faq-item,
.help-card,
.legal-card,
.cookie-banner,
.age-modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.game-card,
.content-card,
.contact-card,
.help-card,
.legal-card {
  padding: 24px;
}

.game-card p,
.content-card p,
.contact-card p,
.help-card p,
.legal-card p,
.legal-card li {
  color: var(--text-muted);
}

.game-card h3,
.content-card h2,
.contact-card h2,
.help-card h3,
.legal-card h2 {
  margin-bottom: 0.65rem;
}

.content-lead {
  max-width: 820px;
  color: var(--text-muted);
}

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

.faq-item {
  overflow: hidden;
}

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

.faq-question-text {
  flex: 1;
}

.faq-icon {
  font-size: 1.4rem;
  color: var(--accent);
}

.faq-answer {
  display: none;
  padding: 0 22px 20px;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

.faq-item.is-open .faq-answer {
  display: block;
}

.faq-item.is-open .faq-icon {
  transform: rotate(180deg);
}

.contact-details {
  display: grid;
  gap: 12px;
}

.contact-label {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.contact-value {
  font-size: 1.1rem;
  font-weight: 600;
}

.decorative-form {
  display: grid;
  gap: 14px;
}

.field-label {
  display: grid;
  gap: 8px;
  color: var(--text-primary);
  font-weight: 600;
}

.field-label input,
.field-label textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-secondary);
  color: var(--text-primary);
  font: inherit;
}

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

.notice-box {
  padding: 16px 18px;
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-md);
  background: rgb(59 130 246 / 0.12);
  color: var(--text-primary);
}

.steps-list li + li,
.plain-list li + li {
  margin-top: 0.65rem;
}

.help-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.help-logo {
  width: auto;
  height: 36px;
  object-fit: contain;
}

.help-logo-sm {
  width: auto;
  height: 28px;
  object-fit: contain;
}

.text-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-weight: 800;
  font-size: 0.84rem;
}

.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  margin-top: 72px;
}

.footer-grid {
  padding: 40px 0 16px;
  display: grid;
  gap: 24px;
}

.footer-nav,
.footer-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
  align-items: center;
  justify-content: center;
}

.footer-nav a {
  color: var(--text-primary);
  font-weight: 600;
}

.footer-logo-link,
.footer-logo-static {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
}

.footer-logo-link img,
.footer-logo-static img {
  height: 36px;
  width: auto;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.7;
  transition: filter 0.2s ease, opacity 0.2s ease;
}

.footer-logo-link:hover img,
.footer-logo-static:hover img {
  filter: none;
  opacity: 1;
}

.footer-logo-link:hover .text-badge,
.footer-logo-static:hover .text-badge {
  border-color: var(--accent);
  color: var(--accent);
}

.footer-warning {
  padding: 12px 0;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 13px;
  text-align: center;
}

.footer-bottom {
  padding: 0 0 32px;
  color: var(--text-muted);
  text-align: center;
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--overlay);
}

.overlay.is-visible {
  display: flex;
}

.age-modal {
  width: min(100%, 440px);
  padding: 28px;
  text-align: center;
}

.age-logo {
  width: auto;
  height: 54px;
  margin: 0 auto 18px;
}

.age-actions {
  display: grid;
  gap: 12px;
  margin: 22px 0 16px;
}

.age-action.secondary {
  background: transparent;
  border: 1px solid var(--border);
}

.age-help {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 90;
  display: none;
  padding: 18px;
}

.cookie-banner.is-visible {
  display: block;
}

.cookie-inner {
  display: grid;
  gap: 14px;
}

.cookie-inner p {
  margin: 0;
  color: var(--text-muted);
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.page-hero {
  padding: 72px 0 24px;
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.page-hero p {
  max-width: 760px;
  color: var(--text-muted);
}

.legal-grid {
  display: grid;
  gap: 18px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

@media (min-width: 768px) {
  .site-nav {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 18px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .nav-toggle {
    display: none;
  }

  .operator-card {
    grid-template-columns: auto minmax(180px, 220px) minmax(0, 1fr) auto auto;
    align-items: center;
  }

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

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

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

  .cookie-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }
}

@media (min-width: 1024px) {
  .games-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .content-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  }

  .contact-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  }

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