:root {
  --bg: #0f1420;
  --bg-2: #161d2d;
  --panel: #1b2336;
  --line: #2a3450;
  --text: #e8ecf5;
  --muted: #8d97b0;
  --accent: #f5b301;
  --accent-ink: #1a1300;
  --back: #72bbef;
  --back-2: #a6d8ff;
  --lay: #f994ba;
  --lay-2: #ffc4d9;
  --live: #e5383b;
  --ok: #2ec27e;
  --radius: 8px;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: Inter, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  padding-bottom: 64px;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
[hidden] { display: none !important; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 16px;
  padding: 10px 16px;
  background: linear-gradient(90deg, #121a2b, #1d2740);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; flex: none; }
.brand-logo { display: block; height: 40px; width: auto; }
.search { flex: 1; max-width: 420px; }
.search input {
  width: 100%; padding: 9px 12px; border-radius: 20px;
  border: 1px solid var(--line); background: var(--bg-2); color: var(--text);
}
.account { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.account .user { font-weight: 600; }
.account .bal { color: var(--accent); font-weight: 700; }

.btn {
  border: 0; border-radius: 6px; padding: 8px 16px; font-weight: 600;
  transition: filter .15s, transform .05s;
}
.btn:active { transform: translateY(1px); }
.btn:hover { filter: brightness(1.1); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn.block { width: 100%; margin-top: 10px; }

/* ---------- WhatsApp ---------- */
.btn-wa {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: #25d366; color: #06371b;
}
.btn-wa svg { width: 18px; height: 18px; fill: currentColor; flex: none; }
.wa-float {
  position: fixed; right: 20px; bottom: 24px; z-index: 45;
  display: flex; align-items: center; gap: 0; height: 56px; padding: 0 16px;
  border-radius: 28px; background: #25d366; color: #fff;
  box-shadow: 0 8px 24px #25d36655, 0 2px 6px #0006;
  transition: transform .2s, gap .25s;
}
.wa-float::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; border: 2px solid #25d366;
  animation: waPulse 2s ease-out infinite; pointer-events: none;
}
.wa-float svg { width: 26px; height: 26px; fill: currentColor; flex: none; }
.wa-label { max-width: 0; overflow: hidden; white-space: nowrap; font-weight: 700; font-size: 14px; transition: max-width .3s; }
.wa-float:hover { transform: translateY(-2px); gap: 8px; }
.wa-float:hover .wa-label { max-width: 140px; }
@keyframes waPulse { from { opacity: .8; transform: scale(1); } to { opacity: 0; transform: scale(1.35); } }
@media (prefers-reduced-motion: reduce) { .wa-float::before { animation: none; } }
.icon-btn { background: none; border: 0; color: var(--text); font-size: 22px; line-height: 1; padding: 4px 8px; }
.menu-toggle { display: none; }

/* ---------- Ticker ---------- */
.ticker { display: flex; align-items: center; background: #0b0f18; border-bottom: 1px solid var(--line); font-size: 13px; }
.ticker-label { background: var(--accent); color: var(--accent-ink); font-weight: 800; padding: 6px 12px; }
.ticker-track { overflow: hidden; flex: 1; }
.ticker-inner { display: inline-block; white-space: nowrap; padding-left: 100%; animation: scroll 40s linear infinite; color: var(--muted); }
.ticker-inner span { margin-right: 48px; }
@keyframes scroll { to { transform: translateX(-100%); } }

/* ---------- Sport tabs ---------- */
.sport-tabs {
  display: flex; gap: 4px; overflow-x: auto; padding: 8px 16px;
  background: var(--bg-2); border-bottom: 1px solid var(--line);
  scrollbar-width: none;
}
.sport-tabs::-webkit-scrollbar { display: none; }
.sport-tab {
  flex: none; display: flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 20px; border: 1px solid transparent;
  background: transparent; color: var(--muted); font-weight: 600;
}
.sport-tab.active, .sport-tab:hover { color: var(--text); background: var(--panel); border-color: var(--line); }
.sport-tab .n { background: var(--line); color: var(--text); border-radius: 10px; padding: 0 7px; font-size: 11px; }

/* ---------- Layout ---------- */
.layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr) 320px;
  gap: 16px; padding: 16px; max-width: 1500px; margin: 0 auto;
}
.sidebar, .betslip {
  position: sticky; top: 72px; align-self: start;
  max-height: calc(100vh - 88px); overflow-y: auto;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px;
}
.sidebar h4 { margin: 8px 4px; color: var(--accent); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.sidebar ul { list-style: none; margin: 0 0 12px; padding: 0; }
.sidebar li a {
  display: flex; justify-content: space-between; padding: 8px; border-radius: 6px; color: var(--muted);
}
.sidebar li a:hover, .sidebar li a.active { background: var(--bg-2); color: var(--text); }
/* Download app */
.app-card {
  margin: 0 0 14px; padding: 14px; border-radius: 10px; position: relative; overflow: hidden;
  background: radial-gradient(circle at 100% 0, #f5b30133, transparent 60%), linear-gradient(160deg, #14403f, #0e2230);
  border: 1px solid #f5b30155;
}
.app-head { display: flex; align-items: center; gap: 10px; }
.app-icon { border-radius: 12px; flex: none; box-shadow: 0 4px 12px #0007; }
.app-icon.lg { display: block; margin: 0 auto 10px; border-radius: 16px; }
.app-head b { display: block; font-size: 14px; }
.app-head small { display: block; font-size: 11px; color: #c9d1e4; line-height: 1.35; margin-top: 2px; }
.app-perks { list-style: none; margin: 12px 0 4px !important; padding: 0; font-size: 11.5px; color: #dce3f2; }
.app-perks li { padding: 3px 0; }
.app-download { display: inline-flex !important; align-items: center; justify-content: center; gap: 8px; font-weight: 800; }
.app-download svg { width: 17px; height: 17px; }
.app-platforms { display: flex; justify-content: space-between; margin-top: 10px; font-size: 10.5px; color: var(--muted); }
.app-modal { text-align: center; }
.app-steps { text-align: left; margin: 6px 0 0; padding-left: 22px; line-height: 1.6; font-size: 14px; color: #dce3f2; }
.app-steps li { margin-bottom: 6px; }
.app-steps b { color: var(--accent); }
.app-bar {
  display: flex; align-items: center; gap: 10px; padding: 8px 12px;
  background: linear-gradient(90deg, #14403f, #0e2230); border-bottom: 1px solid #f5b30144;
}
.app-bar div { flex: 1; min-width: 0; line-height: 1.25; }
.app-bar b { display: block; font-size: 13px; }
.app-bar small { display: block; font-size: 11px; color: #c9d1e4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-bar .btn { padding: 6px 14px; font-size: 13px; }
@media (min-width: 861px) { .app-bar { display: none; } }

.side-note { font-size: 11px; color: var(--muted); padding: 8px; border-top: 1px solid var(--line); }

.main { min-width: 0; display: flex; flex-direction: column; gap: 16px; }

/* ---------- Hero ---------- */
.hero { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 1600 / 548; background: var(--bg-2); }
.hero-slide {
  position: absolute; inset: 0; padding: 0; border: 0; background: none; display: block;
  opacity: 0; visibility: hidden; transition: opacity .6s, visibility .6s;
}
.hero-slide.active { opacity: 1; visibility: visible; }
.hero-slide img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-dots { position: absolute; bottom: 10px; right: 14px; display: flex; gap: 6px; }
.hero-dots button { width: 8px; height: 8px; border-radius: 50%; border: 0; background: #ffffff55; padding: 0; }
.hero-dots button.active { background: var(--accent); width: 20px; border-radius: 4px; }

/* ---------- Panels / events ---------- */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.panel-head h2 { margin: 0; font-size: 16px; }
.filters { display: flex; gap: 6px; }
.chip { background: var(--bg-2); color: var(--muted); border: 1px solid var(--line); border-radius: 14px; padding: 4px 12px; font-size: 12px; font-weight: 600; }
.chip.active { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

.market-header, .event {
  display: grid; grid-template-columns: minmax(0, 1fr) repeat(3, 116px); gap: 4px; align-items: center;
}
.market-header { padding: 6px 14px; font-size: 11px; color: var(--muted); font-weight: 700; background: var(--bg-2); }
.mh-col { text-align: center; }
.event { padding: 8px 14px; border-bottom: 1px solid var(--line); }
.event:last-child { border-bottom: 0; }
.event:hover { background: #ffffff05; }
.ev-info { min-width: 0; }
.ev-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev-meta { display: flex; gap: 8px; align-items: center; font-size: 11px; color: var(--muted); margin-top: 3px; flex-wrap: wrap; }
.badge { font-size: 10px; font-weight: 800; padding: 1px 6px; border-radius: 3px; }
.badge.live { background: var(--live); color: #fff; animation: pulse 1.6s infinite; }
.badge.tag { background: var(--line); color: var(--text); }
@keyframes pulse { 50% { opacity: .55; } }
.score { color: var(--accent); font-weight: 600; }

.odds-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.odd {
  border: 0; border-radius: 4px; padding: 5px 2px; text-align: center; color: #0b1220; line-height: 1.1;
  transition: background-color .3s;
}
.odd b { display: block; font-size: 14px; }
.odd small { font-size: 10px; opacity: .7; }
.odd.back { background: var(--back); }
.odd.lay { background: var(--lay); }
.odd.back:hover { background: var(--back-2); }
.odd.lay:hover { background: var(--lay-2); }
.odd.empty { background: var(--bg-2); color: var(--muted); cursor: default; }
.odd.up { animation: flashUp .8s; }
.odd.down { animation: flashDown .8s; }
@keyframes flashUp { from { background: #ffe066; } }
@keyframes flashDown { from { background: #ff8a65; } }
.odd.suspended { opacity: .35; pointer-events: none; }
.empty { text-align: center; color: var(--muted); padding: 24px; }

.badge.sus { background: #555f7a; color: #fff; }
.ev-name a:hover { color: var(--accent); text-decoration: underline; }
.ev-status { color: var(--text); font-weight: 600; }
.ev-note { font-size: 11px; color: var(--muted); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Live scores ---------- */
.feed-status { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 14px; font-size: 12px; color: var(--muted); border-bottom: 1px solid var(--line); }
.feed-status .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.feed-status.ok .dot { background: var(--ok); animation: pulse 1.6s infinite; }
.feed-status.err .dot { background: var(--live); }
.feed-status .src { margin-left: auto; opacity: .8; }
.score-cards {
  display: grid; grid-auto-flow: column; grid-auto-columns: 240px; gap: 10px;
  overflow-x: auto; padding: 12px 14px; scroll-snap-type: x mandatory;
}
.score-cards .empty { grid-column: 1 / -1; width: 100%; }
.score-card {
  scroll-snap-align: start; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 10px; display: flex; flex-direction: column; gap: 6px; min-width: 0;
}
.score-card.is-live { border-color: #e5383b66; }
.sc-head { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--muted); }
.sc-comp { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-status { color: var(--text); font-weight: 600; white-space: nowrap; }
.sc-team { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.sc-logo { position: relative; width: 26px; height: 26px; }
.sc-abbr {
  position: absolute; inset: 0; border-radius: 50%; display: grid; place-items: center;
  font-size: 10px; font-weight: 800; letter-spacing: .02em; color: #fff;
  background: linear-gradient(135deg, hsl(var(--h) 65% 48%), hsl(calc(var(--h) + 40) 70% 32%));
  box-shadow: inset 0 0 0 1px #ffffff26;
}
.sc-logo img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain;
  background: #fff; border-radius: 50%; padding: 2px;
}
.sc-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-score { font-size: 13px; text-align: right; }
.sc-team.win .sc-name, .sc-team.win .sc-score { color: var(--accent); }
.sc-note { font-size: 11px; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 6px; }
.sc-link { font-size: 11px; color: var(--back); margin-top: auto; }
.sc-link:hover { text-decoration: underline; }
.updates-title { margin: 0; padding: 8px 14px; font-size: 12px; color: var(--accent); text-transform: uppercase; letter-spacing: .08em; border-top: 1px solid var(--line); }
.updates { list-style: none; margin: 0; padding: 0 14px 12px; max-height: 220px; overflow-y: auto; }
.updates li { display: flex; gap: 10px; padding: 6px 0; border-bottom: 1px solid #ffffff0a; font-size: 13px; }
.updates li:last-child { border-bottom: 0; }
.updates time { color: var(--muted); font-size: 11px; flex: none; padding-top: 2px; font-variant-numeric: tabular-nums; }
.updates .muted { color: var(--muted); }

/* ---------- SEO content ---------- */
.seo-content { padding: 0; position: relative; }
.seo-body { padding: 22px 22px 8px; color: #c9d1e4; line-height: 1.7; font-size: 14px; }
.seo-body.collapsed { max-height: 420px; overflow: hidden; }
.seo-body.collapsed::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 48px; height: 140px; pointer-events: none;
  background: linear-gradient(180deg, transparent, var(--panel));
}
.page-title { margin: 0 0 -6px; font-size: 15px; font-weight: 700; color: var(--text); letter-spacing: .01em; }
.page-title span { color: var(--muted); font-weight: 500; }
.seo-body h2.seo-title { font-size: 24px; line-height: 1.3; margin: 0 0 12px; padding: 0; border: 0; }
.seo-body h2 {
  font-size: 19px; margin: 32px 0 10px; color: var(--text); padding-left: 12px; border-left: 3px solid var(--accent);
}
.seo-body h3 { font-size: 15px; margin: 18px 0 6px; color: var(--text); }
.seo-body p { margin: 0 0 12px; }
.seo-body a { color: var(--accent); }
.seo-body a:hover { text-decoration: underline; }
.seo-body strong { color: var(--text); }
.seo-body ul { padding-left: 20px; margin: 0 0 12px; }
.seo-body li { margin-bottom: 6px; }
.seo-body .lead { font-size: 15px; }
.seo-body section { scroll-margin-top: 80px; }

.toc { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; margin: 18px 0 8px; }
.toc strong { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); }
.toc ol { margin: 8px 0 0; padding-left: 20px; columns: 2; column-gap: 32px; }
.toc a { color: var(--text); }

.bl-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 14px 0; }
.bl-card { border-radius: var(--radius); padding: 14px 16px; color: #0b1220; }
.bl-card.back { background: #d6ecfb; border-top: 4px solid var(--back); }
.bl-card.lay { background: #fde0ea; border-top: 4px solid var(--lay); }
.bl-card h3 { margin: 0 0 6px; color: #0b1220; }
.bl-card h3 span { font-weight: 500; font-size: 12px; opacity: .7; }
.bl-card p { margin: 0 0 6px; }
.bl-card strong { color: #0b1220; }
.bl-card .eg { font-size: 13px; background: #ffffff8c; border-radius: 6px; padding: 6px 10px; margin: 8px 0 0; }

.table-wrap { overflow-x: auto; margin: 0 0 12px; }
.seo-body table { width: 100%; border-collapse: collapse; font-size: 13px; }
.seo-body caption { text-align: left; font-size: 12px; color: var(--muted); padding-bottom: 6px; }
.seo-body th, .seo-body td { padding: 9px 12px; border: 1px solid var(--line); text-align: left; }
.seo-body thead th { background: var(--bg-2); color: var(--text); }
.seo-body tbody th { color: var(--text); }

.seo-body ul.cols { columns: 2; column-gap: 32px; }
.seo-body ul.cols li { break-inside: avoid; }
.feature-grid { list-style: none; padding: 0 !important; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.feature-grid li { display: flex; gap: 12px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin: 0; }
.feature-grid span { font-size: 22px; line-height: 1; }
.feature-grid h3 { margin: 0 0 4px; font-size: 14px; }
.feature-grid p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.5; }

.faq details { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 8px; }
.faq summary {
  cursor: pointer; padding: 12px 40px 12px 14px; font-weight: 600; color: var(--text); list-style: none; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-size: 20px; color: var(--accent); }
.faq details[open] summary::after { content: '−'; }
.faq details[open] summary { border-bottom: 1px solid var(--line); }
.faq details p { padding: 10px 14px 4px; margin: 0 0 8px; }

.read-more {
  display: block; width: 100%; padding: 14px; border: 0; border-top: 1px solid var(--line);
  background: var(--panel); color: var(--accent); font-weight: 700; position: relative;
}
.read-more:hover { background: var(--bg-2); }

/* ---------- Sub-pages ---------- */
body.subpage { padding-bottom: 0; }
.top-links { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.top-links::-webkit-scrollbar { display: none; }
.top-links a { flex: none; padding: 7px 12px; border-radius: 18px; color: var(--muted); font-weight: 600; font-size: 13px; }
.top-links a:hover, .top-links a.active { color: var(--text); background: var(--panel); }
.top-links a.active { color: var(--accent); }

.page-wrap { max-width: 1200px; margin: 0 auto; padding: 16px; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; padding: 0; font-size: 12px; color: var(--muted); }
.breadcrumb li + li::before { content: '›'; margin-right: 6px; opacity: .6; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb [aria-current] { color: var(--text); }

.page-hero {
  display: flex; align-items: center; gap: 18px; padding: 24px; margin-bottom: 16px;
  border-radius: 12px; border: 1px solid var(--line);
  background: radial-gradient(circle at 100% 0, #f5b30126, transparent 55%), linear-gradient(120deg, #1b2336, #121a2b);
}
.page-icon { font-size: 44px; line-height: 1; flex: none; }
.page-hero h1 { margin: 0 0 6px; font-size: 28px; line-height: 1.25; }
.page-hero p { margin: 0; color: #c9d1e4; max-width: 640px; line-height: 1.6; }
.page-hero .hero-cta { margin-left: auto; flex: none; display: flex; flex-direction: column; gap: 8px; }
.page-hero .hero-cta .btn { text-align: center; }
.aside-card .btn.block + .btn.block { margin-top: 8px; }
.page-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip-price, .chip-meta { font-size: 12px; padding: 5px 12px; border-radius: 16px; border: 1px solid var(--line); background: var(--bg-2); }
.chip-price { border-color: #f5b30166; color: var(--text); }
.chip-price b { color: var(--accent); }
.chip-meta { color: var(--muted); }

.page-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
.page-article { padding: 8px 24px 20px; }
.page-article > section:first-of-type h2, .page-article > .hub-grid:first-child { margin-top: 16px; }
.page-article ol { padding-left: 20px; margin: 0 0 12px; }
.draft-note { margin: 16px 0 0; padding: 10px 14px; border-radius: var(--radius); background: #f5b3011f; border: 1px solid #f5b30166; color: var(--text); font-size: 13px; }

.page-aside { position: sticky; top: 72px; display: flex; flex-direction: column; gap: 12px; }
.aside-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.aside-card h2 { margin: 0 0 10px; font-size: 14px; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); }
.aside-card ul { list-style: none; margin: 0; padding: 0; }
.aside-card li a { display: block; padding: 7px 0; border-bottom: 1px solid #ffffff0a; font-size: 13px; color: var(--muted); }
.aside-card li:last-child a { border-bottom: 0; }
.aside-card li a:hover { color: var(--text); }
.cta-card { background: linear-gradient(160deg, #26304a, var(--panel)); border-color: #f5b30155; }
.cta-card h2 { color: var(--text); text-transform: none; letter-spacing: 0; font-size: 18px; }
.aside-price { margin: 0 0 12px; color: var(--muted); }
.aside-price b { color: var(--accent); font-size: 20px; }
.btn.block { display: block; text-align: center; }
.rg-card { display: flex; gap: 10px; align-items: flex-start; font-size: 12px; color: var(--muted); }
.rg-card p { margin: 0; line-height: 1.5; }
.rg-card a { color: var(--accent); }

.hub-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 8px; }
.hub-card {
  display: flex; flex-direction: column; gap: 6px; padding: 16px; border-radius: var(--radius);
  background: var(--bg-2); border: 1px solid var(--line); transition: border-color .15s, transform .15s;
}
.hub-card:hover { border-color: var(--accent); transform: translateY(-2px); text-decoration: none !important; }
.hub-icon { font-size: 26px; }
.seo-body .hub-card h2 { margin: 0; padding: 0; border: 0; font-size: 16px; }
.hub-card p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.5; }
.hub-go { margin-top: auto; font-size: 12px; font-weight: 700; color: var(--accent); }

@media (max-width: 960px) {
  .page-grid { grid-template-columns: minmax(0, 1fr); }
  .page-aside { position: static; }
  .page-hero { flex-wrap: wrap; }
  .page-hero .hero-cta { margin-left: 0; }
}
@media (max-width: 640px) {
  .subpage .topbar { flex-wrap: wrap; }
  .subpage .top-links { order: 3; width: 100%; }
  .page-hero { padding: 18px; gap: 12px; }
  .page-icon { font-size: 32px; }
  .page-hero h1 { font-size: 22px; }
  .page-article { padding: 4px 16px 16px; }
  .hub-grid { grid-template-columns: 1fr; }
}

/* ---------- Casino ---------- */
.casino-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; padding: 14px; }
.game {
  aspect-ratio: 4/3; border-radius: var(--radius); position: relative; overflow: hidden; cursor: pointer;
  border: 1px solid #ffffff1a; background: var(--bg-2); isolation: isolate;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.game img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; z-index: -2; }
.game::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, #0000 40%, #000000d9 100%);
}
.game:hover, .game:focus-visible { transform: translateY(-3px); border-color: var(--accent); box-shadow: 0 10px 24px #0008; outline: none; }
.game:hover img, .game:focus-visible img { transform: scale(1.06); }
.g-info { position: absolute; left: 12px; right: 12px; bottom: 10px; display: flex; flex-direction: column; line-height: 1.25; }
.g-info b { font-size: 15px; text-shadow: 0 1px 4px #000; }
.g-info small { font-size: 12px; color: #ffffffc0; }
.g-badge {
  position: absolute; top: 8px; left: 8px; display: inline-flex; align-items: center; gap: 5px;
  font-size: 10px; font-weight: 800; letter-spacing: .06em; padding: 3px 8px; border-radius: 4px;
  background: #000000a6; color: #fff; backdrop-filter: blur(4px);
}
.g-badge.live { background: var(--live); }
.g-badge.live i { width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: pulse 1.2s infinite; }
.g-badge.crash { background: #7b2ff7; }
.g-play {
  position: absolute; top: 50%; left: 50%; width: 48px; height: 48px; margin: -34px 0 0 -24px;
  display: grid; place-items: center; border-radius: 50%; padding-left: 3px;
  background: var(--accent); color: var(--accent-ink); font-size: 18px;
  opacity: 0; transform: scale(.7); transition: opacity .2s, transform .2s; box-shadow: 0 4px 16px #0009;
}
.game:hover .g-play, .game:focus-visible .g-play { opacity: 1; transform: scale(1); }
.g-how {
  position: absolute; top: 8px; right: 8px; font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 4px;
  background: #000000a6; color: #fff; opacity: 0; transition: opacity .2s;
}
.game:hover .g-how, .game:focus-within .g-how { opacity: 1; }
.g-how:hover { background: var(--accent); color: var(--accent-ink); }
@media (hover: none) { .g-how { opacity: 1; } }

/* ---------- Bet slip ---------- */
.betslip-head { display: flex; justify-content: space-between; align-items: center; }
.betslip h3 { margin: 0; font-size: 16px; display: flex; gap: 8px; align-items: center; }
.count { background: var(--accent); color: var(--accent-ink); border-radius: 10px; padding: 0 8px; font-size: 12px; }
.slip-close { display: none; }
.balance { margin: 10px 0; padding: 8px 10px; background: var(--bg-2); border-radius: 6px; font-size: 13px; }
.balance b { color: var(--accent); }
.balance small { color: var(--muted); }
.slip-empty { color: var(--muted); font-size: 13px; text-align: center; padding: 16px 0; margin: 0; }
.slip-item { border-radius: 6px; padding: 10px; margin-bottom: 8px; color: #0b1220; }
.slip-item.back { background: #d6ecfb; }
.slip-item.lay { background: #fde0ea; }
.slip-item .top { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; }
.slip-item .sel { font-weight: 700; font-size: 14px; margin: 2px 0 8px; }
.slip-item .rm { background: none; border: 0; font-size: 16px; color: #0b1220; line-height: 1; }
.slip-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.slip-inputs label { font-size: 11px; font-weight: 600; }
.slip-inputs input { width: 100%; padding: 6px; border-radius: 4px; border: 1px solid #0002; font: inherit; }
.quick { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.quick button { flex: 1; background: #0b122018; border: 0; border-radius: 4px; padding: 4px 0; font-size: 11px; font-weight: 600; }
.slip-item .pl { font-size: 12px; margin-top: 6px; }
.slip-row { display: flex; justify-content: space-between; padding: 4px 0; font-size: 13px; }
.slip-actions { display: grid; grid-template-columns: 1fr 2fr; gap: 8px; margin-top: 8px; }
.mybets-title { margin: 18px 0 8px; font-size: 13px; color: var(--accent); text-transform: uppercase; letter-spacing: .08em; }
.my-bet { font-size: 12px; padding: 8px; border-left: 3px solid var(--back); background: var(--bg-2); border-radius: 4px; margin-bottom: 6px; }
.my-bet.lay { border-color: var(--lay); }
.my-bet b { display: block; font-size: 13px; }
.my-bet span { color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 8px;
  background: linear-gradient(180deg, #121a2b 0%, #0b0f18 100%);
  border-top: 3px solid var(--accent);
  color: var(--muted);
}
.footer-inner { max-width: 1500px; margin: 0 auto; padding: 0 16px; }
.footer-top .footer-inner {
  display: grid; grid-template-columns: 1.6fr repeat(3, 1fr) 1.3fr; gap: 32px; padding-top: 36px; padding-bottom: 32px;
}
.footer-brand { display: inline-block; }
.footer-logo { display: block; height: 52px; width: auto; max-width: 100%; }
.f-about { font-size: 13px; line-height: 1.6; margin: 14px 0 18px; max-width: 340px; }
.socials { display: flex; gap: 8px; }
.socials a {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: var(--panel); border: 1px solid var(--line); color: var(--text);
  transition: background .15s, color .15s, transform .15s;
}
.socials a:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); transform: translateY(-2px); }
.socials svg { width: 17px; height: 17px; fill: currentColor; }
.f-col { display: flex; flex-direction: column; gap: 10px; }
.f-col h5 {
  margin: 4px 0 6px; color: var(--text); font-size: 13px; text-transform: uppercase; letter-spacing: .1em;
  position: relative; padding-bottom: 10px;
}
.f-col h5::after { content: ''; position: absolute; left: 0; bottom: 0; width: 28px; height: 2px; background: var(--accent); border-radius: 2px; }
.f-col a { font-size: 13px; transition: color .15s, padding-left .15s; }
.f-col a:hover { color: var(--accent); padding-left: 4px; }
.f-support p { font-size: 13px; line-height: 1.6; margin: 0 0 6px; }
.f-support .btn { align-self: flex-start; }

.footer-badges { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #ffffff04; }
.footer-badges .footer-inner { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; padding-top: 14px; padding-bottom: 14px; }
.fbadge {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 20px;
  background: var(--panel); border: 1px solid var(--line); font-size: 12px; color: var(--text); font-weight: 500;
}
.fbadge.age { background: var(--live); border-color: var(--live); color: #fff; font-weight: 800; }

.footer-bottom .footer-inner { padding-top: 18px; padding-bottom: 22px; font-size: 12px; text-align: center; }
.footer-bottom p { margin: 0 0 12px; line-height: 1.6; max-width: 820px; margin-inline: auto; }
.fb-row { display: flex; justify-content: center; align-items: center; gap: 16px; flex-wrap: wrap; }
.to-top {
  background: transparent; border: 1px solid var(--line); color: var(--text); border-radius: 16px; padding: 4px 12px; font-size: 12px;
}
.to-top:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Modal / toast ---------- */
.modal { position: fixed; inset: 0; z-index: 60; background: #000a; display: grid; place-items: center; padding: 16px; }
.modal-card { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 24px; width: 100%; max-width: 360px; }
.modal-card h3 { margin: 0 0 16px; }
.modal-close { position: absolute; top: 10px; right: 10px; }
.modal label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.modal input:not([type=checkbox]) { display: block; width: 100%; margin-top: 4px; padding: 10px; border-radius: 6px; border: 1px solid var(--line); background: var(--bg-2); color: var(--text); font: inherit; }
.modal .check { display: flex; gap: 8px; align-items: center; }
.toast {
  position: fixed; left: 50%; bottom: 80px; transform: translateX(-50%); z-index: 70;
  background: var(--ok); color: #fff; padding: 10px 18px; border-radius: 6px; font-weight: 600; box-shadow: 0 6px 20px #0006;
}
.toast.err { background: var(--live); }

/* ---------- Mobile bottom nav ---------- */
.bottom-nav { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  .layout { grid-template-columns: minmax(0, 1fr) 300px; }
  .sidebar {
    position: fixed; top: 0; left: 0; bottom: 0; z-index: 50; width: 260px; max-height: none; border-radius: 0;
    transform: translateX(-100%); transition: transform .25s;
  }
  .sidebar.open { transform: none; box-shadow: 0 0 0 100vmax #0008; }
  .menu-toggle { display: block; }
}
@media (max-width: 1100px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top .footer-inner { grid-template-columns: repeat(3, 1fr); }
  .f-brand { grid-column: 1 / -1; }
  .f-support { grid-column: span 3; }
}
@media (max-width: 860px) {
  body { padding-bottom: 70px; }
  .layout { grid-template-columns: minmax(0, 1fr); padding: 12px; }
  .search { display: none; }
  .betslip {
    position: fixed; inset: auto 0 0 0; top: auto; z-index: 55; max-height: 80vh; border-radius: 14px 14px 0 0;
    transform: translateY(100%); transition: transform .25s;
  }
  .betslip.open { transform: none; box-shadow: 0 0 0 100vmax #0008; }
  .slip-close { display: block; }
  .bottom-nav {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    background: var(--bg-2); border-top: 1px solid var(--line);
  }
  .bottom-nav a { display: flex; flex-direction: column; align-items: center; padding: 8px 0; font-size: 18px; color: var(--muted); }
  .bottom-nav a span { font-size: 11px; margin-top: 2px; }
  .bottom-nav a.active { color: var(--accent); }
  .wa-float { bottom: 80px; right: 14px; height: 52px; padding: 0 13px; }
  .subpage .wa-float { bottom: 20px; }
  .bottom-nav b { background: var(--accent); color: var(--accent-ink); border-radius: 8px; padding: 0 5px; font-size: 10px; }
}
@media (max-width: 640px) {
  .topbar { gap: 8px; padding: 8px 12px; }
  .seo-body { padding: 18px 16px 8px; }
  .seo-body h2.seo-title { font-size: 20px; }
  .page-title { font-size: 13px; }
  .seo-body h2 { font-size: 17px; }
  .toc ol, .seo-body ul.cols { columns: 1; }
  .bl-cards, .feature-grid { grid-template-columns: 1fr; }
  .brand-logo { height: 28px; }
  .footer-logo { height: 40px; }
  .footer-top .footer-inner { grid-template-columns: 1fr 1fr; gap: 28px 20px; padding-top: 28px; }
  .f-brand, .f-support { grid-column: 1 / -1; }  .account .btn { padding: 7px 10px; font-size: 13px; }
  .market-header { display: none; }
  .event { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 10px 12px; }
  .ev-info { grid-column: 1 / -1; margin-bottom: 4px; }
  .odd b { font-size: 13px; }
}
