/* PardBet — night pitch theme */
@font-face {
  font-family: 'Archivo';
  src: url('/fonts/archivo-latin-standard-normal.woff2') format('woff2');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Archivo';
  src: url('/fonts/archivo-latin-ext-standard-normal.woff2') format('woff2');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Archivo';
  src: url('/fonts/archivo-vietnamese-standard-normal.woff2') format('woff2');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

:root {
  --bg: #0f1d1b;
  --bg-deep: #0b1614;
  --panel: #152724;
  --raised: #1b312d;
  --raised-2: #213a35;
  --line: #26413c;
  --line-soft: #1e3531;
  --text: #e9f0ec;
  --text-2: #c6d4ce;
  --muted: #93aba3;
  --faint: #6b847c;
  --accent: #ffbb0b;
  --accent-hi: #ffcb47;
  --accent-ink: #1d1406;
  --win: #6ed49a;
  --loss: #f0715f;
  --live: #ff6254;
  --info: #7cc3e8;

  --r-odds: 6px;
  --r-panel: 10px;
  --r-modal: 14px;

  --header-h: 60px;
  --side-w: 244px;
  --slip-w: 328px;

  --font: 'Archivo', system-ui, -apple-system, 'Segoe UI', Roboto, 'Noto Sans', sans-serif;
  color-scheme: dark;
}
/* Archivo covers Latin and Vietnamese; other scripts use the best system font for the language
   (numbers, odds and team names stay in Archivo). */
:lang(ru),
:lang(uk) {
  --font: 'Archivo', system-ui, -apple-system, 'Segoe UI', Roboto, 'Noto Sans', sans-serif;
}
:lang(ja) {
  --font: 'Archivo', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic UI', Meiryo, 'Noto Sans JP', 'Noto Sans CJK JP', system-ui, sans-serif;
}
:lang(zh) {
  --font: 'Archivo', 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', 'Noto Sans CJK SC', 'Hiragino Sans GB', system-ui, sans-serif;
}
:lang(ko) {
  --font: 'Archivo', 'Apple SD Gothic Neo', 'Malgun Gothic', 'Noto Sans KR', 'Noto Sans CJK KR', system-ui, sans-serif;
}
:lang(th) {
  --font: 'Archivo', 'Noto Sans Thai', 'Leelawadee UI', Thonburi, Tahoma, system-ui, sans-serif;
}
:lang(hi) {
  --font: 'Archivo', 'Noto Sans Devanagari', 'Nirmala UI', 'Kohinoor Devanagari', system-ui, sans-serif;
}
:lang(ar) {
  --font: 'Archivo', 'Noto Sans Arabic', 'Segoe UI', 'Geeza Pro', Tahoma, system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.45;
  font-weight: 420;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
}
img,
svg {
  display: block;
}
h1,
h2,
h3,
h4,
p {
  margin: 0;
}
ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}
[hidden] {
  display: none !important;
}
::selection {
  background: var(--accent);
  color: var(--accent-ink);
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.num {
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum' 1;
}
.cond {
  font-stretch: 72%;
}
.muted {
  color: var(--muted);
}
.faint {
  color: var(--faint);
}
.win {
  color: var(--win);
}
.loss {
  color: var(--loss);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- logo ---------- */
.logo {
  display: inline-flex;
  align-items: center;
  flex: 0 1 auto;
  min-width: 0;
}
.logo img {
  display: block;
  height: 26px;
  width: auto;
}
.logo-full {
  max-width: 100%;
}
.logo-mark {
  display: none !important;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border-radius: 8px;
  font-weight: 620;
  font-size: 14px;
  white-space: nowrap;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}
.btn-primary:hover:not(:disabled) {
  background: var(--accent-hi);
}
.btn-quiet {
  background: var(--raised);
  color: var(--text);
}
.btn-quiet:hover:not(:disabled) {
  background: var(--raised-2);
}
.btn-line {
  border: 1px solid var(--line);
  color: var(--text);
}
.btn-line:hover:not(:disabled) {
  border-color: var(--muted);
}
.btn-danger {
  background: #3a1f1c;
  color: #ffb4a9;
}
.btn-danger:hover:not(:disabled) {
  background: #4a2622;
}
.btn-sm {
  height: 32px;
  padding: 0 12px;
  font-size: 13px;
  border-radius: 7px;
}
.btn-lg {
  height: 48px;
  padding: 0 22px;
  font-size: 15px;
}
.btn-block {
  width: 100%;
}
.link {
  color: var(--accent);
  font-weight: 560;
}
.link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.textbtn {
  color: var(--muted);
  font-weight: 540;
}
.textbtn:hover {
  color: var(--text);
}

/* ---------- forms ---------- */
.field {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
}
.field > span,
.label {
  font-size: 13px;
  color: var(--text-2);
  font-weight: 540;
}
.field small {
  color: var(--muted);
  font-size: 12px;
}
.input,
.select,
textarea.input {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  background: var(--bg-deep);
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
  transition: border-color 0.15s;
}
textarea.input {
  height: auto;
  padding: 10px 12px;
  resize: vertical;
}
.input:focus,
.select:focus {
  border-color: var(--accent);
}
.input::placeholder {
  color: var(--faint);
}
.input-wrap {
  position: relative;
}
.input-wrap .input {
  padding-inline-end: 64px;
}
.input-suffix {
  position: absolute;
  inset-inline-end: 6px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: 4px;
  align-items: center;
}
.input-suffix .tag {
  font-size: 12px;
  color: var(--muted);
  padding: 0 6px;
  font-weight: 600;
}
.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--text-2);
  margin: 4px 0 14px;
  cursor: pointer;
}
.check input {
  accent-color: var(--accent);
  width: 16px;
  height: 16px;
  margin: 1px 0 0;
  flex: none;
}
.form-error {
  background: #36201c;
  border: 1px solid #5a2e27;
  color: #ffc2b8;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 14px;
}
.form-ok {
  background: #173327;
  border: 1px solid #245139;
  color: #bfeccf;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 14px;
}
.seg {
  display: flex;
  background: var(--bg-deep);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 3px;
  gap: 3px;
}
.seg button {
  flex: 1;
  height: 32px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 13px;
  color: var(--muted);
}
.seg button.on {
  background: var(--raised-2);
  color: var(--text);
}
.seg button:hover:not(.on) {
  color: var(--text);
}

/* ---------- app shell ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  background: var(--panel);
  border-bottom: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  gap: 16px;
  padding-block: 0 0;
  padding-inline: 14px 18px;
}
.topbar .burger {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  color: var(--text-2);
}
.topbar .burger:hover {
  background: var(--raised);
}
.topbar-nav {
  display: flex;
  gap: 2px;
  margin-inline-start: 18px;
}
.topbar-nav a {
  padding: 8px 12px;
  border-radius: 7px;
  font-weight: 580;
  color: var(--muted);
}
.topbar-nav a:hover,
.topbar-nav a.on {
  color: var(--text);
}
.topbar-nav a.on {
  background: var(--raised);
}
.topbar-right {
  margin-inline-start: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}
.balance {
  display: flex;
  align-items: stretch;
  height: 40px;
  border-radius: 9px;
  background: var(--bg-deep);
  border: 1px solid var(--line);
  overflow: hidden;
}
.balance-amt {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-block: 0 0;
  padding-inline: 10px 12px;
  font-weight: 650;
}
.balance-amt .cur {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.balance .btn {
  height: auto;
  border-radius: 0;
}
.usermenu {
  position: relative;
}
.avatar {
  width: 40px;
  height: 40px;
  border-radius: 9px;
  background: var(--raised);
  display: grid;
  place-items: center;
  font-weight: 750;
  font-stretch: 80%;
  font-size: 16px;
  color: var(--text-2);
  text-transform: uppercase;
}
.avatar:hover {
  background: var(--raised-2);
}
.menu {
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + 8px);
  min-width: 220px;
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  padding: 6px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  z-index: 60;
}
.menu-head {
  padding: 8px 10px 10px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 6px;
}
.menu-head b {
  display: block;
  font-weight: 650;
}
.menu-head span {
  font-size: 12px;
  color: var(--muted);
}
.menu a,
.menu button {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 7px;
  color: var(--text-2);
  font-weight: 520;
  text-align: start;
}
.menu a:hover,
.menu button:hover {
  background: var(--raised-2);
  color: var(--text);
}
.menu svg {
  width: 16px;
  height: 16px;
  color: var(--muted);
}

.notice-bar {
  background: #2b2412;
  color: #f5d9a6;
  border-bottom: 1px solid #45391b;
  font-size: 13px;
  padding: 8px 18px;
  text-align: center;
}
.notice-bar.demo {
  background: #182a36;
  color: #bfe0f3;
  border-color: #23404f;
}
.notice-bar b {
  font-weight: 650;
}

.shell {
  display: grid;
  grid-template-columns: var(--side-w) minmax(0, 1fr) var(--slip-w);
  min-height: calc(100vh - var(--header-h));
}
.shell.no-slip {
  grid-template-columns: var(--side-w) minmax(0, 1fr);
}
.sidebar {
  position: sticky;
  top: var(--header-h);
  height: calc(100vh - var(--header-h));
  overflow-y: auto;
  background: var(--panel);
  border-inline-end: 1px solid var(--line-soft);
  padding: 14px 10px 30px;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.main {
  min-width: 0;
  padding: 20px 24px 60px;
}
.slip-col {
  position: sticky;
  top: var(--header-h);
  height: calc(100vh - var(--header-h));
  border-inline-start: 1px solid var(--line-soft);
  background: var(--panel);
  display: flex;
  flex-direction: column;
}

/* ---------- sidebar ---------- */
.search {
  position: relative;
  margin: 0 2px 14px;
}
.search svg {
  position: absolute;
  inset-inline-start: 11px;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  color: var(--faint);
}
.search .input {
  height: 38px;
  padding-inline-start: 34px;
  font-size: 13px;
}
.search-results {
  position: absolute;
  inset-inline-start: 0;
  inset-inline-end: 0;
  top: calc(100% + 6px);
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  padding: 6px;
  z-index: 30;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.4);
  max-height: 340px;
  overflow-y: auto;
}
.search-results a {
  display: block;
  padding: 8px 9px;
  border-radius: 7px;
}
.search-results a:hover {
  background: var(--raised-2);
}
.search-results b {
  display: block;
  font-weight: 580;
  font-size: 13px;
}
.search-results span {
  font-size: 12px;
  color: var(--muted);
}
.search-results .none {
  padding: 10px;
  color: var(--muted);
  font-size: 13px;
}
.nav-group {
  margin-bottom: 18px;
}
.nav-title {
  font-size: 12px;
  font-weight: 620;
  color: var(--faint);
  padding: 0 10px 6px;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--text-2);
  font-weight: 540;
  min-height: 36px;
}
.nav-link:hover {
  background: var(--raised);
  color: var(--text);
}
.nav-link.on {
  background: var(--raised);
  color: var(--text);
  box-shadow: inset 3px 0 0 var(--accent);
}
.nav-link svg.ic {
  width: 17px;
  height: 17px;
  color: var(--muted);
  flex: none;
}
.nav-link .count {
  margin-inline-start: auto;
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}
.nav-link .count.live {
  color: var(--live);
}
.nav-link .lg {
  width: 18px;
  height: 18px;
  flex: none;
  object-fit: contain;
}
.nav-link .nm {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.country > button {
  width: 100%;
}
.country .chev {
  width: 14px;
  height: 14px;
  color: var(--faint);
  transition: transform 0.15s;
  flex: none;
}
.country.open .chev {
  transform: rotate(90deg);
}
.country-leagues {
  padding-block: 2px 6px;
  padding-inline: 18px 0;
}
.country-leagues .nav-link {
  min-height: 32px;
  padding: 6px 10px;
  font-size: 13px;
}
.flag {
  width: 18px;
  height: 13px;
  border-radius: 2px;
  object-fit: cover;
  flex: none;
  background: var(--raised-2);
}
.flag-ph {
  width: 18px;
  height: 13px;
  border-radius: 2px;
  background: var(--raised-2);
  flex: none;
}

/* ---------- page headings ---------- */
.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.page-title {
  font-stretch: 70%;
  font-weight: 800;
  font-size: 32px;
  line-height: 1;
  letter-spacing: -0.005em;
}
.page-sub {
  color: var(--muted);
  margin-top: 6px;
}
.crumbs {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}
.crumbs a:hover {
  color: var(--text);
}
.crumbs .sep {
  color: var(--faint);
}

.tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line-soft);
}
.tabs::-webkit-scrollbar {
  display: none;
}
.tabs a,
.tabs button {
  padding: 10px 12px 11px;
  color: var(--muted);
  font-weight: 580;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.tabs a:hover,
.tabs button:hover {
  color: var(--text);
}
.tabs .on {
  color: var(--text);
  border-bottom-color: var(--accent);
}
.tabs .n {
  color: var(--faint);
  font-weight: 500;
  margin-inline-start: 4px;
}

.chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.chip {
  height: 32px;
  padding: 0 12px;
  border-radius: 16px;
  border: 1px solid var(--line);
  color: var(--text-2);
  font-weight: 560;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
}
.chip:hover {
  border-color: var(--muted);
}
.chip.on {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

/* ---------- fixtures list ---------- */
.league-block {
  background: var(--panel);
  border-radius: var(--r-panel);
  margin-bottom: 12px;
  overflow: hidden;
}
.league-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line-soft);
  min-height: 44px;
}
.league-head .lg {
  width: 20px;
  height: 20px;
  object-fit: contain;
}
.league-head .nm {
  font-weight: 620;
}
.league-head .ct {
  color: var(--muted);
  font-size: 13px;
}
.league-head a:hover .nm {
  color: var(--accent);
}
.league-head .cols {
  margin-inline-start: auto;
  display: grid;
  grid-template-columns: repeat(3, 68px);
  gap: 6px;
  text-align: center;
  font-size: 12px;
  font-weight: 650;
  color: var(--faint);
  margin-inline-end: 50px;
}
.fx-row {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) auto 44px;
  gap: 12px;
  align-items: center;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line-soft);
}
.fx-row:last-child {
  border-bottom: 0;
}
.fx-row:hover {
  background: rgba(255, 255, 255, 0.012);
}
.fx-time {
  font-size: 12px;
  line-height: 1.3;
  color: var(--muted);
}
.fx-time b {
  display: block;
  font-size: 13px;
  color: var(--text-2);
  font-weight: 620;
}
.fx-time .min {
  color: var(--live);
  font-weight: 700;
  font-size: 13px;
}
.fx-time .ht {
  color: var(--accent);
  font-weight: 700;
  font-size: 13px;
}
.fx-teams {
  min-width: 0;
  display: grid;
  gap: 5px;
}
.fx-team {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}
.fx-team .nm {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 540;
}
.fx-team .sc {
  margin-inline-start: auto;
  font-weight: 750;
  padding-inline-start: 10px;
  min-width: 24px;
  text-align: end;
}
.fx-team.lead .sc {
  color: var(--text);
}
.fx-row .odds3 {
  display: grid;
  grid-template-columns: repeat(3, 68px);
  gap: 6px;
}
.more {
  height: 44px;
  border-radius: var(--r-odds);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 650;
  color: var(--muted);
  border: 1px solid var(--line-soft);
}
.more:hover {
  color: var(--text);
  border-color: var(--line);
}

.crest {
  width: 20px;
  height: 20px;
  flex: none;
  object-fit: contain;
}
.crest-lg {
  width: 56px;
  height: 56px;
}

/* ---------- odds buttons ---------- */
.odd {
  position: relative;
  height: 44px;
  border-radius: var(--r-odds);
  background: var(--raised);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  font-weight: 680;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  transition: background-color 0.12s;
  min-width: 0;
}
.odd:hover:not(:disabled) {
  background: var(--raised-2);
}
.odd .lb {
  font-size: 11px;
  font-weight: 560;
  color: var(--muted);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 0 6px;
}
.odd.row {
  flex-direction: row;
  justify-content: space-between;
  padding: 0 12px;
}
.odd.row .lb {
  font-size: 13px;
  color: var(--text-2);
  padding: 0;
}
.odd.picked {
  background: var(--accent);
  color: var(--accent-ink);
}
.odd.picked .lb {
  color: #4b3310;
}
.odd:disabled {
  cursor: not-allowed;
  color: var(--faint);
  background: var(--bg-deep);
}
.odd .lock {
  width: 14px;
  height: 14px;
  color: var(--faint);
}
.odd-empty {
  height: 44px;
  border-radius: var(--r-odds);
  background: var(--bg-deep);
  display: grid;
  place-items: center;
  color: var(--faint);
}
.odd-empty svg {
  width: 14px;
  height: 14px;
}

/* the one motion: prices flash when they move */
@keyframes flashUp {
  0% {
    box-shadow: inset 0 0 0 1px var(--win);
    color: var(--win);
  }
  100% {
    box-shadow: inset 0 0 0 1px transparent;
  }
}
@keyframes flashDown {
  0% {
    box-shadow: inset 0 0 0 1px var(--loss);
    color: var(--loss);
  }
  100% {
    box-shadow: inset 0 0 0 1px transparent;
  }
}
.odd.up {
  animation: flashUp 1.6s ease-out;
}
.odd.down {
  animation: flashDown 1.6s ease-out;
}
.odd.up::after,
.odd.down::after {
  content: '';
  position: absolute;
  inset-inline-end: 5px;
  top: 5px;
  border: 4px solid transparent;
}
.odd.up::after {
  border-bottom-color: var(--win);
  border-top: 0;
}
.odd.down::after {
  border-top-color: var(--loss);
  border-bottom: 0;
}
@media (prefers-reduced-motion: reduce) {
  .odd.up,
.odd.down {
    animation: none;
  }
}

.live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--live);
  flex: none;
}
.live-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--live);
  font-weight: 700;
  font-size: 12px;
}

/* ---------- empty / loading ---------- */
.empty {
  background: var(--panel);
  border-radius: var(--r-panel);
  padding: 44px 24px;
  text-align: center;
  color: var(--muted);
}
.empty h3 {
  color: var(--text);
  font-size: 17px;
  font-weight: 650;
  margin-bottom: 6px;
}
.empty .btn {
  margin-top: 16px;
}
.skeleton {
  background: var(--panel);
  border-radius: var(--r-panel);
  height: 180px;
  margin-bottom: 12px;
  position: relative;
  overflow: hidden;
}
.skeleton::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.025), transparent);
  transform: translateX(-100%);
  animation: sk 1.4s infinite;
}
@keyframes sk {
  to {
    transform: translateX(100%);
  }
}

/* ---------- match page ---------- */
.scoreboard {
  background: var(--panel);
  border-radius: var(--r-panel);
  padding: 20px 24px 22px;
  margin-bottom: 14px;
  position: relative;
  overflow: hidden;
}
.scoreboard::before {
  /* centre circle, drawn faintly behind the score */
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 230px;
  height: 230px;
  border: 1px solid var(--line-soft);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.scoreboard::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  border-inline-start: 1px solid var(--line-soft);
  pointer-events: none;
}
.sb-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
  position: relative;
  z-index: 1;
}
.sb-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  margin-top: 16px;
  position: relative;
  z-index: 1;
}
.sb-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}
.sb-team .nm {
  font-stretch: 78%;
  font-weight: 750;
  font-size: 20px;
  line-height: 1.1;
}
.sb-mid {
  text-align: center;
  min-width: 150px;
  background: var(--panel);
  padding: 6px 10px;
}
.sb-score {
  font-stretch: 65%;
  font-weight: 850;
  font-size: 54px;
  line-height: 1;
  letter-spacing: 0.01em;
}
.sb-score .dash {
  color: var(--faint);
  margin: 0 6px;
  font-weight: 500;
}
.sb-when {
  font-stretch: 70%;
  font-weight: 800;
  font-size: 40px;
  line-height: 1;
}
.sb-state {
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 560;
}
.sb-state.live {
  color: var(--live);
}

.market {
  background: var(--panel);
  border-radius: var(--r-panel);
  margin-bottom: 10px;
}
.market-head {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 13px 16px;
  font-weight: 640;
  text-align: start;
}
.market-head svg {
  width: 16px;
  height: 16px;
  color: var(--faint);
  transition: transform 0.15s;
}
.market.closed .market-head svg {
  transform: rotate(-90deg);
}
.market.closed .market-body {
  display: none;
}
.market-body {
  padding: 0 12px 12px;
}
.grid {
  display: grid;
  gap: 6px;
}
.g2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.g3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.line-table {
  display: grid;
  grid-template-columns: 74px repeat(2, minmax(0, 1fr));
  gap: 6px;
  align-items: center;
}
.line-table .hd {
  font-size: 12px;
  color: var(--faint);
  font-weight: 650;
  text-align: center;
  padding-bottom: 2px;
}
.line-table .ln {
  font-weight: 650;
  color: var(--text-2);
  padding-inline-start: 6px;
}
.score-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  align-items: start;
}
.score-cols .col {
  display: grid;
  gap: 6px;
}
.score-cols .hd {
  font-size: 12px;
  color: var(--faint);
  font-weight: 650;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.closed-note {
  background: var(--panel);
  border-radius: var(--r-panel);
  padding: 18px;
  color: var(--muted);
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}
.closed-note svg {
  width: 18px;
  height: 18px;
  flex: none;
}

/* ---------- bet slip ---------- */
.slip-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  height: 52px;
  border-bottom: 1px solid var(--line-soft);
  flex: none;
}
.slip-head h2 {
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}
.slip-head .badge {
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 10px;
  font-size: 12px;
  font-weight: 750;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  display: inline-grid;
  place-items: center;
}
.slip-close {
  display: none;
}
.slip-modes {
  padding: 12px 14px 0;
  flex: none;
}
.slip-body {
  flex: 1;
  overflow-y: auto;
  padding: 12px 14px;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.slip-empty {
  text-align: center;
  color: var(--muted);
  padding: 50px 10px 30px;
}
.slip-empty svg {
  width: 44px;
  height: 44px;
  margin: 0 auto 14px;
  color: var(--line);
}
.slip-empty b {
  display: block;
  color: var(--text-2);
  font-weight: 620;
  margin-bottom: 4px;
}
.leg {
  background: var(--raised);
  border-radius: 9px;
  padding: 11px 12px;
  margin-bottom: 8px;
  position: relative;
}
.leg.changed {
  box-shadow: inset 0 0 0 1px var(--accent);
}
.leg.dead {
  opacity: 0.7;
  box-shadow: inset 0 0 0 1px #5a2e27;
}
.leg-top {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.leg-sel {
  font-weight: 650;
  line-height: 1.25;
}
.leg-mkt {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}
.leg-match {
  font-size: 12px;
  color: var(--text-2);
  margin-top: 6px;
  display: flex;
  gap: 6px;
  align-items: center;
}
.leg-odds {
  margin-inline-start: auto;
  font-weight: 750;
  font-size: 15px;
  text-align: end;
  white-space: nowrap;
}
.leg-odds s {
  display: block;
  font-size: 12px;
  color: var(--faint);
  font-weight: 500;
}
.leg-x {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  color: var(--faint);
  flex: none;
  margin-block: -2px 0;
  margin-inline: 0 -4px;
}
.leg-x:hover {
  color: var(--text);
  background: var(--raised-2);
}
.leg-x svg {
  width: 13px;
  height: 13px;
}
.leg-msg {
  font-size: 12px;
  margin-top: 8px;
  color: var(--accent);
}
.leg.dead .leg-msg {
  color: var(--loss);
}
.leg-stake {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 10px;
}
.leg-stake .input {
  height: 36px;
  font-weight: 600;
}
.leg-stake .ret {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  text-align: end;
  min-width: 88px;
}
.leg-stake .ret b {
  display: block;
  color: var(--text);
  font-size: 13px;
}
.slip-foot {
  border-top: 1px solid var(--line-soft);
  padding: 12px 14px 14px;
  flex: none;
  background: var(--panel);
}
.quick {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin: 8px 0 10px;
}
.quick button {
  height: 30px;
  border-radius: 6px;
  background: var(--raised);
  font-size: 12px;
  font-weight: 620;
  color: var(--text-2);
}
.quick button:hover {
  background: var(--raised-2);
}
.sum-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--muted);
  padding: 3px 0;
}
.sum-row b {
  color: var(--text);
  font-weight: 650;
}
.sum-row.big b {
  font-size: 16px;
  color: var(--accent);
}
.slip-opts {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 8px 0 10px;
}
.slip-opts .check {
  margin: 0;
  font-size: 12px;
}
.receipt {
  text-align: start;
}
.receipt-head {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}
.receipt-head .ok {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #1c3a2a;
  color: var(--win);
  display: grid;
  place-items: center;
}
.receipt-head .ok svg {
  width: 18px;
  height: 18px;
}
.receipt-head b {
  display: block;
  font-weight: 700;
}
.receipt-head span {
  font-size: 12px;
  color: var(--muted);
}

.slipbar {
  display: none;
}

/* ---------- bets list ---------- */
.bet-card {
  background: var(--panel);
  border-radius: var(--r-panel);
  margin-bottom: 10px;
  overflow: hidden;
}
.bet-top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-soft);
  flex-wrap: wrap;
}
.bet-top .type {
  font-weight: 700;
}
.bet-top .ref {
  font-size: 12px;
  color: var(--faint);
}
.bet-top .when {
  font-size: 12px;
  color: var(--muted);
  margin-inline-start: auto;
}
.status {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 680;
  background: var(--raised-2);
  color: var(--text-2);
}
.status.won,
.status.paid,
.status.finished,
.status.active {
  background: #1b3a2a;
  color: var(--win);
}
.status.lost,
.status.rejected,
.status.failed,
.status.expired,
.status.suspended {
  background: #3a211d;
  color: var(--loss);
}
.status.void,
.status.cancelled,
.status.refunded {
  background: #26302e;
  color: var(--muted);
}
.status.open,
.status.pending,
.status.waiting,
.status.confirming,
.status.confirmed,
.status.sending,
.status.partially_paid {
  background: #362b17;
  color: var(--accent);
}
.status.partial,
.status.half_won,
.status.half_lost {
  background: #2c3321;
  color: #cfe39a;
}
.bet-legs {
  padding: 4px 16px;
}
.bet-leg {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line-soft);
  align-items: start;
}
.bet-leg:last-child {
  border-bottom: 0;
}
.bet-leg .mark {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--line);
  margin-top: 1px;
}
.bet-leg .mark.won,
.bet-leg .mark.half_won {
  border-color: var(--win);
  background: var(--win);
}
.bet-leg .mark.lost,
.bet-leg .mark.half_lost {
  border-color: var(--loss);
  background: var(--loss);
}
.bet-leg .mark.void {
  border-color: var(--muted);
}
.bet-leg .sel {
  font-weight: 620;
}
.bet-leg .sub {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}
.bet-leg .od {
  font-weight: 700;
}
.bet-foot {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.12);
  font-size: 13px;
}
.bet-foot span {
  color: var(--muted);
  display: block;
  font-size: 12px;
}
.bet-foot b {
  font-weight: 700;
}
.bet-foot .r {
  text-align: end;
}

/* ---------- panels, tables, stats ---------- */
.panel {
  background: var(--panel);
  border-radius: var(--r-panel);
  padding: 18px 20px;
  margin-bottom: 14px;
}
.panel h2 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 4px;
}
.panel > p.muted {
  margin-bottom: 14px;
}
.panel-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.kv {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 8px 16px;
  font-size: 14px;
}
.kv dt {
  color: var(--muted);
}
.kv dd {
  margin: 0;
  word-break: break-word;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.stat {
  background: var(--panel);
  border-radius: var(--r-panel);
  padding: 14px 16px;
}
.stat span {
  font-size: 12px;
  color: var(--muted);
  display: block;
}
.stat b {
  font-stretch: 75%;
  font-weight: 780;
  font-size: 24px;
  display: block;
  margin-top: 4px;
  line-height: 1.1;
}
.stat small {
  color: var(--faint);
  font-size: 12px;
}
.table-wrap {
  background: var(--panel);
  border-radius: var(--r-panel);
  overflow-x: auto;
  margin-bottom: 14px;
}
table.t {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.t th {
  text-align: start;
  font-weight: 620;
  color: var(--faint);
  font-size: 12px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line-soft);
  white-space: nowrap;
}
.t td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}
.t tr:last-child td {
  border-bottom: 0;
}
.t td.r,
.t th.r {
  text-align: end;
}
.t .mono,
.mono {
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 12px;
  word-break: break-all;
}
.t .acts {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.t tr.clickable {
  cursor: pointer;
}
.t tr.clickable:hover td {
  background: rgba(255, 255, 255, 0.015);
}

/* ---------- modal ---------- */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 10, 9, 0.72);
  z-index: 100;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 7vh 16px 24px;
  overflow-y: auto;
}
.modal {
  width: 100%;
  max-width: 440px;
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-modal);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  position: relative;
}
.modal.wide {
  max-width: 520px;
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px 0;
}
.modal-head h2 {
  font-size: 18px;
  font-weight: 720;
}
.modal-x {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--muted);
}
.modal-x:hover {
  background: var(--raised);
  color: var(--text);
}
.modal-x svg {
  width: 16px;
  height: 16px;
}
.modal-body {
  padding: 16px 18px 20px;
}
.modal .tabs {
  padding: 0 18px;
  margin: 10px 0 0;
}
.modal-foot-note {
  font-size: 12px;
  color: var(--muted);
  margin-top: 12px;
  text-align: center;
}

/* auth modal */
.auth-brand {
  padding: 22px 22px 0;
}
.auth-brand p {
  color: var(--muted);
  margin-top: 8px;
  font-size: 13px;
}

/* wallet */
.coin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 14px;
}
.coin {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 8px;
  background: var(--raised);
  text-align: start;
  border: 1px solid transparent;
  min-width: 0;
}
.coin:hover {
  background: var(--raised-2);
}
.coin.on {
  border-color: var(--accent);
  background: var(--raised-2);
}
.coin .sym {
  font-weight: 700;
  font-size: 13px;
}
.coin .net {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}
.coin > div {
  min-width: 0;
}
.coin-ic {
  width: 28px;
  height: 28px;
  flex: none;
}
.pay-box {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 16px;
  align-items: start;
  margin-bottom: 14px;
}
.pay-box img {
  width: 132px;
  height: 132px;
  border-radius: 8px;
  background: #fff;
}
.copyline {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-deep);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding-block: 8px 8px;
  padding-inline: 10px 8px;
  margin-top: 4px;
}
.copyline .mono {
  flex: 1;
  min-width: 0;
}
.copy {
  flex: none;
  height: 28px;
  padding: 0 10px;
  border-radius: 6px;
  background: var(--raised-2);
  font-size: 12px;
  font-weight: 620;
}
.copy:hover {
  background: var(--line);
}
.warn {
  display: flex;
  gap: 10px;
  font-size: 13px;
  color: #f5d9a6;
  background: #2b2412;
  border: 1px solid #45391b;
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 14px;
}
.warn svg {
  width: 16px;
  height: 16px;
  flex: none;
  margin-top: 1px;
}
.steps {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
}
.steps span {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: var(--line);
}
.steps span.on {
  background: var(--accent);
}
.statusline {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--raised);
  font-size: 13px;
  margin-bottom: 12px;
}
.statusline .spin {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--line);
  border-top-color: var(--accent);
  animation: spin 0.9s linear infinite;
  flex: none;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.breakdown {
  background: var(--bg-deep);
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 14px;
}
.hist-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 13px;
}
.hist-row:last-child {
  border-bottom: 0;
}
.hist-row .d {
  font-size: 12px;
  color: var(--muted);
}
.hist-row .a {
  text-align: end;
  font-weight: 650;
  white-space: nowrap;
}
.hist-row .a small {
  display: block;
  font-weight: 450;
  color: var(--faint);
  font-size: 12px;
}
.code-reveal {
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 18px;
  letter-spacing: 0.06em;
  background: var(--bg-deep);
  border: 1px dashed var(--accent);
  border-radius: 8px;
  padding: 14px;
  text-align: center;
  margin: 10px 0 12px;
  word-break: break-all;
}

/* ---------- toast ---------- */
.toasts {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  z-index: 200;
  display: grid;
  gap: 8px;
  pointer-events: none;
  width: min(420px, calc(100% - 24px));
}
.toast {
  background: var(--raised-2);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 13px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
  display: flex;
  gap: 10px;
  align-items: center;
}
.toast.err {
  border-color: #5a2e27;
}
.toast.ok::before,
.toast.err::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: none;
  background: var(--win);
}
.toast.err::before {
  background: var(--loss);
}
.age {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--faint);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-stretch: 75%;
  color: var(--muted);
  font-size: 14px;
}
.shell-footer {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
  font-size: 12px;
  color: var(--faint);
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}
.shell-footer a:hover {
  color: var(--text);
}
.shell-footer .chat-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: inherit;
  font: inherit;
  padding: 0;
}
.shell-footer .chat-link svg {
  width: 15px;
  height: 15px;
}
.shell-footer .chat-link:hover {
  color: var(--text);
}
body.chat-blocked .chat-link {
  display: none;
}

/* HubSpot chat widget (the container comes from HubSpot's script, see public/assets/js/chat.js).
   These rules are more specific than HubSpot's own, which use !important. */
/* below drawers (90), pop-ups (100) and toasts (200), above the bottom bar (70) */
body #hubspot-messages-iframe-container:not(.hs-messages-lightbox-expanded) {
  z-index: 85 !important;
}
/* not available on match pages, casino games, admin, or while a phone drawer is open */
body.chat-off #hubspot-messages-iframe-container {
  display: none !important;
}
/* phones: the launcher sits above the bottom bar (the open chat still fills the screen) */
@media (max-width: 900px) {
  html:not(.hs-messages-widget-open) body #hubspot-messages-iframe-container {
    bottom: calc(62px + env(safe-area-inset-bottom)) !important;
  }
}

/* language picker (footer) */
.lang-pick {
  position: relative;
}
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.lang-btn:hover,
.lang-btn[aria-expanded='true'] {
  border-color: var(--muted);
}
.lang-btn .ic {
  width: 16px;
  height: 16px;
  color: var(--muted);
}
.lang-btn .lang-chev {
  width: 14px;
  height: 14px;
  color: var(--muted);
  transform: rotate(180deg);
  transition: transform 0.15s ease;
}
.lang-btn[aria-expanded='true'] .lang-chev {
  transform: none;
}
.lang-menu {
  position: absolute;
  bottom: calc(100% + 8px);
  inset-inline-start: 0;
  z-index: 60;
  list-style: none;
  margin: 0;
  padding: 6px;
  width: 240px;
  max-height: min(64vh, 560px);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}
.lang-menu[hidden] {
  display: none;
}
.lang-menu button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 11px 14px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  text-align: start;
  cursor: pointer;
}
.lang-menu button:hover,
.lang-menu button:focus-visible {
  background: var(--raised-2);
  outline: none;
}
.lang-menu button.on {
  color: var(--accent);
}
.lang-menu button .ic {
  width: 16px;
  height: 16px;
  flex: none;
}

/* ---------- prose pages ---------- */
.prose {
  max-width: 720px;
}
.prose h2 {
  font-size: 18px;
  font-weight: 700;
  margin: 26px 0 8px;
}
.prose p,
.prose li {
  color: var(--text-2);
  line-height: 1.65;
}
.prose p + p {
  margin-top: 10px;
}
.prose ul {
  list-style: disc;
  padding-inline-start: 20px;
  margin: 8px 0;
}
.prose li {
  margin: 4px 0;
}

/* ---------- mobile bottom bar ---------- */
.bottombar {
  display: none;
}
.drawer-mask {
  display: none;
}

/* ---------- responsive ---------- */
@media (max-width: 1280px) {
  .shell {
    grid-template-columns: var(--side-w) minmax(0, 1fr);
  }
  .slip-col {
    position: fixed;
    inset-inline-end: 0;
    top: 0;
    height: 100%;
    width: min(380px, 100%);
    z-index: 90;
    transform: translateX(100%);
    transition: transform 0.2s ease;
    border-inline-start: 1px solid var(--line);
    box-shadow: -20px 0 50px rgba(0, 0, 0, 0.4);
  }
  body.slip-open .slip-col {
    transform: none;
  }
  body.slip-open .drawer-mask,
body.nav-open .drawer-mask {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(4, 10, 9, 0.6);
    z-index: 80;
  }
  .slip-close {
    display: grid;
  }
  .slipbar {
    display: flex;
    position: fixed;
    inset-inline-end: 20px;
    bottom: 20px;
    z-index: 50;
    height: 48px;
    padding: 0 18px;
    align-items: center;
    gap: 10px;
    border-radius: 24px;
    background: var(--accent);
    color: var(--accent-ink);
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  }
  .slipbar .n {
    background: var(--accent-ink);
    color: var(--accent);
    min-width: 22px;
    height: 22px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    font-size: 12px;
    padding: 0 6px;
  }
}

@media (max-width: 1080px) {
  .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  :root {
    --header-h: 56px;
  }
  .shell {
    grid-template-columns: minmax(0, 1fr);
  }
  .sidebar {
    position: fixed;
    inset-inline-start: 0;
    top: 0;
    height: 100%;
    width: min(300px, 86%);
    z-index: 90;
    transform: translateX(-100%);
    transition: transform 0.2s ease;
    padding-top: 18px;
  }
  body.nav-open .sidebar {
    transform: none;
  }
  .topbar .burger {
    display: flex;
  }
  .topbar-nav {
    display: none;
  }
  .topbar {
    padding: 0 10px;
    gap: 8px;
  }
  .main {
    padding: 16px 12px 110px;
  }
  .slipbar {
    display: none;
  }
  .bottombar {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    position: fixed;
    inset-inline-start: 0;
    inset-inline-end: 0;
    bottom: 0;
    z-index: 70;
    background: var(--panel);
    border-top: 1px solid var(--line);
    height: calc(62px + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
  }
  .bottombar a,
.bottombar button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    font-size: 11px;
    font-weight: 600;
    color: var(--muted);
    position: relative;
  }
  .bottombar .on {
    color: var(--text);
  }
  .bottombar svg {
    width: 20px;
    height: 20px;
  }
  .bottombar .n {
    position: absolute;
    top: 7px;
    left: calc(50% + 6px);
    background: var(--accent);
    color: var(--accent-ink);
    font-size: 10px;
    font-weight: 800;
    min-width: 17px;
    height: 17px;
    border-radius: 9px;
    display: grid;
    place-items: center;
    padding: 0 4px;
  }
  .slip-col {
    width: 100%;
    top: auto;
    bottom: 0;
    height: min(88vh, 720px);
    transform: translateY(100%);
    border-radius: 14px 14px 0 0;
    border-inline-start: 0;
    border-top: 1px solid var(--line);
  }
  .balance-amt {
    padding: 0 8px;
    font-size: 13px;
  }
  .balance .btn span {
    display: none;
  }
  .league-head .cols {
    display: none;
  }
  .fx-row {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 8px 10px;
    padding: 10px 12px;
  }
  .fx-row .odds3 {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .fx-row .more {
    display: none;
  }
  .fx-row .odds3-wrap {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 48px;
    gap: 6px;
  }
  .fx-row .odds3-wrap .more {
    display: grid;
  }
  .sb-team .nm {
    font-size: 15px;
  }
  .crest-lg {
    width: 42px;
    height: 42px;
  }
  .sb-score {
    font-size: 42px;
  }
  .sb-when {
    font-size: 30px;
  }
  .sb-mid {
    min-width: 96px;
  }
  .scoreboard {
    padding: 16px 12px 18px;
  }
  .panel-row {
    grid-template-columns: 1fr;
  }
  .kv {
    grid-template-columns: 1fr;
    gap: 2px;
  }
  .kv dd {
    margin-bottom: 10px;
  }
  .page-title {
    font-size: 28px;
  }
  .toasts {
    bottom: 76px;
  }
  .pay-box {
    grid-template-columns: 1fr;
  }
  .pay-box img {
    margin: 0 auto;
  }
  .bet-foot {
    grid-template-columns: repeat(3, auto);
  }
  .overlay {
    padding: 12px 8px;
  }
}

@media (max-width: 520px) {
  .logo img {
    height: 22px;
  }
  .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .coin-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* late additions */
.modal-x.abs {
  position: absolute;
  inset-inline-end: 12px;
  top: 12px;
  z-index: 2;
}
.empty svg.ic {
  width: 40px;
  height: 40px;
  margin: 0 auto 14px;
  color: var(--line);
}
.slip-head-r {
  display: flex;
  align-items: center;
  gap: 10px;
}
.receipt-actions {
  margin-top: 8px;
}
.leg-match a:hover {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.reset-intro,
.modal-body > p.muted {
  margin-bottom: 14px;
}
.gap-top {
  margin-top: 12px;
}
.pending-title {
  margin: 22px 0 4px;
}
.empty-hist {
  padding: 24px 0 8px;
  text-align: center;
}
.hist-sk {
  height: 140px;
  margin-top: 14px;
}
.modal .seg + [data-hist-body] {
  margin-top: 8px;
}
/* full-width pages drop the slip column on desktop; on phones the slip sheet stays reachable */
@media (min-width: 1281px) {
  .shell.no-slip .slip-col {
    display: none;
  }
}
.shell.no-slip ~ .slipbar {
  display: none;
}
.boot-fail {
  max-width: 420px;
  margin: 18vh auto 0;
}
.side-foot {
  border-top: 1px solid var(--line-soft);
  padding-top: 12px;
}
.age.age-sm {
  width: 30px;
  height: 30px;
  font-size: 11px;
  border-width: 1.5px;
}
.section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 8px 0 12px;
}
.section-title h2 {
  font-stretch: 75%;
  font-weight: 780;
  font-size: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-title a {
  font-size: 13px;
  color: var(--muted);
  font-weight: 560;
}
.section-title a:hover {
  color: var(--text);
}
.section-gap {
  height: 18px;
}
.center-more {
  text-align: center;
  margin: 18px 0 6px;
}
.sb-sk {
  height: 190px;
}
.market-note {
  font-size: 12px;
  margin: 14px 2px 0;
}
.big-balance {
  font-stretch: 70%;
  font-weight: 820;
  font-size: 40px;
  line-height: 1.1;
  margin: 8px 0 16px;
}
.big-balance span {
  font-size: 16px;
  color: var(--muted);
  font-weight: 650;
  font-stretch: 100%;
}
.btn-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.narrow {
  max-width: 420px;
}
.panel .warn {
  margin: 10px 0 16px;
}
.panel h2 + .kv {
  margin-top: 12px;
}
.bet-note {
  padding: 10px 16px;
  font-size: 12px;
  color: var(--muted);
  border-top: 1px solid var(--line-soft);
}
.link-quiet:hover {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.admin-help {
  margin: -4px 0 14px;
  max-width: 760px;
}
.admin-search {
  display: flex;
  gap: 8px;
  max-width: 460px;
  margin-bottom: 14px;
}
.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0 18px;
  margin-top: 12px;
}
.settings-grid .check {
  margin-top: 6px;
}
.settings-grid label.field:has(textarea) {
  grid-column: 1 / -1;
}
.coin-status {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}
.sel-line + .sel-line {
  margin-top: 6px;
}
.adjust {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 8px;
  margin: 6px 0 10px;
}
.table-wrap.flat {
  margin: 8px -20px -18px;
  border-radius: 0;
}
@media (max-width: 600px) {
  .adjust {
    grid-template-columns: 1fr;
  }
}
.noscript {
  padding: 40px;
  text-align: center;
}
.lg-glyph {
  width: 18px;
  height: 18px;
  flex: none;
  color: var(--faint);
}
.statusline svg {
  width: 16px;
  height: 16px;
  flex: none;
  color: var(--win);
}
.statusline.bad svg {
  color: var(--loss);
}
.modal-body .btn-block + .btn-block {
  margin-top: 8px;
}
.modal form > .sum-row:first-child {
  margin-bottom: 12px;
}
.modal form > p.muted {
  margin-bottom: 14px;
}
.modal-lead {
  margin-bottom: 14px;
  overflow-wrap: anywhere;
}
.danger-panel {
  box-shadow: inset 0 0 0 1px #5a2e27;
}

/* ---------- casino ---------- */
.side-switch {
  margin: 0 2px 14px;
}
.side-switch a {
  flex: 1;
  height: 32px;
  border-radius: 6px;
  font-weight: 620;
  font-size: 13px;
  color: var(--muted);
  display: grid;
  place-items: center;
}
.side-switch a.on {
  background: var(--raised-2);
  color: var(--text);
}
.side-switch a:hover:not(.on) {
  color: var(--text);
}
.casino-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.casino-search {
  flex: 1 1 260px;
  margin: 0;
}
.casino-bar .select {
  flex: 0 1 240px;
  height: 38px;
  font-size: 13px;
  appearance: none;
  padding-inline-end: 30px;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 16px) 16px, calc(100% - 11px) 16px;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}
.grid-count {
  font-size: 13px;
  margin: -4px 0 10px;
}
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 18px 12px;
}
.game-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 132px;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 22px;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.game {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.game-art {
  display: block;
  aspect-ratio: 1;
  border-radius: var(--r-panel);
  overflow: hidden;
  background: var(--panel);
  box-shadow: inset 0 0 0 1px var(--line-soft);
}
.game-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.game:hover .game-art,
.game:focus-visible .game-art {
  box-shadow: 0 0 0 2px var(--accent);
}
.game:focus-visible {
  outline: none;
}
.game-name {
  margin-top: 8px;
  font-weight: 600;
  font-size: 13px;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.game-prov {
  font-size: 12px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* games without artwork: the name is the picture */
.game-ph {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  padding: 12px;
  font-stretch: 64%;
  font-weight: 850;
  font-size: 22px;
  line-height: 0.95;
  color: rgba(255, 255, 255, 0.92);
  overflow: hidden;
  word-break: break-word;
}
.ph-0 { background: #2c4a42; }
.ph-1 { background: #4a3a24; }
.ph-2 { background: #2d3d57; }
.ph-3 { background: #4f2d33; }
.ph-4 { background: #3b4a26; }
.ph-5 { background: #413055; }
.ph-6 { background: #1f4b4f; }
.ph-7 { background: #53402a; }

.play-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.play-bar .btn svg {
  width: 16px;
  height: 16px;
}
.play-title {
  min-width: 0;
  flex: 1;
}
.play-title b {
  display: block;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.play-title span {
  font-size: 12px;
  color: var(--muted);
}
.play-stage {
  position: relative;
  height: calc(100vh - var(--header-h) - 110px);
  min-height: 440px;
  border-radius: var(--r-panel);
  overflow: hidden;
  background: #050a09;
}
.play-stage iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.play-stage:fullscreen {
  border-radius: 0;
}
.play-wait,
.play-msg {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  text-align: center;
  padding: 24px;
}
.play-msg h3 {
  font-size: 17px;
  font-weight: 650;
}
.play-msg .btn-row {
  justify-content: center;
  margin-top: 8px;
}
.play-wait .spin {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 3px solid var(--line);
  border-top-color: var(--accent);
  animation: spin 0.9s linear infinite;
}
.t.rounds td {
  vertical-align: middle;
}
@media (max-width: 900px) {
  .game-grid {
    grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
    gap: 14px 10px;
  }
  .game-ph {
    font-size: 17px;
    padding: 9px;
  }
  .game-row {
    grid-auto-columns: 104px;
  }
  .casino-bar .select {
    flex: 1 1 100%;
  }
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}
.input.select-sm {
  height: 32px;
  font-size: 13px;
  min-width: 140px;
  width: auto;
  padding: 0 8px;
}
.panel > p.muted:last-child {
  margin-bottom: 0;
}
.api-url {
  font-size: 12px;
  margin-top: 6px;
  word-break: break-all;
}

/* ---------- fixes ---------- */
.btn svg {
  width: 16px;
  height: 16px;
  flex: none;
}
@media (max-width: 900px) {
  /* full-width pages (casino, admin) must not keep a sidebar column on phones */
  .shell,
  .shell.no-slip {
    grid-template-columns: minmax(0, 1fr);
  }
  .balance .btn {
    padding: 0 12px;
  }
  .balance .btn svg {
    width: 18px;
    height: 18px;
  }
}

/* ---------- casino lobby ---------- */
.casino-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.casino-head .casino-search {
  flex: 0 1 360px;
}
.cchips {
  position: sticky;
  top: var(--header-h);
  z-index: 20;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  background: var(--bg);
  padding: 10px 0 12px;
  margin: 0 0 12px;
  border-bottom: 1px solid var(--line-soft);
}
.cchips::-webkit-scrollbar {
  display: none;
}
.cchip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 14px;
  border-radius: 19px;
  background: var(--panel);
  color: var(--text-2);
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
  flex: none;
}
.cchip svg {
  width: 16px;
  height: 16px;
  color: var(--muted);
}
.cchip:hover {
  background: var(--raised);
  color: var(--text);
}
.cchip.on {
  background: var(--text);
  color: var(--bg);
}
.cchip.on svg {
  color: var(--bg);
}
.dw-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 187, 11, 0.22);
}

.crow {
  margin-bottom: 30px;
}
.crow-head,
.grid-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 12px;
}
.crow-head h2,
.grid-head h2 {
  font-stretch: 72%;
  font-weight: 800;
  font-size: 22px;
  line-height: 1.1;
  letter-spacing: -0.005em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.crow-meta {
  color: var(--faint);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.crow-tools {
  margin-inline-start: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  align-self: center;
}
.crow-all {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  padding: 6px 10px;
  border-radius: 8px;
  white-space: nowrap;
}
.crow-all:hover {
  background: var(--panel);
  color: var(--text);
}
.crow-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--panel);
  color: var(--text-2);
  display: grid;
  place-items: center;
}
.crow-btn svg {
  width: 16px;
  height: 16px;
}
.crow-btn:hover:not(:disabled) {
  background: var(--raised);
  color: var(--text);
}
.crow-btn:disabled {
  opacity: 0.35;
  cursor: default;
}
.crow-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 164px;
  gap: 14px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline-start: 0;
  scrollbar-width: none;
  padding-bottom: 2px;
}
.crow-track::-webkit-scrollbar {
  display: none;
}
.crow-track > * {
  scroll-snap-align: start;
}

/* Top Picks: ranked, larger tiles with outlined numerals */
.crow-track.ranked {
  grid-auto-columns: 222px;
  gap: 10px;
}
.game.rk {
  position: relative;
  padding-inline-start: 58px;
}
.rk-n {
  position: absolute;
  inset-inline-start: 0;
  bottom: 30px;
  font-stretch: 62%;
  font-weight: 900;
  font-size: 128px;
  line-height: 0.78;
  letter-spacing: -0.06em;
  color: var(--bg);
  -webkit-text-stroke: 2px #3f5f58;
  paint-order: stroke fill;
  pointer-events: none;
  user-select: none;
}
.game.rk .game-art {
  position: relative;
  z-index: 1;
}
.game-art {
  position: relative;
}
.dw {
  position: absolute;
  inset-inline-start: 8px;
  top: 8px;
  z-index: 2;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 10px;
  font-weight: 750;
  line-height: 1;
  padding: 4px 6px;
  border-radius: 4px;
  white-space: nowrap;
}

/* providers */
.crow-track.pstrip {
  grid-auto-columns: 176px;
  gap: 10px;
}
.pcard {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 12px;
  align-items: center;
  padding: 14px;
  border-radius: var(--r-panel);
  background: var(--panel);
  box-shadow: inset 0 0 0 1px var(--line-soft);
}
.pcard:hover {
  background: var(--raised);
}
.pcard-mono {
  grid-row: 1 / span 2;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-stretch: 70%;
  font-weight: 850;
  font-size: 16px;
  color: var(--accent);
  box-shadow: inset 0 0 0 1.5px #3f5f58;
}
.pcard b {
  font-weight: 650;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pcard span:last-child {
  font-size: 12px;
  color: var(--muted);
}
.row-sk {
  height: 230px;
}

@media (max-width: 900px) {
  .casino-head {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-bottom: 4px;
  }
  .casino-head .casino-search {
    flex: none;
  }
  .cchips {
    margin: 0 -12px 14px;
    padding: 10px 12px 12px;
    -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent);
    mask-image: linear-gradient(90deg, #000 88%, transparent);
  }
  .cchip {
    height: 36px;
    padding: 0 13px;
  }
  .crow {
    margin-bottom: 24px;
  }
  .crow-head h2,
  .grid-head h2 {
    font-size: 20px;
  }
  .crow-btn {
    display: none;
  }
  /* rows run edge to edge on phones, with the next tile peeking in */
  .crow-track {
    margin: 0 -12px;
    padding: 0 12px 2px;
    scroll-padding-inline-start: 12px;
    gap: 10px;
    grid-auto-columns: calc((100vw - 24px - 20px) / 3.3);
  }
  .crow-track.ranked {
    grid-auto-columns: calc((100vw - 24px - 10px) / 2.25);
  }
  .game.rk {
    padding-inline-start: 36px;
  }
  .rk-n {
    font-size: 84px;
    bottom: 26px;
    -webkit-text-stroke-width: 1.5px;
  }
  .crow-track.pstrip {
    grid-auto-columns: 150px;
  }
  .pcard {
    grid-template-columns: 36px minmax(0, 1fr);
    padding: 12px;
    column-gap: 10px;
  }
  .pcard-mono {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }
  .dw {
    inset-inline-start: 6px;
    top: 6px;
    font-size: 9px;
    padding: 3px 5px;
  }
  .game-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .game-name {
    font-size: 12px;
  }
  .game-prov {
    font-size: 11px;
  }
}
@media (max-width: 359px) {
  .game-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.side-dot {
  margin-block: 0 0;
  margin-inline: 4px 5px;
  flex: none;
}
/* ranked tiles: explicit art size (grid sizing ignores the numeral gutter otherwise) */
.crow-track.ranked {
  --col: 222px;
  --pad: 58px;
  grid-auto-columns: var(--col);
}
.game.rk {
  padding-inline-start: var(--pad);
}
.game.rk .game-art {
  width: calc(var(--col) - var(--pad));
  height: calc(var(--col) - var(--pad));
  aspect-ratio: auto;
}
/* provider cards with an uploaded logo: the logo is the card */
.pcard.has-logo {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 48px auto;
  row-gap: 8px;
  justify-items: center;
  text-align: center;
}
.pcard-logo {
  width: 100%;
  height: 48px;
  display: grid;
  place-items: center;
}
.pcard-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
/* sidebar: logo instead of the name */
.nav-link.prov-logo {
  min-height: 40px;
}
.nav-link .plogo {
  height: 20px;
  max-width: 140px;
  object-fit: contain;
  object-position: left center;
  flex: 0 1 auto;
  min-width: 0;
}
:dir(rtl) .nav-link .plogo {
  object-position: right center;
}
/* admin: provider logos */
.file-btn {
  cursor: pointer;
}
.plogo-cell {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.plogo-thumb {
  width: 96px;
  height: 36px;
  display: grid;
  place-items: center;
  padding: 4px 6px;
  border-radius: 6px;
  background: var(--panel);
  box-shadow: inset 0 0 0 1px var(--line-soft);
}
.plogo-thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.plain-list {
  margin: 4px 0 0;
  padding-inline-start: 18px;
}

/* provider cards: room for real names */
.crow-track.pstrip {
  grid-auto-columns: 208px;
}
.pcard b {
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.25;
}
@media (max-width: 900px) {
  .crow-track.ranked {
    --col: calc((100vw - 34px) / 2.25);
    --pad: 36px;
    grid-auto-columns: var(--col);
  }
  .crow-track.pstrip {
    grid-auto-columns: 172px;
  }
}

/* narrow phones with a balance in the header: show the compact P mark */
@media (max-width: 400px) {
  .topbar.authed .logo-full {
    display: none;
  }
  .topbar.authed .logo-mark {
    display: block !important;
  }
}
.auth-brand .logo img {
  height: 30px;
}

/* ---------- refer & earn ---------- */
.tier {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}
.tier-badge {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  border-radius: 13px;
  font-weight: 750;
  font-size: 12px;
  background: var(--raised-2);
  color: var(--text);
}
.tier-badge.partner {
  background: var(--accent);
  color: var(--accent-ink);
}
.ref-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  background: var(--panel);
  border-radius: var(--r-panel);
  padding: 26px 28px;
  margin-bottom: 14px;
  box-shadow: inset 3px 0 0 var(--accent);
}
.ref-pitch h2 {
  font-stretch: 70%;
  font-weight: 830;
  font-size: 30px;
  line-height: 1.02;
  letter-spacing: -0.005em;
  margin-bottom: 10px;
}
.ref-pitch p {
  color: var(--text-2);
  margin-top: 6px;
}
.ref-pitch p.muted {
  color: var(--muted);
  font-size: 13px;
}
.ref-link .copyline {
  margin-top: 6px;
}
.ref-code {
  font-size: 12px;
  margin: 8px 0 12px;
}
.share-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.ref-stats .stat {
  display: flex;
  flex-direction: column;
}
.claim-btn {
  margin-top: 10px;
  align-self: flex-start;
}
.ref-chart svg {
  width: 100%;
  height: 120px;
  display: block;
  margin-top: 12px;
}
.ref-chart .bar {
  fill: var(--accent);
}
.ref-chart .bar0 {
  fill: var(--line);
}
.ref-chart-x {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--faint);
  margin-top: 8px;
}
.progress {
  height: 8px;
  border-radius: 4px;
  background: var(--bg-deep);
  overflow: hidden;
  margin-top: 12px;
}
.progress-fill {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent);
  border-radius: 4px;
}
.table-wrap.flat-in {
  margin: 12px 0 0;
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--line-soft);
}
.code-form {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) auto;
  gap: 8px;
  margin-top: 12px;
}
.partner-cta {
  box-shadow: inset 0 0 0 1px var(--line);
}
.apply-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 12px;
  margin-top: 14px;
  align-items: start;
}
.apply-form .span2 {
  grid-column: 1 / -1;
}
.apply-form .btn {
  justify-self: start;
}
.ref-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 6px 0 10px;
}
.ref-steps > div {
  background: var(--panel);
  border-radius: var(--r-panel);
  padding: 16px 18px;
}
.ref-steps b {
  font-stretch: 65%;
  font-weight: 900;
  font-size: 34px;
  line-height: 1;
  color: var(--accent);
}
.ref-steps h3 {
  font-size: 15px;
  font-weight: 700;
  margin: 8px 0 4px;
}
.ref-steps p {
  color: var(--muted);
  font-size: 13px;
}
.ref-terms {
  font-size: 12px;
  margin-bottom: 4px;
}
.invited {
  font-size: 13px;
  color: var(--text-2);
  background: var(--raised);
  border-radius: 8px;
  padding: 9px 12px;
  margin: -2px 0 14px;
}
.label.sect {
  margin: 22px 0 10px;
  font-size: 14px;
  color: var(--text);
}
.sect-empty {
  margin-bottom: 14px;
}
.msg-cell {
  max-width: 260px;
  white-space: pre-wrap;
}
@media (max-width: 900px) {
  .ref-hero {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 20px 18px;
  }
  .ref-pitch h2 {
    font-size: 25px;
  }
  .ref-steps,
  .apply-form {
    grid-template-columns: 1fr;
  }
  .code-form {
    grid-template-columns: 1fr;
  }
}

/* ---------- promotions ---------- */
.promo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}
.promo-card {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border-radius: var(--r-panel);
  overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--line-soft);
}
.promo-card:hover {
  box-shadow: inset 0 0 0 1px var(--line);
}
.promo-card:hover .promo-more {
  color: var(--accent-hi);
}
.promo-banner {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--raised);
}
.promo-banner-ph {
  display: grid;
  place-items: center;
  font-stretch: 68%;
  font-weight: 850;
  font-size: 30px;
  color: var(--accent);
}
.promo-card-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 18px 18px;
}
.promo-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.promo-card-top b {
  font-stretch: 74%;
  font-weight: 800;
  font-size: 22px;
  line-height: 1.1;
}
.promo-badge {
  flex: none;
  font-size: 12px;
  font-weight: 650;
  color: var(--accent);
  background: rgba(255, 187, 11, 0.12);
  border-radius: 12px;
  padding: 4px 10px;
}
.promo-sum {
  color: var(--text-2);
}
.promo-more {
  margin-top: 4px;
  font-weight: 650;
  font-size: 13px;
  color: var(--accent);
}

.promo-hero {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--r-panel);
  margin-bottom: 22px;
  background: var(--raised);
}
.promo-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  grid-template-areas: 'head side' 'main side';
  grid-template-rows: auto 1fr;
  column-gap: 28px;
  align-items: start;
}
.promo-headline {
  grid-area: head;
  max-width: 720px;
}
.promo-main {
  grid-area: main;
}
.promo-side {
  grid-area: side;
}
.promo-main {
  max-width: 720px;
}
.promo-title {
  font-stretch: 66%;
  font-weight: 850;
  font-size: 46px;
  line-height: 0.98;
  letter-spacing: -0.005em;
}
.promo-lead {
  font-size: 18px;
  color: var(--text-2);
  margin-top: 10px;
  line-height: 1.45;
}
.promo-h {
  font-size: 17px;
  font-weight: 700;
  margin: 30px 0 12px;
}
.promo-steps {
  counter-reset: step;
  display: grid;
  gap: 10px;
}
.promo-steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  align-items: start;
  background: var(--panel);
  border-radius: var(--r-panel);
  padding: 14px 16px;
  color: var(--text);
  line-height: 1.45;
}
.promo-steps li::before {
  content: counter(step);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 800;
  font-size: 14px;
}
.promo-cta {
  margin-top: 18px;
}
.promo-terms {
  list-style: disc;
  padding-inline-start: 20px;
  display: grid;
  gap: 8px;
}
.promo-terms li {
  color: var(--text-2);
  line-height: 1.55;
}
.promo-terms li::marker {
  color: var(--faint);
}
.promo-foot {
  margin-top: 22px;
  font-size: 13px;
}
.promo-side {
  position: sticky;
  top: calc(var(--header-h) + 16px);
}
.promo-side-panel {
  box-shadow: inset 0 0 0 1px var(--line);
}
.promo-side-panel h2 {
  margin-bottom: 12px;
}
.promo-side-panel .btn-block {
  margin-top: 14px;
}
.cb-week {
  display: grid;
  gap: 4px;
  padding: 14px 0 16px;
  border-bottom: 1px solid var(--line-soft);
}
.cb-week .muted {
  font-size: 13px;
}
.cb-big {
  font-stretch: 70%;
  font-weight: 850;
  font-size: 40px;
  line-height: 1.05;
  color: var(--accent);
}
.cb-big small {
  font-size: 15px;
  color: var(--muted);
  font-stretch: 100%;
  font-weight: 650;
}
.cb-dates {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 14px;
  margin: 14px 0 4px;
  font-size: 13px;
}
.cb-dates dt {
  color: var(--muted);
}
.cb-dates dd {
  margin: 0;
  text-align: end;
}
.cb-h {
  margin: 16px 0 8px;
}
.bonus-card {
  background: var(--bg-deep);
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 8px;
}
.bonus-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 14px;
}
.bonus-top span {
  font-weight: 700;
}
.bonus-card .progress {
  margin-top: 10px;
}
.bonus-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
}
.bonus-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 8px;
  margin: 12px 0 10px;
}
.bonus-list .bonus-card {
  margin: 0;
}
.my-bonuses .faint {
  font-size: 12px;
}
.bonus-chip {
  font-size: 11px;
  font-weight: 650;
  color: var(--accent);
  margin-inline-start: 4px;
  white-space: nowrap;
}
.bonus-chip:hover {
  text-decoration: underline;
}
.bonus-row b {
  color: var(--accent);
}

/* ---------- promotion slider (top of Football and Casino) ---------- */
.pslot {
  container-type: inline-size;
  margin-bottom: 18px;
}
.pslot > * {
  --ps-w: 100cqw; /* width of one banner */
}
.pslot[hidden] {
  display: none;
}
.pslider-sk {
  margin: 0 auto;
  width: var(--ps-w);
  height: calc(var(--ps-w) * 9 / 16);
}
.pslider {
  position: relative;
}
.pslider-track {
  position: relative;
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.pslider-track::-webkit-scrollbar {
  display: none;
}
.pslider.single .pslider-track {
  justify-content: center;
}
.pslide {
  position: relative;
  flex: 0 0 var(--ps-w);
  scroll-snap-align: center;
  scroll-snap-stop: always;
  border-radius: var(--r-panel);
  overflow: hidden;
  background: var(--raised);
  -webkit-tap-highlight-color: transparent;
}
/* neighbours peeking on wide screens are dimmed */
.pslide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(8, 18, 16, 0.62);
  transition: opacity 0.35s ease;
  pointer-events: none;
}
.pslide.on::after {
  opacity: 0;
}
.pslide:not(.on) {
  cursor: pointer;
}
.pslide:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}
.pslide-art {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}
.pslide-ph {
  display: grid;
  place-items: center;
  padding: 20px;
  text-align: center;
  font-stretch: 66%;
  font-weight: 850;
  font-size: 34px;
  line-height: 1;
  color: var(--accent);
  background: radial-gradient(80% 90% at 30% 40%, rgba(255, 187, 11, 0.16), transparent 70%), #0b2a1e;
}
/* dots under the banner; the active one fills up until the next slide */
.pslider-ctl {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 36px;
  padding-top: 8px;
}
.pslider-dots {
  display: flex;
  align-items: center;
  gap: 2px;
}
.pdot {
  display: grid;
  place-items: center;
  height: 22px;
  min-width: 18px;
  padding: 0 4px;
  border: 0;
  background: none;
  cursor: pointer;
}
.pdot span {
  position: relative;
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 4px;
  background: var(--line);
  overflow: hidden;
  transition: width 0.25s ease, background-color 0.25s ease;
}
.pdot:hover span {
  background: var(--muted);
}
.pdot.on span {
  width: 28px;
  background: rgba(255, 187, 11, 0.22);
}
.pdot i {
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
}
.pdot.on i {
  animation: psfill var(--ps-secs, 6s) linear forwards;
}
.pslider.paused .pdot.on i {
  animation-play-state: paused;
}
.pslider.still .pdot.on i {
  animation: none;
  transform: none;
}
@keyframes psfill {
  to {
    transform: scaleX(1);
  }
}
.pslider-arrows {
  display: none;
  position: absolute;
  inset-inline-end: 0;
  bottom: 0;
  gap: 6px;
}
.parrow {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
}
.parrow:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.parrow svg {
  width: 15px;
  height: 15px;
}
@media (hover: hover) {
  .pslider-arrows {
    display: flex;
  }
}
/* wide: the banner keeps a sharp size in the centre; neighbours fill the sides */
@container (min-width: 960px) {
  .pslot > * {
    --ps-w: clamp(747px, 62cqw, 840px);
  }
  .pslider.single .pslide::after {
    display: none;
  }
}

/* Casino: the slider shows on phones only, above the lobby, one banner at a time. */
.casino-promos {
  max-width: 720px;
  margin-inline: auto;
}
@media (min-width: 901px) {
  .casino-promos {
    display: none;
  }
}

/* promotion cards: per-player note ("Opt in today") */
.promo-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 4px;
}
.promo-card-foot .promo-more {
  margin-top: 0;
}
.promo-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 650;
  color: var(--text);
  white-space: nowrap;
}
.promo-note::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--win);
  box-shadow: 0 0 0 3px rgba(110, 212, 154, 0.18);
}

/* reload panel */
.rl-offer {
  display: grid;
  gap: 4px;
  padding: 2px 0 14px;
}
.rl-offer .muted {
  font-size: 13px;
  line-height: 1.45;
}
.rl-when {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--bg-deep);
  border: 1px solid var(--line-soft);
}
.rl-when svg {
  width: 16px;
  height: 16px;
  flex: none;
}
.rl-when.on {
  color: var(--text);
}
.rl-when.on svg {
  color: var(--win);
}
.rl-text {
  font-size: 13px;
  line-height: 1.5;
  margin: 14px 0 0;
}
.rl-status {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.45;
}
.rl-status svg {
  width: 18px;
  height: 18px;
  flex: none;
  margin-top: 1px;
  color: var(--win);
}
.rl-status b {
  color: var(--win);
}
.promo-side-panel .btn-row {
  margin-top: 14px;
}
.bonus-rules {
  margin-top: 6px;
  font-size: 12px;
  color: var(--faint);
}

/* wallet: deposit bonus offer */
.offer-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  margin-bottom: 14px;
  border-radius: 8px;
  background: rgba(255, 187, 11, 0.08);
  border: 1px solid rgba(255, 187, 11, 0.28);
}
.offer-box > svg {
  width: 22px;
  height: 22px;
  flex: none;
  color: var(--accent);
}
.offer-box > div {
  display: grid;
  gap: 2px;
  flex: 1;
  min-width: 0;
  font-size: 13px;
}
.offer-box > div span {
  color: var(--text-2);
}
.offer-box .btn {
  flex: none;
}
.bonus-preview {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 20px;
  margin: -4px 0 12px;
  font-size: 13px;
}
.bonus-preview:empty {
  display: none;
}
.bonus-preview svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
  flex: none;
}
.bonus-preview b {
  color: var(--accent);
}

/* admin */
.promo-admin-head {
  margin-bottom: 14px;
}
.promo-admin-head .muted {
  max-width: 560px;
}
.thumb-cell {
  width: 112px;
}
.promo-thumb {
  width: 96px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 6px;
}
.promo-admin-banner {
  width: 100%;
  max-width: 560px;
  border-radius: 8px;
  margin: 8px 0 10px;
}
.pay-week {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  margin-top: 16px;
  flex-wrap: wrap;
}
.pay-week .field {
  margin: 0;
}
.give-bonus {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 10px 0 6px;
}
.give-bonus input[name='note'] {
  grid-column: span 2;
}
code.mono {
  background: var(--raised);
  border-radius: 4px;
  padding: 1px 5px;
}

@media (max-width: 1080px) {
  .promo-layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: 'head' 'side' 'main';
    grid-template-rows: auto;
  }
  .promo-side {
    position: static;
    margin-top: 18px;
  }
}
@media (max-width: 900px) {
  .promo-grid {
    grid-template-columns: 1fr;
  }
  .promo-title {
    font-size: 36px;
  }
  .promo-hero {
    margin-bottom: 16px;
  }
  .give-bonus input[name='note'] {
    grid-column: span 2;
  }
}
@media (max-width: 520px) {
  .bonus-chip {
    display: none;
  }
  .offer-box {
    flex-wrap: wrap;
  }
  .offer-box .btn {
    width: 100%;
  }
}

/* ---------- welcome package ---------- */
.wl-table {
  margin: 4px 0 6px;
}
.wl-table .t td,
.wl-table .t th {
  white-space: nowrap;
}
.wl-table tr.wl-now td {
  background: rgba(255, 187, 11, 0.06);
}
.wl-total {
  margin: 0 0 6px;
  font-size: 13px;
}
.wl-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  background: var(--bg-deep);
  border: 1px solid var(--line-soft);
}
.wl-chip.on {
  color: var(--accent);
  border-color: rgba(255, 187, 11, 0.35);
  background: rgba(255, 187, 11, 0.08);
}
.wl-chip.done {
  color: var(--win);
  border-color: rgba(110, 212, 154, 0.35);
  background: rgba(110, 212, 154, 0.08);
}
.wl-chip.off {
  color: var(--faint);
}
.wl-chip b {
  font-weight: 700;
}
.wl-stage {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 2px 0 8px;
}
.promo-side-panel .warn {
  margin-top: 12px;
}
.promo-side-panel .btn-lg.btn-block {
  margin-top: 14px;
}
.wl-opt {
  margin-top: 16px;
  font-size: 13px;
}
.wl-ends {
  margin: 10px 0 0;
  font-size: 12px;
}
.bonus-forfeit {
  margin-top: 10px;
}
.bonus-forfeit.armed {
  color: var(--loss);
  border-color: rgba(240, 113, 95, 0.45);
}
.offer-check {
  flex: none;
  font-size: 13px;
  white-space: nowrap;
}
.offer-note {
  margin: -6px 0 14px;
  font-size: 12px;
  color: var(--muted);
}
.bet-bonus {
  display: block;
  font-size: 11px;
  color: var(--accent);
  font-weight: 600;
}
.slip-bonus {
  margin: 0 0 10px;
  font-size: 12px;
}

/* ---------- right-to-left languages ---------- */
/* Layout uses logical properties, so most of the page mirrors on its own. These cover the rest.
   :dir() follows the nearest dir attribute, so the English-only admin panel (dir="ltr") is left alone. */
svg.flip:dir(rtl) {
  transform: scaleX(-1);
}
/* The promo banners are pictures: keep their order and arrows left-to-right. */
.pslider:dir(rtl) {
  direction: ltr;
}
.pslider svg.flip:dir(rtl) {
  transform: none;
}
/* Keep amounts like "12.50 USDT" and "+14" in reading order inside right-to-left text. */
.num:dir(rtl),
.mono:dir(rtl) {
  unicode-bidi: plaintext;
}
/* plaintext lays numbers out left-to-right, which also flips start/end alignment, so pin the sides. */
td.num:dir(rtl),
dd.num:dir(rtl),
.big-balance:dir(rtl),
.balance-amt:dir(rtl),
.hist-row .d:dir(rtl) {
  text-align: right;
}
.fx-team .sc:dir(rtl),
.leg-odds:dir(rtl),
.leg-stake .ret:dir(rtl),
.bet-foot .r:dir(rtl),
.t .r:dir(rtl),
.hist-row .a:dir(rtl),
.cb-dates dd:dir(rtl) {
  text-align: left;
}
@media (max-width: 1280px) {
  .slip-col:dir(rtl) {
    transform: translateX(-100%);
    box-shadow: 20px 0 50px rgba(0, 0, 0, 0.4);
  }
  body.slip-open .slip-col:dir(rtl) {
    transform: none;
  }
}
@media (max-width: 900px) {
  .slip-col:dir(rtl) {
    transform: translateY(100%);
  }
  .sidebar:dir(rtl) {
    transform: translateX(100%);
  }
  body.nav-open .sidebar:dir(rtl) {
    transform: none;
  }
}
