:root {
  --bg: #120d1e;
  --bg-soft: #1b132b;
  --surface: #241834;
  --surface-2: #2d1d40;
  --text: #f7f4fb;
  --muted: #c6bed1;
  --yellow: #ffd43b;
  --green: #4fd17b;
  --purple: #8b5cf6;
  --purple-dark: #5b2ba8;
  --border: rgba(255,255,255,.12);
  --shadow: 0 18px 48px rgba(0,0,0,.26);
  --radius: 18px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  min-width: 0;
  background:
    radial-gradient(circle at 15% 0%, rgba(139,92,246,.16), transparent 32rem),
    radial-gradient(circle at 90% 25%, rgba(79,209,123,.08), transparent 28rem),
    var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(18,13,30,.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  transition: box-shadow .2s ease, background .2s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 10px 30px rgba(0,0,0,.28);
  background: rgba(18,13,30,.98);
}

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

.site-logo {
  flex: 0 0 auto;
}

.site-logo img,
.footer-logo img {
  object-fit: contain;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
}

.desktop-nav a {
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  color: #eee9f5;
}

.desktop-nav a:hover,
.desktop-nav a:focus-visible {
  color: var(--yellow);
}

.header-cta,
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 12px;
  font-weight: 800;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.header-cta {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 16px;
  color: #151018;
  background: linear-gradient(135deg, var(--yellow), #ffed85);
}

.header-cta:hover,
.cta-button:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
}

.hero {
  position: relative;
  padding: 64px 0 42px;
  overflow: hidden;
}

.hero .container {
  position: relative;
}

.hero-copy {
  max-width: 850px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--green);
  font-size: 13px;
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 900px;
  margin: 0 0 22px;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.05;
  letter-spacing: -.03em;
}

.hero-intro p {
  margin: 0;
  max-width: 850px;
  color: #ddd6e8;
  font-size: 19px;
}

.hero-symbols {
  position: absolute;
  inset: 16px 0 auto auto;
  display: grid;
  grid-template-columns: repeat(2, 60px);
  gap: 8px;
  opacity: .14;
  transform: rotate(8deg);
  font-size: 54px;
  line-height: 1;
}

.hero-symbols span:nth-child(1),
.hero-symbols span:nth-child(3) {
  color: var(--green);
}

.hero-symbols span:nth-child(2),
.hero-symbols span:nth-child(4) {
  color: var(--yellow);
}

.author-box {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
  padding: 10px 14px 10px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255,255,255,.04);
}

.author-box img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
}

.author-name {
  font-weight: 800;
}

.author-date {
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
}

.verified-badge {
  display: inline-block;
  margin-left: 5px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(79,209,123,.14);
  color: var(--green);
  font-size: 11px;
  vertical-align: middle;
}

.listing-section {
  padding: 24px 0 62px;
}

.section-heading {
  margin-bottom: 22px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(26px, 3.5vw, 40px);
  line-height: 1.15;
}

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

.casino-card {
  position: relative;
  display: grid;
  grid-template-columns: 76px 1.15fr 1.55fr 1.15fr .8fr;
  align-items: center;
  gap: 18px;
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    linear-gradient(110deg, rgba(139,92,246,.13), rgba(79,209,123,.04) 55%, rgba(255,212,59,.05)),
    var(--surface);
  box-shadow: var(--shadow);
}

.casino-card:first-child {
  border-color: rgba(255,212,59,.55);
  box-shadow: 0 22px 55px rgba(0,0,0,.32), 0 0 0 1px rgba(255,212,59,.08) inset;
}

.rank-badge {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--yellow);
  color: #171119;
  font-size: 20px;
  font-weight: 900;
}

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

.casino-brand img {
  width: 112px;
  height: 54px;
  padding: 6px;
  border-radius: 10px;
  object-fit: contain;
  background: #fff;
}

.casino-brand h3 {
  margin: 0 0 3px;
  font-size: 18px;
  line-height: 1.2;
}

.rating {
  color: var(--yellow);
  white-space: nowrap;
  font-size: 13px;
}

.rating strong {
  margin-left: 4px;
  color: var(--text);
}

.casino-bonus {
  min-width: 0;
}

.casino-bonus p {
  margin: 5px 0 0;
  font-weight: 800;
  line-height: 1.35;
}

.bonus-label {
  display: inline-block;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.casino-features {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: #ddd6e8;
  font-size: 13px;
}

.casino-features li {
  display: flex;
  align-items: flex-start;
  gap: 7px;
}

.check-icon {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  margin-top: 3px;
  fill: var(--green);
}

.casino-cta {
  text-align: center;
}

.cta-button {
  width: 100%;
  min-height: 48px;
  padding: 0 18px;
  background: linear-gradient(135deg, var(--green), #8be3a8);
  color: #102016;
  box-shadow: 0 10px 24px rgba(79,209,123,.15);
}

.casino-cta small {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 10px;
}

.content-area {
  padding: 20px 0 70px;
}

.prose {
  max-width: 980px;
}

.prose h2,
.prose h3 {
  scroll-margin-top: 100px;
}

.prose h2 {
  margin: 54px 0 18px;
  color: #fff;
  font-size: clamp(27px, 3.2vw, 38px);
  line-height: 1.18;
  letter-spacing: -.02em;
}

.prose h3 {
  margin: 36px 0 12px;
  color: #f5eaff;
  font-size: clamp(21px, 2.5vw, 28px);
  line-height: 1.25;
}

.prose p {
  color: #ddd6e8;
}

.prose ul,
.prose ol {
  padding-left: 24px;
  color: #ddd6e8;
}

.prose li + li {
  margin-top: 7px;
}

.prose strong {
  color: #fff;
}

.prose table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  border-spacing: 0;
  background: var(--surface);
}

.prose table,
.prose thead,
.prose tbody {
  max-width: 100%;
}

.prose table {
  margin: 24px 0;
}

.prose td,
.prose th {
  padding: 13px 14px;
  border: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.prose tr:first-child td,
.prose th {
  background: var(--purple-dark);
}

.prose td p {
  margin: 0;
}

.prose > table {
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.review-image {
  margin: 24px 0 38px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.review-image img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.anchor-target {
  position: relative;
  top: -90px;
  visibility: hidden;
}

.author-bio {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-top: 58px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(120deg, rgba(139,92,246,.14), rgba(79,209,123,.07));
}

.author-bio img {
  flex: 0 0 80px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
}

.author-bio h2 {
  margin: 0 0 8px;
  font-size: 24px;
}

.author-bio p {
  margin: 0;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: #0c0813;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr .7fr 1.2fr;
  gap: 32px;
  padding-top: 42px;
  padding-bottom: 32px;
}

.site-footer p {
  color: var(--muted);
  font-size: 14px;
}

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

.site-footer nav a {
  color: #eee9f5;
  text-decoration: none;
}

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

.responsible-box {
  padding: 18px;
  border: 1px solid rgba(255,212,59,.24);
  border-radius: 14px;
  background: rgba(255,212,59,.05);
}

.responsible-box strong {
  color: var(--yellow);
}

.copyright {
  padding: 18px 16px;
  border-top: 1px solid var(--border);
  color: #9f96ac;
  text-align: center;
  font-size: 13px;
}

@media (max-width: 1050px) {
  .desktop-nav {
    display: none;
  }

  .header-cta {
    margin-left: auto;
  }

  .casino-card {
    grid-template-columns: 64px 1fr 1.4fr;
  }

  .casino-features {
    grid-column: 2 / 3;
  }

  .casino-cta {
    grid-column: 3 / 4;
  }
}

@media (max-width: 720px) {
  html {
    scroll-padding-top: 76px;
  }

  .container,
  .header-inner {
    width: min(calc(100% - 24px), var(--container));
  }

  .header-inner {
    min-height: 66px;
  }

  .site-logo img {
    width: 128px;
    height: auto;
  }

  .header-cta {
    min-height: 40px;
    padding: 0 12px;
    font-size: 13px;
  }

  .header-cta-icon {
    display: none;
  }

  .hero {
    padding: 36px 0 22px;
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero-intro p {
    font-size: 17px;
  }

  .hero-symbols {
    display: none;
  }

  .author-box {
    border-radius: 16px;
  }

  .listing-section {
    padding-top: 12px;
  }

  .casino-list {
    gap: 14px;
  }

  .casino-card {
    grid-template-columns: 46px 1fr;
    gap: 13px;
    padding: 15px;
  }

  .rank-badge {
    width: 42px;
    height: 42px;
    font-size: 17px;
  }

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

  .casino-brand img {
    width: 92px;
    height: 48px;
  }

  .casino-bonus,
  .casino-features,
  .casino-cta {
    grid-column: 1 / -1;
  }

  .casino-bonus p {
    font-size: 16px;
  }

  .casino-features {
    padding: 11px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
  }

  .casino-cta small {
    margin-top: 6px;
  }

  .prose h2 {
    margin-top: 42px;
  }

  .prose > table {
    width: calc(100vw - 24px);
    max-width: calc(100vw - 24px);
  }

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

  .author-bio {
    align-items: flex-start;
  }
}

@media (max-width: 420px) {
  .site-logo img {
    width: 105px;
  }

  .header-cta {
    padding: 0 10px;
    font-size: 12px;
  }

  .hero h1 {
    font-size: 31px;
  }

  .author-box {
    width: 100%;
  }

  .casino-brand {
    align-items: flex-start;
  }

  .casino-brand img {
    width: 78px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
  }
}

/* MOBILE LOGO TUNING — desktop styles remain unchanged */
@media (max-width: 720px) {
  .header-inner {
    min-height: 72px;
  }

  .site-logo {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    line-height: 0;
  }

  .site-logo img {
    width: auto !important;
    height: 58px !important;
    max-width: 82px !important;
    max-height: 58px !important;
    object-fit: contain;
  }

  .footer-logo {
    display: inline-flex;
    align-items: center;
    line-height: 0;
  }

  .footer-logo img {
    width: auto !important;
    height: 50px !important;
    max-width: 72px !important;
    max-height: 50px !important;
    object-fit: contain;
  }
}

@media (max-width: 420px) {
  .header-inner {
    min-height: 68px;
  }

  .site-logo img {
    width: auto !important;
    height: 54px !important;
    max-width: 76px !important;
    max-height: 54px !important;
  }

  .footer-logo img {
    width: auto !important;
    height: 46px !important;
    max-width: 66px !important;
    max-height: 46px !important;
  }
}

/* ONLY MOBILE HEADER LOGO ADJUSTMENT */
@media (max-width: 720px) {
  .site-logo img {
    width: auto !important;
    height: 46px !important;
    max-width: 110px !important;
    max-height: 46px !important;
    object-fit: contain !important;
  }
}

@media (max-width: 420px) {
  .site-logo img {
    height: 43px !important;
    max-width: 102px !important;
    max-height: 43px !important;
  }
}

/* TABLE SCROLL FIX ONLY */
.table-scroll {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 24px 0;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-gutter: stable;
}

.table-scroll > table {
  width: 100%;
  max-width: none;
  margin: 0;
}

@media (max-width: 720px) {
  .table-scroll {
    width: 100%;
    max-width: 100%;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x pan-y;
  }

  .table-scroll > table {
    width: 100%;
    min-width: 720px;
    max-width: none;
    margin: 0;
  }
}
