* { box-sizing: border-box; }
html, body { min-height: 100%; }
body { margin: 0; color: var(--ink); font-family: var(--game-font); background: var(--night); }
main { max-width: 1240px; margin: 0 auto; padding: 14px 16px 24px; display: flex; flex-direction: column; gap: 14px; }
/* In a game the page is as wide as the window: on a computer the table grows with it. */
main:has(> #game:not([hidden])) { max-width: none; }
body:has(#game:not([hidden])) { background: radial-gradient(ellipse at 50% 57%, #2b3b50, #192230 75%) fixed #192230; color: #f7eed9; }
a { color: var(--accent); }

/* Before the lobby: signing in, joining a game, waiting for a friend. */
#account, #join, #share { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.brand { display: flex; flex-direction: column; align-items: center; gap: 8px; padding-top: 18px; text-align: center; width: 100%; }
.brand h1 { margin: 0; font-size: 2.3rem; font-weight: 800; letter-spacing: -.5px; line-height: 1.14; }
.brand h1 .club-brand { font-size: 30px; }
.brand h1 .club-brand img { width: 40px; height: 40px; }
.brand-banner { width: 100%; max-width: 440px; }
.brand-banner img { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); }
.brand p { margin: 0; color: var(--ink-dim); }
.panel {
  align-self: center; width: 100%; max-width: 440px; padding: 22px; border-radius: 14px;
  display: flex; flex-direction: column; gap: 14px; background: var(--panel-top); border: 1px solid var(--line);
}
.panel h2 { margin: 0; font-size: 1.35rem; font-weight: 700; text-align: center; }
.panel p { margin: 0; color: var(--ink-dim); text-align: center; }
.panel label { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: .9rem; color: var(--ink-dim); }
.panel input[type=text], .panel input[type=email], .panel input[type=password], .panel select {
  font: 500 1rem var(--game-font); padding: 12px; border-radius: 6px; color: var(--ink);
  border: 1px solid var(--line); background: var(--well);
}
.panel input:focus-visible, .panel select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.panel .btn { width: 100%; font-size: 1.05rem; min-height: 48px; }
.name-field { display: flex; flex-direction: column; gap: 8px; }
.panel .note { font-size: .85rem; }

/* The club, in the look of the River Club app the club gave us, measure for measure: the sizes,
   the colours and the spacing below are the ones in the club's own stylesheet. What differs is
   what has to: the page reads from the right, the text is Hebrew, and what the screens show is
   this club's real tournaments. */
main:has(> #lobby:not([hidden])) { max-width: none; padding: 0; }
#lobby.club { display: block; min-height: 100vh; min-height: 100dvh; font-size: 15px; color-scheme: dark; }
bdi { white-space: nowrap; }
.icon { flex: none; display: block; }
.icon.turned { transform: scaleX(-1); }
.club-head { background: var(--night-2); border-bottom: 1px solid var(--line); }
.club-bar, .club-main { width: min(100%, 1000px); margin: 0 auto; }
.club-bar { height: 62px; padding: 0 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.head-end { display: flex; align-items: center; gap: 10px; min-width: 0; }
.member, .available { display: flex; align-items: center; gap: 6px; min-width: 0; font: 700 10px var(--label-font); letter-spacing: 1px; color: var(--accent); }
.member span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.member i, .available i { flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.round, .sort {
  flex: none; display: grid; place-items: center; min-width: 44px; min-height: 44px; border: 1px solid var(--line); border-radius: 50%;
  background: var(--lift); color: inherit; cursor: pointer;
}
.club button:focus-visible, .club a:focus-visible, .club input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.club button:hover:not(:disabled), .club a.cta:hover, .club a.room:hover, .club a.back:hover, .club a.tablerow:hover { filter: brightness(1.13); }
.club-main { padding: 24px 17px 100px; }
/* The small labels: fixed-width, bold and spaced out, as the club sets them. */
.eyebrow, .roomtag, .sectiontitle > span, .goldtag, .id { font: 700 10px var(--label-font); letter-spacing: 1.4px; }
.eyebrow { display: flex; align-items: center; gap: 8px; margin: 0; color: #b6bcb5; }
.dash { flex: none; width: 20px; height: 2px; background: var(--accent); }
.title-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; margin: 5px 0 18px; }
.title-row h1 { margin: 0; font-size: clamp(33px, 5vw, 48px); line-height: 1.14; font-weight: 740; letter-spacing: -1.2px; white-space: nowrap; }
.id { flex: none; padding: 6px 8px; border-radius: 5px; letter-spacing: .6px; color: #929695; background: #191c1c; border: 1px solid var(--line); }
.id b { color: #cdd0ce; }
.id.is-pending b { color: var(--gold); }
a.id[href] { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); text-decoration: none; padding: 9px 12px; }

/* The club screen: the first one. A bar with the way back and the bell, the club's card, a
   notice, the next tournament in a gold strip, and the tournaments in rows. One narrow column on
   every width, the way the club's app holds it. */
#lobby.on-board .club-head, #lobby.on-board .club-nav { display: none; }
#lobby.on-board .club-main { width: min(100%, 490px); padding: 0; }
.board { position: relative; isolation: isolate; min-height: 100vh; min-height: 100dvh; padding: clamp(12px, 5.5dvh, 52px) 14px 80px; background: #151517; color: #f1f2ed; font-size: 14px; }
.board-bar { display: flex; align-items: center; justify-content: space-between; height: 59px; margin: 0 -14px; text-align: center; background: #050505; }
.board-bar a, .board-bar button { display: grid; place-items: center; min-width: 44px; min-height: 44px; border: 0; background: none; color: inherit; cursor: pointer; }
.board-profile { display: flex; align-items: center; gap: 12px; margin: 0 -14px; padding: 8px 15px; background: #080809; }
.board-profile img { flex: none; width: 74px; height: 74px; object-fit: cover; object-position: 18%; border-radius: 7px; }
.board-profile div { min-width: 0; }
.board-profile h1 { margin: 0; font-size: 18px; font-weight: 700; line-height: 1.5; }
.board-profile small { display: flex; gap: 1em; font-size: 12px; line-height: 1.6; color: #b9b9b6; }
.board-profile bdi { overflow: hidden; text-overflow: ellipsis; }
.board-note { margin: 0 -5px 6px; padding: 12px; border-radius: 5px; line-height: 1.3; background: #222225; }
.board-note small { display: block; font-size: 12px; }
.board-note a { margin-inline-start: .6em; font-weight: 700; white-space: nowrap; }
/* For a phone that has not put the site on its home screen yet: the way to the instructions. */
.board-install { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 -5px 6px; padding: 10px 12px; border-radius: 5px; background: #222225; color: var(--accent); font-weight: 700; text-decoration: none; }
.as-app .board-install, .as-app a[href="#install"] { display: none; }
/* The gold strip. In the club's app it holds a jackpot; here it holds the time left to the next
   tournament. The picture is turned round, so that the chips sit behind the numerals. */
.board-jack {
  position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; height: 54px;
  margin: 12px 0 4px; padding: 8px 14px; border: 1px solid #99743b; border-radius: 0; background: #23160d; color: #ffda85; font: inherit; text-align: start; cursor: pointer;
}
.board-jack:disabled { cursor: default; }
.board-jack::before { content: ""; position: absolute; inset: 0; z-index: -2; background: url(./img/chips-banner.webp) center / cover; transform: scaleX(-1); }
.board-jack::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(270deg, rgba(23, 14, 11, .13), rgba(22, 15, 13, .85)); }
.board-jack b { font: italic 700 14px/1 var(--serif-font); color: #ffcf70; text-shadow: 1px 2px #8f290c; }
.board-jack strong { display: flex; align-items: baseline; gap: .3em; font: 700 clamp(19px, 6.6vw, 29px)/1 var(--serif-font); font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; }
.board-jack strong span { font-size: .62em; }

.board-head { position: sticky; top: 0; z-index: 1; margin: 0 -14px; padding-bottom: 8px; background: #151517; }
.board-tabs { display: flex; align-items: center; justify-content: space-evenly; background: #080809; border-bottom: 1px solid #343434; }
.board-tabs button { flex: 1; min-height: 44px; padding: 0 2px; border: 0; border-bottom: 3px solid transparent; background: none; color: #a8a8ad; font: inherit; cursor: pointer; }
.board-tabs button[aria-pressed=true] { color: #fff; border-bottom-color: #24b878; }
.board-filter { display: flex; align-items: center; justify-content: space-between; gap: 4px; padding: 7px 12px; color: #c9c9ca; }
.board-filter label, .board-filter button, .notice-foot label { display: inline-flex; align-items: center; gap: 5px; min-height: 44px; cursor: pointer; }
.board-filter button { padding: 0 10px; border: 0; border-radius: 5px; background: #2b2b2e; color: inherit; font: inherit; }
.board-filter button[aria-pressed=true] { color: #fff; }
.board-filter input, .notice-foot input { flex: none; width: 16px; height: 16px; margin: 0; accent-color: #21bb69; }

/* One row a tournament, laid out as the club lays out a table: the game down the side, the ring,
   the name between the day and the hour, and the prize at the far end with the state under it. */
.board-list { list-style: none; margin: 0; padding: 0; }
.trow { margin: 5px 0 0; }
.trow-main {
  position: relative; width: 100%; min-height: 85px; display: flex; align-items: center; gap: 9px; margin: 0 0 10px; padding: 0; border: 0; border-radius: 8px;
  background: #202022; color: inherit; font: inherit; text-align: start; cursor: pointer;
}
.trow-tag {
  flex: none; align-self: stretch; display: grid; place-items: center; width: 20px; border-radius: 6px 0 0 6px; writing-mode: vertical-rl; transform: rotate(180deg);
  font: 700 11px/1 Arial, Helvetica, sans-serif; letter-spacing: .4px; color: #fff; background: #14653c;
  unicode-bidi: isolate; /* "8-BALL" reads as it is written, inside a right-to-left row */
}
.trow.closed .trow-tag, .trow.cancelled .trow-tag { background: #39393b; color: #c9c9ca; }
/* A tournament the player is in carries a lime tab on its corner. */
.trow.mine .trow-main::before { content: ""; position: absolute; top: -4px; inset-inline-start: 3px; z-index: 1; width: 14px; height: 18px; background: var(--accent); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 72%, 0 100%); }
.trow-ring {
  flex: none; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; font-size: 15px; font-weight: 700; letter-spacing: -.3px;
  background: radial-gradient(closest-side, #202022 calc(100% - 5.5px), transparent calc(100% - 4.5px)), conic-gradient(#17a563 var(--fill, 0%), #39393b 0);
}
.trow-info { flex: 1 1 auto; display: grid; gap: 1px; min-width: 0; padding: 8px 0; }
.trow-info strong { font-size: 18px; font-weight: 600; line-height: 1.2; overflow-wrap: anywhere; }
.trow-info strong.long { font-size: 16px; }
.trow-info small { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 12px; }
.trow-info small:last-child { flex-wrap: nowrap; color: #aeaeb0; white-space: nowrap; }
.trow-info small:last-child span { overflow: hidden; text-overflow: ellipsis; }
.trow-in { padding: 0 6px; border-radius: 999px; font-weight: 700; color: var(--accent); background: var(--accent-soft); border: 1px solid var(--accent-line); }
.trow-side { flex: 0 1 auto; align-self: stretch; position: relative; display: flex; align-items: center; justify-content: flex-end; max-width: 46%; padding: 0 0 20px; padding-inline-end: 15px; }
.trow-buy { display: flex; align-items: center; justify-content: flex-end; gap: clamp(6px, 3vw, 22px); min-width: 0; }
.trow-buy small { font-size: 12px; line-height: 1.25; color: #aaa; white-space: nowrap; }
.trow-buy strong { font-size: 20px; font-weight: 600; white-space: nowrap; }
.trow-buy.words { flex-direction: column; align-items: flex-end; gap: 0; text-align: end; }
.trow-buy.words strong { font-size: 15px; line-height: 1.25; white-space: normal; overflow-wrap: anywhere; }
.trow.closed .trow-buy strong, .trow.cancelled .trow-buy strong { color: #aeaeb0; }
.trow-state { position: absolute; bottom: 7px; inset-inline-end: 14px; display: flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; white-space: nowrap; color: #aeaeb0; }
.trow-state::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.trow-state.open { color: #3fd486; }
.trow-state.waiting { color: #ffcf70; }
.trow-state.full { color: var(--aqua); }
.trow-state.cancelled { color: var(--rose); }
.trow-state.running { color: #ffcf70; }
.trow-state.finished { color: #c9c9ca; }
/* The band under an open row: a small table and what can be done, then the rest of the details. */
.trow-more { margin: 0 0 10px; }
.trow-enter { display: flex; align-items: center; justify-content: space-evenly; gap: 12px; padding: 8px; background: #29292b; }
.trow-mini {
  flex: none; width: 110px; height: 58px; border-radius: 11px; border: 5px solid #333;
  background:
    radial-gradient(circle at 3px 3px, #111 3.5px, transparent 4px), radial-gradient(circle at calc(100% - 3px) 3px, #111 3.5px, transparent 4px),
    radial-gradient(circle at 3px calc(100% - 3px), #111 3.5px, transparent 4px), radial-gradient(circle at calc(100% - 3px) calc(100% - 3px), #111 3.5px, transparent 4px),
    radial-gradient(circle at 50% 1px, #111 3px, transparent 3.5px), radial-gradient(circle at 50% calc(100% - 1px), #111 3px, transparent 3.5px), #346e35;
}
.trow-enter .tour-foot { flex: 0 1 auto; align-items: center; text-align: center; }
.trow-enter .cta { width: auto; min-height: 58px; margin: 0; padding: 0 10px; background: none; color: #fff; font: inherit; }
.trow-enter .cta:disabled { color: #aeaeb0; opacity: 1; }
.trow-enter a.cta { min-height: 44px; color: var(--accent); text-decoration: underline; }
.trow-enter .cta .icon { color: #cfcfd2; }
.trow-enter .tour-need { max-width: 26ch; }
.trow-details { display: flex; flex-direction: column; gap: 10px; padding: 12px 14px 14px; background: #1c1d1e; }
.board-empty { margin: 0; padding: 40px 16px; text-align: center; color: #c9c9ca; }
.tours-none { margin: 0; padding: 26px 16px; text-align: center; color: var(--ink-dim); }
.tours-message { margin: 0 0 8px; padding: 10px 14px; border-radius: 8px; font-weight: 700; color: #ffd0cb; background: rgba(224, 88, 79, .16); border: 1px solid var(--red-dark); }

/* The club's menu: a round green button at the corner, and what it opens. */
.board-fab {
  position: fixed; bottom: 5.5dvh; inset-inline-end: max(15px, calc((100vw - 460px) / 2)); z-index: 2; display: grid; place-items: center; width: 54px; height: 54px;
  border: 0; border-radius: 50%; background: #1baa62; color: #fff; box-shadow: 0 3px 8px rgba(0, 0, 0, .53); cursor: pointer;
}
.board-menu { position: fixed; bottom: calc(5.5dvh + 60px); inset-inline-end: max(15px, calc((100vw - 460px) / 2)); z-index: 2; display: flex; flex-direction: column; padding: 4px; border-radius: 8px; background: #282a2c; }
.board-menu a, .board-menu button, .notice-foot button { display: grid; place-items: center; min-height: 44px; padding: 0 14px; border: 0; background: none; color: inherit; font: inherit; text-decoration: none; cursor: pointer; }

/* A short message in the middle of the screen, as the club's app shows one: at the poker door
   while the room is closed. */
.club-pop { width: min(calc(100% - 40px), 400px); padding: 22px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel-top); color: var(--ink); }
.club-pop::backdrop { background: rgba(0, 0, 0, .667); }
.club-pop > .icon { color: var(--accent); margin-bottom: 12px; }
.club-pop h2 { margin: 0; font-size: 22px; font-weight: 700; }
.club-pop p { margin: 10px 0 0; font-size: 15px; line-height: 1.5; color: #c6ccc8; }
.club-pop button { float: left; float: inline-end; display: grid; place-items: center; min-width: 44px; min-height: 44px; margin: -10px; margin-inline-start: 0; border: 0; background: none; color: inherit; cursor: pointer; }

/* The club's notice: a sheet that slides up from the bottom, with the club's banner, the
   tournaments that are open, and the club's line. */
.club-notice {
  position: fixed; inset: auto 0 0; margin: auto; width: min(100vw, 490px); max-width: none; height: min(77.6dvh, 820px); max-height: none; padding: 0;
  border: 0; border-radius: 14px 14px 0 0; flex-direction: column; background: #212427; color: #eee; font-size: 14px;
}
.club-notice[open] { display: flex; }
.club-notice:focus { outline: none; }
.club-notice::backdrop { background: rgba(0, 0, 0, .667); }
.notice-grip { flex: none; width: 50px; height: 3px; margin: 9px auto; border-radius: 4px; background: #535558; }
.club-notice h2 { margin: 0; padding: 8px 15px 17px; font-size: 22px; font-weight: 700; }
.notice-media { flex: 1; min-height: 0; display: grid; align-items: center; background: #191b1e; overflow: hidden auto; }
.notice-flyer { width: 100%; max-height: 100%; overflow: hidden auto; display: flex; flex-direction: column; align-items: stretch; background: #0b2314; }
.notice-banner { flex: none; display: block; width: 100%; height: min(16dvh, 175px); object-fit: cover; }
/* The schedule, drawn here from the tournaments as they are: a green frame a tournament, the day
   on a tab, the soonest in gold. */
.schedule { list-style: none; margin: 0; padding: 6px 5px; display: grid; gap: 5px; }
.schedule li {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 9px; min-height: 48px; padding-inline-end: 9px;
  border-radius: 9px; border: 1.5px solid #2bbf63; background: linear-gradient(#0e1d14, #09120c); box-shadow: inset 0 0 12px rgba(43, 191, 99, .22);
}
.sch-date { align-self: stretch; display: grid; place-content: center; justify-items: center; min-width: 52px; padding: 3px 6px; border-radius: 0 7px 7px 0; font-weight: 800; line-height: 1.15; color: #fff; background: linear-gradient(#35c96f, #188a45); }
.schedule li:first-child .sch-date { background: linear-gradient(#f0b548, #c77a16); }
.sch-date b { font-size: 11px; }
.sch-date span { font-size: 15px; }
.sch-name { display: grid; gap: 1px; min-width: 0; }
.sch-name strong { font-size: 15px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sch-name small { display: flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 700; color: #e8efe9; }
.sch-col { display: grid; justify-items: center; gap: 1px; min-width: 54px; padding-inline-start: 9px; border-inline-start: 1px solid rgba(255, 255, 255, .18); }
.sch-col small { font-size: 11px; color: #cfd6d0; }
.sch-col b { font-size: 15px; font-weight: 800; }
.sch-prize { width: 88px; }
.sch-prize b { max-width: 78px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #ffd257; }
.schedule-none { margin: 0; padding: 22px 18px; text-align: center; line-height: 1.5; color: #c7c7c6; }
.notice-sign { margin: 0; display: grid; padding: 8px; text-align: center; color: #fff; background: linear-gradient(95deg, #07130a, #254b28, #06100a); font: italic 700 26px/1 var(--serif-font); }
.notice-sign span { font: italic 700 19px/1.35 var(--game-font); color: #97e253; }
.notice-second { text-align: center; }
.notice-second img { display: block; width: 100%; height: auto; }
.notice-second h3 { margin: 6px 0 0; font-size: 14px; font-weight: 400; }
.notice-second p { margin: 12px 14px; line-height: 1.5; color: #c7c7c6; }
.notice-pages { flex: none; display: flex; align-items: center; justify-content: center; }
.notice-pages button { display: grid; place-items: center; width: 44px; height: 44px; margin: 0 -12px; padding: 0; border: 0; background: none; cursor: pointer; }
.notice-pages button::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: #78797a; }
.notice-pages button[aria-pressed=true]::after { background: #24db64; }
.notice-foot { flex: none; display: flex; align-items: center; justify-content: space-between; padding: 0 15px max(18px, 4dvh); color: #c4c5c6; }

/* The lobby's banner. In the club's app it holds a jackpot; here it holds the next tournament,
   with the time left in the banner's gold numerals. The picture is turned round so that the chips
   sit at the far end from the words, which start on the right. */
.jack { position: relative; isolation: isolate; overflow: hidden; padding: 19px 17px; border-radius: 12px; border: 1px solid var(--gold-dark); background: #17140e; color: #ebd395; }
.jack::before { content: ""; position: absolute; inset: 0; z-index: -2; background: url(./img/chips-banner.webp) center / cover; transform: scaleX(-1); }
.jack::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(270deg, rgba(23, 20, 14, .93) 32%, rgba(23, 20, 14, .5) 66%, rgba(23, 20, 14, .05)); }
.goldtag, .chipcaption { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.goldtag { color: #e2c181; }
.jack h2 { margin: 8px 0 0; font: 600 19px/1.25 var(--serif-font); color: var(--gold-light); overflow-wrap: anywhere; }
.jack-wait { margin: 8px 0 0; color: #d3c5ad; }
.chipcaption { margin: 6px 0 0; font-size: 12px; line-height: 1.5; color: #d3c5ad; }
.next-card .chipcaption span { flex-basis: 100%; }
.next-card { display: flex; flex-direction: column; align-items: flex-start; }
.countdown { display: flex; gap: clamp(10px, 2.4vw, 22px); margin-top: 2px; }
.countdown div { display: grid; justify-items: center; gap: 0; }
.countdown b { font: 700 clamp(36px, 6vw, 59px)/1.1 var(--serif-font); letter-spacing: -1.7px; font-variant-numeric: tabular-nums lining-nums; text-shadow: 0 2px 10px #2d210d; }
.countdown span { font-size: 11px; color: #d3c5ad; }
.jack-info { position: absolute; inset-inline-end: 2px; bottom: 0; display: grid; place-items: center; width: 44px; height: 44px; color: #e7d1aa; }

.sectiontitle { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 22px 0 10px; }
.sectiontitle h2, .infobox h2 { margin: 0; font-size: 21px; font-weight: 700; letter-spacing: -.5px; }
.sectiontitle > span { font-size: 9.5px; color: #9b9e9e; }
.sectiontitle > .available { color: var(--accent); }

/* The game rooms: two doors, each with its own picture, set as the club's app sets them: the
   picture's subject on the right, and the room's name on the left, at the bottom. */
.games { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.room {
  position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-end; min-height: 148px; padding: 13px;
  border-radius: 10px; border: 1px solid #384e3e; background: #101714 center / cover; color: inherit; text-decoration: none;
}
.room::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(3, 10, 9, .94), transparent 75%); }
.room.green { background-image: url(./img/poker-room.webp); }
.room.blue { background-image: url(./img/pool-room.webp); border-color: #344351; }
.roomtag, .roomstate { position: absolute; top: 11px; padding: 4px 6px; border-radius: 4px; font: 700 9px var(--label-font); letter-spacing: 1px; color: #daf5de; background: rgba(16, 23, 20, .74); border: 1px solid rgba(124, 156, 132, .18); }
.roomtag { left: 11px; }
/* Whether the poker room is open, on its door. */
.roomstate { right: 11px; display: flex; align-items: center; gap: 5px; }
.roomstate::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.roomstate.open { color: var(--accent); }
.roomstate.closed { color: #c9c9ca; }
.room strong { align-self: stretch; text-align: left; font-size: clamp(19px, 5.9vw, 25px); font-weight: 750; line-height: 1.1; letter-spacing: -.7px; }
.roomfoot { align-self: stretch; display: flex; flex-direction: row-reverse; align-items: center; justify-content: space-between; gap: 8px; margin-top: 4px; font-size: 12px; color: #c6ccc8; }
.roomfoot .icon { color: var(--accent); }
.blue .roomfoot .icon { color: #94cbf2; }

.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 9px; }
.filters button, .back {
  min-height: 44px; padding: 0 14px; border-radius: 7px; border: 1px solid var(--line); background: #16191a; color: #b2b7b5;
  font: 600 13px var(--game-font); cursor: pointer; text-decoration: none;
}
.filters button[aria-pressed=true] { color: var(--accent); border-color: var(--accent-line); background: var(--accent-soft); }
.filters .sort { margin-inline-start: auto; padding: 0; }
.back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 16px; }

/* The club's tables: a row a table, with what it is, what is played on it, and the way in. */
.tablelist { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.tablerow { display: flex; align-items: center; gap: 11px; width: 100%; padding: 13px 11px; border-radius: 9px; border: 1px solid var(--line); background: var(--panel-top); color: inherit; text-decoration: none; }
.tableicon { flex: none; display: grid; place-items: center; width: 37px; height: 37px; border-radius: 9px; border: 1px solid #3c5744; background: #1c3025; color: #b4dfa5; }
.tableicon.aqua { background: var(--aqua-soft); color: var(--aqua); border-color: var(--aqua-line); }
.tableicon b { width: 19px; height: 19px; border-radius: 99px; font-size: 13px; line-height: 19px; text-align: center; background: #b6d8ed; color: #162433; }
.tablename { min-width: 0; }
.tablename strong { display: block; font-size: 14px; overflow-wrap: anywhere; }
.tablerow small { display: block; font-size: 11.5px; font-weight: 400; color: #9b9e9e; }
.stakes { flex: none; margin-inline-start: auto; text-align: end; font-size: 13px; font-weight: 700; }
.tablerow > .icon { color: #8c928e; }

/* What a tournament shows in an open row. */
.tour-count { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.tour-count progress { appearance: none; -webkit-appearance: none; display: block; width: 100%; height: 8px; border: 0; border-radius: 999px; overflow: hidden; background: #151517; }
.tour-count progress::-webkit-progress-bar { background: #151517; }
.tour-count progress::-webkit-progress-value { background: #17a563; border-radius: 999px; }
.tour-count progress::-moz-progress-bar { background: #17a563; border-radius: 999px; }
.tour-prizes { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tour-prizes li { display: flex; align-items: center; gap: 7px; min-width: 0; padding: 4px; padding-inline-end: 10px; border-radius: 999px; background: rgba(16, 18, 18, .7); border: 1px solid var(--line); }
.tour-prizes b { font-weight: 700; color: var(--ink); overflow-wrap: anywhere; }
.medal { flex: none; width: 21px; height: 21px; border-radius: 50%; text-align: center; font: 700 12px/21px Georgia, serif; }
.place-1 .medal { background: linear-gradient(#f6e3ad, #c9a45c); color: #2c2109; }
.place-2 .medal { background: linear-gradient(#eef1f2, #9aa3a8); color: #1a1f22; }
.place-3 .medal { background: linear-gradient(#e9bd95, #a36a3c); color: #2a1708; }
.place-1 b { color: var(--gold); }
.tour-note { margin: 0; color: #c7c7c6; line-height: 1.5; overflow-wrap: anywhere; }
/* A tournament that started: the first four, and its matches round by round. */
.tour-label { margin: 2px 0 -4px; font-size: 12px; font-weight: 700; line-height: 1.2; color: #a9a9ab; }
.tour-places b { unicode-bidi: isolate; }
.tour-bracket { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 5px; }
.bmatch { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; align-items: baseline; padding: 8px 10px; border-radius: 6px; background: rgba(16, 18, 18, .7); border: 1px solid var(--line); }
.bmatch small { grid-column: 1 / -1; color: #a9a9ab; font-size: 12px; }
.bmatch-names { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; min-width: 0; }
.bmatch-names b { font-weight: 700; overflow-wrap: anywhere; unicode-bidi: isolate; }
.bmatch-names b.won { color: #3fd486; }
.bmatch-names i { font-style: normal; color: #8d8d90; font-size: 13px; }
.bmatch-names .nobody { color: #8d8d90; }
.bmatch-end { color: #c7c7c6; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bmatch.ready { border-color: #ffcf70; }
.bmatch.ready .bmatch-end { color: #ffcf70; font-weight: 700; }
.bmatch.wait { opacity: .62; }
.bmatch.mine { border-inline-start: 3px solid var(--accent); }

/* The bar that calls a player to a tournament table that waits for them. */
.my-table { position: sticky; top: 8px; z-index: 6; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 8px 10px 4px; padding: 11px 14px; border-radius: 8px; background: linear-gradient(180deg, #ffd978, #e9a93a); color: #201405; text-decoration: none; box-shadow: 0 4px 16px rgba(0, 0, 0, .45); }
.my-table[hidden] { display: none; }
.my-table span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.my-table strong { font-size: 16px; font-weight: 800; }
.my-table small { font-size: 13px; font-variant-numeric: tabular-nums; }
.my-table b { display: inline-flex; align-items: center; gap: 4px; padding: 8px 12px; border-radius: 999px; background: #201405; color: #ffd978; font-weight: 800; white-space: nowrap; }
.my-table:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.event-clock { font-weight: 700; color: #ffcf70; font-variant-numeric: tabular-nums; }

.tour-foot { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.tour-in { margin: 0; color: var(--accent); font-weight: 700; }
.tour-need { margin: 0; color: #c7c7c6; line-height: 1.45; }

/* The club's main button, and the quieter one beside it. */
.cta {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 44px; margin-top: 10px; padding: 0 16px; border: 0; border-radius: 8px;
  background: var(--accent); color: var(--accent-ink); font: 700 1rem/1.1 var(--game-font); text-decoration: none; cursor: pointer; touch-action: manipulation;
}
.cta:disabled { opacity: .5; cursor: default; }
.tour-leave {
  min-height: 44px; padding: 0 14px; border-radius: 7px; border: 1px solid var(--line-strong); background: #16191a; color: #d7dad8; cursor: pointer;
  font: 600 13px var(--game-font); touch-action: manipulation;
}
.tour-leave:disabled { opacity: .5; cursor: default; }

/* A room, the tournaments screen and the club screen. */
.infobox { padding: 22px; border-radius: 14px; background: var(--panel-top); border: 1px solid var(--line); }
.infobox + .infobox { margin-top: 12px; }

/* The practice poker table. The felt is drawn here, in the club's green: a rail, a line inside it,
   the dealer above, the player below, and the five cards between them. */
.poker { max-width: 640px; display: flex; flex-direction: column; gap: 12px; }
.poker-head h2 { margin: 2px 0 6px; font-size: 21px; font-weight: 700; letter-spacing: -.5px; }
.poker-head p { margin: 0; font-size: 14px; line-height: 1.5; color: #9b9e9e; }
.poker-head p.eyebrow { margin: 0; color: #b6bcb5; }
.felt {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 14px;
  padding: 22px 12px; border-radius: 120px / 96px; border: 10px solid #2b2118;
  background: radial-gradient(ellipse at 50% 42%, #2f9d62, #17623c 62%, #0e4428);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .12), inset 0 0 38px rgba(0, 0, 0, .5), 0 14px 30px rgba(0, 0, 0, .5);
}
.felt::before { content: ""; position: absolute; inset: 9px; border-radius: 108px / 84px; border: 1px solid rgba(255, 255, 255, .16); pointer-events: none; }
.pseat { display: flex; flex-direction: column; align-items: center; gap: 6px; min-height: 96px; justify-content: flex-start; }
.pseat.mine { justify-content: flex-end; }
.pseat small { min-height: 1.3em; font-size: 12px; font-weight: 700; color: #e9f7dd; }
.pwho { display: flex; align-items: center; gap: 10px; padding: 4px 12px; border-radius: 999px; background: rgba(8, 20, 14, .72); font-size: 13px; }
.pwho b { font-weight: 700; max-width: 12ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; unicode-bidi: isolate; }
.pwho span { display: inline-flex; align-items: center; gap: 4px; color: #ffd978; font-weight: 700; font-variant-numeric: tabular-nums; }
.pcards, .pboard { display: flex; justify-content: center; gap: 5px; direction: ltr; min-height: 60px; }
.pmiddle { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.ppot { margin: 0; padding: 3px 14px; border-radius: 999px; background: rgba(8, 20, 14, .72); font-size: 13px; color: #e9f7dd; }
.ppot b { color: #ffd978; font-variant-numeric: tabular-nums; unicode-bidi: isolate; }
.pcard {
  flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; width: 42px; height: 60px; border-radius: 6px;
  background: #fbf8ef; color: #141414; box-shadow: 0 2px 5px rgba(0, 0, 0, .45); line-height: 1;
}
.pcard b { font-size: 18px; font-weight: 800; letter-spacing: -.5px; }
.pcard i { font-style: normal; font-size: 19px; }
.pcard.red { color: #c9252d; }
.pcard.back { background: repeating-linear-gradient(45deg, #1d5b3a 0 5px, #174a2f 5px 10px); border: 3px solid #fbf8ef; }
.pcard.slot { background: none; box-shadow: none; border: 1px dashed rgba(255, 255, 255, .25); }
.poker.won .pseat.mine .pcard { box-shadow: 0 0 0 2px #ffd978, 0 2px 8px rgba(0, 0, 0, .45); }
.pstatus { margin: 0; min-height: 2.9em; text-align: center; font-size: 14px; font-weight: 600; line-height: 1.45; }
.ptray { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.ptray button { flex: 1 1 96px; max-width: 220px; min-height: 46px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line-strong); cursor: pointer; font: 700 15px/1.15 var(--game-font); color: var(--ink); background: #1c1f20; }
.ptray button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ptray .pk-main { flex-basis: 100%; max-width: 320px; border: 0; color: var(--accent-ink); background: var(--accent); }
.ptray .pk-call { border-color: var(--accent-line); background: var(--accent-soft); color: var(--accent); }
.ptray .pk-bet { border-color: #6f5a26; background: #2a2412; color: #ffd978; }
.ptray .pk-fold { color: var(--rose); }
@media (max-width: 420px) {
  .felt { padding: 18px 6px; border-width: 8px; border-radius: 84px / 76px; }
  .felt::before { border-radius: 74px / 66px; }
  .pcard { width: 38px; height: 54px; }
  .pcards, .pboard { gap: 4px; min-height: 54px; }
}
.infobox > .icon { color: var(--accent); margin-bottom: 12px; }
.infobox > p { margin: 10px 0; font-size: 14px; line-height: 1.5; color: #9b9e9e; }
.infobox > p.eyebrow { margin: 0 0 4px; color: #b6bcb5; }
.friendly-picks { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 12px 16px; margin: 14px 0 6px; }
.friendly-picks > div { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.steps { list-style: none; margin: 14px 0 6px; padding: 0; display: grid; gap: 7px; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 37px minmax(0, 1fr); column-gap: 11px; align-items: center; padding: 12px 11px; border-radius: 9px; border: 1px solid var(--line); background: var(--night-2); color: var(--ink-dim); font-size: 13px; line-height: 1.45; }
.steps li::before { content: counter(step); grid-row: span 2; display: grid; place-items: center; width: 37px; height: 37px; border-radius: 9px; font-weight: 700; color: #b4dfa5; background: #1c3025; border: 1px solid #3c5744; }
.steps li b { color: var(--ink); font-size: 14.5px; }
.ticks { list-style: none; margin: 12px 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; line-height: 1.5; color: var(--ink-dim); }
.ticks li { position: relative; padding-inline-start: 24px; }
.ticks li::before { content: ""; position: absolute; inset-inline-start: 4px; top: .45em; width: 9px; height: 5px; border: solid var(--accent); border-width: 0 0 2px 2px; transform: rotate(-45deg); }
[dir=rtl] .ticks li::before { transform: scaleX(-1) rotate(-45deg); }
.more-link { font-weight: 700; }
.book { max-width: 600px; padding: 18px; border-radius: 12px; border: 1px solid #38433e; background: #17201d; color: #edf1e9; }
.book h2 { margin: 4px 0 0; font-size: 25px; font-weight: 700; }
.book small { color: #bdc9bf; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.book-balance { display: flex; align-items: center; gap: 14px; margin: 15px 0; padding: 16px; border-radius: 8px; background: #101713; color: #e2ca8b; }
.book-balance div, .book-row span { display: grid; min-width: 0; }
.book-balance strong { font-size: 30px; line-height: 1.2; }
.book-balance span { font-size: 13px; color: #bdc9bf; }
.book-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 15px 0; padding-bottom: 8px; border-bottom: 1px solid #38433e; }
/* The player's chips, change by change, and the manager's word when the account is blocked. */
.book-history { list-style: none; margin: -6px 0 15px; padding: 0; display: flex; flex-direction: column; gap: 4px; max-height: 260px; overflow-y: auto; }
.book-history li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 12px; border-radius: 6px; background: #101713; }
.book-history span { display: grid; min-width: 0; }
.book-history b { font-weight: 600; overflow-wrap: anywhere; }
.book-history strong { flex: none; font-variant-numeric: tabular-nums; unicode-bidi: isolate; }
.book-history .in strong { color: #3fd486; }
.book-history .out strong { color: var(--rose); }
.book-blocked { margin: 15px 0; padding: 12px 14px; border-radius: 8px; background: #2b1717; border: 1px solid #7a3b3b; color: #ffd0d0; font-weight: 600; line-height: 1.45; }
.book-row small.is-approved { color: var(--accent); }
.book-row small.is-pending { color: #e2ca8b; }
.book-row small.is-rejected { color: var(--rose); }
.book-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 15px; }
.book-links a, .book-links button { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 7px; border: 1px solid #536259; background: none; color: #edf1e9; font: 600 14px var(--game-font); text-decoration: none; cursor: pointer; }
.book-links button { color: #bdc9bf; }
.legal { margin: 18px 0 0; color: var(--ink-dim); font-size: 13px; }

/* The three screens, under the thumb. */
.club-nav {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 5; display: flex; justify-content: center; padding-bottom: env(safe-area-inset-bottom, 0px);
  background: rgba(17, 20, 21, .97); border-top: 1px solid var(--line);
}
.club-nav a {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; width: min(33.33%, 180px); min-height: 61px;
  color: #9b9e9e; font-size: 11px; text-decoration: none;
}
.club-nav a[aria-current=page] { color: var(--accent); }
.club-nav a[aria-current=page]::before { content: ""; position: absolute; top: 0; width: 31px; height: 2px; background: var(--accent); }
@media (min-width: 700px) {
  .club-bar { height: 72px; }
  .club-main { padding: 30px 24px 100px; }
  .jack { padding: 23px 28px; }
  .next-card .chipcaption span { flex-basis: auto; }
  .next-card .chipcaption span::before { content: "· "; }
  .room { min-height: 190px; padding: 21px; background-position: center 55%; }
  .roomtag { top: 15px; left: 17px; }
  .roomstate { top: 15px; right: 17px; }
  .room strong { font-size: 31px; }
  .sectiontitle { margin-top: 25px; }
  .tablerow { padding: 14px 18px; }
  .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 420px) {
  .filters button:not(.sort) { padding: 0 12px; }
}
@media (max-width: 370px) {
  .board-filter { font-size: 12px; padding-inline: 8px; }
  .trow-main { gap: 5px; }
  .trow-ring { width: 46px; height: 46px; font-size: 13px; }
  .trow-info strong { font-size: 16px; }
  .trow-info strong.long { font-size: 15px; }
  .trow-buy { gap: 5px; }
  .trow-buy small { font-size: 11px; }
  .trow-buy strong { font-size: 17px; }
  .trow-side { padding-inline-end: 9px; }
  .title-row h1 { font-size: 30px; }
  .trow-state { inset-inline-end: 9px; }
  .trow-mini { width: 84px; }
  .filters button { padding: 0 10px; }
  .schedule li { gap: 6px; }
  .sch-col { min-width: 44px; }
  .sch-prize { width: 70px; }
  .sch-prize b { max-width: 60px; }
}

.field-label { font-weight: 700; font-size: .9rem; color: var(--ink-dim); }
.panel .message { color: var(--red); font-weight: 700; }
.panel .message:empty { display: none; }
.panel .message.good { color: var(--green); }
.text-btn { border: 0; padding: 4px; background: none; font: 700 .95rem var(--game-font); color: var(--accent); text-decoration: underline; cursor: pointer; }
.text-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.choice { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.choice.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice label {
  display: grid; place-items: center; text-align: center; min-height: 44px; padding: 6px 8px; border-radius: 7px; cursor: pointer;
  font-weight: 600; font-size: .9rem; color: #b2b7b5; background: #16191a; border: 1px solid var(--line);
}
.choice input:checked + label { color: var(--accent); border-color: var(--accent-line); background: var(--accent-soft); }
.choice input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }
.share-row { display: flex; gap: 8px; }
.share-row input { flex: 1; min-width: 0; direction: ltr; }
.links { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

/* In game: the screen belongs to the table. It wears the look of the club's own cue arena: slate
   blue, a card for each player with the one at the table edged in gold, what is played for
   between them, and square keys. The table itself is this site's own drawing. */
#game { display: flex; flex-direction: column; gap: 12px; }
.hud { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 6px; width: 100%; max-width: 860px; margin: 0 auto; }
.player {
  display: flex; align-items: center; gap: 9px; min-width: 0; padding: 4px 12px 4px 4px; border-radius: 7px;
  background: linear-gradient(#2d3b4a, #0d131d); border: 1px solid #5c6777;
}
#p0 { padding: 4px 4px 4px 12px; }
#p1 { flex-direction: row-reverse; }
.player.at-table { border-color: #e7c774; }
/* The portrait: a square with the player's first letter. The shot clock runs round it. */
.avatar {
  --t: 0; --ring: var(--green);
  flex: none; width: 54px; height: 54px; border-radius: 7px; padding: 4px;
  background: conic-gradient(var(--ring) calc(var(--t) * 1turn), #0a0f16 0);
}
.avatar span {
  display: grid; place-items: center; width: 100%; height: 100%; border-radius: 5px; border: 2px solid #ded8c5;
  font-weight: 900; font-size: 1.35rem; color: #dcefff; background: #37668b;
}
#p1 .avatar span { background: #865436; color: #ffe2bd; }
.player .info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
#p1 .info { align-items: flex-end; }
.player .name { font-weight: 800; font-size: 1.05rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seat-state { font-size: 11px; font-weight: 700; line-height: 1.2; color: #d1d9df; min-height: 1.2em; }
.player.at-table .seat-state { color: #e7c774; }
/* Games won in this match, at the end of the card that faces the middle. */
.player .score { flex: none; min-width: 1.3em; text-align: center; font: 700 1.9rem/1 var(--serif-font); font-variant-numeric: tabular-nums lining-nums; color: #ffe294; }
#p0 .score { margin-inline-start: auto; }
#p1 .score { margin-inline-end: auto; }
/* The balls a player still has on the table: seven of a group, then the 8. */
.player .rack { display: flex; gap: 3px; min-height: 20px; }
.player .rack .mini-ball { --d: 20px; }
.player.off .name::after { content: " · לא מחובר"; color: var(--red); font-weight: 700; }
.plate { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 2px 10px; max-width: 150px; text-align: center; color: #ffdb79; }
.plate svg { width: 20px; height: 20px; }
.plate-sub { font-size: 11px; font-weight: 700; line-height: 1.25; }
.sub-hud { display: flex; justify-content: center; align-items: center; gap: 16px; flex-wrap: wrap; font-weight: 700; color: #d1d9df; font-size: .9rem; min-height: 1.4em; }
.ball-on { color: #f7eed9; }
#shot-text { font-variant-numeric: tabular-nums; }

.bottom { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; }
.tool { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: .75rem; font-weight: 700; color: #d1d9df; min-width: 60px; }
/* What the game says, under a small line that names the game and what it is played for. */
.toast {
  justify-self: center; display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; padding: 8px 16px; border-radius: 9px; max-width: 860px;
  background: rgba(16, 24, 36, .81); min-height: 1.4em;
}
.toast p { margin: 0; font-size: 14px; font-weight: 600; line-height: 1.4; }
.toast-label { font-size: 11px; font-weight: 700; color: #d1d9df; }
.toast-label bdi { font-family: var(--label-font); letter-spacing: .06em; }
.toast:has(#status:empty) { visibility: hidden; }
.over-actions .btn { color: #fff; background: linear-gradient(#65c845, #29711c); border: 2px solid #aad17b; box-shadow: 0 2px 4px rgba(0, 0, 0, .6); text-shadow: 0 1px 2px #252b19; }
#error { color: var(--red); min-height: 1.2em; margin: 0; text-align: center; font-weight: 700; }
.over-actions { display: flex; justify-content: center; }

@media (max-width: 700px) {
  main { padding: 8px 10px 16px; gap: 10px; }
  .brand h1 { font-size: 1.9rem; }
  .hud { gap: 6px; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
  .player { gap: 6px; padding: 3px 8px 3px 3px; }
  #p0 { padding: 3px 3px 3px 8px; }
  .avatar { width: 40px; height: 40px; padding: 3px; }
  .avatar span { font-size: 1rem; border-width: 1px; }
  .player .name { font-size: .8rem; }
  .player .score { font-size: 1.4rem; }
  .seat-state { font-size: 10px; }
  .player .rack { gap: 2px; min-height: 10px; }
  .player .rack .mini-ball { --d: 10px; }
  .player .rack .mini-ball b { display: none; } /* too small for a number: the colour says which ball */
  .plate { padding: 2px 4px; max-width: 76px; }
  .plate svg { width: 16px; height: 16px; }
  .plate-sub { font-size: 10px; }
  .sub-hud { font-size: .78rem; gap: 10px; }
  .icon-btn { width: 44px; height: 44px; }
  .toast { padding: 6px 12px; }
  .toast p { font-size: 13px; }
}

/* A live game on a phone lying on its side. The screen is short: the players, the score and the
   line under them are one thin band each, the tools under the table are small and their names
   sit beside them, and the table takes the rest. */
@media (orientation: landscape) and (max-height: 520px) {
  main:has(> #game:not([hidden])) { max-width: none; padding: 4px 8px; gap: 2px; }
  #game { gap: 4px; }
  .hud { gap: 6px; }
  .player { gap: 6px; padding: 2px 10px 2px 2px; }
  #p0 { padding: 2px 2px 2px 10px; }
  .avatar { width: 32px; height: 32px; padding: 2px; border-radius: 5px; }
  .avatar span { font-size: .85rem; border-width: 1px; border-radius: 3px; }
  .player .info { flex-direction: row; align-items: center; gap: 8px; }
  #p1 .info { flex-direction: row-reverse; }
  .player .name { font-size: .82rem; }
  .player .score { font-size: 1.25rem; }
  .seat-state { display: none; } /* the gold edge of the card says who is at the table */
  .player .rack { gap: 2px; min-height: 12px; }
  .player .rack .mini-ball { --d: 12px; }
  .player .rack .mini-ball b { display: none; }
  .plate { flex-direction: row; align-items: center; gap: 6px; padding: 0 8px; max-width: none; }
  .plate svg { width: 15px; height: 15px; }
  .plate-sub { font-size: .68rem; white-space: nowrap; }
  .sub-hud { gap: 10px; min-height: 1.25em; font-size: .72rem; line-height: 1.25; } /* as tall empty as full, so that the table is fitted once */
  .bottom { gap: 8px; }
  .tool { flex-direction: row; gap: 6px; min-width: 0; font-size: .7rem; }
  .toast { flex-direction: row; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 0 10px; padding: 3px 12px; min-height: 0; }
  .toast p { font-size: .78rem; line-height: 1.3; }
  .toast-label { font-size: 10px; }
  #error { min-height: 0; font-size: .75rem; }
  #error:empty { display: none; }
  .over-actions .btn { min-height: 38px; }
}
