@charset "utf-8";

/* RIV88 Sport. Built for a phone held in one hand: a match is one row, a price is one tap-sized cell.
   Everything is laid out with logical properties (inline-start/end), so Hebrew and Arabic mirror the whole
   page; prices, scores and clocks are numbers and always read left to right.
   A skin is a set of colours and shapes: [data-skin] on <html> picks it. The four skins are in skins.css;
   the values here are what they start from. */

:root, [data-skin="classic"] {
  --chrome: #0A2554;        /* top bar and sport strip */
  --chrome-ink: #F1F3F7;
  --chrome-dim: rgba(241, 243, 247, .72);
  --page: #F1F3F7;
  --card: #FFFFFF;
  --ink: #0B1730;
  --muted: #55627A;
  --line: #D5DBE6;
  --price-bg: #EAF0F9;      /* a price cell */
  --price-ink: #0A2554;
  --accent: #FF6A3D;        /* the chosen tab, a chosen price, the button that places a bet */
  --accent-ink: #2B1206;    /* text on the accent */
  --press: #F6F8FC;         /* a row being pressed, and quiet strips */
  --up-bg: #DDF1E6; --down-bg: #F8E1DD;
  --toast-bg: #0B1730; --toast-ink: #FFFFFF;
  --live: #14724F;
  --up: #14724F;
  --down: #B13A2E;
  --radius: 10px;
  --gutter: 12px;
  --text: 'Assistant', 'Noto Sans Arabic', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: 'Suez One', Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  font-family: var(--text); font-size: 16px; line-height: 1.35;
  color: var(--ink); background: var(--chrome);
  overflow: hidden; overscroll-behavior: none;
  -webkit-text-size-adjust: 100%; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
}
[lang="ar"] body { line-height: 1.5; }
[hidden] { display: none !important; }
button, select { font-family: inherit; }
button { cursor: pointer; touch-action: manipulation; -webkit-appearance: none; appearance: none; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.num { direction: ltr; unicode-bidi: isolate; font-variant-numeric: tabular-nums; }

.app { position: fixed; inset: 0; display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto; grid-template-columns: minmax(0, 1fr); background: var(--page); }

/* ---------- top bar ---------- */

.top {
  display: flex; align-items: center; gap: 8px;
  height: calc(50px + env(safe-area-inset-top, 0px));
  padding: env(safe-area-inset-top, 0px) calc(var(--gutter) + env(safe-area-inset-right, 0px)) 0 calc(var(--gutter) + env(safe-area-inset-left, 0px));
  background: var(--chrome); color: var(--chrome-ink);
}
.top-back {
  flex: none; display: grid; place-items: center; width: 40px; height: 40px; margin-inline-start: -8px; padding: 0;
  border: 0; border-radius: 20px; background: none; color: var(--chrome-ink);
}
.top-back:active { background: rgba(255, 255, 255, .14); }
.top-back svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
[dir="rtl"] .top-back svg { transform: scaleX(-1); }
.brand { display: inline-flex; align-items: baseline; gap: 7px; color: inherit; text-decoration: none; font-family: var(--display); font-size: 25px; line-height: 1; }
.brand-tag { font-family: var(--text); font-weight: 700; font-size: 14px; color: var(--chrome-dim); }
.lang { margin-inline-start: auto; }
/* "Sign in" for a visitor; the balance for a player */
.account {
  flex: none; height: 34px; padding: 0 14px; border: 0; border-radius: 17px;
  background: var(--accent); color: var(--accent-ink); font-weight: 800; font-size: 15px; white-space: nowrap;
}
.account-in { background: rgba(255, 255, 255, .16); color: var(--chrome-ink); direction: ltr; unicode-bidi: isolate; font-variant-numeric: tabular-nums; }
.lang select {
  height: 34px; padding-block: 0; padding-inline: 12px 28px;
  border: 1.5px solid rgba(241, 243, 247, .4); border-radius: 17px;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1.500 1.500L6 6l4.500-4.500' fill='none' stroke='%23F1F3F7' stroke-width='1.800' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 11px center / 10px 7px;
  color: var(--chrome-ink); font-weight: 600; font-size: 15px;
  -webkit-appearance: none; appearance: none;
}
[dir="rtl"] .lang select { background-position: left 11px center; }
.lang select option { color: #0B1730; }

/* ---------- views ---------- */

.view { min-height: 0; display: grid; grid-template-rows: auto auto minmax(0, 1fr); }
#view-match, #view-bets { grid-template-rows: auto minmax(0, 1fr); }
#view-list { display: flex; flex-direction: column; }
.view, #view-list > * { min-width: 0; }      /* a long strip of sports scrolls inside the screen, it never widens it */
#view-list > * { flex: none; }                 /* the strips keep their height; only the list gives way and scrolls */
#view-list > .list { flex: 1 1 0; min-height: 0; }

/* sports: one chip each, with how many matches it has now */
.sports {
  display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none;
  padding: 2px calc(var(--gutter) + env(safe-area-inset-right, 0px)) 10px calc(var(--gutter) + env(safe-area-inset-left, 0px));
  background: var(--chrome);
}
.sports::-webkit-scrollbar, .days::-webkit-scrollbar { display: none; }
.sport {
  flex: none; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px;
  border: 0; border-radius: 20px; background: rgba(255, 255, 255, .1); color: var(--chrome-ink);
  font-weight: 700; font-size: 16px; white-space: nowrap;
}
.sport[aria-pressed="true"] { background: var(--chrome-ink); color: var(--chrome); }
.sport-n { font-weight: 600; font-size: 13px; opacity: .75; }

/* days: live first, then today and the days after it */
.days {
  display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none;
  padding: 0 calc(var(--gutter) - 6px + env(safe-area-inset-right, 0px)) 0 calc(var(--gutter) - 6px + env(safe-area-inset-left, 0px));
  background: var(--card); border-bottom: 1px solid var(--line);
}
.day {
  position: relative; flex: none; display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 12px;
  border: 0; background: none; color: var(--muted); font-weight: 700; font-size: 15px; white-space: nowrap;
}
.day[aria-pressed="true"] { color: var(--ink); }
.day[aria-pressed="true"]::after { content: ''; position: absolute; inset-inline: 12px; bottom: 0; height: 3px; border-radius: 2px 2px 0 0; background: var(--accent); }
.day-live { color: var(--live); }
.sport-n:empty { display: none; }
.day-live[aria-pressed="true"] { color: var(--live); }
.dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--live); }

/* ---------- the list ---------- */

.list, .markets {
  overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable both-edges;      /* a desktop scrollbar must not push the column off the bars' centre */
  padding: 0 0 calc(24px + env(safe-area-inset-bottom, 0px));
}
.league { margin: 0 auto; max-width: 860px; }
.league-head {
  display: flex; align-items: baseline; gap: 6px; margin: 0; padding: 14px var(--gutter) 6px;
  font-size: 13px; font-weight: 700; color: var(--muted);
}
.league-loc::after { content: ' ·'; opacity: .6; }
.league-name { color: var(--ink); }
.rows { margin: 0 var(--gutter); border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); overflow: hidden; }

.row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 8px;
  min-height: 62px; padding-inline-end: 10px; border-top: 1px solid var(--line);
}
.row:first-child { border-top: 0; }
/* the part of a row that opens the match: the time and the teams */
.row-open {
  display: grid; grid-template-columns: 40px minmax(0, 1fr); align-items: center; column-gap: 8px;
  min-width: 0; min-height: 62px; padding-block: 8px; padding-inline: 10px 0;
  border: 0; background: none; color: inherit; font: inherit; text-align: start;
}
.row-open:active { background: var(--press); }
.when { font-size: 13px; font-weight: 600; color: var(--muted); line-height: 1.25; }
.when-live { color: var(--live); font-weight: 700; }
.teams { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 8px; row-gap: 2px; }
.team { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; font-size: 15px; }
[dir="rtl"] .team { text-align: right; }
.score { font-weight: 800; font-size: 15px; color: var(--live); min-width: 1ch; text-align: end; }
/* beside a match: the result, the handicap and the total. Without a skin only the result shows. */
.mks { display: flex; gap: 5px; min-width: 0; }
.mk { display: flex; gap: 5px; min-width: 0; }
.mk-h, .mk-t, .cols, .list-title, .mk-tabs, .row-more, .league-fold, .sport-ico { display: none; }
.league.closed .rows, .league.closed .cols { display: none; }
.sport-ico { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.600; stroke-linecap: round; stroke-linejoin: round; }

/* a price: its outcome above, the number below; green when it went up, red when it went down */
.odd {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  width: 50px; height: 44px; padding: 0; border: 0; border-radius: 8px; background: var(--price-bg); color: var(--price-ink); font: inherit;
}
.odd.shut { cursor: default; }
/* a price that is in the bet slip */
.odd.picked, .odd.picked.up, .odd.picked.down { background: var(--accent); color: var(--accent-ink); }
.odd.picked .odd-name, .odd.picked .odd-price, .cells .odd.picked .odd-name { color: var(--accent-ink); }
.odd-name { font-size: 11px; font-weight: 600; line-height: 1; color: var(--muted); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.odd-price { font-size: 15px; font-weight: 800; line-height: 1.1; }
.odd.shut { opacity: .45; }
.odd.shut .odd-price { text-decoration: line-through; }
.odd.up { background: var(--up-bg); }
.odd.up .odd-price { color: var(--up); }
.odd.down { background: var(--down-bg); }
.odd.down .odd-price { color: var(--down); }
.odd.up .odd-price::after, .odd.down .odd-price::after { font-size: 9px; margin-inline-start: 2px; vertical-align: 2px; }
.odd.up .odd-price::after { content: '▲'; }
.odd.down .odd-price::after { content: '▼'; }

.more { margin: 14px var(--gutter) 0; font-size: 14px; color: var(--muted); text-align: center; }

/* loading, nothing to show, or an error */
.state { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 48px 24px; text-align: center; }
.state-text { margin: 0; max-width: 30ch; font-weight: 600; font-size: 16px; color: var(--muted); }
.btn { height: 44px; padding: 0 18px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink); font-weight: 700; font-size: 16px; }

/* ---------- hot matches, crests and emblems ---------- */

.logo { width: 18px; height: 18px; margin-inline-end: 6px; object-fit: contain; vertical-align: -4px; }
.league-logo { align-self: center; width: 16px; height: 16px; object-fit: contain; }
.row.goal { background: var(--up-bg); }
.row.goal .when { color: var(--up); font-weight: 800; }

.hot { max-width: 860px; margin: 0 auto; padding: 12px 0 0; }
.hot-head { display: flex; align-items: center; gap: 8px; padding: 0 var(--gutter) 8px; font-size: 17px; font-weight: 800; }
.hot-n { margin-inline-start: auto; font-size: 13px; font-weight: 700; color: var(--live); }
/* the one thing on the page that moves by itself: the mark that says "this is live" */
.pulse { width: 9px; height: 9px; border-radius: 50%; background: #E5323E; animation: pulse 1.800s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(229, 50, 62, .55); } 100% { box-shadow: 0 0 0 9px rgba(229, 50, 62, 0); } }
@media (prefers-reduced-motion: reduce) { .pulse { animation: none; } }
.hot-strip { display: flex; gap: 10px; overflow-x: auto; padding: 0 var(--gutter) 4px; scrollbar-width: none; scroll-snap-type: x proximity; }
.hot-strip::-webkit-scrollbar { display: none; }
.hot-card {
  flex: none; display: grid; gap: 10px; width: min(300px, 82vw); padding: 10px 12px 12px; border-radius: 14px;
  background: var(--hot-bg, linear-gradient(135deg, #0A2554, #1B4A9B)); color: #FFFFFF; cursor: pointer; scroll-snap-align: start;
}
.hot-top { display: flex; align-items: center; gap: 7px; min-width: 0; font-size: 12px; font-weight: 700; }
.hot-emblem { flex: none; width: 18px; height: 18px; object-fit: contain; }
.hot-league { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; opacity: .85; }
.hot-when { flex: none; margin-inline-start: auto; padding: 2px 9px; border-radius: 10px; background: rgba(255, 255, 255, .16); font-weight: 800; }
.hot-live .hot-when { background: #E5323E; }
.hot-mid { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 8px; }
.hot-side { display: grid; justify-items: center; gap: 6px; min-width: 0; text-align: center; }
.hot-crest { width: 40px; height: 40px; object-fit: contain; }
.hot-name { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 700; }
.hot-score { display: flex; gap: 7px; font-size: 26px; font-weight: 800; line-height: 1; }
.hot-vs { font-size: 15px; opacity: .7; }
.hot-odds { display: flex; gap: 6px; }
.hot .hot-odds .odd { flex: 1 1 0; flex-direction: row; justify-content: space-between; width: auto; height: 40px; padding: 0 10px; border: 0; border-radius: 9px; box-shadow: none; background: rgba(255, 255, 255, .15); color: #FFFFFF; }
.hot .hot-odds .odd-name { font-size: 12px; color: rgba(255, 255, 255, .75); }
.hot .hot-odds .odd-price { font-size: 15px; color: #FFFFFF; }
.hot .hot-odds .odd.up { background: rgba(46, 212, 122, .32); }
.hot .hot-odds .odd.down { background: rgba(255, 92, 92, .32); }
.hot .hot-odds .odd.picked { background: var(--accent); }
.hot .hot-odds .odd.picked .odd-name, .hot .hot-odds .odd.picked .odd-price { color: var(--accent-ink); }

/* ---------- one match ---------- */

.match-head { padding: 12px var(--gutter) 14px; background: var(--chrome); color: var(--chrome-ink); }
.match-league { margin: 0 0 10px; font-size: 13px; font-weight: 600; color: var(--chrome-dim); text-align: center; }
.match-teams { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 10px; max-width: 860px; margin: 0 auto; }
.match-team { font-weight: 700; font-size: 17px; line-height: 1.25; text-align: center; overflow-wrap: anywhere; }
.match-mid { text-align: center; }
/* the home side's goals stand on the home side's side of the screen, in Hebrew too */
.match-score { display: flex; justify-content: center; gap: 8px; font-weight: 800; font-size: 28px; line-height: 1; }
.match-time { margin-top: 4px; font-size: 13px; font-weight: 600; color: var(--chrome-dim); }
.match-time.live { color: #7FE0B4; }

.market { max-width: 860px; margin: 12px auto 0; padding: 0 var(--gutter); }
.market-name { margin: 0 0 6px; font-size: 14px; font-weight: 700; color: var(--ink); }
.cells { display: grid; gap: 5px; padding: 8px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.cells-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cells-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cells .odd { width: auto; height: 46px; flex-direction: row; justify-content: space-between; gap: 8px; padding: 0 12px; }
.cells .odd-name { font-size: 14px; color: var(--ink); }
/* a market with lines: one row per line, the line at the start, the main line marked */
.lines { display: grid; grid-template-columns: auto repeat(var(--cols), minmax(0, 1fr)); gap: 5px; align-items: center; padding: 8px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.lines .odd { width: auto; height: 42px; }
.lines-head { font-size: 12px; font-weight: 700; color: var(--muted); text-align: center; }
.line { min-width: 44px; padding-inline-end: 4px; font-weight: 700; font-size: 14px; color: var(--muted); }
.line.main { color: var(--ink); }
.gap { height: 42px; }

/* ---------- the bet slip, signing in, the player's menu ---------- */

/* shown while the slip has selections */
.slip-bar {
  display: flex; align-items: center; gap: 10px; min-height: calc(54px + env(safe-area-inset-bottom, 0px));
  padding: 0 calc(var(--gutter) + 4px) env(safe-area-inset-bottom, 0px);
  border: 0; background: var(--chrome); color: var(--chrome-ink); font: inherit; font-weight: 700; font-size: 16px; text-align: start;
}
.slip-bar-count { display: grid; place-items: center; min-width: 28px; height: 28px; padding: 0 8px; border-radius: 14px; background: var(--accent); color: var(--accent-ink); font-weight: 800; }
.slip-bar-price { margin-inline-start: auto; font-weight: 800; font-size: 19px; }

/* a sheet rises from the bottom of a phone; on a wide screen it sits in the middle */
.sheet {
  position: fixed; inset: auto 0 0 0; width: 100%; max-width: 520px; max-height: 88dvh; margin: 0 auto; padding: 0;
  border: 0; border-radius: 16px 16px 0 0; background: var(--card); color: var(--ink); overflow: hidden;
}
.sheet[open] { display: flex; flex-direction: column; }
.sheet::backdrop { background: rgba(8, 18, 40, .55); }
.sheet-head { display: flex; align-items: center; gap: 6px; padding: 10px 8px 10px 16px; border-bottom: 1px solid var(--line); }
[dir="rtl"] .sheet-head { padding: 10px 16px 10px 8px; }
.sheet-title { margin: 0; margin-inline-end: auto; font-size: 18px; font-weight: 800; }
.sheet-x, .leg-x { flex: none; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 20px; background: none; color: var(--muted); }
.sheet-x svg, .leg-x svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.sheet-x:active, .leg-x:active { background: var(--page); }
.sheet-body { display: flex; flex-direction: column; gap: 12px; padding: 14px 16px calc(16px + env(safe-area-inset-bottom, 0px)); overflow-y: auto; }
.link { padding: 6px 8px; border: 0; background: none; color: var(--muted); font-weight: 700; font-size: 14px; text-decoration: underline; }

.legs { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); }
.leg { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; column-gap: 6px; padding: 8px 4px 8px 12px; border-top: 1px solid var(--line); }
[dir="rtl"] .leg { padding: 8px 12px 8px 4px; }
.leg:first-child { border-top: 0; }
.leg-main { display: grid; gap: 1px; min-width: 0; }
.leg-pick { font-weight: 800; font-size: 16px; }
.leg-market { font-size: 13px; color: var(--muted); }
.leg-teams { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
[dir="rtl"] .leg-teams { text-align: right; }
.leg-price { font-size: 17px; font-weight: 800; color: var(--price-ink); }
.leg-closed .leg-main { opacity: .55; }
.leg-closed .leg-price { font-size: 14px; color: var(--down); }

.sum-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 15px; font-weight: 600; color: var(--muted); }
.sum-row strong { color: var(--ink); font-size: 17px; font-weight: 800; }
.sum-win strong { font-size: 21px; }
.field { display: grid; gap: 4px; font-size: 14px; font-weight: 700; color: var(--muted); }
.input { width: 100%; height: 48px; padding: 0 12px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink); font: inherit; font-size: 18px; font-weight: 700; }
.input.num { text-align: center; }
.input:focus-visible { outline-offset: 0; border-color: var(--accent); }
.chips { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.chip { height: 40px; border: 1.5px solid var(--line); border-radius: 20px; background: var(--card); color: var(--ink); font-weight: 700; font-size: 15px; }
.chip:active { background: var(--price-bg); }
.msg { margin: 0; padding: 10px 12px; border-radius: 8px; background: var(--down-bg); color: var(--down); font-size: 15px; font-weight: 600; }
.hint { margin: 0; font-size: 14px; color: var(--muted); text-align: center; }
.btn-main { flex: none; min-height: 52px; padding: 0 18px; border: 0; border-radius: 12px; background: var(--accent); color: var(--accent-ink); font-weight: 800; font-size: 18px; }
.btn-main:disabled { opacity: .5; }
.sheet .btn { flex: none; min-height: 52px; }

.done { text-align: center; }
.done-title { margin: 8px 0 0; font-size: 22px; font-weight: 800; color: var(--up); }
.done-bad .done-title { color: var(--down); }
.done-text { margin: 0 0 6px; font-size: 16px; color: var(--muted); }
.done-actions { display: flex; gap: 10px; }
.done-actions > * { flex: 1; }

.toast {
  position: fixed; z-index: 30; top: calc(58px + env(safe-area-inset-top, 0px)); inset-inline: 16px; max-width: 480px; margin: 0 auto;
  padding: 11px 16px; border-radius: 10px; background: var(--toast-bg); color: var(--toast-ink); font-weight: 700; font-size: 15px; text-align: center;
}

/* the sign-in as a whole page: what a visitor meets first when the site asks everyone to sign in */
html:not(.ready) .app { visibility: hidden; }
.login-brand, .login-lang { display: none; }
.sheet.login-page { inset: 0; width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; border-radius: 0; align-items: center; justify-content: center; background: var(--chrome); color: var(--chrome-ink); }
.sheet.login-page .sheet-x { display: none; }
.sheet.login-page .sheet-head { flex-direction: column; gap: 8px; width: 100%; max-width: 380px; padding: 0 20px 6px; border: 0; }
.sheet.login-page .login-brand { display: block; margin: 0; font-family: var(--display); font-size: 44px; line-height: 1; }
.sheet.login-page .sheet-title { margin: 0; font-size: 17px; font-weight: 600; color: var(--chrome-dim); }
.sheet.login-page .sheet-body { width: 100%; max-width: 380px; padding: 14px 20px 24px; overflow: visible; }
.sheet.login-page .field, .sheet.login-page .hint { color: var(--chrome-dim); }
.sheet.login-page .login-lang { display: block; align-self: center; height: 34px; padding: 0 10px; border: 1.5px solid var(--line); border-radius: 17px; background: var(--card); color: var(--ink); font: inherit; font-size: 14px; font-weight: 600; }


/* the eye that shows the password being typed */
.field { position: relative; }
.pass-eye { position: absolute; right: 4px; bottom: 4px; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 20px; background: none; color: var(--muted); }
.pass-eye svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.800; stroke-linecap: round; stroke-linejoin: round; }
.pass-eye[aria-pressed="true"] { color: var(--accent); }
.field:has(.pass-eye) .input { padding-right: 48px; }
.good { color: var(--up); }
.bad { color: var(--down); }

.leg-league { font-size: 12px; color: var(--muted); }
.leg-score { font-size: 13px; font-weight: 700; color: var(--live); }
.leg-was { font-size: 13px; font-weight: 600; color: var(--muted); }
.leg-price.went-up { color: var(--up); }
.leg-price.went-down { color: var(--down); }
.hint-line { margin: -6px 0 0; font-size: 13px; color: var(--muted); }
.note-line { margin: 0; padding: 9px 12px; border-radius: 8px; background: var(--price-bg); color: var(--ink); font-size: 14px; font-weight: 700; }
.foot { max-width: 860px; margin: 22px auto 0; padding: 0 var(--gutter); display: grid; justify-items: center; gap: 4px; text-align: center; font-size: 13px; color: var(--muted); }
.foot p { margin: 0; max-width: 46ch; }
.foot-age { display: grid; place-items: center; width: 34px; height: 34px; border: 2px solid currentColor; border-radius: 50%; font-size: 12px; font-weight: 800; }
#bets:empty { display: none; }

/* ---------- the player's bets ---------- */

.bet-list { display: grid; gap: 10px; max-width: 860px; margin: 0 auto; padding: 12px var(--gutter) 0; }
.bet { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); overflow: hidden; }
.bet-head { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--muted); }
.bet-status { margin-inline-start: auto; padding: 2px 10px; border-radius: 10px; background: var(--price-bg); color: var(--price-ink); font-weight: 800; }
.bet-won .bet-status { background: var(--up-bg); color: var(--up); }
.bet-lost .bet-status, .bet-rejected .bet-status { background: var(--down-bg); color: var(--down); }
.bet-leg { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 10px; padding: 9px 12px; border-top: 1px solid var(--line); }
.bet-head + .bet-leg { border-top: 0; }
.leg-won .leg-price { color: var(--up); }
.leg-lost .leg-price { color: var(--down); text-decoration: line-through; }
.leg-void .leg-price { color: var(--muted); }
.bet-foot { display: flex; align-items: baseline; gap: 6px; padding: 9px 12px; border-top: 1px solid var(--line); background: var(--press); font-size: 14px; color: var(--muted); }
.bet-foot strong { color: var(--ink); }
.bet-foot-end { margin-inline-start: auto; }
.bet-pay { font-size: 16px; }
.bet-won .bet-pay { color: var(--up); }

@media (min-width: 700px) {
  :root { --gutter: 20px; }
  .odd { width: 68px; }
  .team { font-size: 16px; }
  .row-open { grid-template-columns: 60px minmax(0, 1fr); }
  .sheet { inset: 0; height: fit-content; margin: auto; border-radius: 16px; max-height: 84vh; }
  /* on a wide screen the bars line up with the 860px column of matches */
  .top, .sports, .slip-bar { padding-inline: max(var(--gutter), calc(50% - 430px + var(--gutter))); }
  .days { padding-inline: max(calc(var(--gutter) - 12px), calc(50% - 430px + var(--gutter) - 12px)); }
}
@media (max-width: 350px) {
  .odd { width: 46px; }
  .row { column-gap: 6px; padding-inline-end: 8px; }
  .row-open { grid-template-columns: 36px minmax(0, 1fr); column-gap: 6px; padding-inline-start: 8px; }
}
