:root {
  --brand: #0d0d0d;
  --brand-2: #1e1e1e;
  --accent: #d4a537;
  --accent-2: #f1d27a;
  --accent-ink: #111111;
  --gold-grad: linear-gradient(180deg, #f1d27a 0%, #d4a537 45%, #b07d22 100%);
  --bg: #ecebe7;
  --panel: #ffffff;
  --ink: #1d2733;
  --muted: #6b7785;
  --line: #d8dee5;
  --back: #72bbef;
  --back-2: #b7dbf7;
  --lay: #faa9ba;
  --lay-2: #fbd3dc;
  --live: #e53935;
  --green: #1f9d55;
  --header-h: 68px;
  --nav-h: 40px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg); color: var(--ink); font-family: 'Roboto', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif; font-size: 14px; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
img { max-width: 100%; }

/* ---------- Header ---------- */
.topbar { position: sticky; top: 0; z-index: 50; }
.header { height: var(--header-h); background: linear-gradient(90deg, #000, #1a1a1a 60%, #000); border-bottom: 1px solid rgba(212,165,55,.35); color: #fff; display: flex; align-items: center; gap: 12px; padding: 0 16px; }
.burger { display: none; font-size: 22px; }
.logo { font-weight: 800; font-size: 22px; letter-spacing: .5px; display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.logo-img { height: 58px; width: auto; max-width: 200px; object-fit: contain; display: block; }
.logo-txt { display: none; align-items: center; gap: 8px; }
.logo.nologo .logo-img { display: none; }
.logo.nologo .logo-txt { display: flex; }
.logo .mark { width: 32px; height: 32px; border-radius: 8px; background: var(--accent); color: var(--brand); display: grid; place-items: center; font-weight: 900; }
.logo span.one { color: var(--accent); }
.search { flex: 1; max-width: 360px; margin-left: 24px; position: relative; }
.search input { width: 100%; height: 34px; border-radius: 17px; border: 0; padding: 0 14px 0 34px; background: rgba(255,255,255,.12); color: #fff; outline: none; }
.search input::placeholder { color: rgba(255,255,255,.6); }
.search::before { content: '🔍'; position: absolute; left: 11px; top: 8px; font-size: 13px; opacity: .8; }
.hdr-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.btn { height: 34px; padding: 0 16px; border-radius: 6px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; }
.btn-accent { background: var(--gold-grad); color: var(--accent-ink); }
.btn-outline { border: 1px solid var(--accent); color: var(--accent-2); }
.btn-dark { background: var(--brand); color: #fff; }
.btn-block { width: 100%; height: 42px; }
.balance { font-size: 12px; line-height: 1.2; text-align: right; }
.balance b { font-size: 14px; color: var(--accent); }

.marquee { background: #000; color: var(--accent-2); font-size: 12px; height: 26px; overflow: hidden; display: flex; align-items: center; }
.marquee .lbl { background: var(--accent); color: var(--brand); font-weight: 700; padding: 0 10px; height: 100%; display: flex; align-items: center; flex-shrink: 0; }
.marquee .track { white-space: nowrap; animation: scroll 35s linear infinite; padding-left: 100%; }
@keyframes scroll { to { transform: translateX(-100%); } }

.mainnav { background: var(--gold-grad); height: var(--nav-h); display: flex; overflow-x: auto; scrollbar-width: none; }
.mainnav::-webkit-scrollbar { display: none; }
.mainnav a { padding: 0 16px; display: flex; align-items: center; gap: 6px; font-weight: 700; color: var(--accent-ink); white-space: nowrap; border-right: 1px solid rgba(0,0,0,.08); font-size: 13px; }
.mainnav a:hover, .mainnav a.active { background: var(--brand); color: var(--accent-2); }
.mainnav .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--live); animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: .2; } }

/* ---------- Layout ---------- */
.layout { display: grid; grid-template-columns: 220px minmax(0,1fr) 300px; gap: 10px; padding: 10px; max-width: 1600px; margin: 0 auto; }
.layout.no-slip { grid-template-columns: 220px minmax(0,1fr); }
.sidebar { background: var(--panel); border-radius: 6px; overflow: hidden; align-self: start; position: sticky; top: calc(var(--header-h) + var(--nav-h) + 36px); max-height: calc(100vh - 140px); overflow-y: auto; }
.side-brand { display: none; background: #000; padding: 16px; text-align: center; border-bottom: 1px solid rgba(212,165,55,.35); }
.side-brand img { height: 64px; width: auto; }
.side-title { background: var(--brand); color: var(--accent-2); padding: 10px 12px; font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .4px; }
.side-list a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--line); font-size: 13px; }
.side-list a:hover, .side-list a.active { background: #faf5e8; color: #8a6418; font-weight: 600; box-shadow: inset 3px 0 0 var(--accent); }
.side-list .count { margin-left: auto; background: var(--bg); border-radius: 10px; font-size: 11px; padding: 1px 7px; color: var(--muted); }
.content { min-width: 0; display: flex; flex-direction: column; gap: 10px; }

/* ---------- Panels ---------- */
.panel { background: var(--panel); border-radius: 6px; overflow: hidden; }
.panel-hd { background: var(--brand-2); color: #fff; padding: 9px 12px; display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13px; }
.panel-hd .more { margin-left: auto; font-weight: 500; font-size: 12px; color: var(--accent); }
.panel-bd { padding: 12px; }

/* ---------- Banner slider ---------- */
.slider { position: relative; border-radius: 6px; overflow: hidden; height: 190px; }
.slide { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; padding: 0 40px; color: #fff; opacity: 0; transition: opacity .6s; }
.slide.on { opacity: 1; }
.slide h2 { font-size: 30px; font-weight: 800; }
.slide p { opacity: .85; margin: 6px 0 14px; font-size: 15px; }
.slide .btn { align-self: flex-start; }
.slide .deco { position: absolute; right: 40px; top: 50%; transform: translateY(-50%); font-size: 110px; opacity: .25; }
.dots { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; }
.dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.4); cursor: pointer; }
.dots i.on { background: var(--accent); width: 20px; border-radius: 4px; }

/* ---------- Quick tiles ---------- */
.quick { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.quick a { background: var(--panel); border-radius: 6px; padding: 12px 6px; text-align: center; font-size: 12px; font-weight: 600; display: flex; flex-direction: column; gap: 6px; align-items: center; }
.quick a .ic { font-size: 26px; }
.quick a:hover { outline: 2px solid var(--accent); }

/* ---------- Sport tabs ---------- */
.tabs { display: flex; overflow-x: auto; background: var(--panel); border-bottom: 1px solid var(--line); scrollbar-width: none; }
.tabs button, .tabs a { padding: 10px 14px; font-weight: 600; font-size: 13px; white-space: nowrap; border-bottom: 3px solid transparent; color: var(--muted); }
.tabs .on { color: var(--brand); border-color: var(--accent); }

/* ---------- Match table ---------- */
.mtable { width: 100%; }
.mhead, .mrow { display: grid; grid-template-columns: minmax(0,1fr) repeat(3, 116px); align-items: center; }
.mhead { background: #f1f4f7; font-size: 12px; font-weight: 700; color: var(--muted); }
.mhead > div { padding: 6px 8px; text-align: center; }
.mhead > div:first-child { text-align: left; }
.mrow { border-bottom: 1px solid var(--line); }
.mrow:hover { background: #fafbfc; }
.minfo { padding: 8px 10px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.minfo .teams { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.minfo .meta { font-size: 11px; color: var(--muted); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.badge { font-size: 10px; font-weight: 700; padding: 1px 5px; border-radius: 3px; color: #fff; background: var(--muted); }
.badge.live { background: var(--live); }
.badge.tv { background: #455a64; }
.badge.bm { background: #6d4c41; }
.badge.f { background: #00897b; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; padding: 3px; }
.odd { height: 38px; border-radius: 3px; display: flex; flex-direction: column; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; cursor: pointer; transition: filter .15s; }
.odd small { font-weight: 400; font-size: 10px; color: #33414f; }
.odd.back { background: var(--back); }
.odd.lay { background: var(--lay); }
.odd:hover { filter: brightness(.93); }
.odd.na { background: #eef1f4; color: #aab4be; cursor: default; }
.odd.flash { animation: flash .6s; }
@keyframes flash { 0% { background: #ffe066; } }
.empty { padding: 30px; text-align: center; color: var(--muted); }

/* ---------- Bet slip ---------- */
.slip { align-self: start; position: sticky; top: calc(var(--header-h) + var(--nav-h) + 36px); display: flex; flex-direction: column; gap: 10px; }
.slip-empty { padding: 24px 12px; text-align: center; color: var(--muted); font-size: 13px; }
.slip-item { border-radius: 4px; padding: 10px; margin-bottom: 8px; }
.slip-item.back { background: var(--back-2); }
.slip-item.lay { background: var(--lay-2); }
.slip-item .t { font-weight: 700; font-size: 13px; display: flex; justify-content: space-between; }
.slip-item .s { font-size: 11px; color: #3b4855; margin: 2px 0 8px; }
.slip-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.slip-grid label { font-size: 11px; color: #3b4855; }
.slip-grid input { width: 100%; height: 32px; border: 1px solid #b9c3cc; border-radius: 4px; padding: 0 8px; font-weight: 600; }
.stakes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin: 8px 0; }
.stakes button { background: #fff; border: 1px solid #b9c3cc; border-radius: 3px; height: 26px; font-size: 12px; font-weight: 600; }
.slip-pl { font-size: 12px; display: flex; justify-content: space-between; margin-bottom: 8px; }
.slip-actions { display: flex; gap: 6px; }
.slip-actions .btn { flex: 1; height: 34px; }
.x { font-size: 16px; line-height: 1; color: #333; }

/* ---------- Casino grid ---------- */
.ggrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.gtile { border-radius: 8px; overflow: hidden; position: relative; aspect-ratio: 4/3; color: #fff; display: flex; flex-direction: column; justify-content: flex-end; box-shadow: 0 1px 3px rgba(0,0,0,.15); transition: transform .15s; }
.gtile:hover { transform: translateY(-3px); }
.gtile .gi { position: absolute; top: 44%; left: 50%; transform: translate(-50%,-50%); font-size: 44px; filter: drop-shadow(0 3px 6px rgba(0,0,0,.35)); }
.gtile .gn { background: linear-gradient(transparent, rgba(0,0,0,.75)); padding: 18px 8px 8px; font-weight: 700; font-size: 13px; }
.gtile .gtag { position: absolute; top: 8px; left: 8px; background: var(--live); font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 3px; }
.gtile .gtag.NEW { background: var(--green); }
.gtile .gtag.LIVE { background: #000; }
.gtile .gtag.LIVE::before { content: '● '; color: var(--live); }
.gtile .play { position: absolute; inset: 0; background: rgba(0,0,0,.5); display: grid; place-items: center; opacity: 0; transition: opacity .15s; }
.gtile:hover .play { opacity: 1; }
.gtile .play span { background: var(--accent); color: var(--accent-ink); font-weight: 700; padding: 7px 16px; border-radius: 20px; }

/* ---------- Match page ---------- */
.scorecard { background: linear-gradient(90deg, #0d0d0d, #2a2414); border: 1px solid rgba(212,165,55,.3); color: #fff; padding: 14px 16px; border-radius: 6px; }
.scorecard .row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.scorecard .tm { font-size: 18px; font-weight: 700; }
.scorecard .sc { font-size: 22px; font-weight: 800; color: var(--accent); }
.scorecard .sub { font-size: 12px; opacity: .8; margin-top: 6px; }
.balls { display: flex; gap: 5px; margin-top: 10px; }
.balls i { width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,.15); display: grid; place-items: center; font-style: normal; font-size: 12px; font-weight: 700; }
.balls i.b4 { background: #1e88e5; } .balls i.b6 { background: #43a047; } .balls i.bw { background: var(--live); }
.mkt-hd, .mkt-row { display: grid; grid-template-columns: minmax(0,1fr) repeat(6, 64px); align-items: center; }
.mkt-hd { font-size: 12px; font-weight: 700; background: #f1f4f7; }
.mkt-hd > div { padding: 6px 4px; text-align: center; }
.mkt-hd > div:first-child { text-align: left; padding-left: 10px; }
.mkt-hd .bk { background: var(--back); } .mkt-hd .ly { background: var(--lay); }
.mkt-row { border-bottom: 1px solid var(--line); }
.mkt-row .rn { padding: 8px 10px; font-weight: 600; }
.mkt-row .rn small { display: block; font-weight: 400; color: var(--green); font-size: 11px; }
.mkt-row .odd { margin: 2px 1px; height: 40px; }
.mkt-row .odd.b2, .mkt-row .odd.b3 { background: var(--back-2); }
.mkt-row .odd.l2, .mkt-row .odd.l3 { background: var(--lay-2); }
.mkt-row.susp { position: relative; }
.mkt-row.susp::after { content: 'SUSPENDED'; position: absolute; inset: 0 0 0 40%; background: rgba(0,0,0,.55); color: #fff; font-weight: 800; display: grid; place-items: center; letter-spacing: 2px; }
.fancy-hd, .fancy-row { display: grid; grid-template-columns: minmax(0,1fr) 72px 72px 110px; align-items: center; }
.fancy-row { border-bottom: 1px solid var(--line); }
.fancy-row .rn { padding: 8px 10px; font-weight: 600; }
.fancy-row .lim { font-size: 11px; color: var(--muted); text-align: center; }
.fancy-hd { font-size: 12px; font-weight: 700; background: #f1f4f7; }
.fancy-hd > div { padding: 6px; text-align: center; }
.fancy-hd > div:first-child { text-align: left; }

/* ---------- Game page ---------- */
.table-felt { background: radial-gradient(ellipse at center, #1f7a4d, #0b3d26); border-radius: 8px; color: #fff; padding: 18px; min-height: 280px; position: relative; }
.timer { position: absolute; top: 14px; right: 14px; width: 58px; height: 58px; border-radius: 50%; border: 4px solid var(--accent); display: grid; place-items: center; font-size: 22px; font-weight: 800; background: rgba(0,0,0,.35); }
.round { font-size: 12px; opacity: .8; }
.cards-row { display: flex; gap: 40px; justify-content: center; margin-top: 30px; flex-wrap: wrap; }
.hand { text-align: center; }
.hand h4 { margin-bottom: 8px; color: var(--accent); }
.cards { display: flex; gap: 6px; justify-content: center; }
.card { width: 48px; height: 68px; background: #fff; color: #111; border-radius: 5px; display: grid; place-items: center; font-weight: 800; font-size: 16px; box-shadow: 0 2px 6px rgba(0,0,0,.4); }
.card.red { color: #d32f2f; }
.card.down { background: repeating-linear-gradient(45deg, #b71c1c 0 6px, #8e0000 6px 12px); }
.bet-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
.bet-opt { border-radius: 6px; padding: 12px; text-align: center; cursor: pointer; background: var(--back); font-weight: 700; }
.bet-opt.alt { background: var(--lay); }
.bet-opt.neutral { background: #ffe082; }
.bet-opt small { display: block; font-weight: 400; font-size: 12px; margin-top: 2px; }
.bet-opt:hover { filter: brightness(.93); }
.results { display: flex; gap: 5px; flex-wrap: wrap; }
.results i { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 700; color: #fff; font-size: 12px; background: #1e88e5; }
.results i.r { background: #e53935; } .results i.y { background: #f9a825; }
.crash-box { background: #0b1220; border-radius: 8px; height: 280px; position: relative; overflow: hidden; color: #fff; }
.crash-box canvas { width: 100%; height: 100%; display: block; }
.crash-mult { position: absolute; top: 40%; left: 50%; transform: translate(-50%,-50%); font-size: 52px; font-weight: 900; }
.crash-mult.bust { color: var(--live); }
.slot-reels { display: flex; gap: 10px; justify-content: center; background: #1a0b2e; padding: 30px; border-radius: 8px; }
.reel { width: 90px; height: 110px; background: #fff; border-radius: 8px; display: grid; place-items: center; font-size: 56px; box-shadow: inset 0 0 12px rgba(0,0,0,.4); }
.mines-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; max-width: 360px; margin: 0 auto; }
.mines-grid button { aspect-ratio: 1; border-radius: 8px; background: #29435c; font-size: 26px; }
.mines-grid button.open { background: #1f9d55; }
.mines-grid button.boom { background: var(--live); }
.controls { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.controls input { height: 38px; border: 1px solid var(--line); border-radius: 5px; padding: 0 10px; width: 120px; font-weight: 600; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.55); display: none; place-items: center; z-index: 100; padding: 16px; }
.modal.open { display: grid; }
.modal-box { background: #fff; border-radius: 10px; width: 100%; max-width: 400px; overflow: hidden; }
.modal-hd { background: radial-gradient(ellipse at top, #2a2414, #000 70%); color: #fff; padding: 22px 18px 18px; text-align: center; position: relative; border-bottom: 2px solid var(--accent); }
.logo.logo-lg { justify-content: center; }
.logo.logo-lg .logo-img { height: 84px; max-width: 260px; }
.modal-hd .x { position: absolute; right: 14px; top: 14px; color: #fff; font-size: 22px; }
.modal-bd { padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.field label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.field input, .field select { width: 100%; height: 40px; border: 1px solid var(--line); border-radius: 6px; padding: 0 12px; font-size: 14px; }
.modal-bd .alt { text-align: center; font-size: 13px; color: var(--muted); }
.modal-bd .alt a { color: var(--brand-2); font-weight: 700; }
.note { font-size: 11px; color: var(--muted); text-align: center; }

.toast { position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%); background: #222; color: #fff; padding: 10px 18px; border-radius: 6px; z-index: 200; opacity: 0; transition: opacity .25s; pointer-events: none; font-size: 13px; }
.toast.show { opacity: 1; }

/* ---------- SEO content blocks (static HTML, crawlable) ---------- */
.mainnav a.hot { background: #000; color: var(--accent-2); }
.mainnav a.hot.active, .mainnav a.hot:hover { background: #2a2414; }
.seo-top { background: var(--panel); border-radius: 6px; padding: 14px 16px; border-left: 4px solid var(--accent); }
.seo-top h1 { font-size: 22px; line-height: 1.25; margin: 4px 0 6px; }
.seo-top p { color: #4a5563; line-height: 1.55; font-size: 14px; }
.crumbs { font-size: 12px; color: var(--muted); }
.crumbs a { color: #8a6418; font-weight: 600; }
.crumbs span[aria-current] { color: var(--ink); }
.seo-body { padding: 18px 20px; line-height: 1.7; font-size: 14.5px; color: #2a3340; }
.seo-body h2 { font-size: 19px; margin: 22px 0 8px; color: var(--ink); padding-bottom: 6px; border-bottom: 2px solid #f1e3bd; }
.seo-body h2:first-child { margin-top: 0; }
.seo-body h3 { font-size: 16px; margin: 16px 0 6px; color: var(--ink); }
.seo-body p { margin: 0 0 10px; }
.seo-body ul, .seo-body ol { margin: 0 0 12px 22px; }
.seo-body li { margin-bottom: 4px; }
.seo-body a { color: #8a6418; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.seo-body table { width: 100%; border-collapse: collapse; margin: 6px 0 14px; font-size: 13.5px; }
.seo-body th, .seo-body td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.seo-body th { background: #faf5e8; }
.seo-body .table-wrap { overflow-x: auto; }
.faq { border: 1px solid var(--line); border-radius: 6px; margin-bottom: 8px; background: #fff; }
.faq summary { padding: 12px 14px; font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.faq summary::after { content: '+'; color: var(--accent); font-size: 20px; line-height: 1; }
.faq[open] summary::after { content: '−'; }
.faq > div { padding: 0 14px 12px; }
.seo-body .note-box { background: #fff8e6; border: 1px solid #f1d27a; border-radius: 6px; padding: 10px 14px; font-size: 13px; }
.link-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.seo-body .link-grid a { background: #faf5e8; border: 1px solid #f1d27a; padding: 6px 12px; border-radius: 18px; text-decoration: none; font-size: 13px; }
@media (max-width: 860px) {
  .seo-top h1 { font-size: 19px; }
  .seo-body { padding: 14px; font-size: 14px; }
}

/* ---------- Footer ---------- */
.footer-logo { height: 70px; width: auto; margin-bottom: 10px; display: block; }
.footer { background: var(--brand); border-top: 2px solid var(--accent); color: rgba(255,255,255,.75); padding: 24px 16px 90px; margin-top: 10px; font-size: 12px; }
.footer .inner { max-width: 1600px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; }
.footer h5 { color: var(--accent-2); font-size: 13px; margin-bottom: 8px; }
.footer a { display: block; padding: 3px 0; }
.footer .legal { max-width: 1600px; margin: 20px auto 0; border-top: 1px solid rgba(255,255,255,.12); padding-top: 14px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.age { border: 2px solid var(--live); color: #fff; border-radius: 50%; width: 34px; height: 34px; display: grid; place-items: center; font-weight: 800; }

/* ---------- Mobile bottom nav ---------- */
.bottomnav { display: none; position: fixed; bottom: 0; left: 0; right: 0; height: 60px; background: var(--brand); z-index: 60; grid-template-columns: repeat(5, 1fr); }
.bottomnav a { color: rgba(255,255,255,.7); display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 11px; gap: 2px; }
.bottomnav a .ic { font-size: 20px; }
.bottomnav a.active { color: var(--accent); }
.slip-fab { display: none; }
.slip-close { display: none; }
.slip-backdrop { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  .layout { grid-template-columns: 200px minmax(0,1fr); }
  .layout > .slip { grid-column: 2; position: static; }
}
@media (max-width: 860px) {
  :root { --header-h: 58px; }
  .burger { display: block; }
  .search { display: none; }
  .layout, .layout.no-slip { grid-template-columns: minmax(0, 1fr); padding: 8px 0; gap: 8px; }
  .layout > .slip { grid-column: 1; min-width: 0; }
  .content { padding: 0 8px; }
  .slip { padding: 0 8px; }
  .side-brand { display: block; }
  .sidebar { position: fixed; top: 0; left: 0; bottom: 0; width: 260px; z-index: 90; max-height: none; border-radius: 0; transform: translateX(-100%); transition: transform .25s; }
  .sidebar.open { transform: none; box-shadow: 0 0 0 100vw rgba(0,0,0,.5); }
  .bottomnav { display: grid; }
  .quick { grid-template-columns: repeat(3, 1fr); }
  .slider { height: 150px; }
  .slide { padding: 0 20px; }
  .slide h2 { font-size: 22px; }
  .slide .deco { font-size: 70px; right: 14px; }
  .mhead, .mrow { grid-template-columns: minmax(0,1fr) repeat(3, 84px); }
  .mhead > div:nth-child(n+2) { font-size: 11px; }
  .odd { height: 34px; font-size: 13px; }
  .mkt-hd, .mkt-row { grid-template-columns: minmax(0,1fr) repeat(2, 64px); }
  .mkt-hd .h-b3, .mkt-hd .h-b2, .mkt-hd .h-l2, .mkt-hd .h-l3, .mkt-row .b3, .mkt-row .b2, .mkt-row .l2, .mkt-row .l3 { display: none; }
  .hdr-right .btn-outline:not(.btn-login) { display: none; }
  .hdr-right { gap: 6px; }
  .hdr-right .btn { height: 32px; padding: 0 12px; font-size: 13px; }
  .balance { font-size: 11px; }
  .logo-img { height: 40px; max-width: 120px; }

  /* bet slip = bottom sheet */
  .layout > .slip { position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 95; padding: 0; transform: translateY(110%); transition: transform .25s ease; max-height: 85vh; overflow-y: auto; }
  .layout > .slip.open { transform: none; }
  .slip .slip-panel { border-radius: 14px 14px 0 0; padding-bottom: env(safe-area-inset-bottom); }
  .slip .mybets-panel { display: none; }
  .slip-close { display: block; }
  .slip-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 94; display: none; }
  body.sheet-open .slip-backdrop { display: block; }
  body.sheet-open { overflow: hidden; }
  .slip-grid input { height: 40px; font-size: 16px; }
  .stakes button { height: 34px; }
  .slip-actions .btn { height: 44px; }

  /* touch-friendly sizing */
  .mainnav a { padding: 0 14px; }
  .tabs button, .tabs a { padding: 12px 12px; }
  .side-list a { padding: 13px 14px; }
  .panel-hd { padding: 10px 12px; }
  .fancy-hd, .fancy-row { grid-template-columns: minmax(0,1fr) 66px 66px !important; }
  .fancy-hd > div:last-child, .fancy-row .lim { display: none; }
  .mkt-row.susp::after { inset: 0 0 0 auto; width: 132px; font-size: 11px; letter-spacing: 1px; }
  .scorecard .tm { font-size: 16px; }
  .scorecard .sc { font-size: 18px; }
  .live-stream { height: 180px !important; }
  .footer { padding: 20px 16px 84px; }
  .footer .inner { grid-template-columns: 1fr 1fr; gap: 14px; }
  .footer .inner > div:first-child { grid-column: 1 / -1; }
  .bottomnav { height: calc(60px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); }

  /* games */
  .table-felt { padding: 14px; min-height: 240px; }
  .timer { width: 48px; height: 48px; font-size: 18px; top: 10px; right: 10px; }
  .cards-row { gap: 18px; margin-top: 36px; }
  .card { width: 40px; height: 58px; font-size: 14px; }
  .controls { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .controls label { grid-column: 1 / -1; font-size: 12px; color: var(--muted); }
  .controls input, .controls select { grid-column: 1 / -1; width: 100%; height: 42px; font-size: 16px; }
  .controls .btn { height: 40px; padding: 0 6px; }
  .controls .btn-dark, .controls .btn-accent { grid-column: span 2; height: 46px; }
  .controls #place, .controls #cbtn, .controls #spin { grid-column: 1 / -1; }
  .crash-box { height: 220px; }
  .crash-mult { font-size: 40px; }
  .slot-reels { padding: 20px 10px; gap: 8px; }
  .reel { width: 30%; max-width: 90px; height: 92px; font-size: 44px; }
  .mines-grid { gap: 6px; }
  .bet-opt { padding: 14px 8px; }
  .slide p { font-size: 13px; }
  .ggrid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
  .gtile .gi { font-size: 34px; }
  .gtile .gn { font-size: 11px; }
  .header { padding: 0 12px; }
  .logo { font-size: 18px; }
}
@media (max-width: 480px) {
  .mhead, .mrow { grid-template-columns: minmax(0,1fr) repeat(3, 66px); }
  .pair { padding: 2px 1px; gap: 1px; }
  .odd { font-size: 12px; }
  .odd small { display: none; }
  .mhead > div:nth-child(n+2) { padding: 6px 2px; }
  .header { gap: 8px; padding: 0 10px; }
  .logo { font-size: 16px; gap: 6px; }
  .logo .mark { width: 28px; height: 28px; }
  .logo-img { height: 34px; max-width: 100px; }
  .hdr-right .btn { padding: 0 10px; font-size: 12px; }
  .quick a { padding: 10px 4px; }
  .slide h2 { font-size: 19px; }
  .slide .deco { display: none; }
  .ggrid { grid-template-columns: repeat(2, 1fr); }
  .gtile { aspect-ratio: 16/11; }
}
@media (max-width: 360px) {
  .logo-txt .one { display: none; }
  .mhead, .mrow { grid-template-columns: minmax(0,1fr) repeat(3, 60px); }
}
