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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(rgba(16, 23, 22, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 23, 22, 0.035) 1px, transparent 1px),
    var(--color-bg);
  background-size: 34px 34px;
  color: var(--color-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  padding-bottom: 116px;
}

a {
  color: inherit;
}

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

table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  margin: 24px 0;
}

th,
td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
  vertical-align: top;
}

th {
  background: #dff3ec;
  color: var(--color-text);
}

td {
  background: rgba(255, 255, 255, 0.78);
}

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

code {
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 2px 6px;
  background: rgba(255, 255, 255, 0.06);
}

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

.skip-link {
  position: absolute;
  left: 16px;
  top: 12px;
  z-index: 100;
  transform: translateY(-150%);
  border-radius: 6px;
  background: var(--color-primary);
  color: #ffffff;
  padding: 10px 14px;
  font-weight: 800;
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid var(--color-border);
  backdrop-filter: blur(18px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0;
}

.brand__mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(5, 185, 127, 0.34);
  border-radius: 8px;
  background: #101716;
  color: var(--color-primary);
  font-size: 20px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav a {
  border-radius: 6px;
  color: var(--color-muted);
  padding: 9px 8px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 750;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: rgba(5, 185, 127, 0.10);
  color: var(--color-text);
  outline: none;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-surface);
  color: var(--color-text);
  cursor: pointer;
  transition: border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0;
  background: currentColor;
  border-radius: 999px;
  transition: opacity 180ms ease, transform 180ms ease;
}

.nav-toggle:hover,
.nav-toggle:focus-visible,
.nav-toggle.is-open {
  border-color: rgba(5, 185, 127, 0.55);
  background: rgba(5, 185, 127, 0.10);
  outline: none;
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.home-hero,
.article-hero {
  border-bottom: 1px solid var(--color-border);
  background:
    linear-gradient(135deg, rgba(5, 185, 127, 0.18), rgba(40, 89, 255, 0.08) 52%, rgba(255, 255, 255, 0)),
    var(--color-bg);
}

.home-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
  align-items: center;
  min-height: 620px;
  gap: 56px;
  padding: 80px 0;
}

.home-hero h1,
.article-hero h1 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(42px, 6vw, 74px);
  line-height: 1;
  letter-spacing: 0;
}

.home-hero p,
.article-hero__intro {
  max-width: 720px;
  color: var(--color-muted);
  font-size: 20px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: var(--color-primary);
  color: #ffffff;
  padding: 12px 18px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.15;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  background: var(--color-primary-dark);
  outline: none;
}

.button--secondary {
  border-color: rgba(40, 89, 255, 0.32);
  background: #ffffff;
  color: var(--color-accent);
}

.button--secondary:hover,
.button--secondary:focus-visible {
  border-color: rgba(40, 89, 255, 0.58);
  background: rgba(40, 89, 255, 0.08);
}

.button--full {
  width: 100%;
}

.hero-board {
  display: grid;
  gap: 12px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: #101716;
  padding: 18px;
  color: #eefbf6;
  box-shadow: 0 24px 80px rgba(16, 23, 22, 0.18);
}

.hero-board__row {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  padding: 14px;
}

.hero-board__row span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  background: rgba(5, 185, 127, 0.14);
  color: var(--color-primary);
  font-weight: 900;
}

.hero-board__row strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.hero-board__row em {
  color: #7dd3fc;
  font-style: normal;
  font-weight: 900;
}

.article-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  align-items: end;
  gap: 32px;
  padding: 72px 0 54px;
}

.article-hero__meta {
  margin: 0 0 16px;
  color: var(--color-primary-dark);
  font-size: 14px;
  font-weight: 850;
}

.trust-panel,
.sidebar-panel {
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  padding: 18px;
}

.trust-panel {
  display: grid;
  gap: 8px;
}

.trust-panel strong {
  color: var(--color-primary-dark);
  font-size: 32px;
  line-height: 1;
}

.trust-panel span {
  color: var(--color-muted);
  font-size: 14px;
}

.content-band {
  padding: 54px 0;
}

.article-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 32px;
  align-items: start;
}

.article-body {
  min-width: 0;
  color: #24332f;
  font-size: 17px;
}

.article-body > *:first-child {
  margin-top: 0;
}

.article-body h2 {
  margin: 42px 0 14px;
  color: var(--color-text);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.08;
  letter-spacing: 0;
}

.article-body h3 {
  margin: 28px 0 10px;
  color: var(--color-text);
  font-size: 24px;
  line-height: 1.2;
}

.article-body p,
.article-body li {
  color: #2f403c;
}

.article-body a:not(.button) {
  color: var(--color-accent);
}

.article-sidebar {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 16px;
}

.sidebar-panel h2 {
  margin: 0 0 8px;
  font-size: 18px;
}

.sidebar-panel p {
  margin: 0 0 12px;
  color: var(--color-muted);
}

.sidebar-panel strong {
  display: block;
  margin-bottom: 16px;
  color: var(--color-primary-dark);
}

.sidebar-panel--quiet {
  background: rgba(231, 242, 238, 0.82);
}

.section-heading {
  margin: 54px 0 22px;
}

.section-heading h2 {
  margin-bottom: 10px;
}

.section-heading p {
  max-width: 720px;
  margin: 0;
  color: var(--color-muted);
}

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

.casino-card {
  display: grid;
  grid-template-columns: 32px 140px 150px minmax(0, 1fr) 180px;
  align-items: center;
  gap: 22px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: #ffffff;
  padding: 18px 22px;
  color: var(--color-text);
  box-shadow: 0 1px 2px rgba(16, 23, 22, 0.04), 0 12px 30px rgba(16, 23, 22, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.casino-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(16, 23, 22, 0.08), 0 18px 42px rgba(16, 23, 22, 0.12);
}

.casino-card__rank {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  color: #a1a1aa;
  font-size: 18px;
  font-weight: 900;
}

.casino-card__logo a {
  display: grid;
  min-height: 68px;
  place-items: center;
  border: 1px solid rgba(16, 23, 22, 0.10);
  border-radius: 8px;
  background: #101716;
  color: #ffffff;
  padding: 8px;
  text-decoration: none;
}

.casino-card__logo img {
  width: 125px;
  max-width: 100%;
  height: auto;
}

.casino-card__logo-text {
  display: block;
  max-width: 112px;
  text-align: center;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.15;
}

.casino-card__rating {
  display: flex;
  min-height: 90px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #edf8f4;
  color: #18181b;
  font-weight: 900;
  gap: 4px;
}

.casino-card__rating::after {
  content: "";
  display: inline-block;
  width: 24px;
  height: 24px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2305b97f'%3E%3Cpath d='M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z'/%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.casino-card__rating strong {
  font-size: 26px;
  line-height: 1;
}

.casino-card__rating span {
  color: #71717a;
  font-size: 16px;
  font-weight: 800;
}

.casino-card__bonus,
.article-body .casino-card__bonus {
  margin: 0;
  color: var(--color-text);
  text-align: left;
  font-size: 19px;
  line-height: 1.3;
  font-weight: 850;
}

.casino-card__cta {
  display: flex;
  width: 100%;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 8px;
  background: #101716;
  color: #ffffff;
  padding: 14px 18px;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  font-size: 19px;
  font-weight: 900;
  transition: background-color 180ms ease, transform 180ms ease;
}

.casino-card__cta::before {
  content: "";
  display: inline-block;
  width: 20px;
  height: 20px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2305b97f'%3E%3Cpath d='M13 2L3 14h9l-1 8 10-12h-9l1-8z'/%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.casino-card__cta:hover,
.casino-card__cta:focus-visible {
  background: #1d2a27;
  color: #ffffff;
  outline: none;
}

.site-footer {
  border-top: 1px solid var(--color-border);
  background: #101716;
  padding: 42px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 1fr;
  gap: 32px;
}

.site-footer h2 {
  margin: 0 0 12px;
  font-size: 16px;
}

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

.site-footer a:not(.brand) {
  display: block;
  color: var(--color-muted);
  text-decoration: none;
  margin: 6px 0;
}

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

.footer-note {
  max-width: 520px;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--color-border);
  margin-top: 28px;
  padding-top: 20px;
}

.sticky-cta {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 50;
  display: grid;
  width: min(760px, calc(100% - 28px));
  grid-template-columns: 18px 96px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  transform: translateX(-50%);
  border: 1px solid rgba(5, 185, 127, 0.42);
  border-radius: 8px;
  background: #101716;
  color: #ffffff;
  padding: 13px 14px;
  text-decoration: none;
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.48);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 22px);
  transition: opacity 220ms ease, transform 220ms ease, border-color 180ms ease;
}

.sticky-cta.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
  animation: cta-breathe 2800ms ease-in-out infinite 800ms;
}

.sticky-cta:hover,
.sticky-cta:focus-visible {
  outline: none;
  border-color: rgba(5, 185, 127, 0.86);
}

.sticky-cta__content {
  min-width: 0;
  transition: opacity 180ms ease, transform 180ms ease;
}

.sticky-cta__logo {
  display: grid;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(5, 185, 127, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  padding: 4px 6px;
  transition: opacity 180ms ease, transform 180ms ease;
}

.sticky-cta__logo span {
  max-width: 84px;
  overflow: hidden;
  color: #ffffff;
  text-align: center;
  text-overflow: ellipsis;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.1;
}

.sticky-cta.is-switching .sticky-cta__content,
.sticky-cta.is-switching .sticky-cta__logo {
  opacity: 0;
  transform: translateY(7px);
}

.sticky-cta__pulse {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--color-accent);
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55);
  animation: pulse 1800ms ease-out infinite;
}

.sticky-cta strong,
.sticky-cta small {
  display: block;
}

.sticky-cta strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sticky-cta small {
  color: var(--color-muted);
  overflow-wrap: anywhere;
}

.sticky-cta em {
  border-radius: 8px;
  background: var(--color-primary);
  color: #ffffff;
  padding: 10px 12px;
  font-style: normal;
  font-size: 14px;
  font-weight: 950;
  white-space: nowrap;
}

@keyframes cta-breathe {
  0%,
  100% {
    transform: translate(-50%, 0);
  }
  50% {
    transform: translate(-50%, -3px);
  }
}

@keyframes pulse {
  to {
    box-shadow: 0 0 0 14px rgba(34, 197, 94, 0);
  }
}

@media (max-width: 980px) {
  .home-hero__inner,
  .article-hero__inner,
  .article-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .home-hero__inner {
    min-height: auto;
    padding: 58px 0;
  }

  .article-sidebar {
    position: static;
  }

  .casino-card {
    grid-template-columns: 28px 120px minmax(0, 1fr) 150px;
  }

  .casino-card__rating {
    display: none;
  }
}

@media (max-width: 760px) {
  body {
    padding-bottom: 136px;
  }

  .site-header__inner {
    min-height: 66px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    left: 14px;
    right: 14px;
    top: calc(100% + 10px);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    max-height: calc(100vh - 96px);
    overflow: auto;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    background:
      linear-gradient(180deg, rgba(5, 185, 127, 0.10), rgba(255, 255, 255, 0)),
      #ffffff;
    padding: 10px;
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.48);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 180ms ease, transform 180ms ease;
    backdrop-filter: blur(18px);
  }

  .site-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 52px;
    border: 1px solid rgba(16, 23, 22, 0.10);
    border-radius: 8px;
    background: rgba(5, 185, 127, 0.05);
    color: var(--color-text);
    padding: 13px 14px;
    font-size: 15px;
    overflow-wrap: anywhere;
  }

  .site-nav a::after {
    content: "";
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--color-primary-dark);
    border-bottom: 2px solid var(--color-primary-dark);
    transform: rotate(-45deg);
    opacity: 0.85;
  }

  .site-nav a:hover,
  .site-nav a:focus-visible {
    border-color: rgba(5, 185, 127, 0.42);
    background: rgba(5, 185, 127, 0.10);
  }

  .home-hero h1,
  .article-hero h1 {
    font-size: 40px;
  }

  .home-hero p,
  .article-hero__intro {
    font-size: 17px;
  }

  .content-band {
    padding: 36px 0;
  }

  .article-hero__inner {
    padding: 44px 0 34px;
  }

  .article-body {
    font-size: 16px;
  }

  table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .casino-card {
    grid-template-columns: 1fr;
    padding: 40px 20px 20px;
    position: relative;
    gap: 16px;
  }

  .casino-card__rank {
    position: absolute;
    left: 20px;
    top: 14px;
    width: auto;
    height: auto;
  }

  .casino-card__logo img {
    margin: 0 auto;
  }

  .hero-board__row:nth-child(n + 3) {
    display: none;
  }

  .sticky-cta {
    grid-template-columns: 14px 76px minmax(0, 1fr);
    gap: 10px;
  }

  .sticky-cta__logo {
    height: 42px;
    padding: 4px;
  }

  .sticky-cta__logo span {
    max-width: 68px;
  }

  .sticky-cta em {
    grid-column: 2 / -1;
    width: 100%;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
