/* ==========================================================================
   Livesoccer.ug "Scoreboard" restyle  (loaded after site.css, so it can be removed to go back)
   Dense one-line-per-team rows in the style of a live-score app:

       12:45 |  [crest] Home team                    2
             |  [crest] Away team                    1

   - status / kick-off time in a fixed left column
   - teams stacked, scores in a right-hand column
   - league headers are compact, collapsible, with a Table link
   - tabs above the list: All / Live / Finished / Scheduled
   live.js keeps working: every class and data-* attribute it targets is unchanged.
   ========================================================================== */

:root {
  --fs-row-h: 26px;          /* height of one team line */
  --fs-status-w: 58px;       /* width of the time / status column */
}

/* ------------------------------------------------------------------ league header */
.bp-league-head, .league {
  margin: 10px 8px 0;
  padding: 7px 8px 7px 12px;
  gap: 6px;
  background: var(--bg-surface);
  border-radius: 8px 8px 0 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .01em;
}
.bp-league-head .bp-badge-img { width: 18px; height: 18px; }
.bp-league-head .bp-lg-txt {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.bp-tbl-chip { font-size: 11px; font-weight: 600; color: var(--text-muted); }
.bp-tbl-chip:hover { color: var(--primary); }
.fs-collapse {
  flex: 0 0 auto; width: 26px; height: 26px; padding: 0; margin: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 6px; background: transparent; color: var(--text-muted);
  cursor: pointer;
}
.fs-collapse:hover { background: var(--bg-subtle); color: var(--text-primary); }
.fs-collapse svg { width: 16px; height: 16px; transition: transform .15s ease; }
.bp-league-head.is-collapsed .fs-collapse svg { transform: rotate(-90deg); }
.bp-league-head.is-collapsed { border-radius: 8px; margin-bottom: 4px; }
.bp-match-card[hidden], .bp-league-head[hidden], .fs-hide { display: none !important; }

/* ------------------------------------------------------------------ match row */
.bp-match-card.sb-row {
  padding: 4px 12px 4px 0;
}
.bp-match-card.sb-row::after { left: calc(var(--fs-status-w) + 4px); right: 0; }

.sb-main {
  grid-template-columns: var(--fs-status-w) minmax(0, 1fr) 30px;
  grid-template-rows: var(--fs-row-h) var(--fs-row-h);
  column-gap: 8px; row-gap: 0;
  align-items: center;
}
/* status and score become direct grid items, so they can span both team lines */
.sb-center { display: contents; }

.sb-center .status {
  grid-column: 1; grid-row: 1 / 3;
  align-self: stretch; justify-content: center; align-items: center;
  padding: 0 0 0 10px;
  font-size: 12px; font-weight: 500; color: var(--text-muted);
  white-space: nowrap;
}
.sb-row[data-status="wait"] .sb-center .status,
.sb-row[data-status="ns"] .sb-center .status {
  font-size: 12px; font-weight: 600; color: var(--text-secondary);
}
.sb-center .status.s-live { color: var(--live); font-weight: 700; }
.sb-center .status.s-ht   { color: var(--amber); font-weight: 700; }

/* teams: crest first, name after, one line each */
.sb-team { gap: 8px; text-align: left; }
.sb-home { grid-column: 2; grid-row: 1; flex-direction: row-reverse; justify-content: flex-end; }
.sb-away { grid-column: 2; grid-row: 2; justify-content: flex-start; }
.sb-team .bp-team-name {
  font-size: 14px; font-weight: 500; line-height: var(--fs-row-h);
  -webkit-line-clamp: 1; text-overflow: ellipsis;
}
.sb-team .bp-crest, .sb-team .bp-crest-fallback, .sb-team .team-mono { width: 18px; height: 18px; }
.sb-team.is-win .bp-team-name  { font-weight: 700; }
.sb-team.is-lose .bp-team-name { color: var(--text-muted); font-weight: 400; }

/* scores: one number per team line, right-aligned */
.sb-score {
  grid-column: 3; grid-row: 1 / 3;
  display: flex; flex-direction: column; align-items: flex-end; justify-content: center; gap: 0;
  font-size: 14px;
}
.sb-score .bp-score-num {
  display: block; min-width: 18px; height: var(--fs-row-h); line-height: var(--fs-row-h);
  font-size: 14px; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums;
}
.sb-sep { display: none; }
.sb-row[data-status="live"] .sb-score .bp-score-num,
.sb-row[data-status="lv"] .sb-score .bp-score-num { color: var(--live); }
.sb-row[data-status="ht"] .sb-score .bp-score-num { color: var(--amber); }

/* live rows: keep the thin accent on the left edge */
.bp-match-card[data-status="live"], .bp-match-card[data-status="lv"] { box-shadow: inset 3px 0 0 var(--live); }

/* pick chip: small, under the teams, lined up with the team names */
.sb-pick { justify-content: flex-start; margin: 2px 0 2px calc(var(--fs-status-w) + 8px); }
.sb-pick .bp-odds-btn { width: auto; min-width: 0; height: 24px; padding: 0 10px; border-radius: 6px; font-size: 12px; }

/* ------------------------------------------------------------------ tabs: All / Live / Finished / Scheduled */
.fs-tabs {
  display: flex; gap: 6px; margin: 8px 8px 0; padding: 0;
  overflow-x: auto; scrollbar-width: none;
}
.fs-tabs::-webkit-scrollbar { display: none; }
.fs-tab {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px;
  height: 32px; padding: 0 14px; border: 1px solid var(--border); border-radius: 16px;
  background: var(--bg-card); color: var(--text-secondary);
  font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.fs-tab:hover { border-color: var(--primary); color: var(--primary); }
.fs-tab.is-active { background: var(--primary); border-color: var(--primary); color: var(--text-on-primary); }
.fs-tab .fs-count { font-size: 11px; font-weight: 600; opacity: .75; font-variant-numeric: tabular-nums; }
.fs-tab[data-filter="live"] .fs-count.has-live { color: var(--live); opacity: 1; }
.fs-tab[data-filter="live"].is-active .fs-count.has-live { color: inherit; }
.fs-tab-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--live); animation: pulse 1.4s infinite; }
.fs-tab.is-active .fs-tab-dot { background: currentColor; }
.fs-empty {
  margin: 16px 8px; padding: 22px 14px; text-align: center; color: var(--text-muted);
  font-size: 14px; border: 1px dashed var(--border); border-radius: 10px;
}

/* ==========================================================================
   Match page (gameinfo.php). Selectors start with .mc-wrap so they beat that page's inline <style>.
   Header: competition line, crests, big score with the status above it, scorers under the teams.
   Tabs sit straight under the header; the Play promo moves below the match content.
   ========================================================================== */
.mc-wrap { display: flex; flex-direction: column; }
.mc-wrap > .ls-play-inline { order: 99; margin: 12px 8px !important; }

.mc-wrap .mc-topbar { background: transparent; border-bottom: 0; padding: 10px 12px 0; }
.mc-wrap .mc-back-btn, .mc-wrap .mc-fav-btn {
  background: transparent !important; border-color: transparent; color: var(--text-secondary);
}
.mc-wrap .mc-back-btn:hover, .mc-wrap .mc-fav-btn:hover { background: var(--bg-surface) !important; }
.mc-wrap .mc-league-link { color: var(--text-secondary); font-weight: 600; letter-spacing: 0; }
.mc-wrap .mc-league-link:hover { color: var(--primary); }
.mc-wrap .tbl-chip { font-size: 12px; font-weight: 600; color: var(--text-muted); }

.mc-wrap .mc-hero-body { padding: 6px 14px 14px !important; border-bottom: 1px solid var(--border); }
.mc-wrap .mc-status-wrap { margin-bottom: 6px; }
.mc-wrap .mc-status-pill {
  background: transparent !important; padding: 0; border-radius: 0;
  font-size: 12px; font-weight: 600; letter-spacing: 0; color: var(--text-muted);
}
.mc-wrap .mc-status-pill.is-live { color: var(--live); font-weight: 700; }
.mc-wrap .mc-status-pill.is-ht   { color: var(--amber); font-weight: 700; }
.mc-wrap .mc-status-pill.is-wait { color: var(--text-secondary); }

.mc-wrap .mc-teams-grid { gap: 6px; }
.mc-wrap .mc-team-col { gap: 8px; }
.mc-wrap .mc-crest-box {
  width: 64px; height: 64px; padding: 0; background: transparent; border: 0; border-radius: 0;
}
.mc-wrap .mc-crest-fallback { font-size: 20px; }
.mc-wrap .mc-team-name { font-size: 14px; font-weight: 600; min-height: 2.5em; }

.mc-wrap .mc-score-card { min-width: 108px; padding: 0 4px; background: transparent; border: 0; }
.mc-wrap .mc-score-main { font-size: 38px; font-weight: 700; letter-spacing: 0; }
.mc-wrap .mc-score-main.is-ko-time { font-size: 26px; color: var(--text-primary); }
.mc-wrap .mc-hero-body[data-status="live"] .mc-score-main,
.mc-wrap .mc-hero-body[data-status="lv"] .mc-score-main { color: var(--live); }
.mc-wrap .mc-hero-body[data-status="ht"] .mc-score-main { color: var(--amber); }
.mc-wrap .mc-score-sub { margin-top: 4px; font-size: 12px; font-weight: 500; letter-spacing: 0; }

.mc-wrap .mc-scorers { margin-top: 10px; padding-top: 0; border-top: 0; font-size: 12px; color: var(--text-secondary); }
.mc-wrap .mc-meta-strip { margin-top: 10px; padding-top: 0; border-top: 0; color: var(--text-muted); }
.mc-wrap .mc-quick-pick { border-radius: 8px; }

/* tabs */
.mc-wrap .mc-tabs { padding: 0 4px; border-bottom: 1px solid var(--border); }
.mc-wrap .mc-tab { min-width: 0; padding: 12px 14px; font-size: 13px; font-weight: 600; border-bottom-width: 3px; }
.mc-wrap .mc-tab.is-open { font-weight: 700; }
.mc-wrap .mc-tab-cnt {
  background: transparent !important; padding: 0; margin-left: 4px;
  font-size: 12px; font-weight: 600; color: var(--text-muted) !important;
}

/* summary timeline */
.mc-wrap .tl-period { padding: 6px 14px; font-size: 12px; font-weight: 600; letter-spacing: 0; }
.mc-wrap .tl-row { grid-template-columns: minmax(0, 1fr) 42px minmax(0, 1fr); padding: 8px 12px; }
.mc-wrap .tl-min {
  background: transparent; border: 0; padding: 0; color: var(--text-muted); font-weight: 600;
}
.mc-wrap .tl-min.is-goal { background: transparent; border: 0; color: var(--text-primary); font-weight: 800; }
.mc-wrap .tl-ico { background: transparent; }
.mc-wrap .tl-player { font-weight: 600; }

@media (max-width: 480px) {
  .mc-wrap .mc-crest-box { width: 54px; height: 54px; }
  .mc-wrap .mc-score-card { min-width: 92px; }
  .mc-wrap .mc-score-main { font-size: 34px; }
  .mc-wrap .mc-tab { padding: 12px 10px; }
}

/* ==========================================================================
   Picks home page (index.php): date row, status tabs, pick-type chips, compact highlights
   ========================================================================== */
/* pick-type chips: a light text row under the status tabs, one tap instead of a dropdown */
.fs-chips {
  display: flex; gap: 2px; margin: 4px 8px 6px; padding: 0 0 2px;
  overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--border);
}
.fs-chips::-webkit-scrollbar { display: none; }
.fs-chip {
  flex: 0 0 auto; padding: 9px 10px 8px; font-size: 13px; font-weight: 600; white-space: nowrap;
  color: var(--text-muted); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -3px;
}
.fs-chip:hover { color: var(--primary); }
.fs-chip.is-active { color: var(--primary); border-bottom-color: var(--primary); }

/* Match of the day: a light card instead of a big blue block */
.hl-motd {
  gap: 8px; padding: 10px 12px; margin: 8px 8px 4px;
  background: linear-gradient(135deg, var(--primary-soft), var(--bg-card) 70%);
  border: 1px solid var(--primary); border-left-width: 4px; border-radius: 10px;
  color: var(--text-primary);
}
.hl-motd:hover { background: linear-gradient(135deg, var(--primary-soft), var(--bg-surface) 70%); }
.hl-motd-meta { font-size: 12px; color: var(--text-muted); font-weight: 600; }
.hl-motd-meta > span:first-child { color: var(--primary); font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.hl-motd-time { color: var(--text-primary); }
/* Cap the width and centre the group so the teams sit close to the score instead of at the card edges */
.hl-motd-teams { gap: 10px; width: 100%; max-width: 420px; margin: 0 auto; }
.hl-motd-team { flex-direction: row; justify-content: flex-start; gap: 8px; font-size: 14px; font-weight: 600; color: var(--text-primary); text-align: left; }
/* row-reverse flips the axis, so flex-start here means the RIGHT edge: crest hugs the card's right side */
.hl-motd-team:last-child { justify-content: flex-start; flex-direction: row-reverse; text-align: right; }
.hl-motd-crest, .hl-motd-team .team-mono { width: 28px; height: 28px; flex: 0 0 28px; }
/* Long names wrap onto a second line instead of being cut off with "..." */
.hl-motd-team > span:last-child { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; min-width: 0; line-height: 1.2; }
/* Small phones: slightly smaller crests and text so a name like "Manchester" fits on one line */
@media (max-width: 360px) {
  .hl-motd { padding: 10px; }
  .hl-motd-teams { gap: 6px; }
  .hl-motd-team { gap: 6px; font-size: 12px; }
  .hl-motd-crest, .hl-motd-team .team-mono { width: 24px; height: 24px; flex-basis: 24px; }
  .hl-motd-vs { min-width: 36px; }
  .hl-motd-vs.is-score { font-size: 15px; }
}
/* The middle column always has room for a score like "12 – 10", so it never crowds the team names */
.hl-motd-vs { min-width: 44px; padding: 0 2px; text-align: center; white-space: nowrap; font-size: 13px; font-weight: 700; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.hl-motd-vs.is-score { font-size: 17px; font-weight: 800; color: var(--text-primary); }
.hl-motd-pick { align-self: flex-start; padding: 3px 10px; border-radius: 6px; background: var(--pick-soft); color: var(--pick); font-size: 12px; font-weight: 700; }
.hl-motd-pick.is-banker { background: var(--amber-soft); color: var(--amber); }
@media (max-width: 400px) { .hl-motd-team { font-size: 13px; } }

/* Live now strip: smaller cards, same row style as the list */
.hl-live { margin: 8px 8px 4px; }
.hl-live-card { flex-basis: 164px; padding: 8px 10px; border-radius: 10px; gap: 4px; }
.hl-live-team { font-size: 13px; }
.hl-live-team b { font-size: 14px; }

/* ==========================================================================
   Live page (live.php): section heads, empty state, next kick-offs
   ========================================================================== */
.fs-live-head {
  display: flex; align-items: center; gap: 8px; margin: 10px 8px 0; padding: 4px 4px 0;
  font-size: 14px; font-weight: 700; color: var(--text-primary);
}
.fs-live-head .tab-live-dot { background: var(--live); margin: 0; }
.fs-live-count {
  min-width: 20px; padding: 1px 7px; border-radius: 10px; text-align: center;
  background: var(--live); color: #fff; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums;
}
.fs-next-head { justify-content: space-between; margin-top: 18px; }
.fs-next-head a { font-size: 12px; font-weight: 600; color: var(--primary); text-decoration: none; }
#live-next .bp-match-card:first-of-type { margin-top: 8px; }

.fs-live-empty {
  display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center;
  margin: 12px 8px; padding: 26px 16px; border: 1px solid var(--border); border-radius: 10px;
  background: var(--bg-card); color: var(--text-muted); font-size: 13px;
}
.fs-live-empty strong { color: var(--text-primary); font-size: 15px; }
.fs-live-empty-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--text-muted); opacity: .5; }
.fs-live-empty-btn {
  margin-top: 8px; padding: 8px 16px; border-radius: 16px; background: var(--primary);
  color: var(--text-on-primary); font-weight: 600; text-decoration: none;
}

/* ==========================================================================
   Standings (standings.php)
   ========================================================================== */
.st-head {
  display: flex; align-items: center; gap: 10px; margin: 8px 8px 0; padding: 10px 12px;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px 10px 0 0;
}
.st-head-logo { width: 28px; height: 28px; object-fit: contain; flex: 0 0 auto; }
.st-select-form { flex: 1; min-width: 0; margin: 0; }
.st-select {
  width: 100%; padding: 6px 28px 6px 0; border: 0; background-color: transparent; color: var(--text-primary);
  font: inherit; font-size: 15px; font-weight: 700; outline: none; cursor: pointer; text-overflow: ellipsis;
}
.st-tabs { margin-top: 0; background: var(--bg-card); border-left: 1px solid var(--border); border-right: 1px solid var(--border); }
.st-fixtures-link { margin-left: auto; color: var(--primary); }
.st-stage {
  margin: 10px 8px 0; padding: 7px 12px; background: var(--bg-surface);
  border: 1px solid var(--border); border-bottom: 0; border-radius: 8px 8px 0 0;
  font-size: 12px; font-weight: 700; color: var(--text-secondary);
}
.st-wrap {
  margin: 0 8px; overflow-x: auto; background: var(--bg-card);
  border: 1px solid var(--border); border-top: 0;
}
.st-stage + .st-wrap { border-top: 0; }
.st-table { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.st-table th {
  padding: 8px 4px; text-align: center; font-size: 11px; font-weight: 600; color: var(--text-muted);
  border-bottom: 1px solid var(--border); background: var(--bg-card);
}
.st-table td { padding: 6px 4px; text-align: center; color: var(--text-secondary); border-bottom: 1px solid var(--border-subtle); }
.st-table tbody tr:last-child td { border-bottom: 0; }
.st-table tbody tr:hover td { background: var(--bg-surface); }
.st-table .st-pos { width: 38px; padding-left: 10px; }
.st-table .st-club { text-align: left; padding-left: 6px; width: 100%; max-width: 0; }
.st-table td.st-club a { display: flex; align-items: center; gap: 8px; color: var(--text-primary); font-weight: 600; text-decoration: none; min-width: 0; }
.st-table td.st-club a:hover { color: var(--primary); }
.st-table td.st-club span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-table td.st-club .team-crest { width: 20px; height: 20px; flex: 0 0 auto; }
.st-table .st-pts { color: var(--text-primary); font-weight: 800; padding-right: 8px; }
.st-table .st-form { text-align: right; padding-right: 10px; white-space: nowrap; }
.st-gd-up { color: var(--green) !important; font-weight: 600; }
.st-gd-down { color: var(--red) !important; font-weight: 600; }
.st-rank {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 22px; height: 22px; padding: 0 4px; border-radius: 6px;
  font-size: 12px; font-weight: 700; color: var(--text-secondary);
}
.st-rank.z-top  { background: #16A34A; color: #fff; }
.st-rank.z-euro { background: #2563EB; color: #fff; }
.st-rank.z-rel  { background: #DC2626; color: #fff; }
.st-legend {
  display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0 8px 12px; padding: 10px 12px;
  background: var(--bg-card); border: 1px solid var(--border); border-top: 0; border-radius: 0 0 10px 10px;
  font-size: 12px; color: var(--text-muted);
}
.st-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.st-legend i.z-top { background: #16A34A; } .st-legend i.z-euro { background: #2563EB; } .st-legend i.z-rel { background: #DC2626; }
@media (max-width: 460px) {
  .st-table .st-form { display: none; }
  .st-table .st-pos { width: 32px; padding-left: 6px; }
}

/* ==========================================================================
   Team page (team.php)
   ========================================================================== */
.tm-head {
  display: flex; align-items: center; gap: 14px; margin: 8px 8px 0; padding: 16px 14px;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px 10px 0 0;
}
.tm-logo { width: 56px; height: 56px; object-fit: contain; flex: 0 0 auto; }
.tm-info { flex: 1; min-width: 0; }
.tm-name { margin: 0; font-size: 20px; font-weight: 700; line-height: 1.2; color: var(--text-primary); }
.tm-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; margin-top: 4px; font-size: 13px; color: var(--text-muted); }
.tm-rank { color: var(--primary); font-weight: 600; text-decoration: none; }
.tm-form { flex: 0 0 auto; }
.tm-tabs {
  display: flex; margin: 0 8px; background: var(--bg-card);
  border: 1px solid var(--border); border-top: 0; overflow-x: auto; scrollbar-width: none;
}
.tm-tabs::-webkit-scrollbar { display: none; }
.tm-tab {
  flex: 0 0 auto; padding: 12px 16px; font: inherit; font-size: 13px; font-weight: 600; white-space: nowrap;
  color: var(--text-secondary); background: transparent; border: 0; border-bottom: 3px solid transparent;
  cursor: pointer; text-decoration: none;
}
.tm-tab:hover { color: var(--primary); }
.tm-tab.is-open { color: var(--primary); font-weight: 700; border-bottom-color: var(--primary); }
.tm-tab .mc-tab-cnt { margin-left: 5px; font-size: 12px; font-weight: 600; color: var(--text-muted); }
/* rows here show "21/11 20:30" or a full date, so the time column is wider and may wrap */
.tm-pane { --fs-status-w: 78px; }
.tm-pane .sb-center .status { white-space: normal; text-align: center; line-height: 1.25; padding-left: 8px; }
.tm-pane .sb-center .status .s-time, .tm-pane .sb-center .status .st-lbl { white-space: normal; max-width: 100%; }
.tm-pane { display: none; }
.tm-pane.is-open { display: block; }

/* ==========================================================================
   Header and left league list
   Solid brand-blue header with white text and an underlined active tab; the Play button
   becomes a gold-outlined pill so it stands out on the blue. League list is a compact,
   scrolling panel with an accent bar on the open league.
   ========================================================================== */
:root {
  --hdr-bg: #0B2A6B;
  --hdr-text: #FFFFFF;
  --hdr-muted: rgba(255, 255, 255, .74);
  --hdr-hover: rgba(255, 255, 255, .10);
}
html[data-theme="dark"] { --hdr-bg: #0B1220; }

html[data-theme] .header {
  background: var(--hdr-bg);
  border-bottom: 0;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .25);
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
/* the Play zone has its own header rule (card colour); the same blue header applies there too */
html.zone-play[data-theme] .header { background: var(--hdr-bg); }
html[data-theme] .header .logo, html[data-theme] .header .logo > span { color: var(--hdr-text); }
html[data-theme] .header .logo .logo-accent { color: #8EC0FF; }
html[data-theme] .header .logo .logo-tld { color: var(--hdr-muted); }

html[data-theme] .header .menu-btn,
html[data-theme] .header .icon-toggle {
  background: transparent; border-color: transparent; color: var(--hdr-text);
}
html[data-theme] .header .menu-btn:hover,
html[data-theme] .header .icon-toggle:hover,
html[data-theme] .header .icon-toggle.active {
  background: var(--hdr-hover); border-color: transparent; color: var(--hdr-text);
}

html[data-theme] .header .ls-topnav { gap: 2px; }
html[data-theme] .header .ls-topnav a {
  padding: 14px 14px 11px; border-radius: 0; border: 0; border-bottom: 3px solid transparent;
  background: transparent; box-shadow: none; color: var(--hdr-muted); font-weight: 600;
}
html[data-theme] .header .ls-topnav a:hover { background: var(--hdr-hover); color: var(--hdr-text); }
html[data-theme] .header .ls-topnav a.is-active {
  background: transparent; color: var(--hdr-text); border-bottom-color: var(--hdr-text); box-shadow: none; font-weight: 700;
}
html[data-theme] .header .bar { padding-top: 0; padding-bottom: 0; min-height: 52px; }
@media (max-width: 767px) { html[data-theme] .header .bar { min-height: 50px; } }

/* Play button: translucent with a gold edge, so it reads on blue */
html[data-theme] .header .ls-play-btn {
  background: rgba(255, 255, 255, .10); border: 1px solid rgba(253, 230, 138, .6);
  box-shadow: none; color: #fff !important; animation: none;
}
html[data-theme] .header .ls-play-btn:hover { background: rgba(255, 255, 255, .18); transform: none; box-shadow: none; }
html[data-theme] .header .ls-play-btn.is-active { background: #F59E0B; border-color: #F59E0B; color: #1A1302 !important; }

/* search bar under the header */
html[data-theme] .header .searchbar { background: var(--hdr-bg); border-top: 1px solid rgba(255, 255, 255, .12); }

/* left league list */
.ls-rail-left {
  padding: 4px 0 8px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px;
  scrollbar-width: thin;
}
.ls-rail-title {
  padding: 12px 12px 6px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--text-muted);
}
.ls-rail-title:first-child { padding-top: 10px; }
.ls-rail-link {
  gap: 10px; padding: 7px 12px 7px 9px; border-radius: 0; border-left: 3px solid transparent;
  font-size: 13px; font-weight: 500; color: var(--text-primary);
}
.ls-rail-link img { width: 18px; height: 18px; }
.ls-rail-link:hover { background: var(--bg-surface); color: var(--primary); }
.ls-rail-link.is-active { background: var(--primary-soft); border-left-color: var(--primary); color: var(--primary); font-weight: 700; }
.ls-rail-all {
  display: block; margin: 6px 0 0; padding: 10px 12px; border-top: 1px solid var(--border-subtle);
  font-size: 12px; font-weight: 600; color: var(--primary); text-decoration: none;
}
.ls-rail-all:hover { text-decoration: underline; }

/* ==========================================================================
   Left league list, round two: search box, My leagues (pins), country line, match counts,
   collapsible "More leagues"
   ========================================================================== */
.ls-rail-left { padding: 0 0 6px; overflow-x: hidden; }
.ls-rail-search {
  position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 8px;
  margin: 0; padding: 10px 10px 8px; background: var(--bg-card); color: var(--text-muted);
  border-bottom: 1px solid var(--border-subtle);
}
.ls-rail-search input {
  flex: 1; min-width: 0; height: 30px; padding: 0 10px; border: 1px solid var(--border); border-radius: 15px;
  background: var(--bg-surface); color: var(--text-primary); font: inherit; font-size: 13px; outline: none;
}
.ls-rail-search input:focus { border-color: var(--primary); background: var(--bg-card); }
.ls-rail-search input::-webkit-search-cancel-button { cursor: pointer; }
.ls-rail-search svg { position: absolute; left: 20px; pointer-events: none; }
.ls-rail-search input { padding-left: 28px; }

.ls-rail-title { padding: 12px 12px 4px; }
#ls-rail-mine .ls-rail-title { color: var(--amber); }
.ls-rail-mine-list { padding-bottom: 2px; }

.ls-rail-item { display: flex; align-items: stretch; position: relative; }
.ls-rail-item[hidden], .ls-rail-more[hidden], .ls-rail-none[hidden], #ls-rail-mine[hidden], .ls-rail-morebtn[hidden] { display: none !important; }
.ls-rail-item .ls-rail-link { flex: 1; min-width: 0; padding: 6px 4px 6px 9px; gap: 10px; }
.ls-rail-txt { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.25; }
.ls-rail-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ls-rail-country { font-size: 11px; font-weight: 400; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ls-rail-link.is-active .ls-rail-country { color: var(--primary); opacity: .8; }

.ls-rail-n {
  flex: 0 0 auto; min-width: 20px; padding: 1px 6px; border-radius: 10px; text-align: center;
  font-size: 11px; font-weight: 600; color: var(--text-muted); background: var(--bg-surface);
  font-variant-numeric: tabular-nums;
}
.ls-rail-n.is-live { color: #fff; background: var(--live); font-weight: 700; }

.ls-rail-pin {
  flex: 0 0 26px; width: 26px; padding: 0; border: 0; background: transparent; cursor: pointer;
  font-size: 14px; line-height: 1; color: var(--text-muted); opacity: 0;
  transition: opacity .12s ease; display: inline-flex; align-items: center; justify-content: center;
}
.ls-rail-item:hover .ls-rail-pin, .ls-rail-pin:focus-visible { opacity: .75; }
.ls-rail-pin:hover { opacity: 1; color: var(--amber); }
.ls-rail-pin[aria-pressed="true"] { opacity: 1; color: var(--amber); }

.ls-rail-morebtn {
  display: flex; align-items: center; gap: 6px; width: 100%; margin: 4px 0 0; padding: 9px 12px;
  border: 0; border-top: 1px solid var(--border-subtle); background: transparent; cursor: pointer;
  color: var(--text-secondary); font: inherit; font-size: 12px; font-weight: 600; text-align: left;
}
.ls-rail-morebtn:hover { color: var(--primary); background: var(--bg-surface); }
.ls-rail-more-n { padding: 0 6px; border-radius: 9px; background: var(--bg-surface); font-size: 11px; color: var(--text-muted); }
.ls-rail-morebtn svg { margin-left: auto; transition: transform .15s ease; }
.ls-rail-morebtn[aria-expanded="true"] svg { transform: rotate(180deg); }
.ls-rail-none { padding: 14px 12px; font-size: 13px; color: var(--text-muted); text-align: center; }

/* note above a past day's list: old matches with no result are hidden unless asked for */
.fs-pending-note {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 8px 8px 0; padding: 8px 12px;
  background: var(--bg-surface); border: 1px solid var(--border); border-radius: 8px; font-size: 12px; color: var(--text-muted);
}
.fs-pending-note a { flex: 0 0 auto; font-weight: 600; color: var(--primary); text-decoration: none; }
.fs-pending-note a:hover { text-decoration: underline; }

/* ==========================================================================
   Sticky bars: the competition picker and Overall / Home / Away on the tables page, and the Matches /
   Competitions tabs on a country page, stay under the header while you scroll
   ========================================================================== */
.st-bar { position: sticky; top: 50px; z-index: 30; padding-top: 8px; background: var(--bg-body); }
.st-bar .st-head { margin-top: 0; }
/* every .tm-tabs bar: country, competition and team pages */
.tm-tabs { position: sticky; top: 50px; z-index: 30; }
@media (min-width: 768px) { .st-bar, .tm-tabs { top: 52px; } }

/* ==========================================================================
   Live page on phones: a bar that stays under the header (count, last update, phase filter),
   slimmer league headers, and a calmer empty state
   ========================================================================== */
.fs-live-bar {
  position: sticky; top: 50px; z-index: 30; padding: 6px 0 6px; background: var(--bg-body);
  border-bottom: 1px solid var(--border-subtle);
}
.fs-live-bar .fs-live-head { margin: 0 8px 6px; padding: 2px 4px 0; font-size: 15px; }
.fs-live-bar .fs-tabs { margin: 0 8px; }
.fs-live-clock { margin-left: auto; font-size: 12px; font-weight: 500; color: var(--text-muted); white-space: nowrap; }
#games_area .bp-league-head { margin-top: 8px; }
@media (max-width: 767px) {
  #games_area .bp-league-head { padding-top: 6px; padding-bottom: 6px; }
  #games_area .bp-league-head .bp-lg-txt { font-size: 12px; }
}
@media (min-width: 768px) { .fs-live-bar { top: 52px; } }

/* ==========================================================================
   Competition page (eventView.php)
   ========================================================================== */
.ev-logo { width: 48px; height: 48px; object-fit: contain; flex: 0 0 auto; }
.ev-flag { font-size: 32px; line-height: 1; flex: 0 0 auto; }
.cn-sub a { color: var(--primary); font-weight: 600; text-decoration: none; }
.cn-sub a:hover { text-decoration: underline; }
.ev-day { font-size: 12px; font-weight: 700; color: var(--text-secondary); }
.ev-live { color: var(--live); gap: 8px; justify-content: flex-start; }
.ev-live .tab-live-dot { margin: 0; }
.ev-pager { display: flex; align-items: center; justify-content: space-between; margin: 12px 8px; font-size: 13px; }
.ev-pager a {
  padding: 7px 16px; border: 1px solid var(--border); border-radius: 16px; background: var(--bg-card);
  color: var(--primary); font-weight: 600; text-decoration: none;
}
.ev-pager a:hover { border-color: var(--primary); }
.ev-pager-n { color: var(--text-muted); }
.ev-more {
  display: block; margin: 8px; padding: 10px 12px; text-align: center; font-size: 13px; font-weight: 600;
  color: var(--primary); text-decoration: none; background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px;
}
.ev-groups { margin-top: 8px; }
/* keeps team names lined up when a club has no crest */
.st-crest-ph { display: inline-block; width: 20px; height: 20px; flex: 0 0 auto; }

/* ==========================================================================
   Declutter: one quiet Play & Win entry per page, phone first
   - the top strip is gone (see header.php); the header button shows on desktop only, because phones have the
     bottom bar; the in-list card is a single slim row; no badges or dots on the bottom-bar Play button;
     the intro pop-up is desktop only.
   ========================================================================== */
@media (max-width: 1023px) {
  html[data-theme] .header .ls-play-btn { display: none !important; }
  .ls-intro { display: none !important; }
  /* the bottom bar is on screen up to this width, so the header's own link row is a duplicate (and at tablet width
     it ran out of room and cut "Stats" in half) */
  html[data-theme] .header .ls-topnav { display: none; }
  html[data-theme] .header .bar-right { margin-left: auto; }
  /* the game page has no link footer where the bottom bar is shown */
  html.zone-play .ls-footer-inner { display: none; }
  html.zone-play .ls-footer-bottom { padding-top: 8px; }
  /* the deposit banner repeats the Deposit button in the wallet row right above it (phones get a one-line hint instead) */
  html.zone-play .pw-start { display: none !important; }
}
@media (max-width: 767px) {
  html.zone-play .pw-start { display: flex !important; }
  html.zone-play .pw-start[hidden] { display: none !important; }
}
.bp-bnav-play-badge { display: none !important; }
.ls-play-btn.has-free::after { display: none !important; }
.bp-bnav-play.has-free .bp-bnav-play-btn::after { display: none !important; }

/* Play buttons everywhere: white text. The gold ones become deep amber so white stays readable; the blue ones stay
   blue in dark mode too (the theme colour there is light, which turned the text dark). */
html[data-theme] .ls-play-inline-cta,
html[data-theme] .ls-play-card-cta,
html[data-theme] .ls-intro-cta,
html[data-theme] .ls-dwallet-cta-gold {
  color: #fff !important;
  background: linear-gradient(135deg, #D97706 0%, #B45309 100%) !important;
  border: 0; text-shadow: 0 1px 1px rgba(0, 0, 0, .25);
}
html[data-theme] .ls-play-inline.is-compact .ls-play-inline-cta {
  background: #1D4ED8 !important; text-shadow: none;
}
html[data-theme] .ls-play-inline-cta:hover, html[data-theme] .ls-play-card-cta:hover, html[data-theme] .ls-intro-cta:hover { color: #fff !important; filter: brightness(1.08); }

/* the in-list Play card: one slim row */
.ls-play-inline.is-compact {
  flex-direction: row; flex-wrap: nowrap;
  display: flex; align-items: center; gap: 10px; margin: 8px 8px; padding: 8px 8px 8px 12px;
  background: var(--bg-card); color: var(--text-primary); border: 1px solid var(--border); border-radius: 10px;
  box-shadow: none;
}
.ls-play-inline.is-compact .ls-play-inline-title {
  flex: 1; min-width: 0; margin: 0; font-size: 13px; font-weight: 500; line-height: 1.35; color: var(--text-secondary); text-decoration: none;
}
.ls-play-inline.is-compact .ls-play-inline-cta {
  flex: 0 0 auto; align-self: center; margin: 0; width: auto; padding: 6px 14px; border-radius: 14px; background: var(--primary); color: var(--text-on-primary);
  font-size: 13px; font-weight: 600; text-decoration: none; box-shadow: none;
}
/* the longer card on the match page: keep the message and button, drop the three game chips */
.ls-play-inline:not(.is-compact) .ls-play-inline-games { display: none; }
.ls-play-inline:not(.is-compact) .ls-play-momo-pill { display: none; }

/* desktop right-rail Play card: title and one button, no game list */
.ls-play-card.is-compact { padding: 12px 14px; gap: 4px; }
.ls-play-card.is-compact .ls-play-card-title { font-size: 15px; line-height: 1.3; }
.ls-play-card.is-compact .ls-play-card-sub { font-size: 12px; opacity: .85; }
.ls-play-card.is-compact .ls-play-card-cta { margin-top: 8px; }

/* footer: shorter on phones */
@media (max-width: 767px) {
  .ls-footer-cols { gap: 12px 18px; }
  .ls-footer-brand p { display: none; }
}

/* ==========================================================================
   Countries: list in the left rail, all-countries page, country page
   ========================================================================== */
.ls-rail-citem[hidden] { display: none !important; }
.ls-rail-citem { display: flex; }
.ls-rail-citem .ls-rail-link { flex: 1; min-width: 0; padding: 6px 12px 6px 9px; }
.ls-rail-all2 { margin-top: 0; border-top: 0; padding-top: 2px; }

.cn-head {
  display: flex; align-items: center; gap: 14px; margin: 8px 8px 0; padding: 16px 14px;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px 10px 0 0;
}
.cn-flag { width: 48px; height: 48px; object-fit: contain; flex: 0 0 auto; border-radius: 4px; }
.cn-info { flex: 1; min-width: 0; }
.cn-title { margin: 0; font-size: 20px; font-weight: 700; line-height: 1.2; color: var(--text-primary); }
.cn-sub { margin-top: 2px; font-size: 13px; color: var(--text-muted); }
.cn-head > .cn-title { flex: 1; }
.cn-head > .cn-sub { margin: 0; }
.cn-live { display: inline-flex; align-items: center; gap: 5px; color: var(--live); font-weight: 600; }
.cn-all { flex: 0 0 auto; font-size: 13px; font-weight: 600; color: var(--primary); text-decoration: none; }
.cn-all:hover { text-decoration: underline; }
.cn-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex: 0 0 auto; }
.cn-tabs { margin-bottom: 0; }
/* followed countries carry a small gold star in the list and the left rail */
.ls-rail-citem.is-followed .ls-rail-name::after,
.cn-card.is-followed .cn-card-name::after { content: ' \2605'; color: var(--amber); font-size: 12px; }
.fs-my-chip.is-country { background: var(--amber-soft); border-color: var(--amber); color: var(--text-primary); }
.fs-my-chip.is-country:hover { border-color: var(--red); color: var(--red); }
.cn-controls { margin: 8px 8px 0; }

.cn-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0;
  margin: 0 8px; background: var(--bg-card); border: 1px solid var(--border); border-top: 0;
  border-radius: 0 0 10px 10px; overflow: hidden;
}
.cn-card {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px; text-decoration: none;
  color: var(--text-primary); font-size: 14px; font-weight: 500; border-bottom: 1px solid var(--border-subtle);
}
.cn-card:hover { background: var(--bg-surface); color: var(--primary); }
.cn-card img, .cn-flag-fallback { width: 22px; height: 22px; object-fit: contain; flex: 0 0 auto; }
.cn-flag-fallback { border-radius: 50%; background: var(--bg-subtle); }
.cn-card-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cn-card-n {
  min-width: 20px; padding: 1px 6px; border-radius: 10px; text-align: center; font-size: 11px; font-weight: 600;
  color: var(--text-muted); background: var(--bg-surface);
}

.cn-leagues { margin: 8px 8px 0; background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.cn-league { display: flex; align-items: center; gap: 4px; padding: 0 12px 0 0; border-bottom: 1px solid var(--border-subtle); }
.cn-league:last-child { border-bottom: 0; }
.cn-league-main {
  display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; padding: 10px 8px 10px 14px;
  text-decoration: none; color: var(--text-primary);
}
.cn-league-main:hover .cn-league-name { color: var(--primary); }
.cn-league-main img { width: 24px; height: 24px; object-fit: contain; flex: 0 0 auto; }
.cn-league-txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.cn-league-name { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cn-league-txt small { font-size: 11px; color: var(--text-muted); }
.cn-league-link {
  flex: 0 0 auto; padding: 5px 10px; border: 1px solid var(--border); border-radius: 14px;
  font-size: 12px; font-weight: 600; color: var(--text-secondary); text-decoration: none;
}
.cn-league-link:hover { border-color: var(--primary); color: var(--primary); }
.cn-card { min-width: 0; }
@media (max-width: 420px) { .cn-flag { width: 40px; height: 40px; } .cn-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cn-card { padding: 10px; font-size: 13px; } .cn-card:nth-child(odd) { border-right: 1px solid var(--border-subtle); } }

/* ==========================================================================
   Favourites: match stars, Follow buttons, My teams
   ========================================================================== */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* match star: at the right edge of the row, above the row link */
html .bp-match-card.sb-row .bp-fav-btn {
  display: inline-flex !important; align-items: center; justify-content: center;
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 32px; height: 36px; padding: 0; font-size: 17px; line-height: 1;
  color: var(--text-muted); opacity: .55; background: none; border: 0; cursor: pointer;
}
html .bp-match-card.sb-row .bp-fav-btn:hover { opacity: 1; color: var(--amber); }
html .bp-match-card.sb-row .bp-fav-btn.active { color: var(--amber); opacity: 1; }
.bp-match-card.sb-row { padding-right: 38px; }

/* follow button (team page header) and the small star in tables */
.tm-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex: 0 0 auto; }
.tm-follow {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 14px;
  border: 1px solid var(--border); border-radius: 16px; background: var(--bg-card);
  color: var(--text-primary); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
}
.tm-follow:hover { border-color: var(--amber); }
.tm-follow .fol-ico { font-size: 15px; color: var(--text-muted); }
.tm-follow.is-following { background: var(--amber-soft); border-color: var(--amber); }
.tm-follow.is-following .fol-ico { color: var(--amber); }
.st-table .st-fol { width: 34px; padding: 0 6px 0 0; }
.st-follow { background: none; border: 0; padding: 4px; font-size: 16px; line-height: 1; color: var(--text-muted); opacity: .55; cursor: pointer; }
.st-follow:hover { opacity: 1; color: var(--amber); }
.st-follow.is-following { color: var(--amber); opacity: 1; }

/* My teams section */
.fs-my { margin: 8px 8px 0; }
.fs-my[hidden] { display: none; }
.fs-my-head {
  display: flex; align-items: center; justify-content: space-between; padding: 8px 8px 8px 12px;
  background: var(--bg-surface); border: 1px solid var(--border); border-radius: 8px 8px 0 0;
  font-size: 13px; font-weight: 700; color: var(--text-primary);
}
.fs-my-title .fs-my-count {
  display: inline-block; min-width: 18px; margin-left: 4px; padding: 0 6px; border-radius: 9px;
  background: var(--amber); color: #1A1302; font-size: 11px; font-weight: 800; text-align: center;
}
.fs-my-title .fs-my-count:empty { display: none; }
.fs-my-title { color: var(--text-primary); }
.fs-my-title::first-letter { color: var(--amber); }
.fs-my-toggle {
  width: 26px; height: 26px; padding: 0; border: 0; border-radius: 6px; background: transparent;
  color: var(--text-muted); cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
}
.fs-my-toggle:hover { background: var(--bg-subtle); }
.fs-my-toggle svg { transition: transform .15s ease; }
.fs-my.is-collapsed .fs-my-toggle svg { transform: rotate(-90deg); }
.fs-my.is-collapsed .fs-my-body { display: none; }
.fs-my.is-collapsed .fs-my-head { border-radius: 8px; }

/* goal alerts button (flash-push.js): in the Following header and beside a Follow button that is on */
.fs-alert-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px;
  border: 1px solid var(--border); border-radius: 14px; background: var(--bg-card);
  color: var(--text-secondary); font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.fs-alert-btn:hover { border-color: var(--amber); color: var(--text-primary); }
.fs-alert-btn.is-on { background: var(--amber-soft); border-color: var(--amber); color: var(--text-primary); }
.fs-alert-btn.is-on svg { color: var(--amber); }
.fs-alert-btn.is-head { margin-left: auto; margin-right: 6px; }
.fs-alert-btn.is-inline { height: 32px; border-radius: 16px; font-size: 13px; }
.tm-side .fs-alert-btn.is-inline { align-self: flex-end; }
.fs-my-body { background: var(--bg-card); border: 1px solid var(--border); border-top: 0; border-radius: 0 0 8px 8px; }
.fs-my-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 10px 0; }
.fs-my-chips:empty { display: none; }
.fs-my-chip {
  display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border: 1px solid var(--border);
  border-radius: 14px; background: var(--bg-surface); color: var(--text-secondary);
  font: inherit; font-size: 12px; font-weight: 600; cursor: pointer;
}
.fs-my-chip:hover { border-color: var(--red); color: var(--red); }
.fs-my-hint { padding: 12px; font-size: 13px; color: var(--text-muted); }
/* rows inside the section lose their own card edges so they sit flush in it */
.fs-my-list .bp-league-head, .fs-my-list .league { margin: 6px 0 0; border-radius: 0; border-left: 0; border-right: 0; }
.fs-my-list .bp-match-card.fs-row { margin: 0; border-left: 0; border-right: 0; border-radius: 0 !important; }

/* ==========================================================================
   Play & Win zone
   Same neutral surfaces as the score pages (white cards, grey page, slate text) instead of the
   all-blue zone palette. The games keep their own dark stages, and gold stays the stake / win colour.
   ========================================================================== */
html.zone-play[data-theme="light"] {
  --bg-body: #F7F8FA;
  --bg-surface: #F1F4F9;
  --bg-subtle: #EEF2F8;
  --border: #E6E8EE;
  --border-subtle: #EEF0F4;
  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-muted: #64748B;
}
html.zone-play[data-theme="dark"] {
  --bg-body: #0B0F17;
  --bg-card: #131A26;
  --bg-surface: #1B2433;
  --bg-subtle: #101622;
  --border: #222B3A;
  --border-subtle: #1A2230;
  --text-primary: #E8EDF5;
  --text-secondary: #A3B1C4;
  --text-muted: #8090A6;
}

/* game switcher on phones: underlined tabs like the other pages */
@media (max-width: 1023px) {
  html.zone-play .pw-nav-tabs {
    display: flex; gap: 0; padding: 0; margin: 8px 8px 0;
    background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px 10px 0 0; overflow: hidden;
  }
  html.zone-play .pw-nav-tabs .pw-mode-btn {
    flex: 1 1 0; border: 0; border-bottom: 3px solid transparent; border-radius: 0;
    background: transparent; box-shadow: none; padding: 10px 6px 8px; color: var(--text-secondary);
  }
  html.zone-play .pw-nav-tabs .pw-mode-btn .m-title { font-weight: 600; }
  html.zone-play .pw-nav-tabs .pw-mode-btn.is-active {
    background: transparent; color: var(--primary); border-bottom-color: var(--primary);
  }
  html.zone-play .pw-nav-tabs .pw-mode-btn.is-active .m-title { font-weight: 700; color: var(--primary); }
  html.zone-play .pw-nav-tabs .pw-mode-btn.is-active .m-sub { color: var(--text-muted); }
}

/* Amber-filled things in the game: the same deep amber with white text in light and dark (dark used bright amber and
   dark text): the main button (also its Cash out state), Deposit, the "Live wins" label, and the Deposit pill and
   first step circle of the desktop banner */
.pw-start-hint { display: none; }
html.zone-play[data-theme="dark"] .pw-btn-main:not(.is-ready),
html.zone-play[data-theme="dark"] .pw-btn-deposit,
html.zone-play[data-theme="dark"] .pw-start-cta,
html.zone-play[data-theme="dark"] .pw-step.is-now i { background: #B45309; color: #fff; }
/* "Live wins" label: plain text in light, so plain text in dark too (it was an amber fill) */
html.zone-play[data-theme="dark"] .pw-tick-badge { background: transparent; color: var(--text-primary); }

/* ==========================================================================
   Play & Win on phones: fewer things above the game, a quieter wallet row, a slimmer win ticker,
   a table that fits, and no link footer (the bottom bar already has the way out)
   ========================================================================== */
@media (max-width: 767px) {
  /* wallet row: balance switch on the left, a few icon actions on the right */
  html.zone-play .pw-deck { margin: 8px 8px 0; padding: 8px 10px; border-radius: 10px; }
  /* the three-step "Play for real UGX / Deposit" banner repeats the Deposit button right above it:
     phones get a one-line hint instead (still hidden once there is cash in the wallet, and still dismissible) */
  html.zone-play .pw-start-steps { display: none !important; }
  html.zone-play .pw-start { display: flex; align-items: stretch; gap: 6px; margin: 8px 0 0; padding: 0; }
  html.zone-play .pw-start[hidden] { display: none !important; }
  html.zone-play .pw-start-hint {
    display: block; flex: 1; min-width: 0; padding: 8px 12px; background: var(--bg-surface); border: 1px solid var(--border);
    border-radius: 10px; font-size: 12px; line-height: 1.45; color: var(--text-secondary);
  }
  html.zone-play .pw-start .pw-start-x { position: static; flex: 0 0 32px; width: 32px; height: auto; margin: 0; align-self: stretch; }
  html.zone-play .pw-start-hint b { color: var(--text-primary); font-weight: 600; }
  html.zone-play .pw-icon-btn.is-ready::after { display: none !important; }

  /* live wins: one calm line, long text cut off with an ellipsis */
  html.zone-play .pw-ticker-bar { margin: 8px 8px 0; padding: 7px 10px; font-size: 12px; gap: 8px; }
  html.zone-play .pw-ticker-bar .pw-tick-items { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  html.zone-play .pw-ticker-bar .pw-item-chip { white-space: nowrap; }

  /* the game */
  html.zone-play .pw-arena-card { margin: 8px 8px; }
  html.zone-play .pw-slip { padding: 6px 12px 4px; }
  html.zone-play .pw-slip .pw-chip-opt { padding: 5px 10px; }
  html.zone-play .pw-cta { padding: 0 12px 8px; }

  /* your rounds / leaderboard: fits the screen, scrolls sideways inside the card if it must */
  html.zone-play .pw-sub-card { margin: 8px 8px 12px; overflow: hidden; }
  html.zone-play .pw-sub-card .pw-tbl { width: 100%; font-size: 12px; }
  html.zone-play .pw-sub-card .pw-tbl th, html.zone-play .pw-sub-card .pw-tbl td { padding: 8px 6px; white-space: nowrap; }

  /* no footer links on the game page */
  html.zone-play .ls-footer-inner { display: none; }
  html.zone-play .ls-footer-bottom { padding-top: 8px; }
}

/* ------------------------------------------------------------------ small phones */
@media (max-width: 420px) {
  .fs-tabs { gap: 4px; }
  .fs-tab { padding: 0 10px; font-size: 12px; gap: 4px; }
}
@media (max-width: 380px) {
  :root { --fs-status-w: 50px; }
  .sb-team .bp-team-name { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .fs-tab-dot, .fs-collapse svg { animation: none; transition: none; }
}

/* ==========================================================================
   Daily bonus card on the Play page (only shown while today's bonus is waiting)
   ========================================================================== */
.pw-daily { order: 1; margin: 8px 8px 0; padding: 10px 12px; background: var(--bg-surface); border: 1px solid var(--border); border-radius: 10px; transition: opacity .4s ease, transform .4s ease; }
.pw-daily.is-claimed { opacity: 0; transform: translateY(-6px); }
.pw-daily-main { display: flex; align-items: center; gap: 10px; }
.pw-daily-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.pw-daily-txt b { font-size: 13px; font-weight: 700; color: var(--text-primary); }
.pw-daily-txt span { font-size: 12px; color: var(--text-secondary); line-height: 1.4; }
.pw-daily-txt em { font-style: normal; font-weight: 700; color: var(--text-primary); }
.pw-daily-btn { flex: 0 0 auto; height: 34px; padding: 0 18px; border: 0; border-radius: 17px; background: #B45309; color: #fff; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.pw-daily-btn:hover { filter: brightness(1.08); }
.pw-daily-btn:disabled { opacity: .6; cursor: default; }
.pw-daily-ladder { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.pw-daily-ladder li { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 5px 0 4px; border: 1px solid var(--border); border-radius: 8px; color: var(--text-muted); }
.pw-daily-ladder i { font-style: normal; font-size: 11px; font-weight: 700; line-height: 1; }
.pw-daily-ladder small { font-size: 10px; line-height: 1; }
.pw-daily-ladder li.is-done { background: var(--bg-subtle); color: var(--text-secondary); }
.pw-daily-ladder li.is-done i::after { content: " \2713"; }
.pw-daily-ladder li.is-now { border-color: #B45309; color: var(--text-primary); box-shadow: inset 0 0 0 1px #B45309; }

/* ==========================================================================
   Play & Win history page (play-history.php)
   ========================================================================== */
.ph-page { padding: 0 8px 24px; }
.ph-head { display: flex; align-items: center; gap: 10px; margin: 10px 0 8px; }
.ph-back { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border: 1px solid var(--border); border-radius: 15px; background: var(--bg-surface); color: var(--text-primary); font-size: 13px; font-weight: 600; text-decoration: none; }
.ph-title { margin: 0; font-size: 18px; font-weight: 800; color: var(--text-primary); }
.ph-cur { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--bg-subtle); margin-bottom: 10px; }
.ph-cur a { padding: 6px 16px; border-radius: 8px; font-size: 13px; font-weight: 700; color: var(--text-secondary); text-decoration: none; }
.ph-cur a.is-active { background: var(--bg-card); color: var(--text-primary); box-shadow: 0 1px 2px rgba(0,0,0,.12); }
.ph-tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.ph-tile { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px; background: var(--bg-surface); border: 1px solid var(--border); border-radius: 10px; min-width: 0; }
.ph-tile small { font-size: 11px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: .03em; }
.ph-tile b { font-size: 15px; font-weight: 800; color: var(--text-primary); overflow-wrap: anywhere; }
.ph-note { margin: 6px 2px 10px; font-size: 11px; color: var(--text-muted); }
.ph-filters { display: flex; gap: 6px; overflow-x: auto; padding: 2px 0 10px; scrollbar-width: none; }
.ph-filters::-webkit-scrollbar { display: none; }
.ph-filters a { flex: 0 0 auto; padding: 6px 13px; border: 1px solid var(--border); border-radius: 16px; background: var(--bg-surface); color: var(--text-secondary); font-size: 12px; font-weight: 600; text-decoration: none; }
.ph-filters a.is-active { background: #B45309; border-color: #B45309; color: #fff; }
.ph-list { list-style: none; margin: 0; padding: 0; background: var(--bg-surface); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.ph-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-top: 1px solid var(--border); }
.ph-row:first-child { border-top: 0; }
.ph-main, .ph-amt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ph-amt { text-align: right; flex: 0 0 auto; }
.ph-what { font-size: 14px; font-weight: 700; color: var(--text-primary); }
.ph-sub, .ph-amt small { font-size: 11px; color: var(--text-muted); line-height: 1.4; }
.ph-amt b { font-size: 14px; font-weight: 800; }
.ph-amt b.is-up, .ph-tile b.is-up { color: #15803D; }
.ph-amt b.is-down, .ph-tile b.is-down { color: var(--text-primary); }
html[data-theme="dark"] .ph-amt b.is-up, html[data-theme="dark"] .ph-tile b.is-up { color: #4ADE80; }
.ph-tile b.is-down { color: #B91C1C; }
html[data-theme="dark"] .ph-tile b.is-down { color: #F87171; }
.ph-row.is-pending, .ph-row.is-failed { opacity: .72; }
.ph-row.is-failed .ph-amt b { text-decoration: line-through; }
.ph-badge { display: inline-block; margin-left: 4px; padding: 1px 7px; border-radius: 8px; background: var(--bg-subtle); color: var(--text-secondary); font-size: 10px; font-weight: 700; vertical-align: 1px; }
.ph-pager { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; font-size: 13px; }
.ph-pager a { padding: 7px 14px; border: 1px solid var(--border); border-radius: 16px; background: var(--bg-surface); color: var(--text-primary); font-weight: 600; text-decoration: none; }
.ph-pageno { color: var(--text-muted); font-size: 12px; }
.ph-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 28px 16px; text-align: center; background: var(--bg-surface); border: 1px solid var(--border); border-radius: 10px; color: var(--text-secondary); font-size: 13px; }
.ph-empty b { color: var(--text-primary); font-size: 15px; }
.ph-cta { margin-top: 6px; padding: 9px 20px; border-radius: 18px; background: #B45309; color: #fff; font-weight: 700; text-decoration: none; }
@media (min-width: 768px) {
  .ph-page { max-width: 640px; margin: 0 auto; }
  .ph-tiles { grid-template-columns: repeat(4, 1fr); }
}

/* links to the history page from the Play page */
.pw-sub-nav { align-items: center; }
.pw-nav-link { flex: 0 0 auto; padding: 0 12px; font-size: 12px; font-weight: 700; color: var(--text-secondary); text-decoration: none; white-space: nowrap; }
.pw-nav-link:hover, .pw-hist-link:hover { color: var(--text-primary); }
.pw-hist-link { display: inline-block; margin-top: 8px; font-size: 12px; font-weight: 700; color: var(--text-secondary); text-decoration: none; }

/* the Play page lays its sections out in columns on desktop; the history page is one simple column */
.pw-page.ph-page { display: block; width: 100%; max-width: 640px; margin-left: auto; margin-right: auto; }
.pw-page.ph-page > * { order: 0; }

/* ==========================================================================
   Play responsibly page (play-limits.php) and the break notice on the Play page
   ========================================================================== */
.ph-head .ph-side { margin-left: auto; }
.pl-intro { margin: 0 0 12px; font-size: 13px; color: var(--text-secondary); line-height: 1.5; }
.pl-banner, .pw-break { margin: 0 0 10px; padding: 10px 12px; border: 1px solid #B45309; border-radius: 10px; background: var(--bg-surface); font-size: 12px; line-height: 1.5; color: var(--text-secondary); }
.pl-banner b, .pw-break b { display: block; color: var(--text-primary); font-size: 13px; }
.pw-break { order: 1; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 8px 8px 0; }
.pw-break b { display: inline; font-size: 12px; }
.pw-break a { flex: 0 0 auto; font-weight: 700; color: var(--text-primary); text-decoration: underline; }
.pl-card { margin: 0 0 12px; padding: 14px; background: var(--bg-surface); border: 1px solid var(--border); border-radius: 10px; }
.pl-card h2 { margin: 0 0 2px; font-size: 15px; font-weight: 800; color: var(--text-primary); }
.pl-sub { margin: 0 0 10px; font-size: 12px; color: var(--text-secondary); line-height: 1.5; }
.pl-status { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px; }
.pl-status div { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border-radius: 8px; background: var(--bg-subtle); min-width: 0; }
.pl-status small { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; color: var(--text-muted); }
.pl-status b { font-size: 13px; color: var(--text-primary); overflow-wrap: anywhere; }
.pl-none, .pl-pending { margin: 0 0 10px; font-size: 12px; color: var(--text-secondary); }
.pl-pending { color: var(--text-primary); font-weight: 600; }
.pl-form label { display: block; margin-bottom: 4px; font-size: 12px; font-weight: 600; color: var(--text-secondary); }
.pl-row { display: flex; gap: 8px; }
.pl-row input { flex: 1; min-width: 0; height: 38px; padding: 0 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg-card); color: var(--text-primary); font: inherit; font-size: 14px; }
.pl-btn { height: 38px; padding: 0 18px; border: 0; border-radius: 19px; background: #B45309; color: #fff; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.pl-btn:hover { filter: brightness(1.08); }
.pl-btn.is-soft { background: var(--bg-card); color: var(--text-primary); border: 1px solid var(--border); }
.pl-btn.is-soft:hover { border-color: #B45309; filter: none; }
.pl-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.pl-chip { padding: 6px 13px; border: 1px solid var(--border); border-radius: 16px; background: var(--bg-card); color: var(--text-secondary); font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.pl-chip.is-on { background: #B45309; border-color: #B45309; color: #fff; }
.pl-chip.is-remove { color: #B91C1C; }
html[data-theme="dark"] .pl-chip.is-remove { color: #F87171; }
.pl-help { display: block; margin-top: 8px; font-size: 11px; color: var(--text-muted); line-height: 1.5; }
.pl-breaks { display: flex; gap: 8px; flex-wrap: wrap; }
.pl-msg { margin: 0 0 12px; padding: 10px 12px; border-radius: 8px; font-size: 13px; font-weight: 600; }
.pl-msg.is-ok { background: var(--bg-subtle); color: var(--text-primary); }
.pl-msg.is-bad { background: #FEE2E2; color: #991B1B; }
html[data-theme="dark"] .pl-msg.is-bad { background: #3B1212; color: #FCA5A5; }
.pl-foot { margin: 4px 2px 0; font-size: 12px; color: var(--text-muted); }

/* ==========================================================================
   Invite friends (play-invite.php) and the "a friend invited you" note on the Play page
   ========================================================================== */
.pw-invite-note { order: 1; margin: 8px 8px 0; padding: 10px 12px; background: var(--bg-surface); border: 1px solid var(--border); border-radius: 10px; font-size: 12px; line-height: 1.5; color: var(--text-secondary); }
.pw-invite-note b { display: block; font-size: 13px; color: var(--text-primary); }
.inv-actions { margin-top: 10px; display: flex; gap: 8px; }
.inv-wa { display: inline-flex; align-items: center; text-decoration: none; }
.pl-row input[readonly] { color: var(--text-secondary); text-overflow: ellipsis; }
.pl-card .ph-cta { display: inline-block; margin-top: 4px; }
.ph-page > .ph-tiles { margin-top: 0; }

/* ==========================================================================
   Predict & win (play-predict.php)
   ========================================================================== */
.pr-h { margin: 14px 2px 8px; font-size: 14px; font-weight: 800; color: var(--text-primary); }
.pr-card { margin: 0 0 10px; padding: 12px; background: var(--bg-surface); border: 1px solid var(--border); border-radius: 10px; }
.pr-meta { display: flex; justify-content: space-between; gap: 8px; font-size: 11px; color: var(--text-muted); margin-bottom: 8px; }
.pr-teams { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; color: var(--text-primary); text-decoration: none; }
.pr-team { display: flex; align-items: center; gap: 6px; flex: 1; min-width: 0; font-size: 14px; }
.pr-team:last-child { justify-content: flex-end; text-align: right; }
.pr-team img { width: 22px; height: 22px; object-fit: contain; flex: 0 0 auto; }
.pr-team b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.pr-vs { font-size: 11px; color: var(--text-muted); }
.pr-opts { display: grid; grid-template-columns: 1fr auto 1fr; gap: 6px; }
.pr-opt { min-width: 0; padding: 9px 8px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg-card); color: var(--text-secondary); font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pr-opt[data-o="D"] { padding-left: 16px; padding-right: 16px; }
.pr-opt.is-on { background: #B45309; border-color: #B45309; color: #fff; }
.pr-exact { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 10px 0; font-size: 12px; color: var(--text-secondary); }
.pr-exact small { color: var(--text-muted); }
.pr-exact input { width: 46px; height: 34px; padding: 0 6px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg-card); color: var(--text-primary); font: inherit; font-size: 14px; text-align: center; }
.pr-go { width: 100%; }
.pr-go:disabled { opacity: .5; cursor: default; }
.pr-locked { padding: 8px 10px; border-radius: 8px; background: var(--bg-subtle); font-size: 12px; color: var(--text-secondary); }
.pr-locked b { color: var(--text-primary); }

/* the extra Play pages, as one row under the rounds / leaderboard tabs */
.pw-tools { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 8px 10px; background: var(--bg-surface); border-bottom: 1px solid var(--border); }
.pw-tools a { padding: 7px 4px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg-card); color: var(--text-secondary); font-size: 12px; font-weight: 700; text-align: center; text-decoration: none; }
.pw-tools a:hover { color: var(--text-primary); border-color: #B45309; }
.pw-tools a.is-main { background: #B45309; border-color: #B45309; color: #fff; }

/* ==========================================================================
   Free kick (fourth game)
   ========================================================================== */
.fk-stage { display: flex; flex-direction: column; gap: 8px; }
.fk-svg { width: 100%; height: auto; display: block; }
.fk-shots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; padding: 0 8px; }
.fk-shot { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-card); color: var(--text-primary); font: inherit; text-align: left; cursor: pointer; min-width: 0; }
.fk-shot b { font-size: 13px; font-weight: 800; }
.fk-shot .fk-odds { font-size: 11px; font-weight: 600; color: var(--text-muted); }
.fk-shot em { font-style: normal; font-size: 12px; font-weight: 800; color: #B45309; font-variant-numeric: tabular-nums; }
html[data-theme="dark"] .fk-shot em { color: #FBBF24; }
.fk-shot.is-on { border-color: #B45309; box-shadow: inset 0 0 0 1px #B45309; background: var(--bg-surface); }
.fk-shot:disabled, .fk-shot[aria-disabled="true"] { opacity: .6; cursor: default; }
@media (min-width: 768px) { .fk-shots { grid-template-columns: repeat(4, 1fr); } }

/* free kick on phones: shorter picture and slimmer shot buttons, so all four shots sit above the pinned stake bar */
@media (max-width: 767px) {
  .fk-svg { width: 100%; height: 160px; }   /* the picture is cropped (slice) to fill the width */
  .fk-stage { gap: 6px; }
  /* placed like the penalty game: the shot row on top, the picture below it running down to the stake bar */
  .fk-shots { order: -1; }
  /* all four shots in one row: a short name over what the shot pays, centred in each button */
  .fk-shots { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; padding: 0 8px; }
  .fk-shot { align-items: center; justify-content: center; text-align: center; gap: 1px; padding: 6px 3px; border-radius: 8px; }
  .fk-shot b { font-size: 12px; line-height: 1.15; white-space: nowrap; }
  .fk-shot em { font-size: 11px; }
}

/* ==========================================================================
   Phones: every game, the stake bar and the balances on one screen without scrolling.
   The stake bar is pinned above the bottom nav; the balances are at the top of the page.
   ========================================================================== */
@media (max-width: 767px) {
  /* wheel: the prize board becomes one swipeable row instead of a 4 x 2 block */
  html.zone-play .wheel-picks-tray { display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 6px; padding-bottom: 4px; scrollbar-width: none; }
  html.zone-play .wheel-picks-tray::-webkit-scrollbar { display: none; }
  html.zone-play .wheel-picks-tray .wheel-pick-pill { flex: 0 0 auto; min-width: 76px; }
}
@media (max-width: 767px) and (max-height: 740px) {
  /* less chrome above the game */
  html.zone-play .pw-start-hint { font-size: 11px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 6px 10px; }
  html.zone-play .pw-start { margin-top: 4px; }
  html.zone-play .pw-nav-tabs .pw-mode-btn .m-sub { display: none; }
  html.zone-play .pw-nav-tabs .pw-mode-btn { padding-top: 9px; padding-bottom: 9px; }
  /* penalty: drop the payout ladder (the stake bar already shows what a kick pays) and shorten the pitch */
  html.zone-play #pane-game-penalty .pen-ladder-bar { display: none; }
  html.zone-play #pane-game-penalty .pen-svg-frame { max-height: 165px; }
  /* wheel: only the wheel itself */
  html.zone-play #pane-game-spin .wheel-hist-strip,
  html.zone-play #pane-game-spin #spin-status-txt,
  html.zone-play #pane-game-spin .wheel-picks-tray { display: none; }
  /* free kick: shorter picture, no status line */
  html.zone-play .fk-svg { height: 120px; }
  html.zone-play #pane-game-freekick .pen-hud-row { display: none; }
}
@media (max-width: 767px) and (max-height: 740px) {
  /* penalty: keep the Lucky Kick row, drop the long hint line */
  html.zone-play #pane-game-penalty #pen-status-txt { display: none; }
}
@media (max-width: 767px) and (max-height: 740px) {
  /* the free kick picture is shown whole here, so the strip beside it carries the same sky and pitch colours */
  html.zone-play .fk-svg { height: 128px; background: linear-gradient(#0B1B3A 0, #173B73 52%, #15803D 52%, #166534 100%); }
}
@media (max-width: 767px) and (max-height: 660px) {
  /* free kick on short phones (e.g. 360x640): the promo nudge goes and the picture is a little shorter, so the shot buttons
     stay above the pinned stake bar instead of sitting behind it */
  html.zone-play .pw-start { display: none !important; }
  /* the 7-day ladder in the Daily bonus card is only decoration (the Claim button stays); hiding it pays for a taller picture */
  html.zone-play .pw-daily-ladder { display: none; }
  html.zone-play .fk-svg { height: 150px; }
}
@media (max-width: 767px) and (max-height: 700px) {
  /* crash: the row of recent multipliers makes way so the whole auto cash-out row stays above the stake bar */
  html.zone-play #pane-game-crash .crash-pill-strip { display: none; }
}

/* Phones: show BOTH balances at all times, as two stacked pills (label over amount) so the wallet row still fits on one line */
@media (max-width: 767px) {
  html.zone-play .pw-toggle-cur .pw-toggle-btn { flex-direction: column; align-items: center; justify-content: center; gap: 0; padding: 4px 11px; line-height: 1.1; min-width: 0; }
  html.zone-play .pw-toggle-cur .pw-toggle-btn .pw-cur-lbl { font-size: 9px; letter-spacing: .04em; }
  html.zone-play .pw-toggle-cur .pw-toggle-btn .pw-val-num { font-size: 13px; font-weight: 800; }
  html.zone-play .pw-toggle-cur .pw-toggle-btn:not(.is-active) .pw-val-num { display: inline; }
}
@media (max-width: 767px) and (max-height: 600px) {
  /* very small phones (e.g. 320 x 568): lose the deposit hint and shrink each picture a little more */
  html.zone-play .pw-start { display: none !important; }
  html.zone-play #pane-game-spin .wheel-svg-plate { max-height: 190px; }
  html.zone-play #pane-game-penalty .pen-svg-frame { max-height: 140px; }
  html.zone-play .fk-svg { height: 104px; }
  html.zone-play #pane-game-crash .crash-pill-strip { display: none; }
}
@media (max-width: 340px) {
  /* 320px phones: keep the wallet row to one line (sound can still be switched on and off from a wider screen) */
  html.zone-play #btn-sound-toggle { display: none; }
  html.zone-play .pw-deck-actions { gap: 5px; }
  html.zone-play .pw-toggle-cur .pw-toggle-btn { padding-left: 8px; padding-right: 8px; }
}
@media (max-width: 767px) and (max-height: 600px) {
  html.zone-play #crash-svg { max-height: 100px; }
  html.zone-play .fk-svg { height: 88px; }
}

/* ==========================================================================
   Phones turned sideways (landscape, short screens): the game on the left, the stake bar on the right,
   so the game, both balances and the main button are all on screen. The bottom tab bar steps aside.
   ========================================================================== */
@media (orientation: landscape) and (max-height: 520px) and (max-width: 1023px) {
  html.zone-play .bp-bottom-nav { display: none !important; }
  html.zone-play body { padding-bottom: 0 !important; }
  html.zone-play .wrap.wrap-play, html.zone-play .wrap-play .ls-shell, html.zone-play .pw-page { max-width: none !important; width: 100%; }
  html.zone-play .pw-page { padding-left: 4px; padding-right: 4px; }
  html.zone-play .pw-start { display: none !important; }

  /* slim wallet row and game tabs */
  html.zone-play .pw-deck { margin: 4px 8px 0; padding: 4px 8px; }
  html.zone-play .pw-nav-tabs { margin: 4px 8px 0; }
  html.zone-play .pw-nav-tabs .pw-mode-btn .m-sub { display: none; }
  html.zone-play .pw-nav-tabs .pw-mode-btn { padding-top: 7px; padding-bottom: 7px; }

  /* game | stake bar side by side */
  html.zone-play .pw-arena-card { display: grid !important; grid-template-columns: minmax(0, 1fr) minmax(240px, 300px); gap: 8px; align-items: start; margin: 4px 8px 8px; overflow: visible; }
  html.zone-play .pw-arena-card > .pw-game-pane { grid-column: 1; grid-row: 1; min-width: 0; }
  html.zone-play .pw-arena-card > .pw-controls { grid-column: 2; grid-row: 1; position: static !important; bottom: auto; margin: 0; align-self: start; }

  /* each game sized to the height that is left */
  html.zone-play #pane-game-penalty .pen-ladder-bar { display: none; }
  html.zone-play #pane-game-penalty .pen-svg-frame { max-height: 150px; }
  html.zone-play #pane-game-penalty #pen-status-txt { display: none; }
  html.zone-play #pane-game-crash .crash-pill-strip { display: none; }
  html.zone-play #crash-svg { max-height: 112px; }
  html.zone-play #pane-game-spin .wheel-hist-strip,
  html.zone-play #pane-game-spin #spin-status-txt,
  html.zone-play #pane-game-spin .wheel-picks-tray { display: none; }
  html.zone-play #pane-game-spin .wheel-svg-plate { max-height: 200px; }
  html.zone-play .fk-svg { height: 110px; background: linear-gradient(#0B1B3A 0, #173B73 52%, #15803D 52%, #166534 100%); }
  html.zone-play #pane-game-freekick .pen-hud-row { display: none; }
}
@media (orientation: landscape) and (max-height: 520px) and (max-width: 1023px) {
  /* the stake bar has its own column now, so the quick-stake chips can come back */
  html.zone-play .pw-slip .pw-chips-bar { display: flex !important; }
}
@media (orientation: landscape) and (max-height: 520px) and (max-width: 1023px) {
  /* free kick: the four shots in one row, so the picture can keep its height */
  html.zone-play .fk-shots { grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 0; }
  html.zone-play .fk-shot { padding: 5px 6px; }
  html.zone-play .fk-shot b { font-size: 11px; }
  html.zone-play .fk-shot .fk-odds { font-size: 9px; }
  html.zone-play .fk-shot em { font-size: 10px; }
}
@media (orientation: landscape) and (max-height: 400px) and (max-width: 1023px) {
  /* very short landscape screens: pictures follow the height that is left under the header, wallet row and tabs */
  html.zone-play #pane-game-spin .wheel-svg-plate { max-height: clamp(120px, calc(100vh - 165px), 200px); }
  html.zone-play #pane-game-penalty .pen-svg-frame { max-height: clamp(110px, calc(100vh - 170px), 150px); }
  html.zone-play #pane-game-penalty .pen-hud-row { display: none; }
  html.zone-play #crash-svg { max-height: clamp(70px, calc(100vh - 250px), 112px); }
  html.zone-play .fk-svg { height: clamp(90px, calc(100vh - 215px), 110px); }
  html.zone-play .pw-pen-lucky, html.zone-play #btn-pen-lucky { display: none; }
}
@media (orientation: landscape) and (max-height: 400px) and (max-width: 1023px) {
  html.zone-play #crash-auto-input { display: none; }      /* the preset buttons set it */
  html.zone-play .fk-shot .fk-odds { display: none; }
  html.zone-play .fk-shot { align-items: center; text-align: center; }
  html.zone-play .fk-shot b { white-space: normal; line-height: 1.1; font-size: 10.5px; }
}

/* the other Play pages (history, limits, invite, predict) sideways: a readable column with side margins, tiles in one row */
@media (orientation: landscape) and (max-height: 520px) and (max-width: 1023px) {
  html.zone-play .pw-page.ph-page { max-width: 760px !important; margin-left: auto; margin-right: auto; padding-left: 14px; padding-right: 14px; padding-bottom: 20px; }
  html.zone-play .ph-page .ph-tiles { grid-template-columns: repeat(4, 1fr); }
  html.zone-play .ph-page .ph-head { margin-top: 8px; }
}
@media (orientation: landscape) and (max-height: 520px) and (max-width: 1023px) {
  /* predict cards: match and score on the left, the three-way choice and the button on the right */
  html.zone-play .pr-card { display: grid; grid-template-columns: 1fr 1fr; column-gap: 14px; align-items: center; }
  html.zone-play .pr-card .pr-meta, html.zone-play .pr-card .pr-teams, html.zone-play .pr-card .pr-exact { grid-column: 1; }
  html.zone-play .pr-card .pr-opts { grid-column: 2; grid-row: 1 / span 2; }
  html.zone-play .pr-card .pr-go { grid-column: 2; grid-row: 3; }
  html.zone-play .pr-card .pr-locked { grid-column: 1 / -1; }
  html.zone-play .pr-card .pr-exact { margin: 6px 0 0; flex-wrap: nowrap; }
  html.zone-play .pr-card .pr-exact small { display: none; }
  html.zone-play .pr-card .pr-opt { font-size: 11px; padding: 8px 4px; }
}

/* ==========================================================================
   Desktop and laptop screens that are not very tall: each game, both balances and the pinned stake bar
   on one screen. The three-step deposit banner folds to its headline, and extras that repeat what the stake
   bar or the picture already say make way.
   ========================================================================== */
@media (min-width: 1024px) and (max-height: 860px) {
  html.zone-play .pw-start-grid { display: none; }
  html.zone-play .pw-slip-meta { display: none; }
  html.zone-play #pane-game-spin .wheel-hist-strip,
  html.zone-play #pane-game-spin #spin-status-txt,
  html.zone-play #pane-game-spin .wheel-picks-tray { display: none; }
  html.zone-play #pane-game-freekick .pen-hud-row { display: none; }
  html.zone-play #pane-game-penalty #pen-status-txt { display: none; }
}
@media (min-width: 1024px) and (max-height: 760px) {
  html.zone-play #pane-game-crash .crash-pill-strip { display: none; }
  html.zone-play #pane-game-penalty .pen-svg-frame { max-height: 185px; }
  html.zone-play .fk-svg { max-height: 140px; }
  html.zone-play #pane-game-spin .wheel-svg-plate { max-height: 250px; }
}
@media (min-width: 1024px) and (max-height: 800px) {
  html.zone-play #crash-svg { max-height: 185px; }
  html.zone-play #pane-game-penalty .pen-svg-frame { max-height: 165px; }
  html.zone-play #pane-game-penalty .pen-ladder-step { padding-top: 4px; padding-bottom: 4px; }
}
@media (min-width: 1024px) and (max-height: 760px) {
  /* the free kick picture is shown whole here, with sky and pitch colours filling the strip beside it */
  html.zone-play .fk-svg { height: 150px; max-height: none; background: linear-gradient(#0B1B3A 0, #173B73 52%, #15803D 52%, #166534 100%); }
}

/* Predict on desktop: a wider page with the match cards in two columns */
@media (min-width: 1024px) {
  html.zone-play .pw-page.ph-page.pr-wide { max-width: 1040px; }
  html.zone-play .pr-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: stretch; }
  html.zone-play .pr-grid .pr-card { margin: 0; display: flex; flex-direction: column; }
  /* a locked-in card is as tall as its neighbour; the pick sits in the middle of the spare space */
  html.zone-play .pr-grid .pr-card .pr-locked { flex: 1; display: flex; align-items: center; justify-content: center; gap: 0.3em; text-align: center; font-size: 13px; }
}

/* Desktop and laptop: every picture grows to the height this screen has left (it used to be capped small).
   Height left = screen height minus the page above the game and the stake bar below it. */
@media (min-width: 1024px) and (max-height: 900px) {
  html.zone-play #pane-game-penalty .pen-svg-frame { width: 100%; height: clamp(170px, calc(100vh - 535px), 300px); max-height: none; }
  html.zone-play #crash-svg { max-height: clamp(150px, calc(100vh - 510px), 300px); }
  html.zone-play #pane-game-spin .wheel-svg-plate { max-height: clamp(190px, calc(100vh - 385px), 340px); }
  html.zone-play .fk-svg { height: clamp(120px, calc(100vh - 500px), 290px); max-height: none; }
}
@media (min-width: 1024px) and (max-height: 900px) {
  /* the wheel grows to the height that is left; its history strip, status line and prize board make way */
  html.zone-play #pane-game-spin .wheel-hist-strip,
  html.zone-play #pane-game-spin #spin-status-txt,
  html.zone-play #pane-game-spin .wheel-picks-tray { display: none; }
  html.zone-play #pane-game-spin .wheel-disc-wrap { width: clamp(240px, calc(100vh - 410px), 340px); height: clamp(240px, calc(100vh - 410px), 340px); max-width: none; }
  html.zone-play #pane-game-spin .wheel-svg-plate { max-height: none; }
}
@media (min-width: 1024px) and (min-height: 901px) {
  html.zone-play #pane-game-spin .wheel-disc-wrap { width: 340px; height: 340px; max-width: none; }
}

/* Big screens: the Play page uses more of the width, and every picture grows with its column
   (it is cropped a little rather than left small). */
@media (min-width: 1500px) {
  html.zone-play .wrap.wrap-play { max-width: min(1560px, 96vw); }
}
@media (min-width: 1024px) and (min-height: 901px) {
  html.zone-play #pane-game-penalty .pen-svg-frame { width: 100%; height: auto; aspect-ratio: 360 / 216; max-height: clamp(300px, calc(100vh - 615px), 720px); }
  html.zone-play #crash-svg { max-height: calc(100vh - 510px); }
  html.zone-play .fk-svg { height: auto; aspect-ratio: 360 / 164; max-height: calc(100vh - 500px); }
  html.zone-play #pane-game-spin .wheel-disc-wrap { width: clamp(340px, calc(100vh - 640px), 520px); height: clamp(340px, calc(100vh - 640px), 520px); }
}

/* ==========================================================================
   Desktop: every game takes the same amount of height as the wheel (the size that works well), so switching
   between games does not make the page jump. --pw-h is the height of a whole game panel.
   ========================================================================== */
@media (min-width: 1024px) and (max-height: 900px) {
  html.zone-play { --pw-h: clamp(240px, calc(100vh - 410px), 340px); }
  html.zone-play #pane-game-crash .crash-pill-strip { display: none; }
  html.zone-play #pane-game-penalty #pen-status-txt { display: none; }
  html.zone-play #pane-game-penalty .pen-svg-frame { width: 100%; height: calc(var(--pw-h) - 108px); max-height: none; aspect-ratio: auto; }
  html.zone-play #crash-svg { width: 100%; height: calc(var(--pw-h) - 44px); max-height: none; }
  html.zone-play .fk-svg { height: calc(var(--pw-h) - 72px); max-height: none; aspect-ratio: auto; background: linear-gradient(#0B1B3A 0, #173B73 52%, #15803D 52%, #166534 100%); }
  html.zone-play #pane-game-spin .wheel-disc-wrap { width: var(--pw-h); height: var(--pw-h); }
}
@media (min-width: 1024px) and (min-height: 901px) {
  html.zone-play { --pw-h: clamp(340px, calc(100vh - 640px), 520px); }
  html.zone-play #pane-game-penalty .pen-svg-frame { width: 100%; height: auto; aspect-ratio: 360 / 216; max-height: calc(var(--pw-h) + 41px); }
  html.zone-play #crash-svg { width: 100%; height: auto; max-height: calc(var(--pw-h) + 71px); }
  html.zone-play .fk-svg { height: auto; aspect-ratio: 360 / 164; max-height: calc(var(--pw-h) + 47px); background: linear-gradient(#0B1B3A 0, #173B73 52%, #15803D 52%, #166534 100%); }
  html.zone-play #pane-game-spin .wheel-disc-wrap { width: min(var(--pw-h), 100%); height: auto; aspect-ratio: 1; }
}
@media (min-width: 1024px) and (max-height: 900px) {
  html.zone-play #pane-game-freekick .pen-hud-row { display: none; }
}
@media (min-width: 1024px) and (max-width: 1180px) {
  /* narrow stage: the crash auto cash-out row wraps onto two lines, so the chart gives that height back */
  html.zone-play #crash-svg { height: calc(var(--pw-h) - 79px); }
}

/* Taller phones in portrait (about 740 to 860px high): the Wheel's status line and prize amounts, and the Penalty
   Lucky Kick row, used to sit behind the stake bar. They now fit above it: the wheel and pitch give back a little
   height and the less useful lines (recent wheel results, the Penalty hint) make way. */
@media (max-width: 767px) and (orientation: portrait) and (min-height: 741px) and (max-height: 860px) {
  html.zone-play #pane-game-spin .wheel-hist-strip { display: none; }
  html.zone-play #pane-game-spin .wheel-disc-wrap { width: clamp(190px, calc(100vh - 600px), 262px); height: clamp(190px, calc(100vh - 600px), 262px); }
  html.zone-play #pane-game-penalty #pen-status-txt { display: none; }
  html.zone-play #pane-game-penalty .pen-svg-frame { max-height: 195px; }
}
@media (max-width: 767px) and (orientation: portrait) and (min-height: 741px) and (max-height: 790px) {
  /* on the shortest of these phones the wheel's status line goes, so the prize amounts stay above the stake bar */
  html.zone-play #pane-game-spin #spin-status-txt { display: none; }
}
@media (max-width: 380px) and (orientation: portrait) and (min-height: 741px) and (max-height: 860px) {
  /* narrow phones: the status line wraps onto two lines here, so it goes and the prize amounts stay in view */
  html.zone-play #pane-game-spin #spin-status-txt { display: none; }
}

/* ==========================================================================
   Free kick scene effects (the picture itself is the SVG in play.php)
   ========================================================================== */
#fk-keeper { transform-box: fill-box; transform-origin: 50% 90%; transition: transform .45s cubic-bezier(.2,.8,.3,1); }
#fk-net.is-ripple { animation: fkNetRipple .55s ease-out; }
@keyframes fkNetRipple {
  0% { transform: scale(1); }
  30% { transform: scale(1.05, 1.09); }
  65% { transform: scale(0.99, 0.985); }
  100% { transform: scale(1); }
}
.fk-svg.is-miss { animation: fkShake .42s; }
@keyframes fkShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-3px); }
  45% { transform: translateX(3px); }
  70% { transform: translateX(-2px); }
}
#fk-flash-txt { paint-order: stroke; stroke: rgba(0,0,0,.35); stroke-width: 2px; }
.fk-svg.is-goal #fk-flash { filter: drop-shadow(0 0 6px rgba(16,185,129,.7)); }
.fk-svg.is-miss #fk-flash { filter: drop-shadow(0 0 6px rgba(239,68,68,.6)); }
@media (prefers-reduced-motion: reduce) { #fk-net.is-ripple, .fk-svg.is-miss { animation: none; } }

/* ==========================================================================
   Game graphics polish: scene framing, glow, light, and a richer main button
   ========================================================================== */
/* scenes sit in a soft frame with rounded corners */
html.zone-play .pen-stage { border-radius: 12px; box-shadow: inset 0 0 0 1px rgba(148, 163, 184, .16), 0 10px 28px rgba(2, 6, 23, .28); }
html.zone-play .fk-svg { border-radius: 12px; box-shadow: inset 0 0 0 1px rgba(148, 163, 184, .16), 0 10px 28px rgba(2, 6, 23, .28); }
/* free kick on tall phones: a bigger picture (the extra height crops the sides a little, so the wall, keeper and ball grow) */
@media (max-width: 767px) and (min-height: 780px) {
  html.zone-play .fk-svg { height: 192px; }   /* the same height as the penalty picture on these phones */
  /* the hint line above the games becomes one line, which pays for the taller picture (the shots stay above the stake bar) */
  html.zone-play .pw-start-hint { font-size: 11px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 6px 10px; }
}
html.zone-play #crash-svg { border-radius: 12px; }

/* crash: twinkling stars and a glowing multiplier */
.cr-stars circle { opacity: .7; animation: crTwinkle 3.4s ease-in-out infinite; }
@keyframes crTwinkle { 0%, 100% { opacity: .25; } 50% { opacity: .95; } }
.crash-stage .crash-mult-readout { text-shadow: 0 0 18px var(--crash-col, rgba(56, 189, 248, .55)), 0 2px 0 rgba(0, 0, 0, .35); }
.crash-stage .crash-mult-readout.is-busted { text-shadow: 0 0 20px rgba(251, 113, 133, .7), 0 2px 0 rgba(0, 0, 0, .35); }

/* wheel: a warm pulse behind the plate and a lit pointer */
.wheel-disc-wrap { isolation: isolate; }
.wheel-disc-wrap::before { content: ""; position: absolute; inset: -9%; border-radius: 50%; pointer-events: none; z-index: -1;
  background: radial-gradient(circle, rgba(245, 158, 11, .28) 0%, rgba(245, 158, 11, .1) 45%, transparent 68%); animation: wheelPulse 3.4s ease-in-out infinite; }
.wheel-needle { filter: drop-shadow(0 0 5px rgba(239, 68, 68, .65)); }
@keyframes wheelPulse { 0%, 100% { transform: scale(.96); opacity: .7; } 50% { transform: scale(1.04); opacity: 1; } }

/* the main button: depth, a top highlight and a slow shine (cash-out and waiting states keep their own look) */
html.zone-play .pw-btn-main:not(.is-cashout):not(.is-ready):not(:disabled) {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, #C85A0B 0%, #B45309 52%, #9A4507 100%);
  box-shadow: 0 8px 18px rgba(180, 83, 9, .38), inset 0 1px 0 rgba(255, 255, 255, .26);
  text-shadow: 0 1px 1px rgba(0, 0, 0, .28);
}
html.zone-play .pw-btn-main:not(.is-cashout):not(.is-ready):not(:disabled)::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 38%; left: -45%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .28), transparent); transform: skewX(-18deg);
  animation: pwShine 5.5s ease-in-out infinite;
}
@keyframes pwShine { 0%, 62% { left: -45%; } 100% { left: 125%; } }
html.zone-play .pw-btn-main:not(:disabled):active { transform: translateY(1px) scale(.995); }

@media (prefers-reduced-motion: reduce) {
  .cr-stars circle, .wheel-disc-wrap::before, html.zone-play .pw-btn-main::after { animation: none !important; }
}

/* ==========================================================================
   Legal and info pages (About, Contact, Terms, Responsible play): a readable single column
   ========================================================================== */
.ls-doc { max-width: 760px; margin: 0 auto; padding: 16px 16px 32px; color: var(--text-primary); line-height: 1.6; font-size: 15px; }
.ls-doc h1 { font-size: 24px; line-height: 1.25; margin: 4px 0 4px; font-weight: 800; }
.ls-doc .ls-doc-meta { color: var(--text-muted); font-size: 13px; margin: 0 0 16px; }
.ls-doc h2 { font-size: 17px; line-height: 1.3; margin: 26px 0 6px; font-weight: 700; }
.ls-doc p { margin: 0 0 10px; }
.ls-doc ul, .ls-doc ol { margin: 0 0 12px; padding-left: 22px; }
.ls-doc li { margin: 0 0 5px; }
.ls-doc a { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }
.ls-doc .ls-doc-note { padding: 12px 14px; border: 1px solid var(--border); border-left: 4px solid var(--primary); border-radius: 10px; background: var(--bg-card); margin: 14px 0; }
.ls-doc .ls-doc-warn { border-left-color: var(--amber); }
.ls-doc .ls-doc-card { padding: 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-card); margin: 12px 0; }
.ls-doc .ls-doc-card b { display: block; margin-bottom: 2px; }
.ls-doc dl { margin: 0 0 12px; }
.ls-doc dt { font-weight: 700; margin-top: 10px; }
.ls-doc dd { margin: 0; color: var(--text-secondary, var(--text-muted)); }
.ls-doc-toc { font-size: 14px; }
@media (min-width: 1024px) { .ls-doc { padding-top: 24px; } .ls-doc h1 { font-size: 28px; } }

/* footer: four link columns (Matches, Predictions, More, Legal): two by two on phones, one row from tablet width up */
.ls-footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 600px) { .ls-footer-cols { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* tables inside the legal pages (the cookie list): scroll sideways on a phone instead of squeezing */
.ls-doc .ls-doc-table { overflow-x: auto; margin: 10px 0 14px; border: 1px solid var(--border); border-radius: 10px; }
.ls-doc table { width: 100%; border-collapse: collapse; font-size: 13px; }
.ls-doc th, .ls-doc td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--border); }
.ls-doc th { background: var(--bg-surface); font-weight: 700; }
.ls-doc tr:last-child td { border-bottom: 0; }
.ls-doc code { font-size: 12px; overflow-wrap: anywhere; background: var(--bg-surface); padding: 1px 5px; border-radius: 5px; }

/* daily picks post page (/daily-picks/): the message box and its buttons */
.ls-doc .ls-doc-text { width: 100%; box-sizing: border-box; font: 14px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; padding: 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-card); color: var(--text-primary); resize: vertical; }
.ls-doc .ls-doc-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 4px; }
.ls-doc a.ls-doc-btn, .ls-doc button.ls-doc-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-card); color: var(--text-primary); font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.ls-doc .ls-doc-btn.is-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
