/* Site chrome: utility bar, header, mobile menu, RG band, payment strip, footer.
   Numbers come from the Figma frames (desktop 1440 / mobile 390). */

/* ============ responsible gambling utility bar ============ */
.rg-utility { background: var(--ink); }
.rg-utility__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 40px;
  padding-block: 8px;
}
.rg-utility__left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.badge-18 {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: var(--r-4);
  background: var(--red);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 11px;
  line-height: 12px;
}
.rg-utility__scope,
.rg-utility__think {
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
  color: var(--red-text);
}
.rg-utility__help {
  font-size: 12px;
  line-height: 16px;
  color: var(--slate);
}
.rg-utility__help a { color: var(--slate); text-decoration: underline; text-underline-offset: 2px; }
.rg-utility__help a.lead-strong { color: var(--white); }
.rg-utility__help a:hover { color: var(--white); }

/* ============ header ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--ink);
  transition: box-shadow var(--t);
}
.site-header.is-stuck { box-shadow: inset 0 -1px 0 var(--line-dark), 0 8px 24px rgba(0, 0, 0, .45); }
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 74px;
  padding-block: 16px;
}
.brand__word {
  font-family: var(--font-display);
  font-size: 32px;
  line-height: 35px;
  letter-spacing: -1.5px;
  color: var(--white);
  white-space: nowrap;
}
.brand:hover .brand__word { color: var(--red); }
.brand__word { transition: color var(--t); }
.brand__word--sm { font-size: 24px; line-height: 26px; letter-spacing: -1px; }

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 8px 24px;
  background: var(--surface);
  border: 1px solid var(--line-dark);
  border-radius: var(--r-pill);
}
.site-nav__link {
  position: relative;
  display: inline-block;
  font-size: 14px;
  font-weight: 500;
  line-height: 18.2px;
  color: var(--slate);
  transition: color var(--t);
}
.site-nav__link:hover { color: var(--white); }
.site-nav__link.is-current { color: var(--red-text); font-weight: 700; }
.site-nav__link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -6px;
  height: 2px;
  background: var(--red);
  transition: right var(--t);
}
.site-nav__link:hover::after { right: 0; }

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.site-header__login {
  white-space: nowrap;
  font-size: 14px;
  font-weight: 600;
  line-height: 18.2px;
  color: var(--white);
  transition: color var(--t);
}
.site-header__login:hover { color: var(--red); }
.site-header__hello {
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
}
.btn--sm { padding: 12px 24px; }
.site-header__join-short { display: none; }

.burger {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  color: var(--white);
}
.burger__bars,
.burger__bars::before,
.burger__bars::after {
  position: absolute;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform var(--t), opacity var(--t-fast);
}
.burger__bars::before { content: ''; transform: translateY(-6px); }
.burger__bars::after  { content: ''; transform: translateY(6px); }

/* ============ mobile menu ============ */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  background: var(--ink);
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity var(--t), transform var(--t);
}
.mobile-menu.is-open { opacity: 1; transform: none; }
.mobile-menu__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  min-height: 68px;
  border-bottom: 1px solid var(--line-dark);
}
.mobile-menu__close {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-dark);
  border-radius: var(--r-10);
  color: var(--white);
  font-size: 22px;
  line-height: 1;
  transition: border-color var(--t), color var(--t);
}
.mobile-menu__close:hover { border-color: var(--red); color: var(--red); }
.mobile-menu__nav { flex: 1; overflow-y: auto; }
.mobile-menu__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 16px;
  border-bottom: 1px solid var(--line-dark);
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 20px;
  color: var(--bone);
  transition: background var(--t), color var(--t), padding-left var(--t);
}
.mobile-menu__row:hover,
.mobile-menu__row.is-current { color: var(--red); }
.mobile-menu__row:active { background: var(--surface); }
.mobile-menu__row svg { color: var(--slate); flex: none; }
.mobile-menu__foot {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px 16px calc(20px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line-dark);
}
.mobile-menu__rg {
  font-size: 12px;
  line-height: 16px;
  color: var(--slate);
}
.mobile-menu__rg a { color: var(--red); font-weight: 600; }

/* ============ high-impact RG band ============ */
.rg-band__warning { background: var(--red); color: var(--ink); }
.rg-band__warning-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  min-height: 278px;
  padding-block: 64px;
}
.rg-band__left {
  display: flex;
  align-items: center;
  gap: 40px;
  width: 720px;
  flex: none;
}
.rg-band__age {
  font-family: var(--font-display);
  font-size: 120px;
  line-height: 131px;
  letter-spacing: -4px;
  color: var(--ink);
}
.rg-band__headline {
  width: 440px;
  flex: none;
  font-size: 48px;
  line-height: 50px;
  color: var(--ink);
}
.rg-band__copy {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 440px;
  flex: none;
  font-size: 15px;
  font-weight: 600;
  line-height: 20px;
  color: var(--ink);     /* per the mockup: the whole band is set in ink */
}
.rg-band__copy a { text-decoration: underline; text-underline-offset: 2px; }
.rg-band__copy-strong { font-weight: 800; }

.rg-band__betstop {
  background: var(--ink);
  box-shadow: inset 0 1px 0 var(--line-dark), inset 0 -1px 0 var(--line-dark);
}
.rg-band__betstop-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 87px;
  padding-block: 24px;
}
.rg-band__betstop-title { font-size: 14px; font-weight: 700; line-height: 18.2px; color: var(--white); }
.rg-band__betstop-sub { font-size: 13px; line-height: 17px; color: var(--slate); }
.rg-band__betstop .link-arrow { font-size: 13px; line-height: 17px; }

/* ============ payment strip ============ */
.payment-strip {
  background: var(--bone);
  box-shadow: inset 0 -1px 0 var(--line-light);
  color: var(--ink-soft);
}
.payment-strip__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 80px;
  padding-block: 20px;
}
.payment-strip__left { display: flex; align-items: center; gap: 40px; }
.payment-strip__label { color: var(--grey); }
.payment-strip__logos img { width: 300px; height: 40px; object-fit: contain; object-position: left center; }
.payment-strip__right { display: flex; align-items: center; gap: 12px; }
.payment-strip__note { font-size: 12px; line-height: 16px; color: var(--grey); }
.pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--r-4);
  font-size: 10px;
  font-weight: 800;
  line-height: 13px;
  letter-spacing: .02em;
}
.pill--red { background: var(--red); color: var(--white); }

/* ============ footer ============ */
.site-footer { background: var(--ink); }
.site-footer__inner {
  display: flex;
  flex-direction: column;
  gap: 64px;
  padding-top: 80px;
  padding-bottom: 48px;
}
.site-footer__logo-moment {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  min-height: 163px;
}
.site-footer__word {
  font-family: var(--font-display);
  font-size: clamp(30px, 10.2vw, 150px);
  line-height: 1.088;
  letter-spacing: -.04em;
  color: var(--red);
  opacity: .25;
  user-select: none;
}
.site-footer__grid { display: flex; align-items: flex-start; gap: 64px; }
.site-footer__legal {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 440px;
  flex: none;
  font-size: 13px;
  line-height: 21px;
  color: var(--slate);
}
.site-footer__details {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  line-height: 16px;
  color: var(--slate);   /* --grey is only 4.09:1 on --ink */
}
.site-footer__nav { display: flex; gap: 48px; flex: 1; }
.site-footer__group { display: flex; flex-direction: column; gap: 12px; flex: 1; }
.site-footer__group-title {
  font-family: var(--font-display);
  font-size: 12px;
  line-height: 13px;
  letter-spacing: 1px;
  color: var(--red-text);
}
.site-footer__group ul { display: flex; flex-direction: column; gap: 12px; }
.site-footer__group li { line-height: 17px; }
.site-footer__group a {
  display: block;
  font-size: 13px;
  line-height: 17px;
  color: var(--slate);
  transition: color var(--t);
}
.site-footer__group a:hover { color: var(--white); }
/* footer links: hit area up to the 12px gap */
@media (max-width: 1199px) {
  .site-footer__group ul { gap: 20px; }
  .site-footer__group a,
  .legal-foot__links a,
  .quick-help__list a,
  .promo-cats__row { position: relative; }
  .site-footer__group a::after,
  .legal-foot__links a::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 44px;      /* fits the 20px gap without reaching the neighbour */
    transform: translateY(-50%);
  }
}
.site-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 12px;
  line-height: 16px;
  color: var(--slate);
}

/* ============ back to top ============ */
.to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 50;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--r-12);
  background: var(--red);
  color: var(--white);
  box-shadow: var(--shadow-card);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--t), transform var(--t), background var(--t);
}
.to-top.is-visible { opacity: 1; transform: none; }
.to-top:hover { background: var(--red-dark); }

/* ============ mobile ============ */
@media (max-width: 1199px) {
  .rg-utility { box-shadow: inset 0 -1px 0 var(--line-dark); }
  .site-header { box-shadow: inset 0 -1px 0 var(--line-dark); }
  .rg-utility__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding-block: 8px;
    min-height: 0;
  }
  .rg-utility__left { gap: 8px; flex-wrap: wrap; }
  .badge-18 { padding: 2px 6px; font-size: 10px; line-height: 11px; }
  .rg-utility__scope { color: var(--slate); font-weight: 400; }
  .rg-utility__think { font-size: 12px; }
  .rg-utility__help { font-size: 11px; line-height: 14.3px; }

  .site-header__inner { min-height: 56px; padding-block: 12px; gap: 12px; }
  .brand__word { font-size: 22px; line-height: 24px; letter-spacing: -1px; }
  .site-nav { display: none; }
  .site-header__actions { gap: 12px; }
  .site-header__login { font-size: 13px; line-height: 17px; }
  .btn--sm { padding: 8px 14px; font-size: 12px; line-height: 16px; border-radius: var(--r-6); }
  .site-header__join-long { display: none; }
  .site-header__join-short { display: inline; }
  .burger { display: flex; }

  .rg-band__warning-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    min-height: 0;
    padding-block: 32px;
  }
  .rg-band__left { flex-direction: column; align-items: flex-start; gap: 12px; width: auto; }
  .rg-band__age { font-size: 56px; line-height: 61px; letter-spacing: -2px; }
  .rg-band__headline { font-size: 28px; line-height: 30.5px; width: auto; max-width: none; }
  .rg-band__copy { font-size: 13px; line-height: 18px; width: auto; max-width: none; }
  .rg-band__betstop-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    min-height: 0;
    padding-block: 20px;
  }

  .payment-strip__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    min-height: 0;
    padding-block: 16px;
  }
  .payment-strip__left { gap: 16px; }
  .payment-strip__logos img { width: 220px; height: 30px; }

  .site-footer__inner { gap: 32px; padding-top: 40px; padding-bottom: 40px; }
  .site-footer__logo-moment { min-height: 0; }
  .site-footer__grid { flex-direction: column; gap: 32px; }
  .site-footer__legal { width: auto; }
  .site-footer__nav { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 16px; }
  .site-footer__bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
  .to-top { right: 16px; bottom: 16px; }
}
