/* UI pieces the mockup did not draw, designed in its language (S3.2 / S3.4):
 * overlays & dialogs, forms, cookie banner, age gate, sports rail, account menu,
 * notes, skeletons, footer data band. Same tokens, same radii, same hairlines. */

/* ── header extras ─────────────────────────────────────────────────────── */
.hdr.is-scrolled { box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.acct { position: relative; }
.acct__btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 10px 0 4px; border-radius: var(--r-pill); border: 1px solid var(--hair-2); font-weight: 700; font-size: 14px; transition: background var(--dur-fast); }
.acct__btn:hover { background: rgba(255, 255, 255, .06); }
.acct__btn .icon { width: 16px; height: 16px; color: var(--text-muted); }
.acct__av { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--primary); color: var(--primary-ink); font-weight: 800; font-size: 13px; }
.acct__name { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct__menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px; padding: 6px; border-radius: var(--r-lg); background: var(--bg-raised); border: 1px solid var(--hair-2); box-shadow: var(--shadow-popover); z-index: 5; display: grid; }
.acct__menu a, .acct__menu button { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px; border-radius: 10px; font-weight: 650; font-size: 14px; text-align: left; width: 100%; }
.acct__menu a:hover, .acct__menu button:hover { background: rgba(255, 255, 255, .06); }
.acct__menu .icon { width: 16px; height: 16px; color: var(--text-muted); }

/* ── sports rail (brief §6: scrolling rail under the header) ──────────── */
.srail { border-bottom: 1px solid var(--hair); background: rgba(10, 10, 17, .35); }
.srail__in { display: flex; align-items: center; gap: 10px; padding-block: 10px; }
.srail__track { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; flex: 1; min-width: 0; padding: 2px; scroll-padding-inline: 2px; }
.srail__track::-webkit-scrollbar { display: none; }
.srail__arr { flex: none; width: 40px; height: 40px; }
.srail__arr:disabled { opacity: .3; cursor: default; }
.schip { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; width: calc((100% - 7 * 8px) / 8); min-width: 150px; height: 56px; padding: 0 12px 0 8px; border-radius: 14px; border: 1px solid var(--hair); background: linear-gradient(180deg, color-mix(in oklab, var(--surface) 70%, transparent), transparent); scroll-snap-align: start; transition: border-color var(--dur-fast), background var(--dur-fast), transform var(--dur-fast) var(--ease); }
.schip:hover { border-color: var(--hair-2); transform: translateY(-2px); }
.schip.is-on { border-color: color-mix(in oklab, var(--primary) 55%, transparent); background: var(--primary-12); }
.schip__ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--plate); color: var(--secondary-soft); flex: none; box-shadow: inset 0 2px 4px rgba(0, 0, 0, .6); }
.schip.is-on .schip__ic { color: var(--primary); }
.schip__ic--live { color: var(--danger); }
.schip__t { display: grid; font-weight: 750; font-size: 13.5px; line-height: 1.2; min-width: 0; }
.schip__t, .schip__t small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.schip__t small { font-weight: 600; font-size: 11.5px; color: var(--text-muted); margin-top: 2px; }

/* ── overlays (one system for modal, menu, drawer, gate) ──────────────── */
.overlay { position: fixed; inset: 0; z-index: var(--z-modal); display: grid; place-items: center; padding: 16px; background: var(--scrim); opacity: 0; transition: opacity var(--dur-base) var(--ease); overflow-y: auto; }
.overlay.is-open { opacity: 1; }
.overlay__panel { position: relative; transform: translateY(10px) scale(.985); transition: transform var(--dur-base) var(--ease); }
.overlay.is-open .overlay__panel { transform: none; }

.modal { width: min(100%, 470px); max-height: calc(100vh - 32px); overflow-y: auto; overflow-x: hidden; padding: 28px; border-radius: var(--r-tile); background: linear-gradient(180deg, color-mix(in oklab, var(--surface) 80%, var(--bg-raised)), var(--bg-raised) 60%); border: 1px solid var(--hair-2); box-shadow: var(--shadow-popover); }
.modal--sm { width: min(100%, 420px); }
.modal > :not(.orb) { position: relative; }
.modal__x { position: absolute !important; right: 14px; top: 14px; z-index: 2; }
.modal__t { font-size: 24px; font-weight: 800; letter-spacing: -.025em; line-height: 1.15; padding-right: 44px; }
.modal__p { color: var(--text-muted); font-size: 14.5px; margin: 8px 0 20px; text-wrap: pretty; }
.modal__alt { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; margin-top: 18px; font-size: 14px; color: var(--text-muted); }
.modal__row { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.link { font: inherit; color: var(--text); font-weight: 700; cursor: pointer; }
button.link { text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .3); text-underline-offset: 3px; min-height: 24px; }

/* menu as overlay */
.overlay--menu { padding: 0; place-items: stretch; background: var(--bg); z-index: var(--z-menu); }
.overlay--menu .menu { position: relative; inset: auto; opacity: 1; visibility: visible; transform: none; min-height: 100%; }
.burger--on { display: inline-flex !important; }
.menu__act .btn .icon { width: 18px; height: 18px; }

/* drawer as overlay */
.overlay--drawer { padding: 0; place-items: stretch end; z-index: var(--z-drawer); overflow: hidden; }
.overlay--drawer .drawer { visibility: visible; }
.overlay--drawer.is-open .drawer { transform: none; }
.drawer__h .lnk { font-size: 13px; color: var(--text-muted); }
.drawer__h .lnk:hover { color: var(--text); }

/* ── age gate ─────────────────────────────────────────────────────────── */
.overlay--gate { z-index: var(--z-gate); background: rgba(8, 8, 14, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); opacity: 1; }
.gate { width: min(100%, 520px); padding: 32px; border-radius: var(--r-tile); text-align: center; overflow: hidden; background: linear-gradient(180deg, color-mix(in oklab, var(--surface) 80%, var(--bg-raised)), var(--bg-raised) 70%); border: 1px solid var(--hair-2); box-shadow: var(--shadow-popover); transform: none !important; }
.gate > :not(.orb) { position: relative; }
.gate .logo { margin-bottom: 20px; }
.gate__age { font-size: 44px; padding: .2em .4em; margin: 0 auto 18px; }
.gate__t { font-size: 26px; font-weight: 800; letter-spacing: -.025em; }
.gate__p { color: var(--text-muted); margin: 10px auto 22px; max-width: 44ch; }
.gate__actions { display: grid; gap: 10px; }
.gate__note { font-size: 12.5px; color: var(--text-muted); margin-top: 16px; }

/* ── forms ────────────────────────────────────────────────────────────── */
.form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field__label { font-size: 12.5px; font-weight: 700; color: var(--text-muted); }
.field input:not([type=checkbox]):not([type=radio]):not(.visually-hidden), .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 0 14px; border-radius: var(--radius-control); border: 1px solid var(--line); background: var(--bg); color: var(--text); font-weight: 600; font-size: 15px;
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast); }
.field textarea { min-height: 140px; padding-block: 12px; resize: vertical; line-height: 1.5; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--text-muted) 50%), linear-gradient(135deg, var(--text-muted) 50%, transparent 50%); background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary); box-shadow: var(--focus-ring); }
.field input::placeholder, .field textarea::placeholder { color: rgba(175, 176, 194, .6); }
.field__hint { font-size: 12.5px; color: var(--text-muted); }
.field__error { font-size: 13px; font-weight: 650; color: var(--danger); }
.field.has-error input, .field.has-error select, .field.has-error textarea, [aria-invalid=true] { border-color: var(--danger) !important; }
.field--check { grid-template-columns: 22px minmax(0, 1fr); align-items: start; gap: 4px 10px; }
.field--check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--primary); cursor: pointer; }
.field--check .field__label { font-size: 13.5px; font-weight: 600; color: var(--text-soft); line-height: 1.45; cursor: pointer; }
.field--check .field__error { grid-column: 2; }
.form__error { padding: 10px 12px; border-radius: var(--r-md); background: var(--danger-12); color: #FFC2CA; font-weight: 650; font-size: 13.5px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn--danger { background: var(--danger); color: #2A0A10; }
.btn--danger:hover { background: #FF8291; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn .icon { width: 18px; height: 18px; }
.btn:active:not(:disabled) { transform: translateY(1px); }

/* toggle */
.tgl { display: inline-flex; align-items: flex-start; gap: 10px; cursor: pointer; font-weight: 650; font-size: 13.5px; min-height: 28px; }
.tgl input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tgl__ui { flex: none; width: 40px; height: 24px; border-radius: 999px; background: var(--line); position: relative; transition: background var(--dur-fast); margin-top: 1px; }
.tgl__ui::after { content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--text); transition: transform var(--dur-fast) var(--ease); }
.tgl input:checked + .tgl__ui { background: var(--primary); }
.tgl input:checked + .tgl__ui::after { transform: translateX(16px); background: var(--primary-ink); }
.tgl input:disabled + .tgl__ui { opacity: .6; }
.tgl input:focus-visible + .tgl__ui { outline: 2px solid var(--primary); outline-offset: 2px; }
.tgl b { display: block; font-size: 14.5px; }
.tgl small { display: block; color: var(--text-muted); font-weight: 500; font-size: 12.5px; margin-top: 2px; line-height: 1.45; }
.ck-cats { display: grid; gap: 14px; padding: 4px 0; }
.ck-cats li { padding: 14px; border-radius: var(--r-lg); border: 1px solid var(--hair); background: rgba(255, 255, 255, .02); }

/* ── cookie banner ─────────────────────────────────────────────────────── */
.ckb { position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-cookie); background: color-mix(in oklab, var(--bg-raised) 96%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--hair-2); box-shadow: 0 -18px 50px rgba(0, 0, 0, .45); padding-bottom: env(safe-area-inset-bottom); transition: transform var(--dur-base) var(--ease), opacity var(--dur-base); }
.ckb.is-out { transform: translateY(100%); opacity: 0; }
.ckb__in { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px 28px; align-items: center; padding-block: 16px; }
.ckb h2 { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 800; }
.ckb h2 .icon { color: var(--primary); }
.ckb p { color: var(--text-muted); font-size: 13.5px; margin-top: 4px; max-width: 72ch; }
.ckb__form { display: grid; gap: 10px; justify-items: end; }
.ckb__cats { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.ckb__btns { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 8px; }
.ckb__set { font-size: 13px; }
body.has-cookie { padding-bottom: 150px; }

/* ── notes, empty & loading states ────────────────────────────────────── */
.note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r-md); border: 1px solid var(--hair); background: rgba(255, 255, 255, .03); font-size: 13.5px; color: var(--text-soft); }
.note .icon { flex: none; margin-top: 1px; }
.note--ok { background: var(--success-12); border-color: color-mix(in oklab, var(--success) 25%, transparent); color: #CFF7E3; display: grid; gap: 10px; }
.note--ok .icon { color: var(--success); }
.note--err { background: var(--danger-12); border-color: color-mix(in oklab, var(--danger) 25%, transparent); color: #FFC2CA; }
.note--warn { background: color-mix(in oklab, #F5C451 12%, transparent); border-color: color-mix(in oklab, #F5C451 28%, transparent); color: #FBE6B4; }
.note--info { background: var(--info-12); border-color: color-mix(in oklab, var(--info) 22%, transparent); color: #CFE6FF; }
.note--info .icon { color: var(--info); }
.u-empty--err { color: #FFC2CA; display: grid; justify-items: center; gap: 12px; }
.brow--sk { animation: none; }
.sk { display: block; height: 14px; border-radius: 6px; background: linear-gradient(90deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .11), rgba(255, 255, 255, .05)); background-size: 200% 100%; animation: sk 1.2s linear infinite; }
.sk--time { width: 78px; height: 40px; border-radius: var(--r-sm); }
.sk--ic { width: 34px; height: 34px; border-radius: 10px; }
.sk--txt { width: 70%; }
.sk--st { width: 60px; }
.sk--odds { height: 40px; border-radius: var(--radius-control); }
@keyframes sk { to { background-position: -200% 0; } }

/* ── coupon extras ─────────────────────────────────────────────────────── */
.cp-alerts { display: grid; gap: 8px; margin-bottom: 10px; }
.cp-alerts:empty { display: none; }
.cp-item.is-bad { border-color: color-mix(in oklab, var(--danger) 35%, transparent); background: var(--danger-12); }
.cp-item.is-bad .cp-item__t b { text-decoration: line-through; text-decoration-color: rgba(255, 255, 255, .4); }
.cp-item__bad { font-size: 12.5px; color: #FFC2CA; margin-top: 6px; font-weight: 600; }
.cp-item__chg { display: block; font-size: 12px; color: #FBE6B4; margin-top: 4px; }
a.cp-item__e { display: block; }
a.cp-item__e:hover { color: var(--primary); }
.cp-formula { font-size: 12.5px; color: var(--text-muted); }
.ticket--big .btn { position: relative; z-index: 1; margin-top: 8px; }
.set { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.set > div:first-child { min-width: 0; }
.set__act { display: flex; align-items: center; gap: 6px; flex: none; }

/* ── lists & misc ─────────────────────────────────────────────────────── */
.st--live { color: #FFC2CA; display: inline-flex; align-items: center; gap: 6px; }
.lt a { display: block; }
.lt a:hover { color: var(--primary); }
.hp-teams:hover .hp-team { color: var(--primary); }
.up-more { margin-top: 12px; }
.ftr__h { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); font-weight: 700; margin-bottom: 10px; }
.ftr__data { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px 28px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--hair); font-size: 13.5px; }
.ftr__data > div { display: grid; gap: 2px; }
.ftr__k { font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); }
.ftr__copy { margin-left: auto; white-space: nowrap; }
.ftr__cookie { font: inherit; color: var(--text-dim); text-decoration: underline; text-underline-offset: 3px; min-height: 24px; }
.ftr__cookie:hover { color: var(--primary); }

/* ── responsive for the pieces above ──────────────────────────────────── */
@media (max-width: 1279px) {
  .schip { width: auto; }
}
@media (max-width: 1099px) {
  body.has-cookie { padding-bottom: 260px; }
  .ckb { bottom: calc(84px + env(safe-area-inset-bottom)); left: 10px; right: 10px; border-radius: 18px; border: 1px solid var(--hair-2); }
  .ckb__in { grid-template-columns: minmax(0, 1fr); padding-inline: 16px; }
  .ckb__form { justify-items: start; }
  .ckb__btns { justify-content: flex-start; }
}
@media (max-width: 767px) {
  .srail__arr { display: none; }
  .srail__in { padding-block: 8px; }
  .schip { min-width: 0; width: 46%; height: 52px; }
  .modal { padding: 22px 18px; border-radius: 20px; }
  .modal__t { font-size: 21px; }
  .gate { padding: 24px 18px; }
  .gate__t { font-size: 22px; }
  .ckb p { font-size: 13px; }
  .ckb__btns .btn { flex: 1 1 auto; }
  .ftr__copy { margin-left: 0; white-space: normal; }
  .grid3--snap { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; scrollbar-width: none; margin-inline: calc(-1 * var(--gut)); padding-inline: var(--gut); scroll-padding-inline: var(--gut); }
  .grid3--snap::-webkit-scrollbar { display: none; }
  .grid3--snap > * { flex: 0 0 86%; scroll-snap-align: start; }
}
@media (max-width: 389px) {
  .hdr .logo { letter-spacing: .1em; }
  .schip { width: 60%; }
}
.ini{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;font-size:11px;font-weight:800;background:var(--secondary-16);color:#C9BDFF;flex:none}

/* ── not found (404) ──────────────────────────────────────────────────── */
.nf { padding-block: 40px 64px; }
.nf__in { text-align: center; padding: 48px 24px; display: grid; justify-items: center; gap: 14px; }
.nf__code { font-size: clamp(48px, 7vw, 84px); padding: .15em .35em; }
.nf h1 { font-size: var(--fs-h1); font-weight: 800; letter-spacing: -.035em; }
.nf p { color: var(--text-muted); max-width: 52ch; }
.nf__act { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 6px; }

/* narrow screens: secondary lines wrap instead of being cut with an ellipsis */
@media (max-width: 767px) {
  .lt small { white-space: normal; overflow: visible; text-overflow: clip; }
  .ladb__n { white-space: normal; line-height: 1.25; }
  .ladb { grid-template-columns: 30px minmax(0, 1fr) 72px 38px; }
  .schip__t, .schip__t small { white-space: normal; }
  .schip { height: auto; min-height: 52px; padding-block: 6px; }
}
@media (max-width: 1099px) {
  .t-live .lrow { grid-template-columns: 56px minmax(0, 1fr) 40px; grid-template-areas: "m t s" "o o o"; row-gap: 10px; }
  .t-live .lmin { grid-area: m; } .t-live .lt { grid-area: t; } .t-live .lsc { grid-area: s; } .t-live .lrow .o3 { grid-area: o; }
  .t-ladder .ladb { grid-template-columns: 30px minmax(0, 1fr) minmax(48px, 120px) 38px; }
  .ladb__n { white-space: normal; line-height: 1.25; }
}

/* rail chips: names may take two lines; live = dot on the icon */
.schip { height: auto; min-height: 56px; padding-block: 7px; }
.schip__t { white-space: normal; line-height: 1.15; }
.schip__t > :first-child, .schip__t { overflow: visible; text-overflow: clip; }
.schip__t small { white-space: nowrap; }
.schip__ic { position: relative; }
.schip__live { position: absolute; top: -3px; right: -3px; width: 10px; height: 10px; border-radius: 50%; background: var(--danger); box-shadow: 0 0 0 2px var(--bg); }

/* secondary lines take two lines instead of an ellipsis (flow.js: no clipped text) */
.bm small, .card__h .lg b { white-space: normal; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; text-overflow: clip; }
.pays__row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.pays { display: block; }
.pays p { margin-top: 10px; }
.card__h .lg b { overflow-wrap: anywhere; }

/* owner's wordmark (replaces the CSS lettering) */
.logo__img, .logo__img img { display: block; }
.logo__img img { height: 20px; width: auto; }
.gate .logo { display: inline-flex; justify-content: center; }
.gate .logo__img img { height: 26px; }
@media (max-width: 767px) { .hdr .logo__img img { height: 17px; } }
@media (max-width: 389px) { .hdr .logo__img img { height: 15px; } }
.sets__h { font-size: 12.5px; font-weight: 700; color: var(--text-muted); margin: 14px 0 8px; }

/* breadcrumbs are used on non-catalogue pages too (contacts, coupon, account) */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: 13px; color: var(--text-muted); margin-bottom: 10px; }
.crumbs a { display: inline-flex; align-items: center; min-height: 28px; font-weight: 650; }
.crumbs a:hover { color: var(--primary); }
.crumbs .icon { width: 14px; height: 14px; opacity: .6; }
.crumbs [aria-current] { color: var(--text-dim); font-weight: 650; }
.th h2 { overflow-wrap: anywhere; }
/* tap targets on phones */
.hdr .logo { min-height: 44px; }
.tk { min-height: 32px; }
.hero__ctl .ibtn { flex: none; width: 44px; height: 44px; }
