/* =========================================================================
   Ritzobet — design system (development build)
   Original interim identity. Replace tokens with official brand values
   once brand assets are supplied (see docs/factual-verification-checklist.md, BR-01..BR-05).
   ========================================================================= */

/* ---------- 1. Tokens ---------- */
:root {
  /* Surfaces */
  --bg: #161c27;
  --bg-raised: #1e2532;
  --surface: #262e3d;
  --surface-2: #2e3747;
  --surface-3: #3a4456;
  --line: #3d475a;
  --line-soft: #2c3444;

  /* Text */
  --text: #f1f4f9;
  --text-2: #bfc7d5;
  --text-3: #8f99ab;

  /* Brand (RitzoBet blue, from ritzobet.com) */
  --brand: #0f7ae5;          /* buttons, active states */
  --brand-strong: #4aa6ff;   /* links and accents on dark surfaces */
  --brand-ink: #ffffff;      /* text on brand blue */
  --accent: #2fd08a;         /* positive / live-up */
  --accent-ink: #04170e;
  --danger: #ff5d6c;
  --live: #ff3b4e;
  --info: #5aa8ff;

  /* Placeholders */
  --ph-bg: rgba(255, 196, 0, .12);
  --ph-line: rgba(255, 196, 0, .55);
  --ph-text: #ffd36b;

  /* Type */
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-num: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --fs-xs: .75rem;
  --fs-sm: .875rem;
  --fs-md: 1rem;
  --fs-lg: 1.125rem;
  --fs-xl: 1.375rem;
  --fs-2xl: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  --fs-3xl: clamp(1.85rem, 1.3rem + 2.4vw, 2.85rem);

  /* Shape */
  --r-sm: 6px;
  --r: 10px;
  --r-lg: 16px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  --gutter: 16px;
  --maxw: 1320px;
  --header-h: 64px;
  --tabbar-h: 62px;
  --focus: 0 0 0 3px rgba(74, 166, 255, .6);

  color-scheme: dark;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 var(--fs-md)/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--brand-strong); text-underline-offset: 3px; }
a:hover { color: #7cc0ff; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: var(--fs-3xl); font-weight: 800; }
h2 { font-size: var(--fs-2xl); font-weight: 750; margin-top: 1.6em; }
h3 { font-size: var(--fs-xl); font-weight: 700; margin-top: 1.4em; }
h4 { font-size: var(--fs-lg); margin-top: 1.2em; }
p, ul, ol, dl, table { margin: 0 0 1em; }
ul, ol { padding-left: 1.25em; }
li + li { margin-top: .3em; }
strong { color: #fff; }
small { font-size: var(--fs-sm); }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 4px; }
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 1000;
  background: var(--brand); color: var(--brand-ink); padding: 10px 16px;
  border-radius: var(--r-sm); font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- 3. Placeholders & notices ---------- */
.ph {
  display: inline; background: var(--ph-bg); color: var(--ph-text);
  border: 1px dashed var(--ph-line); border-radius: 4px; padding: 0 .35em;
  font-size: .92em; white-space: normal;
}
.ph::before { content: "To verify: "; font-weight: 700; }
.ph-block {
  border: 1px dashed var(--ph-line); background: var(--ph-bg); color: var(--ph-text);
  border-radius: var(--r); padding: 14px 16px; margin: 0 0 1.2em; font-size: var(--fs-sm);
}
.ph-block strong { color: var(--ph-text); }
.sample-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  color: var(--info); background: rgba(90, 168, 255, .12); border: 1px solid rgba(90, 168, 255, .4);
  border-radius: 999px; padding: 2px 10px;
}
.notice {
  border-left: 4px solid var(--info); background: var(--surface); padding: 12px 16px;
  border-radius: 0 var(--r) var(--r) 0; margin: 0 0 1.2em; font-size: var(--fs-sm); color: var(--text-2);
}
.notice--warn { border-color: var(--brand); }
.notice--danger { border-color: var(--danger); }
.notice p:last-child { margin: 0; }

/* ---------- 4. Buttons ---------- */
.btn {
  --b-bg: var(--surface-2); --b-fg: var(--text); --b-line: var(--line);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: var(--r-sm);
  background: var(--b-bg); color: var(--b-fg); border: 1px solid var(--b-line);
  font: 700 var(--fs-sm)/1 var(--font); text-decoration: none; cursor: pointer;
  transition: background .15s, border-color .15s, transform .05s;
  white-space: nowrap;
}
.btn:hover { color: var(--b-fg); border-color: var(--text-3); }
.btn:active { transform: translateY(1px); }
.btn--primary { --b-bg: var(--brand); --b-fg: var(--brand-ink); --b-line: var(--brand); }
.btn--primary:hover { --b-bg: var(--brand-strong); border-color: var(--brand-strong); }
.btn--accent { --b-bg: var(--accent); --b-fg: var(--accent-ink); --b-line: var(--accent); }
.btn--ghost { --b-bg: transparent; }
.btn--sm { min-height: 36px; padding: 0 12px; font-size: var(--fs-xs); }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }

/* ---------- 5. Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(30, 37, 50, .96); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.header-inner { display: flex; align-items: center; gap: 18px; height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); flex-shrink: 0; }
.logo svg { width: 34px; height: 34px; }
.logo-word { font-weight: 850; font-style: italic; font-size: 1.35rem; letter-spacing: -.02em; color: #fff; }
.logo-word span { color: #fff; }
.primary-nav { flex: 1; min-width: 0; }
.primary-nav > ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.primary-nav li { margin: 0; position: relative; }
.nav-link, .nav-toggle {
  display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px;
  color: var(--text-2); text-decoration: none; font: 600 var(--fs-sm)/1 var(--font);
  background: none; border: 0; border-radius: var(--r-sm); cursor: pointer;
}
.nav-link:hover, .nav-toggle:hover, .nav-link[aria-current="page"], .nav-toggle.is-current { color: #fff; background: var(--surface); }
.nav-toggle svg { width: 12px; height: 12px; transition: transform .2s; }
.nav-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 0 rgba(255, 59, 78, .6); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 7px rgba(255, 59, 78, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 59, 78, 0); } }
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } * { scroll-behavior: auto !important; transition: none !important; } }
.dropdown {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 240px;
  background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow); padding: 8px; list-style: none; margin: 0; display: none;
}
.dropdown.is-open { display: block; }
.dropdown a { display: block; padding: 9px 12px; border-radius: var(--r-sm); color: var(--text-2); text-decoration: none; font-size: var(--fs-sm); }
.dropdown a:hover, .dropdown a[aria-current="page"] { background: var(--surface-2); color: #fff; }
.dropdown a small { display: block; color: var(--text-3); font-size: var(--fs-xs); }
.header-actions { display: flex; gap: 8px; flex-shrink: 0; }
.menu-btn { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); color: var(--text); cursor: pointer; align-items: center; justify-content: center; }
.menu-btn svg { width: 22px; height: 22px; }

/* Sports sub-navigation strip */
.sports-strip { border-bottom: 1px solid var(--line-soft); background: var(--bg-raised); }
.sports-strip ul { display: flex; gap: 6px; list-style: none; margin: 0; padding: 8px 0; overflow-x: auto; scrollbar-width: none; }
.sports-strip ul::-webkit-scrollbar { display: none; }
.sports-strip li { margin: 0; flex-shrink: 0; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px;
  border-radius: 999px; background: var(--surface); border: 1px solid var(--line-soft);
  color: var(--text-2); text-decoration: none; font-size: var(--fs-sm); font-weight: 600; cursor: pointer;
}
.chip:hover, .chip[aria-current="page"], .chip.is-active, .chip[aria-pressed="true"] { background: var(--surface-3); color: #fff; border-color: var(--line); }
.chip[aria-pressed="true"] { border-color: var(--brand); color: var(--brand); }

/* Mobile drawer */
.drawer { position: fixed; inset: 0; z-index: 300; display: none; }
.drawer.is-open { display: block; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .6); }
.drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(86vw, 360px);
  background: var(--bg-raised); border-left: 1px solid var(--line); overflow-y: auto;
  padding: 16px; display: flex; flex-direction: column; gap: 14px;
}
.drawer-head { display: flex; align-items: center; justify-content: space-between; }
.drawer-close { width: 44px; height: 44px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface); color: var(--text); font-size: 22px; cursor: pointer; }
.drawer nav ul { list-style: none; margin: 0; padding: 0; }
.drawer nav li { margin: 0; }
.drawer nav a { display: flex; justify-content: space-between; padding: 12px 8px; border-bottom: 1px solid var(--line-soft); color: var(--text); text-decoration: none; font-weight: 600; }
.drawer nav .sub a { padding-left: 22px; font-weight: 500; color: var(--text-2); font-size: var(--fs-sm); }
.drawer-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
body.no-scroll { overflow: hidden; }

/* Mobile bottom tab bar */
.tabbar {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 120;
  height: var(--tabbar-h); padding-bottom: env(safe-area-inset-bottom);
  background: rgba(30, 37, 50, .97); border-top: 1px solid var(--line);
}
.tabbar ul { display: grid; grid-template-columns: repeat(5, 1fr); height: 100%; list-style: none; margin: 0; padding: 0; }
.tabbar li { margin: 0; }
.tabbar a, .tabbar button {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  width: 100%; height: 100%; color: var(--text-3); text-decoration: none; background: none; border: 0;
  font: 600 10.5px/1 var(--font); cursor: pointer; position: relative;
}
.tabbar svg { width: 22px; height: 22px; }
.tabbar a[aria-current="page"], .tabbar a:hover, .tabbar button:hover { color: var(--brand); }
.tabbar .count { position: absolute; top: 7px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--brand); color: var(--brand-ink); font-size: 11px; line-height: 18px; text-align: center; }
.tabbar .count[hidden] { display: none; }

/* ---------- 6. Layouts ---------- */
.portal { display: grid; grid-template-columns: 232px minmax(0, 1fr) 320px; gap: 20px; padding-top: 20px; padding-bottom: 48px; align-items: start; }
.page { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 36px; padding-top: 16px; padding-bottom: 56px; align-items: start; }
.page--wide { grid-template-columns: minmax(0, 1fr); }
.side-nav, .side-panel { position: sticky; top: calc(var(--header-h) + 16px); max-height: calc(100vh - var(--header-h) - 32px); overflow-y: auto; scrollbar-width: thin; }
.side-nav h2, .side-panel h2 { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); margin: 0 0 8px; }
.side-nav ul { list-style: none; margin: 0 0 18px; padding: 0; }
.side-nav li { margin: 0; }
.side-nav a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--r-sm); color: var(--text-2); text-decoration: none; font-size: var(--fs-sm); font-weight: 600; }
.side-nav a:hover, .side-nav a[aria-current="page"] { background: var(--surface); color: #fff; }
.side-nav .ico { width: 20px; text-align: center; font-size: 15px; }
.prose { max-width: 78ch; }
.prose > h2:first-child, .prose > section:first-child > h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--text-2); }
.prose strong { color: var(--text); }
.prose table, .portal-main table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); display: block; overflow-x: auto; }
.prose th, .prose td, .portal-main th, .portal-main td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th, .portal-main th { color: var(--text); background: var(--surface); font-weight: 700; }
.prose td, .portal-main td { color: var(--text-2); }
.portal-main .card .steps { margin-bottom: 8px; }
.prose dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; }
.prose dt { color: var(--text); font-weight: 700; }
.prose dd { margin: 0; color: var(--text-2); }
.lead { font-size: var(--fs-lg); color: var(--text-2); max-width: 70ch; }

/* Breadcrumbs */
.breadcrumbs { font-size: var(--fs-sm); color: var(--text-3); padding-top: 18px; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.breadcrumbs li { margin: 0; display: inline-flex; gap: 6px; }
.breadcrumbs li + li::before { content: "/"; color: var(--line); }
.breadcrumbs a { color: var(--text-2); text-decoration: none; }
.breadcrumbs a:hover { color: var(--brand); }

/* Page hero (inner pages) */
.page-hero { padding: 20px 0 8px; }
.page-hero .lead { margin-bottom: 1.2em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 1rem; }

/* TOC */
.toc { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r); padding: 14px 16px; margin-bottom: 16px; }
.toc ol { margin: 0; padding-left: 1.1em; font-size: var(--fs-sm); }
.toc a { color: var(--text-2); text-decoration: none; }
.toc a:hover { color: var(--brand); }
.related { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r); padding: 14px 16px; margin-bottom: 16px; }
.related ul { list-style: none; margin: 0; padding: 0; font-size: var(--fs-sm); }
.related li { margin: 0; border-top: 1px solid var(--line-soft); }
.related li:first-child { border-top: 0; }
.related a { display: block; padding: 8px 0; color: var(--text-2); text-decoration: none; }
.related a:hover { color: var(--brand); }

/* ---------- 7. Components ---------- */
/* Hero carousel */
.hero-carousel { position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--surface); margin-bottom: 22px; }
.carousel-track { display: flex; transition: transform .45s ease; }
.slide { flex: 0 0 100%; min-height: 280px; padding: 32px; display: flex; flex-direction: column; justify-content: center; position: relative; isolation: isolate; }
.slide::after { content: ""; position: absolute; inset: 0; z-index: -1; }
.slide--sports::after { background: radial-gradient(120% 140% at 100% 0%, #1f6b4c 0%, transparent 55%), linear-gradient(120deg, #11261d, #0f1219 70%); }
.slide--casino::after { background: radial-gradient(120% 140% at 100% 0%, #6b4a12 0%, transparent 55%), linear-gradient(120deg, #2a1d08, #0f1219 70%); }
.slide--app::after { background: radial-gradient(120% 140% at 100% 0%, #233f7a 0%, transparent 55%), linear-gradient(120deg, #101a33, #0f1219 70%); }
.slide .kicker { font-size: var(--fs-xs); font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--brand); margin-bottom: 8px; }
.slide .slide-title { font-size: var(--fs-2xl); font-weight: 800; margin: 0 0 8px; max-width: 22ch; line-height: 1.15; }
.slide p { color: var(--text-2); max-width: 50ch; }
.carousel-controls { position: absolute; right: 16px; bottom: 16px; display: flex; gap: 8px; align-items: center; }
.carousel-dot { width: 10px; height: 10px; border-radius: 50%; border: 0; background: var(--text-3); cursor: pointer; padding: 0; }
.carousel-dot[aria-current="true"] { background: var(--brand); width: 26px; border-radius: 6px; }
.carousel-arrow { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: rgba(0, 0, 0, .35); color: #fff; cursor: pointer; }

/* Section header */
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 30px 0 12px; }
.section-head h2 { margin: 0; font-size: var(--fs-xl); }
.section-head a { font-size: var(--fs-sm); font-weight: 700; text-decoration: none; }

/* Tabs */
.tabs [role="tablist"] { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 12px; scrollbar-width: none; }
.tabs [role="tab"] {
  flex-shrink: 0; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-soft);
  background: var(--surface); color: var(--text-2); font: 600 var(--fs-sm)/1 var(--font); cursor: pointer;
}
.tabs [role="tab"][aria-selected="true"] { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.tabs [role="tabpanel"][hidden] { display: none; }

/* Event / odds list */
.events { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r); overflow: hidden; }
.events-head { display: grid; grid-template-columns: minmax(0, 1fr) repeat(3, 64px); gap: 6px; padding: 8px 12px; font-size: var(--fs-xs); color: var(--text-3); background: var(--bg-raised); text-transform: uppercase; letter-spacing: .05em; }
.events-head span:not(:first-child) { text-align: center; }
.event { display: grid; grid-template-columns: minmax(0, 1fr) repeat(3, 64px); gap: 6px; align-items: center; padding: 10px 12px; border-top: 1px solid var(--line-soft); }
.event--two { grid-template-columns: minmax(0, 1fr) repeat(2, 64px); }
.events-head--two { grid-template-columns: minmax(0, 1fr) repeat(2, 64px); }
.event-meta { font-size: var(--fs-xs); color: var(--text-3); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.event-teams { font-weight: 600; font-size: var(--fs-sm); line-height: 1.35; }
.event-teams span { display: block; }
.event-score { font-family: var(--font-num); color: var(--brand); font-weight: 700; }
.live-tag { color: var(--live); font-weight: 800; font-size: 10px; letter-spacing: .08em; }
.odd {
  height: 40px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface-2);
  color: var(--text); font: 700 var(--fs-sm)/1 var(--font-num); cursor: pointer; width: 100%;
  transition: background .15s, border-color .15s;
}
.odd:hover { border-color: var(--brand); }
.odd[aria-pressed="true"] { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.odd.is-up { box-shadow: inset 0 -3px 0 var(--accent); }
.odd.is-down { box-shadow: inset 0 -3px 0 var(--danger); }
.odd[disabled] { opacity: .45; cursor: not-allowed; }
.events-foot { padding: 8px 12px; font-size: var(--fs-xs); color: var(--text-3); border-top: 1px solid var(--line-soft); }

/* Cards grid */
.grid { display: grid; gap: 14px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--games { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r);
  padding: 18px; display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: var(--text);
  transition: border-color .15s, transform .15s;
}
a.card:hover { border-color: var(--brand); color: var(--text); transform: translateY(-2px); }
.card h3 { margin: 0; font-size: var(--fs-lg); }
.card p { margin: 0; color: var(--text-2); font-size: var(--fs-sm); }
.card .card-ico { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-3); font-size: 20px; }
.card .more { margin-top: auto; font-size: var(--fs-sm); font-weight: 700; color: var(--brand); }

/* Game cards */
.game-card { position: relative; border-radius: var(--r); overflow: hidden; background: var(--surface); border: 1px solid var(--line-soft); }
.game-card[hidden] { display: none; }
.game-thumb {
  aspect-ratio: 5 / 3; display: grid; place-items: center; text-align: center; padding: 10px;
  font-size: var(--fs-xs); color: var(--text-3); font-family: var(--font-num);
  background:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, .025) 0 10px, transparent 10px 20px),
    linear-gradient(135deg, var(--g1, #2a2f3d), var(--g2, #171a22));
}
.game-card[data-category="slots"] { --g1: #4a2d63; --g2: #1a1324; }
.game-card[data-category="crash"] { --g1: #6b2430; --g2: #1d0f12; }
.game-card[data-category="table"] { --g1: #1e4f3c; --g2: #0f1d17; }
.game-card[data-category="live"] { --g1: #5a3e12; --g2: #1c140a; }
.game-card[data-category="jackpot"] { --g1: #6b5410; --g2: #1d170a; }
.game-card[data-category="instant"] { --g1: #1e3f6b; --g2: #0e1625; }
.game-info { padding: 10px 12px; }
.game-info strong { display: block; font-size: var(--fs-sm); }
.game-info span { font-size: var(--fs-xs); color: var(--text-3); }
.game-info strong a { color: inherit; text-decoration: none; }
.game-info strong a:hover, .game-info strong a:focus-visible { text-decoration: underline; }
.game-tag { position: absolute; top: 8px; left: 8px; font-size: 10px; font-weight: 800; text-transform: uppercase; background: rgba(0, 0, 0, .55); color: #fff; padding: 3px 7px; border-radius: 4px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; }
.search-input {
  height: 40px; min-width: 0; flex: 1 1 220px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; font-size: var(--fs-sm);
}
.filter-empty { padding: 24px; text-align: center; color: var(--text-3); border: 1px dashed var(--line); border-radius: var(--r); }

/* Category tiles (home) */
.cat-tiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.cat-tile { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 8px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line-soft); text-decoration: none; color: var(--text); font-size: var(--fs-sm); font-weight: 700; text-align: center; }
.cat-tile:hover { border-color: var(--brand); color: var(--text); }
.cat-tile .emoji { font-size: 26px; line-height: 1; }

/* App promo */
.app-promo { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; align-items: center; padding: 24px; border-radius: var(--r-lg); background: linear-gradient(120deg, #13203c, #12151d 70%); border: 1px solid var(--line-soft); margin-top: 26px; }
.app-promo .phone { justify-self: center; width: 150px; aspect-ratio: 9 / 18; border-radius: 26px; border: 3px solid var(--surface-3); background: linear-gradient(180deg, #1b2130, #0d1016); display: grid; place-items: center; font-size: var(--fs-xs); color: var(--text-3); text-align: center; padding: 12px; }

/* Steps */
.steps { counter-reset: step; list-style: none; padding: 0; }
.steps > li { counter-increment: step; position: relative; padding: 0 0 0 48px; margin: 0 0 18px; }
.steps > li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--surface-3); color: var(--brand); display: grid; place-items: center; font-weight: 800; font-size: var(--fs-sm); }
.steps > li strong { display: block; color: var(--text); }

/* Comparison table helper */
.compare th:first-child { width: 28%; }

/* Accordion */
.accordion { border: 1px solid var(--line-soft); border-radius: var(--r); overflow: hidden; margin-bottom: 1.2em; }
.acc-item + .acc-item { border-top: 1px solid var(--line-soft); }
.acc-item h3 { margin: 0; font-size: var(--fs-md); }
.acc-trigger {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 12px; text-align: left;
  padding: 16px; background: var(--surface); color: var(--text); border: 0; font: 650 var(--fs-md)/1.35 var(--font); cursor: pointer;
}
.acc-trigger:hover { background: var(--surface-2); }
.acc-trigger::after { content: "+"; font-size: 22px; color: var(--brand); flex-shrink: 0; transition: transform .2s; }
.acc-trigger[aria-expanded="true"]::after { transform: rotate(45deg); }
.acc-panel { padding: 0 16px 14px; background: var(--surface); color: var(--text-2); }
.acc-panel[hidden] { display: none; }
.acc-panel p:last-child { margin-bottom: 0; }

/* Expandable category (side nav / sports) */
.expander-btn { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 8px 10px; background: none; border: 0; color: var(--text-2); font: 600 var(--fs-sm)/1.2 var(--font); cursor: pointer; border-radius: var(--r-sm); }
.expander-btn:hover { background: var(--surface); color: #fff; }
.expander-btn::after { content: "▾"; transition: transform .2s; }
.expander-btn[aria-expanded="false"]::after { transform: rotate(-90deg); }
.expander-body[hidden] { display: none; }
.expander-body a { padding-left: 30px !important; font-weight: 500 !important; }

/* Bet slip */
.betslip { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r); overflow: hidden; margin-bottom: 16px; }
.betslip-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; background: var(--bg-raised); border-bottom: 1px solid var(--line-soft); }
.betslip-head h2 { margin: 0; font-size: var(--fs-md); text-transform: none; letter-spacing: 0; color: var(--text); }
.betslip-head .count { background: var(--brand); color: var(--brand-ink); border-radius: 999px; padding: 0 8px; font-size: var(--fs-xs); font-weight: 800; }
.betslip-body { padding: 12px 14px; }
.betslip-empty { color: var(--text-3); font-size: var(--fs-sm); text-align: center; padding: 18px 0; }
.betslip-mode { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 10px; }
.betslip-mode button { height: 34px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface-2); color: var(--text-2); font: 700 var(--fs-xs)/1 var(--font); cursor: pointer; }
.betslip-mode button[aria-pressed="true"] { background: var(--surface-3); color: var(--brand); border-color: var(--brand); }
.betslip-mode button[disabled] { opacity: .45; cursor: not-allowed; }
.sel { position: relative; padding: 10px 30px 10px 10px; border: 1px solid var(--line-soft); border-radius: var(--r-sm); margin-bottom: 8px; background: var(--bg-raised); font-size: var(--fs-sm); }
.sel-event { color: var(--text-3); font-size: var(--fs-xs); }
.sel-pick { font-weight: 700; }
.sel-odd { font-family: var(--font-num); color: var(--brand); font-weight: 700; float: right; }
.sel-stake { display: flex; gap: 6px; margin-top: 8px; align-items: center; font-size: var(--fs-xs); color: var(--text-3); }
.sel-stake input { width: 90px; }
.sel-remove { position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; border: 0; background: none; color: var(--text-3); cursor: pointer; font-size: 16px; border-radius: 4px; }
.sel-remove:hover { color: var(--danger); background: var(--surface-2); }
.betslip-summary { border-top: 1px solid var(--line-soft); padding-top: 10px; margin-top: 4px; font-size: var(--fs-sm); }
.betslip-summary .row { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 6px; color: var(--text-2); }
.betslip-summary .row strong { font-family: var(--font-num); }
.betslip-actions { display: grid; gap: 8px; margin-top: 10px; }
.betslip-note { font-size: var(--fs-xs); color: var(--text-3); margin: 8px 0 0; }
.betslip-msg { font-size: var(--fs-sm); padding: 10px; border-radius: var(--r-sm); background: rgba(90, 168, 255, .12); color: var(--info); margin-top: 8px; }
.betslip-msg[hidden] { display: none; }

/* Account panel */
.account-panel { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r); padding: 16px; margin-bottom: 16px; }
.account-panel h2 { color: var(--text); font-size: var(--fs-md); text-transform: none; letter-spacing: 0; margin-bottom: 6px; }
.account-panel p { font-size: var(--fs-sm); color: var(--text-2); }
.account-panel .btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.account-panel .account-panel-app { margin: 10px 0 0; }
/* Preview forms: fields visible but disabled (no input, no submit). */
.form-locked { border: 0; margin: 0; padding: 0; min-width: 0; }
.form-locked:disabled input, .form-locked:disabled select, .form-locked:disabled textarea,
.form-locked:disabled button { opacity: .6; cursor: not-allowed; }

/* Mobile bet slip sheet */
.slip-sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 260; max-height: 82vh; overflow-y: auto; background: var(--bg-raised); border-top: 1px solid var(--line); border-radius: 16px 16px 0 0; transform: translateY(105%); transition: transform .25s ease; padding-bottom: env(safe-area-inset-bottom); }
.slip-sheet.is-open { transform: translateY(0); }
.slip-sheet .betslip { border: 0; border-radius: 0; margin: 0; }
.slip-backdrop { position: fixed; inset: 0; z-index: 250; background: rgba(0, 0, 0, .55); }
.slip-backdrop[hidden] { display: none; }

/* Forms */
.form { display: grid; gap: 14px; max-width: 520px; background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r); padding: 20px; margin-bottom: 1.5em; }
.field { display: grid; gap: 6px; }
.field label, .field legend { font-size: var(--fs-sm); font-weight: 700; color: var(--text); }
.field .hint { font-size: var(--fs-xs); color: var(--text-3); }
.field input, .field select, .field textarea, .sel-stake input {
  min-height: 44px; padding: 10px 12px; border-radius: var(--r-sm); border: 1px solid var(--line);
  background: var(--bg-raised); color: var(--text); font: inherit; font-size: var(--fs-md);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .sel-stake input:focus { border-color: var(--brand); outline: none; box-shadow: var(--focus); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); }
.field .error { font-size: var(--fs-xs); color: var(--danger); min-height: 1em; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: var(--fs-sm); color: var(--text-2); }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--brand); flex-shrink: 0; }
fieldset { border: 0; padding: 0; margin: 0; }
.pw-wrap { position: relative; }
.pw-wrap input { width: 100%; padding-right: 70px; }
.pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); height: 32px; padding: 0 10px; border: 0; border-radius: 4px; background: var(--surface-3); color: var(--text-2); font-size: var(--fs-xs); font-weight: 700; cursor: pointer; }
.form-status { font-size: var(--fs-sm); padding: 12px; border-radius: var(--r-sm); }
.form-status[hidden] { display: none; }
.form-status.is-info { background: rgba(90, 168, 255, .12); color: var(--info); }
.form-status.is-error { background: rgba(255, 93, 108, .12); color: var(--danger); }

/* Info strip / key facts */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; margin: 0 0 1.4em; }
.fact { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r); padding: 14px; }
.fact dt, .fact .k { font-size: var(--fs-xs); color: var(--text-3); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }
.fact dd, .fact .v { margin: 0; font-weight: 700; color: var(--text); font-size: var(--fs-sm); }

/* Trust bar */
.trust-bar { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 26px; }
.trust-item { display: flex; gap: 10px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r); padding: 14px; font-size: var(--fs-sm); color: var(--text-2); text-decoration: none; }
.trust-item strong { display: block; color: var(--text); }
.trust-item:hover { border-color: var(--line); color: var(--text-2); }
.age-badge { flex-shrink: 0; width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--danger); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 13px; }

/* ---------- 8. Footer ---------- */
.site-footer { border-top: 1px solid var(--line-soft); background: var(--bg-raised); padding: 40px 0 28px; font-size: var(--fs-sm); color: var(--text-3); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 28px; }
.footer-grid h2 { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .08em; color: var(--text); margin: 0 0 10px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin: 0 0 6px; }
.footer-grid a { color: var(--text-2); text-decoration: none; }
.footer-grid a:hover { color: var(--brand); }
.footer-legal { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line-soft); display: grid; gap: 10px; }
.footer-legal p { margin: 0; }
.lang-select { display: inline-flex; align-items: center; gap: 8px; }
.lang-select select { height: 36px; border-radius: var(--r-sm); background: var(--surface); color: var(--text); border: 1px solid var(--line); padding: 0 8px; }

/* ---------- 9. Responsive ---------- */
@media (max-width: 1240px) {
  .portal { grid-template-columns: 210px minmax(0, 1fr) 290px; }
  .nav-link, .nav-toggle { padding: 0 9px; }
}
@media (max-width: 1100px) {
  .portal { grid-template-columns: minmax(0, 1fr) 300px; }
  .portal > .side-nav { display: none; }
  .primary-nav { display: none; }
  .menu-btn { display: inline-flex; }
  .header-inner { justify-content: space-between; }
  .cat-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  :root { --header-h: 58px; }
  body { padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); }
  .tabbar { display: block; }
  .portal, .page { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 12px; }
  .portal > .side-panel { display: none; }
  .page > aside { position: static; max-height: none; margin-top: 28px; }
  .header-actions .btn--ghost { display: none; }
  .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .app-promo { grid-template-columns: 1fr; }
  .app-promo .phone { display: none; }
  .slide { min-height: 240px; padding: 22px 20px 56px; }
}
@media (max-width: 600px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: minmax(0, 1fr); }
  .grid--games { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .cat-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .cat-tile { padding: 12px 4px; font-size: var(--fs-xs); }
  .trust-bar { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .events-head, .event { grid-template-columns: minmax(0, 1fr) repeat(3, 52px); gap: 4px; padding-left: 10px; padding-right: 10px; }
  .event--two, .events-head--two { grid-template-columns: minmax(0, 1fr) repeat(2, 56px); }
  .odd { height: 38px; font-size: var(--fs-xs); }
  .logo-word { font-size: 1.15rem; }
  .header-actions .btn { padding: 0 12px; }
  .prose dl { grid-template-columns: 1fr; gap: 2px; }
  .prose dd { margin-bottom: 10px; }
  .form { padding: 16px; }
}
@media (min-width: 901px) {
  .slip-sheet, .slip-backdrop { display: none !important; }
}

@media print {
  .site-header, .sports-strip, .tabbar, .side-nav, .side-panel, .site-footer, .drawer { display: none !important; }
  body { background: #fff; color: #000; }
}
/* ---------- Promotions ---------- */
.promo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin: 0 0 1.4em; }
.promo-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r); overflow: hidden; text-decoration: none; color: var(--text); transition: border-color .15s, transform .15s; }
a.promo-card:hover { border-color: var(--brand); color: var(--text); transform: translateY(-2px); }
.promo-card img { width: 100%; aspect-ratio: 315 / 250; object-fit: cover; background: var(--surface-2); }
.promo-card .promo-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.promo-card h3 { margin: 0; font-size: var(--fs-md); }
.promo-card p { margin: 0; color: var(--text-2); font-size: var(--fs-sm); line-height: 1.45; }
.promo-card .promo-key { margin-top: auto; padding-top: 6px; font-size: var(--fs-xs); font-weight: 800; color: var(--brand-strong); text-transform: uppercase; letter-spacing: .04em; }
.promo-card .promo-type { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); }

.offer-hero { display: grid; grid-template-columns: 315px minmax(0, 1fr); gap: 22px; align-items: center; margin: 4px 0 1.4em; }
.offer-hero img { width: 315px; height: 250px; border-radius: var(--r-lg); border: 1px solid var(--line-soft); }
.offer-hero .facts { margin: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); }

.example { background: linear-gradient(160deg, rgba(15, 122, 229, .14), rgba(15, 122, 229, .03) 60%); border: 1px solid rgba(74, 166, 255, .35); border-radius: var(--r-lg); padding: 18px 20px; margin: 0 0 1.4em; }
.example > h3:first-child { margin-top: 0; }
.example .tag { display: inline-block; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-strong); margin-bottom: 6px; }
.example table { margin-bottom: .6em; }
.example .result { font-weight: 800; color: #fff; }
.ok { color: var(--accent); font-weight: 700; }
.no { color: var(--danger); font-weight: 700; }

.calc { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-lg); padding: 18px 20px; margin: 0 0 1.4em; }
.calc h3 { margin-top: 0; }
.calc-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; margin-bottom: 12px; }
.calc label { display: flex; flex-direction: column; gap: 4px; font-size: var(--fs-xs); color: var(--text-3); text-transform: uppercase; letter-spacing: .05em; font-weight: 700; }
.calc input, .calc select { min-height: 42px; min-width: 190px; padding: 0 12px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--bg-raised); color: var(--text); font: 600 var(--fs-md) var(--font); }
.calc-out { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 0; }
.calc-out div { background: var(--bg-raised); border-radius: var(--r); padding: 10px 12px; }
.calc-out dt { font-size: var(--fs-xs); color: var(--text-3); text-transform: uppercase; letter-spacing: .05em; }
.calc-out dd { margin: 2px 0 0; font-weight: 800; font-size: var(--fs-lg); color: #fff; font-variant-numeric: tabular-nums; }
.calc-note { font-size: var(--fs-sm); color: var(--text-2); margin: 10px 0 0; min-height: 1.4em; }

@media (max-width: 700px) {
  .offer-hero { grid-template-columns: minmax(0, 1fr); }
  .offer-hero img { width: 100%; height: auto; aspect-ratio: 315 / 250; }
  .calc input, .calc select { min-width: 0; width: 100%; }
  .calc-row label { flex: 1 1 100%; }
}

.hash { font-family: var(--font-num); font-size: var(--fs-xs); word-break: break-all; background: var(--surface); padding: 2px 6px; border-radius: 4px; }

.footer-intro { margin: 12px 0; }
.prose--wide { max-width: none; }
.mt-0 { margin-top: 0; }
@media (max-width: 900px) { .side-panel .betslip { display: none; } }

/* Game artwork, provider logos, brand logo */
.game-thumb--img { padding: 0; background: var(--surface-2); }
.game-thumb--img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.logo img { height: 32px; width: auto; display: block; }
.provider-logos { list-style: none; margin: 16px 0 20px; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); }
.provider-logo { background: #f3f5f9; border-radius: var(--r); padding: 10px 12px; aspect-ratio: 2 / 1; display: grid; place-items: center; }
.provider-logo img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
@media (max-width: 640px) { .logo img { height: 26px; } }

/* ---------- Back to top button (injected by main.js) ----------
   Primary: header background (--bg-raised #1e2532). Accent: --brand #0f7ae5.
   z-index 130: above sticky header (100) and mobile tab bar (120), below the
   slip sheet/backdrop (250/260) and drawer (300). */
.scroll-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 130;
  display: flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; padding: 0; margin: 0;
  border-radius: 50%; border: 2px solid var(--brand);
  background: var(--bg-raised); color: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .4);
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s, background-color .15s, color .15s;
}
.scroll-top svg { width: 22px; height: 22px; display: block; pointer-events: none; }
.scroll-top.is-visible {
  opacity: 1; visibility: visible; transform: translateY(0);
  transition: opacity .2s ease, transform .2s ease, visibility 0s linear 0s, background-color .15s, color .15s;
}
.scroll-top:hover, .scroll-top:focus-visible { background: var(--brand); color: var(--bg-raised); }
.scroll-top:focus-visible { outline: 3px solid var(--brand-strong); outline-offset: 3px; box-shadow: 0 6px 18px rgba(0, 0, 0, .4); border-radius: 50%; }
.scroll-top:active { transform: translateY(1px); }
/* Mobile: sit above the fixed bottom tab bar (shown at <=900px) */
@media (max-width: 900px) {
  .scroll-top { right: 16px; bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 16px); width: 46px; height: 46px; }
}
@media (max-width: 767px) {
  .scroll-top { right: 16px; width: 44px; height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-top, .scroll-top.is-visible { transition: none; transform: none; }
}
@media print { .scroll-top { display: none !important; } }

/* Game banners, logo-style thumbs, app screenshot */
.game-banner { margin: 12px 0 16px; border-radius: var(--r); overflow: hidden; }
.game-banner img { display: block; width: 100%; height: auto; }
.game-thumb--logo img { object-fit: contain; padding: 14px; }
.app-promo .phone--img { padding: 0; border: 0; background: none; aspect-ratio: auto; width: 170px; border-radius: 0; }
.app-promo .phone--img img { display: block; width: 100%; height: auto; }
