/* ============================================================
   Betpinnacle.co — shared styles (design: лотто 14 baggy6et.fig)
   Desktop reference frame: 1440px, content 1200px.
   Mobile reference frame: 390px, content 358px (16px gutters).
   Breakpoint: 992px.
   ============================================================ */

:root {
  --ink: #111111;
  --ink-2: #1a1a1a;
  --paper: #f7f3e8;
  --card: #ffffff;
  --line: #e5e7eb;
  --accent: #f5c518;
  --brown: #8b6508;
  --muted: #666666;
  --slate: #cbd5e1;
  --navy: #0b1120;
  --footer-bg: #111318;
  --footer-bg-m: #1a1a1a;
  --hairline: #1b2a3a;
  --gray-mid: #64748b;

  --font-display: 'Archivo Narrow', 'Arial Narrow', Arial, sans-serif;
  --font-ui: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'Geist Mono', 'SFMono-Regular', Consolas, monospace;
  --font-archivo: 'Archivo', Arial, sans-serif;
}

/* ---------- reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-ui);
  color: var(--ink);
  background: var(--paper);
  line-height: 1;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
ul, ol { list-style: none; }

.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
@media (min-width: 992px) { .wrap { width: min(1200px, 100% - 48px); } }

/* visibility helpers: only ever force `none`, so flex/grid displays survive */
@media (max-width: 991.98px) {
  .u-desktop { display: none !important; }
}
.u-d-i { display: none; }
.u-m-i { display: inline; }
@media (min-width: 992px) {
  .u-mobile { display: none !important; }
  .u-d-i { display: inline; }
  .u-m-i { display: none; }
  .odds-btn.m-only { display: none; }
}

/* ---------- shared type ---------- */
.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 36px;
  line-height: 1;
  letter-spacing: -1px;
  text-transform: uppercase;
}
@media (min-width: 992px) {
  .section-title { font-size: 72px; letter-spacing: -2px; }
}
.section-title .hl { color: var(--accent); }

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-ui);
  font-weight: 800;
  font-size: 13px;
  color: var(--ink);
}
.arrow-link svg { width: 16px; height: 16px; flex: none; }

/* ---------- buttons / chips ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-ui);
  font-weight: 900;
  font-size: 14px;
  letter-spacing: 0.5px;
  color: var(--ink);
  height: 44px;
  padding: 0 24px;
}
.btn-yellow { background: var(--accent); }
.btn-outline { background: transparent; border: 1.5px solid var(--ink); font-weight: 700; }

.chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--line);
  padding: 6px 12px;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 12px;
  color: var(--ink);
  cursor: pointer;
  white-space: nowrap;
}
.chip.is-active { background: var(--accent); border-color: var(--accent); font-weight: 800; }
@media (min-width: 992px) {
  .chip { padding: 8px 14px; font-size: 13px; }
}

/* ---------- odds buttons ---------- */
.odds-row { display: flex; gap: 6px; }
.odds-btn {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 46px;
  padding: 6px 8px;
  background: var(--card);
  border: 1px solid var(--line);
  text-align: center;
}
.odds-btn .odds-label { font-family: var(--font-ui); font-weight: 700; font-size: 11px; color: var(--ink); }
.odds-btn .odds-price { font-family: var(--font-mono); font-weight: 900; font-size: 12px; color: var(--ink); }
.odds-btn.is-active { background: var(--accent); border-color: var(--accent); }
@media (min-width: 992px) {
  .odds-row { gap: 8px; }
  .odds-btn { align-items: flex-start; text-align: left; min-height: 56px; padding: 8px 12px; }
  .odds-btn .odds-label { font-weight: 800; font-size: 12px; }
  .odds-btn .odds-price { font-size: 14px; }
}

/* ---------- event cards ---------- */
.event-card {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.event-card .event-meta { display: flex; justify-content: space-between; align-items: center; }
.event-card .event-meta .meta-left { font-family: var(--font-mono); font-weight: 700; font-size: 10px; color: var(--muted); }
.event-card .event-meta .meta-right { font-family: var(--font-mono); font-weight: 700; font-size: 10px; color: var(--brown); }
.event-card .event-title { font-family: var(--font-ui); font-weight: 800; font-size: 16px; line-height: 1.2; color: var(--ink); }
.event-card .event-market { font-family: var(--font-ui); font-weight: 400; font-size: 12px; color: var(--muted); }
@media (min-width: 992px) {
  .event-card { padding: 24px; gap: 16px; }
  .event-card .event-meta .meta-left,
  .event-card .event-meta .meta-right { font-size: 12px; color: var(--ink); }
  .event-card .event-title { font-size: 24px; line-height: 1.2; }
  .event-card .event-market { font-size: 13px; color: var(--ink); }
}

/* ============================================================
   UTILITY BAR
   ============================================================ */
.utility-bar { background: var(--ink); padding: 8px 16px; }
.utility-bar .u-line-1 {
  font-family: var(--font-mono); font-weight: 700; font-size: 10px;
  color: var(--accent); text-align: center; line-height: 1.3;
}
.utility-bar .u-line-2 {
  font-family: var(--font-mono); font-weight: 700; font-size: 10px;
  color: #ffffff; text-align: center; margin-top: 4px; line-height: 1.3;
}
@media (min-width: 992px) {
  .utility-bar { background: var(--card); border-bottom: 1px solid var(--line); padding: 0; height: 32px; }
  .utility-bar .wrap { height: 100%; display: flex; justify-content: space-between; align-items: center; }
  .utility-bar .u-line-1, .utility-bar .u-line-2 {
    color: var(--ink); font-size: 11px; margin: 0; text-align: left; line-height: 1;
  }
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header { background: var(--card); border-bottom: 1px solid var(--line); }
.site-header .header-inner {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 0; min-height: 60px;
}
.brand {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(18px, 6.2vw, 24px); /* 24px at the 390 frame, shrinks below 360 so 320 never overflows */
  letter-spacing: -0.5px; color: var(--ink); white-space: nowrap;
}
.header-actions { display: flex; align-items: center; gap: 12px; }

.slip-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--card); border: 1.5px solid var(--ink);
  padding: 6px 10px; height: 28px;
}
.slip-btn svg { width: 14px; height: 14px; flex: none; }
.slip-btn .slip-label { font-family: var(--font-ui); font-weight: 800; font-size: 12px; }
.slip-btn .slip-label .slip-word-full { display: none; }
.slip-btn .slip-count {
  background: var(--accent); padding: 1px 6px;
  font-family: var(--font-mono); font-weight: 800; font-size: 11px; line-height: 14px;
}
.login-link { font-family: var(--font-ui); font-weight: 700; font-size: 14px; letter-spacing: 0.5px; }
.join-btn { width: 160px; }
.burger-btn {
  width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--paper);
  font-family: var(--font-ui); font-weight: 900; font-size: 18px; color: var(--ink);
}
@media (min-width: 992px) {
  .site-header .header-inner { padding: 24px 0 16px; min-height: 84px; }
  .brand { font-size: 28px; }
  .slip-btn { height: 44px; padding: 10px 12px; gap: 10px; border-width: 1px; }
  .slip-btn svg { width: 18px; height: 18px; }
  .slip-btn .slip-label { font-size: 13px; }
  .slip-btn .slip-label .slip-word-full { display: inline; }
  .slip-btn .slip-label .slip-word-short { display: none; }
  .slip-btn .slip-count { padding: 2px 8px; font-size: 12px; line-height: 16px; }
}

/* main nav (desktop only) */
.main-nav { background: var(--ink); }
.main-nav .wrap { display: flex; align-items: center; gap: 24px; padding-top: 20px; padding-bottom: 20px; }
.main-nav a {
  font-family: var(--font-ui); font-weight: 600; font-size: 14px;
  letter-spacing: 0.5px; color: #ffffff;
}
.main-nav a.is-active { color: var(--accent); }
.main-nav a:hover { color: var(--accent); }

/* mobile menu overlay */
.mobile-menu {
  display: none;
  position: fixed; inset: 0; z-index: 60;
  background: var(--paper);
  flex-direction: column;
  overflow-y: auto;
}
.mobile-menu.is-open { display: flex; }
.mobile-menu .menu-body { flex: 1; padding: 24px; display: flex; flex-direction: column; gap: 20px; }
.mobile-menu .menu-nav a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 0; border-bottom: 1px solid var(--line);
  font-family: var(--font-display); font-weight: 700; font-size: 24px; color: var(--ink);
  text-transform: uppercase;
}
.mobile-menu .menu-nav a + a { margin-top: 4px; }
.mobile-menu .menu-nav svg { width: 14px; height: 14px; }
.mobile-menu .menu-divider { height: 1px; background: var(--line); }
.mobile-menu .menu-actions { display: flex; flex-direction: column; gap: 12px; }
.mobile-menu .menu-actions .btn { height: 48px; width: 100%; }
.mobile-menu .menu-foot { padding-top: 48px; text-align: center; }
.mobile-menu .menu-foot .mf-1 {
  font-family: var(--font-mono); font-weight: 800; font-size: 11px; color: var(--ink); line-height: 1.3;
}
.mobile-menu .menu-foot .mf-2 {
  font-family: var(--font-mono); font-weight: 800; font-size: 11px; color: var(--muted); margin-top: 18px;
}
body.menu-locked { overflow: hidden; }

/* ============================================================
   PAYMENT STRIP
   ============================================================ */
.payment-strip { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 16px 0; }
.payment-strip .ps-inner { display: flex; flex-direction: column; gap: 12px; }
.payment-strip .ps-label {
  font-family: var(--font-mono); font-weight: 800; font-size: 10px;
  letter-spacing: 1px; text-transform: uppercase; color: var(--ink);
}
.payment-strip .ps-left { display: flex; flex-direction: column; gap: 8px; }
.payment-strip .ps-logos { width: 220px; height: 30px; object-fit: contain; object-position: left center; }
.payment-strip .ps-note { font-family: var(--font-ui); font-size: 10px; line-height: 1.3; color: var(--muted); }
@media (min-width: 992px) {
  .payment-strip { padding: 24px 0; }
  .payment-strip .ps-inner { flex-direction: row; justify-content: space-between; align-items: center; gap: 16px; }
  .payment-strip .ps-left { flex-direction: row; align-items: center; gap: 16px; }
  .payment-strip .ps-label { font-size: 11px; }
  .payment-strip .ps-logos { width: 300px; height: 40px; }
  .payment-strip .ps-note { font-size: 11px; line-height: 1; color: var(--ink); }
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--footer-bg-m); padding: 40px 0; color: var(--slate); }
.site-footer .footer-rule { height: 1px; background: var(--accent); }
.site-footer .footer-rule-dim { height: 1px; background: var(--hairline); }
.site-footer .footer-tag {
  font-family: var(--font-display); font-weight: 700; font-size: 14px;
  letter-spacing: 1px; text-transform: uppercase; color: var(--accent);
}
.site-footer .operator-about { font-family: var(--font-ui); font-size: 13px; line-height: 1.4; color: var(--slate); }
.site-footer .operator-lines { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.site-footer .operator-lines span { font-family: var(--font-ui); font-size: 13px; color: var(--slate); }
.site-footer .fcol-title {
  font-family: var(--font-mono); font-weight: 900; font-size: 12px;
  text-transform: uppercase; color: var(--accent);
}
.site-footer .fcol-links { display: flex; flex-direction: column; }
.site-footer .fcol-links a {
  font-family: var(--font-ui); font-size: 13px; color: #ffffff;
  display: flex; align-items: center; min-height: 40px;
}
.site-footer .fcol-links a:hover { color: var(--accent); }
.site-footer .footer-sections { display: flex; flex-direction: column; gap: 16px; margin-top: 24px; }
.site-footer .footer-section { display: flex; flex-direction: column; gap: 12px; }
.site-footer .footer-bottom {
  display: flex; justify-content: space-between; align-items: center; margin-top: 24px;
}
.site-footer .footer-bottom .copyright { font-family: var(--font-ui); font-size: 11px; color: var(--slate); opacity: 0.6; }
.site-footer .footer-band-1 { margin-top: 24px; }
@media (min-width: 992px) {
  .site-footer { background: var(--footer-bg); padding: 64px 0; }
  .site-footer .footer-band-1 { display: flex; gap: 48px; margin-top: 31px; }
  .site-footer .footer-brand-col { width: 760px; max-width: 63%; display: flex; flex-direction: column; gap: 12px; }
  .site-footer .operator-about { font-size: 13px; line-height: 1.25; }
  .site-footer .operator-lines { gap: 6px; margin-top: 0; }
  .site-footer .fcols { flex: 1; display: flex; gap: 48px; }
  .site-footer .fcol { flex: 1; display: flex; flex-direction: column; gap: 12px; }
  .site-footer .fcol-links a { min-height: 0; padding: 0; margin-top: 12px; color: var(--slate); }
  .site-footer .footer-band-2 { margin-top: 30px; }
  .site-footer .footer-bottom { margin-top: 31px; }
  .site-footer .footer-bottom .copyright { font-size: 12px; opacity: 1; }
}

/* ============================================================
   GENERIC SECTION SPACING
   ============================================================ */
.section { padding: 40px 0; }
@media (min-width: 992px) { .section { padding: 96px 0; } }

/* ============================================================
   INTERACTION & FINISH
   Browser surfaces, states and motion. Purely additive: the
   static design stays untouched; these rules only answer input.
   ============================================================ */

/* --- browser surfaces --- */
::selection { background: var(--accent); color: var(--ink); }
html { scrollbar-color: #cfc8b8 transparent; }
::-webkit-scrollbar { width: 12px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cfc8b8; border-radius: 6px; border: 3px solid var(--paper); }
::-webkit-scrollbar-thumb:hover { background: #b3ab97; }
a { text-underline-offset: 3px; text-decoration-thickness: 1px; }
input, select, textarea { caret-color: var(--ink); accent-color: var(--ink); }

/* --- touch targets: grow the hit area without moving a pixel (WCAG 2.5.8) --- */
a.tool-link, a.bm-link, a.lh-viewall, a.arrow-link, .arrow-link,
a.login-link, a.rg-toollink, a.rg-bm-link, a.dl-link, a.rt-link, a.rwt-link,
a.sm-foot-link, a.hp-viewall, a.qs-betstop, a.ls-related-link, a.bsi-back,
a.toc-item, a.dl-toc-item, button.qa-clear, button.show-toggle {
  padding-block: 7px;
  margin-block: -7px;
}

/* --- skip link --- */
.skip-link {
  position: absolute; left: 8px; top: -100px; z-index: 100;
  background: var(--ink); color: var(--accent);
  font-family: var(--font-ui); font-weight: 700; font-size: 13px;
  padding: 10px 16px;
}
.skip-link:focus-visible { top: 8px; }

/* --- keyboard focus --- */
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
:where(input, select, textarea):focus-visible { outline: 2px solid var(--ink); outline-offset: 0; }
.main-nav :focus-visible,
.site-footer :focus-visible,
.utility-bar :focus-visible,
.race-dock :focus-visible,
.betstop-module :focus-visible,
.betstop-box :focus-visible { outline-color: var(--accent); }

/* --- hover / active states --- */
.btn-yellow:hover { background: #eaba0b; }
.btn-yellow:active { transform: translateY(1px); }
.btn-outline:hover { background: var(--ink); color: var(--paper); }
.btn-outline:active { transform: translateY(1px); }
.chip:hover:not(.is-active) { border-color: var(--ink); }
.odds-btn:hover:not(.is-active) { border-color: var(--ink); }
.odds-btn:active { transform: translateY(1px); }
.odds-btn.is-active:hover { background: #eaba0b; border-color: #eaba0b; }
.slip-btn:hover { background: var(--paper); }
.burger-btn:hover { background: var(--line); }
.login-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.arrow-link:hover svg { transform: translateX(3px); }
a.tool-link:hover, a.bm-link:hover, a.lh-viewall:hover { text-decoration: underline; }
.game-row:hover .gr-explore { text-decoration: underline; }
.game-row:hover .gr-explore svg { transform: translateX(3px); }
.race-dock .race:hover { background: rgba(255, 255, 255, 0.05); }
.race:hover .race-view svg { transform: translateX(3px); }
.mobile-menu .menu-nav a:hover svg { transform: translateX(3px); }
.mobile-menu .menu-nav a:hover { color: var(--brown); }
.mobile-menu .menu-nav a:hover svg { stroke: var(--brown); }

/* --- motion (state transitions + one authored moment) --- */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  a, button, .btn, .chip, .odds-btn, .slip-btn, .burger-btn {
    transition: background-color 0.15s cubic-bezier(0.2, 0, 0, 1),
                border-color 0.15s cubic-bezier(0.2, 0, 0, 1),
                color 0.15s cubic-bezier(0.2, 0, 0, 1),
                transform 0.12s cubic-bezier(0.2, 0, 0, 1);
  }
  .arrow-link svg, .gr-explore svg, .race-view svg, .mobile-menu .menu-nav svg {
    transition: transform 0.18s cubic-bezier(0.2, 0, 0, 1);
  }
  .mobile-menu.is-open { animation: menu-in 0.22s cubic-bezier(0.2, 0, 0, 1); }
  .slip-count.bump { animation: badge-bump 0.3s cubic-bezier(0.2, 0, 0, 1); }
}
@keyframes menu-in {
  from { opacity: 0; transform: translateY(-10px); }
}
@keyframes badge-bump {
  30% { transform: scale(1.3); }
}
.slip-count { display: inline-block; }
