:root {
  --bg: #0d1c21;
  --bg-2: #12282e;
  --surface: #173239;
  --surface-2: #1d3c44;
  --text: #f8fbfb;
  --muted: #bad0d2;
  --turquoise: #32d6c5;
  --turquoise-soft: #8aeee4;
  --strawberry: #ef5d75;
  --strawberry-dark: #c9425a;
  --yellow: #ffd95a;
  --line: rgba(255,255,255,.12);
  --shadow: 0 18px 48px rgba(0,0,0,.25);
  --radius: 18px;
  --container: 1180px;
}

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

html {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
}

body {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 12% 0%, rgba(50,214,197,.13), transparent 34rem),
    radial-gradient(circle at 92% 18%, rgba(239,93,117,.11), transparent 30rem),
    var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.65;
}

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

a {
  color: inherit;
}

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

/* HEADER */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  border-bottom: 1px solid var(--line);
  background: rgba(13,28,33,.96);
  backdrop-filter: blur(10px);
}

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

.site-logo {
  flex: 0 0 118px;
  width: 118px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
}

.site-logo img {
  width: 118px;
  height: 42px;
  max-width: 118px;
  max-height: 42px;
  object-fit: contain;
}

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

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

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

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

.header-button {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 0 15px;
  color: #25120f;
  background: linear-gradient(135deg, var(--yellow), #fff09b);
}

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

/* HERO */
.hero {
  position: relative;
  padding: 34px 0 22px;
  overflow: hidden;
}

.hero-inner {
  position: relative;
}

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

.eyebrow {
  margin: 0 0 7px;
  color: var(--turquoise);
  font-size: 12px;
  line-height: 1.3;
  font-weight: 900;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 920px;
  margin: 0 0 16px;
  font-size: clamp(34px, 4.8vw, 58px);
  line-height: 1.06;
  letter-spacing: -.035em;
}

.hero-intro p {
  max-width: 860px;
  margin: 0;
  color: #d7e7e8;
  font-size: 18px;
}

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

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

.author-line {
  display: flex;
  align-items: center;
  gap: 7px;
  line-height: 1.3;
}

.verified {
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(50,214,197,.14);
  color: var(--turquoise);
  font-size: 11px;
  font-weight: 800;
}

.updated {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.casino-motif {
  position: absolute;
  top: 4px;
  right: 0;
  display: grid;
  grid-template-columns: repeat(2, 54px);
  gap: 5px;
  font-size: 50px;
  line-height: 1;
  opacity: .12;
  transform: rotate(8deg);
}

.casino-motif span:nth-child(odd) { color: var(--turquoise); }
.casino-motif span:nth-child(even) { color: var(--strawberry); }

/* LISTING */
.listing-section {
  padding: 18px 0 54px;
}

.listing-heading {
  margin-bottom: 18px;
}

.listing-heading h2 {
  max-width: 860px;
  margin: 0;
  font-size: clamp(27px, 3.4vw, 40px);
  line-height: 1.15;
}

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

.casino-card {
  min-width: 0;
  display: grid;
  grid-template-columns: 58px 1.05fr 1.45fr 1.05fr .72fr;
  align-items: center;
  gap: 16px;
  padding: 17px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(110deg, rgba(50,214,197,.10), rgba(239,93,117,.06) 58%, rgba(255,217,90,.05)),
    var(--surface);
  box-shadow: var(--shadow);
}

.casino-card:first-child {
  border-color: rgba(255,217,90,.58);
  box-shadow: var(--shadow), 0 0 0 1px rgba(255,217,90,.08) inset;
}

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

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

.brand-logo {
  width: 104px;
  height: 52px;
  flex: 0 0 104px;
  display: grid;
  place-items: center;
  padding: 6px;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}

.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-meta h3 {
  margin: 0 0 2px;
  font-size: 17px;
  line-height: 1.2;
}

.stars {
  color: var(--yellow);
  font-size: 13px;
  letter-spacing: .05em;
}

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

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

.bonus-block p {
  margin: 4px 0 0;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
}

.feature-list {
  display: grid;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: #d9e7e8;
  font-size: 12px;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

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

.card-action {
  text-align: center;
}

.play-button {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  color: #162325;
  background: linear-gradient(135deg, var(--turquoise), var(--turquoise-soft));
}

.card-action small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 9px;
}

/* CONTENT */
.content-section {
  padding: 8px 0 66px;
}

.prose {
  width: min(100%, 980px);
  max-width: 100%;
  min-width: 0;
}

.prose h2 {
  margin: 50px 0 15px;
  font-size: clamp(27px, 3.1vw, 38px);
  line-height: 1.18;
  letter-spacing: -.02em;
}

.prose h3 {
  margin: 31px 0 11px;
  font-size: clamp(21px, 2.4vw, 27px);
  line-height: 1.25;
}

.prose p,
.prose li {
  color: #d4e3e4;
}

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

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

.prose strong {
  color: #fff;
}

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

/* TABLES:
   wrapper owns horizontal scrolling; page never does. */
.table-scroll {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 22px 0;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.table-scroll table {
  width: 100%;
  min-width: 620px;
  max-width: none;
  margin: 0;
  border-collapse: collapse;
  table-layout: auto;
}

.table-scroll td,
.table-scroll th {
  min-width: 145px;
  padding: 12px 14px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.table-scroll tr:first-child td,
.table-scroll th {
  color: #172124;
  background: linear-gradient(135deg, var(--turquoise), #8aeee4);
}

.table-scroll tr:last-child td {
  border-bottom: 0;
}

.table-scroll td:last-child,
.table-scroll th:last-child {
  border-right: 0;
}

.table-scroll td p {
  margin: 0;
}

.review-image {
  width: 100%;
  margin: 22px 0 36px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

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

/* AUTHOR */
.author-bio {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 52px;
  padding: 21px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(115deg, rgba(50,214,197,.10), rgba(239,93,117,.07));
}

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

.author-bio h2 {
  margin: 0 0 6px;
  font-size: 23px;
}

.author-bio p {
  margin: 0;
}

/* FOOTER */
.site-footer {
  width: 100%;
  overflow-x: hidden;
  border-top: 1px solid var(--line);
  background: #081316;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr .7fr 1.15fr;
  gap: 30px;
  padding-top: 38px;
  padding-bottom: 28px;
}

.footer-logo {
  width: 104px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  overflow: hidden;
}

.footer-logo img {
  width: 104px;
  height: 38px;
  max-width: 104px;
  max-height: 38px;
  object-fit: contain;
}

.footer-brand p,
.responsible-box p {
  color: var(--muted);
  font-size: 13px;
}

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

.footer-nav a {
  text-decoration: none;
}

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

.responsible-box {
  padding: 17px;
  border: 1px solid rgba(255,217,90,.26);
  border-radius: 13px;
  background: rgba(255,217,90,.05);
}

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

.copyright {
  padding: 16px;
  border-top: 1px solid var(--line);
  color: #91a8aa;
  text-align: center;
  font-size: 12px;
}

/* TABLET */
@media (max-width: 1040px) {
  .desktop-nav {
    gap: 13px;
  }

  .casino-card {
    grid-template-columns: 50px 1fr 1.35fr;
  }

  .feature-list {
    grid-column: 2 / 3;
  }

  .card-action {
    grid-column: 3 / 4;
  }
}

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

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

/* MOBILE */
@media (max-width: 720px) {
  html,
  body,
  main,
  .hero,
  .listing-section,
  .content-section,
  .site-footer {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

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

  html {
    scroll-padding-top: 68px;
  }

  .header-inner {
    height: 58px;
    min-height: 58px;
    gap: 10px;
  }

  .site-logo {
    flex-basis: 102px;
    width: 102px;
    height: 36px;
  }

  .site-logo img {
    width: 102px;
    height: 36px;
    max-width: 102px;
    max-height: 36px;
  }

  .header-button {
    min-height: 38px;
    padding: 0 11px;
    font-size: 12px;
  }

  .header-button > span:first-child {
    display: none;
  }

  .hero {
    padding: 23px 0 15px;
  }

  .hero h1 {
    margin-bottom: 12px;
    font-size: 33px;
  }

  .hero-intro p {
    font-size: 16px;
    line-height: 1.55;
  }

  .author-box {
    margin-top: 13px;
  }

  .casino-motif {
    display: none;
  }

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

  .listing-heading {
    margin-bottom: 13px;
  }

  .listing-heading h2 {
    font-size: 27px;
  }

  .casino-card {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 10px 12px;
    padding: 13px;
    border-radius: 15px;
  }

  .rank-badge {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .brand-block {
    gap: 9px;
  }

  .brand-logo {
    width: 86px;
    height: 44px;
    flex-basis: 86px;
  }

  .brand-meta h3 {
    font-size: 15px;
  }

  .bonus-block,
  .feature-list,
  .card-action {
    grid-column: 1 / -1;
  }

  .bonus-block p {
    font-size: 14px;
  }

  .feature-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    padding: 8px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    font-size: 11px;
  }

  .play-button {
    min-height: 42px;
  }

  .prose {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

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

  .table-scroll {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    touch-action: pan-x pan-y;
  }

  .table-scroll table {
    width: max-content;
    min-width: 620px;
    max-width: none;
  }

  .table-scroll td,
  .table-scroll th {
    min-width: 145px;
    white-space: normal;
  }

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

  .footer-logo {
    width: 92px;
    height: 34px;
  }

  .footer-logo img {
    width: 92px;
    height: 34px;
    max-width: 92px;
    max-height: 34px;
  }
}

@media (max-width: 430px) {
  .site-logo {
    flex-basis: 96px;
    width: 96px;
    height: 34px;
  }

  .site-logo img {
    width: 96px;
    height: 34px;
    max-width: 96px;
    max-height: 34px;
  }

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

  .feature-list {
    grid-template-columns: 1fr;
  }

  .footer-logo {
    width: 88px;
    height: 32px;
  }

  .footer-logo img {
    width: 88px;
    height: 32px;
    max-width: 88px;
    max-height: 32px;
  }
}

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

  * {
    transition: none !important;
  }
}

/* FINAL REQUESTED LAYOUT FIXES */

/* 1) Header is fixed to the viewport */
.site-header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 1000 !important;
}

body {
  padding-top: 62px !important;
}

/* 2) Review images always display in full, without cropping */
.review-image {
  height: auto !important;
}

.review-image img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  max-width: 100% !important;
  aspect-ratio: auto !important;
  object-fit: contain !important;
  object-position: center !important;
}

/* 3) Comfortable mobile side spacing */
@media (max-width: 720px) {
  body {
    padding-top: 58px !important;
  }

  .hero > .container,
  .listing-section > .container,
  .content-section > .container,
  .site-footer > .container,
  .header-inner {
    width: calc(100% - 32px) !important;
    max-width: calc(100% - 32px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .prose {
    width: 100% !important;
    max-width: 100% !important;
  }
}
