/* ===== Colours used across the site =====
   Sea blue and white, with sunny yellow as the accent.
   Green is kept only for good news (wins, money in), red for losses. */
:root {
  --ink: #0a6ea8;          /* sea blue: top bars and headers */
  --ink-deep: #064a73;     /* deep ocean: LIVE section, bottom menu, Me header */
  --gold: #ffc93c;         /* sunny yellow accent */
  --green: #0877b8;        /* main action colour: buttons, selected odds, tabs */
  --green-bright: #1391d4; /* hover version of the action colour */
  --aqua: #5fd4f5;         /* light aqua for highlights on dark blue */
  --win: #16a34a;          /* wins and money received */
  --red: #e5484d;          /* losses and errors */
  --bg: #eef6fb;           /* page background: very light blue */
  --card: #ffffff;
  --text: #0f2a3d;
  --muted: #5b7285;
  --line: #d8e6f0;
  --live-bg: #06314d;
  --purple: #7c3aed;       /* games, jackpots and rewards */
  --purple-deep: #4c1d95;
  --purple-soft: #ede9fe;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html, body { background: #cfe3ef; }
body {
  margin: 0;
  color: var(--text);
  font-family: "Barlow", "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 15px;
}
button { font: inherit; color: inherit; cursor: pointer; }
button:focus-visible, input:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
h1, h2 { margin: 0; text-wrap: balance; }

/* The whole site is an app-style column, centred on big screens */
.app {
  max-width: 600px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--bg);
  padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px));
}

.icon {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.icon.sm { width: 16px; height: 16px; }

/* Horizontal scrolling rows with hidden scrollbars */
.scroller { overflow-x: auto; scrollbar-width: none; }
.scroller::-webkit-scrollbar { display: none; }

/* ===== Top bar ===== */
.topbar {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  background: var(--ink);
  color: #fff;
  border-bottom: 2px solid var(--gold);
}
.logo {
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-style: italic;
  font-weight: 800;
  font-size: 1.55rem;
  letter-spacing: -0.3px;
  white-space: nowrap;
}
.logo span { color: var(--gold); }
.top-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn { background: none; border: none; padding: 6px; display: flex; color: #fff; }
.topup-btn {
  background: var(--gold);
  color: #111;
  border: none;
  border-radius: 4px;
  padding: 7px 12px;
  font-weight: 700;
}
.balance-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 4px;
  padding: 3px 10px 3px 3px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--gold);
  color: #111;
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  font-weight: 800;
}
.search-bar { padding: 8px 16px 10px; background: var(--ink); }
.search-bar input {
  width: 100%;
  padding: 10px 12px;
  border: none;
  border-radius: 6px;
  font: inherit;
}

/* ===== Promo picture tiles ===== */
.promos { display: flex; gap: 8px; padding: 12px 16px; background: var(--card); }
.promo {
  flex: 0 0 100px;
  height: 100px;
  border: none;
  border-radius: 8px;
  padding: 7px;
  color: #fff;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}
.promo:hover { filter: brightness(1.1); }
.promo-tag {
  align-self: flex-start;
  font-size: 0.6rem;
  font-weight: 800;
  font-style: italic;
  letter-spacing: 0.5px;
  background: rgba(0, 0, 0, 0.5);
  padding: 2px 4px;
  border-radius: 2px;
  min-height: 1em;
}
.promo-tag:empty { background: none; }
.promo-art { flex: 1; display: flex; align-items: center; justify-content: center; }
.promo-title {
  font-weight: 700;
  font-size: 0.85rem;
  line-height: 1.1;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}
.promo-flags { display: flex; }
.promo-flags .crest { width: 34px; height: 34px; box-shadow: 0 0 0 2px #fff; font-size: 0.9rem; }
.promo-flags .crest + .crest { margin-left: -6px; }
.balls { display: flex; gap: 3px; }
.balls span {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #111;
  font-weight: 800;
  font-size: 0.75rem;
  box-shadow: inset -3px -3px 5px rgba(0, 0, 0, 0.25);
}
.wheel {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 3px solid #fff;
  background: conic-gradient(#f5b700 0 60deg, #e5484d 0 120deg, #1fbf6a 0 180deg, #3b82f6 0 240deg, #f97316 0 300deg, #a855f7 0 360deg);
}
.prize {
  background: linear-gradient(#ffe27a, #f5b700);
  color: #3a2a00;
  font-weight: 800;
  font-size: 0.8rem;
  line-height: 1.05;
  text-align: center;
  border-radius: 6px;
  padding: 4px 6px;
  transform: rotate(-4deg);
}
.prize small { display: block; font-size: 0.55rem; }
.icon.bolt { width: 44px; height: 44px; color: #ffd400; stroke: none; }

/* ===== Quick link icons ===== */
.quick-links {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 4px 8px 14px;
  background: var(--card);
  border-bottom: 1px solid var(--line);
}
.quick-link {
  background: none;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 4px 0;
  font-size: 0.72rem;
}
.quick-link .icon { width: 21px; height: 21px; }
.quick-link:hover { color: var(--green); }

/* ===== Category cards ===== */
.categories { display: flex; gap: 8px; padding: 14px 16px; }
.category {
  flex: 0 0 150px;
  min-height: 72px;
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 4px solid var(--c);
  border-radius: 4px;
  padding: 8px 12px;
  text-align: left;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 0.85rem;
  line-height: 1.15;
  letter-spacing: 0.3px;
}
.category.active { background: #fff7db; border-color: var(--gold); border-top-color: var(--c); }

/* ===== Featured ===== */
.featured { background: var(--card); padding-bottom: 16px; scroll-margin-top: 64px; }
.featured-tabs {
  display: flex;
  align-items: baseline;
  gap: 20px;
  padding: 14px 16px 10px;
  border-bottom: 1px solid var(--line);
}
.f-tab {
  background: none;
  border: none;
  padding: 0;
  white-space: nowrap;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--muted);
}
.f-tab.active { font-size: 1.45rem; font-weight: 800; color: var(--text); }
.f-tab.accent { color: var(--green); }
.f-sub {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  font-size: 0.8rem;
  color: var(--muted);
}
.f-sub strong { display: flex; align-items: center; gap: 4px; color: var(--green); font-size: 0.95rem; }
.f-empty { padding: 20px 16px 4px; color: var(--muted); }

/* Quick pick cards */
.qp-track {
  display: flex;
  gap: 10px;
  padding: 4px 16px 6px;
  scroll-snap-type: x mandatory;
}
.qp-card {
  flex: 0 0 86%;
  max-width: 420px;
  scroll-snap-align: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(15, 25, 35, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.qp-top {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 14px 6px;
  font-size: 1.15rem;
  font-weight: 800;
}
.qp-top .vs { color: var(--muted); font-weight: 600; }
.chip {
  margin-left: 4px;
  background: var(--bg);
  border-radius: 12px;
  padding: 2px 10px;
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap;
}
.qp-body { display: flex; justify-content: space-between; gap: 10px; padding: 4px 14px 10px; }
.qp-picks {
  list-style: none;
  margin: 0 0 0 10px;
  padding: 0 0 0 12px;
  border-left: 2px dotted #bfd6e6;
  display: grid;
  gap: 4px;
}
.qp-picks span { color: var(--muted); font-size: 0.85rem; margin-left: 6px; }
.qp-odds { align-self: center; font-size: 1.45rem; font-weight: 800; color: var(--green); }
.qp-stake { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 14px; }
.qp-input { display: flex; align-items: center; gap: 6px; }
.qp-input small { color: var(--muted); font-weight: 600; }
.qp-input input {
  width: 110px;
  padding: 6px 8px;
  text-align: right;
  border: 1px solid #bfd6e6;
  border-radius: 4px;
  font: inherit;
}
.qp-msg { min-height: 1.3em; margin: 2px 0 6px; padding: 0 14px; text-align: right; font-size: 0.78rem; color: var(--red); }
.qp-foot { margin-top: auto; display: grid; grid-template-columns: auto 1fr; background: #f0f7fc; border-top: 1px solid var(--line); }
.qp-win { padding: 8px 14px; display: grid; gap: 2px; font-size: 0.8rem; color: var(--muted); }
.qp-win strong { color: var(--text); font-variant-numeric: tabular-nums; }
.qp-bet { border: none; background: var(--green); color: #fff; font-weight: 800; font-size: 1rem; }
.qp-bet:hover { background: var(--green-bright); }

/* ===== Match rows (used by Live, Upcoming, A-Z and Featured) ===== */
.live {
  --cell: #0e4a70;
  --cell-text: #ffffff;
  --row-line: #0d4265;
  --meta: #9cc9e6;
  --head-bg: #083b5c;
  background: var(--live-bg);
  color: #eaf5fc;
  margin-top: 10px;
  scroll-margin-top: 64px;
}
.light-list {
  --cell: #eef1f4;
  --cell-text: #15202b;
  --row-line: var(--line);
  --meta: var(--muted);
  --head-bg: #f2f8fc;
}
.live-head { display: flex; align-items: center; gap: 16px; padding: 14px 16px; }
.live-head h2 {
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  padding-right: 16px;
  border-right: 1px solid rgba(255, 255, 255, 0.25);
}
.s-tabs { display: flex; gap: 18px; }
.s-tab { background: none; border: none; padding: 0; font-size: 1.05rem; font-weight: 600; white-space: nowrap; }
.s-tab.active { color: var(--aqua); }

.market-tabs { display: flex; gap: 2px; padding: 0 8px; border-bottom: 1px solid var(--row-line); }
.m-tab {
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  padding: 10px;
  font-weight: 600;
  white-space: nowrap;
}
.m-tab.active { border-bottom-color: var(--green-bright); }

.odds-header, .row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  padding: 8px 16px;
}
.odds-header { background: var(--head-bg); color: var(--meta); font-size: 0.8rem; }
.odds-header .row-odds span { text-align: center; }
.row { padding-block: 10px; border-bottom: 1px solid var(--row-line); align-items: center; }
.row-odds { display: grid; grid-template-columns: repeat(var(--n), 60px); gap: 4px; }
.row-meta { display: flex; gap: 8px; margin-bottom: 5px; font-size: 0.78rem; color: var(--meta); white-space: nowrap; overflow: hidden; }
.clock { color: var(--green-bright); font-variant-numeric: tabular-nums; }
.kick { color: var(--text); font-weight: 600; }
.team-line {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  padding: 2px 0;
}
.team-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.score { font-variant-numeric: tabular-nums; }

.odd {
  height: 46px;
  border: none;
  border-radius: 4px;
  background: var(--cell);
  color: var(--cell-text);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  display: grid;
  place-items: center;
}
.odd:hover { box-shadow: inset 0 0 0 1px var(--green-bright); }
.odd.selected { background: var(--green); color: #fff; }
.odd.locked { color: var(--meta); cursor: not-allowed; box-shadow: none; }
.odd.empty { color: var(--meta); font-weight: 400; }

.crest {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  overflow: hidden;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 1;
}
.crest svg { width: 100%; height: 100%; display: block; }

/* Upcoming and A-Z lists */
.list-card { background: var(--card); margin-top: 10px; scroll-margin-top: 64px; }
.list-title { display: flex; align-items: baseline; justify-content: space-between; padding: 14px 16px 8px; }
.list-title h2 { font-size: 1.2rem; }
.list-title span { color: var(--muted); font-size: 0.85rem; }
.group-title {
  padding: 10px 16px 6px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--muted);
}
.empty-state { color: var(--muted); text-align: center; padding: 36px 16px; }

.disclaimer { color: var(--muted); font-size: 0.8rem; text-align: center; padding: 20px 24px 8px; margin: 0; }

/* ===== Other pages ===== */
.page { padding: 18px 16px; }
.page-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.page-title { font-size: 1.5rem; font-weight: 800; }
.page-note { color: var(--muted); margin: 6px 0 14px; }
.pill-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0 0; }
.pill {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 7px 16px;
  font-weight: 600;
}
.pill.active { background: var(--ink); border-color: var(--ink); color: #fff; }
#view-az .list-card { margin-inline: -16px; }

.games-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.games-grid .promo { height: 130px; flex: none; }
.games-grid .promo-title { font-size: 1rem; }

/* Bet history */
.bet-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 10px;
}
.bet-card.won { border-left-color: var(--win); }
.bet-card.lost { border-left-color: var(--red); }
.bet-top { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 8px; color: var(--muted); font-size: 0.85rem; }
.status { font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; }
.status.pending { color: #b58600; }
.status.won { color: var(--win); }
.status.lost { color: var(--red); }
.bet-selection { display: flex; justify-content: space-between; gap: 8px; padding: 7px 0; border-bottom: 1px dashed var(--line); }
.bet-selection .muted { color: var(--muted); font-size: 0.82rem; }
.tick { color: var(--win); font-weight: 800; }
.cross { color: var(--red); font-weight: 800; }
.bet-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 10px; font-size: 0.9rem; font-variant-numeric: tabular-nums; }

/* Me page */
.profile { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.profile div { display: grid; }
.profile span:not(.avatar) { color: var(--muted); font-size: 0.85rem; }
.avatar.big { width: 52px; height: 52px; font-size: 1rem; }
.wallet-card {
  background: var(--ink);
  color: #fff;
  border-radius: 12px;
  padding: 18px;
  display: grid;
  gap: 4px;
}
.wallet-card > span { color: #cfe6f5; font-size: 0.85rem; }
.wallet-card strong { font-size: 2rem; font-variant-numeric: tabular-nums; }
.wallet-buttons { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 12px; display: grid; gap: 2px; }
.stat span { color: var(--muted); font-size: 0.8rem; }
.stat strong { font-size: 1.3rem; font-variant-numeric: tabular-nums; }

/* ===== Buttons and messages ===== */
.btn {
  background: var(--card);
  border: 1px solid #bfd6e6;
  border-radius: 6px;
  padding: 10px 16px;
  font-weight: 700;
}
.btn:hover { border-color: var(--text); }
.btn-green { background: var(--green); border-color: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-bright); border-color: var(--green-bright); }
.btn-gold { background: var(--gold); border-color: var(--gold); color: #111; }
.btn-small { padding: 6px 12px; }
.link-btn { background: none; border: none; padding: 0; color: var(--muted); text-decoration: underline; font-size: 0.85rem; }
.message { min-height: 1.2em; margin: 6px 0; font-size: 0.85rem; }
.message.error { color: var(--red); }
.message.success { color: var(--win); }

/* ===== Floating bet slip button ===== */
.slip-fab {
  position: fixed;
  bottom: calc(88px + env(safe-area-inset-bottom, 0px));
  right: max(16px, calc(50% - 300px + 16px));
  z-index: 45;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  border: 3px solid #fff;
  background: var(--green);
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}
.fab-count {
  position: absolute;
  top: -8px;
  right: -6px;
  min-width: 26px;
  height: 26px;
  padding: 0 5px;
  border-radius: 13px;
  background: #fff;
  color: var(--text);
  font-size: 0.8rem;
  display: grid;
  place-items: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

/* ===== Bottom sheets (bet slip, booking code) ===== */
.backdrop { position: fixed; inset: 0; z-index: 60; background: rgba(0, 0, 0, 0.5); }
.sheet {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 70;
  width: 100%;
  max-width: 600px;
  max-height: 85vh;
  overflow-y: auto;
  transform: translate(-50%, 110%);
  transition: transform 0.25s ease;
  background: var(--card);
  border-radius: 14px 14px 0 0;
  padding: 16px 16px calc(16px + env(safe-area-inset-bottom, 0px));
}
.sheet.open { transform: translate(-50%, 0); }
.sheet-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.sheet-head h2 { margin-right: auto; font-size: 1.2rem; }
.close-btn { background: none; border: none; font-size: 1.6rem; line-height: 1; padding: 0 4px; color: var(--muted); }
.badge { background: var(--gold); color: #111; border-radius: 10px; padding: 1px 8px; font-size: 0.8rem; margin-left: 4px; }
.sheet-note { color: var(--muted); margin: 0 0 12px; }

.slip-empty { color: var(--muted); text-align: center; padding: 20px 0; }
.slip-item {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  margin-bottom: 8px;
  background: var(--bg);
  border-radius: 6px;
}
.slip-item .pick { font-weight: 700; }
.slip-item .sub { color: var(--muted); font-size: 0.8rem; }
.slip-item .right { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.slip-item .odd-value { color: var(--green); font-weight: 800; }
.remove-btn { background: none; border: none; padding: 0; font-size: 1.2rem; line-height: 1; color: var(--muted); }
.remove-btn:hover { color: var(--red); }

.slip-summary { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 6px; }
.sum-row { display: flex; justify-content: space-between; margin-bottom: 8px; color: var(--muted); }
.sum-row strong { color: var(--text); font-variant-numeric: tabular-nums; }
#potential-win { color: var(--green); }
#stake, .code-form input {
  width: 100%;
  padding: 11px;
  border: 1px solid #bfd6e6;
  border-radius: 6px;
  font: inherit;
  font-size: 1rem;
}
.quick-stakes { display: flex; gap: 6px; margin: 8px 0 12px; }
.chip-btn { background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 4px 12px; font-weight: 600; }
.slip-buttons { display: grid; grid-template-columns: 1fr 2fr; gap: 8px; }
.code-form { display: flex; gap: 8px; }
.code-form input { text-transform: uppercase; letter-spacing: 1px; }
.codes-list { display: grid; gap: 8px; padding: 10px 16px; }
.code-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.code-row div { display: grid; }
.code-row .code { font-size: 1.1rem; letter-spacing: 1px; }
.code-row span { color: var(--muted); font-size: 0.82rem; }
.codes-actions { padding: 0 16px; }

/* ===== Bottom navigation ===== */
.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 50;
  transform: translateX(-50%);
  width: 100%;
  max-width: 600px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: var(--ink-deep);
  padding: 8px 0 calc(8px + env(safe-area-inset-bottom, 0px));
}
.nav-item {
  position: relative;
  background: none;
  border: none;
  color: #8b96a1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 0.78rem;
}
.nav-item .icon { width: 26px; height: 26px; }
.nav-item.active { color: #fff; }
.nav-item.active .icon { color: var(--gold); }
.nav-badge {
  position: absolute;
  top: -4px;
  left: calc(50% + 8px);
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 9px;
  background: var(--red);
  color: #fff;
  font-size: 0.65rem;
  display: grid;
  place-items: center;
}

.nav-dot { min-width: 10px; width: 10px; height: 10px; padding: 0; top: -2px; }

/* ===== Toast message ===== */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(170px + env(safe-area-inset-bottom, 0px));
  z-index: 80;
  transform: translate(-50%, 10px);
  max-width: min(90vw, 420px);
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 20px;
  font-weight: 600;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ===== Open Bets page ===== */
.bets-top { background: var(--ink); color: #fff; padding-top: 14px; }
.bets-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 0 16px 14px; }
.help-link { background: none; border: none; padding: 0; display: flex; align-items: center; gap: 6px; color: #fff; font-size: 1rem; }
.help-dot {
  width: 20px;
  height: 20px;
  border: 1.5px solid #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 700;
}
.bets-balance { display: flex; align-items: center; gap: 8px; color: var(--gold); font-size: 1.1rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.bets-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 0 8%; }
.bt-tab {
  border: none;
  border-radius: 6px 6px 0 0;
  padding: 13px 8px;
  background: #3f8fc2;
  color: #fff;
  font-size: 1.1rem;
}
.bt-tab.active { background: var(--card); color: var(--text); }

.bets-panel { background: var(--card); padding: 16px; border-bottom: 1px solid var(--line); }
.bets-panel-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.bets-panel-head h2 { font-size: 1.1rem; }
.no-bets { display: grid; justify-items: center; gap: 8px; padding: 34px 16px; text-align: center; background: var(--card); border-bottom: 1px solid var(--line); }
.no-bets svg { width: 130px; height: 88px; }
.no-bets p { margin: 0; line-height: 1.35; }
.cashout-btn {
  width: 100%;
  margin-top: 10px;
  padding: 10px;
  border: 1px solid var(--green);
  border-radius: 6px;
  background: #e3f3fc;
  color: var(--green);
  font-weight: 800;
}
.cashout-btn:hover { background: #cfeafa; }
.status.cashed { color: #2563eb; }
.bet-card.cashed { border-left-color: #2563eb; }
.status.void { color: #0a6ea8; }
.bet-card.void { border-left-color: #0a6ea8; }

/* Recommended codes */
.rec-head {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 16px 12px;
  background: none;
  border: none;
  text-align: left;
}
.rec-head h2 { font-size: 1.25rem; margin-right: auto; }
.rec-head .bookmark { width: 26px; height: 26px; color: var(--green); stroke: none; }
.chevron { transition: transform 0.2s; }
.rec-head.closed .chevron { transform: rotate(180deg); }

.code-card {
  margin: 0 16px 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(15, 25, 35, 0.08);
  overflow: hidden;
}
.code-head { display: flex; align-items: baseline; gap: 14px; padding: 6px 12px; background: #d9eefa; }
.code-head .code { margin-right: auto; font-size: 1.15rem; font-weight: 800; letter-spacing: 0.5px; }
.code-head small { color: var(--muted); font-size: 0.85rem; }
.code-head small strong { color: var(--text); font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.code-sels { max-height: 200px; overflow-y: auto; padding: 4px 12px; }
.code-sel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  column-gap: 12px;
  align-items: center;
  padding: 5px 0;
}
.code-sel .crest { grid-row: span 2; }
.code-sel .sel-pick { font-size: 1.05rem; }
.code-sel .sel-pick span { color: var(--muted); font-size: 0.9rem; }
.code-sel .sel-teams { font-size: 0.9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.code-sel .sel-teams small { color: var(--muted); }
.code-sel .sel-time { grid-column: 3; color: var(--muted); font-size: 0.8rem; white-space: nowrap; }
.code-foot { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.share-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border: none;
  background: #f0f7fc;
  color: var(--green);
  font-weight: 700;
  font-size: 1rem;
}
.add-btn { border: none; background: var(--green); color: #fff; font-weight: 800; font-size: 1rem; }
.add-btn:hover { background: var(--green-bright); }
.help-steps { margin: 0 0 12px; padding-left: 20px; display: grid; gap: 8px; line-height: 1.4; }

/* ===== Me page ===== */
.me-top {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 18px;
  padding: 20px 16px 22px;
  background: linear-gradient(180deg, #0b77b3, var(--ink-deep));
  color: #fff;
}
.me-watermark { position: absolute; top: 8px; right: -26px; width: 190px; opacity: 0.07; pointer-events: none; }
.me-profile { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: center; }
.me-avatar {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid #9cc9e6;
  background: radial-gradient(circle at 30% 30%, #ffd75e, #f5b700 45%, #b07a00);
  color: var(--ink-deep);
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: 1.9rem;
  font-weight: 800;
  padding: 0;
}
.me-avatar .hex { position: absolute; left: 50%; bottom: -10px; width: 26px; height: 28px; transform: translateX(-50%); }
.me-name-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.me-name {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding: 0;
  border: none;
  background: none;
  color: #fff;
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}
.me-name span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me-name .icon { width: 18px; height: 18px; color: #cfe6f5; }
.gear-btn { background: none; border: none; padding: 4px; color: #fff; display: flex; }
.gear-btn .icon { width: 26px; height: 26px; }
.tier-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 8px 0 6px; color: #cfe6f5; font-size: 0.85rem; }
.tier-row > span { display: flex; align-items: center; gap: 6px; }
.tier-row .hex { width: 18px; height: 20px; }
.tier-bar { height: 5px; border-radius: 3px; background: rgba(255, 255, 255, 0.25); overflow: hidden; }
.tier-bar span { display: block; height: 100%; background: var(--aqua); border-radius: 3px; }

.me-balance-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.me-balance { display: flex; align-items: center; gap: 10px; font-size: 1.8rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.eye-btn { background: none; border: none; padding: 2px; color: #fff; display: flex; }

.me-money { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.me-money button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 8px;
  border-radius: 3px;
  font-size: 1.2rem;
  font-weight: 600;
}
.btn-deposit { background: #ffffff; border: 1px solid #ffffff; color: var(--green); }
.btn-deposit:hover { background: #eaf5fc; }
.btn-withdraw { background: transparent; border: 1px solid var(--aqua); color: var(--aqua); }
.btn-withdraw:hover { background: rgba(34, 214, 154, 0.08); }

.loyalty-banner {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 10px;
  padding: 0 12px 0 0;
  border: none;
  border-radius: 6px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  text-align: left;
}
.loyalty-art {
  display: grid;
  gap: 4px;
  align-self: stretch;
  padding: 10px 14px;
  background: linear-gradient(110deg, #0891b2, #0a6ea8 60%, rgba(10, 110, 168, 0));
}
.loyalty-art em {
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1;
}
.loyalty-chips { display: flex; gap: 4px; flex-wrap: wrap; }
.loyalty-chips span { border-radius: 10px; padding: 1px 7px; font-size: 0.7rem; font-weight: 600; }
.chip-red { background: #e5484d; }
.chip-purple { background: #7c5cf5; }
.loyalty-total { display: grid; font-size: 0.8rem; color: #cfe6f5; }
.loyalty-total strong { color: var(--aqua); font-size: 1.05rem; font-variant-numeric: tabular-nums; }

.me-tiles { display: grid; grid-template-columns: repeat(3, 1fr); background: rgba(255, 255, 255, 0.12); border-radius: 6px; padding: 16px 0; }
.me-tile {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 10px;
  padding: 4px 6px;
  border: none;
  border-left: 1px solid rgba(255, 255, 255, 0.3);
  background: none;
  color: #fff;
  font-size: 0.95rem;
  line-height: 1.25;
  text-align: center;
}
.me-tile:first-child { border-left: none; }
.red-dot { position: absolute; top: -4px; right: 20%; width: 10px; height: 10px; border-radius: 50%; background: var(--red); }

.me-menu { list-style: none; margin: 0; padding: 0 16px; background: var(--card); }
.me-item {
  width: 100%;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto 16px;
  align-items: center;
  gap: 12px;
  padding: 17px 0;
  border: none;
  border-bottom: 1px solid var(--line);
  background: none;
  text-align: left;
  font-size: 1.15rem;
}
.me-item .icon { width: 26px; height: 26px; }
.me-item .chev { width: 16px; height: 16px; color: #9aa7b4; }
.me-item-icon { position: relative; display: flex; }
.me-item-icon .red-dot { top: -2px; right: -2px; width: 8px; height: 8px; }
.me-right { color: var(--muted); font-size: 1rem; }
.streak-pill { background: #cdeefc; color: #0b5c80; border-radius: 12px; padding: 1px 10px; font-weight: 700; font-size: 0.9rem; }

/* Sheets used by the Me page */
.amount-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.field { width: 100%; padding: 11px; border: 1px solid #bfd6e6; border-radius: 6px; font: inherit; font-size: 1rem; margin-bottom: 10px; }
textarea.field { min-height: 110px; resize: vertical; }
.full { width: 100%; }
.sheet-list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; }
.sheet-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.sheet-list li div { display: grid; gap: 2px; min-width: 0; }
.sheet-list small { color: var(--muted); }
.plus { color: var(--win); font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.minus { color: var(--red); font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.unread { border-color: var(--gold) !important; background: #fffaeb; }
.progress { height: 6px; background: var(--bg); border-radius: 3px; overflow: hidden; margin-top: 4px; }
.progress span { display: block; height: 100%; background: var(--green); }
.section-label { margin: 16px 0 8px; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase; color: var(--muted); }

.wheel-wrap { position: relative; width: 220px; height: 220px; margin: 14px auto; }
.big-wheel {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 6px solid var(--ink);
  background: conic-gradient(#f5b700 0 45deg, #e5484d 0 90deg, #1fbf6a 0 135deg, #3b82f6 0 180deg, #f97316 0 225deg, #a855f7 0 270deg, #14b8a6 0 315deg, #ec4899 0 360deg);
  transition: transform 3.2s cubic-bezier(0.17, 0.67, 0.2, 1);
}
.big-wheel span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 40px;
  margin: -10px 0 0 -20px;
  text-align: center;
  color: #fff;
  font-weight: 800;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}
.wheel-pointer {
  position: absolute;
  top: -8px;
  left: 50%;
  z-index: 2;
  transform: translateX(-50%);
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-top: 22px solid var(--ink);
}
.wheel-hub { position: absolute; left: 50%; top: 50%; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; background: var(--ink); border: 3px solid #fff; }

.streak-big { text-align: center; font-size: 3rem; font-weight: 800; line-height: 1; }
.streak-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin: 14px 0; }
.streak-days span { display: grid; place-items: center; height: 40px; border-radius: 6px; background: var(--bg); color: var(--muted); font-weight: 700; font-size: 0.85rem; }
.streak-days span.done { background: var(--green); color: #fff; }
.stars { display: flex; justify-content: center; gap: 8px; margin: 8px 0 12px; }
.star-btn { background: none; border: none; padding: 2px; font-size: 2.2rem; line-height: 1; color: #bfd6e6; }
.star-btn.on { color: var(--gold); }
.switch-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.switch-row input { width: 22px; height: 22px; accent-color: var(--green); }
details { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; margin-bottom: 8px; }
summary { font-weight: 700; cursor: pointer; }
details p { margin: 8px 0 0; color: var(--muted); line-height: 1.4; }

/* ===== AZ Menu ===== */
.az-top { background: var(--ink); padding: 14px 16px 0; border-bottom: 2px solid var(--gold); }
.az-search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  background: #fff;
  border-radius: 3px;
  color: #8b96a1;
}
.az-search:focus-within { outline: 2px solid var(--gold); }
.az-search .icon { width: 24px; height: 24px; }
.az-search input {
  flex: 1;
  min-width: 0;
  padding: 11px 0;
  border: none;
  outline: none;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 1rem;
}
.az-links { display: grid; grid-template-columns: repeat(5, 1fr); padding: 16px 0; }
.az-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 0;
  border: none;
  background: none;
  color: #fff;
  font-size: 0.88rem;
  white-space: nowrap;
}
.az-link .icon { width: 28px; height: 28px; }
.az-link:hover { color: var(--gold); }

.az-tabs { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--card); border-bottom: 1px solid var(--line); }
.az-tab {
  padding: 16px 4px 13px;
  border: none;
  border-bottom: 3px solid transparent;
  background: none;
  color: #9aa7b4;
  font-size: 1.1rem;
  white-space: nowrap;
}
.az-tab.active { color: var(--text); font-weight: 700; border-bottom-color: var(--green); }

.az-cols { display: grid; grid-template-columns: 40% 60%; min-height: 62vh; background: var(--card); }
.az-sports { margin: 0; padding: 0; list-style: none; background: #f0f7fc; border-right: 1px solid var(--line); }
.az-sport {
  width: 100%;
  padding: 22px 18px;
  border: none;
  background: none;
  text-align: left;
  font-size: 1.15rem;
}
.az-sport.active { color: var(--green); }
.az-sport:hover { background: #eef1f4; }
.az-leagues { margin: 0; padding: 0; list-style: none; background: #f7fbfe; }
.az-league {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  padding: 20px 16px 20px 22px;
  border: none;
  background: none;
  text-align: left;
  font-size: 1.05rem;
}
.az-league small { color: var(--muted); font-variant-numeric: tabular-nums; }
.az-league:hover { background: #eef1f4; }
.az-note { padding: 22px; color: var(--muted); line-height: 1.4; }

.league-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--card);
  border-bottom: 1px solid var(--line);
}
.league-head h2 { margin-right: auto; font-size: 1.15rem; }
.league-head span { color: var(--muted); font-size: 0.85rem; }
.back-btn { display: flex; padding: 4px; border: none; background: none; }

.promo-list { margin: 0; padding: 0; list-style: none; background: var(--card); }
.promo-item {
  width: 100%;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border: none;
  border-bottom: 1px solid var(--line);
  background: none;
  text-align: left;
}
.promo-item strong { display: block; font-size: 1.05rem; }
.promo-item span.text { color: var(--muted); font-size: 0.9rem; }
.promo-item .chev { width: 16px; height: 16px; color: #9aa7b4; }
.promo.thumb { width: 72px; height: 72px; padding: 4px; justify-content: center; }
.thumb .promo-flags .crest { width: 26px; height: 26px; }
.thumb .balls span { width: 18px; height: 18px; font-size: 0.6rem; }
.thumb .wheel { width: 38px; height: 38px; }
.thumb .prize { font-size: 0.62rem; }
.thumb .icon.bolt { width: 34px; height: 34px; }

/* Jackpot and results sheets */
.jp-prize { display: grid; gap: 2px; margin-bottom: 12px; padding: 14px; border-radius: 10px; background: var(--ink); color: #fff; text-align: center; }
.jp-prize strong { color: var(--gold); font-size: 1.8rem; font-variant-numeric: tabular-nums; }
.jp-prize small { color: #cfe6f5; }
.jp-row { display: grid; grid-template-columns: minmax(0, 1fr) repeat(3, 44px); align-items: center; gap: 6px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.jp-row div { display: grid; min-width: 0; font-size: 0.9rem; }
.jp-row div span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jp-row small { color: var(--muted); }
.jp-btn { height: 38px; border: 1px solid var(--line); border-radius: 4px; background: var(--bg); font-weight: 700; }
.jp-btn.on { background: var(--green); border-color: var(--green); color: #fff; }
.jp-submit { margin-top: 12px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.result-score { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ===== vFootball ===== */
.v-title { margin: 0 auto 0 4px; font-size: 1.3rem; }
.v-top { padding-bottom: 0; }
.v-status { display: grid; gap: 10px; padding: 14px 16px; background: var(--card); border-bottom: 1px solid var(--line); }
.v-status-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.v-status-row > div:first-child { display: grid; gap: 3px; }
.v-hint { color: var(--muted); font-size: 0.85rem; }
.v-timer { display: grid; justify-items: end; gap: 4px; }
.v-timer strong { font-size: 1.6rem; font-variant-numeric: tabular-nums; line-height: 1; }
.phase-pill { border-radius: 10px; padding: 2px 10px; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.5px; text-transform: uppercase; white-space: nowrap; }
.phase-pill.bet { background: #d9eefa; color: var(--green); }
.phase-pill.live { background: var(--red); color: #fff; }
.phase-pill.result { background: var(--bg); color: var(--muted); }
.v-results { padding: 0 16px 16px; }
.v-mini {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 12px 16px 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.v-mini div { display: grid; gap: 2px; }
.v-mini span { color: var(--muted); font-size: 0.85rem; font-variant-numeric: tabular-nums; }
.az-note .btn { margin-top: 4px; }
.az-note p { margin: 0 0 10px; }

/* ===== Games ===== */
.g-top .bets-bar { padding-bottom: 14px; }
.games-page { padding: 16px; }
.games-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.game-tile {
  display: grid;
  gap: 8px;
  padding: 0;
  border: none;
  background: none;
  text-align: left;
}
.game-tile .promo { width: 100%; height: 140px; }
.game-tile .promo-title { font-size: 1.1rem; }
.game-tile .icon.bolt { width: 56px; height: 56px; }
.game-tile .wheel { width: 64px; height: 64px; }
.game-text { color: var(--muted); font-size: 0.88rem; line-height: 1.3; }
.icon.jet-art { color: #ffffff; transform: rotate(-10deg); }
.game-controls { display: grid; margin-top: 14px; }
.game-controls label { font-size: 0.85rem; font-weight: 600; color: var(--muted); margin-bottom: 4px; }

.jet-history { display: flex; gap: 6px; margin-bottom: 10px; }
.jet-chip {
  flex-shrink: 0;
  padding: 3px 10px;
  border-radius: 12px;
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 0.8rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.jet-chip.mid { background: #ede9fe; color: #6d28d9; }
.jet-chip.big { background: #fce7f3; color: #be185d; }
.jet-screen {
  position: relative;
  height: 230px;
  overflow: hidden;
  border-radius: 12px;
  background: radial-gradient(circle at 50% 120%, #3a0d14, #12070a 70%);
}
.jet-screen canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.jet-mult {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 3.2rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}
.jet-mult.crashed { color: var(--red); }
.jet-mult.cashed { color: #4ade80; }
.jet-msg { position: absolute; left: 0; right: 0; bottom: 12px; text-align: center; color: #e2d4d6; font-size: 0.9rem; pointer-events: none; }
.jet-btn { font-size: 1.1rem; padding: 14px; }

.lucky-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.lucky-num {
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.lucky-num.on { background: var(--gold); border-color: var(--gold); color: #111; }
.lucky-num.drawn { box-shadow: inset 0 0 0 3px var(--green); }
.lucky-balls { display: flex; justify-content: center; gap: 8px; margin: 16px 0 4px; }
.lucky-balls span {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #dcebf5;
  color: var(--muted);
  font-weight: 800;
  box-shadow: inset -4px -4px 8px rgba(0, 0, 0, 0.15);
}
.lucky-balls span.hit { background: var(--win); color: #fff; }
.lucky-balls span.miss { background: #60a5fa; color: #fff; }
.lucky-result { text-align: center; font-weight: 700; margin: 6px 0 0; }

.dice-stage { display: grid; place-items: center; padding: 24px 0; background: var(--ink); border-radius: 12px; }
.die {
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: #fff;
  color: var(--ink);
  font-size: 3rem;
  font-weight: 800;
  box-shadow: 0 6px 0 #bfd6e6;
}
.dice-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

/* ===== Games lobby ===== */
.gh-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: var(--ink);
  border-bottom: 2px solid var(--gold);
  color: #fff;
}
.gh-logo {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-style: italic;
  font-weight: 800;
  font-size: 1.6rem;
}
.gh-logo span {
  background: var(--gold);
  color: var(--ink);
  border-radius: 12px;
  padding: 0 10px;
  font-size: 1.1rem;
  line-height: 1.4;
  letter-spacing: 0.5px;
}
.gh-balance {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px 3px 3px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 4px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.gh-tools { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 10px; padding: 16px 16px 4px; }
.gh-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid #9fc3da;
  border-radius: 6px;
  background: var(--card);
  color: #8b96a1;
}
.gh-search:focus-within { outline: 2px solid var(--gold); }
.gh-search input { flex: 1; min-width: 0; padding: 12px 0; border: none; outline: none; background: transparent; font: inherit; font-size: 1rem; color: var(--text); }
.gh-select {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border-radius: 6px;
  background: #d9eefa;
  color: #075985;
}
.gh-select:focus-within { outline: 2px solid var(--green); }
.gh-select select {
  flex: 1;
  min-width: 0;
  padding: 12px 0;
  border: none;
  outline: none;
  background: transparent;
  color: #075985;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  appearance: none;
  cursor: pointer;
}
.gh-select .chev { width: 20px; height: 20px; pointer-events: none; }
.gh-h { margin: 22px 16px 12px; font-size: 1.3rem; }
.gh-h small { color: var(--muted); font-weight: 500; font-size: 0.9rem; }

.gh-promos { display: flex; gap: 12px; padding: 0 16px; scroll-snap-type: x mandatory; }
.gh-promo {
  position: relative;
  flex: 0 0 min(78%, 300px);
  height: 125px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 10px 14px;
  border: none;
  border-radius: 8px;
  overflow: hidden;
  scroll-snap-align: start;
  color: #fff;
  text-align: right;
}
.gh-promo-art .art-svg, .gh-promo-art .art-balls { width: 100%; max-width: 120px; }
.gh-promo-text { display: grid; line-height: 0.95; }
.gh-promo-text small { font-size: 0.95rem; font-weight: 800; letter-spacing: 1px; }
.gh-promo-text strong {
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-style: italic;
  font-size: 1.9rem;
  color: var(--gold);
  text-shadow: 0 2px 0 #000;
}
.gh-brand { position: absolute; top: 6px; right: 10px; font-size: 0.6rem; font-weight: 800; font-style: italic; opacity: 0.85; }

.gh-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 0 16px; }
.gtile-wrap { position: relative; }
.gtile {
  width: 100%;
  aspect-ratio: 1;
  max-width: 100%;
  display: grid;
  grid-template-rows: 1fr auto;
  align-items: center;
  justify-items: center;
  padding: 26px 6px 10px;
  border: none;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 8px rgba(15, 25, 35, 0.25);
}
.gtile:hover { filter: brightness(1.12); }
.gtile-art { display: grid; place-items: center; width: 100%; }
.gtile-art .art-svg { width: 88%; }
.gt-title {
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-style: italic;
  font-weight: 800;
  font-size: 1.25rem;
  line-height: 0.95;
  text-align: center;
  text-transform: uppercase;
  color: var(--gold);
  text-shadow: 0 2px 0 #000, 0 0 8px rgba(0, 0, 0, 0.5);
}
.rank {
  position: absolute;
  top: 0;
  left: 8px;
  width: 30px;
  height: 40px;
  display: grid;
  place-items: start center;
  padding-top: 3px;
  background: var(--red);
  color: #fff;
  font-size: 1.35rem;
  font-weight: 800;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 80%, 0 100%);
  pointer-events: none;
}
.heart {
  position: absolute;
  top: 6px;
  right: 6px;
  display: flex;
  padding: 3px;
  border: none;
  background: none;
  color: #fff;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.6));
}
.heart .icon { width: 24px; height: 24px; }
.heart.on { color: var(--red); }
.heart.on .icon { fill: var(--red); }

.art-wheel { width: 64px; height: 64px; box-shadow: 0 0 0 4px #f5b700; }
.art-balls span { width: 28px; height: 28px; font-size: 0.8rem; }

.week { margin: 26px 16px 0; }
.week-track { display: flex; scroll-snap-type: x mandatory; border-radius: 10px; }
.week-slide {
  position: relative;
  flex: 0 0 100%;
  height: 190px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 8px;
  padding: 34px 16px 14px;
  border: none;
  scroll-snap-align: start;
  color: #fff;
  text-align: left;
}
.week-label {
  position: absolute;
  top: 0;
  left: 0;
  padding: 4px 22px 4px 14px;
  background: var(--green);
  font-size: 0.8rem;
  font-weight: 800;
  font-style: italic;
  letter-spacing: 0.5px;
  clip-path: polygon(0 0, 100% 0, 88% 100%, 0 100%);
}
.week-art { display: grid; place-items: center; }
.week-art .art-svg { width: 100%; max-width: 190px; }
.week-art .art-wheel { width: 110px; height: 110px; }
.week-art .art-balls span { width: 40px; height: 40px; font-size: 1rem; }
.week-text { display: grid; gap: 6px; }
.week-text strong {
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-style: italic;
  font-weight: 800;
  font-size: 2.2rem;
  line-height: 0.9;
  text-transform: uppercase;
  color: var(--gold);
  text-shadow: 0 3px 0 #000;
}
.week-text small { font-size: 0.9rem; color: #eaf5fc; }
.week-dots { display: flex; justify-content: center; gap: 10px; padding: 14px 0 4px; }
.week-dot { width: 10px; height: 10px; padding: 0; border: none; border-radius: 50%; background: #bfd6e6; }
.week-dot.on { background: var(--green); }

.game-head { display: grid; grid-template-columns: auto 1fr; column-gap: 8px; align-items: center; padding: 12px 16px; background: var(--card); border-bottom: 1px solid var(--line); }
.game-head h2 { font-size: 1.2rem; }
.game-head span { grid-column: 2; color: var(--muted); font-size: 0.85rem; }

/* Zenna Kick */
.pitch { position: relative; height: 230px; overflow: hidden; border-radius: 12px; background: repeating-linear-gradient(180deg, #16804a 0 28px, #13733f 28px 56px); }
.goal {
  position: absolute;
  top: 24px;
  left: 12%;
  right: 12%;
  height: 110px;
  border: 4px solid #fff;
  border-bottom: none;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.18) 0 1px, transparent 1px 12px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.18) 0 1px, transparent 1px 12px);
}
.keeper {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 34px;
  height: 70px;
  margin-left: -17px;
  border-radius: 14px 14px 4px 4px;
  background: var(--gold);
  box-shadow: inset 0 -18px 0 #1d4ed8;
  transition: left 0.45s ease, transform 0.45s ease;
}
.keeper.dive-left { left: 18%; transform: rotate(-65deg); }
.keeper.dive-right { left: 82%; transform: rotate(65deg); }
.keeper.dive-centre { transform: translateY(-14px); }
.kick-ball {
  position: absolute;
  bottom: 18px;
  left: 50%;
  width: 28px;
  height: 28px;
  margin-left: -14px;
  border-radius: 50%;
  background: #fff;
  box-shadow: inset -4px -4px 0 rgba(0, 0, 0, 0.18);
  transition: left 0.45s ease, bottom 0.45s ease, transform 0.45s ease;
}
.kick-ball.to-left { left: 22%; bottom: 150px; transform: scale(0.7); }
.kick-ball.to-centre { bottom: 168px; transform: scale(0.7); }
.kick-ball.to-right { left: 78%; bottom: 150px; transform: scale(0.7); }
.kick-buttons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.kick-buttons .btn { padding-inline: 6px; }

/* Spin da Bottle */
.bottle-stage { display: grid; place-items: center; padding: 20px 0; border-radius: 12px; background: radial-gradient(circle, #c98b2e, #5a320a 80%); }
.bottle-board { position: relative; width: 220px; height: 220px; border-radius: 50%; background: #7a4b12; border: 4px solid var(--gold); }
.bottle-label { position: absolute; left: 0; right: 0; text-align: center; color: #fff; font-weight: 800; letter-spacing: 1px; }
.bottle-label.up { top: 10px; }
.bottle-label.down { bottom: 10px; }
.bottle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 44px;
  height: 132px;
  margin: -66px 0 0 -22px;
  transition: transform 2.2s cubic-bezier(0.17, 0.67, 0.2, 1);
}
.bottle svg { width: 100%; height: 100%; display: block; }

@media (prefers-reduced-motion: reduce) {
  .bottle, .keeper, .kick-ball { transition: none; }
}

/* ===== Deposit page ===== */
.app.no-nav .bottom-nav, .app.no-nav .slip-fab { display: none; }
.app.no-nav { padding-bottom: 24px; }
#view-deposit { background: #f7fbfe; min-height: 100vh; }
.dep-top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 14px 16px;
  background: var(--ink);
  border-bottom: 2px solid var(--gold);
  color: #fff;
}
.dep-top h1 { font-size: 1.3rem; }
.dep-back { justify-self: start; display: flex; align-items: center; gap: 2px; padding: 0; border: none; background: none; color: #fff; font-size: 1.15rem; }
.dep-back .icon { width: 26px; height: 26px; }
.dep-help {
  justify-self: end;
  width: 32px;
  height: 32px;
  border: 2.5px solid #fff;
  border-radius: 50%;
  background: none;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1;
}
.dep-tabs { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--card); border-bottom: 1px solid var(--line); }
.dep-tab {
  padding: 14px 4px 11px;
  border: none;
  border-bottom: 4px solid transparent;
  background: none;
  font-size: 1.1rem;
  white-space: nowrap;
}
.dep-tab.active { font-weight: 700; border-bottom-color: var(--green); }
.dep-body { display: grid; gap: 0; padding: 24px 16px 32px; }

.dep-field {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 70px;
  padding: 0 20px;
  margin-bottom: 24px;
  border: 1px solid #a9c6da;
  border-radius: 2px;
  background: var(--card);
  font-size: 1.15rem;
  text-align: left;
}
.dep-field.readonly { background: #eef1f4; }
.dep-field .icon { width: 26px; height: 26px; color: var(--muted); }
.dep-net .net-name { margin-right: auto; }
.dep-switch { display: flex; align-items: center; gap: 10px; color: var(--text); font-size: 1rem; }
.dep-switch .icon { color: var(--muted); }
.dep-balance { margin: -8px 0 16px; text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.dep-amount { justify-content: space-between; margin-bottom: 12px; cursor: text; }
.dep-amount input {
  width: 50%;
  border: none;
  outline: none;
  background: transparent;
  font: inherit;
  text-align: right;
  color: var(--text);
}
.dep-amount:focus-within { border-color: var(--green); box-shadow: 0 0 0 1px var(--green); }
.dep-quick { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.dep-quick button {
  padding: 13px 0;
  border: 1.5px solid var(--ink);
  border-radius: 2px;
  background: var(--card);
  font-size: 1.1rem;
  font-variant-numeric: tabular-nums;
}
.dep-quick button:hover { border-color: var(--green); color: var(--green); }
.dep-body #dep-error { margin: 8px 0 12px; }
.dep-submit {
  width: 100%;
  padding: 20px;
  border: none;
  border-radius: 2px;
  background: var(--green);
  color: #fff;
  font-size: 1.15rem;
  font-weight: 700;
}
.dep-submit:hover:not(:disabled) { background: var(--green-bright); }
.dep-submit:disabled { background: #dbe9f3; color: #a3adb8; cursor: not-allowed; }
.dep-notes { margin: 22px 0 0; padding-left: 18px; color: #9aa4ae; line-height: 1.4; }
.dep-notes-extra { margin: 0; color: #9aa4ae; line-height: 1.4; }

.net-logo {
  width: 42px;
  height: 30px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 4px;
  font-weight: 800;
  font-size: 0.8rem;
}
.net-logo.mtn { background: #ffcc00; color: #111; }
.net-logo.airteltigo { background: #ffffff; color: #e40000; box-shadow: inset 0 0 0 2px #0033a0; font-size: 1rem; }
.net-logo.telecel { background: #ffffff; color: #e30613; line-height: 0.9; box-shadow: inset 0 0 0 1px var(--line); }
.net-logo.telecel b {
  width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e30613;
  color: #fff;
  font-size: 0.7rem;
}
.net-logo.telecel small { font-size: 0.5rem; }
.net-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 8px; }
.net-option {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 12px 6px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  font-weight: 600;
}
.net-option.on { border-color: var(--green); background: #e3f3fc; }

.paybill-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  margin-bottom: 12px;
  border: 1px solid #a9c6da;
  background: var(--card);
}
.paybill-card div { display: grid; }
.paybill-card small { color: var(--muted); }
.paybill-card strong { font-size: 1.4rem; letter-spacing: 1px; }
.dep-steps { margin: 6px 0 8px; padding-left: 20px; display: grid; gap: 6px; line-height: 1.4; }
.dep-sub { margin: 18px 0 16px; font-size: 1.1rem; }
.dep-warning {
  margin: 0 0 18px;
  padding: 12px 14px;
  border-radius: 6px;
  background: #fff7db;
  color: #7a5a00;
  line-height: 1.4;
}
.dep-unavailable {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 8px;
  padding: 48px 16px 32px;
  color: var(--muted);
}
.dep-unavailable .icon { width: 46px; height: 46px; color: var(--muted); }
.dep-unavailable h2 { margin: 4px 0 0; font-size: 1.15rem; color: var(--text); }
.dep-unavailable p { margin: 0; max-width: 30ch; line-height: 1.4; }
.dep-label { margin-bottom: 6px; font-size: 0.9rem; font-weight: 600; color: var(--muted); }
.dep-input {
  width: 100%;
  padding: 16px;
  margin-bottom: 16px;
  border: 1px solid #a9c6da;
  border-radius: 2px;
  font: inherit;
  font-size: 1.1rem;
  letter-spacing: 1px;
  font-variant-numeric: tabular-nums;
}
.card-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.card-row div { display: grid; }

.momo-phone { display: grid; place-items: center; padding: 10px 0 16px; }
.momo-screen {
  width: min(100%, 280px);
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 8px solid #1f2933;
  border-radius: 22px;
  background: #f0f7fc;
  text-align: center;
}
.momo-screen p { margin: 0; line-height: 1.4; }
.momo-screen small { color: var(--muted); }
.dep-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

/* ===== Withdraw page ===== */
#view-withdraw { background: #f7fbfe; min-height: 100vh; }
.wd-tabs { grid-template-columns: repeat(2, 1fr); }
.wd-balance {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  margin: -6px 0 16px;
  font-variant-numeric: tabular-nums;
}
.wd-q {
  width: 22px;
  height: 22px;
  padding: 0;
  border: 1.8px solid var(--text);
  border-radius: 50%;
  background: none;
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1;
}
#wd-body .dep-amount { margin-bottom: 4px; }
#wd-body #wd-error { margin: 8px 0 24px; }
.wd-select { appearance: auto; background: var(--card); letter-spacing: 0; }
.wd-confirm {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px 16px;
  padding: 16px;
  margin-bottom: 14px;
  border-radius: 10px;
  background: var(--bg);
}
.wd-confirm span { color: var(--muted); }
.wd-confirm strong { text-align: right; font-variant-numeric: tabular-nums; }

/* ===== Log In panel (matches the app's login sheet) ===== */
.auth-head-btn {
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 4px;
  background: none;
  color: #fff;
  font-weight: 700;
}
#view-login, #view-register {
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
#view-login { background: var(--ink-deep); padding-top: 16px; }
.login-sheet {
  position: relative;
  min-height: calc(100vh - 16px);
  padding: 72px 24px 32px;
  border-radius: 14px 14px 0 0;
  background: #fafafa;
}
.login-close {
  position: absolute;
  top: 12px;
  right: 16px;
  padding: 0 6px;
  border: none;
  background: none;
  color: #8b96a1;
  font-size: 2.6rem;
  font-weight: 300;
  line-height: 1;
}
.login-form { display: grid; }
.login-country { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; font-size: 1.15rem; color: #1c1c1e; }
.login-flag { width: 32px; height: 22px; display: inline-block; flex-shrink: 0; overflow: hidden; }
.login-flag svg { width: 100%; height: 100%; display: block; }
.login-change {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 12px;
  padding: 0;
  border: none;
  background: none;
  color: var(--green);
  font: inherit;
}
.login-change .icon { width: 20px; height: 20px; stroke-width: 3; }
.login-box {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 70px;
  padding: 0 22px;
  margin-bottom: 24px;
  border: 1.5px solid #9aa3ad;
  border-radius: 2px;
  background: #fff;
  cursor: text;
}
.login-box:focus-within { border-color: var(--green); }
.login-cc { color: #8b96a1; font-size: 1.15rem; }
.login-box input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  color: #1c1c1e;
  font: inherit;
  font-size: 1.15rem;
}
.login-box input::placeholder { color: #9aa3ad; }
.login-box .eye-toggle { color: #9aa3ad; }
.login-form .message { margin: -12px 0 12px; }
.login-btn {
  height: 70px;
  border: none;
  border-radius: 2px;
  background: var(--green);
  color: #fff;
  font: inherit;
  font-size: 1.2rem;
}
.login-btn:hover:not(:disabled) { background: var(--green-bright); }
.login-btn:disabled { background: #dbe9f3; color: #a3adb8; cursor: not-allowed; }
.login-links { display: flex; justify-content: space-between; gap: 12px; margin: 30px 0 10px; }
.login-links button, .login-deactivate button {
  padding: 0;
  border: none;
  background: none;
  color: var(--green);
  font: inherit;
  font-size: 1.1rem;
}
.login-or { display: flex; align-items: center; gap: 14px; color: #9aa3ad; font-size: 1.15rem; }
.login-or::before, .login-or::after { content: ""; flex: 1; height: 1px; background: #e2e6ea; }
.login-deactivate { margin: 26px 0 0; text-align: center; color: #8b96a1; font-size: 1.05rem; line-height: 1.5; }
.login-deactivate button { font-size: inherit; }
.login-demo { margin: 40px 0 0; text-align: center; color: #b0b8c1; font-size: 0.85rem; }
.country-list li.on { border-color: var(--green); }
.country-name { display: flex; align-items: center; gap: 10px; }
.country-name small { color: var(--muted); }

/* ===== Register panel (same style as Log In) ===== */
#view-register { background: var(--ink-deep); padding-top: 16px; }
.reg-title {
  margin: 0 0 34px;
  text-align: center;
  color: #2b313a;
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1.3;
}
.reg-stepper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0 0 34px;
  padding: 0;
  list-style: none;
}
.reg-stepper li { position: relative; display: grid; gap: 10px; color: #c9d0d7; font-size: 1rem; }
.reg-stepper li:nth-child(2) { justify-items: center; text-align: center; }
.reg-stepper li:nth-child(3) { justify-items: end; text-align: right; }
/* the grey line joining the three dots */
.reg-stepper li::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 0;
  right: 0;
  height: 2px;
  background: #e2e6ea;
}
.reg-stepper li:first-child::before { left: 8px; }
.reg-stepper li:last-child::before { right: 8px; }
.reg-stepper .dot {
  position: relative;
  width: 18px;
  height: 18px;
  border: 2px solid #d5dbe1;
  border-radius: 50%;
  background: #fafafa;
}
.reg-stepper li.on { color: #2b313a; font-weight: 600; }
.reg-stepper li.on .dot { border-color: var(--green); box-shadow: inset 0 0 0 3px #fafafa; background: var(--green); }
.reg-stepper li.done { color: var(--green); }
.reg-stepper li.done .dot { border-color: var(--green); background: var(--green); }
.reg-stepper li.done::before { background: var(--green); }
.reg-login { margin: 34px 0 0; text-align: center; }
.reg-login button { padding: 0; border: none; background: none; color: var(--green); font: inherit; font-size: 1.1rem; }
.login-input {
  height: 70px;
  padding: 0 22px;
  margin-bottom: 24px;
  border: 1.5px solid #9aa3ad;
  border-radius: 2px;
  background: #fff;
  color: #1c1c1e;
  font: inherit;
  font-size: 1.15rem;
}
.login-input:focus { border-color: var(--green); outline: none; }
.login-input#reg-user, .login-input#reg-ref { text-transform: uppercase; }
.login-input::placeholder { text-transform: none; color: #9aa3ad; }
.login-form .pw-rules { margin: -14px 0 20px; }
.login-form .auth-check { margin-bottom: 20px; color: #4b5563; }
.login-form .otp-boxes { margin-bottom: 18px; }
.login-form .auth-submit { height: 70px; }

/* ===== Forgot Password and SMS code ===== */
#view-login .auth-body { background: #fafafa; }
.auth-body { display: grid; padding: 20px 20px 36px; min-height: 80vh; }
.auth-logo {
  justify-self: center;
  margin: 8px 0 6px;
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-style: italic;
  font-weight: 800;
  font-size: 2rem;
  color: var(--ink);
}
.auth-logo span { color: var(--gold); }
.auth-sub { margin: 0 0 18px; color: var(--muted); line-height: 1.45; }
.auth-sub strong { color: var(--text); }
.auth-label { margin-bottom: 6px; font-size: 0.9rem; font-weight: 600; color: #4b5563; }
.auth-phone, .auth-pass {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 56px;
  padding: 0 14px;
  margin-bottom: 16px;
  border: 1.5px solid #a9c6da;
  border-radius: 2px;
  background: #fff;
}
.auth-phone:focus-within, .auth-pass:focus-within, .auth-input:focus { border-color: var(--green); outline: none; }
.auth-phone .cc { display: flex; align-items: center; gap: 8px; padding-right: 12px; border-right: 1px solid var(--line); color: var(--muted); }
.auth-phone .crest { width: 22px; height: 22px; }
.auth-phone input, .auth-pass input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  font: inherit;
  font-size: 1.05rem;
}
.auth-input {
  height: 56px;
  padding: 0 14px;
  margin-bottom: 16px;
  border: 1.5px solid #a9c6da;
  border-radius: 2px;
  background: #fff;
  font: inherit;
  font-size: 1.05rem;
  text-transform: uppercase;
}
.eye-toggle { display: flex; padding: 4px; border: none; background: none; color: var(--muted); }
.pw-rules { list-style: none; margin: -8px 0 16px; padding: 0; display: grid; gap: 4px; font-size: 0.85rem; color: var(--muted); }
.pw-rules li::before { content: "○"; display: inline-block; width: 18px; }
.pw-rules li.ok { color: var(--win); }
.pw-rules li.ok::before { content: "✓"; font-weight: 800; }
.auth-check { display: flex; align-items: flex-start; gap: 10px; line-height: 1.4; }
.auth-check input { width: 20px; height: 20px; margin: 0; flex-shrink: 0; accent-color: var(--green); }
.auth-check.terms { margin: 4px 0 8px; }
.link-green { padding: 0; border: none; background: none; color: var(--green); font: inherit; font-weight: 600; }
.link-green:disabled { color: var(--muted); cursor: default; }
.auth-submit {
  height: 58px;
  margin-top: 4px;
  border: none;
  border-radius: 2px;
  background: var(--green);
  color: #fff;
  font: inherit;
  font-size: 1.15rem;
  font-weight: 700;
}
.auth-submit:hover { background: var(--green-bright); }
.auth-switch { margin: 18px 0 0; text-align: center; color: var(--muted); }
.auth-demo { margin: 24px 0 0; text-align: center; color: #b0b8c1; font-size: 0.85rem; }
.reg-steps { display: flex; justify-content: center; gap: 28px; padding: 14px 16px 0; background: #fafafa; color: var(--muted); font-weight: 600; }
.reg-steps span { display: flex; align-items: center; gap: 8px; }
.reg-steps b {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #dbe9f3;
  color: var(--muted);
}
.reg-steps .on { color: var(--text); }
.reg-steps .on b, .reg-steps .done b { background: var(--green); color: #fff; }
.otp-demo {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 12px 14px;
  border-radius: 6px;
  background: #fff7db;
  color: #7a5a00;
}
.otp-demo strong { letter-spacing: 2px; }
.otp-boxes { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-bottom: 8px; }
.otp-box {
  width: 100%;
  height: 58px;
  border: 1.5px solid #a9c6da;
  border-radius: 6px;
  background: #fff;
  font: inherit;
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
}
.otp-box:focus { border-color: var(--green); outline: none; }

/* ===== Me page: guest view and Log Out ===== */
.me-guest { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: center; }
.me-guest div { display: grid; gap: 6px; }
.me-guest strong { font-size: 1.3rem; }
.me-guest span:not(.me-avatar) { color: #cfe6f5; line-height: 1.4; }
.guest-avatar { display: grid; place-items: center; background: #3a4552; color: #cfe6f5; }
.guest-avatar .icon { width: 40px; height: 40px; }
.me-account-actions { display: grid; gap: 10px; padding: 20px 16px 0; background: var(--card); }
.me-account-actions p { margin: 0; text-align: center; color: var(--muted); font-size: 0.9rem; }
.me-account-actions strong { color: var(--text); }
.me-logout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px;
  border: 1.5px solid var(--red);
  border-radius: 4px;
  background: var(--card);
  color: var(--red);
  font-size: 1.1rem;
  font-weight: 700;
}
.me-logout:hover { background: #fdecec; }
.me-switch { padding: 10px 0 20px; border: none; background: none; color: var(--green); font-weight: 600; }

/* ===== Small phones ===== */
@media (max-width: 440px) {
  .logo { font-size: 1.25rem; }
  .balance-pill .avatar { display: none; }
  .balance-pill { padding: 5px 8px; font-size: 0.85rem; }
  .topup-btn { padding: 6px 9px; }
  .top-actions { gap: 4px; }
  .row-odds { grid-template-columns: repeat(var(--n), 54px); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .bets-tabs { padding: 0 16px; }
  .code-sel .sel-time { font-size: 0.72rem; }
  .me-avatar { width: 66px; height: 66px; font-size: 1.6rem; }
  .me-balance { font-size: 1.5rem; }
  .me-money button { font-size: 1.05rem; gap: 8px; }
  .loyalty-banner { grid-template-columns: 1fr auto; }
  .loyalty-banner > .icon { display: none; }
  .me-tile { font-size: 0.85rem; }
  .az-link { font-size: 0.75rem; }
  .az-tab { font-size: 0.95rem; }
  .az-sport { padding: 18px 14px; font-size: 1rem; }
  .az-league { padding: 18px 12px 18px 16px; font-size: 0.95rem; }
  .gh-logo { font-size: 1.3rem; }
  .gh-balance .avatar { display: none; }
  .gh-balance { padding: 5px 8px; font-size: 0.85rem; }
  .gh-tools { grid-template-columns: 1fr 1fr; }
  .gt-title { font-size: 1rem; }
  .gh-grid { gap: 8px; }
  .week-text strong { font-size: 1.7rem; }
  .gh-promo-text strong { font-size: 1.6rem; }
  .dep-quick { gap: 6px; }
  .dep-quick button { font-size: 1rem; }
  .dep-field { padding: 0 14px; font-size: 1.05rem; }
  .dep-tab { font-size: 1rem; }
  .login-sheet { padding: 64px 16px 28px; }
  .login-box { padding: 0 14px; gap: 12px; }
  .login-links button { font-size: 1rem; }
  .auth-head-btn { padding: 5px 8px; }
  .reg-title { font-size: 1.3rem; }
  .reg-stepper li { font-size: 0.8rem; }
  .login-input { padding: 0 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .sheet, .toast, .big-wheel { transition: none; }
}

/* ===== Sea blue theme touches ===== */
/* Brighter aqua on the deep blue LIVE section so it stays readable */
.live .clock { color: var(--aqua); }
.live .m-tab.active { border-bottom-color: var(--aqua); }
.live .odd:hover { box-shadow: inset 0 0 0 1px var(--aqua); }
/* A soft wave of light blue behind the home page */
.app { background: linear-gradient(180deg, #e3f1fa 0, var(--bg) 320px); }

/* ===== Purple: games, jackpots and rewards =====
   Blue is for sports and money. Purple marks the fun extras. */

/* Games lobby and game pages */
.gh-top {
  background: linear-gradient(120deg, var(--purple), var(--purple-deep));
  border-bottom-color: var(--gold);
}
.gh-logo span { color: var(--purple-deep); }
.gh-select { background: var(--purple-soft); color: var(--purple-deep); }
.gh-select select { color: var(--purple-deep); }
.gh-select:focus-within { outline-color: var(--purple); }
.rank { background: var(--purple); }
.week-label { background: var(--purple); }
.week-dot.on { background: var(--purple); }
.jet-chip.mid { background: var(--purple-soft); color: var(--purple); }

/* Games icon in the bottom menu is always purple, like a games button */
.nav-item[data-view="games"] .icon { color: #a78bfa; }
.nav-item[data-view="games"].active .icon { color: #c4b5fd; }

/* Rewards on the Me page */
.loyalty-art { background: linear-gradient(110deg, var(--purple), var(--purple-deep) 60%, rgba(76, 29, 149, 0)); }
.chip-purple { background: #a78bfa; color: #1e0b3d; }
.streak-pill { background: var(--purple-soft); color: var(--purple); }
.streak-days span.done { background: var(--purple); }

/* Weekend Jackpot */
.jp-prize { background: linear-gradient(135deg, var(--purple), var(--purple-deep)); }
.jp-btn.on { background: var(--purple); border-color: var(--purple); }

/* Virtuals tab on the home page */
.f-tab.accent { color: var(--purple); }
.phase-pill.bet { background: var(--purple-soft); color: var(--purple); }

/* ===== Purple Deposit and Withdraw buttons ===== */
/* Me page */
.btn-deposit[data-action="deposit"] {
  background: var(--purple);
  border-color: var(--purple);
  color: #ffffff;
}
.btn-deposit[data-action="deposit"]:hover { background: #8b5cf6; border-color: #8b5cf6; }
.btn-withdraw[data-action="withdraw"] {
  background: var(--purple-deep);
  border-color: #a78bfa;
  color: #ffffff;
}
.btn-withdraw[data-action="withdraw"]:hover { background: #5b21b6; }

/* Deposit button in the home page top bar */
#topup-btn { background: var(--purple); color: #ffffff; }
#topup-btn:hover { background: #8b5cf6; }

/* "Top Up Now" and "Withdraw" on their own pages (grey until ready) */
#dep-submit:not(:disabled), #wd-submit:not(:disabled) { background: var(--purple); }
#dep-submit:not(:disabled):hover, #wd-submit:not(:disabled):hover { background: #8b5cf6; }

/* ===== Lighter Me page header ===== */
.me-top { background: linear-gradient(180deg, #3aa8e0, #1a86c7); }
.me-top .tier-row,
.me-top .loyalty-total small,
.me-guest span:not(.me-avatar) { color: #eef8fe; }
.me-top .tier-bar { background: rgba(255, 255, 255, 0.35); }
.me-top .tier-bar span { background: #ffffff; }
.me-top .loyalty-total strong { color: var(--gold); }
.me-tiles, .loyalty-banner { background: rgba(255, 255, 255, 0.18); }
.me-tile { border-left-color: rgba(255, 255, 255, 0.35); }
.me-watermark { opacity: 0.12; }

/* ===== Dark Mode switch on the Me page ===== */
.theme-row { grid-template-columns: 30px minmax(0, 1fr) auto 46px; }
.switch {
  position: relative;
  width: 46px;
  height: 26px;
  border-radius: 13px;
  background: #c3d3df;
  transition: background 0.2s;
}
.switch span {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s;
}
.switch.on { background: var(--purple); }
.switch.on span { transform: translateX(20px); }
@media (prefers-reduced-motion: reduce) {
  .switch, .switch span { transition: none; }
}

/* ===== DARK MODE =====
   Turned on by the switch on the Me page (adds .theme-dark to <html>).
   Most of the page uses the colour names in :root, so changing them here
   recolours everything. The rules below fix spots that use fixed light colours. */
:root.theme-dark {
  color-scheme: dark;
  --ink: #0b4f7c;
  --ink-deep: #06263b;
  --green: #1a8fd6;
  --green-bright: #3aa8e8;
  --bg: #0b1a26;
  --card: #11283a;
  --text: #e3eef7;
  --muted: #8fa9bd;
  --line: #1f3b52;
  --live-bg: #04182a;
  --purple-soft: #2e1f55;
}
.theme-dark, .theme-dark body { background: #061320; }
.theme-dark .app { background: linear-gradient(180deg, #0f2536 0, var(--bg) 320px); }
.theme-dark .light-list { --cell: #183549; --cell-text: #e3eef7; --head-bg: #0f2233; }

/* Form fields */
.theme-dark input:not([type="checkbox"]),
.theme-dark select,
.theme-dark textarea { background-color: var(--card); color: var(--text); }
.theme-dark .dep-input, .theme-dark .field, .theme-dark #stake, .theme-dark .code-form input,
.theme-dark .auth-input, .theme-dark .login-input, .theme-dark .otp-box,
.theme-dark .login-box, .theme-dark .auth-phone, .theme-dark .auth-pass, .theme-dark .dep-field,
.theme-dark .qp-input input { border-color: #2c4c66; }
.theme-dark .login-box, .theme-dark .auth-phone, .theme-dark .auth-pass, .theme-dark .az-search { background: var(--card); }

/* Panels that had fixed light backgrounds */
.theme-dark .qp-foot, .theme-dark .share-btn, .theme-dark .az-sports, .theme-dark .momo-screen,
.theme-dark .az-leagues, .theme-dark .dep-field.readonly { background: #0f2233; }
.theme-dark .az-sport:hover, .theme-dark .az-league:hover { background: #183549; }
.theme-dark .code-head { background: #173a55; }
.theme-dark .category.active { background: rgba(255, 201, 60, 0.12); }
.theme-dark .cashout-btn, .theme-dark .net-option.on { background: rgba(26, 143, 214, 0.15); }
.theme-dark .unread { background: rgba(255, 201, 60, 0.1); }
.theme-dark .dep-warning, .theme-dark .otp-demo { background: #3a3210; color: #ffd98a; }
.theme-dark .me-logout:hover { background: rgba(229, 72, 77, 0.12); }
.theme-dark .dep-submit:disabled, .theme-dark .login-btn:disabled { background: #1e3a50; color: #6d879b; }
.theme-dark #view-deposit, .theme-dark #view-withdraw { background: var(--bg); }
.theme-dark .me-top { background: linear-gradient(180deg, #0d5a8a, #083a5c); }
.theme-dark .bt-tab { background: #1b5d88; }
.theme-dark .bt-tab.active { background: var(--card); }

/* Log In and Register panels */
.theme-dark .login-sheet, .theme-dark #view-login .auth-body, .theme-dark .reg-steps { background: var(--bg); }
.theme-dark .login-country, .theme-dark .login-box input, .theme-dark .login-input,
.theme-dark .reg-title, .theme-dark .reg-stepper li.on { color: var(--text); }
.theme-dark .auth-label, .theme-dark .auth-check, .theme-dark .login-form .auth-check { color: var(--muted); }
.theme-dark .login-or::before, .theme-dark .login-or::after,
.theme-dark .reg-stepper li::before, .theme-dark .reg-steps b { background: var(--line); }
.theme-dark .reg-stepper .dot { background: var(--bg); border-color: #2c4c66; }
.theme-dark .reg-stepper li.on .dot { box-shadow: inset 0 0 0 3px var(--bg); }

/* Purple labels need lighter text on dark */
.theme-dark .gh-select, .theme-dark .gh-select select,
.theme-dark .streak-pill, .theme-dark .phase-pill.bet { color: #c4b5fd; }
.theme-dark .switch { background: #2c4c66; }

/* ===== Draggable bet slip button ===== */
.slip-fab {
  display: grid;
  place-items: center;
  touch-action: none;       /* lets you drag it on a phone without scrolling the page */
  user-select: none;
  -webkit-user-select: none;
  cursor: grab;
}
.slip-fab.dragging {
  cursor: grabbing;
  transform: scale(1.08);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
}
.slip-fab.snapping { transition: left 0.22s ease, top 0.22s ease; }
.slip-fab .fab-icon { width: 30px; height: 30px; stroke-width: 2; }
.slip-fab.empty .fab-count { background: #fff; color: var(--text); }
@media (prefers-reduced-motion: reduce) {
  .slip-fab.snapping { transition: none; }
}

/* ===== Bet slip panel (opened from the floating button) ===== */
.sheet.bet-slip { padding: 0 0 calc(12px + env(safe-area-inset-bottom, 0px)); background: var(--bg); }
.bs-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--ink-deep);
  color: #fff;
}
.bs-count {
  min-width: 32px;
  height: 32px;
  padding: 0 6px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.18);
  font-weight: 700;
}
.bs-mode { display: flex; padding: 2px; border: 1.5px solid rgba(255, 255, 255, 0.5); border-radius: 18px; }
.bs-mode button {
  padding: 4px 12px;
  border: none;
  border-radius: 14px;
  background: none;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
  font-weight: 600;
}
.bs-mode button.on.real { background: var(--win); color: #fff; }
.bs-mode button.on.sim { background: var(--purple); color: #fff; }
.bs-close { justify-self: center; display: flex; padding: 4px 10px; border: none; background: none; color: #fff; }
.bs-close .icon { width: 30px; height: 30px; stroke-width: 2.4; }
.bs-auth { display: flex; align-items: center; gap: 10px; }
.bs-auth button { padding: 0; border: none; background: none; color: #fff; font-size: 1.05rem; }
.bs-sep { width: 1px; height: 22px; background: rgba(255, 255, 255, 0.5); }
.bs-balance { font-weight: 700; color: var(--gold); font-variant-numeric: tabular-nums; }

.bs-tools { display: flex; gap: 0; padding: 10px 8px; background: var(--card); border-bottom: 1px solid var(--line); overflow-x: auto; }
.bs-tools button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: none;
  border-left: 1px solid var(--line);
  background: none;
  font-size: 1.05rem;
  white-space: nowrap;
}
.bs-tools button:first-child { border-left: none; }
.bs-tools button.on { color: var(--green); font-weight: 700; }
.bs-panel { padding: 14px 16px; background: var(--card); border-bottom: 1px solid var(--line); }
.bs-panel-title { font-size: 1.1rem; font-weight: 700; }
.bs-panel-note, .bs-panel-empty { margin: 4px 0 10px; color: var(--muted); font-size: 0.9rem; }
.bs-codes { margin: 0 0 8px; padding: 0; list-style: none; display: grid; gap: 8px; }
.bs-codes li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
}
.bs-codes li div { display: grid; }
.bs-codes small { color: var(--muted); }
.bs-pin-actions { display: flex; gap: 6px; }
.chip-btn.on { background: var(--green); border-color: var(--green); color: #fff; }
.multi-risks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.multi-risks button { display: grid; gap: 2px; padding: 10px 6px; border: 1.5px solid var(--line); border-radius: 8px; background: var(--card); }
.multi-risks small { color: var(--muted); font-size: 0.75rem; }
.multi-risks button.on { border-color: var(--green); background: #e3f3fc; }

.bs-rec-head {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 16px;
  border: none;
  border-bottom: 1px solid var(--line);
  background: var(--card);
  text-align: left;
}
.bs-rec-head span { display: grid; gap: 2px; }
.bs-rec-head strong { font-size: 1.15rem; }
.bs-rec-head small { color: var(--muted); font-size: 0.9rem; }
.bs-empty .bs-codes { padding: 12px 16px 4px; margin: 0; background: var(--card); }
.bs-book { padding: 18px 16px 12px; background: var(--card); }
.bs-book h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 1.15rem; }
.bs-info {
  width: 20px;
  height: 20px;
  padding: 0;
  border: 1.6px solid var(--text);
  border-radius: 50%;
  background: none;
  font-size: 0.75rem;
  font-weight: 800;
  font-style: italic;
  line-height: 1;
}
.bs-tip { margin: -4px 0 12px; color: var(--muted); font-size: 0.9rem; line-height: 1.4; }
.bs-code-row { display: grid; grid-template-columns: 1fr auto; }
.bs-code-row input {
  height: 54px;
  padding: 0 16px;
  border: 1.5px solid #a9c6da;
  border-right: none;
  border-radius: 2px 0 0 2px;
  font: inherit;
  font-size: 1.05rem;
  text-transform: uppercase;
}
.bs-code-row input::placeholder { text-transform: none; }
.bs-code-row input:focus { outline: none; border-color: var(--green); }
.bs-code-row button {
  min-width: 110px;
  border: none;
  border-radius: 0 2px 2px 0;
  background: var(--green);
  color: #fff;
  font-size: 1.05rem;
}
.bs-code-row button:disabled { background: #dbe9f3; color: #a3adb8; cursor: not-allowed; }

.bs-filled { padding: 12px 16px 4px; background: var(--card); }
.bs-filled-head { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.bs-filled-head span { margin-right: auto; font-weight: 700; }
#place-bet-btn.sim { background: var(--purple); border-color: var(--purple); }
.bet-slip.sim-mode .bs-filled { box-shadow: inset 4px 0 0 var(--purple); }

.theme-dark .bs-code-row button:disabled { background: #1e3a50; color: #6d879b; }
.theme-dark .multi-risks button.on { background: rgba(26, 143, 214, 0.15); }

/* "B" inside the floating bet slip button */
#fab-odds { display: grid; justify-items: center; line-height: 1; }
.fab-b {
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-style: italic;
  font-weight: 800;
  font-size: 2rem;
  color: #fff;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.2);
}
.slip-fab:not(.empty) .fab-b { font-size: 1.5rem; }
.fab-sub { margin-top: 1px; font-size: 0.72rem; font-weight: 700; font-variant-numeric: tabular-nums; }

/* ===== Tap a match to see all markets ===== */
.row-info { cursor: pointer; border-radius: 4px; }
.row-info:hover .team-name { text-decoration: underline; }
.row-info:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.more-markets { display: inline-block; margin-top: 3px; font-size: 0.8rem; font-weight: 600; color: var(--green); }
.live .more-markets { color: var(--aqua); }

/* Bet slip button bounces when a pick is added */
@keyframes fab-bump { 0% { transform: scale(1); } 40% { transform: scale(1.22); } 100% { transform: scale(1); } }
.slip-fab.bump { animation: fab-bump 0.4s ease; }
@media (prefers-reduced-motion: reduce) { .slip-fab.bump { animation: none; } }

/* ===== Match page ===== */
.mp-top {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 30;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--ink);
  border-bottom: 2px solid var(--gold);
  color: #fff;
}
.mp-league { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.mp-id { font-size: 0.8rem; opacity: 0.8; font-variant-numeric: tabular-nums; }
.mp-board {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  padding: 20px 16px;
  background: linear-gradient(180deg, var(--ink), var(--ink-deep));
  color: #fff;
}
.mp-team { display: grid; justify-items: center; gap: 8px; text-align: center; font-weight: 700; font-size: 1.05rem; }
.mp-team .crest { width: 48px; height: 48px; font-size: 1.2rem; box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.35); }
.mp-centre { display: grid; justify-items: center; gap: 4px; }
.mp-bigscore { font-size: 2.2rem; font-variant-numeric: tabular-nums; }
.mp-kick { font-size: 1.1rem; }
.mp-clock { font-size: 0.85rem; color: var(--aqua); }
.mp-locked { display: flex; align-items: center; gap: 8px; margin: 0; padding: 10px 16px; background: #fff7db; color: #7a5a00; font-weight: 600; }
.mp-tabs { display: flex; gap: 8px; padding: 12px 16px; background: var(--card); border-bottom: 1px solid var(--line); }
.mp-tabs button {
  flex-shrink: 0;
  padding: 7px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
  font-weight: 600;
  white-space: nowrap;
}
.mp-tabs button.on { background: var(--green); border-color: var(--green); color: #fff; }
.mp-markets { display: grid; gap: 10px; padding: 12px 12px 4px; }
.mp-card { border: 1px solid var(--line); border-radius: 8px; background: var(--card); overflow: hidden; }
.mp-card-head {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  border: none;
  background: none;
  font-size: 1rem;
  font-weight: 700;
  text-align: left;
}
.mp-card-head .icon { color: var(--muted); }
.mp-grid { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: 6px; padding: 0 12px 12px; }
.mp-odd {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  min-height: 46px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: var(--bg);
  font-size: 0.9rem;
  text-align: left;
}
.mp-odd span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
.mp-odd strong { font-variant-numeric: tabular-nums; }
button.mp-odd:hover { border-color: var(--green-bright); }
.mp-odd.selected { background: var(--green); color: #fff; }
.mp-odd.selected span { color: #eaf5fc; }
.mp-odd.empty, .mp-odd.locked { opacity: 0.55; }
@media (max-width: 440px) {
  .mp-odd { flex-direction: column; align-items: flex-start; gap: 2px; font-size: 0.85rem; }
  .mp-team { font-size: 0.95rem; }
}
.theme-dark .mp-locked { background: #3a3210; color: #ffd98a; }

/* =====================================================
   PHONES AND TABLETS (up to 1023px): everything fits the screen
   and every button is big enough for a thumb (about 40px).
   Small icons keep their look: an invisible ::after grows the tap area.
   ===================================================== */
@media (max-width: 1023px) {
  /* Top bar: the balance shrinks (with ...) before the bar can spill off screen */
  .topbar { padding: 10px 12px; gap: 8px; }
  .topbar .logo { flex-shrink: 0; }
  .top-actions { min-width: 0; }
  .balance-pill { min-width: 0; min-height: 36px; }
  .balance-pill #balance { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .icon-btn { min-width: 40px; min-height: 40px; justify-content: center; align-items: center; }
  .topup-btn, .auth-head-btn { flex-shrink: 0; min-height: 36px; }

  /* Room under the last row so the bet slip button never hides it */
  .app { padding-bottom: calc(156px + env(safe-area-inset-bottom, 0px)); }
  .app.no-nav { padding-bottom: env(safe-area-inset-bottom, 0px); }

  /* Text tabs: taller tap area, same look */
  .featured-tabs { padding-block: 4px 0; }
  .f-tab { padding-block: 10px; }
  .live-head { padding-block: 4px; }
  .s-tab { padding-block: 12px; }

  /* Invisible bigger tap areas */
  .logo, .link-btn, .remove-btn, .help-link, .me-name, .eye-btn, .gear-btn,
  .login-change, .eye-toggle, .login-links button, .login-deactivate button,
  .bs-info, .bs-mode button, .bs-auth button, .back-btn, .dep-help, .week-dot,
  .chip-btn, .btn-small, .wd-q, .reg-login button { position: relative; }
  .logo::after, .link-btn::after, .remove-btn::after, .help-link::after, .me-name::after,
  .eye-btn::after, .gear-btn::after, .login-change::after, .eye-toggle::after,
  .login-links button::after, .login-deactivate button::after, .bs-info::after,
  .bs-mode button::after, .bs-auth button::after, .back-btn::after, .dep-help::after,
  .heart::after, .week-dot::after, .chip-btn::after, .btn-small::after,
  .wd-q::after, .reg-login button::after {
    content: "";
    position: absolute;
    inset: -8px;
  }
  .logo::after { inset: -10px -4px; }
  .link-btn::after { inset: -12px -6px; }
  .remove-btn::after { inset: -12px -14px; }
  .help-link::after { inset: -10px -8px; }
  .me-name::after, .login-change::after, .login-links button::after,
  .login-deactivate button::after, .bs-auth button::after, .reg-login button::after { inset: -10px -4px; }
  .eye-btn::after { inset: -9px; }
  .gear-btn::after, .dep-help::after { inset: -4px; }
  .bs-info::after, .wd-q::after { inset: -10px; }
  .bs-mode button::after { inset: -9px 0; }
  .back-btn::after, .heart::after { inset: -6px; }
  .week-dot::after { inset: -15px -6px; }
  .chip-btn::after, .btn-small::after { inset: -6px 0; }
  .week-dots { gap: 14px; }
  .remove-btn { padding: 2px 4px; }

  /* Real size changes where there is room */
  .close-btn { min-width: 40px; min-height: 40px; margin: -6px -8px -6px 0; }
  .dep-back { min-height: 40px; }
  .chip-btn { min-height: 34px; }
  .qp-input input { min-height: 38px; }

  /* Tiny labels were hard to read */
  .promo-tag { font-size: 0.7rem; }
  .prize small, .thumb .prize { font-size: 0.7rem; }
}

/* Narrow phones (360px and under): tighter top bar and match rows */
@media (max-width: 360px) {
  .topbar .logo { font-size: 1.1rem; }
  .topup-btn { padding: 6px 8px; }
  .top-actions { gap: 2px; }
  .balance-pill { padding: 5px 6px; font-size: 0.8rem; }
  .odds-header, .row { padding-inline: 12px; gap: 6px; }
  .bs-head { gap: 8px; padding-inline: 10px; }
  .bs-balance { white-space: nowrap; font-size: 0.9rem; }
  .row-odds { grid-template-columns: repeat(var(--n), 50px); gap: 3px; }
}
