:root {
  --bg: #0b1120;
  --bg-raised: #121a2b;
  --surface: #172236;
  --surface-2: #1e2c44;
  --line: rgba(214, 226, 245, 0.12);
  --text: #e8eef8;
  --muted: #9aabc4;
  --accent: #7ee0c6;
  --accent-deep: #143f38;
  --gold: #f3c56b;
  --cta: #f4c15a;
  --cta-text: #1c1406;
  --danger: #ffb4b4;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  --radius: 18px;
  --header: 76px;
  --font: "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(126, 224, 198, 0.16), transparent 55%),
    radial-gradient(900px 420px at 100% 0%, rgba(243, 197, 107, 0.12), transparent 50%),
    var(--bg);
  line-height: 1.55;
}

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

a {
  color: inherit;
}

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

.wrap {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--header);
  backdrop-filter: blur(16px);
  background: rgba(11, 17, 32, 0.82);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  height: 100%;
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  margin-right: auto;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(160deg, var(--accent), #2f6f8f);
  color: #06221c;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-size: 0.98rem;
}

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

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  cursor: pointer;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 18px;
  height: 2px;
  margin-inline: auto;
  background: var(--text);
  border-radius: 2px;
  position: relative;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

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

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-item > a,
.nav-label {
  text-decoration: none;
  font-size: 0.92rem;
  padding: 10px 8px 10px 12px;
  color: var(--text);
}

.submenu-toggle {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
}

.submenu-toggle::before {
  content: "";
  display: block;
  width: 7px;
  height: 7px;
  margin: 0 auto;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg) translateY(-2px);
}

.submenu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 230px;
  max-height: 70vh;
  overflow: auto;
  margin: 0;
  padding: 8px;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.nav-item.is-open > .submenu,
.nav-item:hover > .submenu,
.nav-item:focus-within > .submenu {
  display: block;
}

.submenu a {
  display: block;
  padding: 9px 10px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--text);
  font-size: 0.9rem;
}

.submenu a:hover {
  background: var(--surface-2);
  color: var(--accent);
}

.hero {
  padding: 56px 0 28px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr;
  gap: 28px;
  align-items: stretch;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 700;
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

h1 {
  margin: 0 0 14px;
  font-size: clamp(2.2rem, 4vw, 3.6rem);
}

.lede {
  margin: 0;
  max-width: 62ch;
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.hero-points li {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(126, 224, 198, 0.08);
  border: 1px solid rgba(126, 224, 198, 0.2);
  font-size: 0.88rem;
}

.hero-panel {
  padding: 24px;
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 40%),
    var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.panel-kicker {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.panel-stat {
  margin: 8px 0 12px;
  font-family: var(--display);
  font-size: 2.4rem;
}

.panel-stat span {
  color: var(--gold);
}

.listing-section {
  padding: 12px 0 48px;
}

.listing-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
  margin-bottom: 18px;
}

.listing-head h2,
.guides h2,
.faq h2,
.info-card h2 {
  margin: 0 0 6px;
  font-size: clamp(1.6rem, 2vw, 2.1rem);
}

.listing-head p,
.section-lead {
  margin: 0;
  color: var(--muted);
}

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

.search input,
.sort select {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  min-width: 180px;
}

.sort {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.list-columns,
.casino-card {
  display: grid;
  grid-template-columns: 88px minmax(150px, 0.9fr) minmax(180px, 1fr) minmax(220px, 1.3fr) 110px 168px;
  gap: 14px;
  align-items: center;
}

.list-columns {
  padding: 0 16px 10px;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.list-columns span:first-child {
  grid-column: 1 / 3;
}

.casino-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.casino-card {
  position: relative;
  padding: 16px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 30%), var(--bg-raised);
  border: 1px solid var(--line);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.casino-card:hover {
  transform: translateY(-3px);
  border-color: rgba(126, 224, 198, 0.45);
  box-shadow: var(--shadow);
}

.rank {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--surface-2);
  color: var(--gold);
  font-weight: 800;
}

.logo-link {
  display: grid;
  justify-items: center;
  gap: 8px;
  text-decoration: none;
}

.logo-link img {
  width: 148px;
  height: 68px;
  object-fit: contain;
  background: #f5f7fb;
  border-radius: 12px;
  padding: 6px;
}

.logo-name {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.bonus-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.bonus-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  padding: 10px 8px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  min-height: 74px;
  justify-content: center;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.bonus-chip:hover {
  border-color: rgba(243, 197, 107, 0.7);
  background: #24324c;
}

.bonus-chip strong {
  font-size: 1.15rem;
  line-height: 1.1;
}

.bonus-chip span {
  margin-top: 4px;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.features {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}

.features a {
  display: flex;
  gap: 8px;
  text-decoration: none;
  color: var(--text);
  font-size: 0.92rem;
}

.features a::before {
  content: "";
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  margin-top: 0.45em;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(126, 224, 198, 0.12);
}

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

.score {
  text-align: center;
}

.stars {
  --percent: calc((var(--rating) / 5) * 100%);
  margin: 0;
  font-size: 0.95rem;
  letter-spacing: 1px;
  line-height: 1;
}

.stars span {
  background: linear-gradient(90deg, var(--gold) var(--percent), #3c4b66 var(--percent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.score-value {
  margin: 6px 0 0;
  font-weight: 700;
}

.visit {
  display: grid;
  gap: 8px;
  justify-items: stretch;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 14px;
  text-decoration: none;
  text-align: center;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--cta-text);
  background: linear-gradient(180deg, #ffe09a, var(--cta) 45%, #e0a63a);
  box-shadow: 0 8px 18px rgba(243, 197, 107, 0.22);
  transition: transform 0.2s ease, filter 0.2s ease;
}

.cta:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.cta:focus-visible,
.bonus-chip:focus-visible,
.features a:focus-visible,
.submenu a:focus-visible,
.nav-item > a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.fineprint {
  margin: 0;
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.03em;
  text-align: center;
  line-height: 1.35;
}

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

.empty-state {
  margin: 18px 0 0;
  padding: 18px;
  text-align: center;
  border-radius: 14px;
  border: 1px dashed var(--line);
  color: var(--muted);
}

.info-section,
.guides,
.faq {
  padding: 10px 0 42px;
}

.info-grid,
.guide-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.guide-grid {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 18px;
}

.info-card,
.guide-card {
  padding: 22px;
  border-radius: var(--radius);
  background: rgba(18, 26, 43, 0.75);
  border: 1px solid var(--line);
}

.info-card p,
.guide-card p {
  color: var(--muted);
}

.guide-card h3 {
  margin: 0 0 8px;
  font-size: 1.25rem;
}

.guide-card a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

.guide-card a:hover {
  text-decoration: underline;
}

.faq-wrap {
  width: min(860px, calc(100% - 32px));
}

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

.faq-item {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg-raised);
  overflow: hidden;
}

.faq-item h3 {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
}

.faq-item button {
  width: 100%;
  text-align: left;
  padding: 16px 18px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.faq-item button::after {
  content: "+";
  color: var(--gold);
  font-size: 1.3rem;
  line-height: 1;
}

.faq-item.is-open button::after {
  content: "–";
}

.faq-panel {
  display: none;
  padding: 0 18px 16px;
  color: var(--muted);
}

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

.site-footer {
  margin-top: 12px;
  padding: 36px 0 22px;
  border-top: 1px solid var(--line);
  background: #080d18;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 22px;
}

.footer-brand {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: 1.4rem;
}

.site-footer p {
  color: var(--muted);
  margin: 0;
}

.site-footer nav {
  display: grid;
  align-content: start;
  gap: 8px;
}

.site-footer nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.92rem;
}

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

.footer-note {
  width: min(1180px, calc(100% - 32px));
  margin: 22px auto 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
}

@media (max-width: 1100px) {
  .list-columns {
    display: none;
  }

  .casino-card {
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "rank logo"
      "bonus bonus"
      "features features"
      "score visit";
  }

  .rank { grid-area: rank; }
  .logo-link { grid-area: logo; justify-items: start; grid-auto-flow: column; align-items: center; }
  .bonus-pair { grid-area: bonus; }
  .features { grid-area: features; }
  .score { grid-area: score; text-align: left; }
  .visit { grid-area: visit; }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: var(--header);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 16px 18px;
    background: rgba(11, 17, 32, 0.98);
    border-bottom: 1px solid var(--line);
    max-height: calc(100vh - var(--header));
    overflow: auto;
  }

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

  .nav-item {
    flex-wrap: wrap;
    border-bottom: 1px solid var(--line);
  }

  .nav-item > a,
  .nav-label {
    flex: 1;
    padding: 14px 4px;
  }

  .submenu {
    position: static;
    display: none;
    width: 100%;
    min-width: 0;
    box-shadow: none;
    margin-bottom: 8px;
  }

  .nav-item:hover > .submenu,
  .nav-item:focus-within > .submenu {
    display: none;
  }

  .nav-item.is-open > .submenu {
    display: block;
  }

  .hero-grid,
  .info-grid,
  .guide-grid,
  .footer-grid,
  .listing-head {
    grid-template-columns: 1fr;
    display: grid;
  }

  .listing-head {
    align-items: start;
  }

  .guide-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .casino-card {
    grid-template-columns: 1fr;
    grid-template-areas:
      "rank"
      "logo"
      "bonus"
      "features"
      "score"
      "visit";
  }

  .logo-link {
    justify-items: center;
    grid-auto-flow: row;
  }

  .score {
    text-align: center;
  }

  .bonus-pair {
    grid-template-columns: 1fr 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
