:root {
  --bg-main: #f7faf9;
  --bg-alt: #eef7f5;
  --surface: #ffffff;
  --header-bg: #173b3a;
  --text-main: #17302f;
  --text-muted: #617573;
  --accent-primary: #159b92;
  --accent-hover: #0f7d76;
  --accent-soft: #dff5f1;
  --border-color: #dce9e6;
  --font-main: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --container-width: 1180px;
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 30px;
  --shadow-sm: 0 8px 24px rgba(23, 59, 58, .07);
  --shadow-md: 0 18px 48px rgba(23, 59, 58, .11);
}

html { scroll-behavior: smooth; }
body {
  background: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-main);
  font-size: 17px;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
}
html, body { width: 100%; max-width: 100%; overflow-x: hidden; }
::selection { color: #fff; background: var(--accent-primary); }
img { border-radius: var(--radius-sm); }
a { color: var(--accent-primary); transition: color .2s ease, background .2s ease, transform .2s ease, box-shadow .2s ease; }
a:hover { color: var(--accent-hover); }

.container {
  width: calc(100% - 40px);
  max-width: var(--container-width);
  padding: 0;
}

h1, h2, h3, h4 {
  color: var(--header-bg);
  letter-spacing: -.025em;
}
h1 {
  max-width: 980px;
  margin: 0 auto 24px;
  font-size: clamp(2.35rem, 5.5vw, 4.7rem);
  line-height: 1.04;
  text-align: center;
  text-transform: none;
}
h2 {
  margin-top: 64px;
  padding: 0;
  border: 0;
  font-size: clamp(1.8rem, 3vw, 2.65rem);
  line-height: 1.15;
}
h3 { margin-top: 32px; font-size: clamp(1.3rem, 2vw, 1.65rem); }
p { margin-bottom: 20px; }
ul, ol { padding-left: 24px; }
li { margin-bottom: 10px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  border: 0;
  background: rgba(255, 255, 255, .94);
  background-image: none;
  box-shadow: 0 1px 0 rgba(23, 59, 58, .09);
  backdrop-filter: blur(18px);
}
.header-inner {
  width: calc(100% - 40px);
  max-width: var(--container-width);
  height: 82px;
  padding: 0;
}
.logo { display: inline-flex; align-items: center; }
.logo img {
  width: auto;
  max-height: 52px;
  border-radius: 0;
  object-fit: contain;
}
.header-actions { gap: 12px; color: var(--text-muted); }
.btn-auth, .btn-play, button, input[type="submit"] {
  min-height: 46px;
  padding: 11px 20px;
  border: 0;
  border-radius: 999px;
  background: var(--accent-primary);
  background-image: none;
  box-shadow: 0 8px 20px rgba(21, 155, 146, .2);
  color: #fff;
  font: inherit;
  font-weight: 750;
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
}
.btn-auth:hover, .btn-play:hover, button:hover, input[type="submit"]:hover {
  background: var(--accent-hover);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(21, 155, 146, .26);
}
.hamburger, .mandatory-header-burger__button {
  display: inline-grid;
  width: 46px;
  height: 46px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--border-color);
  border-radius: 50%;
  background: var(--surface);
  color: var(--header-bg);
  box-shadow: none;
  font-size: 24px;
}
.hamburger:hover, .mandatory-header-burger__button:hover {
  border-color: var(--accent-primary);
  background: var(--accent-soft);
  color: var(--accent-hover);
  transform: none;
}
.menu-dropdown, .mandatory-header-burger__panel {
  top: 70px;
  right: 0;
  width: min(340px, calc(100vw - 28px));
  padding: 10px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, .98);
  box-shadow: var(--shadow-md);
}
.menu-dropdown a, .mandatory-header-burger__panel a {
  display: block;
  padding: 11px 14px;
  border: 0;
  border-radius: 10px;
  color: var(--text-main);
  font-size: .94rem;
  font-weight: 650;
}
.menu-dropdown a:hover, .mandatory-header-burger__panel a:hover {
  background: var(--accent-soft);
  color: var(--accent-hover);
}

.hero-section {
  min-height: 500px;
  display: grid;
  place-items: center;
  margin: 0 0 76px;
  padding: 70px 0;
  border: 0;
  border-radius: 0 0 42px 42px;
  background-position: center 46%;
  background-size: cover;
  overflow: hidden;
}
.hero-section::before {
  background:
    linear-gradient(90deg, rgba(10, 42, 41, .88) 0%, rgba(10, 42, 41, .67) 52%, rgba(10, 42, 41, .38) 100%);
}
.hero-content {
  width: calc(100% - 40px);
  max-width: var(--container-width);
  padding: 36px 0;
}
.hero-content h1 {
  color: #fff;
  text-shadow: 0 4px 30px rgba(0, 0, 0, .22);
}
.featured-snippet {
  max-width: 760px;
  color: rgba(255,255,255,.92);
  font-size: clamp(1.05rem, 1.7vw, 1.28rem);
  line-height: 1.65;
  font-weight: 450;
  text-shadow: none;
}

.main-content {
  width: calc(100% - 40px);
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 0 84px;
}

.affiliate-listing {
  max-width: var(--container-width);
  margin: 0 auto 84px;
}
.listing-heading {
  max-width: 820px;
  margin: 0 auto 34px;
  text-align: center;
}
.listing-heading h2 {
  margin: 10px 0 0;
}
.affiliate-card {
  margin-bottom: 18px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--surface);
  background-image: none;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.affiliate-card:hover {
  border-color: rgba(21,155,146,.45);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.affiliate-card .card-main {
  display: grid;
  grid-template-columns: minmax(190px, .75fr) minmax(300px, 2fr) minmax(180px, .7fr);
  gap: 26px;
  align-items: center;
  padding: 26px 28px;
}
.affiliate-card .card-brand {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-width: 0;
}
.affiliate-card .card-brand h3 {
  margin: 0;
  color: var(--accent-hover);
  font-size: 1.25rem;
  line-height: 1.2;
}
.affiliate-card .stars {
  margin: 7px 0 9px;
  color: #f59e0b;
  font-size: 1.05rem;
  line-height: 1;
  letter-spacing: .04em;
  white-space: nowrap;
}
.affiliate-card .stars span {
  margin-left: 5px;
  font-size: .92rem;
  font-weight: 700;
  letter-spacing: 0;
}
.affiliate-card .trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0;
}
.affiliate-card .trust-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 9px;
  border-radius: 7px;
  background: var(--bg-alt);
  color: var(--text-muted);
  font-size: .72rem;
  font-weight: 700;
}
.casino-monogram {
  display: inline-grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 16px;
  background: var(--accent-soft);
  color: var(--accent-hover);
  font-size: .9rem;
  font-weight: 900;
  letter-spacing: .04em;
}
.affiliate-card .card-offer {
  min-width: 0;
}
.affiliate-card .card-offer p {
  margin: 0;
  color: var(--text-main);
  font-size: 1rem;
  line-height: 1.6;
  font-weight: 500;
}
.affiliate-card .card-action {
  min-width: 0;
  text-align: right;
}
.affiliate-card .btn-play {
  display: inline-flex;
  width: auto;
  min-width: 166px;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border: 0;
  border-radius: 999px;
  background: var(--accent-primary);
  background-image: none;
  box-shadow: 0 8px 20px rgba(21,155,146,.2);
  color: #fff;
  font-size: .95rem;
  font-weight: 800;
  text-transform: none;
}
.affiliate-card .btn-play:hover {
  background: var(--accent-hover);
  color: #fff;
  transform: translateY(-2px);
}
.affiliate-card .card-details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px;
  padding: 26px 28px 28px;
  border-top: 1px solid var(--border-color);
  background: #fbfdfc;
  color: var(--text-main);
}
.affiliate-card .detail-block {
  min-width: 0;
}
.affiliate-card .detail-block h4 {
  margin: 0 0 12px;
  color: var(--header-bg);
  font-size: 1rem;
  font-weight: 850;
}
.affiliate-card .detail-block p,
.affiliate-card .detail-block ul {
  margin: 0;
  color: var(--text-muted);
  font-size: .91rem;
  line-height: 1.65;
}
.affiliate-card .detail-block ul {
  padding-left: 19px;
}
.affiliate-card .detail-block li {
  margin-bottom: 6px;
}
.main-content > p,
.main-content > ul,
.main-content > ol,
.main-content > h2,
.main-content > h3,
.main-content > .table-scroll-wrap,
.main-content > .answer-box,
.main-content > .note-box,
.main-content > .author-block {
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}

.answer-box, .note-box, .author-block,
.contact-form-wrapper, .contact-form-container {
  margin-top: 34px;
  margin-bottom: 42px;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid var(--border-color);
  border-left: 0;
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.answer-box {
  position: relative;
  border-top: 4px solid var(--accent-primary);
}
.answer-box-label {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-hover);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.note-box { background: var(--accent-soft); }

.payments-showcase, .game-catalog, .faq-section {
  margin-top: 76px;
  padding: clamp(34px, 6vw, 70px);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.logo-grid, .game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: 18px;
}
.logo-tile, .game-tile {
  min-height: 132px;
  padding: 22px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: none;
}
.logo-tile:hover, .game-tile:hover {
  border-color: rgba(21, 155, 146, .45);
  background: #fbfefd;
  transform: translateY(-5px);
  box-shadow: var(--shadow-sm);
}
.game-icon { color: var(--accent-primary); font-size: 2rem; }
.game-title { color: var(--header-bg); font-weight: 800; }
.game-provider { color: var(--text-muted); font-size: .88rem; }
.tabs { gap: 8px; padding: 6px; border-radius: 999px; background: var(--bg-alt); }
.tab { border-radius: 999px; }
.tab.active { background: var(--accent-primary); color: #fff; }

.table-scroll-wrap {
  margin-top: 28px;
  margin-bottom: 42px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
table { margin: 0; border: 0; background: transparent; }
th {
  border-color: var(--border-color);
  background: var(--header-bg);
  color: #fff;
  font-size: .86rem;
  letter-spacing: .03em;
  text-transform: uppercase;
}
td { border-color: var(--border-color); }
tbody tr:nth-child(even) { background: var(--bg-alt); }
tbody tr:hover { background: var(--accent-soft); }

.faq-section { max-width: 980px; margin-left: auto; margin-right: auto; }
.faq-item {
  margin-bottom: 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: var(--surface);
  overflow: hidden;
}
.faq-q {
  padding: 20px 22px;
  background: transparent;
  color: var(--header-bg);
  font-size: 1.02rem;
  font-weight: 800;
}
.faq-a { padding: 0 22px 22px; color: var(--text-muted); }

input, textarea, select {
  width: 100%;
  min-height: 50px;
  padding: 12px 15px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text-main);
  font: inherit;
  outline: none;
}
textarea { min-height: 160px; resize: vertical; }
input:focus, textarea:focus, select:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 4px rgba(21, 155, 146, .12);
}

.kativo-required-logos {
  padding: 64px 0;
  background: var(--bg-alt);
}
.kativo-required-logos__inner {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.72);
  box-shadow: none;
}
.kativo-required-logos__tile {
  border-color: var(--border-color);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.site-footer {
  margin-top: 0;
  padding: 60px 20px 30px;
  border-top: 0;
  background: var(--header-bg);
  color: rgba(255,255,255,.74);
}
.site-footer a { color: rgba(255,255,255,.88); }
.site-footer a:hover { color: #79ddd4; }
.site-footer nav {
  gap: 12px 28px;
  margin-bottom: 28px;
}
.site-footer nav a { font-weight: 700; }
.footer-contact, .footer-bottom {
  border-color: rgba(255,255,255,.12);
  color: rgba(255,255,255,.65);
}
.responsible-badge-links a {
  border-color: rgba(255,255,255,.2);
  border-radius: 999px;
  color: #fff;
}
.responsible-help-line { color: rgba(255,255,255,.66); }

@media (max-width: 820px) {
  body { font-size: 16px; }
  .container, .main-content, .hero-content, .header-inner { width: calc(100% - 28px); }
  .header-inner { height: 70px; }
  .logo img { max-width: 180px; max-height: 44px; }
  .header-actions { gap: 8px; }
  .casino-review-link, .btn-auth { display: none; }
  .hero-section {
    min-height: 430px;
    margin-bottom: 52px;
    padding: 50px 0;
    border-radius: 0 0 28px 28px;
  }
  .hero-section::before { background: rgba(10, 42, 41, .72); }
  .main-content { padding-bottom: 60px; }
  h2 { margin-top: 48px; }
  .payments-showcase, .game-catalog, .faq-section {
    margin-top: 52px;
    padding: 26px 18px;
    border-radius: var(--radius-md);
  }
  .logo-grid, .game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .logo-tile, .game-tile { min-height: 112px; padding: 16px 12px; }
  .answer-box, .note-box, .author-block, .contact-form-wrapper, .contact-form-container {
    padding: 24px 20px;
  }
  .table-scroll-wrap { border-radius: var(--radius-sm); }
  .site-footer { padding-top: 46px; }
}

@media (max-width: 480px) {
  h1 { font-size: clamp(2.05rem, 11vw, 3rem); }
  h2 { font-size: 1.75rem; }
  .logo img { max-width: 150px; }
  .hero-section { min-height: 390px; }
  .logo-grid, .game-grid { grid-template-columns: 1fr 1fr; }
  .faq-q { padding: 17px; }
  .faq-a { padding: 0 17px 18px; }
}

/* Final local-preview and legacy-override layer */
:root { --header-height: 82px; }

body .site-header {
  height: var(--header-height);
  border-bottom: 0 !important;
  background: rgba(255,255,255,.96) !important;
  background-image: none !important;
}
body .header-inner { height: var(--header-height); }
body .header-actions {
  min-width: 46px;
  margin-left: auto;
  font-size: 0;
  color: transparent;
}
body .header-actions > * { font-size: 16px; }
body .header-actions > .casino-review-link,
body .header-actions > .btn-auth { display: none !important; }

body .logo {
  width: 300px;
  height: 62px;
  flex: 0 0 300px;
  border-radius: 0;
  background: url("./casino-logo.svg") left center / contain no-repeat;
}
body .logo img {
  display: none;
}
body .logo::after {
  content: none;
}

body .hero-section {
  min-height: 520px;
  border: 0 !important;
  background:
    radial-gradient(circle at 78% 20%, rgba(255,255,255,.75), transparent 25%),
    linear-gradient(135deg, #e3f7f3 0%, #bcece5 52%, #83d9d0 100%) !important;
  color: var(--text-main) !important;
}
body .hero-section::before { display: none !important; }
body .hero-content h1 {
  width: 100%;
  max-width: 100%;
  color: var(--header-bg) !important;
  overflow-wrap: anywhere;
  text-shadow: none !important;
}
body .featured-snippet {
  width: 100%;
  max-width: 760px;
  color: #365b58 !important;
  overflow-wrap: anywhere;
  text-shadow: none !important;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  margin-top: 12px;
  padding: 13px 24px;
  border-radius: 999px;
  background: var(--accent-primary);
  box-shadow: 0 12px 26px rgba(21,155,146,.24);
  color: #fff !important;
  font-weight: 800;
}
.hero-cta:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}

body .menu-dropdown {
  position: fixed !important;
  top: var(--header-height) !important;
  right: 0 !important;
  bottom: auto !important;
  width: min(360px, 100vw) !important;
  height: calc(100dvh - var(--header-height)) !important;
  max-height: none !important;
  padding: 14px !important;
  border-radius: 0 0 0 22px !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
body .mandatory-header-burger--sheet .mandatory-header-burger__panel {
  position: fixed !important;
  top: var(--header-height) !important;
  right: 0 !important;
  bottom: auto !important;
  left: auto !important;
  width: min(360px, 100vw) !important;
  height: calc(100dvh - var(--header-height)) !important;
  max-height: none !important;
  padding: 14px 18px 28px !important;
  border-radius: 0 0 0 22px !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
body .mandatory-header-burger__panel a {
  color: var(--text-main) !important;
}
body .mandatory-header-burger__panel a:hover {
  background: var(--accent-soft) !important;
  color: var(--accent-hover) !important;
}
body .site-header:has(.mandatory-header-burger-nav) .header-actions {
  display: none !important;
}
body .mandatory-header-burger-nav {
  position: absolute !important;
  top: 18px !important;
  right: max(20px, calc((100vw - var(--container-width)) / 2)) !important;
  z-index: 1003 !important;
}
body .mandatory-header-burger__button {
  border: 1px solid var(--border-color) !important;
  background: var(--surface) !important;
  color: var(--header-bg) !important;
  box-shadow: none !important;
}
body .mandatory-header-burger__button span {
  background: currentColor !important;
}

@media (max-width: 820px) {
  :root { --header-height: 70px; }
  body .header-inner,
  body .hero-content,
  body .container,
  body .main-content {
    width: calc(100vw - 28px) !important;
    max-width: calc(100vw - 28px) !important;
  }
  body .logo { width: 232px; height: 52px; flex-basis: 232px; }
  body .hamburger,
  body .mandatory-header-burger__button {
    display: inline-grid !important;
    flex: 0 0 46px;
  }
  body .mandatory-header-burger-nav {
    top: 12px !important;
    right: 14px !important;
  }
  body .hero-section { min-height: 440px; }
  body .hero-section {
    width: 100vw !important;
    max-width: 100vw !important;
    grid-template-columns: minmax(0, 1fr);
  }
  body .hero-content h1 {
    white-space: normal !important;
    word-break: normal;
  }
  body .hero-content,
  body .main-content,
  body .answer-box,
  body .note-box {
    min-width: 0;
    max-width: calc(100vw - 28px);
  }
  body .answer-box,
  body .note-box,
  body .faq-section,
  body .payments-showcase,
  body .game-catalog {
    width: 100% !important;
    box-sizing: border-box;
  }
  .affiliate-listing {
    width: calc(100vw - 28px);
    max-width: calc(100vw - 28px);
    margin-bottom: 60px;
  }
  .affiliate-card .card-main {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 22px;
  }
  .affiliate-card .card-action {
    text-align: left;
  }
  .affiliate-card .btn-play {
    width: 100%;
  }
  .affiliate-card .card-brand {
    grid-template-columns: 52px minmax(0, 1fr);
  }
  .affiliate-card .card-details {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 22px;
  }
}
@media (max-width: 390px) {
  body .logo { width: 202px; height: 46px; flex-basis: 202px; }
  body .menu-dropdown,
  body .mandatory-header-burger--sheet .mandatory-header-burger__panel {
    width: 100vw !important;
    border-radius: 0 !important;
  }
}
