/* ==========================================================================
   NovaBet — public site
   Breakpoints:  ≥1280 desktop (full sidebar) · 1024–1279 tablet landscape
   (mini sidebar, icon tabs) · <1024 tablet/phone (drawer + bottom bar)
   ========================================================================== */

:root {
  --bg: #141415;
  --sidebar: #1c1c1e;
  --card: #1e1e21;
  --glass: rgba(179, 182, 189, .12);
  --glass-2: rgba(179, 182, 189, .2);
  --text: #f0f2f5;
  --muted: rgba(240, 242, 245, .56);
  --muted-2: rgba(240, 242, 245, .36);
  --line: rgba(240, 242, 245, .08);
  --accent: #0075ff;
  --accent-hover: #1a84ff;
  --green: #00b24b;
  --green-hover: #00c454;
  --orange: #ff5c0a;
  --live: #ff2d55;

  --light-bg: #e7e9ed;
  --light-card: #ffffff;
  --light-text: #141415;
  --light-muted: rgba(20, 20, 21, .5);
  --light-glass: rgba(163, 171, 187, .2);
  --light-glass-2: rgba(163, 171, 187, .32);

  --r-sm: 8px;
  --r: 12px;
  --r-lg: 16px;
  --r-xl: 20px;

  --sb-w: 280px;
  --gutter: 48px;
  --cols: 8;
  --gap: 4px;

  --ethiopic: "Noto Sans Ethiopic", Nyala, Kefa, "Abyssinica SIL", "Ebrima";
  --font: Inter, Poppins, var(--ethiopic), ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: Oswald, var(--ethiopic), "Arial Narrow", Impact, sans-serif;
  --font-cover: "Lilita One", Inter, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
/* downloaded brand logos: one-colour glyph on a tile painted with --brand-tile */
.brand { display: block; width: 100%; height: 100%; }
.brand-btn { display: block; flex: none; color: var(--text); --brand-tile: var(--glass); }
.brand-btn:hover { --brand-tile: var(--glass-2); }
.flag-img { display: block; flex: none; width: 18px; height: 18px; border-radius: 50%; object-fit: cover; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 14px/1.4 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
img { display: block; max-width: 100%; }
.i { width: 20px; height: 20px; flex: none; fill: currentColor; }
.i-sm { width: 16px; height: 16px; }
.i-lg { width: 24px; height: 24px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,.12); border-radius: 8px; }
::-webkit-scrollbar-track { background: transparent; }

/* ── buttons ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: var(--r);
  font-weight: 600; font-size: 14px; white-space: nowrap;
  transition: background .15s, opacity .15s, transform .1s;
}
.btn:active { transform: scale(.98); }
.btn-glass { background: var(--glass); }
.btn-glass:hover { background: var(--glass-2); }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-hover); }
.btn-blue { background: var(--accent); color: #fff; }
.btn-blue:hover { background: var(--accent-hover); }
.btn-white { background: #fff; color: #141415; }
.btn-white:hover { background: #e9ebef; }
.btn-block { width: 100%; }
.btn-sm { height: 36px; padding: 0 14px; border-radius: 10px; }
.btn[disabled] { opacity: .4; pointer-events: none; }

.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px;
  border-radius: 10px; background: var(--glass); transition: background .15s;
}
.icon-btn:hover { background: var(--glass-2); }

/* ── sidebar ───────────────────────────────────────────────────────────── */
.sidebar {
  position: fixed; inset: 0 auto 0 0; z-index: 60;
  width: var(--sb-w); background: var(--sidebar);
  display: flex; flex-direction: column;
  transition: width .2s ease, transform .25s ease;
}
.sb-top { padding: 12px 16px 0; }
.sb-login {
  display: flex; align-items: center; gap: 12px; width: 100%;
  height: 56px; padding: 0 10px 0 8px; margin-bottom: 4px; text-align: left;
  border-radius: var(--r); background: var(--glass); transition: background .15s;
}
.sb-login:hover { background: var(--glass-2); }
.sb-login .avatar {
  display: grid; place-items: center; width: 40px; height: 40px;
  border-radius: 50%; background: var(--glass-2); color: var(--muted);
}
.sb-login .sb-label { flex: 1; font-size: 16px; font-weight: 600; }
.sb-login .chev { color: var(--muted); }


.sb-collapse {
  position: absolute; top: 124px; right: -16px; z-index: 2;
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: #2a2a2e; color: var(--muted); box-shadow: 0 0 0 4px var(--bg);
  transition: color .15s;
}
.sb-collapse:hover { color: var(--text); }
.sb-collapse .i { width: 18px; height: 18px; }
.sb-collapse .i-expand { display: none; }

.sb-scroll { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 12px 16px; scrollbar-width: none; }
.sb-scroll::-webkit-scrollbar { display: none; }


.sb-divider { height: 1px; background: var(--line); margin: 8px 0; }
.sb-nav { display: flex; flex-direction: column; gap: 4px; padding: 4px 0; }
.sb-item {
  position: relative; display: flex; align-items: center; gap: 12px; width: 100%;
  height: 36px; padding: 0 8px; border-radius: 10px; font-size: 14px; text-align: left;
  transition: background .15s;
}
.sb-item:hover { background: var(--glass); }
.sb-item.active { background: var(--glass); }
.sb-item .i { color: rgba(240,242,245,.7); }
.sb-item .sb-label { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-item .chev { width: 18px; height: 18px; color: var(--muted); transition: transform .2s; }
.sb-group.open .sb-item .chev { transform: rotate(180deg); }
.sb-parent { padding: 0; }
.sb-parent .sb-link { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; height: 100%; padding: 0 0 0 8px; }
.sb-parent .sb-toggle { display: grid; place-items: center; width: 32px; height: 100%; color: var(--muted); border-radius: 0 10px 10px 0; }
.sb-group.open .sb-toggle .chev { transform: rotate(180deg); }
.sb-sub { display: none; flex-direction: column; gap: 2px; margin: 2px 0 6px 18px; padding-left: 12px; border-left: 1px solid var(--line); }
.sb-group.open .sb-sub { display: flex; }
.sb-sub a { display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 8px; border-radius: 10px; font-size: 14px; color: var(--text); }
.sb-sub a .i { width: 18px; height: 18px; color: rgba(240,242,245,.7); }
.sb-sub a:hover { background: var(--glass); }

.badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 22px; height: 18px; padding: 0 6px; border-radius: 999px;
  background: var(--orange); color: #fff; font-size: 11px; font-weight: 600;
}

.sb-bottom { padding: 12px 16px 12px; }
.app-card {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px;
  border-radius: var(--r); background: var(--glass); margin-bottom: 12px;
  transition: background .15s;
}
.app-card:hover { background: var(--glass-2); }
.app-icon {
  display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 10px;
  background: #0d0d0e; overflow: hidden;
}
.app-icon .os {
  display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #fff; color: #000;
}
.app-icon .os .i { width: 22px; height: 22px; }
.app-icon img, .app-icon .brand { width: 100%; height: 100%; object-fit: cover; }
.app-text { flex: 1; min-width: 0; }
.app-text b { display: block; font-size: 12px; font-weight: 600; }
.app-text span { display: block; font-size: 11px; color: var(--muted); line-height: 1.3; }
.app-card .chev { color: var(--muted); width: 18px; height: 18px; }

.sb-social { display: flex; gap: 6px; margin-bottom: 12px; }
.sb-social .icon-btn { width: 32px; height: 32px; border-radius: 8px; }
.sb-social .icon-btn .i { width: 18px; height: 18px; }
.sb-social .brand-btn { width: 32px; height: 32px; }
.lang-btn {
  margin-left: auto; display: inline-flex; align-items: center; gap: 6px;
  height: 32px; padding: 0 8px; border-radius: 8px; background: var(--glass); font-size: 13px;
}
.lang-btn .flag-img { width: 18px; height: 18px; }
.lang-btn .i { width: 16px; height: 16px; color: var(--muted); }

.sb-support {
  display: flex; align-items: center; gap: 10px; width: 100%; height: 40px;
  padding: 0 4px 0 0; border-top: 1px solid var(--line); padding-top: 12px; height: 52px;
}
.sb-support .s-ic { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; background: var(--glass); }
.sb-support .s-ic .i { width: 18px; height: 18px; }
.sb-support .sb-label { flex: 1; text-align: left; font-size: 13px; }
.pill-blue { padding: 2px 8px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 600; }

.sb-backdrop, .sb-close { display: none; }

/* mini sidebar (tablet landscape, or collapsed by the user) */
.sb-mini { --sb-w: 72px; }
.sb-mini .sidebar .sb-label,
.sb-mini .sidebar .chev,
.sb-mini .sidebar .app-text,
.sb-mini .sidebar .sb-sub,
.sb-mini .sidebar .lang-btn .lang-code,
.sb-mini .sidebar .lang-btn .i,
.sb-mini .sidebar .pill-blue { display: none; }
.sb-mini .sb-top, .sb-mini .sb-scroll, .sb-mini .sb-bottom { padding-left: 12px; padding-right: 12px; }
.sb-mini .sb-login { justify-content: center; padding: 0; background: none; }
.sb-mini .sb-collapse { top: 140px; }
.sb-mini .sb-collapse .i-collapse { display: none; }
.sb-mini .sb-collapse .i-expand { display: block; }
.sb-mini .sb-item { justify-content: center; padding: 0; height: 40px; }
.sb-mini .sb-parent .sb-link { justify-content: center; padding: 0; }
/* collapsed: the expand arrow would push group icons off-centre */
.sb-mini .sb-parent .sb-toggle { display: none; }
.sb-mini .sb-item .badge {
  position: absolute; top: 0; right: 2px; min-width: 16px; height: 14px; padding: 0 4px; font-size: 9px;
}
.sb-mini .app-card { justify-content: center; padding: 6px; background: none; }
.sb-mini .sb-social { flex-wrap: wrap; justify-content: center; gap: 4px; width: 48px; margin: 0 auto 10px; }
.sb-mini .sb-social .icon-btn, .sb-mini .sb-social .brand-btn { width: 22px; height: 22px; border-radius: 6px; }
.sb-mini .sb-social .icon-btn .i { width: 13px; height: 13px; }
.sb-mini .lang-btn { margin: 4px auto 0; width: 48px; height: 32px; justify-content: center; }
.sb-mini .sb-support { justify-content: center; padding-right: 0; }

/* ── main column + header ─────────────────────────────────────────────── */
.main { margin-left: var(--sb-w); min-height: 100vh; display: flex; flex-direction: column; transition: margin-left .2s ease; }
.content { flex: 1; padding: 0 var(--gutter) 40px; min-width: 0; }

.topbar { display: flex; align-items: center; gap: 24px; height: 68px; padding: 0 var(--gutter); }
.logo { display: inline-flex; align-items: center; height: 32px; font-size: 30px; font-weight: 800; font-style: italic; letter-spacing: -1.6px; line-height: 1; }
.logo img { height: 30px; width: auto; }
.logo b { color: var(--accent); font-weight: 800; }
.tabs { display: flex; gap: 2px; padding: 2px; border-radius: 14px; background: var(--glass); }
.tab {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 8px 16px;
  border-radius: var(--r); font-size: 14px; font-weight: 600; color: var(--text);
  transition: background .15s;
}
.tab .i { color: rgba(240,242,245,.75); }
.tab:hover { background: var(--glass); }
.tab.active { background: var(--accent); color: #fff; }
.tab.active .i { color: #fff; }
.topbar-actions { margin-left: auto; display: flex; gap: 12px; }
.topbar .menu-btn { display: none; }

/* ── hero ──────────────────────────────────────────────────────────────── */
.hero { display: grid; grid-template-columns: minmax(0, 874fr) minmax(0, 414fr); gap: 16px; margin-bottom: 32px; }
.hero-slider { position: relative; border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 874 / 333; background: #0e0f12; box-shadow: inset 0 0 0 1px var(--line); }
.hero-track { display: flex; height: 100%; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.hero-slide { position: relative; flex: 0 0 100%; height: 100%; overflow: hidden; }
.hero-slide > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-copy { position: absolute; left: 9.5%; top: 0; bottom: 30%; display: flex; flex-direction: column; justify-content: center; gap: 14px; z-index: 1; max-width: 46%; }
.hero-title {
  margin: 0; font-family: var(--font-display); font-weight: 500; text-transform: uppercase;
  font-size: clamp(32px, 4.6vw, 80px); line-height: .9; letter-spacing: -.5px;
  text-shadow: 0 2px 30px rgba(0,0,0,.45);
}
/* Ethiopic script has taller letters and no capitals: a calmer size and spacing */
:lang(am) .hero-title { font-size: clamp(26px, 3.2vw, 50px); line-height: 1.25; letter-spacing: 0; }
:lang(am) .hero-copy p, :lang(am) .promo-card h3 { letter-spacing: 0; }
.hero-title small { display: block; font-size: .5em; letter-spacing: 0; opacity: .9; margin-top: .25em; }
.hero-cta { position: absolute; left: 4.2%; bottom: 9%; z-index: 2; }
.hero-art {
  position: absolute; right: 8%; top: 50%; transform: translateY(-50%);
  font-size: clamp(90px, 15vw, 230px); line-height: 1; filter: drop-shadow(0 20px 40px rgba(0,0,0,.6));
}
.hero-dots {
  position: absolute; left: 6%; bottom: 7%; z-index: 3; display: none; gap: 6px;
  padding: 5px 8px; border-radius: 999px; background: rgba(0,0,0,.35);
}
.hero-dots button { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.4); }
.hero-dots button.on { background: #fff; }

.hero-side { display: grid; grid-template-rows: 1fr 1fr; gap: 16px; }
.promo-card {
  position: relative; display: block; overflow: hidden; padding: 20px; border-radius: var(--r-xl);
  min-height: 0; color: var(--text);
}
.promo-card > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.promo-card h3 { position: relative; margin: 0 0 8px; font-size: 14px; font-weight: 600; }
.promo-card p { position: relative; margin: 0; max-width: 45%; font-size: 12px; color: rgba(240,242,245,.8); }
.promo-card .promo-art { position: absolute; right: 6%; bottom: -6%; font-size: clamp(64px, 7vw, 120px); filter: drop-shadow(0 12px 18px rgba(0,0,0,.45)); }
.promo-card .promo-foot { position: absolute; left: 20px; bottom: 16px; display: flex; align-items: center; gap: 6px; font-size: 11px; }
.promo-card .ring { width: 12px; height: 12px; border-radius: 50%; border: 3px solid rgba(255,255,255,.9); background: rgba(0,0,0,.2); }

/* ── game sections ─────────────────────────────────────────────────────── */
.games-section { margin-bottom: 28px; scroll-margin-top: 16px; }
.section-head { display: flex; align-items: center; justify-content: space-between; height: 32px; margin-bottom: 12px; }
.section-title { display: inline-flex; align-items: center; gap: 12px; font-size: 20px; font-weight: 600; }
.section-title .s-ic { width: 28px; height: 28px; color: #e6e8ec; }
.section-title .chev { width: 18px; height: 18px; color: var(--muted); margin-left: -4px; }
.arrows { display: flex; gap: 4px; }
.arrow {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px;
  background: var(--glass); color: var(--text); transition: background .15s, opacity .15s;
}
.arrow .i { width: 18px; height: 18px; }
.arrow:hover { background: var(--glass-2); }
.arrow[disabled] { opacity: .45; background: rgba(179,182,189,.06); pointer-events: none; }

.carousel {
  display: grid; grid-auto-flow: column; gap: var(--gap);
  grid-auto-columns: calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols));
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none; overscroll-behavior-x: contain;
}
.carousel::-webkit-scrollbar { display: none; }

.game { display: block; scroll-snap-align: start; min-width: 0; }
.game-cover {
  position: relative; overflow: hidden; aspect-ratio: 370 / 546; border-radius: 12px;
  container-type: inline-size; isolation: isolate;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
}
.game-cover > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; transition: opacity .25s, transform .35s ease; }
.game-cover::after {
  content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit;
  background: rgba(0,0,0,.45); opacity: 0; transition: opacity .2s;
}
/* provider tab on the top edge, as on the reference cards */
.game-provider {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%); z-index: 2;
  max-width: 84%; overflow: hidden; text-overflow: ellipsis;
  padding: 2px 8px 3px; border-radius: 0 0 8px 8px;
  background: rgba(12, 12, 16, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  font-size: clamp(7px, 5.6cqw, 10px); font-weight: 700; line-height: 1.35; letter-spacing: .3px;
  text-transform: uppercase; white-space: nowrap; color: #fff;
}
.game-flag { position: absolute; top: 4px; left: 6px; z-index: 2; font-size: clamp(9px, 8cqw, 14px); }
.game-title {
  position: absolute; left: 6%; right: 6%; top: 13%; z-index: 1; text-align: center;
  font-family: var(--font-cover); font-weight: 400; text-transform: uppercase; color: #fff;
  font-size: clamp(14px, 19cqw, 34px); line-height: .9; letter-spacing: .2px;
  text-shadow: 0 2px 0 rgba(0,0,0,.18), 0 4px 14px rgba(0,0,0,.25);
  overflow-wrap: anywhere;
}
.game-title small { display: block; font-size: .5em; line-height: 1.1; margin-top: 2px; }
.game-art {
  position: absolute; left: 50%; bottom: 4%; transform: translateX(-50%); z-index: 0;
  font-size: 52cqw; line-height: 1; filter: drop-shadow(0 10px 14px rgba(0,0,0,.35));
  transition: transform .3s ease;
}
.game-play {
  position: absolute; left: 50%; top: 50%; z-index: 3; transform: translate(-50%, -50%) scale(.8);
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: var(--accent); color: #fff; opacity: 0; transition: opacity .2s, transform .2s;
}
.game-play .i { width: 22px; height: 22px; margin-left: 2px; }
@media (hover: hover) {
  .game:hover .game-cover::after { opacity: 1; }
  .game:hover .game-play { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  .game:hover .game-art { transform: translateX(-50%) scale(1.06); }
  .game:hover .game-cover > img { transform: scale(1.05); }
}
.game-meta { display: flex; align-items: center; gap: 4px; margin-top: 6px; font-size: 12px; color: var(--muted); white-space: nowrap; }
.game-meta b { color: var(--text); font-weight: 600; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); flex: none; }

/* ── casino page ───────────────────────────────────────────────────────── */
.subtabs { display: inline-flex; gap: 2px; padding: 2px; border-radius: 12px; background: var(--glass); margin-bottom: 16px; }
.subtab { height: 32px; padding: 0 12px; border-radius: 10px; font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; }
.subtab:hover { background: var(--glass); }
.subtab.active { background: var(--accent); color: #fff; }

.casino-hero { display: grid; grid-template-columns: minmax(0, 874fr) minmax(0, 414fr); gap: 16px; margin-bottom: 20px; }
.casino-hero .hero-slider { aspect-ratio: 874 / 333; }
.casino-hero .hero-title { font-family: var(--font); font-weight: 700; text-transform: none; font-size: clamp(22px, 2.4vw, 34px); line-height: 1.15; letter-spacing: -.5px; }
.casino-hero .hero-copy { left: 4.2%; max-width: 48%; justify-content: flex-start; padding-top: 6%; }
.gotw {
  position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center;
  padding: 18px 16px 16px; border-radius: var(--r-xl);
  background: radial-gradient(120% 90% at 50% 0%, #6aa4ff 0%, #2f6bff 45%, #2152e0 100%);
}
.gotw h3 { margin: 0; font-size: clamp(16px, 1.7vw, 24px); font-weight: 700; letter-spacing: -.3px; }
.gotw .studio { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; font-size: 12px; font-weight: 600; opacity: .9; }
.gotw .studio .i { width: 14px; height: 14px; }
.gotw .gotw-cover { width: 34%; margin: 12px 0 auto; filter: drop-shadow(0 12px 18px rgba(0,0,0,.35)); }
.gotw .gotw-cover .game-cover { border-radius: 10px; }
/* laurel wreath around the cover, as a soft white silhouette */
.gotw::before { content: ""; position: absolute; left: 50%; top: 22%; width: 62%; aspect-ratio: 1; transform: translateX(-50%); background: url(/static/img/art/hd/1f33f.webp) center / contain no-repeat; opacity: .45; filter: grayscale(1) brightness(2.2); pointer-events: none; }
.gotw .btn { position: relative; z-index: 1; height: 36px; width: 100%; margin-top: 12px; }

.searchbar { display: grid; grid-template-columns: minmax(0, 874fr) minmax(0, 414fr); gap: 16px; margin-bottom: 12px; }
.search {
  display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px;
  border-radius: var(--r); background: var(--glass); color: var(--muted);
}
.search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; color: var(--text); font-size: 14px; }
.search input::placeholder { color: var(--muted); }
.providers-btn { height: 44px; border-radius: var(--r); background: var(--glass); display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 600; }
.providers-btn:hover { background: var(--glass-2); }

.chips-wrap { position: relative; display: flex; align-items: center; gap: 8px; margin-bottom: 24px; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; scroll-behavior: smooth; flex: 1; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; flex: none;
  border-radius: var(--r); background: var(--glass); font-weight: 600; font-size: 14px; white-space: nowrap;
  transition: background .15s;
}
.chip .i { width: 18px; height: 18px; color: rgba(240,242,245,.8); }
.chip:hover { background: var(--glass-2); }
.chip.active { background: var(--accent); color: #fff; }
.chip.active .i { color: #fff; }
.chips-next { flex: none; width: 40px; height: 40px; border-radius: var(--r); }
.no-results { display: none; padding: 48px 0; text-align: center; color: var(--muted); }

/* ── sports page (light) ───────────────────────────────────────────────── */
.sports-shell {
  margin: 0 calc(var(--gutter) * -1); padding: 24px var(--gutter) 32px;
  background: var(--light-bg); color: var(--light-text);
  display: grid; grid-template-columns: minmax(0, 1fr) 302px; gap: 22px; align-items: start;
}
.sports-main { min-width: 0; }
.sp-tabs { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.sp-tabs-list { display: flex; gap: 4px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.sp-tabs-list::-webkit-scrollbar { display: none; }
.sp-tab { flex: none; white-space: nowrap; height: 32px; padding: 0 10px; border-radius: 10px; font-size: 14px; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; }
.sp-tab:hover { background: var(--light-glass); }
.sp-tab.active { background: #fff; font-weight: 600; }
.sp-tab .new { padding: 1px 6px; border-radius: 999px; background: var(--live); color: #fff; font-size: 9px; font-weight: 700; }
.sp-search { flex: none; margin-left: auto; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; }
.sp-search:hover { background: var(--light-glass); }

.stories { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin-bottom: 20px; padding: 2px; }
.stories::-webkit-scrollbar { display: none; }
.story { flex: none; width: 64px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; font-size: 11px; font-weight: 500; line-height: 1.2; }
.story .orb {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  font-size: 26px; box-shadow: 0 0 0 2px var(--light-bg);
}
.story.ring .orb { box-shadow: 0 0 0 2px var(--light-bg), 0 0 0 4px var(--accent); }

.sp-section { margin-bottom: 24px; scroll-margin-top: 16px; }
.sp-head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; height: 32px; }
.sp-head h2 { margin: 0; font-size: 18px; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }
.sp-head .h-ic { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; color: #fff; }
.sp-head .h-ic .i { width: 14px; height: 14px; }
.sp-head .tools { margin-left: auto; display: flex; gap: 4px; align-items: center; }
.btn-all { height: 32px; padding: 0 8px 0 12px; border-radius: 999px; background: var(--light-glass); font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; gap: 2px; }
.btn-all .i { width: 16px; height: 16px; }
.l-arrow { width: 32px; height: 32px; border-radius: 8px; background: var(--light-glass); display: grid; place-items: center; }
.l-arrow .i { width: 16px; height: 16px; }
.l-arrow[disabled] { opacity: .45; pointer-events: none; }

.match-row {
  display: grid; grid-auto-flow: column; grid-auto-columns: 328px; gap: 8px;
  overflow-x: auto; scrollbar-width: none; scroll-snap-type: x mandatory; scroll-behavior: smooth;
}
.match-row::-webkit-scrollbar { display: none; }
.match { scroll-snap-align: start; background: var(--light-card); border-radius: var(--r-lg); overflow: hidden; }
.match-head { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid #eef0f3; }
.lg-icons { display: flex; flex: none; }
.lg-icons span { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #f1f3f6; font-size: 12px; }
.lg-icons span + span { margin-left: -4px; box-shadow: 0 0 0 2px #fff; }
.lg-name { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lg-sport { font-size: 11px; color: var(--light-muted); }
.match-head > div { min-width: 0; }
.match-body { padding: 12px; }
.match-status { display: flex; gap: 6px; margin-bottom: 12px; }
.chip-s { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 7px; border-radius: 6px; background: var(--light-glass); font-size: 11px; font-weight: 600; }
.chip-s.live .i { width: 14px; height: 14px; color: var(--live); }
.chip-s .i { width: 13px; height: 13px; color: var(--light-muted); }
.team { display: flex; align-items: center; gap: 8px; height: 19px; font-size: 13px; font-weight: 600; }
.team + .team { margin-top: 2px; }
.t-ic { display: grid; place-items: center; width: 14px; height: 14px; border-radius: 50%; color: #fff; font-size: 7px; font-weight: 800; flex: none; }
.t-name { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-name .serve { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #00c853; margin-left: 6px; vertical-align: middle; }
.score { display: flex; gap: 8px; align-items: center; font-size: 11px; }
.score .sc-sub { color: var(--light-muted); font-weight: 500; letter-spacing: 5px; }
.score .sc-main { min-width: 16px; height: 16px; padding: 0 3px; border-radius: 4px; background: var(--light-glass); display: grid; place-items: center; font-weight: 600; }
.market { margin: 14px 0 6px; font-size: 11px; color: var(--light-muted); }
.odds { display: flex; gap: 4px; }
.odd {
  flex: 1; min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 4px;
  height: 36px; padding: 0 10px; border-radius: 4px; background: var(--light-glass);
  font-size: 11px; transition: background .15s, color .15s;
}
.odd:first-child { border-radius: 10px 4px 4px 10px; }
.odd span { color: var(--light-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.odd b { font-size: 13px; font-weight: 600; }
.odd:hover { background: var(--light-glass-2); }
.odd.sel { background: var(--accent); color: #fff; }
.odd.sel span { color: rgba(255,255,255,.75); }
.odd.more { flex: none; justify-content: center; padding: 0 6px; min-width: 40px; border-radius: 4px 10px 10px 4px; font-size: 13px; font-weight: 600; }
.odd.locked { pointer-events: none; justify-content: center; color: var(--light-muted); }
.odd.locked .i { width: 14px; height: 14px; }

.betslip {
  position: sticky; top: 16px; background: var(--light-card); border-radius: var(--r-xl); padding: 16px;
}
.bs-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.bs-head h3 { margin: 0; font-size: 15px; font-weight: 600; }
.bs-bal { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; }
.bs-bal .i { width: 16px; height: 16px; color: var(--light-muted); }
.bs-close { display: none; }
.bs-empty { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 8px 0 24px; }
.bs-empty .bs-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: #e3eeff; color: var(--accent); margin-bottom: 12px; }
.bs-empty p { margin: 0; font-size: 18px; font-weight: 600; line-height: 1.2; }
.bs-code { display: flex; gap: 8px; }
.bs-code input { flex: 1; min-width: 0; height: 44px; padding: 0 14px; border: 0; outline: 0; border-radius: var(--r); background: var(--light-glass); color: var(--light-text); }
.bs-code input::placeholder { color: var(--light-muted); }
.bs-code .btn { padding: 0 18px; }
/* betslip as on the reference: mode tabs, selection card, express bonus, amount + MAX */
.bs-modes { display: flex; gap: 8px; margin: 4px 0 12px; }
.bs-seg { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); padding: 3px; border-radius: 12px; background: var(--light-glass); }
.bs-seg button { height: 36px; border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--light-text); transition: background .15s, color .15s; }
.bs-seg button.on { background: var(--accent); color: #fff; }
.bs-trash { display: grid; place-items: center; width: 42px; border-radius: 12px; background: var(--light-glass); color: var(--light-muted); }
.bs-trash:hover { color: #e5374f; }
.bs-body { display: none; flex-direction: column; gap: 10px; }
.betslip.has-items .bs-empty { display: none; }
.betslip.has-items .bs-body { display: flex; }
.betslip.has-items .bs-code { display: none; }
.bs-card { border-radius: 14px; background: var(--light-glass); overflow: hidden; }
.bs-list { display: flex; flex-direction: column; max-height: min(52vh, 560px); overflow-y: auto; }
.bs-item { padding: 10px 12px; border-bottom: 1px solid rgba(0,0,0,.06); }
.bs-top { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 13px; color: var(--light-muted); }
.bs-live { display: inline-flex; align-items: center; gap: 4px; flex: none; font-weight: 700; color: #4a4d55; }
.bs-live .i { width: 14px; height: 14px; color: #ff2d55; }
.bs-sep { width: 1px; height: 14px; background: rgba(0,0,0,.15); flex: none; }
.bs-match { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bs-x { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; color: #4a4d55; flex: none; }
.bs-x:hover { background: rgba(0,0,0,.06); }
.bs-x .i { width: 14px; height: 14px; }
.bs-pick { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; font-size: 14px; font-weight: 700; color: var(--light-text); }
.bs-pill { flex: none; min-width: 52px; padding: 3px 8px; border-radius: 7px; background: var(--accent); color: #fff; font-size: 14px; font-weight: 700; text-align: center; }
.bs-item.moved .bs-pill { background: #d98b00; }
.bs-final { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; font-size: 14px; font-weight: 600; color: var(--light-text); }
.bs-final[hidden] { display: none; }
.bs-series { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 4px; font-size: 14px; font-weight: 600; }
.bs-series[hidden] { display: none; }
.bs-series select { height: 36px; padding: 0 10px; border: 0; border-radius: 10px; background: var(--light-glass); font: inherit; color: var(--light-text); }
.bs-bonus { border-radius: 14px; background: #e3f6ea; box-shadow: inset 0 0 0 2px #e3f6ea; overflow: hidden; }
.bs-bonus[hidden] { display: none; }
.bs-bonus-box { padding: 10px 12px 8px; border-radius: 12px; background: #fff; }
.bs-bonus-box p { margin: 0 0 10px; font-size: 13px; line-height: 1.35; color: #4a4d55; }
.bs-bonus-bar { display: flex; gap: 2px; height: 8px; }
.bs-bonus-bar i { flex: 1; border-radius: 2px; background: #eceef2; }
.bs-bonus-bar i.on { background: #28c3c3; }
.bs-bonus-bar i:first-child { border-radius: 4px 2px 2px 4px; }
.bs-bonus-bar i:last-child { border-radius: 2px 4px 4px 2px; }
.bs-bonus-ticks { position: relative; height: 16px; margin-top: 4px; font-size: 10px; font-weight: 600; letter-spacing: -.2px; color: #4a4d55; }
.bs-bonus-ticks span { position: absolute; transform: translateX(-100%); white-space: nowrap; }
.bs-bonus-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; font-size: 13px; font-weight: 700; color: var(--light-text); }
.bs-bonus-row em { font-style: normal; color: #00a54a; }
.bs-q { display: inline-grid; place-items: center; width: 16px; height: 16px; margin-left: 4px; border-radius: 50%; background: #8a8f99; color: #fff; font-size: 11px; font-style: normal; cursor: help; }
.bs-row { display: flex; justify-content: space-between; gap: 8px; padding: 0 2px; font-size: 13px; color: var(--light-muted); }
.bs-row[hidden] { display: none; }
.bs-row b { color: var(--light-text); }
.bs-amount { display: flex; align-items: center; height: 48px; padding: 0 16px; border-radius: 12px; background: var(--light-glass); }
.bs-amount input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: 15px; font-weight: 600; color: var(--light-text); }
.bs-amount input::placeholder { color: var(--light-muted); font-weight: 500; }
.bs-amount button { font-weight: 700; color: var(--accent); }
.bs-win { color: #00a54a !important; }
.bs-actions { display: flex; gap: 8px; }
.bs-share { display: grid; place-items: center; width: 52px; height: 52px; flex: none; border-radius: 12px; background: var(--light-glass); color: #4a4d55; }
.bs-share:hover { background: #e4e6eb; }
.bs-actions .btn { flex: 1; height: 52px; border-radius: 12px; font-size: 15px; }

.bs-fab {
  position: fixed; left: 50%; bottom: 24px; z-index: 40; transform: translateX(-50%);
  display: none; align-items: center; gap: 8px; height: 40px; padding: 0 10px 0 8px;
  border-radius: 12px; background: var(--accent); color: #fff; box-shadow: 0 8px 24px rgba(0,117,255,.35);
}
.bs-fab .count { display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 6px; background: #fff; color: var(--accent); font-weight: 700; font-size: 12px; }
.bs-fab .i { width: 18px; height: 18px; }

/* ── placeholder page ──────────────────────────────────────────────────── */
.ph { display: grid; place-items: center; text-align: center; min-height: 52vh; padding: 40px 0; }
.ph-card { max-width: 460px; }
.ph-ic { display: inline-grid; place-items: center; width: 72px; height: 72px; border-radius: 22px; background: var(--glass); margin-bottom: 20px; }
.ph-ic .i { width: 34px; height: 34px; color: var(--accent); }
.ph h1 { margin: 0 0 8px; font-size: 28px; letter-spacing: -.5px; }
.ph p { margin: 0 0 24px; color: var(--muted); font-size: 15px; }

/* ── footer ────────────────────────────────────────────────────────────── */
.footer { padding: 32px var(--gutter) 40px; }
.f-top { display: flex; align-items: center; gap: 16px; margin-bottom: 32px; }
.f-top .logo { font-size: 28px; }
.f-top .line { flex: 1; height: 1px; background: var(--line); }
.f-top .lang-btn { margin: 0; height: 36px; padding: 0 10px; }
.f-top .icon-btn { width: 36px; height: 36px; border-radius: 8px; }
.f-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 32px; }
.f-card { position: relative; display: flex; flex-direction: column; padding: 16px; border-radius: var(--r-lg); background: var(--card); min-height: 150px; }
.f-card h4 { margin: 0; max-width: 62%; font-size: 15px; font-weight: 600; line-height: 1.35; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.f-card h4 .pill-w { padding: 1px 6px; border-radius: 6px; background: #fff; color: #141415; font-size: 10px; font-weight: 700; }
.f-card p { margin: 6px 0 0; max-width: 62%; font-size: 11px; color: var(--muted); }
.f-card .f-ic { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: linear-gradient(160deg, #8fb3e6, #3d6cb3); color: #fff; font-weight: 800; font-style: italic; font-size: 11px; overflow: hidden; }
.f-card .f-ic img { width: 100%; height: 100%; object-fit: cover; }
.f-card .f-ic .i { width: 22px; height: 22px; }
.f-card .f-ic-brand { background: none; }
.f-card .btn { margin-top: auto; height: 36px; border-radius: 8px; }
.f-links { display: grid; grid-template-columns: auto auto 1fr minmax(0, 544px); gap: 36px; margin-bottom: 32px; }
.f-col h5 { margin: 0 0 18px; font-size: 18px; font-weight: 600; }
.f-col ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.f-col.two ul { grid-template-columns: auto auto; column-gap: 32px; }
.f-col a { color: var(--muted); font-size: 13px; }
.f-col a:hover { color: var(--text); }
.f-partner { grid-column: 4; border-radius: var(--r-lg); background: var(--card); padding: 4px 16px; align-self: start; }
.f-partner .row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; }
.f-partner .row + .row { border-top: 1px solid var(--line); }
.f-partner span { display: block; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.f-partner b { font-size: 13px; font-weight: 500; }
.f-partner .i { color: var(--muted); width: 18px; height: 18px; }
.f-social { display: flex; align-items: center; gap: 8px; padding-top: 24px; border-top: 1px solid var(--line); margin-bottom: 24px; }
.f-social .icon-btn, .f-social .brand-btn { width: 32px; height: 32px; border-radius: 8px; }
.f-social .icon-btn .i { width: 18px; height: 18px; }
.license { margin-left: auto; display: flex; align-items: center; gap: 8px; height: 52px; padding: 0 12px 0 6px; border-radius: 4px; background: #fff; color: #141415; font-size: 10px; line-height: 1.2; }
.license .qr { width: 40px; height: 40px; background:
  conic-gradient(#141415 25%, #fff 0 50%, #141415 0 75%, #fff 0) 0 0 / 10px 10px; border: 3px solid #141415; }
.license b { display: block; font-size: 13px; color: #0b8a3e; letter-spacing: .5px; }
.f-bottom { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 11px; }
.f-bottom .age { font-size: 20px; font-weight: 600; color: var(--muted-2); }

/* ── modals ────────────────────────────────────────────────────────────── */
.modal {
  position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center;
  padding: 16px; background: rgba(0,0,0,.6); backdrop-filter: blur(2px);
}
.modal.open { display: flex; animation: fade .15s ease; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal-box {
  position: relative; width: 100%; max-width: 390px; max-height: calc(100vh - 32px); overflow-y: auto;
  padding: 20px; border-radius: 24px; background: #fff; color: var(--light-text);
  animation: pop .18s cubic-bezier(.2,.8,.3,1.2);
}
@keyframes pop { from { transform: scale(.96); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-box h2 { margin: 0 0 16px; font-size: 24px; font-weight: 700; letter-spacing: -.4px; }
.modal-x { position: absolute; top: 20px; right: 18px; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; color: #6b6f78; }
.modal-x:hover { background: var(--light-glass); }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; padding: 2px; border-radius: 14px; background: rgba(169, 172, 180, .12); margin-bottom: 12px; }
.seg button { height: 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 600; font-size: 14px; color: var(--light-text); }
.seg button .i { width: 18px; height: 18px; }
.seg button.on { background: var(--accent); color: #fff; }
.field {
  display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px; margin-bottom: 12px;
  border-radius: 12px; background: #eff1f4; border: 1px solid transparent; transition: border-color .15s, background .15s;
}
.field:focus-within { border-color: #5aa0ff; background: #fff; }
.field .i { width: 16px; height: 16px; color: #8a8f99; }
.field input, .field select { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; color: var(--light-text); font-size: 15px; }
.field select { appearance: none; cursor: pointer; }
.field input::placeholder { color: #8a8f99; }
.field .sep { width: 1px; height: 18px; background: #d8dbe1; }
.field .cc { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; }
.field .cc .i { width: 14px; height: 14px; }
.field .prefix { font-size: 13px; color: var(--light-text); }
.field .cur-ic { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: #1a3fa8; color: #fff; font-size: 7px; font-weight: 700; }
.field .eye { color: #8a8f99; display: grid; }
.hint { margin: -4px 0 10px; font-size: 10px; color: var(--light-muted); }
.link-blue { color: var(--accent); font-weight: 600; font-size: 12px; }
.row-end { display: flex; justify-content: flex-end; margin: -2px 0 12px; }
.promo-toggle { display: inline-block; margin-bottom: 12px; }
.promo-field { display: none; }
.promo-field.show { display: flex; }
.check { display: flex; align-items: flex-start; gap: 8px; margin: 2px 0 12px; font-size: 10px; color: var(--light-muted); line-height: 1.5; cursor: pointer; }
.check input { appearance: none; flex: none; width: 16px; height: 16px; border-radius: 4px; background: var(--accent); display: grid; place-items: center; cursor: pointer; margin: 0; }
.check input:not(:checked) { background: #fff; box-shadow: inset 0 0 0 1.5px #c4c8d0; }
.check input:checked::after { content: ""; width: 9px; height: 5px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.check a { color: var(--accent); font-weight: 600; }
.modal-box .btn { height: 44px; border-radius: 12px; font-size: 14px; }
.or { position: relative; margin: 12px 0; text-align: center; font-size: 12px; color: var(--light-muted); }
.or::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: #e6e8ec; }
.or span { position: relative; padding: 0 10px; background: #fff; }
.socials { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; margin-bottom: 20px; }
.socials button { width: 44px; height: 44px; border-radius: 12px; color: #141415; --brand-tile: rgba(169, 172, 180, .12); }
.socials button:hover { --brand-tile: rgba(169, 172, 180, .24); }
.switch-line { text-align: center; font-size: 12px; color: #4b4f57; line-height: 1.6; }
.switch-line button { color: var(--accent); font-weight: 600; }

/* language menu */
.lang-menu {
  position: fixed; z-index: 110; display: none; min-width: 168px; padding: 6px;
  border-radius: 12px; background: #26262a; box-shadow: 0 12px 32px rgba(0,0,0,.45);
}
.lang-menu.open { display: block; }
.lang-menu button { display: flex; align-items: center; gap: 10px; width: 100%; height: 36px; padding: 0 10px; border-radius: 8px; font-size: 13px; }
.lang-menu button:hover, .lang-menu button.on { background: var(--glass); }

/* ── bottom tab bar (tablet / phone) ───────────────────────────────────── */
.bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: none;
  height: calc(60px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  background: rgba(26, 26, 28, .98); border-top: 1px solid var(--line);
}
.bottom-nav a, .bottom-nav button {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  font-size: 11px; font-weight: 500; color: rgba(240,242,245,.6);
}
.bottom-nav .i { width: 24px; height: 24px; }
.bottom-nav .active { color: var(--accent); }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1599px) { :root { --gutter: 32px; } }

/* tablet landscape: mini sidebar, icon-only header tabs */
@media (max-width: 1279px) and (min-width: 1024px) {
  :root { --cols: 7; }
  .tab { padding: 8px 12px; }
  .tab .tab-label { display: none; }
  .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 236px); }
  .hero-slider { aspect-ratio: auto; min-height: 220px; }
  .hero-side { grid-template-rows: none; grid-template-columns: 1fr 1fr; gap: 8px; }
  .promo-card { padding: 12px; }
  .promo-card p { max-width: none; }
  .promo-card .promo-art { right: 50%; transform: translateX(50%); bottom: -4%; font-size: 72px; }
  .casino-hero, .searchbar { grid-template-columns: minmax(0, 1fr) minmax(0, 300px); }
  .sports-shell { grid-template-columns: minmax(0, 1fr); }
  .betslip-col { display: none; }
  .bs-fab { display: inline-flex; }
}

/* tablet portrait & phone: drawer sidebar + bottom tab bar */
@media (max-width: 1023px) {
  :root { --sb-w: 0px; --gutter: 16px; --cols: 7; --gap: 4px; }
  .sb-mini { --sb-w: 0px; }
  body { padding-bottom: calc(60px + env(safe-area-inset-bottom)); }
  .sidebar { width: 300px; transform: translateX(-100%); background: #1f1f22; }
  /* the drawer always shows the full sidebar, even if collapsed on desktop */
  .sb-mini .sidebar .sb-label, .sb-mini .sidebar .chev,
  .sb-mini .sidebar .app-text, .sb-mini .sidebar .lang-btn .lang-code, .sb-mini .sidebar .lang-btn .i,
  .sb-mini .sidebar .pill-blue { display: revert; }
  .sb-mini .sidebar .sb-toggle { display: grid; }
  .sb-mini .sb-parent .sb-link { justify-content: flex-start; padding: 0 0 0 8px; }
  .sb-mini .sidebar .sb-group.open .sb-sub { display: flex; }
  .sb-mini .sb-top, .sb-mini .sb-scroll, .sb-mini .sb-bottom { padding-left: 16px; padding-right: 16px; }
  .sb-mini .sb-login { justify-content: flex-start; padding: 0 10px 0 8px; background: var(--glass); }
  .sb-mini .sb-item { justify-content: flex-start; padding: 0 8px; height: 36px; }
  .sb-mini .sb-item .badge { position: static; min-width: 22px; height: 18px; font-size: 11px; }
  .sb-mini .app-card { justify-content: flex-start; padding: 10px 12px; background: var(--glass); }
  .sb-mini .sb-social { flex-wrap: nowrap; justify-content: flex-start; gap: 6px; width: auto; margin: 0 0 12px; }
  .sb-mini .sb-social .icon-btn, .sb-mini .sb-social .brand-btn { width: 32px; height: 32px; }
  .sb-mini .sb-social .icon-btn .i { width: 18px; height: 18px; }
  .sb-mini .lang-btn { margin: 0 0 0 auto; width: auto; justify-content: flex-start; }
  .sb-mini .sb-support { justify-content: flex-start; }

  .sb-open .sidebar { transform: none; box-shadow: 0 0 40px rgba(0,0,0,.5); }
  .sb-collapse { display: none; }
  .sb-backdrop { position: fixed; inset: 0; z-index: 55; background: rgba(0,0,0,.6); }
  .sb-open .sb-backdrop { display: block; }
  .sb-close {
    position: fixed; top: 14px; left: 312px; z-index: 61; width: 36px; height: 36px; border-radius: 50%;
    background: rgba(60,60,64,.9); color: #fff; place-items: center;
  }
  .sb-open .sb-close { display: grid; }

  .topbar { height: 60px; gap: 12px; }
  .topbar .tabs { display: none; }
  .topbar-actions { gap: 8px; }
  .topbar .btn { height: 36px; padding: 0 14px; border-radius: 10px; }
  .logo { font-size: 26px; }
  .bottom-nav { display: flex; }

  .hero { grid-template-columns: 1fr; margin-bottom: 24px; }
  .hero-side { display: none; }
  .hero-slider { aspect-ratio: 395 / 190; }
  .hero-cta { display: none; }
  .hero-dots { display: flex; }
  .hero-copy { left: 6%; max-width: 52%; bottom: 10%; }
  .hero-title { font-size: clamp(30px, 9vw, 92px); }

  .section-head { margin-bottom: 10px; }
  .section-title { font-size: 18px; gap: 10px; }
  .section-title .s-ic { width: 24px; height: 24px; }
  .games-section { margin-bottom: 22px; }

  .subtabs-wrap { display: flex; justify-content: center; }
  .casino-hero { grid-template-columns: 1fr; }
  .casino-hero .gotw { display: none; }
  .casino-hero .hero-copy { max-width: 60%; }
  .searchbar { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
  .chip { height: 36px; }
  .chips-next { width: 36px; height: 36px; }

  .sports-shell { grid-template-columns: minmax(0, 1fr); padding-top: 16px; }
  .betslip-col { display: none; }
  .bs-fab { display: inline-flex; bottom: calc(76px + env(safe-area-inset-bottom)); }
  .match-row { grid-auto-columns: min(300px, 82vw); }

  .footer { padding-bottom: 32px; }
  .f-cards { grid-template-columns: 1fr; }
  .f-links { grid-template-columns: auto auto; gap: 28px; }
  .f-partner { grid-column: 1 / -1; }
  .f-social { flex-wrap: wrap; }
  .license { margin-left: 0; }
}

@media (max-width: 767px) { :root { --cols: 5; } }
@media (max-width: 599px) {
  :root { --cols: 3; }
  .topbar .btn { font-size: 13px; padding: 0 12px; }
  .hero-title { font-size: clamp(30px, 11vw, 52px); }
  .casino-hero .hero-title { font-size: 18px; }
  .sp-tab { padding: 0 8px; font-size: 13px; }
  .f-links { grid-template-columns: 1fr; }
  .f-col.two ul { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 359px) { .topbar .btn-glass { display: none; } }

/* betslip as a bottom sheet below 1280px */
@media (max-width: 1279px) {
  .betslip-col.sheet-open {
    display: block; position: fixed; inset: auto 0 0 0; z-index: 90;
    max-height: 85vh; overflow-y: auto; animation: sheet .2s ease;
  }
  .betslip-col.sheet-open .betslip { position: static; border-radius: 20px 20px 0 0; padding-bottom: calc(20px + env(safe-area-inset-bottom)); }
  .betslip-col.sheet-open .bs-close { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--light-glass); margin-left: 8px; }
  .sheet-backdrop { position: fixed; inset: 0; z-index: 85; background: rgba(0,0,0,.5); display: none; }
  .sheet-backdrop.show { display: block; }
}
@keyframes sheet { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }

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

/* ── signed-in states, toasts, live prices ─────────────────────────────── */
.bal-pill {
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px;
  border-radius: var(--r); background: var(--glass); font-weight: 600; white-space: nowrap;
}
.bal-pill:hover { background: var(--glass-2); }
.bal-pill .i { width: 18px; height: 18px; color: var(--muted); }
.bal-pill .cur { color: var(--muted); font-size: 12px; }
.me-btn .avatar, .avatar-me {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--accent); color: #fff; font-size: 14px; font-weight: 700;
}
.avatar-me { width: 40px; height: 40px; }
.sb-login .sb-label small { display: block; font-size: 12px; font-weight: 500; color: var(--muted); }

.site-toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 120; transform: translate(-50%, 20px);
  max-width: calc(100vw - 32px); padding: 12px 18px; border-radius: var(--r); background: #2a2b30;
  color: var(--text); font-size: 14px; font-weight: 600; box-shadow: 0 12px 32px rgba(0,0,0,.4);
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
}
.site-toast.show { opacity: 1; transform: translate(-50%, 0); }
.site-toast.bad { background: #5a1f27; }

.form-error { min-height: 0; margin: 0 0 10px; color: #e5374f; font-size: 12px; font-weight: 600; }
.form-error:empty { display: none; }
.form-msg { margin: 0; font-size: 13px; font-weight: 600; }
.form-msg:empty { display: none; }
.form-msg.ok { color: #00a54a; }
.form-msg.bad { color: #e5374f; }
.form-msg.demo { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; background: #fff4e0; color: #8a5300; font-weight: 600; line-height: 1.4; }
.form-msg.demo::before { content: "DEMO"; flex: none; padding: 1px 6px; border-radius: 5px; background: #f59e0b; color: #fff; font-size: 10px; font-weight: 800; letter-spacing: .4px; margin-top: 1px; }
.form-msg.warn { color: #d98b00; }
.modal-sub { margin: -8px 0 14px; font-size: 13px; color: var(--light-muted); }
.pay-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.pay-opt { display: grid; grid-template-columns: auto 1fr; column-gap: 8px; align-items: center; padding: 10px; border-radius: 12px; background: #eff1f4; text-align: left; border: 1.5px solid transparent; }
.pay-opt .pay-ic { font-size: 20px; }
.pay-opt .pay-ic img { display: block; height: 22px; width: auto; max-width: 56px; object-fit: contain; border-radius: 4px; }
.pay-opt b { font-size: 13px; }
.pay-opt.on { border-color: var(--accent); background: #e8f1ff; }
.amount-chips { display: flex; gap: 6px; margin: -4px 0 12px; }
.amount-chips button { flex: 1; height: 30px; border-radius: 8px; background: var(--light-glass); font-size: 12px; font-weight: 600; color: var(--light-text); }

/* whole card opens the match page; buttons stay clickable above the link */
.match { position: relative; }
.match-link { position: absolute; inset: 0; z-index: 0; }
.match-head, .match-body { position: relative; pointer-events: none; }
.match .odd, .match .chip-s { pointer-events: auto; position: relative; z-index: 1; }
.odd.up b { color: #00a54a; }
.odd.down b { color: #e5374f; }
.odd.up::after, .odd.down::after { content: ""; position: absolute; right: 3px; top: 3px; border: 4px solid transparent; }
.odd.up::after { border-bottom-color: #00a54a; top: 0; }
.odd.down::after { border-top-color: #e5374f; top: 6px; }
.odd { position: relative; }
.row-empty { margin: 0; padding: 24px; color: var(--muted); font-size: 13px; }

.bs-accept { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--light-muted); cursor: pointer; }
.bs-accept input { accent-color: var(--accent); }
.bs-msg { margin: 0; font-size: 12.5px; font-weight: 600; color: var(--light-muted); }
.bs-msg:empty { display: none; }
.bs-msg.ok { color: #00a54a; }
.bs-msg.bad { color: #e5374f; }
.bs-item.moved .bs-pick b { color: #d98b00; }

@media (max-width: 1023px) {
  .bal-pill { height: 36px; padding: 0 10px; border-radius: 10px; }
  .bal-pill .cur, .bal-pill .i { display: none; }
  .me-btn .avatar { width: 36px; height: 36px; font-size: 12px; }
}
@media (max-width: 420px) { .logged-in .topbar .btn-green { display: none; } }

/* ── casino catalogue (API games) ──────────────────────────────────────── */
.pv-count { display: inline-grid; place-items: center; min-width: 22px; height: 20px; padding: 0 6px; border-radius: 6px; background: var(--glass-2); font-size: 11px; }
.pv-panel { display: none; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 6px; margin: -2px 0 20px; }
.pv-panel.open { display: grid; }
.pv-chip { position: relative; display: grid; place-items: center; height: 56px; padding: 6px 10px; border-radius: var(--r); background: var(--glass); transition: background .15s; }
.pv-chip:hover { background: var(--glass-2); }
.pv-chip.active { background: var(--accent); }
.pv-chip img { max-width: 100%; max-height: 30px; object-fit: contain; }
.pv-chip .pv-name { font-size: 12px; font-weight: 700; text-align: center; line-height: 1.15; }
.pv-chip small { position: absolute; top: 4px; right: 6px; font-size: 10px; color: var(--muted); }
.games-grid { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: 12px var(--gap); }
.grid-title { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 20px; font-weight: 600; }
.grid-title small { font-size: 13px; font-weight: 500; color: var(--muted); }
.grid-back { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--glass); }
.grid-more { display: flex; justify-content: center; margin-top: 20px; }
.gp-full { width: 100%; margin: 8px 0; }

/* ── sports: categories, filtered grid, market tabs ────────────────────── */
.story { position: relative; }
.story .orb { position: relative; }
.orb-n { position: absolute; right: -4px; top: -4px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: #fff; color: var(--light-text); font: 700 10px/18px var(--font); font-style: normal; text-align: center; box-shadow: 0 0 0 2px var(--light-bg); }
.match-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 8px; }
.sp-count { margin-left: 6px; font-size: 13px; font-weight: 500; color: var(--light-muted); }
.grid-back.light { display: inline-grid; place-items: center; width: 30px; height: 30px; margin-right: 8px; border-radius: 9px; background: var(--light-glass); color: var(--light-text); vertical-align: middle; }
.mk-tabs { display: flex; gap: 6px; margin-bottom: 10px; overflow-x: auto; scrollbar-width: none; }
.mk-tabs::-webkit-scrollbar { display: none; }
.mk-tab { flex: none; height: 34px; padding: 0 14px; border-radius: 10px; background: var(--light-card); color: var(--light-text); font-size: 13px; font-weight: 600; }
.mk-tab i { margin-left: 4px; font-style: normal; color: var(--light-muted); }
.mk-tab.on { background: var(--accent); color: #fff; }
.mk-tab.on i { color: rgba(255,255,255,.75); }
@media (max-width: 599px) { .match-grid { grid-template-columns: 1fr; } }

/* ── flags, sport icons, crests (downloaded assets) ────────────────────── */
.lg-icons span { overflow: hidden; color: #2b2d33; }
.lg-icons .i { width: 12px; height: 12px; }
.lg-icons .lg-hot { background: #fff1e6; color: #f05a0e; }
.lg-flag { width: 100%; height: 100%; object-fit: cover; }
.lg-badge { background: #fff !important; }
.lg-badge img { width: 15px; height: 15px; object-fit: contain; }
.t-logo { width: 16px; height: 16px; flex: none; object-fit: contain; }
.story .orb .i { width: 26px; height: 26px; color: #fff; filter: drop-shadow(0 1px 2px rgba(0,0,0,.25)); }
.story .orb.orb-img { background: #fff !important; overflow: visible; }
.story .orb.orb-img img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.story .orb.orb-img img[src*="/leagues/"] { width: 72%; height: 72%; margin: auto; border-radius: 0; object-fit: contain; }
.ev-league .flag-img { width: 16px; height: 16px; }
.ev-badge { width: 22px; height: 22px; object-fit: contain; }
.ev-sport { width: 16px; height: 16px; color: var(--light-muted); }
.ev-crest { width: 56px; height: 56px; object-fit: contain; }
@media (max-width: 599px) { .ev-crest { width: 44px; height: 44px; } }

/* ── loading: shimmer on covers and skeleton cards while a category loads ── */
@keyframes nb-shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.skel, .game-cover.loading { position: relative; overflow: hidden; background: #1c1d22 !important; }
.skel::before, .game-cover.loading::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(100deg, transparent 20%, rgba(255,255,255,.08) 50%, transparent 80%);
  animation: nb-shimmer 1.3s ease-in-out infinite;
}
.game-cover.loading > img { opacity: 0; }
.skel-title { width: 180px; height: 22px; border-radius: 8px; margin: 4px 0 14px; }
.match.skel-match { display: flex; flex-direction: column; gap: 12px; min-height: 200px; padding: 16px; }
.skel-match i { display: block; height: 14px; border-radius: 6px; }
.skel-match i:nth-child(1) { width: 55%; }
.skel-match i:nth-child(2) { width: 38%; height: 12px; }
.skel-match i:nth-child(3) { width: 72%; height: 16px; }
.skel-match i:nth-child(4) { height: 40px; margin-top: auto; border-radius: 10px; }
.sports-shell .skel { background: #e9ebf0 !important; }
.sports-shell .skel::before { background: linear-gradient(100deg, transparent 20%, rgba(255,255,255,.75) 50%, transparent 80%); }
.grid-more .is-loading { opacity: .6; pointer-events: none; }

/* the chosen category's icon pops (chips) and its circle bounces (sports) */
.chip .i { transition: color .15s ease-in-out; }
.chip.active .i { animation: chip-pop .55s cubic-bezier(.28, 1.6, .5, 1) both; }
@keyframes chip-pop { 0% { transform: scale(.55) rotate(-14deg); } 55% { transform: scale(1.18) rotate(6deg); } 100% { transform: none; } }
.story.ring .orb { animation: orb-pop .5s cubic-bezier(.28, 1.6, .5, 1) both; }
@keyframes orb-pop { 0% { transform: scale(.86); } 60% { transform: scale(1.06); } 100% { transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .chip.active .i, .story.ring .orb, .skel::before, .game-cover.loading::before { animation: none; }
}

/* ── sports list view (Live, Upcoming, TOP Bets, Esports, a sport) ─────── */
.sp-tiles-wrap { position: relative; display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.sp-tiles, .lg-tabs { display: flex; gap: 8px; overflow-x: auto; scroll-behavior: smooth; scrollbar-width: none; flex: 1; min-width: 0; }
.sp-tiles::-webkit-scrollbar, .lg-tabs::-webkit-scrollbar { display: none; }
.sp-tile {
  position: relative; flex: none; width: 130px; height: 94px; padding: 12px 14px; border-radius: 16px; overflow: hidden;
  background: var(--light-card); color: var(--light-text); transition: background .15s, color .15s;
}
.sp-tile b { display: block; font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.sp-tile small { position: absolute; left: 14px; bottom: 14px; font-size: 13px; color: var(--light-muted); }
.sp-tile img { position: absolute; right: -6px; bottom: -6px; width: 56px; height: 56px; object-fit: contain; transition: transform .25s ease; }
.sp-tile:hover img { transform: rotate(-12deg) scale(1.06); }
.sp-tile.active { background: var(--accent); color: #fff; }
.sp-tile.active small { color: rgba(255,255,255,.8); }
.sp-tile.active img { animation: orb-pop .5s cubic-bezier(.28, 1.6, .5, 1) both; }
.sp-next { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 10px; background: var(--light-card); color: var(--light-text); }
.sp-filter { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.sp-pick { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 16px; border-radius: 12px; background: var(--light-glass); color: var(--light-text); font-size: 15px; font-weight: 600; }
.sp-pick .i { width: 18px; height: 18px; color: #6b6f78; }
.sp-pick .flag-img { width: 20px; height: 20px; }
.sp-pick .sp-edit { width: 16px; height: 16px; }
.sp-clock-wrap { position: relative; }
.sp-clock { display: grid; place-items: center; width: 44px; height: 40px; border-radius: 12px; background: var(--light-glass); color: var(--light-text); }
.sp-clock.on { background: var(--accent); color: #fff; }
.sp-clock-pop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; display: flex; gap: 4px; padding: 6px; border-radius: 12px; background: #fff; box-shadow: 0 12px 30px rgba(0,0,0,.15); }
.sp-clock-pop[hidden] { display: none; }
.sp-clock-pop a { padding: 6px 10px; border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--light-text); white-space: nowrap; }
.sp-clock-pop a:hover { background: var(--light-glass); }
.sp-clock-pop a.on { background: var(--accent); color: #fff; }
.lg-tab { display: inline-flex; align-items: center; gap: 8px; flex: none; height: 44px; padding: 0 18px; border-radius: 12px; background: var(--light-glass); color: var(--light-text); font-size: 15px; font-weight: 600; white-space: nowrap; transition: background .15s, color .15s; }
.lg-tab img { width: 22px; height: 22px; object-fit: contain; }
.lg-tab .lg-tab-flag { width: 18px; height: 18px; border-radius: 50%; object-fit: cover; }
.lg-tab.active { background: var(--accent); color: #fff; }
.lg-tab.active img:not(.lg-tab-flag) { background: #fff; border-radius: 50%; padding: 2px; }

/* collapsible leagues */
.lg-group { margin-bottom: 8px; border-radius: 16px; background: var(--light-card); overflow: hidden; }
.lg-group summary { display: flex; align-items: center; gap: 12px; padding: 12px 16px; cursor: pointer; list-style: none; }
.lg-group summary::-webkit-details-marker { display: none; }
.lg-ics { display: flex; flex: none; }
.lg-ic-flag { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px #fff; }
.lg-ic-logo { width: 26px; height: 26px; margin-left: -6px; border-radius: 50%; background: #fff; object-fit: contain; box-shadow: 0 0 0 2px #fff; }
.lg-ic-sport { display: grid; place-items: center; width: 26px; height: 26px; margin-left: -6px; border-radius: 50%; background: #f1f3f6; box-shadow: 0 0 0 2px #fff; }
.lg-ic-sport .i { width: 15px; height: 15px; }
.lg-ics img:first-child, .lg-ics span:first-child { margin-left: 0; }
.lg-title { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.lg-title b { font-size: 15px; font-weight: 600; }
.lg-title small { font-size: 13px; color: var(--light-muted); }
.lg-chev { width: 18px; height: 18px; color: #6b6f78; transition: transform .2s; }
.lg-group[open] .lg-chev { transform: rotate(180deg); }
.ev-rows { display: flex; flex-direction: column; }
.lg-group .ev-row { border-top: 1px solid #eef0f3; }

/* a match on one line: time, teams | market, odds */
.ev-row { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.75fr); gap: 16px; padding: 12px 14px; background: var(--light-card); }
.ev-row .match-link { position: absolute; inset: 0; z-index: 0; }
.evr-info, .evr-bets { position: relative; z-index: 1; pointer-events: none; }
.evr-info .team, .evr-info .match-status { pointer-events: none; }
.evr-bets .odds, .evr-info .chip-s { pointer-events: auto; }
.evr-info { display: flex; flex-direction: column; gap: 6px; padding-right: 16px; border-right: 1px solid #eef0f3; }
.evr-info .match-status { margin-bottom: 2px; }
.evr-hot { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #fff1e6; color: #f05a0e; flex: none; }
.evr-hot .i { width: 15px; height: 15px; }
.evr-info .team { font-size: 15px; font-weight: 500; }
.evr-info .t-logo, .evr-info .t-ic { width: 18px; height: 18px; font-size: 8px; }
.evr-bets { display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.evr-market { text-align: center; font-size: 13px; color: var(--light-muted); }
.evr-bets .odds { display: flex; gap: 6px; }
.evr-bets .odd { flex: 1; height: 42px; }
.evr-bets .odd.more { flex: 0 0 auto; min-width: 46px; }
.ev-cards { gap: 10px; }
.ev-cards .ev-row { border-radius: 16px; }
.skel-row { min-height: 108px; display: flex; flex-direction: column; gap: 10px; }
.skel-row i { display: block; height: 14px; border-radius: 6px; }
.skel-row i:nth-child(1) { width: 30%; }
.skel-row i:nth-child(2) { width: 22%; }
.skel-row i:nth-child(3) { width: 26%; }
.skel-row i:nth-child(4) { height: 40px; width: 55%; margin-left: auto; border-radius: 10px; }
.sp-golive { display: flex; align-items: center; justify-content: center; gap: 8px; height: 52px; margin-top: 12px; border-radius: 14px; background: #d9dce2; color: var(--light-text); font-weight: 600; }
.sp-golive .i { color: #ff2d55; }

/* "Choose a tournament" */
.modal-box.tp { max-width: 330px; padding: 16px 12px 12px; }
.tp-head { position: relative; display: flex; align-items: center; justify-content: center; height: 32px; margin-bottom: 12px; }
.tp-head h2 { margin: 0; font-size: 18px; }
.tp-head .modal-x { top: 2px; right: 2px; }
.tp-back { position: absolute; left: 2px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; color: #6b6f78; }
.tp-back[hidden] { display: none; }
.tp-hours { display: flex; gap: 6px; margin-bottom: 10px; overflow-x: auto; scrollbar-width: none; }
.tp-hour { flex: none; min-width: 40px; height: 32px; padding: 0 12px; border-radius: 16px; background: var(--light-glass); display: grid; place-items: center; font-size: 13px; font-weight: 600; }
.tp-hour.on { background: var(--accent); color: #fff; }
.tp-list { max-height: min(62vh, 520px); overflow-y: auto; }
.tp-screen { display: flex; flex-direction: column; gap: 2px; }
.tp-screen[hidden] { display: none; }
.tp-row { display: flex; align-items: center; gap: 10px; width: 100%; height: 40px; padding: 0 10px; border-radius: 10px; background: #f3f4f7; text-align: left; font-size: 14px; color: var(--light-text); }
.tp-row:hover { background: #eaecf0; }
.tp-row img { width: 22px; height: 22px; object-fit: contain; flex: none; }
.tp-row .tp-flag { border-radius: 50%; object-fit: cover; width: 20px; height: 20px; }
.tp-row b { flex: 1; min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tp-row small { color: var(--light-muted); font-size: 13px; }
.tp-row > .i { width: 14px; height: 14px; color: #8a8f99; flex: none; }
.tp-row .tp-globe { width: 20px; height: 20px; color: #5b8cff; }
.tp-row.tp-top { background: var(--accent); color: #fff; margin-bottom: 4px; }
.tp-row.tp-top > .i { color: #fff; }

/* profile */
.modal-box.pf { max-width: 440px; background: #fff; }
.pf-who { display: flex; flex-direction: column; align-items: center; gap: 4px; margin: 4px 0 16px; }
.pf-who b { font-size: 26px; font-weight: 700; letter-spacing: -.3px; }
.pf-id { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: #4a4d55; }
.pf-id .i { width: 14px; height: 14px; }
.pf-card { margin-bottom: 12px; border-radius: 16px; background: #eceef2; overflow: hidden; }
.pf-account { padding: 14px 16px 16px; }
.pf-account small { font-size: 13px; color: #4a4d55; }
.pf-account > b { display: block; margin: 2px 0 12px; font-size: 26px; font-weight: 700; }
.pf-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pf-light { background: #f6f7f9; color: var(--light-text); }
.pf-row { display: flex; align-items: center; gap: 14px; width: 100%; padding: 12px 16px; text-align: left; color: var(--light-text); }
.pf-row + .pf-row { border-top: 1px solid rgba(0,0,0,.06); }
.pf-row:hover { background: #e4e6eb; }
.pf-row > .i { width: 22px; height: 22px; color: #4a4d55; flex: none; }
.pf-row span { flex: 1; display: flex; flex-direction: column; line-height: 1.3; }
.pf-row b { font-size: 15px; font-weight: 600; }
.pf-row small { font-size: 13px; color: #4a4d55; }
.pf-new { padding: 2px 8px; border-radius: 8px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; font-style: normal; }
.pf-logout { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 44px; border-radius: 12px; color: #e5374f; font-weight: 600; }
.pf-logout .i { width: 18px; height: 18px; }

/* withdrawal */
.modal-box.wd { max-width: 440px; min-height: min(560px, calc(100vh - 32px)); }
.wd-screen[hidden] { display: none; }
.wd-cur { display: flex; align-items: center; gap: 12px; padding: 14px 16px; margin-bottom: 16px; border-radius: 14px; background: #f3f4f7; }
.wd-cur-ic { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #7d8ae8; color: #fff; font-size: 13px; font-weight: 700; flex: none; }
.wd-cur-name { flex: 1; display: flex; flex-direction: column; line-height: 1.25; }
.wd-cur-name b { font-size: 15px; font-weight: 600; }
.wd-cur-name small { font-size: 12.5px; color: var(--light-muted); }
.wd-bal { font-size: 15px; }
.wd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.wd-opt { display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 8px; height: 80px; padding: 14px; border-radius: 14px; background: #f3f4f7; text-align: left; color: var(--light-text); }
.wd-opt:hover { background: #eaecf0; }
.wd-opt b { font-size: 14px; font-weight: 600; }
.wd-ic { display: flex; align-items: center; height: 26px; font-size: 22px; line-height: 1; }
.wd-ic img { max-height: 26px; max-width: 80px; object-fit: contain; border-radius: 5px; }
.wd-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.wd-top .modal-x { position: static; }
.wd-back { display: inline-flex; align-items: center; gap: 4px; color: var(--accent); font-weight: 600; font-size: 15px; }
.wd-back .i { width: 18px; height: 18px; }
.wd-title { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.wd-title h2 { margin: 0; }
.wd-logo { display: flex; align-items: center; font-size: 24px; }
.wd-logo img { max-height: 30px; max-width: 90px; object-fit: contain; border-radius: 6px; }
.wd-field { display: flex; flex-direction: column; justify-content: center; min-height: 52px; padding: 0 18px; margin-bottom: 14px; border-radius: 14px; background: #f1f2f5; }
.wd-field input { border: 0; outline: 0; background: none; font-size: 15px; color: var(--light-text); width: 100%; }
.wd-amount { padding-top: 6px; padding-bottom: 6px; margin-bottom: 6px; }
.wd-amount small { font-size: 11.5px; color: #4a4d55; }
.wd-amount span { display: flex; gap: 6px; font-size: 15px; }
.wd-amount i { font-style: normal; }
.wd-limits { margin: 0 0 18px; font-size: 13px; color: #4a4d55; }

@media (max-width: 1023px) {
  .ev-row { grid-template-columns: 1fr; gap: 10px; }
  .evr-info { padding-right: 0; border-right: 0; }
  .sp-tile { width: 112px; height: 84px; }
  .sp-tile img { width: 48px; height: 48px; }
  .sp-next { display: none; }
}

/* web app install (sidebar, footer, Free money) */
button.app-card { width: 100%; border: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.app-card[hidden], [data-install-app][hidden] { display: none !important; }
.app-icon img { width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
.f-ic img { width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
.fm-app-ic { position: absolute; right: 6%; top: 50%; width: clamp(72px, 10vw, 112px); height: auto; border-radius: 24%; transform: translateY(-50%) rotate(-8deg); box-shadow: 0 12px 30px rgba(0,0,0,.3); }
.fm-btn .i { width: 16px; height: 16px; margin-right: 6px; }

/* ── login by SMS code ─────────────────────────────────────────────────── */
.modal-box.otp { max-width: 400px; padding: 24px 22px 20px; }
.otp-step { display: flex; flex-direction: column; gap: 12px; }
.otp-step[hidden] { display: none; }
.otp-step h2 { margin: 0; }
.otp-step .modal-sub { margin: -6px 0 2px; }
.otp-badge { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: #e3eeff; color: var(--accent); }
.otp-badge .i { width: 24px; height: 24px; }
.otp-step .field input { font-size: 16px; letter-spacing: .3px; }
.otp-legal { margin: 0; font-size: 11.5px; line-height: 1.45; color: var(--light-muted); text-align: center; }
.otp-legal a { color: var(--accent); }
.otp-back { display: inline-flex; align-items: center; gap: 4px; align-self: flex-start; color: var(--accent); font-weight: 600; font-size: 14px; }
.otp-back .i { width: 16px; height: 16px; }
.otp-boxes { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.otp-boxes input {
  width: 100%; height: 56px; border: 2px solid transparent; border-radius: 12px; outline: 0;
  background: var(--light-glass); color: var(--light-text); text-align: center; font-size: 24px; font-weight: 700;
  transition: border-color .15s, background .15s;
}
.otp-boxes input:focus { border-color: var(--accent); background: #fff; }
.otp-resend { display: flex; justify-content: center; margin: 0; font-size: 13px; color: var(--light-muted); }
.otp-resend b { color: var(--light-text); font-variant-numeric: tabular-nums; }
.otp-resend [hidden] { display: none; }
.topbar .btn-green .i { width: 16px; height: 16px; margin-right: 6px; }

/* footer: "Deposit & cash out" card with the payment logos */
.f-pay p { max-width: none; }
.f-pay-logos { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 14px; }
.f-pay-logo { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border-radius: 8px; background: #fff; color: #141415; font-size: 12px; font-weight: 600; }
.f-pay-logo img { height: 20px; width: auto; max-width: 64px; object-fit: contain; border-radius: 4px; }
.f-pay-logo i { font-style: normal; }
.f-pay .btn { margin-top: auto; }

/* ── sliding tab pill + cards entering after a category switch ───────── */
[data-ink] { position: relative; isolation: isolate; }
[data-ink] > .ink {
  position: absolute; top: 2px; bottom: 2px; left: 0; width: 0; z-index: -1; border-radius: 10px;
  background: var(--accent); box-shadow: 0 4px 14px rgba(0, 117, 255, .35);
  transition: transform .32s cubic-bezier(.3, 1.25, .4, 1), width .32s cubic-bezier(.3, 1.25, .4, 1), opacity .2s;
}
.subtabs.inked .subtab.active { background: transparent; }
.subtab { position: relative; transition: color .2s; }
.sp-tabs-list[data-ink] > .ink { top: 0; bottom: 0; background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .08); }
.sp-tabs-list.inked .sp-tab.active { background: transparent; }
.bs-seg[data-ink] > .ink { top: 3px; bottom: 3px; }
.bs-seg.inked button.on { background: transparent; }
.bs-seg button { position: relative; transition: color .2s; }
@keyframes card-in { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
.enter { animation: card-in .38s cubic-bezier(.2, .8, .3, 1) both; animation-delay: calc(var(--i, 0) * 18ms); }
@media (prefers-reduced-motion: reduce) {
  [data-ink] > .ink { transition: none; }
  .enter { animation: none; }
}

/* emoji-free art: downloaded images sized like the glyphs they replace */
img.art { display: inline-block; width: 1.15em; height: 1.15em; object-fit: contain; vertical-align: -.2em; }
.game-flag .flag-img { width: 1em; height: 1em; }
.pk-cards .i { width: 1em; height: 1em; }
.f-credit { flex: 1; font-size: 11px; color: var(--muted); }
.f-credit a { color: inherit; text-decoration: underline; }
.pf-bonus { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: -6px 0 12px; font-size: 13px; font-weight: 600; color: #8a5300; }
.pf-bonus > span:last-child { width: 100%; font-weight: 500; font-size: 11.5px; color: #4a4d55; }
.bs-bonus { display: inline-flex; align-items: center; gap: 4px; margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: #fff4e0; color: #8a5300; font-size: 12px; font-weight: 700; }
.bs-bonus .i { width: 13px; height: 13px; }
