/* Page-level structure: container, utility bar, header, mobile menu, the
 * regulatory strips and the footer. Numbers come from fig-spec on the frames
 * named in each block. Mobile branch (390) is written next to each block. */

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--container-pad));
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.only-mobile { display: none; }

/* ── utility bar  rg-utility-bar 27:38 / 67:5 ───────────────────────────── */
.utility {
  background: var(--color-surface);
  box-shadow: inset 0 -1px 0 var(--color-border);
}
.utility__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--utility-h);
}
.utility__left, .utility__right { display: flex; align-items: center; }
.utility__left { gap: 16px; }
.utility__right { gap: 24px; }
.utility__q { font-size: 12px; line-height: 16px; color: var(--color-muted); }
.utility__link { font-weight: 600; font-size: 12px; line-height: 16px; color: var(--color-brand); text-decoration: none; }
.utility__help { font-size: 12px; line-height: 16px; color: var(--color-muted); text-decoration: none; }
.utility__link:hover, .utility__help:hover { text-decoration: underline; }

/* ── header  main-header 27:47 / 67:14 ──────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: var(--color-dark); color: #fff;
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h);
}
.site-header__left { display: flex; align-items: center; gap: 40px; }
.site-header__right { display: flex; align-items: center; gap: 32px; }

.logo {
  display: inline-flex; align-items: center; gap: 4px;
  font-family: var(--font-display); font-weight: 700; color: #fff; text-decoration: none;
}
.logo__word { font-size: 26px; line-height: 35px; letter-spacing: -.02em; }
.logo__tld {
  display: inline-block; padding: 3px 6px; border-radius: 3px;
  background: var(--color-brand); font-size: 16px; line-height: 22px; letter-spacing: .03em;
}
.logo--footer .logo__word { font-size: 22px; line-height: 30px; }
.logo--footer .logo__tld { padding: 2px 5px; font-size: 14px; line-height: 19px; }

.nav__list { display: flex; gap: 24px; }
.nav__item { padding: 8px 0; box-shadow: inset 0 -3px 0 transparent; transition: box-shadow var(--dur-fast) var(--ease); }
.nav__item.is-current { box-shadow: inset 0 -3px 0 var(--color-brand); }
.nav__link {
  display: block; position: relative;
  font-family: var(--font-display); font-weight: 700; font-size: 14px; line-height: 19px; letter-spacing: .04em;
  color: #fff; text-decoration: none; white-space: nowrap;
  transition: color var(--dur-fast) var(--ease);
}
.nav__link::after { content: ""; position: absolute; inset: 50% 0 auto 0; translate: 0 -50%; height: 100%; min-height: 35px; }
.nav__item.is-current .nav__link, .nav__link:hover { color: var(--color-brand); }

.nav-secondary { display: flex; gap: 16px; }
.nav-secondary__link {
  font-size: 13px; line-height: 17px; color: var(--color-on-dark); text-decoration: none; white-space: nowrap;
  transition: color var(--dur-fast) var(--ease);
}
.nav-secondary__link:hover { color: #fff; }
.nav-secondary__link.is-current { color: var(--color-brand); font-weight: 700; }

.site-header__actions { display: flex; align-items: center; gap: 16px; }
.header-login {
  padding: 0; border: 0; background: none; color: #fff; cursor: pointer;
  font-weight: 600; font-size: 14px; line-height: 18px; text-decoration: none; white-space: nowrap;
  transition: color var(--dur-fast) var(--ease);
}
.header-login:hover { color: var(--color-on-dark); }
.header-login--verify { color: var(--color-brand); }
.header-login--verify:hover { color: #fff; }
.site-header .header-join { white-space: nowrap; }

.burger {
  display: none; position: relative; width: 24px; height: 24px; padding: 0; border: 0;
  background: none; color: #fff; cursor: pointer;
}
.burger::after { content: ""; position: absolute; inset: -10px; }        /* 44×44 tap zone */
.burger .icon { width: 22px; height: 22px; position: absolute; inset: 1px; transition: opacity var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease); }
.burger__close { width: 18px; height: 18px; inset: 3px; opacity: 0; transform: rotate(-90deg); }
.burger[aria-expanded="true"] .burger__open { opacity: 0; transform: rotate(90deg); }
.burger[aria-expanded="true"] .burger__close { opacity: 1; transform: none; }

/* ── mobile menu  mobile-menu-open 96:4 ─────────────────────────────────── */
.menu {
  position: fixed; inset: var(--menu-top, 134px) 0 0 0; z-index: calc(var(--z-header) - 1);
  background: var(--color-dark); color: #fff;
  opacity: 0; transition: opacity var(--dur-base) var(--ease);
  overflow: auto;
}
.menu.is-open { opacity: 1; }
.menu__panel { min-height: 100%; }
.menu__auth { display: flex; gap: 12px; padding: 16px; background: var(--color-dark-2); }
.menu .menu__btn { flex: 1; min-height: 37px; padding: 10px 16px; font-size: 13px; line-height: 17px; }
.menu__list { display: flex; flex-direction: column; }
.menu__link {
  display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 16px 20px;
  box-shadow: inset 0 -1px 0 var(--color-dark-3);
  color: #fff; text-decoration: none;
  transition: background-color var(--dur-fast) var(--ease);
}
.menu__link:hover, .menu__link:focus-visible { background: var(--color-dark-2); }
.menu__icon { display: inline-flex; width: 20px; height: 20px; color: var(--color-on-dark); }
.menu__icon .icon { width: 20px; height: 20px; }
.menu__label { font-family: var(--font-display); font-weight: 700; font-size: 18px; line-height: 24px; }
.menu__link.is-current .menu__label { color: var(--color-brand); }
.menu__badge {
  margin-left: auto; padding: 2px 6px; border-radius: 4px;
  font-weight: 700; font-size: 10px; line-height: 13px; white-space: nowrap;
}
.menu__badge--dark { background: var(--color-dark-2); }
.menu__badge--brand { background: var(--color-brand); }
.menu__chevron { display: inline-flex; width: 16px; height: 16px; color: var(--color-muted-3); }
.menu__badge + .menu__chevron { margin-left: 8px; }
.menu__label + .menu__chevron { margin-left: auto; }
.menu__chevron .icon { width: 16px; height: 16px; }
.menu__compliance { padding: 20px; background: var(--color-dark-2); }
.menu__debit { display: flex; align-items: center; gap: 8px; font-size: 11px; line-height: 14px; color: var(--color-on-dark); }
.menu__rule { border: 0; margin: 12px 0; height: 1px; background: var(--color-dark-3); }
.menu__note { font-size: 11px; line-height: 16px; color: var(--color-muted-3); }

/* ── responsible gambling  27:407 / 67:210 ──────────────────────────────── */
.rg { padding: 48px 0; background: var(--color-surface); box-shadow: inset 0 0 0 1px var(--color-border); }
.rg__head { display: flex; flex-direction: column; gap: 6px; }
.rg__title { font-family: var(--font-display); font-weight: 700; font-size: 20px; line-height: 27px; color: var(--color-text); letter-spacing: .03em; }
.rg__eyebrow { font-weight: 700; font-size: 12px; line-height: 16px; color: var(--color-muted); letter-spacing: var(--ls-label); }
.rg__lead { font-size: 14px; line-height: 18px; color: var(--color-muted); }
.rg__cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 32px; align-items: start; }
.rg-card {
  display: flex; flex-direction: column; gap: 12px; padding: 20px;
  background: #fff; border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--color-border);
  transition: box-shadow var(--dur-base) var(--ease);
}
.rg-card:hover { box-shadow: inset 0 0 0 1px var(--color-border-4), 0 6px 16px rgba(17, 19, 21, .06); }
.rg-card__title { font-family: var(--font-body); font-weight: 700; font-size: 13px; line-height: 17px; color: var(--color-text); }
.rg-card__text { font-size: 13px; line-height: 18px; color: var(--color-muted); }
.rg-card__link { font-weight: 700; font-size: 12px; line-height: 16px; color: var(--color-brand); text-decoration: none; }
.rg-card__link:hover { text-decoration: underline; }

/* ── support strip  27:429 / 67:232 ─────────────────────────────────────── */
.support { background: #fff; box-shadow: inset 0 0 0 1px var(--color-border); }
.support__inner { display: flex; align-items: center; gap: 24px; min-height: 64px; padding-block: 20px; }
.support__row { display: flex; align-items: center; gap: 24px; }
.support__label { font-weight: 700; font-size: 13px; line-height: 17px; color: var(--color-text); }
.support__phone { font-weight: 800; font-size: 13px; line-height: 17px; color: var(--color-brand); text-decoration: none; white-space: nowrap; }
.support__phone:hover { text-decoration: underline; }
.support__text { font-size: 13px; line-height: 17px; color: var(--color-muted); }

/* ── betstop strip  34:402 / 67:239 ─────────────────────────────────────── */
.betstop-strip { background: var(--color-dark); color: #fff; box-shadow: inset 0 1px 0 var(--color-dark-4); }
.betstop-strip__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 71px; padding-block: 24px; }
.betstop-strip__body { display: flex; align-items: center; gap: 16px; }
.betstop-strip__row { display: flex; align-items: center; gap: 16px; }
.betstop-strip__title { font-weight: 600; font-size: 14px; line-height: 18px; white-space: nowrap; }
.betstop-strip__text { font-size: 13px; line-height: 17px; color: var(--color-on-dark); }
.betstop-strip__link { font-weight: 700; font-size: 13px; line-height: 17px; color: var(--color-brand); text-decoration: none; white-space: nowrap; }
.betstop-strip__link:hover { text-decoration: underline; }

/* ── payments strip  34:409 / 67:246 ────────────────────────────────────── */
.payments { background: var(--color-dark); color: var(--color-on-dark); box-shadow: inset 0 0 0 1px var(--color-dark-4); }
.payments__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 104px; padding-block: 32px; }
.payments__methods { display: flex; align-items: center; gap: 24px; }
.payments__label { font-weight: 700; font-size: 11px; line-height: 14px; max-width: 80px; letter-spacing: 1px; }
.payments__logos { display: block; width: 300px; height: 40px; }
.payments__logos img { width: 300px; height: 40px; }
.payments__note { display: flex; align-items: center; gap: 8px; font-size: 12px; line-height: 16px; }

/* ── footer  27:439 / 67:253 ────────────────────────────────────────────── */
.site-footer { padding: 64px 0 40px; background: var(--color-dark); color: var(--color-on-dark); }
.site-footer__top { display: grid; grid-template-columns: 300px 1fr; gap: 48px; align-items: start; }
.site-footer__cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 48px; }
.site-footer__col { display: flex; flex-direction: column; gap: 12px; }
.site-footer__title { font-family: var(--font-body); font-weight: 700; font-size: 12px; line-height: 16px; color: #fff; letter-spacing: .04em; }
.site-footer__list { display: flex; flex-direction: column; gap: 12px; }
.site-footer__list li { font-size: 13px; line-height: 17px; }
.site-footer__list a { font-size: 13px; line-height: 17px; color: var(--color-on-dark); text-decoration: none; transition: color var(--dur-fast) var(--ease); }
.site-footer__list a:hover { color: #fff; }
.site-footer__rule { height: 1px; border: 0; margin: 48px 0; background: var(--color-dark-3); }
.site-footer__bottom { display: flex; flex-direction: column; gap: 8px; }
.site-footer__legal { font-size: 11px; line-height: 18px; color: var(--color-muted-3); }
.site-footer__copy { display: flex; align-items: center; gap: 12px; font-size: 11px; line-height: 14px; color: var(--color-muted-3); }

/* ── back to top ──────────────────────────────────────────────────────── */
.to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: var(--z-sticky);
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: var(--color-dark); color: #fff; cursor: pointer;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .25);
  transition: background-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.to-top .icon { width: 18px; height: 18px; }
.to-top:hover { background: var(--color-brand); transform: translateY(-2px); }

/* ── mobile bet slip bar  67:286 ────────────────────────────────────────── */
.betslip-bar {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-sticky);
  align-items: center; justify-content: space-between; gap: 12px;
  min-height: 54px; padding: 12px 16px;
  background: var(--color-dark-2); color: #fff; box-shadow: inset 0 0 0 1px var(--color-dark-3);
  border: 0; text-align: left; cursor: pointer;
}
.betslip-bar__title { display: flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 700; font-size: 14px; line-height: 19px; }
.betslip-bar__right { display: flex; align-items: center; gap: 12px; }
.betslip-bar__est { display: flex; flex-direction: column; gap: 2px; font-size: 9px; line-height: 12px; color: var(--color-on-dark); text-align: center; }
.betslip-bar__est strong { font-weight: 800; font-size: 13px; line-height: 17px; color: var(--color-success); }
.betslip-bar__cta { padding: 8px 14px; border-radius: 4px; background: var(--color-brand); font-weight: 700; font-size: 12px; line-height: 16px; color: #fff; white-space: nowrap; }

/* ── mobile (≤1199): the 390 frame drives this block ─────────────────────── */
@media (max-width: 1199px) {
  .container { padding-inline: var(--container-pad-mobile); }
  .only-desktop { display: none; }
  .only-mobile { display: inline; }

  .utility__inner { flex-direction: column; align-items: center; gap: 6px; height: auto; padding: 8px 0; }
  .utility__left { flex-direction: column; gap: 6px; }
  .utility__q { font-size: 11px; line-height: 14px; text-align: center; }
  .utility__right { gap: 12px; }
  .utility__link, .utility__help { font-size: 11px; line-height: 14px; }
  .utility__link { font-weight: 700; }

  .site-header__inner { height: 60px; }
  .site-header__left { gap: 0; }
  .logo__word { font-size: 22px; line-height: 30px; }
  .logo__tld { padding: 2px 4px; font-size: 14px; line-height: 19px; }
  .nav, .nav-secondary, .header-login { display: none; }
  .site-header__actions { gap: 12px; }
  .site-header .header-join { min-height: 32px; padding: 8px 14px; font-size: 12px; line-height: 16px; }
  .burger { display: inline-flex; }

  .rg { padding: 24px 0; box-shadow: none; }
  .rg__eyebrow { letter-spacing: .04em; }
  .rg__head { gap: 4px; }
  .rg__title { font-size: 18px; line-height: 24px; }
  .rg__lead { font-size: 13px; line-height: 17px; }
  .rg__cards { grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 20px; }
  .rg-card { gap: 8px; padding: 12px; }
  .rg-card__title { font-size: 11px; line-height: 14px; }
  .rg-card__text { font-size: 10px; line-height: 14px; }
  .rg-card__link { font-size: 11px; line-height: 14px; }

  .support { box-shadow: none; }
  .support__inner { flex-direction: column; gap: 12px; padding-block: 16px; text-align: center; }
  .support__row { flex-direction: column; gap: 12px; }
  .support__label { font-size: 12px; line-height: 16px; }
  .support__phone { font-size: 20px; line-height: 26px; }
  .support__text { font-size: 12px; line-height: 16px; }

  .betstop-strip { box-shadow: none; }
  .betstop-strip__inner { flex-direction: column; align-items: flex-start; gap: 12px; padding-block: 16px; min-height: 0; }
  .betstop-strip__body { flex-direction: column; align-items: flex-start; gap: 12px; }
  .betstop-strip__row { gap: 8px; }
  .betstop-strip__title { font-size: 13px; line-height: 17px; }
  .betstop-strip__text { font-size: 12px; line-height: 16px; }
  .betstop-strip__link { font-size: 12px; line-height: 16px; }

  .payments { box-shadow: none; }
  .payments__label { max-width: none; }
  .payments__inner { flex-direction: column; align-items: flex-start; gap: 12px; padding-block: 16px; min-height: 0; }
  .payments__methods { flex-direction: column; align-items: flex-start; gap: 12px; width: 100%; }
  .payments__logos, .payments__logos img { width: 100%; height: 24px; object-fit: contain; object-position: left; }
  .payments__note { font-size: 11px; line-height: 14px; }

  .site-footer { padding: 24px 0 84px; }
  .logo--footer .logo__word { font-size: 20px; line-height: 27px; }
  .logo--footer .logo__tld { padding: 1px 4px; font-size: 12px; line-height: 16px; }
  .site-footer__top { grid-template-columns: 1fr; gap: 24px; }
  .site-footer__cols { grid-template-columns: repeat(2, 1fr); gap: 24px 16px; }
  .site-footer__col, .site-footer__list { gap: 10px; }
  .site-footer__list li { font-size: 12px; line-height: 16px; }
  .site-footer__list a { font-size: 12px; line-height: 16px; }
  .site-footer__rule { margin: 24px 0; }
  .site-footer__legal { font-size: 10px; line-height: 16px; }
  .site-footer__copy { flex-wrap: wrap; gap: 6px 8px; font-size: 10px; line-height: 13px; }

  .betslip-bar { display: flex; }
  .to-top { bottom: 70px; right: 16px; }
}

/* Below the mobile frame: nothing may push the page sideways. */
@media (max-width: 389px) {
  .utility__right { flex-wrap: wrap; justify-content: center; }
  .payments__note { flex-wrap: wrap; }
}
