:root {
  --cto-bg-start: #f5f0e6;
  --cto-bg-mid: #faf7f0;
  --cto-bg-end: #ffffff;
  --cto-card-bg: #ffffff;
  --cto-text: #3d2c1e;
  --cto-muted: #725846;
  --cto-gold: #d4a017;
  --cto-gold-deep: #b8860b;
  --cto-burgundy: #7f1d1d;
  --cto-shadow: 0 16px 40px rgba(128, 84, 19, 0.12);
  --cto-shadow-strong: 0 24px 50px rgba(127, 29, 29, 0.16);
  --cto-border: rgba(184, 134, 11, 0.32);
  --cto-logo-bg: #f0f1f3;
  --cto-radius: 24px;
  --cto-shell: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body.cto-body {
  margin: 0;
  font-family: "Nunito Sans", sans-serif;
  color: var(--cto-text);
  background: linear-gradient(180deg, var(--cto-bg-start) 0%, var(--cto-bg-mid) 44%, var(--cto-bg-end) 100%);
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.cto-shell {
  width: min(calc(100% - 2rem), var(--cto-shell));
  margin: 0 auto;
}

.cto-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;
}

.cto-reading-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 4px;
  background: rgba(212, 160, 23, 0.16);
  z-index: 1200;
}

.cto-reading-progress-bar {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--cto-gold-deep), var(--cto-gold));
}

.cto-age-bar {
  background: #f8ebc7;
  color: #4d3310;
  padding: 0.7rem 1rem;
  text-align: center;
  font-size: 0.95rem;
}

.cto-age-bar.is-hidden {
  display: none;
}

.cto-age-bar-button {
  margin-left: 0.65rem;
  border: 0;
  border-radius: 999px;
  background: var(--cto-burgundy);
  color: #fff;
  font: inherit;
  font-weight: 700;
  padding: 0.5rem 1rem;
  cursor: pointer;
}

.cto-site-header {
  position: sticky;
  top: 4px;
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.cto-nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: rgba(250, 247, 240, 0.88);
  border: 1px solid rgba(127, 29, 29, 0.08);
  border-radius: 999px;
  padding: 0.8rem 1.1rem;
  margin: 1rem 0 0;
  box-shadow: 0 10px 24px rgba(61, 44, 30, 0.08);
}

.cto-brand img {
  height: 42px;
}

.cto-nav-menu {
  display: flex;
  align-items: center;
  gap: 1.3rem;
}

.cto-nav-menu a {
  position: relative;
  font-weight: 700;
  color: var(--cto-burgundy);
}

.cto-nav-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.2rem;
  width: 100%;
  height: 2px;
  background: var(--cto-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.cto-nav-menu a:hover::after,
.cto-nav-menu a:focus-visible::after {
  transform: scaleX(1);
}

.cto-nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 0.3rem;
  cursor: pointer;
}

.cto-nav-toggle span:not(.cto-sr-only) {
  display: block;
  width: 28px;
  height: 3px;
  border-radius: 999px;
  background: var(--cto-burgundy);
  margin: 4px 0;
}

.cto-hero,
.cto-page-hero {
  position: relative;
  overflow: hidden;
}

.cto-hero {
  padding: 8rem 0 5rem;
  min-height: 82vh;
}

.cto-page-hero {
  padding: 5rem 0 2rem;
}

.cto-hero::before,
.cto-page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(212, 160, 23, 0.24), transparent 28%),
    radial-gradient(circle at 80% 20%, rgba(184, 134, 11, 0.18), transparent 25%),
    linear-gradient(120deg, rgba(255, 255, 255, 0.2), rgba(212, 160, 23, 0.05), rgba(255, 255, 255, 0.18));
  animation: cto-shimmer 12s linear infinite;
}

.cto-hero-inner,
.cto-page-hero .cto-shell {
  position: relative;
  z-index: 1;
}

.cto-kicker,
.cto-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--cto-burgundy);
  margin: 0 0 1rem;
}

.cto-hero h1,
.cto-page-hero h1,
.cto-section-heading h2,
.cto-trust-banner h2 {
  font-family: "Lora", serif;
}

.cto-hero h1,
.cto-page-hero h1 {
  font-size: clamp(2.6rem, 5vw, 4.8rem);
  line-height: 1.08;
  max-width: 12ch;
  margin: 0 auto 1rem;
  text-align: center;
}

.cto-hero-subline,
.cto-page-hero p {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  font-size: 1.08rem;
  font-style: italic;
  color: var(--cto-muted);
}

.cto-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.95rem 1.4rem;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.cto-button-primary {
  background: linear-gradient(180deg, #e6bf52, var(--cto-gold));
  color: #24180f;
  box-shadow: 0 12px 26px rgba(184, 134, 11, 0.25);
}

.cto-button-primary:hover,
.cto-button-primary:focus-visible {
  background: var(--cto-burgundy);
  color: #fff;
  transform: translateY(-2px);
}

.cto-button-secondary {
  border: 1px solid rgba(127, 29, 29, 0.2);
  background: #fff;
  color: var(--cto-burgundy);
}

.cto-hero .cto-button {
  margin: 2rem auto 0;
}

.cto-gold-divider {
  width: 180px;
  height: 2px;
  margin: 2rem auto 0;
  background: linear-gradient(90deg, transparent, var(--cto-gold), transparent);
}

.cto-hero-particles {
  position: absolute;
  inset: 0;
}

.cto-particle {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 227, 145, 0.95) 0%, rgba(212, 160, 23, 0.25) 70%, transparent 100%);
  animation: cto-float 14s linear infinite;
}

.cto-particle:nth-child(1) { left: 8%; top: 80%; animation-delay: 0s; }
.cto-particle:nth-child(2) { left: 18%; top: 62%; animation-delay: -3s; }
.cto-particle:nth-child(3) { left: 33%; top: 92%; animation-delay: -6s; }
.cto-particle:nth-child(4) { left: 46%; top: 70%; animation-delay: -2s; }
.cto-particle:nth-child(5) { left: 57%; top: 88%; animation-delay: -5s; }
.cto-particle:nth-child(6) { left: 68%; top: 66%; animation-delay: -8s; }
.cto-particle:nth-child(7) { left: 78%; top: 84%; animation-delay: -1s; }
.cto-particle:nth-child(8) { left: 88%; top: 76%; animation-delay: -7s; }
.cto-particle:nth-child(9) { left: 94%; top: 58%; animation-delay: -4s; }

.cto-hero-stats,
.cto-criteria-grid,
.cto-about-grid,
.cto-content-grid,
.cto-warning-grid,
.cto-contact-grid {
  display: grid;
  gap: 1.5rem;
}

.cto-hero-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 3rem;
}

.cto-stat-card,
.cto-criteria-card,
.cto-about-card,
.cto-content-card,
.cto-news-item,
.cto-warning-card,
.cto-trust-banner,
.cto-casino-card,
.cto-cookie-popup {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--cto-border);
  border-radius: var(--cto-radius);
  box-shadow: var(--cto-shadow);
}

.cto-stat-card {
  padding: 1.4rem;
  text-align: center;
}

.cto-stat-card strong {
  display: block;
  font-size: 2rem;
  color: var(--cto-burgundy);
}

.cto-section {
  padding: 2rem 0 4rem;
}

.cto-section-heading {
  margin-bottom: 2rem;
}

.cto-section-heading h2 {
  font-size: clamp(2rem, 3.6vw, 3rem);
  margin: 0;
}

.cto-criteria-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cto-criteria-card,
.cto-about-card,
.cto-content-card,
.cto-news-item,
.cto-warning-card {
  padding: 1.6rem;
}

.cto-criteria-card h3,
.cto-about-card h3,
.cto-content-card h3,
.cto-news-item h3,
.cto-warning-card h3,
.cto-casino-heading h3 {
  margin-top: 0;
  margin-bottom: 0.8rem;
  font-size: 1.2rem;
  color: var(--cto-burgundy);
}

.cto-about-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cto-card-stack {
  display: grid;
  gap: 1rem;
}

.cto-casino-card {
  display: grid;
  grid-template-columns: 140px 1fr 160px;
  gap: 1.3rem;
  align-items: center;
  padding: 1rem 1.1rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.cto-casino-card.is-hovered {
  transform: translateY(-4px);
  border-color: rgba(127, 29, 29, 0.28);
  box-shadow: var(--cto-shadow-strong);
}

.cto-logo-wrap {
  width: 130px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--cto-logo-bg);
}

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

.cto-casino-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cto-rating {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: #fff6dc;
  color: var(--cto-burgundy);
  font-weight: 800;
}

.cto-bonus {
  margin: 0.3rem 0 0.8rem;
  font-size: 1.35rem;
  font-weight: 800;
  color: #55350c;
}

.cto-feature-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.cto-feature-pills span {
  padding: 0.38rem 0.7rem;
  border-radius: 999px;
  background: #fdf6e5;
  border: 1px solid rgba(184, 134, 11, 0.2);
  font-weight: 700;
  color: #6f521c;
  font-size: 0.9rem;
}

.cto-card-note {
  margin-bottom: 0;
  color: var(--cto-muted);
  font-size: 0.92rem;
}

.cto-casino-cta {
  display: flex;
  justify-content: flex-end;
}

.cto-content-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cto-content-card:last-child {
  grid-column: span 2;
}

.cto-news-feed {
  display: grid;
  gap: 1rem;
}

.cto-news-item {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 1.2rem;
  align-items: start;
}

.cto-news-date {
  font-weight: 800;
  color: var(--cto-gold-deep);
}

.cto-rg-intro {
  max-width: 820px;
  margin-top: 0;
  font-size: 1.05rem;
}

.cto-warning-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cto-rg-links,
.cto-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.2rem;
}

.cto-rg-links {
  margin-top: 1.6rem;
  align-items: center;
}

.cto-rg-links a,
.cto-footer-links a,
.cto-footer-meta a {
  color: var(--cto-burgundy);
  font-weight: 700;
}

.cto-age-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 42px;
  border-radius: 50%;
  background: var(--cto-burgundy);
  color: #fff;
  font-weight: 800;
}

.cto-site-footer {
  padding: 0 0 3rem;
}

.cto-trust-banner {
  padding: 1.6rem;
  margin-bottom: 1.5rem;
}

.cto-trust-banner p,
.cto-footer-meta,
.cto-footer-copy {
  margin: 0;
}

.cto-footer-meta {
  margin-top: 1.5rem;
}

.cto-footer-copy {
  margin-top: 0.9rem;
  color: var(--cto-muted);
}

.cto-cookie-popup {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  width: min(360px, calc(100% - 2rem));
  padding: 1rem;
  z-index: 1100;
}

.cto-cookie-popup.is-hidden {
  display: none;
}

.cto-cookie-actions {
  display: flex;
  gap: 0.8rem;
  margin-top: 1rem;
}

.cto-scroll-top {
  position: fixed;
  right: 1rem;
  bottom: 9rem;
  border: 0;
  border-radius: 999px;
  background: var(--cto-burgundy);
  color: #fff;
  font-weight: 800;
  padding: 0.85rem 1rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: 0.25s ease;
  z-index: 1000;
}

.cto-scroll-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.cto-inner-page {
  min-height: 60vh;
}

.cto-legal-layout {
  display: grid;
  gap: 1.1rem;
}

.cto-legal-layout section {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--cto-border);
  border-radius: 22px;
  padding: 1.4rem;
  box-shadow: var(--cto-shadow);
}

.cto-legal-layout h2 {
  margin-top: 0;
  font-family: "Lora", serif;
  color: var(--cto-burgundy);
}

@keyframes cto-float {
  0% { transform: translate3d(0, 0, 0) scale(0.9); opacity: 0; }
  10% { opacity: 1; }
  100% { transform: translate3d(-10px, -520px, 0) scale(1.35); opacity: 0; }
}

@keyframes cto-shimmer {
  0% { transform: translateX(-2%); }
  50% { transform: translateX(2%); }
  100% { transform: translateX(-2%); }
}

@media (max-width: 980px) {
  .cto-criteria-grid,
  .cto-about-grid,
  .cto-content-grid,
  .cto-warning-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cto-content-card:last-child {
    grid-column: auto;
  }

  .cto-casino-card {
    grid-template-columns: 130px 1fr;
  }

  .cto-casino-cta {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .cto-news-item {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .cto-site-header {
    top: 0;
  }

  .cto-nav {
    border-radius: 24px;
  }

  .cto-nav-toggle {
    display: inline-block;
  }

  .cto-nav-menu {
    position: absolute;
    top: calc(100% + 0.6rem);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
    background: rgba(250, 247, 240, 0.97);
    border: 1px solid rgba(127, 29, 29, 0.08);
    border-radius: 20px;
    box-shadow: var(--cto-shadow);
  }

  .cto-nav-menu.is-open {
    display: flex;
  }

  .cto-hero {
    padding-top: 6rem;
  }

  .cto-hero h1,
  .cto-page-hero h1 {
    max-width: 11ch;
  }

  .cto-hero-stats,
  .cto-criteria-grid,
  .cto-about-grid,
  .cto-content-grid,
  .cto-warning-grid,
  .cto-contact-grid {
    grid-template-columns: 1fr;
  }

  .cto-casino-card {
    grid-template-columns: 1fr;
  }

  .cto-logo-wrap {
    width: 140px;
  }
}
