/* Batery India Bet — base styles */
:root {
  --blue: #0f5bff;
  --blue-d: #0841c9;
  --blue-xd: #071a4a;
  --red: #dc0040;
  --red-d: #b30034;
  --ink: #0b1530;
  --muted: #56607a;
  --soft: #f1f5fd;
  --line: #dfe5f2;
  --white: #fff;
  --ok: #0a8f5a;
  --radius: 18px;
  --radius-s: 12px;
  --shadow: 0 10px 30px rgba(11, 21, 48, .08);
  --wrap: 1180px;
  --prose: 780px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; font: 400 17px/1.65 Manrope, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: var(--ink); background: var(--white); }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-d); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; font-weight: 800; margin: 0 0 .5em; }
h1 { font-size: clamp(34px, 6vw, 60px); }
h2 { font-size: clamp(26px, 3.6vw, 38px); margin-top: 1.6em; }
h3 { font-size: clamp(20px, 2.4vw, 24px); margin-top: 1.4em; }
p, ul, ol { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.sr, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { position: fixed; top: 8px; left: 8px; z-index: 100; background: var(--white); padding: 8px 14px; border-radius: 8px; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4em; min-height: 48px; padding: 0 26px; border-radius: 999px; font-weight: 700; font-size: 17px; text-decoration: none; border: 2px solid transparent; transition: background .15s, transform .15s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn--cta { background: var(--red); color: var(--white); }
.btn--cta:hover { background: var(--red-d); color: var(--white); }
.btn--ghost { border-color: currentColor; color: var(--white); }
.btn--ghost:hover { background: rgba(255,255,255,.12); color: var(--white); }
.btn--line { border-color: var(--blue); color: var(--blue); }
.btn--line:hover { background: var(--blue); color: var(--white); }

/* header */
.header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--line); }
.header__in { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.logo { flex: none; }
.nav { margin-left: auto; }
.nav__list, .nav__sub { list-style: none; margin: 0; padding: 0; }
.nav__list { display: flex; align-items: center; gap: 4px; }
.nav__group { position: relative; }
.nav__toggle, .nav__link { display: block; white-space: nowrap; padding: 10px 10px; font-family: inherit; font-weight: 700; font-size: 15px; line-height: 1; color: var(--ink); background: none; border: 0; cursor: pointer; text-decoration: none; border-radius: 10px; }
.nav__toggle::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 7px; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-3px) rotate(45deg); }
.nav__toggle:hover, .nav__link:hover, .nav__link[aria-current] { color: var(--blue); background: var(--soft); }
.nav__sub { position: absolute; top: calc(100% + 6px); left: 0; min-width: 190px; padding: 8px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-s); box-shadow: var(--shadow); display: none; }
.nav__sub a { display: block; padding: 9px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; }
.nav__sub a:hover, .nav__sub a[aria-current] { background: var(--soft); color: var(--blue); }
.nav__group:hover .nav__sub, .nav__group:focus-within .nav__sub, .nav__toggle[aria-expanded="true"] + .nav__sub { display: block; }
.header__cta { min-height: 42px; padding: 0 20px; font-size: 15px; }
.burger { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; position: relative; }
.burger i, .burger i::before, .burger i::after { position: absolute; left: 11px; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s; }
.burger i { top: 21px; }
.burger i::before, .burger i::after { content: ""; left: 0; }
.burger i::before { top: -7px; } .burger i::after { top: 7px; }
.burger[aria-expanded="true"] i { background: transparent; }
.burger[aria-expanded="true"] i::before { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] i::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1300px) {
  .burger { display: block; }
  .header__cta { order: 2; margin-left: 0; }
  .burger { order: 3; margin-left: 0; }
  .logo { margin-right: auto; }
  .nav { position: fixed; inset: 68px 0 0; background: var(--white); padding: 12px 16px 40px; overflow-y: auto; display: none; margin: 0; }
  .nav.is-open { display: block; }
  .nav__list { flex-direction: column; align-items: stretch; }
  .nav__toggle, .nav__link { width: 100%; text-align: left; padding: 14px 8px; font-size: 18px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav__toggle::after { float: right; margin-top: 4px; }
  .nav__sub { position: static; box-shadow: none; border: 0; padding: 4px 0 10px 8px; }
  .nav__group:hover .nav__sub { display: none; }
  .nav__toggle[aria-expanded="true"] + .nav__sub { display: block; }
}
@media (max-width: 420px) { .header__cta { padding: 0 14px; } }

/* breadcrumbs */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 0; margin: 0; font-size: 14px; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .6; }
.crumbs a { color: var(--muted); }

/* hero */
.hero { background: var(--blue); color: var(--white); padding: 56px 0 64px; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -160px; top: -160px; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.16), transparent 65%); pointer-events: none; }
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; position: relative; z-index: 1; }
.hero h1 { margin-bottom: 18px; }
.hero__lead { font-size: 19px; max-width: 620px; opacity: .95; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 18px; }
.hero__note { font-size: 13px; opacity: .8; margin: 0; }
.hero__media img { margin-left: auto; }
.updated { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; background: rgba(255,255,255,.16); padding: 6px 12px; border-radius: 999px; margin-bottom: 18px; }
@media (max-width: 860px) { .hero { padding: 36px 0 44px; } .hero__grid { grid-template-columns: 1fr; } .hero__media { max-width: 240px; margin: 0 auto; } }

/* offer cards (blue promo tiles) */
.offers { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin: 0 0 1.4em; }
.offer .btn { white-space: normal; text-align: center; padding: 8px 18px; min-height: 44px; font-size: 15px; }
article .offer { padding: 22px 20px 20px; min-height: 0; }
article .offer__t { font-size: 24px; }
.offer { background: var(--blue); color: var(--white); border-radius: var(--radius); padding: 26px 24px 24px; display: flex; flex-direction: column; min-height: 230px; }
.offer--dark { background: var(--blue-xd); }
.offer__k { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; opacity: .8; margin: 0 0 6px; }
.offer__t { font-size: 28px; font-weight: 800; line-height: 1.1; letter-spacing: -.02em; margin: 0 0 10px; }
.offer__d { margin: 0 0 20px; opacity: .95; }
.offer .btn { margin-top: auto; align-self: flex-start; }
.hero .offers { grid-template-columns: 1fr; gap: 12px; }
.hero .offer { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22); min-height: 0; padding: 18px 20px; }
.hero .offer__t { font-size: 22px; margin-bottom: 4px; }
.hero .offer__d { margin: 0; font-size: 15px; }
@media (max-width: 860px) { .offers { grid-template-columns: 1fr; } }

/* layout: content + toc */
.layout { display: grid; grid-template-columns: minmax(0, var(--prose)) 280px; gap: 56px; justify-content: center; padding: 48px 16px 24px; max-width: var(--wrap); margin: 0 auto; }
.layout > article > section:first-child > h2:first-child { margin-top: 0; }
.toc { position: sticky; top: 92px; align-self: start; background: var(--white); font-size: 15px; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 10px; max-height: calc(100vh - 110px); overflow-y: auto; }
.toc summary { font-weight: 800; cursor: pointer; list-style: none; font-size: 16px; }
.toc summary::-webkit-details-marker { display: none; }
.toc ol { padding-left: 20px; margin: 12px 0 0; }
.toc li { margin-bottom: 7px; }
.toc a { color: var(--ink); text-decoration: none; }
.toc a:hover, .toc a.is-active { color: var(--blue); }
@media (max-width: 1020px) {
  .layout { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 28px; }
  .toc { position: static; order: -1; margin-bottom: 8px; max-height: none; }
  .toc summary::after { content: "+"; float: right; font-size: 20px; line-height: 1; }
  .toc[open] summary::after { content: "–"; }
}

/* prose elements */
.lead { font-size: 19px; color: var(--muted); }
article ul:not([class]), article ol:not([class]) { padding-left: 1.3em; }
article li { margin-bottom: .4em; }
.table { width: 100%; overflow-x: auto; margin: 0 0 1.4em; border: 1px solid var(--line); border-radius: var(--radius-s); }
.table table { width: 100%; border-collapse: collapse; font-size: 16px; min-width: 520px; }
.table th, .table td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.table tr:last-child > * { border-bottom: 0; }
.table thead th { background: var(--soft); font-weight: 800; font-size: 14px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.table tbody th { font-weight: 700; width: 38%; }
.table--facts table { min-width: 0; }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0 0 1.4em; }
.steps > li { counter-increment: s; position: relative; padding: 2px 0 14px 54px; margin: 0; }
.steps > li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 38px; height: 38px; border-radius: 50%; background: var(--blue); color: var(--white); font-weight: 800; display: grid; place-items: center; }
.steps > li:not(:last-child)::after { content: ""; position: absolute; left: 18px; top: 42px; bottom: 4px; width: 2px; background: var(--line); }
.steps strong { display: block; }
.note { background: var(--soft); border-left: 4px solid var(--blue); border-radius: 0 var(--radius-s) var(--radius-s) 0; padding: 16px 20px; margin: 0 0 1.4em; }
.note--warn { border-left-color: var(--red); background: #fff2f5; }
.note > :last-child { margin-bottom: 0; }
.proscons { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 0 0 1.4em; }
.proscons > div { border: 1px solid var(--line); border-radius: var(--radius-s); padding: 18px 20px 6px; }
.proscons h3 { margin-top: 0; font-size: 18px; }
.proscons ul { list-style: none; padding: 0; }
.proscons li { padding-left: 26px; position: relative; }
.proscons li::before { position: absolute; left: 0; font-weight: 800; }
.pros li::before { content: "+"; color: var(--ok); }
.cons li::before { content: "–"; color: var(--red); }
@media (max-width: 640px) { .proscons { grid-template-columns: 1fr; } }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; margin: 0 0 1.4em; padding: 0; list-style: none; }
.card { border: 1px solid var(--line); border-radius: var(--radius-s); padding: 18px; margin: 0; }
.card h3 { font-size: 18px; margin: 0 0 6px; }
.card p { font-size: 15px; color: var(--muted); margin: 0; }
.card a { text-decoration: none; }
.card--link { transition: border-color .15s, box-shadow .15s; }
.card--link:hover { border-color: var(--blue); box-shadow: var(--shadow); }
.cta-band { background: var(--blue); color: var(--white); border-radius: var(--radius); padding: 26px 28px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin: 2em 0; }
.cta-band p { margin: 0; font-size: 20px; font-weight: 800; letter-spacing: -.01em; }
.cta-band small { display: block; font-size: 14px; font-weight: 500; opacity: .85; }
figure { margin: 0 0 1.4em; }
figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; }

/* faq */
.faq { margin-bottom: 1.4em; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary { cursor: pointer; padding: 18px 40px 18px 0; font-weight: 700; font-size: 18px; position: relative; list-style: none; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-size: 26px; color: var(--blue); }
.faq__item[open] summary::after { content: "–"; }
.faq__item > div { padding: 0 0 14px; }

/* footer */
.footer { background: var(--blue-xd); color: #c5cde3; font-size: 15px; margin-top: 56px; padding: 48px 0 28px; }
.footer a { color: #e6ebf7; text-decoration: none; }
.footer a:hover { color: var(--white); text-decoration: underline; }
.footer__top { display: grid; grid-template-columns: 1.4fr repeat(5, 1fr); gap: 28px; }
.footer__brand p { margin-top: 14px; }
.footer__h { color: var(--white); font-weight: 800; margin-bottom: 10px; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 8px; }
.footer__rg { display: flex; gap: 16px; align-items: flex-start; margin-top: 36px; padding: 20px 0; border-top: 1px solid rgba(255,255,255,.12); border-bottom: 1px solid rgba(255,255,255,.12); }
.footer__rg p { margin: 0; }
.age { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--red); color: var(--white); font-weight: 800; }
.footer__bottom { padding-top: 18px; font-size: 14px; }
.footer__bottom p { margin: 0 0 6px; }
@media (max-width: 900px) { .footer__top { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* promo code box */
.code { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; border: 2px dashed var(--blue); border-radius: var(--radius); padding: 18px 22px; margin: 0 0 1.4em; background: var(--soft); }
.code__label { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 0; }
.code__value { font-size: 28px; font-weight: 800; letter-spacing: .06em; color: var(--blue); margin: 0; }
.code .btn { margin-left: auto; }

/* header logo: Batery mark + "independent guide" caption */
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo img { width: 150px; height: auto; }
.logo small { font-size: 11px; font-weight: 700; line-height: 1.15; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; max-width: 78px; padding-left: 10px; border-left: 1px solid var(--line); }
@media (max-width: 420px) { .logo img { width: 112px; } .logo small { font-size: 9px; max-width: 64px; padding-left: 8px; } }
@media (max-width: 420px) { .header__in { gap: 8px; } .header__cta { padding: 0 12px; font-size: 14px; min-height: 38px; } .burger { width: 38px; } .burger i { left: 8px; } }
.header__app { min-height: 42px; padding: 0 18px; font-size: 15px; }
@media (max-width: 1300px) { .header__app { order: 1; margin-left: auto; } }
@media (max-width: 640px) { .header__app { display: none; } }
@media (min-width: 1301px) and (max-width: 1440px) { .header__in { gap: 12px; } .nav__toggle, .nav__link { padding: 10px 7px; } .header__app, .header__cta { padding: 0 14px; } .logo small { display: none; } }

/* ===== category tiles ===== */
.tiles-wrap { margin-top: 28px; }
.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.tile { position: relative; overflow: hidden; border-radius: var(--radius); color: var(--white); min-height: 150px; padding: 20px 20px 18px; display: flex; isolation: isolate; }
.tile--red { background: #c4003a; }
.tile--blue { background: var(--blue); }
.tile::before { content: ""; position: absolute; right: -30px; top: -20px; width: 60%; height: 140%; background: var(--blue-xd); transform: skewX(-22deg); z-index: -1; opacity: .9; }
.tile > div { display: flex; flex-direction: column; align-items: flex-start; position: relative; z-index: 1; }
.tile__t { font-size: 22px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; margin: 0 0 2px; }
.tile__t a { color: inherit; text-decoration: none; }
.tile__t a::after { content: ""; position: absolute; inset: 0; z-index: 2; } /* whole tile clickable */
.tile__s { font-size: 13px; opacity: .85; margin: 0 0 16px; max-width: 150px; line-height: 1.35; }
.tile__btn { margin-top: auto; font-size: 14px; font-weight: 700; border: 1.5px solid rgba(255,255,255,.7); border-radius: 8px; padding: 6px 12px; }
.tile:hover .tile__btn { background: rgba(255,255,255,.15); }
.tile__art { position: absolute; right: 8px; bottom: 6px; width: 120px; height: 120px; z-index: 0; transform: rotate(-8deg); transition: transform .25s; }
.tile:hover .tile__art { transform: rotate(0) scale(1.06); }
@media (max-width: 960px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .tiles { gap: 10px; } .tile { min-height: 130px; padding: 14px; } .tile__t { font-size: 18px; } .tile__s { display: none; } .tile__art { width: 84px; height: 84px; } }

/* ===== game grid ===== */
.games { margin-top: 18px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 14px; }
.games__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-bottom: 16px; }
.games__head h2 { margin: 0; font-size: clamp(22px, 2.6vw, 28px); }
.games__tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.games__tab { font: inherit; font-size: 14px; font-weight: 700; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); color: var(--muted); cursor: pointer; }
.games__tab[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--white); }
.games__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.game { margin: 0; }
.game[hidden] { display: none; }
.game__cover { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: linear-gradient(160deg, var(--g1), var(--g2)); color: var(--white); }
.game__art { position: absolute; left: 50%; top: 40%; width: 58%; height: 58%; transform: translate(-50%, -50%); filter: drop-shadow(0 6px 10px rgba(0,0,0,.25)); }
.game__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.game__badge { position: absolute; top: 8px; left: 8px; z-index: 2; background: var(--red); color: var(--white); font-size: 10px; font-weight: 800; letter-spacing: .04em; padding: 3px 7px; border-radius: 6px; }
.game__info { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 10px 9px; background: linear-gradient(transparent, rgba(0,0,0,.55)); }
.game__name { margin: 0; font-size: 14px; line-height: 1.15; text-transform: uppercase; letter-spacing: .01em; }
.game__name a { color: var(--white); text-decoration: none; }
.game__prov { margin: 2px 0 0; font-size: 10px; font-weight: 700; text-transform: uppercase; opacity: .8; }
.game__actions { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; background: rgba(7,26,74,.62); opacity: 0; transition: opacity .18s; }
.game__cover:hover .game__actions, .game__cover:focus-within .game__actions { opacity: 1; }
.game__play, .game__demo { width: 70%; text-align: center; padding: 8px 0; border-radius: 999px; font-weight: 800; font-size: 14px; text-decoration: none; }
.game__play { background: #f5c451; color: var(--ink); }
.game__play:hover { background: #ffd56e; color: var(--ink); }
.game__demo { border: 1.5px solid #f5c451; color: #f5c451; }
.game__demo:hover { background: rgba(245,196,81,.15); color: #ffd56e; }
.game--all .game__more { aspect-ratio: 1; display: flex; flex-direction: column; justify-content: space-between; border: 1px solid var(--line); border-radius: 12px; padding: 14px; text-decoration: none; color: var(--ink); }
.game--all .game__more strong { font-size: 20px; }
.game--all .game__more span { color: var(--blue); font-size: 13px; font-weight: 700; }
.game--all .game__more:hover { border-color: var(--blue); }
.games__note { font-size: 12px; color: var(--muted); margin: 12px 0 0; }
/* touch screens: no hover, show compact buttons permanently */
@media (hover: none) {
  .game__actions { opacity: 1; inset: auto 0 0 0; flex-direction: row; justify-content: stretch; gap: 6px; padding: 6px; background: rgba(7,26,74,.75); }
  .game__play, .game__demo { width: auto; flex: 1; padding: 6px 0; font-size: 12px; }
  .game__info { bottom: 40px; padding-top: 18px; }
}
@media (max-width: 480px) { .games { padding: 16px 12px 10px; } .games__grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } }
.game__info { z-index: 4; pointer-events: none; }
.game__name a { pointer-events: auto; }
.game__name a:hover { text-decoration: underline; }
@media (max-width: 480px) { .tile__art { top: 10px; bottom: auto; right: 6px; width: 58px; height: 58px; } .tile__btn { font-size: 13px; padding: 5px 10px; } }

/* ===== demo modal ===== */
button.game__demo { font: inherit; font-weight: 800; font-size: 14px; background: transparent; cursor: pointer; }
@media (hover: none) { button.game__demo { font-size: 12px; } }
.demo { width: min(1100px, 94vw); max-height: 94vh; padding: 0; border: 0; border-radius: var(--radius); background: var(--blue-xd); color: var(--white); overflow: hidden; }
.demo::backdrop { background: rgba(4, 10, 30, .78); }
.demo__bar { display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 18px; }
.demo__title { margin: 0 auto 0 0; font-weight: 800; font-size: 18px; }
.demo__real { min-height: 38px; padding: 0 16px; font-size: 14px; }
.demo__close { width: 38px; height: 38px; border: 0; border-radius: 50%; background: rgba(255,255,255,.12); color: var(--white); font-size: 26px; line-height: 1; cursor: pointer; }
.demo__close:hover { background: rgba(255,255,255,.25); }
.demo__frame { position: relative; aspect-ratio: 16 / 9; max-height: calc(94vh - 100px); background: #000; }
.demo__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.demo__note { margin: 0; padding: 8px 18px 10px; font-size: 12px; color: #aab4d4; }
@media (max-width: 640px) {
  .demo { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 0; display: none; flex-direction: column; }
  .demo[open] { display: flex; }
  .demo__frame { flex: 1; aspect-ratio: auto; max-height: none; }
}
/* hover overlay: keep buttons above the title block so long names never overlap */
@media (hover: hover) {
  .game__actions { justify-content: flex-start; padding-top: 14%; gap: 7px; }
  .game__play, .game__demo { padding: 7px 0; font-size: 13px; }
  .game__cover:hover .game__art { opacity: .25; }
}
@media (hover: hover) {
  .game__actions { justify-content: center; padding-top: 0; }
  .game__info { transition: opacity .18s; }
  .game__cover:hover .game__info, .game__cover:focus-within .game__info { opacity: 0; }
  .game__cover:hover .game__badge { opacity: 0; }
}
/* overlay: background click → review page, buttons stay on top */
.game__hit { position: absolute; inset: 0; z-index: 0; }
.game__play, .game__demo, .game__review { position: relative; z-index: 1; }
.game__review { font-size: 12px; font-weight: 700; color: #fff; opacity: .85; text-decoration: none; margin-top: 2px; }
.game__review:hover { opacity: 1; text-decoration: underline; color: #fff; }
@media (hover: none) { .game__review { display: none; } .game__hit { display: none; } .game__info { pointer-events: auto; } }
/* real covers are 4:3 */
.game__cover, .game--all .game__more { aspect-ratio: 4 / 3; }
.games__grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.game__img { transition: transform .25s; }
.game__cover:hover .game__img { transform: scale(1.05); }
.game__info { padding-top: 22px; }
.game__name { font-size: 13px; }
@media (max-width: 480px) { .games__grid { grid-template-columns: repeat(2, 1fr); } }
.game__badge { left: auto; right: 8px; top: 8px; font-size: 9px; padding: 2px 6px; }

/* ===== inline demo window on game pages ===== */
.playbox-wrap { margin-top: 28px; }
.playbox { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--blue-xd); aspect-ratio: 16 / 9; max-height: 620px; width: 100%; color: var(--white); isolation: isolate; }
.playbox::before { content: ""; position: absolute; inset: -30px; background: var(--cover) center / cover no-repeat; filter: blur(24px) brightness(.45); z-index: -1; }
.playbox__idle { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 36px; padding: 24px; }
.playbox__cover { width: min(42%, 420px); height: auto; border-radius: 14px; box-shadow: 0 18px 40px rgba(0,0,0,.45); }
.playbox__name { font-size: clamp(24px, 3vw, 36px); font-weight: 800; letter-spacing: -.02em; margin: 0 0 4px; }
.playbox__prov { margin: 0 0 20px; opacity: .8; font-size: 15px; }
.playbox__btns { display: flex; gap: 10px; }
.playbox__btns .game__play, .playbox__btns .game__demo { width: 140px; padding: 11px 0; font-size: 16px; }
.playbox__live { position: absolute; inset: 0; display: flex; flex-direction: column; background: #000; }
.playbox__live[hidden] { display: none; }
.playbox__bar { display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 16px; background: var(--blue-xd); font-weight: 700; font-size: 15px; }
.playbox__bar span { margin-right: auto; }
.playbox__real { min-height: 36px; padding: 0 14px; font-size: 14px; }
.playbox__exit { font: inherit; font-size: 14px; font-weight: 700; color: var(--white); background: rgba(255,255,255,.12); border: 0; border-radius: 999px; padding: 8px 14px; cursor: pointer; }
.playbox__exit:hover { background: rgba(255,255,255,.25); }
.playbox__live iframe { flex: 1; width: 100%; border: 0; }
@media (max-width: 700px) {
  .playbox { aspect-ratio: auto; min-height: 420px; }
  .playbox__idle { flex-direction: column; gap: 16px; text-align: center; }
  .playbox__cover { width: 72%; }
  .playbox__btns { justify-content: center; }
  .playbox__btns .game__play, .playbox__btns .game__demo { width: 120px; }
  .playbox.is-live { aspect-ratio: auto; height: 82vh; max-height: none; }
  .playbox__bar span { display: none; }
}
.playbox__idle[hidden] { display: none; }

/* ===== sport: league tiles carousel ===== */
.sport { margin-top: 18px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px 18px; }
.sport__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.sport__head h2 { margin: 0; font-size: clamp(22px, 2.6vw, 28px); }
.sport__nav { display: flex; gap: 6px; }
.sport__arrow { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); color: var(--ink); font-size: 20px; line-height: 1; cursor: pointer; }
.sport__arrow:hover { border-color: var(--blue); color: var(--blue); }
.leagues { list-style: none; margin: 0; padding: 0 0 4px; display: grid; grid-auto-flow: column; grid-auto-columns: 200px; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.leagues::-webkit-scrollbar { display: none; }
.league { scroll-snap-align: start; margin: 0; }
.league a { position: relative; display: block; height: 92px; border-radius: 12px; padding: 12px 14px; color: var(--white); text-decoration: none; overflow: hidden; isolation: isolate; }
.league--red a { background: #c4003a; }
.league--blue a { background: var(--blue); }
.league a::before { content: ""; position: absolute; right: -24px; top: -10px; width: 46%; height: 130%; background: var(--blue-xd); transform: skewX(-20deg); z-index: -1; opacity: .55; }
.league__t { display: block; font-weight: 800; font-size: 16px; line-height: 1.15; max-width: 120px; }
.league__s { display: block; font-size: 12px; opacity: .85; margin-top: 3px; max-width: 120px; }
.league__art { position: absolute; right: 6px; bottom: 4px; width: 70px; height: 70px; z-index: -1; transition: transform .2s; }
.league a:hover .league__art { transform: scale(1.08) rotate(-4deg); }
@media (max-width: 480px) { .sport { padding: 16px 12px 14px; } .leagues { grid-auto-columns: 170px; } .league a { height: 84px; } .league__art { width: 58px; height: 58px; } }
/* framed blocks: keep a side gutter on narrower screens */
@media (max-width: 1240px) { .games, .sport { margin-left: 16px; margin-right: 16px; } }
@media (max-width: 480px) { .games, .sport { margin-left: 12px; margin-right: 12px; } }

/* ===== top events (odds) ===== */
.events__list { list-style: none; margin: 0; padding: 0 0 4px; display: grid; grid-auto-flow: column; grid-auto-columns: 260px; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.event { scroll-snap-align: start; margin: 0; background: linear-gradient(160deg, #1d2a4d, #0b1530); color: var(--white); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.event[hidden] { display: none; }
.event__top { display: flex; align-items: center; gap: 6px; font-size: 11px; color: #aab4d4; min-width: 0; }
.event__sport { background: rgba(255,255,255,.14); color: var(--white); font-weight: 700; padding: 2px 6px; border-radius: 5px; text-transform: capitalize; flex: none; }
.event__league { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.event__mid { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 6px; text-align: center; }
.event__team { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; line-height: 1.2; min-width: 0; }
.event__team span:last-child { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.event__ava { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 800; background: var(--c, #0f5bff); border: 2px solid rgba(255,255,255,.25); }
.event__time { font-size: 18px; font-weight: 800; }
.event__day { display: block; font-size: 11px; font-weight: 600; color: #aab4d4; }
.event__livebadge { color: #ff5a7a; font-weight: 800; font-size: 13px; }
.event__odds { display: flex; gap: 6px; }
.event__odds a { flex: 1; display: flex; justify-content: space-between; align-items: center; background: rgba(255,255,255,.1); border-radius: 8px; padding: 8px 9px; color: var(--white); text-decoration: none; font-size: 14px; font-weight: 800; }
.event__odds a span { color: #aab4d4; font-weight: 700; font-size: 12px; }
.event__odds a:hover { background: var(--red); color: var(--white); }
.event__odds a:hover span { color: var(--white); }
.events__live { display: inline-flex; align-items: center; gap: 5px; vertical-align: middle; font-size: 12px; font-weight: 700; color: var(--ink); border: 1px solid var(--line); border-radius: 999px; padding: 3px 9px; margin-left: 6px; letter-spacing: 0; }
.events__live[hidden] { display: none; }
.events__live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--red); }
.events__demo { display: inline-block; background: #ffc531; color: var(--ink); font-weight: 800; font-size: 11px; padding: 2px 8px; border-radius: 6px; margin-right: 6px; }
.events[hidden] { display: none; }
@media (max-width: 480px) { .events__list { grid-auto-columns: 240px; } }

/* ===== footer social icons ===== */
.social { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0 !important; padding: 0; }
.social li { margin: 0 !important; }
.social a { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.1); color: #e6ebf7; transition: background .15s, color .15s; }
.social a:hover { background: var(--white); color: var(--blue-xd); text-decoration: none; }
.social a:hover svg [fill="#071a4a"] { fill: #fff; } .social a:hover svg [stroke="#071a4a"] { stroke: #fff; }
