:root {
  --ink: #10282b;
  --ink-2: #173f43;
  --deep: #082f34;
  --deep-2: #0c444a;
  --accent: #ff6a3d;
  --accent-soft: #ffddcf;
  --mint: #b7e7d3;
  --cream: #f4f0e7;
  --paper: #fffdf8;
  --white: #ffffff;
  --muted: #647476;
  --line: #d8e0dc;
  --shadow: 0 18px 45px rgba(10, 48, 53, 0.12);
  --radius-lg: 30px;
  --radius-md: 20px;
  --shell: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 82px; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.02; letter-spacing: -0.045em; }
h1 { margin-bottom: 22px; font-size: clamp(3.2rem, 7vw, 6.8rem); }
h2 { margin-bottom: 20px; font-size: clamp(2.15rem, 4.8vw, 4.1rem); }
h3 { margin-bottom: 10px; font-size: 1.45rem; }
.shell { width: min(calc(100% - 40px), var(--shell)); margin-inline: auto; }

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 999;
  padding: 10px 14px;
  color: #fff;
  background: #000;
  border-radius: 8px;
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  color: var(--white);
  background: rgba(8, 47, 52, 0.97);
  border-bottom: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(16px);
}
.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
}
.header-title {
  display: inline-block;
  font-size: clamp(1.15rem, 2.3vw, 1.55rem);
  font-weight: 950;
  line-height: 1;
  letter-spacing: -0.035em;
}
.header-title:hover,
.header-title:focus-visible { color: var(--mint); }

.hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px) 0 0 / 36px 36px,
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px) 0 0 / 36px 36px,
    linear-gradient(135deg, var(--deep) 0%, var(--deep-2) 100%);
}
.hero::after {
  content: "";
  position: absolute;
  left: -6%;
  right: -6%;
  bottom: -70px;
  height: 115px;
  background: var(--cream);
  border-radius: 50% 50% 0 0 / 75% 75% 0 0;
}
.hero-grid {
  min-height: 420px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(330px, 0.8fr);
  align-items: center;
  gap: 60px;
  padding-block: 52px 96px;
}
.overline {
  margin-bottom: 16px;
  color: var(--mint);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.overline.dark { color: var(--accent); }
.hero-copy h1 span { color: var(--mint); }
.hero-intro { max-width: 680px; margin-bottom: 24px; color: rgba(255,255,255,0.76); font-size: 1.08rem; }
.hero-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 850;
}
.hero-link span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: var(--deep);
  background: var(--mint);
  border-radius: 50%;
}
.hero-visual { position: relative; min-height: 270px; }
.coin {
  position: absolute;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-weight: 950;
  line-height: 1;
}
.coin-main {
  top: 8px;
  right: 42px;
  width: 210px;
  height: 210px;
  color: var(--deep);
  background: var(--mint);
  border: 12px solid rgba(255,255,255,0.28);
  font-size: 5.7rem;
  transform: rotate(8deg);
  box-shadow: 0 28px 55px rgba(0,0,0,0.24);
}
.coin-back {
  left: 20px;
  bottom: 28px;
  width: 128px;
  height: 128px;
  color: #fff;
  background: var(--accent);
  border: 8px solid rgba(255,255,255,0.22);
  font-size: 3.3rem;
  transform: rotate(-14deg);
}
.visual-note {
  position: absolute;
  right: 0;
  bottom: 4px;
  width: 230px;
  padding: 17px 19px;
  color: var(--ink);
  background: var(--paper);
  border-radius: 18px;
  box-shadow: 0 20px 35px rgba(0,0,0,0.19);
}
.visual-note b, .visual-note span { display: block; }
.visual-note b { margin-bottom: 4px; }
.visual-note span { color: var(--muted); font-size: 0.84rem; line-height: 1.35; }

.ranking { padding-block: 24px 90px; }
.section-title {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  align-items: end;
  gap: 55px;
  margin-bottom: 32px;
}
.section-title h2 { margin-bottom: 0; }
.section-title > p { margin-bottom: 7px; color: var(--muted); }
.casino-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 22px;
}

.casino-card {
  position: relative;
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: 178px minmax(0, 1fr);
  grid-template-areas:
    "top top"
    "logo name"
    "logo bonus"
    "actions actions";
  column-gap: 26px;
  row-gap: 12px;
  padding: 22px;
  background: var(--paper);
  border: 1px solid rgba(23,63,67,0.12);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 24px rgba(10,48,53,0.07);
  transition: transform .2s ease, box-shadow .2s ease;
}
.casino-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.casino-card.featured { background: linear-gradient(145deg, #fffdf8 0%, #effbf6 100%); border-color: rgba(255,106,61,0.42); }
.card-topline { grid-area: top; display: flex; align-items: center; justify-content: space-between; min-height: 34px; }
.rank {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  font-weight: 950;
  letter-spacing: 0.15em;
}
.rank::after { content: ""; width: 48px; height: 2px; background: var(--accent); }
.status { padding: 6px 11px; color: var(--deep); background: var(--mint); border-radius: 999px; font-size: 0.69rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.08em; }
.logo-placeholder {
  grid-area: logo;
  min-height: 154px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #9baaa7;
  background:
    linear-gradient(135deg, rgba(183,231,211,0.46), rgba(255,255,255,0.85)),
    repeating-linear-gradient(45deg, transparent 0 10px, rgba(8,47,52,0.03) 10px 20px);
  border: 1px dashed #aabbb7;
  border-radius: 24px;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}
.logo-placeholder img { width: 100%; height: 100%; object-fit: contain; padding: 12px; }
.logo-placeholder.logo-filled {
  color: inherit;
  background: #fff;
  border-style: solid;
  border-color: rgba(16,40,43,0.08);
}
.brand-logo {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin-inline: auto;
  object-fit: contain;
  padding: 8px;
}
.logo-spinsofglory { padding: 5px; }
.logo-7bitcasino { padding: 4px; }
.logo-qbet { padding: 5px; }
.logo-goldenplay { padding: 6px; }
.logo-wintino { padding: 3px; }
.logo-nikaspin { padding: 4px; }
.logo-golazzo { padding: 4px; }
.logo-westace { padding: 4px; }
.logo-malina { padding: 2px; }
.logo-minocasino { padding: 5px; }
.logo-golisimo { padding: 4px; }
.logo-vegazone { padding: 4px; }
.logo-yepcasino { padding: 4px; }
.logo-stonevegas { padding: 1px; }

.casino-card h3 {
  grid-area: name;
  min-width: 0;
  align-self: end;
  margin: 0;
  font-size: clamp(1.55rem, 2.4vw, 2.05rem);
  overflow-wrap: anywhere;
}
.bonus-placeholder {
  grid-area: bonus;
  min-height: 74px;
  padding: 12px 14px;
  background: #f5f2ea;
  border: 1px dashed #c9c6bd;
  border-radius: 15px;
}
.bonus-placeholder small { display: block; margin-bottom: 7px; color: var(--muted); font-size: 0.67rem; font-weight: 900; letter-spacing: 0.1em; text-transform: uppercase; }
.bonus-placeholder::after { content: ""; display: block; width: 70%; height: 12px; border-radius: 999px; background: rgba(16,40,43,0.08); box-shadow: 0 21px 0 rgba(16,40,43,0.055); }

.bonus-placeholder.has-bonus {
  min-height: 94px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-style: solid;
  border-color: rgba(23,63,67,0.12);
  background: #f7f3ea;
}
.bonus-placeholder.has-bonus::after { display: none; }
.bonus-placeholder.has-bonus strong {
  display: block;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.35;
  letter-spacing: -0.015em;
  overflow-wrap: anywhere;
}
.bonus-placeholder.bonus-missing {
  min-height: 94px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.bonus-placeholder.bonus-missing::after { display: none; }
.bonus-placeholder.bonus-missing span {
  color: var(--muted);
  font-weight: 750;
}
.card-actions {
  grid-area: actions;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 12px;
  padding-top: 4px;
}
.score { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 11px 14px; background: #edf1ed; border-radius: 15px; }
.score small { color: var(--muted); font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; }
.score strong { white-space: nowrap; }
/* CTA button: specific selectors prevent themes/frameworks from overriding it */
.card-actions > a.btn-primary,
.casino-card .card-actions > a.btn-primary {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 132px;
  min-height: 48px;
  padding: 12px 17px !important;
  color: #ffffff !important;
  background: #082f34 !important;
  border: 0 !important;
  border-radius: 15px !important;
  box-shadow: none !important;
  font: inherit;
  font-weight: 900 !important;
  line-height: 1.2 !important;
  text-align: center;
  text-decoration: none !important;
  white-space: nowrap;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}

.card-actions > a.btn-primary:hover,
.card-actions > a.btn-primary:focus-visible,
.casino-card .card-actions > a.btn-primary:hover,
.casino-card .card-actions > a.btn-primary:focus-visible {
  color: #ffffff !important;
  background: #ff6a3d !important;
  box-shadow: 0 10px 22px rgba(255, 106, 61, 0.22) !important;
  transform: translateY(-1px);
  outline: none;
}


.editorial { padding-block: 90px; background: var(--paper); }
.editorial-grid { display: grid; grid-template-columns: minmax(300px, 0.82fr) minmax(0, 1.18fr); gap: 80px; align-items: start; }
.editorial-lead { position: sticky; top: 110px; }
.editorial-lead p:last-child { color: var(--muted); }
.criteria-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.criteria-list article {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 24px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}
.criteria-list article > span { color: var(--accent); font-weight: 950; letter-spacing: 0.12em; }
.criteria-list h3 { margin-bottom: 8px; }
.criteria-list p { margin-bottom: 0; color: var(--muted); }

.payments { padding-block: 90px; color: #fff; background: var(--deep); }
.payments-title .overline { color: var(--mint); }
.payments-title > p { color: rgba(255,255,255,0.68); }
.payment-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.payment-grid article {
  min-height: 280px;
  display: flex;
  flex-direction: column;
  padding: 24px;
  background: rgba(255,255,255,0.075);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 24px;
}
.payment-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 38px;
  color: var(--deep);
  background: var(--mint);
  border-radius: 50%;
  font-size: 0.78rem;
  font-weight: 950;
}
.payment-grid h3 { margin-bottom: 12px; }
.payment-grid p { margin-bottom: 22px; color: rgba(255,255,255,0.7); font-size: 0.94rem; }
.payment-grid small { margin-top: auto; padding-top: 15px; color: var(--mint); border-top: 1px solid rgba(255,255,255,0.14); font-weight: 800; }

.trust-strip { background: var(--mint); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-grid div { min-height: 122px; display: grid; align-content: center; padding: 22px 26px; border-right: 1px solid rgba(8,47,52,0.18); }
.trust-grid div:last-child { border-right: 0; }
.trust-grid strong { font-size: 1.35rem; }
.trust-grid span { color: rgba(8,47,52,0.7); font-size: 0.84rem; }

.faq { padding-block: 90px; }
.faq-grid { display: grid; grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1.25fr); gap: 70px; }
.faq-intro p:last-child { color: var(--muted); }
.faq-list { display: grid; gap: 12px; }
details { background: var(--paper); border: 1px solid rgba(23,63,67,0.13); border-radius: 18px; overflow: hidden; }
summary { position: relative; padding: 21px 58px 21px 22px; cursor: pointer; list-style: none; font-weight: 850; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 21px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; display: grid; place-items: center; color: #fff; background: var(--deep); border-radius: 50%; }
details[open] summary::after { content: "−"; background: var(--accent); }
details p { margin: 0; padding: 0 22px 22px; color: var(--muted); }

.site-footer { padding-block: 58px 20px; color: #fff; background: #061f22; }
.footer-grid { display: grid; grid-template-columns: 1fr 1.2fr 0.55fr; gap: 55px; }
.footer-grid strong { display: block; margin-bottom: 9px; }
.footer-grid p { margin-bottom: 0; color: rgba(255,255,255,0.62); font-size: 0.88rem; }
.footer-grid nav { display: grid; align-content: start; gap: 8px; color: var(--mint); font-weight: 750; }
.copyright { margin-top: 42px; padding-top: 18px; color: rgba(255,255,255,0.42); border-top: 1px solid rgba(255,255,255,0.1); font-size: 0.78rem; }

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) 290px; gap: 24px; }
  .coin-main { width: 170px; height: 170px; font-size: 4.5rem; right: 15px; }
  .coin-back { width: 100px; height: 100px; font-size: 2.5rem; left: 0; }
  .visual-note { width: 200px; }
  .casino-grid { grid-template-columns: 1fr; }
  .editorial-grid { gap: 45px; }
  .payment-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  html { scroll-padding-top: 68px; }
  body { font-size: 16px; }
  .shell { width: min(calc(100% - 28px), var(--shell)); }
  .header-inner { min-height: 62px; }
  .header-title { font-size: 1.14rem; }
  .hero-grid { min-height: auto; grid-template-columns: 1fr; padding-block: 34px 76px; }
  .hero-copy h1 { font-size: clamp(3.1rem, 16vw, 4.8rem); }
  .hero-intro { font-size: 0.96rem; }
  .hero-visual { display: none; }
  .ranking { padding-top: 12px; padding-bottom: 64px; }
  .section-title, .editorial-grid, .faq-grid { grid-template-columns: 1fr; gap: 18px; }
  .section-title { margin-bottom: 22px; }
  .section-title > p { font-size: 0.92rem; }
  .casino-card { grid-template-columns: 132px minmax(0, 1fr); padding: 17px; border-radius: 22px; column-gap: 16px; }
  .logo-placeholder { min-height: 124px; border-radius: 18px; }
  .casino-card h3 { font-size: 1.55rem; }
  .bonus-placeholder { min-height: 86px; padding: 10px 12px; }
  .bonus-placeholder.has-bonus strong { font-size: 0.94rem; }
  .card-actions { grid-template-columns: 1fr; }
  .card-actions > a.btn-primary { width: 100%; min-height: 48px; }
  .editorial, .payments, .faq { padding-block: 64px; }
  .editorial-lead { position: static; }
  .criteria-list article { grid-template-columns: 45px minmax(0, 1fr); gap: 10px; padding: 24px 0; }
  .payment-grid { grid-template-columns: 1fr; }
  .payment-grid article { min-height: 235px; }
  .payment-icon { margin-bottom: 25px; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid div { min-height: 105px; border-bottom: 1px solid rgba(8,47,52,0.18); }
  .trust-grid div:nth-child(2) { border-right: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 430px) {
  h2 { font-size: 2.25rem; }
  .header-title { font-size: 1.02rem; }
  .casino-card { grid-template-columns: 112px minmax(0, 1fr); }
  .logo-placeholder { min-height: 108px; }
  .casino-card h3 { font-size: 1.38rem; }
  .score { padding: 10px 12px; }
  .trust-grid { grid-template-columns: 1fr; }
  .trust-grid div { border-right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
