:root {
  --primary: #1e1b4b;
  --primary-mid: #312e81;
  --accent: #34d399;
  --accent-dark: #059669;
  --amber: #f59e0b;
  --amber-dark: #d97706;
  --bg: #f5f3ff;
  --bg-card: #ffffff;
  --text: #1e1b4b;
  --text-muted: #5b5675;
  --border: rgba(30, 27, 75, 0.12);
  --border-accent: rgba(52, 211, 153, 0.45);
  --shadow: 0 10px 36px rgba(30, 27, 75, 0.09);
  --radius: 14px;
  --sidebar-w: 280px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 1rem;
}

body.has-mobile-cta {
  padding-bottom: calc(72px + env(safe-area-inset-bottom));
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1140px, calc(100% - 2rem));
  margin-inline: auto;
}

/* Update bar */
.update-bar {
  background: var(--primary);
  color: rgba(255, 255, 255, 0.88);
  text-align: center;
  font-size: 0.8125rem;
  padding: 0.5rem 1rem;
}

.update-bar strong {
  color: var(--accent);
}

/* Header */
.header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 0;
  min-height: 60px;
}

.logo {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--primary);
  flex-shrink: 0;
}

.logo em {
  color: var(--accent);
  font-style: normal;
}

.nav-toggle {
  display: none;
}

.nav-toggle-label {
  display: none;
}

.nav {
  margin-left: auto;
}

.nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

.nav__list a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.2s;
}

.nav__list a:hover,
.nav__list a[aria-current="page"] {
  color: var(--primary);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.7rem 1.25rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 4px 14px rgba(52, 211, 153, 0.35);
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(52, 211, 153, 0.45);
}

.btn--header {
  flex-shrink: 0;
  padding: 0.55rem 1rem;
  font-size: 0.8125rem;
}

/* Hero */
.hero {
  background:
    linear-gradient(135deg, rgba(30, 27, 75, 0.92), rgba(49, 46, 129, 0.85)),
    url("images/hero.webp") center / cover no-repeat;
  color: #fff;
  padding: 2.5rem 0 3rem;
}

.hero__badge {
  display: inline-block;
  background: rgba(52, 211, 153, 0.2);
  border: 1px solid rgba(52, 211, 153, 0.5);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.5rem, 5vw, 2.25rem);
  font-weight: 800;
  line-height: 1.2;
}

.hero__lead {
  margin: 0;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.88);
  max-width: 640px;
}

/* Trust bar */
.trust-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.5rem;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 1rem;
}

.trust-bar__item {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.trust-bar__icon {
  font-size: 1rem;
}

/* Casinos section */
.casinos {
  padding: 2rem 0 2.5rem;
}

.casinos__heading {
  margin: 0 0 1.5rem;
  font-size: clamp(1.2rem, 4vw, 1.6rem);
  font-weight: 800;
  text-align: center;
}

.casino-layout {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Sidebar */
.casino-sidebar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.casino-sidebar__title {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  font-weight: 800;
  color: var(--primary);
}

.casino-sidebar__criteria {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}

.casino-sidebar__criteria li {
  font-size: 0.8125rem;
  color: var(--text-muted);
  padding: 0.35rem 0 0.35rem 1.25rem;
  position: relative;
}

.casino-sidebar__criteria li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.casino-sidebar__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.casino-sidebar__nav a {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.6rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-muted);
  transition: all 0.2s;
}

.casino-sidebar__nav a:hover {
  border-color: var(--accent);
  color: var(--primary);
}

.casino-sidebar .btn {
  width: 100%;
  font-size: 0.8125rem;
}

/* Mobile criteria strip */
.casino-sidebar__strip {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.casino-sidebar__strip::-webkit-scrollbar {
  display: none;
}

.casino-sidebar__chip {
  flex-shrink: 0;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.35rem 0.65rem;
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid var(--border-accent);
  border-radius: 999px;
  color: var(--primary);
  white-space: nowrap;
}

.casino-sidebar__desktop-only {
  display: none;
}

/* Rank cards */
.casino-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1;
  min-width: 0;
}

.rank-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.rank-card:hover {
  border-color: var(--border-accent);
  box-shadow: 0 14px 40px rgba(30, 27, 75, 0.12);
}

.rank-card--top {
  border-left: 4px solid var(--accent);
}

.rank-card__ribbon {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: linear-gradient(135deg, var(--amber), var(--amber-dark));
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.25rem 0.55rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.rank-card__head {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.rank-card__rank {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  font-size: 0.9rem;
  border-radius: 8px;
}

.rank-card--top .rank-card__rank {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
}

.rank-card__logo {
  flex-shrink: 0;
  width: 110px;
  height: 110px;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid var(--border);
  transition: border-color 0.2s;
}

.rank-card__logo:hover {
  border-color: var(--accent);
}

.rank-card__logo img {
  width: 110px;
  height: 110px;
  object-fit: cover;
}

.rank-card__meta {
  flex: 1;
  min-width: 0;
}

.rank-card__meta h2 {
  margin: 0 0 0.25rem;
  font-size: 1.15rem;
  font-weight: 800;
}

.rank-card__rating {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--amber);
  margin-bottom: 0.5rem;
}

.rank-card__stars {
  color: var(--amber);
}

.rank-card__perks {
  list-style: none;
  margin: 0;
  padding: 0;
}

.rank-card__perks li {
  font-size: 0.8125rem;
  color: var(--text-muted);
  padding: 0.2rem 0 0.2rem 1rem;
  position: relative;
}

.rank-card__perks li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.rank-card__footer {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.rank-card__bonus-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 0.15rem;
}

.rank-card__bonus-value {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary);
}

.rank-card__footer .btn {
  width: 100%;
}

/* SEO */
.seo {
  padding: 2rem 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
}

.seo h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.1rem, 3.5vw, 1.45rem);
  font-weight: 800;
}

.seo__text p {
  margin: 0 0 1rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.seo__text p:last-child {
  margin-bottom: 0;
}

/* FAQ */
.faq {
  padding: 2rem 0;
}

.faq h2 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.1rem, 3.5vw, 1.45rem);
  font-weight: 800;
}

.faq__lead {
  margin: 0 0 1.25rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.faq__list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq__item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq__item h3 {
  margin: 0;
  padding: 1rem 2.5rem 1rem 1rem;
  font-size: 0.9375rem;
  font-weight: 700;
  cursor: pointer;
  position: relative;
  user-select: none;
}

.faq__item h3::after {
  content: "+";
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.25rem;
  color: var(--accent);
  font-weight: 400;
  transition: transform 0.2s;
}

.faq__item.is-open h3::after {
  content: "−";
}

.faq__item p {
  margin: 0;
  padding: 0 1rem 1rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  display: none;
}

.faq__item.is-open p {
  display: block;
}

.faq__more {
  display: inline-block;
  margin-top: 1.25rem;
  font-weight: 700;
  color: var(--accent-dark);
  font-size: 0.9rem;
}

.faq__more:hover {
  text-decoration: underline;
}

/* Responsible */
.responsible {
  padding: 2rem 0;
  background: var(--primary);
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
}

.responsible__badge {
  display: inline-block;
  background: var(--amber);
  color: var(--primary);
  font-weight: 800;
  font-size: 0.875rem;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  margin-bottom: 0.75rem;
}

.responsible h2 {
  margin: 0 0 0.75rem;
  font-size: 1.2rem;
  font-weight: 800;
}

.responsible p {
  margin: 0 0 0.5rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
}

.responsible__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 0.75rem;
}

.responsible__links a {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.875rem;
}

.responsible__links a:hover {
  text-decoration: underline;
}

/* Footer */
.footer {
  background: #14112e;
  color: rgba(255, 255, 255, 0.75);
  padding: 2rem 0;
  text-align: center;
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 1.5rem;
  margin-bottom: 1rem;
}

.footer__nav a {
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}

.footer__nav a:hover {
  color: var(--accent);
}

.footer__domain {
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.25rem;
  font-size: 0.9rem;
}

.footer__copy,
.footer__disclaimer,
.footer__age {
  margin: 0.35rem 0;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.55);
}

.footer__age a {
  color: var(--accent);
}

/* Mobile CTA */
.mobile-cta-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
  background: rgba(30, 27, 75, 0.97);
  border-top: 1px solid rgba(52, 211, 153, 0.3);
  backdrop-filter: blur(8px);
}

.mobile-cta-bar .btn {
  width: 100%;
  font-size: 0.9rem;
}

/* Page subpages */
.page-hero {
  background: linear-gradient(135deg, var(--primary), var(--primary-mid));
  color: #fff;
  padding: 2rem 0;
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(1.35rem, 4vw, 1.85rem);
  font-weight: 800;
}

.page-content {
  padding: 2rem 0 2.5rem;
}

.page-content h2 {
  margin: 1.5rem 0 0.75rem;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary);
}

.page-content h2:first-child {
  margin-top: 0;
}

.page-content p,
.page-content li {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.page-content ul {
  padding-left: 1.25rem;
}

.page-content a {
  color: var(--accent-dark);
  font-weight: 600;
}

.page-content a:hover {
  text-decoration: underline;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 480px;
  margin-top: 1rem;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
}

.contact-form input,
.contact-form textarea {
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.9rem;
  background: var(--bg-card);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

/* Responsive */
@media (max-width: 899px) {
  .header__inner {
    flex-wrap: wrap;
  }

  .nav-toggle-label {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 2rem;
    height: 2rem;
    cursor: pointer;
    margin-left: auto;
    order: 2;
  }

  .nav-toggle-label span {
    display: block;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transition: transform 0.2s;
  }

  .btn--header {
    order: 3;
    width: 100%;
    margin-top: 0.25rem;
  }

  .nav {
    order: 4;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s;
  }

  .nav-toggle:checked ~ .nav {
    max-height: 200px;
  }

  .nav-toggle:checked ~ .nav-toggle-label span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle:checked ~ .nav-toggle-label span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle:checked ~ .nav-toggle-label span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .nav__list {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.75rem 0;
    gap: 0.75rem;
  }

  .rank-card__head {
    flex-wrap: wrap;
  }

  .rank-card__ribbon {
    position: static;
    display: inline-block;
    margin-bottom: 0.5rem;
    order: -1;
    width: 100%;
    text-align: center;
  }
}

@media (min-width: 600px) {
  .rank-card__footer {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .rank-card__footer .btn {
    width: auto;
    min-width: 160px;
  }
}

@media (min-width: 900px) {
  .casino-layout {
    flex-direction: row;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .casino-sidebar {
    width: var(--sidebar-w);
    flex-shrink: 0;
    position: sticky;
    top: 76px;
  }

  .casino-sidebar__strip {
    display: none;
  }

  .casino-sidebar__desktop-only {
    display: block;
  }

  .nav-toggle-label {
    display: none;
  }

  .btn--header {
    order: unset;
    width: auto;
    margin-top: 0;
  }
}

@media (min-width: 1100px) {
  .rank-card__head {
    align-items: center;
  }

  .rank-card__perks {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 1rem;
  }
}
