/* Reusable pieces: buttons, eyebrows, fields, checks, cards, overlays, banners.
 * Every number is from fig-spec on the mockup; states (hover/focus/active/
 * disabled/error) are ours — the mockup does not draw them. */

/* ── buttons ──────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px;                       /* hero buttons 4:68: 42px tall */
  border: 0; border-radius: var(--radius-md);
  background: transparent; color: var(--color-text);
  font-family: var(--font-display); font-weight: 700; font-size: var(--fs-body); line-height: 18px;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  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 { text-align: center; }
.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: var(--color-on-brand); }
.btn--primary:hover { background: var(--color-brand-hover); }
.btn--primary:active { background: var(--color-brand-active); }
.btn--primary:focus-visible { box-shadow: var(--focus-ring), inset 0 0 0 2px var(--color-bg); }

.btn--ghost { box-shadow: inset 0 0 0 1px var(--color-border-2); }
.btn--ghost:hover { background: var(--color-surface-hover); box-shadow: inset 0 0 0 1px var(--color-muted); }
.btn--ghost:focus-visible { box-shadow: inset 0 0 0 1px var(--color-border-2), var(--focus-ring); }

.btn--outline-brand { box-shadow: inset 0 0 0 1px var(--color-brand); color: var(--color-brand); }
.btn--outline-brand:hover { background: var(--color-brand-tint); }

.btn--sm { padding: 6px 12px; font-size: var(--fs-small); line-height: 15.12px; }   /* header 4:26: 27px */
.btn--md { padding: 12px 24px; font-size: var(--fs-ui); line-height: 16.38px; }     /* cookie 65:56: 40px */
.btn--lg { padding: 15px 20px; }                                                    /* age gate: 48px   */
.btn--block { width: 100%; }
.btn--upper { text-transform: uppercase; }
.btn--danger-text { color: var(--color-danger); padding: 0; background: none; font-family: var(--font-display); font-size: var(--fs-small); line-height: 15px; font-weight: 700; }
.btn--danger-text:hover { color: var(--color-danger-hover); }

/* A bare text link that behaves like a button */
.link { color: var(--color-brand); text-decoration: none; }
.link:hover { text-decoration: underline; text-underline-offset: 2px; }

/* ── eyebrow / tags / pills ───────────────────────────────────────────── */
.eyebrow {
  display: inline-flex; align-items: center; padding: 4px 8px;
  border-radius: var(--radius-xs); background: var(--color-brand-tint);
  box-shadow: inset 0 0 0 1px var(--color-brand);
  color: var(--color-brand); font-weight: 700; font-size: var(--fs-tiny); line-height: 14.3px;
  text-transform: uppercase; white-space: nowrap;
}
.eyebrow--gold { background: var(--color-gold-tint); box-shadow: inset 0 0 0 1px var(--color-gold); color: var(--color-gold); }
/* section eyebrows on the RG page are bare green text (152:16); the ACTIVE badge is a tint without a border, Geist 10/13 (38:78) */
.eyebrow--plain { padding: 0; background: none; box-shadow: none; border-radius: 0; }
.eyebrow--soft { padding: 2px 6px; box-shadow: none; font-size: 10px; line-height: 13px; }
.eyebrow--muted { background: var(--color-surface-2); box-shadow: none; color: var(--color-muted); text-transform: none; }

.tag-live {
  display: inline-flex; align-items: center; padding: 2px 6px; border-radius: var(--radius-xs);
  background: var(--color-brand-tint); color: var(--color-brand);
  font-weight: 700; font-size: var(--fs-tiny); line-height: 14.3px;
}

.age-inline {                       /* "18+" red solid indicator in helper rows (67:145) */
  display: inline-flex; align-items: center; justify-content: center; padding: 1px 4px;
  border-radius: 3px; background: var(--color-danger); color: #fff;
  font-family: var(--font-display); font-weight: 800; font-size: 9px; line-height: 11.34px;
}

/* ── section headings ─────────────────────────────────────────────────── */
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.section-title { font-family: var(--font-display); font-weight: 800; font-size: var(--fs-h4); line-height: 28px; color: var(--color-text-strong); }
.section-title--sm { font-size: 18px; line-height: 23px; }
.section-link { font-weight: 400; font-size: var(--fs-ui); line-height: 17px; color: var(--color-brand); text-decoration: none; position: relative; }
.section-link:hover { text-decoration: underline; text-underline-offset: 2px; }
.section-link::after { content: ""; position: absolute; inset: 50% 0 auto 0; translate: 0 -50%; height: 100%; min-height: 24px; }

/* ── fields ───────────────────────────────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field__label { font-weight: 500; font-size: var(--fs-ui); line-height: 17px; color: var(--color-muted); }
.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%; height: 44px; padding: 12px 14px 12px var(--field-pad-l, 14px);   /* --field-pad-l: room for a prefix (the :not() chain outranks a plain descendant rule) */
  border: 0; border-radius: var(--radius-md);
  background: var(--color-bg); color: var(--color-text);
  box-shadow: inset 0 0 0 1px var(--color-border);
  font-size: var(--fs-body); line-height: 18.2px;
  transition: box-shadow var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: var(--color-muted); opacity: 1; }
.field textarea { height: auto; min-height: 44px; resize: vertical; }
.field select {
  appearance: none; padding-right: 36px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f0f4f8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 12px;
}
.field select:invalid, .field select.is-placeholder { color: var(--color-muted); }
.field input:hover, .field select:hover, .field textarea:hover { box-shadow: inset 0 0 0 1px var(--color-border-2); }
.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__prefix {
  position: absolute; left: 14px; top: 50%; translate: 0 -50%;
  display: inline-flex; align-items: center; padding: 2px 6px; border-radius: 4px;
  background: var(--color-surface-2); color: var(--color-text); font-weight: 500; font-size: var(--fs-body); line-height: 18.2px;
  pointer-events: none;
}
.field__control--prefix { --field-pad-l: 66px; }
.field__prefix--text { background: none; padding: 0; font-size: var(--fs-ui); color: var(--color-muted); }
.field__control--prefix-text { --field-pad-l: 76px; }
.field__toggle {
  position: absolute; right: 14px; top: 50%; translate: 0 -50%;
  padding: 4px 0; border: 0; background: none; cursor: pointer;
  color: var(--color-brand); font-weight: 600; font-size: var(--fs-small); line-height: 16px;
}
.field__toggle::after { content: ""; position: absolute; inset: -8px; }
.field__help { display: flex; align-items: center; gap: 4px; font-size: var(--fs-small); line-height: 16px; color: var(--color-dim); }
.field__error { font-size: var(--fs-small); line-height: 16px; color: var(--color-danger); }
.field.has-error input, .field.has-error select, .field.has-error textarea { box-shadow: inset 0 0 0 1px var(--color-danger); }

.form__error { padding: 10px 14px; border-radius: var(--radius-md); background: var(--color-danger-tint); box-shadow: inset 0 0 0 1px var(--color-danger); color: var(--color-danger-text); font-size: var(--fs-ui); line-height: 18px; }
.form__row { display: flex; gap: 16px; }
.form__row > * { flex: 1 1 0; }

/* ── checkbox ─────────────────────────────────────────────────────────── */
.check { position: relative; display: flex; align-items: flex-start; gap: 12px; min-height: 24px; cursor: pointer; }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check__box {
  flex: none; width: 18px; height: 18px; border-radius: var(--radius-xs);
  box-shadow: inset 0 0 0 1px var(--color-border-2); background: transparent;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.check__box::after {
  content: ""; width: 12px; height: 12px; opacity: 0; transition: opacity var(--dur-fast) var(--ease);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b0e14' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.check input:checked + .check__box { background: var(--color-brand); box-shadow: none; }
.check input:checked + .check__box::after { opacity: 1; }
.check:hover .check__box { box-shadow: inset 0 0 0 1px var(--color-muted); }
.check input:focus-visible + .check__box { box-shadow: var(--focus-ring); }
.check__label { font-size: var(--fs-body); line-height: 19.6px; color: var(--color-text); }
.check__label a { color: var(--color-brand); text-decoration: none; }
.check__label a:hover { text-decoration: underline; }
.check__hint { color: var(--color-dim); }
.check--locked { cursor: default; }
.check--locked .check__box { opacity: .9; }
.check.has-error .check__box { box-shadow: inset 0 0 0 1px var(--color-danger); }

/* ── segmented control (bet slip tabs 4:288, limit period) ────────────── */
.segmented { display: flex; padding: 4px; border-radius: var(--radius-md); background: var(--color-bg); box-shadow: inset 0 0 0 1px var(--color-border); }
.segmented__item {
  flex: 1 1 0; padding: 6px 12px; border: 0; border-radius: var(--radius-sm);
  background: transparent; color: var(--color-muted); cursor: pointer;
  font-weight: 600; font-size: var(--fs-ui); line-height: 16px; text-align: center;
  transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.segmented__item:hover { color: var(--color-text); }
.segmented__item[aria-selected="true"], .segmented__item.is-active { background: var(--color-surface-2); color: var(--color-text-strong); }
.segmented--brand .segmented__item[aria-selected="true"], .segmented--brand .segmented__item.is-active { background: var(--color-brand); color: var(--color-on-brand); }
.segmented__item:focus-visible { outline: none; box-shadow: var(--focus-ring); }

/* ── filter chips (sports/racing filters) ─────────────────────────────── */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; padding: 6px 12px; border: 0; border-radius: var(--radius-sm);
  background: transparent; color: var(--color-text); cursor: pointer;
  box-shadow: inset 0 0 0 1px var(--color-border);
  font-weight: 600; font-size: var(--fs-small); line-height: 16px; white-space: nowrap;
  transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.chip:hover { background: var(--color-surface); }
.chip[aria-pressed="true"], .chip.is-active { color: var(--color-brand); box-shadow: inset 0 0 0 1px var(--color-brand); background: var(--color-brand-tint); }
.chip:focus-visible { outline: none; box-shadow: var(--focus-ring); }

/* ── odds button ──────────────────────────────────────────────────────── */
.odds {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  height: 36px; padding: 0 12px; border: 0; border-radius: var(--radius-sm);
  background: var(--color-surface-2); color: var(--color-muted); cursor: pointer;
  box-shadow: inset 0 0 0 1px var(--color-border);
  font-size: var(--fs-small); line-height: 16px; text-align: left; min-width: 0;
  transition: background-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.odds__label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.odds__value { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-ui); line-height: 16.38px; color: var(--color-brand); font-variant-numeric: tabular-nums; }
.odds:hover { background: var(--color-surface-2-hover); box-shadow: inset 0 0 0 1px var(--color-border-2); }
.odds[aria-pressed="true"], .odds.is-selected { background: var(--color-brand-tint); box-shadow: inset 0 0 0 1px var(--color-brand); color: var(--color-brand); }
.odds:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.odds--lg { height: 40px; }

/* ── cards ────────────────────────────────────────────────────────────── */
.card {
  background: var(--color-surface); border-radius: var(--radius-xl);
  box-shadow: inset 0 0 0 1px var(--color-border);
}
.card--sm { border-radius: var(--radius-lg); }
.card--link { transition: box-shadow var(--dur-base) var(--ease), transform var(--dur-base) var(--ease); }
.card--link:hover { box-shadow: inset 0 0 0 1px var(--color-border-2); transform: translateY(-2px); }

/* numbered "01 / 02 / 03" cards */
.num-card { display: flex; flex-direction: column; gap: 12px; padding: 24px; }
.num-card__num { font-family: var(--font-display); font-weight: 800; font-size: 28px; line-height: 35px; color: var(--color-brand); }
.num-card__title { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-lead); line-height: 20px; color: var(--color-text); }
.num-card__text { font-size: var(--fs-ui); line-height: 20px; color: var(--color-muted); }

/* ── accordion ────────────────────────────────────────────────────────── */
.acc { border-radius: var(--radius-md); background: var(--color-surface); box-shadow: inset 0 0 0 1px var(--color-border); transition: box-shadow var(--dur-fast) var(--ease); }
.acc.is-open { box-shadow: inset 0 0 0 1px var(--color-brand); }
.acc__btn {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  width: 100%; padding: 14px 16px; border: 0; background: none; color: var(--color-text); cursor: pointer; text-align: left;
  font-weight: 600; font-size: var(--fs-ui); line-height: 17px;
  transition: color var(--dur-fast) var(--ease);
}
.acc__btn:hover, .acc.is-open .acc__btn { color: var(--color-brand); }
.acc__btn:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: var(--radius-md); }
.acc__chev { flex: none; width: 14px; height: 14px; color: var(--color-muted); transition: transform var(--dur-base) var(--ease); }
.acc.is-open .acc__chev { transform: rotate(180deg); color: var(--color-brand); }
.acc__body { padding: 0 16px 16px; font-size: var(--fs-ui); line-height: 20px; color: var(--color-muted); }
.acc__body p + p { margin-top: 8px; }
.acc__body a { color: var(--color-brand); }

/* ── overlays (age gate) ──────────────────────────────────────────────── */
.overlay {
  position: fixed; inset: 0; z-index: var(--z-modal);
  display: grid; place-items: center; padding: 20px;
  background: rgba(11, 14, 20, .82);
  opacity: 0; transition: opacity var(--dur-slow) var(--ease);
  overflow-y: auto;
}
.overlay.is-open { opacity: 1; }
.overlay__panel {
  width: min(100%, 540px); max-height: none;
  background: var(--color-surface); border-radius: var(--radius-xl);
  box-shadow: inset 0 0 0 1px var(--color-border), var(--shadow-sheet);
  transform: translateY(8px); transition: transform var(--dur-slow) var(--ease);
}
.overlay.is-open .overlay__panel { transform: none; }

.age-gate { display: flex; flex-direction: column; align-items: center; padding: 40px; text-align: center; }
.age-gate__badge {
  display: inline-flex; align-items: center; justify-content: center; width: 88px; height: 52px;
  border-radius: var(--radius-md); background: rgba(255, 77, 77, .08); color: var(--color-danger);
  font-family: var(--font-display); font-weight: 800; font-size: 34px; line-height: 34px;
}
.age-gate__title { margin-top: 24px; font-family: var(--font-display); font-weight: 700; font-size: 24px; line-height: 30.24px; color: var(--color-text); }
.age-gate__body { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; font-size: var(--fs-body); line-height: 21px; color: var(--color-muted); }
.age-gate__actions { width: 100%; margin-top: 32px; display: flex; flex-direction: column; gap: 12px; }
.age-gate__actions .btn { height: 48px; font-size: var(--fs-body); line-height: 18px; }
.age-gate__footer { width: 100%; margin-top: 32px; padding-top: 16px; box-shadow: inset 0 1px 0 var(--color-border); display: flex; flex-direction: column; gap: 12px; font-size: var(--fs-small); line-height: 16px; color: var(--color-dim); }
.age-gate__lines a { color: var(--color-dim); text-decoration: underline; text-underline-offset: 2px; }
.age-gate__lines a:hover { color: var(--color-brand); }
.age-gate__lines .age-gate__strong { color: var(--color-text); text-decoration: none; }
.age-gate__lines .age-gate__betstop { color: var(--color-danger); text-decoration: none; }

/* ── cookie banner (65:50 / 87:262) ───────────────────────────────────── */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-overlay);
  display: flex; justify-content: center; padding: 0 58px 38px;
  pointer-events: none;
}
.cookie-banner__panel {
  pointer-events: auto; width: 100%; max-width: 960px;
  display: flex; flex-direction: column; gap: 24px; padding: 32px;
  background: var(--color-surface); border-radius: var(--radius-xl);
  box-shadow: inset 0 1px 0 var(--color-border), var(--shadow-sheet);
}
.cookie-banner__title { font-family: var(--font-display); font-weight: 800; font-size: 18px; line-height: 23px; color: var(--color-text); text-transform: uppercase; }
.cookie-banner__text { font-size: var(--fs-ui); line-height: 20px; color: var(--color-muted); margin-top: -8px; }
.cookie-banner__links { font-size: var(--fs-ui); line-height: 17px; color: var(--color-muted); margin-top: -8px; }
.cookie-banner__links a { color: var(--color-brand); text-decoration: underline; text-underline-offset: 2px; }
.cookie-banner__cats { display: flex; flex-wrap: wrap; gap: 24px; }
.cookie-banner__cats .check { gap: 10px; align-items: center; }
.cookie-banner__cats .check__label { font-size: var(--fs-ui); line-height: 17px; }
.cookie-banner__actions { display: flex; justify-content: flex-end; gap: 12px; }
.cookie-banner__actions .btn { padding: 12px 24px; font-size: var(--fs-ui); line-height: 16.38px; }
.cookie-banner.is-hiding { transition: opacity var(--dur-base) var(--ease); opacity: 0; }

/* ── inline notice / done panels (ours — the mockup has no success state) ─ */
.notice {
  display: flex; gap: 12px; align-items: flex-start; padding: 16px;
  border-radius: var(--radius-lg); background: var(--color-brand-tint); box-shadow: inset 0 0 0 1px var(--color-brand);
  color: var(--color-text); font-size: var(--fs-body); line-height: 20px;
}
.notice__icon { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--color-brand); color: var(--color-on-brand); }
.notice__icon .icon { width: 14px; height: 14px; }
.notice__title { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-lead); line-height: 20px; }
.notice p + p { margin-top: 4px; color: var(--color-muted); font-size: var(--fs-ui); }
.notice--danger { background: var(--color-danger-tint); box-shadow: inset 0 0 0 1px var(--color-danger); }
.notice--danger .notice__icon { background: var(--color-danger); color: #fff; }

/* Icons inherit colour and take their size from CSS. */
.icon { width: 1em; height: 1em; flex: none; }
.icon--missing { display: inline-block; width: 1em; height: 1em; outline: 1px dashed var(--color-danger); }

/* ── mobile ───────────────────────────────────────────────────────────── */
@media (max-width: 1199px) {
  .age-gate { padding: 32px 24px 28px; }
  .age-gate__badge { width: 80px; height: 44px; font-size: 28px; line-height: 35.28px; }
  .age-gate__title { margin-top: 20px; font-size: 22px; line-height: 28px; }
  .age-gate__body { font-size: var(--fs-ui); line-height: 19px; }
  .age-gate__actions { margin-top: 24px; gap: 10px; }
  .age-gate__footer { margin-top: 24px; font-size: var(--fs-tiny); line-height: 16px; gap: 10px; }
  .overlay__panel { width: min(100%, 350px); }

  .cookie-banner { padding: 0; }
  .cookie-banner__panel { max-width: none; gap: 20px; padding: 24px 20px 32px; border-radius: 0; max-height: 85vh; overflow-y: auto; }
  .cookie-banner__title { font-size: 16px; line-height: 20px; }
  .cookie-banner__text { line-height: 19px; margin-top: 0; }
  .cookie-banner__links { margin-top: 0; }
  .cookie-banner__cats { flex-direction: column; gap: 12px; }
  .cookie-banner__cats .check { gap: 12px; }
  .cookie-banner__actions { flex-direction: column; gap: 8px; }
  .cookie-banner__actions .btn { width: 100%; padding: 12px 0; }
  .cookie-banner__actions .btn--primary { order: -2; }
  .cookie-banner__actions [data-cookie-choice="save"] { order: -1; }

  .form__row { flex-direction: column; }
}

/* fieldset used as a field (deposit-limit period): no browser chrome */
fieldset.field { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset.field > legend { padding: 0; margin-bottom: 6px; float: left; width: 100%; }
fieldset.field > legend + * { clear: both; }
.form-card > .eyebrow { align-self: flex-start; padding: 0; background: none; box-shadow: none; border-radius: 0; }   /* 58:2766: bare green text above the form title */
