/* Reusable pieces, numbers from the mockup (fig-spec on the nodes named in each
 * block). States the mockup does not draw — hover, focus, active, disabled,
 * error — are added here in its own palette. */

/* ── buttons ──────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px;                                 /* hero buttons 27:78 */
  border: 0; border-radius: var(--radius);
  background: transparent; color: inherit;
  font-family: var(--font-body); font-weight: 700; font-size: 14px; line-height: 18px;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease),
              color var(--dur-fast) var(--ease),
              box-shadow var(--dur-fast) var(--ease),
              transform var(--dur-fast) var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; }
.btn:focus-visible { outline: none; box-shadow: var(--focus-ring); }

.btn--primary { background: var(--color-brand); color: #fff; }
.btn--primary:hover { background: var(--color-brand-hover); }
.btn--primary:active { background: var(--color-brand-active); }
.btn--primary:focus-visible { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--color-brand); }   /* a red ring on a red button is invisible */

.btn--ghost { box-shadow: inset 0 0 0 1px var(--color-white-20); color: #fff; }   /* HOW IT WORKS 27:80 */
.btn--ghost:hover { background: var(--color-white-10); }

.btn--outline { box-shadow: inset 0 0 0 1px var(--color-border-4); color: var(--color-text); background: #fff; }
.btn--outline:hover { background: var(--color-surface); }

.btn--outline-dark { box-shadow: inset 0 0 0 1px var(--color-dark-3); color: #fff; }
.btn--outline-dark:hover { background: var(--color-white-06); }

.btn--dark { background: var(--color-dark); color: #fff; }
.btn--dark:hover { background: var(--color-dark-2); }

.btn--sm { padding: 10px 20px; }                        /* JOIN NOW 27:69 */
.btn--md { padding: 12px 20px; font-size: 13px; line-height: 17px; }   /* cookie 61:244 */
.btn--block { display: flex; width: 100%; }
.btn--form { padding: 14px 0; font-size: 13px; line-height: 17px; }   /* modal submit 61:295 */

/* text links with an arrow */
.link { font-weight: 600; font-size: 12px; line-height: 16px; color: var(--color-brand); text-decoration: none; white-space: nowrap; }
.link:hover { text-decoration: underline; }
.link--bold { font-weight: 700; }

/* ── badges and chips ─────────────────────────────────────────────────── */
.badge-18 {
  display: inline-block; padding: 2px 6px; border-radius: 4px;
  background: var(--color-dark); color: #fff;
  font-weight: 700; font-size: 11px; line-height: 14px; white-space: nowrap;
}
/* the support-strip badge (27:431: 12px ExtraBold, r3) moved to the footer per TZ.md;
   on the dark footer its ground is one step lighter so it stays visible */
.badge-18--footer { padding: 1px 6px; border-radius: 3px; background: var(--color-dark-3); font-weight: 800; font-size: 11px; line-height: 12px; }

.chip {
  display: inline-flex; align-items: center; padding: 4px 8px; border-radius: 3px;
  font-weight: 800; font-size: 10px; line-height: 13px; white-space: nowrap;
}
.chip--debit { border-radius: 4px; background: var(--color-brand-tint); color: var(--color-brand); letter-spacing: .05em; }
.chip--betstop { padding: 4px 8px; border-radius: 4px; background: var(--color-brand); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 11px; line-height: 15px; letter-spacing: .05em; }
.chip--sport { padding: 2px 6px; border-radius: 3px; background: var(--color-brand-tint-2); color: var(--color-brand); font-weight: 700; }
.chip--count { padding: 4px 8px; border-radius: 4px; background: var(--color-brand); color: #fff; font-weight: 700; font-size: 11px; line-height: 14px; }
.chip--dark { padding: 2px 6px; background: var(--color-white-10); color: var(--color-on-dark); font-weight: 700; font-size: 9px; line-height: 12px; }

.eyebrow { font-weight: 700; font-size: 12px; line-height: 16px; color: var(--color-brand); letter-spacing: var(--ls-eyebrow); text-transform: uppercase; }

/* ── pill tabs  27:125 (POPULAR / UPCOMING) ───────────────────────────── */
.pills { display: flex; flex-wrap: wrap; gap: 8px; width: fit-content; }
.pill {
  display: inline-flex; align-items: center; padding: 8px 16px; border: 0; border-radius: var(--radius);
  background: #fff; color: var(--color-muted); box-shadow: inset 0 0 0 1px var(--color-border);
  font-family: var(--font-body); font-weight: 700; font-size: 12px; line-height: 16px; white-space: nowrap; cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.pill:hover { background: var(--color-surface); color: var(--color-text); }
.pill[aria-selected="true"], .pill.is-active { background: var(--color-dark); color: #fff; box-shadow: inset 0 0 0 1px var(--color-dark); }
.pill--brand[aria-selected="true"], .pill--brand.is-active { background: var(--color-brand); box-shadow: inset 0 0 0 1px var(--color-brand); }
.pill:focus-visible { outline: none; box-shadow: var(--focus-ring); }
/* sports-navigation pills (39:76 / 39:93): soft grey ground, red for the day filter */
.pill--soft { background: var(--color-bg); text-decoration: none; }
.pill--soft[aria-pressed="true"], .pill--soft.is-active { background: var(--color-dark); color: #fff; box-shadow: inset 0 0 0 1px var(--color-dark); }
.pill--xs { padding: 6px 12px; font-size: 11px; line-height: 14px; }
.pill--brand[aria-pressed="true"], .pill--brand.is-active { background: var(--color-brand); box-shadow: inset 0 0 0 1px var(--color-brand); }

/* ── page intro strip  39:71 / 41:71 ──────────────────────────────────── */
.page-intro { background: #fff; box-shadow: inset 0 0 0 1px var(--color-border); }
.page-intro__inner { display: flex; flex-direction: column; gap: 4px; padding-block: 20px 16px; }
.page-intro__title { font-family: var(--font-display); font-weight: 700; font-size: 28px; line-height: 38px; color: var(--color-text); letter-spacing: .02em; }
.page-intro__lead { font-size: 13px; line-height: 17px; color: var(--color-muted); }

/* ── market group + event rows  27:131 / 67:46 ────────────────────────── */
.market { background: #fff; border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--color-border); overflow: hidden; }
.market__head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px; background: var(--color-surface); box-shadow: inset 0 0 0 1px var(--color-border);
}
.market__name { display: flex; align-items: center; gap: 8px; }
.market__name .icon { width: 16px; height: 16px; }
.market__sport { font-family: var(--font-display); font-weight: 700; font-size: 16px; line-height: 22px; color: var(--color-text); letter-spacing: .03em; }
.market__comp { font-size: 12px; line-height: 16px; color: var(--color-muted); }
.market__all { font-weight: 600; font-size: 12px; line-height: 16px; color: var(--color-brand); text-decoration: none; white-space: nowrap; }
.market__all:hover { text-decoration: underline; }
.market__body { display: flex; flex-direction: column; }
.event--desktop { display: flex; }

.event { display: flex; align-items: center; gap: 20px; padding: 16px; transition: background-color var(--dur-base, 0.2s) var(--ease, ease); }
.event + .event { box-shadow: inset 0 1px 0 var(--color-border); }
/* the row a "+N Markets" link points at (the :target wins over the card/divider rules) */
.event.event:target { background: var(--color-surface); box-shadow: inset 3px 0 0 var(--color-brand), inset 0 0 0 1px var(--color-border); }
.event__meta { display: flex; flex-direction: column; gap: 6px; width: 240px; flex: none; }
.event__time { font-size: 12px; line-height: 16px; color: var(--color-muted-3); }
.event__teams { display: flex; flex-direction: column; gap: 2px; font-weight: 700; font-size: 15px; line-height: 20px; color: var(--color-text); }
.event__vs { display: none; }
.event__market { display: flex; flex-direction: column; gap: 2px; width: 120px; flex: none; }
.event__market-label { font-weight: 600; font-size: 11px; line-height: 14px; color: var(--color-muted-3); }
.event__market-name { font-size: 13px; line-height: 17px; color: var(--color-muted); }
.event__odds { display: flex; gap: 8px; flex: 1; }
.event__more { width: 100px; flex: none; text-align: right; font-weight: 600; font-size: 12px; line-height: 16px; color: var(--color-muted); text-decoration: none; white-space: nowrap; }
.event__more:hover { color: var(--color-brand); }

.odd {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; flex: 1; min-width: 0;
  padding: 12px; border: 0; border-radius: var(--radius);
  background: #fff; color: var(--color-muted); box-shadow: inset 0 0 0 1px var(--color-border);
  font-family: var(--font-body); text-align: left; cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.odd__name { font-weight: 700; font-size: 11px; line-height: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.odd__price { font-weight: 800; font-size: 13px; line-height: 17px; color: var(--color-brand); }
.odd:hover { box-shadow: inset 0 0 0 1px var(--color-brand); color: var(--color-text); }
.odd:active { transform: translateY(1px); }
.odd:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.odd.is-selected, .odd[aria-pressed="true"] { background: var(--color-brand); color: #fff; box-shadow: inset 0 0 0 1px var(--color-brand); }
.odd.is-selected .odd__price, .odd[aria-pressed="true"] .odd__price { color: #fff; }

/* ── fields  61:281 (label row + 44px input) ──────────────────────────── */
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field__label { display: flex; gap: 4px; font-weight: 700; font-size: 12px; line-height: 16px; color: var(--color-muted); }
.field__label .req { color: var(--color-brand); }
.field__label .opt { font-weight: 400; color: var(--color-muted-3); }
.field__control { position: relative; display: flex; align-items: center; }
.field input:not([type="checkbox"]):not([type="radio"]):not(.visually-hidden), .field select, .field textarea {
  width: 100%; min-height: 44px; padding: 0 16px;
  border: 0; border-radius: var(--radius);
  background: #fff; color: var(--color-text); box-shadow: inset 0 0 0 1px var(--color-border-4);
  font-size: 14px; line-height: 18px;
  transition: box-shadow var(--dur-fast) var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: var(--color-muted); opacity: 1; }
.field select { appearance: none; padding-right: 40px; cursor: pointer; }
.field select:invalid, .field select.is-placeholder { color: var(--color-muted); }
.field__control .icon--select { position: absolute; right: 16px; width: 16px; height: 16px; color: var(--color-muted); pointer-events: none; }
.field textarea { min-height: 160px; padding-block: 13px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; box-shadow: inset 0 0 0 1px var(--color-brand), var(--focus-ring); }
.field__toggle {
  position: absolute; right: 16px; padding: 0; border: 0; background: none; cursor: pointer;
  font-weight: 700; font-size: 12px; line-height: 16px; color: var(--color-brand);
}
.field__toggle::after { content: ""; position: absolute; inset: -14px -8px; }
.field__hint { font-size: 11px; line-height: 14px; color: var(--color-muted-3); }
.field__error { font-size: 12px; line-height: 16px; color: var(--color-error); }
.field.has-error input, .field.has-error select, .field.has-error textarea { box-shadow: inset 0 0 0 1px var(--color-error); }
.field__row { display: grid; gap: 16px; }
.field__row--2 { grid-template-columns: 1fr 1fr; }
.field__row--title { grid-template-columns: 150px 1fr; }
.field__row--dob { grid-template-columns: repeat(3, 1fr); gap: 12px; }
.field__row--addr { grid-template-columns: 1fr 120px 100px; }

/* checkbox row  61:424 */
.check { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; font-size: 13px; line-height: 18px; color: var(--color-muted); }
.check input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.check__box {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 18px; height: 18px; border-radius: 3px;
  background: #fff; box-shadow: inset 0 0 0 1px var(--color-border-4); color: #fff;
  transition: background-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.check__box .icon { width: 10px; height: 8px; opacity: 0; transition: opacity var(--dur-fast) var(--ease); }
.check input:checked + .check__box { background: var(--color-brand); box-shadow: inset 0 0 0 1px var(--color-brand); }
.check input:checked + .check__box .icon { opacity: 1; }
.check input:focus-visible + .check__box { box-shadow: var(--focus-ring); }
.check input:disabled + .check__box { background: var(--color-border-2); box-shadow: none; color: var(--color-muted); }
.check input:disabled + .check__box .icon { opacity: 1; }
.check a { color: var(--color-text); }
.form__error { font-size: 13px; line-height: 17px; color: var(--color-error); }
.form__success { font-size: 13px; line-height: 17px; color: var(--color-success); }
.notice {
  padding: 12px 16px; border-radius: var(--radius); background: var(--color-brand-tint-2);
  box-shadow: inset 0 0 0 1px var(--color-brand-tint); font-size: 13px; line-height: 18px; color: var(--color-text);
}

/* ── overlays and modals  61:271 ───────────────────────────────────────── */
.overlay {
  position: fixed; inset: 0; z-index: var(--z-modal);
  display: grid; place-items: center; padding: 16px;
  background: var(--color-scrim); overflow: auto;
  opacity: 0; transition: opacity var(--dur-slow) var(--ease);
}
.overlay.is-open { opacity: 1; }
.overlay--gate { z-index: var(--z-gate); }
.overlay__panel {
  width: min(100%, 460px); padding: 32px;
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-modal);
  transform: translateY(8px); transition: transform var(--dur-slow) var(--ease);
}
.overlay.is-open .overlay__panel { transform: none; }
.overlay__panel--wide { width: min(100%, 640px); }
/* the mobile menu reuses the focus-trap hook (.overlay__panel) but is a full-bleed dark sheet */
.menu .menu__panel { width: 100%; padding: 0; background: transparent; border-radius: 0; box-shadow: none; transform: none; }
.overlay__panel--age { width: min(100%, 440px); }
.overlay__close {
  position: absolute; top: 16px; right: 16px; width: 32px; height: 32px; padding: 0; border: 0;
  background: none; color: var(--color-muted); cursor: pointer; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.overlay__close:hover { background: var(--color-surface); color: var(--color-text); }
.overlay__close .icon { width: 18px; height: 18px; }

.modal { display: flex; flex-direction: column; gap: 24px; position: relative; }
.modal__brand { display: flex; align-items: center; justify-content: center; gap: 4px; font-weight: 700; font-size: 16px; line-height: 21px; color: var(--color-text); }
.modal__brand-tld { padding: 2px 5px; border-radius: 2px; background: var(--color-brand); color: #fff; font-size: 11px; line-height: 14px; }
.modal__head { display: flex; flex-direction: column; gap: 6px; }
.modal__head--center { align-items: center; text-align: center; }
.modal__eyebrow { font-weight: 700; font-size: 11px; line-height: 14px; color: var(--color-brand); letter-spacing: 0.14em; text-transform: uppercase; }
.modal__title { font-family: var(--font-body); font-weight: 800; font-size: 28px; line-height: 36px; color: var(--color-text); }
.modal__title--lg { font-size: 32px; line-height: 42px; }
.modal__lead { font-size: 14px; line-height: 18px; color: var(--color-muted); }
.modal__form { display: flex; flex-direction: column; gap: 16px; }
.modal__section { display: flex; flex-direction: column; gap: 16px; }
.modal__section-title { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 14px; line-height: 18px; color: var(--color-text); white-space: nowrap; }
.modal__section-title::after { content: ""; flex: 1; height: 1px; background: var(--color-border-2); }
.modal__actions { display: flex; flex-direction: column; gap: 16px; }
.modal__switch { display: flex; justify-content: center; gap: 6px; font-size: 13px; line-height: 17px; color: var(--color-muted); }
.modal__switch a, .modal__switch button { padding: 0; border: 0; background: none; font: inherit; font-weight: 700; color: var(--color-brand); text-decoration: none; cursor: pointer; }
.modal__switch a:hover, .modal__switch button:hover { text-decoration: underline; }
.modal__rule { height: 1px; border: 0; margin: 0; background: var(--color-border-2); }
.modal__fine { font-size: 11px; line-height: 15px; color: var(--color-muted-3); text-align: center; }

/* verify email 61:440 */
.verify__info { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.verify__icon { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 28px; background: var(--color-border-2); color: var(--color-text); }
.verify__icon .icon { width: 24px; height: 24px; }
.verify__to { font-size: 14px; line-height: 18px; color: var(--color-muted); }
.verify__email { padding: 6px 16px; border-radius: 100px; background: var(--color-border-2); font-weight: 700; font-size: 16px; line-height: 21px; color: var(--color-text); }
.verify__note { font-size: 13px; line-height: 20px; color: var(--color-muted-3); }
.code { display: flex; flex-direction: column; gap: 8px; }
.code__boxes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.code__boxes input {
  width: 100%; height: 56px; padding: 0; border: 0; border-radius: var(--radius);
  background: #fff; box-shadow: inset 0 0 0 1px var(--color-border-4);
  font-weight: 700; font-size: 20px; line-height: 26px; text-align: center; color: var(--color-text); letter-spacing: .2em;
}
.code__boxes input:focus { outline: none; box-shadow: inset 0 0 0 1px var(--color-brand), var(--focus-ring); }
.modal__resend { padding: 0; border: 0; background: none; font: inherit; font-weight: 600; font-size: 13px; line-height: 17px; color: var(--color-brand); text-align: center; cursor: pointer; }
.modal__resend:hover { text-decoration: underline; }

/* age gate 61:217 */
.age__badge { display: flex; justify-content: center; padding: 8px 16px; border-radius: var(--radius); box-shadow: inset 0 0 0 2px var(--color-brand); }
/* the mockup draws this 28px line 461px wide inside a 440px panel — it overflows there;
   here it scales to the panel so the text never leaves the box */
.age__badge-text { font-weight: 900; font-size: clamp(18px, 6.2cqw, 28px); line-height: 36px; color: var(--color-brand); white-space: nowrap; letter-spacing: -.01em; }
.age__badge { container-type: inline-size; }
.age__content { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.age__title { font-family: var(--font-body); font-weight: 700; font-size: 20px; line-height: 26px; color: var(--color-text); }
.age__text { font-size: 14px; line-height: 21px; color: var(--color-muted); }
.age__hint { font-size: 13px; line-height: 17px; color: var(--color-muted-3); }
.age__actions { display: flex; flex-direction: column; gap: 12px; }
.btn--age-no { box-shadow: inset 0 0 0 1px var(--color-border-4); color: var(--color-muted-3); font-weight: 600; }
.btn--age-no:hover { background: var(--color-surface); color: var(--color-text); }

/* ── cookie banner  61:238 / 90:1652 ──────────────────────────────────── */
.cookie {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-overlay);
  background: #fff; box-shadow: inset 0 1px 0 var(--color-border-2), var(--shadow-bar);
  transform: translateY(100%); transition: transform var(--dur-slow) var(--ease);
}
.cookie.is-open { transform: none; }
.cookie__inner {
  display: grid; grid-template-columns: 1fr auto; grid-template-areas: "text actions" "rule rule" "toggles toggles";
  align-items: center; gap: 20px 24px; padding-block: 24px;
}
.cookie__text { grid-area: text; display: flex; flex-direction: column; gap: 8px; max-width: 840px; }
.cookie__eyebrow { font-weight: 800; font-size: 11px; line-height: 14px; color: var(--color-brand); letter-spacing: .1em; }
.cookie__body { font-size: 13px; line-height: 20px; color: var(--color-muted); }
.cookie__body a { color: var(--color-text); }
.cookie__actions { grid-area: actions; display: flex; gap: 12px; }
.cookie__secondary { display: contents; }
.cookie__rule { grid-area: rule; height: 1px; border: 0; margin: 0; background: var(--color-border-2); }
.cookie__toggles { grid-area: toggles; display: flex; flex-wrap: wrap; gap: 40px; }
.toggle { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; }
.toggle .check__box { margin-top: 8px; }
.toggle__labels { display: flex; flex-direction: column; gap: 2px; }
.toggle__name { font-weight: 700; font-size: 13px; line-height: 17px; color: var(--color-text); }
.toggle__desc { font-size: 11px; line-height: 14px; color: var(--color-muted-3); }
.toggle--off .toggle__name { color: var(--color-muted-3); }

/* ── bet slip  27:252 / 72:43 ──────────────────────────────────────────── */
.betslip {
  display: flex; flex-direction: column; gap: 16px; padding: 16px;
  background: var(--color-surface); border-radius: var(--radius-md); box-shadow: inset 0 0 0 1px var(--color-border);
}
.betslip__head { display: flex; align-items: center; justify-content: space-between; }
.betslip__title { font-family: var(--font-display); font-weight: 700; font-size: 18px; line-height: 24px; color: var(--color-text); white-space: nowrap; letter-spacing: .03em; }
.betslip__items { display: flex; flex-direction: column; gap: 12px; }
.betslip__empty { font-size: 13px; line-height: 18px; color: var(--color-muted); padding: 12px; background: #fff; border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--color-border); }
.slip-item { display: flex; flex-direction: column; gap: 10px; padding: 12px; background: #fff; border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--color-border); }
.slip-item__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.slip-item__event { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 11px; line-height: 14px; color: var(--color-muted-3); }
.slip-item__event span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.slip-item__remove { padding: 0; border: 0; background: none; font: inherit; font-size: 12px; line-height: 16px; color: var(--color-muted); cursor: pointer; white-space: nowrap; }
.slip-item__remove:hover { color: var(--color-brand); }
.slip-item__remove::after { content: ""; position: absolute; inset: -6px; }
.slip-item__remove { position: relative; }
.slip-item__body { display: flex; flex-direction: column; gap: 2px; }
.slip-item__market { font-size: 13px; line-height: 17px; color: var(--color-muted); }
.slip-item__pick { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-weight: 700; font-size: 14px; line-height: 18px; color: var(--color-text); }
.slip-item__price { font-weight: 800; color: var(--color-brand); }
.betslip__stake { display: flex; flex-direction: column; gap: 6px; }
.betslip__label { font-weight: 700; font-size: 12px; line-height: 16px; color: var(--color-muted); }
.stake { display: flex; align-items: center; gap: 8px; padding: 12px; background: #fff; border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--color-border); font-weight: 700; font-size: 14px; line-height: 18px; color: var(--color-text); transition: box-shadow var(--dur-fast) var(--ease); }
.stake:focus-within { box-shadow: inset 0 0 0 1px var(--color-brand); }
.stake input { flex: 1; min-width: 0; margin: -12px 0; padding: 12px 0; border: 0; background: none; font: inherit; text-align: right; color: inherit; }   /* the whole box is the tap zone */
.stake input:focus-visible { outline-offset: 0; }
.betslip__rule { height: 1px; border: 0; margin: 0; background: var(--color-border); }
.betslip__return { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 21px; }
.betslip__return-label { font-size: 12px; line-height: 16px; color: var(--color-muted); }
.betslip__return-value { font-weight: 800; font-size: 16px; line-height: 21px; color: var(--color-success); }
.betslip__place { padding: 14px; }
.betslip__foot { display: flex; flex-direction: column; gap: 4px; font-size: 11px; line-height: 14px; color: var(--color-muted); }
.betslip__foot a { font-weight: 600; color: var(--color-brand); text-decoration: none; }
.betslip__foot a:hover { text-decoration: underline; }
.betslip__msg { font-size: 12px; line-height: 16px; color: var(--color-muted); }
.betslip__msg--ok { color: var(--color-success); }
.betslip__msg--err { color: var(--color-error); }

/* mobile sheet 72:43 */
.sheet {
  position: fixed; inset: 0; z-index: var(--z-overlay); display: flex; align-items: flex-end;
  background: var(--color-scrim); opacity: 0; transition: opacity var(--dur-slow) var(--ease);
}
.sheet.is-open { opacity: 1; }
.sheet__panel {
  width: 100%; max-height: 90vh; overflow: auto;
  background: var(--color-surface); border-radius: 16px 16px 0 0; box-shadow: var(--shadow-sheet);
  transform: translateY(24px); transition: transform var(--dur-slow) var(--ease);
}
.sheet.is-open .sheet__panel { transform: none; }
.sheet__grip { display: flex; justify-content: center; padding: 4px 0; background: var(--color-dark-2); }
.sheet__grip::before { content: ""; width: 36px; height: 4px; border-radius: 2px; background: var(--color-dark-3); }
.sheet__head { display: flex; align-items: center; justify-content: space-between; padding: 2px 16px 14px; background: var(--color-dark-2); color: #fff; }
.sheet__title { display: flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 700; font-size: 16px; line-height: 22px; }
.sheet__min { display: inline-flex; align-items: center; gap: 4px; padding: 0; border: 0; background: none; font-weight: 500; font-size: 12px; line-height: 16px; color: var(--color-muted-3); cursor: pointer; }
.sheet__min .icon { width: 16px; height: 16px; }
.sheet__min::after { content: ""; position: absolute; inset: -12px; }
.sheet__min { position: relative; }
.sheet .betslip { padding: 16px; background: transparent; box-shadow: none; border-radius: 0; }
.sheet .slip-item { border-radius: var(--radius-md); }
.sheet .betslip__return-label { font-weight: 700; font-size: 13px; line-height: 17px; }
.sheet .betslip__foot { align-items: center; }
.sheet__home { display: flex; justify-content: center; padding: 12px 0 8px; }
.sheet__home::before { content: ""; width: 134px; height: 5px; border-radius: 2.5px; background: var(--color-dark); }

/* ── accordions (help centre) ─────────────────────────────────────────── */
.collapsible { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--dur-base) var(--ease); }
.collapsible.is-open { grid-template-rows: 1fr; }
.collapsible > * { overflow: hidden; min-height: 0; visibility: hidden; transition: visibility 0s var(--dur-base); }   /* closed content is not focusable/readable */
.collapsible.is-open > * { visibility: visible; transition-delay: 0s; }

/* ── icons ────────────────────────────────────────────────────────────── */
.icon { width: 1em; height: 1em; fill: none; stroke: currentColor; }
.icon--sport { stroke: none; }
.icon--missing { display: inline-block; width: 1em; height: 1em; outline: 1px dashed var(--color-error); }

/* ── mobile branches ──────────────────────────────────────────────────── */
@media (max-width: 1199px) {
  .overlay { padding: 16px; }
  .overlay__panel { padding: 24px; border-radius: var(--radius-lg); }
  .overlay__panel--wide { padding: 20px; }
  .modal--register { gap: 20px; }
  .modal__title--lg { font-size: 28px; line-height: 36px; }
  .field__row--2, .field__row--title, .field__row--addr { grid-template-columns: 1fr; }
  .field__row--addr { grid-template-columns: 1fr 1fr; }
  .field__row--addr > :first-child { grid-column: 1 / -1; }

  /* strip chips as drawn on the 390 frames (67:241, 67:250) */
  .chip--betstop { padding: 2px 6px; font-size: 10px; line-height: 13px; }
  .chip--debit { padding: 2px 6px; font-size: 8px; line-height: 10px; }
  .badge-18--footer { padding: 1px 6px; font-size: 10px; line-height: 12px; }
  .pill { padding: 8px 16px; font-size: 13px; line-height: 17px; }
  .pill--soft { padding: 8px 14px; font-size: 11px; line-height: 14px; }
  .pill--xs { padding: 6px 12px; font-size: 10px; line-height: 13px; }
  .page-intro__inner { padding-block: 16px; }
  .page-intro__title { font-size: 26px; line-height: 35px; }

  .market__head { padding: 12px; box-shadow: inset 0 -1px 0 var(--color-border); }
  .market__sport { font-size: 15px; line-height: 20px; }
  .market__all { font-size: 12px; }
  .event.event--desktop, .market.market--desktop { display: none; }
  .event { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "meta meta" "odds odds" "market more"; gap: 12px; padding: 12px; align-items: center; }
  .event + .event { box-shadow: inset 0 1px 0 var(--color-border); }
  .event__meta { grid-area: meta; width: auto; gap: 4px; }
  .event__teams { flex-direction: row; flex-wrap: wrap; gap: 0 4px; font-size: 14px; line-height: 18px; }
  .event__vs { display: inline; }
  .event__market { grid-area: market; width: auto; }
  .event__market-label { display: none; }
  .event__market-name { font-size: 11px; line-height: 14px; }
  .event__odds { grid-area: odds; }
  .event__more { grid-area: more; width: auto; }
  .odd { padding: 10px; }
  /* three-way markets (67:96): tighter buttons, 10/11px type */
  .event__odds--3 { gap: 6px; }
  .event__odds--3 .odd { padding: 8px; }
  .event__odds--3 .odd__name { font-size: 10px; line-height: 13px; }
  .event__odds--3 .odd__price { font-size: 11px; line-height: 14px; }

  .cookie__inner { grid-template-columns: 1fr; grid-template-areas: "text" "rule" "toggles" "actions"; gap: 16px; padding: 20px 0 24px; }
  .cookie__text { gap: 6px; }
  .cookie__body { font-size: 12px; line-height: 17px; }
  .cookie__toggles { flex-direction: column; gap: 12px; }
  .toggle { gap: 10px; }
  .toggle .check__box { width: 16px; height: 16px; margin-top: 7px; }
  .toggle__labels { gap: 1px; }
  .toggle__name { font-size: 12px; line-height: 16px; }
  .toggle__desc { font-size: 10px; line-height: 13px; }
  .cookie__actions { flex-direction: column; gap: 8px; }
  .cookie__actions .btn--primary { order: -1; min-height: 40px; padding: 0; }
  .cookie__secondary { display: flex; gap: 8px; }
  .cookie__secondary .btn { flex: 1; min-height: 38px; padding: 0; font-size: 12px; line-height: 16px; }
}
