/* Shared compact showcase, natural-flow navigation and information footer. */
html {
  color-scheme: light;
  scroll-padding-top: 1rem;
}

.cashout-skip {
  position: absolute;
  left: 12px;
  top: 8px;
  z-index: 100;
  padding: 12px 16px;
  border-radius: 8px;
  color: #fff;
  background: #0f766e;
  transform: translateY(-160%);
}
.cashout-skip:focus { transform: translateY(0); }

.site-head {
  position: relative !important;
  top: auto !important;
  bottom: auto !important;
}

.head-row { position: relative; min-width: 0; }
.head-row > .brand { min-width: 0; }
.head-row > .btn-play {
  flex: none;
  min-height: 44px;
  justify-content: center;
  white-space: nowrap;
}

.subnav {
  position: relative !important;
  top: auto !important;
  margin-bottom: 1.2rem;
}
.subnav-in { padding-block: .5rem; }
.subnav a { display: inline-flex; align-items: center; min-height: 44px; }

main :is(h1, h2, h3, [id]) { scroll-margin-top: 1rem; }
.site-head :is(a, button, summary),
.cashout-primary-offers :is(a, summary),
.cashout-footer a { touch-action: manipulation; }

:is(a, button, summary, input, select, textarea):focus-visible {
  outline: 3px solid #4f46e5;
  outline-offset: 3px;
}

.hero:has(.cashout-primary-offers) {
  padding: 2rem 0 1.5rem;
  margin-bottom: 1rem;
}
.hero__copy:has(.cashout-primary-offers) {
  grid-column: 1 / -1;
  min-width: 0;
}
.hero__grid:has(.cashout-primary-offers) {
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
}
.hero__copy:has(.cashout-primary-offers) h1 {
  max-width: 30ch;
  text-wrap: balance;
}
.hero__grid:has(.cashout-primary-offers) > .hero__art {
  width: min(100%, 180px);
  max-height: 180px;
  object-fit: contain;
  justify-self: end;
}
.hero__copy:has(.cashout-primary-offers) .hero__btns { margin-top: 1rem; }
.hero__copy:has(.cashout-primary-offers) .byline { margin-top: .8rem; }
.hero__copy:has(.cashout-primary-offers) .factbar { margin-top: 1rem; }

.cashout-primary-offers { min-width: 0; margin: .85rem 0 1rem; }
.cashout-primary-offers > .toplist {
  margin: 0;
  gap: .7rem;
  min-width: 0;
}
/* Each card retains its own sponsored badge and expandable conditions. */
.cashout-primary-offers .sponsored-disclosure { display: none; }
.cashout-primary-offers .offer {
  min-width: 0;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 2px #0a1a2208, 0 12px 26px -20px #0a1a2240;
}
.cashout-primary-offers .offer--1 {
  border-color: #9adad0;
  box-shadow: 0 0 0 1px #05966912, 0 12px 26px -20px #0a1a2240;
}
.cashout-primary-offers .offer::before { height: 2px; }
.cashout-primary-offers .offer:hover { transform: none; border-color: #81c7be; }
.cashout-primary-offers .offer__backdrop { opacity: .25; }
.cashout-primary-offers .offer__rank {
  top: 7px;
  left: 12px;
  padding: 4px 7px;
  border-radius: 5px;
  font-size: .64rem;
}
.cashout-primary-offers .offer__badge {
  top: 7px;
  right: 12px;
  padding: 4px 8px;
  font-size: .54rem;
  letter-spacing: .08em;
  line-height: 1.2;
}
.cashout-primary-offers .offer__body {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) 86px 142px;
  gap: .8rem;
  padding: 29px 12px 10px;
  align-items: center;
  background: linear-gradient(90deg, #fffffff2, #ffffffe6 64%, #ffffffa8);
}
.cashout-primary-offers .offer__body > * { min-width: 0; }
.cashout-primary-offers .offer__logo { height: 50px; border-radius: 10px; }
.cashout-primary-offers .offer__logo img { padding: .4rem .5rem; }
.cashout-primary-offers .offer__wordmark { font-size: 1rem; overflow-wrap: anywhere; }
.cashout-primary-offers .offer__brand {
  margin: 0 0 3px;
  color: #047857;
  font-size: .7rem;
  line-height: 1.2;
}
.cashout-primary-offers .offer__headline {
  margin: 0;
  font-size: clamp(.98rem, .86rem + .3vw, 1.18rem);
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.cashout-primary-offers .offer__score { padding: 2px 3px; background: #ffffffb8; }
.cashout-primary-offers .offer__num {
  color: #047857;
  background: none;
  font-size: 1.36rem;
  line-height: 1.05;
  white-space: nowrap;
}
.cashout-primary-offers .offer__scorelabel {
  font-size: .6rem;
  line-height: 1.2;
  color: #4c6470;
}
.cashout-primary-offers .offer__cta { gap: 0; }
.cashout-primary-offers .offer__cta .btn-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: .6rem .55rem;
  border-radius: 10px;
  font-size: .8rem;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.cashout-primary-offers .offer__terms {
  color: #4c6470;
  background: #f2f6f9c7;
  font-size: .65rem;
}
.cashout-primary-offers .offer__terms summary {
  align-items: center;
  min-height: 30px;
  padding: 5px 12px;
}
.cashout-primary-offers .offer__terms .full {
  padding: 4px 12px 12px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

/* Toplists stays attached to its disclosure, not to the viewport. */
.site-head .toplist-menu summary {
  display: flex;
  align-items: center;
  min-height: 44px;
}
.site-head .nav .toplist-menu .toplist-menu-panel {
  position: absolute !important;
  top: 100%;
  left: auto;
  right: 0;
  width: 650px;
  max-width: calc(100vw - 32px);
  max-height: min(70dvh, 680px);
  background: #fff;
  color: #0a1a22;
  border-color: #cfdbe3;
  box-shadow: 0 18px 48px -18px #0a1a223b;
}
.site-head .nav .toplist-menu .toplist-menu-panel > div { min-width: 0; }
.site-head .nav .toplist-menu .toplist-menu-panel strong { color: #047857; }
.site-head .nav .toplist-menu .toplist-menu-panel a {
  display: flex !important;
  align-items: center;
  min-width: 0;
  max-width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 8px 0;
  color: #334d59 !important;
  white-space: normal !important;
  overflow-wrap: anywhere;
  line-height: 1.4;
}
.site-head .nav .toplist-menu .toplist-menu-panel a:hover { color: #047857 !important; }

.cashout-footer {
  padding: 2.2rem 0 1.6rem;
  margin-top: 2.8rem;
  border-top: 1px solid #d6e5e9;
  background: linear-gradient(120deg, #edf8f4, #f0f8fb 55%, #f2f2fc);
  color: #334d59;
  font-size: .88rem;
}
.cashout-footer__brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  min-height: 44px;
  margin-bottom: 1.5rem;
  color: #0a1a22;
  font-size: 1rem;
  text-decoration: none;
}
.cashout-footer__mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: linear-gradient(135deg, #00a780, #2673ed);
  color: #fff;
  font-size: .85rem;
  font-weight: 800;
}
.cashout-footer__bottom small { display: flex; flex-wrap: wrap; align-items: center; gap: 0 .3rem; }
.cashout-footer__bottom small a { display: inline-flex; align-items: center; min-height: 44px; }
.cashout-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 2rem;
}
.cashout-footer__grid > * { min-width: 0; }
.cashout-footer__grid :is(h2, h3, h4, strong) {
  display: block;
  margin: 0 0 .6rem;
  color: #334d59;
  font: 800 .72rem/1.3 var(--font);
  letter-spacing: .1em;
  text-transform: uppercase;
}
.cashout-footer__grid a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 0;
  color: #334d59;
  text-decoration: none;
  overflow-wrap: anywhere;
  line-height: 1.5;
}
.cashout-footer__grid a:hover { color: #047857; text-decoration: underline; }
.cashout-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.4rem;
  padding-top: 1rem;
  border-top: 1px solid #d6e5e9;
  font-size: .75rem;
  color: #4c6470;
}
.cashout-footer__back-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  min-width: 44px;
  min-height: 44px;
  border-radius: 10px;
  background: #0f766e;
  color: white;
  font-size: 1.3rem;
  text-decoration: none;
}
.cashout-footer__back-top:hover { background: #115e59; color: white; }
.cashout-footer__bottom p { margin: 0; }

@media (max-width: 1040px) {
  .head-row { gap: .55rem; }
  .head-row > .brand { order: 1; }
  .head-row > .btn-play {
    order: 2;
    margin: 0 0 0 auto;
    padding: .65rem .85rem;
  }
  .head-row > .nav-toggle {
    order: 3;
    flex: none;
    margin-left: 0;
    width: 44px;
    height: 44px;
  }
  .site-head .nav {
    position: absolute !important;
    inset: 100% 0 auto !important;
    width: 100%;
    max-height: calc(100dvh - 90px - env(safe-area-inset-bottom));
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: .5rem .6rem .8rem;
    border: 1px solid #e3ebf0;
    border-radius: 0 0 14px 14px;
    box-shadow: 0 16px 30px -20px #0a1a2266;
  }
  .site-head .nav > a { min-height: 44px; white-space: normal; }
  .site-head .nav .toplist-menu .toplist-menu-panel {
    position: static !important;
    width: 100%;
    max-width: none;
    max-height: none;
    overflow: visible;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    padding: 14px;
    box-shadow: none;
  }
}

@media (max-width: 700px) {
  .hero:has(.cashout-primary-offers) { padding: 1.5rem 0 1rem; }
  .hero__grid:has(.cashout-primary-offers) > .hero__art {
    width: min(100%, 120px);
    max-height: 120px;
  }
  .cashout-primary-offers { margin-top: .8rem; }
  .cashout-primary-offers > .toplist { gap: .6rem; }
  .cashout-primary-offers .offer { border-radius: 14px; }
  .cashout-primary-offers .offer__body {
    grid-template-columns: 88px minmax(0, 1fr);
    grid-template-areas: 'logo copy' 'score cta';
    gap: 6px 10px;
    padding: 27px 10px 8px;
  }
  .cashout-primary-offers .offer__logo { grid-area: logo; height: 44px; }
  .cashout-primary-offers .offer__copy { grid-area: copy; }
  .cashout-primary-offers .offer__score {
    grid-area: score;
    padding: 0;
    text-align: center;
  }
  .cashout-primary-offers .offer__cta { grid-area: cta; }
  .cashout-primary-offers .offer__brand { font-size: .64rem; }
  .cashout-primary-offers .offer__headline { font-size: .89rem; line-height: 1.22; }
  .cashout-primary-offers .offer__num { font-size: 1.2rem; }
  .cashout-primary-offers .offer__scorelabel { font-size: .54rem; line-height: 1.2; }
  .cashout-primary-offers .offer__terms summary { min-height: 30px; }
  .site-head .nav .toplist-menu .toplist-menu-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cashout-footer__grid { grid-template-columns: minmax(0, 1fr); gap: 1.1rem; }
  .cashout-footer__grid > * + * { border-top: 1px solid #d6e5e9; padding-top: 1.2rem; }
}

@media (max-width: 480px) {
  .head-row { gap: .4rem; }
  .head-row .brand { gap: .4rem; }
  .head-row .brand-mark { width: 30px; height: 30px; flex: none; }
  .head-row .brand b { font-size: .88rem; white-space: nowrap; }
  .head-row .brand i { display: none; }
  .head-row > .btn-play { padding: .65rem .6rem; font-size: .72rem; }
  .site-head .nav .toplist-menu .toplist-menu-panel { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .hero__copy:has(.cashout-primary-offers) .factbar {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .4rem;
  }
  .hero__copy:has(.cashout-primary-offers) .factbar div { padding: .65rem .5rem; min-width: 0; }
  .hero__copy:has(.cashout-primary-offers) .factbar dt { font-size: .54rem; line-height: 1.3; }
  .hero__copy:has(.cashout-primary-offers) .factbar dd { font-size: .76rem; line-height: 1.4; overflow-wrap: anywhere; }
  .cashout-footer { padding-top: 1.7rem; }
}

@media (max-width: 360px) {
  .head-row .brand b { font-size: .82rem; }
  .cashout-primary-offers .offer__body { grid-template-columns: 78px minmax(0, 1fr); gap: 6px 8px; }
  .cashout-primary-offers .offer__headline { font-size: .84rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cashout-primary-offers .offer,
  .cashout-primary-offers .offer__terms summary::after,
  .site-head :is(a, button),
  .cashout-footer a { transition: none; animation: none; }
}
