:root {
  --background: #f8fafc;
  --background-soft: #f1f5f9;
  --card: #ffffff;
  --card-soft: #f8fafc;
  --foreground: #0f172a;
  --muted: #64748b;
  --muted-foreground: #475569;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --primary: #0f172a;
  --primary-foreground: #f8fafc;
  --accent: #e2e8f0;
  --accent-foreground: #0f172a;
  --success: #059669;
  --warning: #b45309;
  --ring: rgba(15, 23, 42, 0.18);
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 10px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 48px rgba(15, 23, 42, 0.12);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --container: 1180px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--foreground);
  background:
    radial-gradient(circle at top, rgba(148, 163, 184, 0.14), transparent 22%),
    linear-gradient(180deg, #ffffff 0%, var(--background) 38%, #f8fafc 100%);
}

a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }

h1, h2, h3 {
  margin: 0 0 1rem;
  letter-spacing: -0.04em;
  line-height: 1.08;
  font-weight: 800;
}

h1 { font-size: clamp(2.4rem, 6vw, 4.5rem); }
h2 { font-size: clamp(1.65rem, 4vw, 2.55rem); }
h3 { font-size: clamp(1.05rem, 2vw, 1.35rem); }

p, li, td, th, a, span { line-height: 1.7; }
p, ul, ol, table { margin: 0 0 1.1rem; }
ul, ol { padding-left: 1.25rem; }

::selection {
  background: rgba(15, 23, 42, 0.12);
  color: var(--foreground);
}

:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 4px var(--ring);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3.5rem;
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 0.8rem 1rem;
  border-radius: 999px;
  z-index: 120;
}

.skip-link:focus { top: 1rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(248, 250, 252, 0.96);
  border-bottom: 1px solid var(--border);
}

.header-inner,
.hero-inner,
.section-inner,
.footer-inner,
.support-inner {
  width: min(calc(100% - 2rem), var(--container));
  margin: 0 auto;
}

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

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-badge {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-strong);
  background: var(--foreground);
  color: var(--primary-foreground);
  font-size: 0.88rem;
  box-shadow: var(--shadow-sm);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0.55rem 0.9rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--foreground);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.main-nav,
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.main-nav a,
.footer-nav a {
  color: var(--muted-foreground);
  padding: 0.68rem 0.92rem;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.main-nav a:hover,
.main-nav a:focus-visible,
.footer-nav a:hover,
.footer-nav a:focus-visible {
  background: var(--card);
  border-color: var(--border);
  color: var(--foreground);
}

.hero { padding: 3rem 0 1.25rem; }

.hero-panel,
.compare-intro,
.board-card,
.content-wrap,
.support-card,
.sticky-popup {
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--card);
  box-shadow: var(--shadow-md);
}

.hero-panel {
  padding: clamp(1.4rem, 4vw, 2.5rem);
  display: grid;
  gap: 1.25rem;
}

.eyebrow,
.section-kicker,
.odds-pill,
.review-rank {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  width: fit-content;
  border-radius: 999px;
  font-weight: 700;
}

.eyebrow,
.section-kicker {
  padding: 0.42rem 0.7rem;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  background: var(--background-soft);
  border: 1px solid var(--border);
}

.hero-copy p,
.support-card p,
.footer-copy,
.footer-note {
  color: var(--muted);
}

.article-byline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
  margin-top: 1rem;
  color: var(--muted-foreground);
  font-size: 0.95rem;
  font-weight: 600;
}

.article-byline strong {
  color: var(--foreground);
}

.article-byline-sep {
  color: var(--border-strong);
}

.compare-intro p,
.content-wrap :is(p, li, td) {
  color: var(--foreground);
}

.hero-actions { margin-top: 1.35rem; }

.button,
.button-secondary,
.popup-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.9rem 1.15rem;
  border-radius: 12px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.button {
  background: var(--primary);
  color: var(--primary-foreground);
  box-shadow: var(--shadow-sm);
}

.button-secondary {
  background: var(--card);
  color: var(--foreground);
  border-color: var(--border);
}

.button:hover,
.button-secondary:hover,
.popup-button:hover,
.button:focus-visible,
.button-secondary:focus-visible,
.popup-button:focus-visible {
  transform: translateY(-1px);
}

.hero-stats,
.review-grid,
.support-grid {
  display: grid;
  gap: 1rem;
}

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

.stat-box {
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--card-soft);
}

.stat-box strong {
  display: block;
  margin-bottom: 0.22rem;
  color: var(--foreground);
  font-size: 1.18rem;
}

.section-pad { padding: 1rem 0 1.5rem; }

.compare-intro,
.support-card {
  padding: 1.35rem;
}

.review-grid { margin-top: 1rem; }

.offers-card {
  margin-bottom: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--card);
  box-shadow: var(--shadow-md);
}

.offers-card {
  padding: 1rem;
}

.cw-showcase {
  display: grid;
  gap: 1rem;
}

.cw-casino-card {
  display: grid;
  grid-template-columns: 88px 200px minmax(0, 1.2fr) minmax(0, 1fr) 182px;
  grid-template-areas: "rank image info offer actions";
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.2rem;
  background: linear-gradient(180deg, #ffffff, var(--card-soft));
  border: 1px solid var(--border);
  border-radius: 22px;
  min-width: 0;
  overflow: hidden;
}

.cw-rank {
  grid-area: rank;
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--foreground);
  color: var(--primary-foreground);
  font-size: 1.65rem;
  font-weight: 800;
  margin-inline: auto;
  box-shadow: var(--shadow-sm);
}

.cw-card-image {
  grid-area: image;
  min-width: 0;
}

.cw-card-image img {
  width: 100%;
  height: 110px;
  object-fit: contain;
  border-radius: 18px;
  padding: 0.75rem;
  background: linear-gradient(180deg, #ffffff, var(--background-soft));
  border: 1px solid var(--border);
}

.cw-card-content {
  grid-area: info;
  min-width: 0;
}

.cw-info h3 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.5rem, 2vw, 2rem);
  line-height: 1;
  word-break: break-word;
}

.cw-stars {
  color: var(--warning);
  font-size: 1.25rem;
  letter-spacing: 0.08em;
}

.cw-half-star {
  opacity: 0.52;
}

.cw-offers {
  grid-area: offer;
  min-width: 0;
}

.cw-bonus-text {
  font-size: clamp(1rem, 1.6vw, 1.35rem);
  line-height: 1.28;
  color: var(--foreground);
  font-weight: 800;
  text-wrap: balance;
}

.cw-actions {
  grid-area: actions;
  display: grid;
  gap: 0.75rem;
  justify-items: stretch;
  min-width: 0;
}

.cw-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.9rem 1rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  text-align: center;
  border: 1px solid transparent;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.cw-btn:hover,
.cw-btn:focus-visible {
  transform: translateY(-1px);
}

.cw-btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
  box-shadow: var(--shadow-sm);
}

.cw-btn-secondary {
  background: var(--card);
  color: var(--foreground);
  border-color: var(--border);
}

.board-card {
  padding: 1.2rem;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.review-rank {
  padding: 0.38rem 0.7rem;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted-foreground);
  background: var(--background-soft);
  border: 1px solid var(--border);
}

.odds-pill {
  padding: 0.38rem 0.72rem;
  font-size: 0.82rem;
  color: var(--success);
  background: rgba(5, 150, 105, 0.08);
  border: 1px solid rgba(5, 150, 105, 0.14);
}

.review-meta {
  display: grid;
  gap: 0.4rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.review-meta strong { color: var(--foreground); }

.content-wrap {
  padding: clamp(1.35rem, 3vw, 2.35rem);
  overflow: hidden;
}

.content-wrap table {
  width: 100%;
  display: block;
  overflow-x: auto;
  border-collapse: collapse;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.content-wrap td,
.content-wrap th {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.content-wrap th {
  color: var(--foreground);
  background: var(--background-soft);
  font-weight: 700;
}

.content-wrap tr:last-child td,
.content-wrap tr:last-child th { border-bottom: 0; }

.content-wrap h2,
.content-wrap h3 {
  color: var(--foreground);
  margin-top: 1.9rem;
}

.section-visual {
  margin: 1.2rem 0 1.45rem;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--card);
  box-shadow: var(--shadow-md);
}

.section-visual img {
  width: 100%;
  height: auto;
  display: block;
}

.author-card {
  margin-top: 2rem;
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  box-shadow: var(--shadow-sm);
}

.author-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.7rem;
  margin-bottom: 0.9rem;
  border-radius: 999px;
  background: var(--background-soft);
  border: 1px solid var(--border);
  color: var(--muted-foreground);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.author-name {
  margin: 0 0 0.35rem;
  font-size: 1.3rem;
  letter-spacing: -0.03em;
}

.author-meta {
  margin: 0 0 0.75rem;
  color: var(--muted-foreground);
  font-size: 0.95rem;
  font-weight: 600;
}

.author-card p:last-child {
  margin-bottom: 0;
}

.content-wrap a {
  color: var(--foreground);
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-color: rgba(15, 23, 42, 0.25);
}

.content-wrap ul li::marker,
.content-wrap ol li::marker { color: var(--muted-foreground); }

.site-footer {
  margin-top: 2rem;
  padding: 2rem 0 5rem;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.72), rgba(241, 245, 249, 0.96));
}

.footer-inner {
  display: grid;
  gap: 1rem;
}

.sticky-popup {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  width: min(320px, calc(100vw - 2rem));
  padding: 1rem;
  z-index: 70;
  box-shadow: var(--shadow-lg);
}

.sticky-popup[hidden] { display: none; }

.popup-top {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: flex-start;
}

.popup-rank {
  min-width: 2rem;
  height: 2rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--foreground);
  color: var(--primary-foreground);
  font-weight: 800;
  font-size: 0.88rem;
}

.popup-close {
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--foreground);
  background: var(--card);
  cursor: pointer;
}

.popup-title {
  margin: 0.55rem 0 0.15rem;
  font-size: 1.15rem;
  font-weight: 800;
}

.popup-stars {
  color: var(--warning);
  letter-spacing: 0.08em;
  margin: 0 0 0.35rem;
}

.popup-offer {
  margin: 0 0 0.95rem;
  color: var(--muted-foreground);
  font-weight: 700;
}

.popup-button {
  width: 100%;
  background: var(--primary);
  color: var(--primary-foreground);
}

.popup-media {
  margin: 0.8rem 0 0.65rem;
}

.popup-media img {
  width: 100%;
  height: 86px;
  object-fit: contain;
  padding: 0.65rem;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff, var(--background-soft));
  border: 1px solid var(--border);
}

.popup-actions {
  display: grid;
  gap: 0.65rem;
}

.popup-button-secondary {
  width: 100%;
  background: var(--card);
  color: var(--foreground);
  border: 1px solid var(--border);
}

.support-section { padding: 3rem 0; }
.support-card h1 { font-size: clamp(1.9rem, 5vw, 3rem); }

.contact-list {
  list-style: none;
  padding-left: 0;
}

.contact-list li { margin-bottom: 0.9rem; }

.contact-chip {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  padding: 0.65rem 0.9rem;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--border);
}

@media (min-width: 860px) {
  .hero-panel {
    grid-template-columns: minmax(0, 1.28fr) minmax(290px, 0.72fr);
    align-items: center;
  }

  .review-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .support-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-inner { grid-template-columns: 1.2fr 1fr; }
}

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

  .main-nav {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    padding: 0.8rem;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-lg);
  }

  .main-nav.is-open { display: flex; }
  .main-nav a { background: var(--card); }
  .hero-stats { grid-template-columns: 1fr; }

  .sticky-popup {
    right: 1rem;
    left: 1rem;
    width: auto;
  }

  .cw-casino-card {
    grid-template-columns: 74px 1fr;
    grid-template-areas:
      "rank image"
      "info info"
      "offer offer"
      "actions actions";
    padding: 1rem;
  }

  .cw-rank {
    width: 56px;
    height: 56px;
    font-size: 1.4rem;
  }

  .cw-card-image img {
    height: 92px;
  }

  .cw-actions {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 1080px) and (min-width: 720px) {
  .cw-casino-card {
    grid-template-columns: 80px 180px minmax(0, 1fr);
    grid-template-areas:
      "rank image info"
      "offer offer actions";
  }

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

@media (max-width: 520px) {
  .offers-card {
    padding: 0.8rem;
  }

  .cw-card-image img {
    height: 84px;
    padding: 0.55rem;
  }

  .cw-bonus-text {
    font-size: 1rem;
  }

  .cw-actions {
    grid-template-columns: 1fr;
  }

  .cw-btn {
    min-height: 46px;
  }
}
