  /* ---------- Poker dice (poker-dice-holdem_1.md): the lobby's Pick a game, Poker dice and Table setup screens, then the poker table ---------- */
  /* the flow's screens: the round grey back button (the lobby's pages have a white one), the body a column so the cards sit in the middle */
  .pkpage .pagehead .back { background: #5B6B7A; color: #fff; }
  .pkpage .pagehead .back svg { width: 26px; height: 26px; }
  .pkpage .pagehead .row { align-items: center; }
  .pkpage .pkttl { min-width: 0; display: flex; flex-direction: column; }
  .pkpage .pksub { font: 18px/1.2 var(--lilita); color: #FFE9B8; margin: 8px 0 0 4px; text-shadow: 0 2px 0 rgba(0,0,0,.35); white-space: nowrap; }
  .pkbody { display: flex; flex-direction: column; min-height: 0; }
  .lpage .pagebody.pkbody { padding-bottom: calc(14px + env(safe-area-inset-bottom)); }
  .pkmid { margin: auto 0; display: flex; flex-direction: column; gap: 24px; padding: 10px 0 40px; }
  /* Pick a game (home-bubbles-and-pick-a-game.md §2): three plain rows, stacked and centred, 30 px apart, the page 22 px in from the sides; a row is a cream button with the game's
     art on a coloured panel at the left (Blackjack's colour is blackjack.css's) and its name and a chevron at the right; nothing else on it. The name breaks between words, never
     inside one: a word wider than its room steps the font down a pixel at a time (poker.js's fitGameNames). */
  #gamePage .pagebody.pkbody { padding-left: 22px; padding-right: 22px; }
  #gamePage .pkmid { gap: 30px; }
  .grow { position: relative; flex: 0 0 auto; display: flex; align-items: stretch; width: 100%; height: 160px; padding: 0; background: #FFF4D6; color: var(--ink2); border: 4px solid var(--ink2); border-radius: 24px; box-shadow: 0 7px 0 var(--ink2); overflow: hidden; text-align: left; transition: transform 80ms, box-shadow 80ms; }
  .grow:hover:not(:disabled) { filter: none; }
  .grow:active:not(:disabled) { transform: translateY(4px); box-shadow: 0 3px 0 var(--ink2); }
  .grow:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
  .grow .gart { --gw: 156px; flex: 0 0 var(--gw); width: var(--gw); display: grid; place-items: center; background: var(--gart, #14703F); border-right: 4px solid var(--ink2); }
  .grow .gart svg { width: calc(var(--gw) * .85); height: auto; display: block; }
  .grow.craps { --gart: #14703F; } .grow.poker { --gart: #5A1E28; }
  .grow .gname { flex: 1 1 auto; min-width: 0; align-self: center; margin-left: 16px; font: 400 32px/1.05 var(--lilita); color: var(--ink2); overflow-wrap: normal; word-break: normal; hyphens: manual; }
  .grow .gchev { flex: 0 0 13px; align-self: center; width: 13px; height: 26px; margin: 0 14px 0 8px; color: var(--ink2); } .grow .gchev svg { width: 100%; height: 100%; display: block; } /* (the ›, 26 px tall, 14 px from the cream's right edge) */
  @media (max-height: 760px) { #gamePage .pkmid { gap: 22px; } .grow { height: 140px; } .grow .gart { --gw: 136px; } .grow .gname { font-size: 28px; } }
  @media (max-height: 680px) { #gamePage .pkmid { gap: 16px; } .grow { height: 120px; } .grow .gart { --gw: 118px; } .grow .gname { font-size: 26px; } }
  @media (max-width: 379px) { .grow .gname { font-size: 28px; } } @media (max-width: 379px) and (max-height: 680px) { .grow .gname { font-size: 26px; } }
  /* Poker dice: Duel House (green) and Duel Player (orange), straight, with a round icon; "Have a code? Join a table" as a dark pill under them */
  .pkbig { display: flex; align-items: center; gap: 20px; width: 100%; min-height: 116px; padding: 14px 22px 14px 20px; border: 4px solid var(--ink2); border-radius: 44px 50px 46px 52px / 52px 46px 50px 44px; box-shadow: 0 7px 0 var(--ink2), inset 0 -8px 0 rgba(0,0,0,.14), inset 0 4px 0 rgba(255,255,255,.35); text-align: left; color: var(--ink2); transition: transform 80ms, box-shadow 80ms; }
  .pkbig:hover:not(:disabled) { filter: none; }
  .pkbig:active:not(:disabled) { transform: translateY(4px); box-shadow: 0 3px 0 var(--ink2), inset 0 -8px 0 rgba(0,0,0,.14), inset 0 4px 0 rgba(255,255,255,.35); }
  .pkbig.solo { background: #7ED957; } .pkbig.multi { background: #FF8A3D; } .pkbig.path { background: #3FA9F5; } /* (the Path of Odds, Classic craps' third door: the blue of the old Join card, its icon in the Path's purple) */
  .pkico { width: 74px; height: 74px; flex: 0 0 74px; border-radius: 50%; border: 4px solid var(--ink2); display: grid; place-items: center; }
  .pkico svg { width: 38px; height: 38px; display: block; }
  .pkico.dark { background: #3A4654; color: #D6DEE6; } .pkico.cream { background: #FFE9B8; color: var(--ink2); } .pkico.purple { background: #B57BFF; color: #fff; }
  .pkbig .pktxt { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
  .pkbig .pktxt b { font: 40px/.95 var(--marker); font-weight: 400; color: #fff; text-shadow: 2px 2px 0 var(--ink2), -1px -1px 0 var(--ink2), 1px -1px 0 var(--ink2), -1px 1px 0 var(--ink2), 0 5px 0 var(--ink2); white-space: nowrap; }
  .pkbig .pktxt small { font: 19px/1.25 var(--lilita); color: var(--ink2); }
  @media (max-width: 379px) { .pkbig .pktxt b { font-size: 33px; } .pkico { width: 64px; height: 64px; flex-basis: 64px; } }
  .pkjoin { align-self: center; display: inline-flex; align-items: center; gap: 8px; min-height: 66px; padding: 0 30px; background: #06281A; color: #fff; border: 4px solid var(--ink2); border-radius: 999px; box-shadow: 0 5px 0 var(--ink2); font: 22px/1 var(--lilita); font-weight: 400; transition: transform 80ms, box-shadow 80ms; }
  .pkjoin b { color: #FFD23F; font-weight: 400; }
  .pkjoin:hover:not(:disabled) { filter: none; } .pkjoin:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 2px 0 var(--ink2); }
  /* Table setup: the buy-in card, the computer's skill (singleplayer), Sit down; sized so the whole page is one screen on a phone */
  .pkcard { background: #06281A; border: 4px solid var(--ink2); border-radius: 24px; padding: 14px 16px 14px; box-shadow: 0 5px 0 var(--ink2); margin-top: 2px; }
  .pkcard .pklbl { font: 21px/1 var(--lilita); color: #fff; margin: 0 0 10px; }
  .pkcard input { font-family: var(--lilita); font-size: 27px; color: var(--ink2); background: #fff; border: 4px solid var(--ink2); border-radius: 16px; min-height: 54px; padding: 0 16px; width: 100%; box-shadow: 0 4px 0 var(--ink2); outline: none; }
  .pkcard input:focus { box-shadow: 0 4px 0 var(--ink2), 0 0 0 3px #fff; }
  .pkcard input::placeholder { color: #B9B2A6; }
  .pkdash { border-top: 3px dashed rgba(255,255,255,.28); margin: 14px 0 10px; }
  .pkrow { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font: 20px/1.1 var(--lilita); color: #fff; }
  .pkrow .pkval { color: #FFD23F; white-space: nowrap; }
  .pknote { margin-top: 6px; font: 15px/1.3 var(--lilita); color: #D6F2E0; }
  .pknote.bad { color: #FF8A8A; } .pknote.bad:empty { display: none; }
  /* the Mode card (poker-showdown-mode.md §3, setup-pickers-and-bet.md §1): the Hold'em / Showdown name tiles, then the Dice tiles (pickers.css); each tile's line is behind its ⓘ, so the card has no notes */
  .pkmodecard { margin-bottom: 8px; padding: 12px 12px 14px; }
  .pkmodecard .pklbl { margin-bottom: 6px; }
  .pkmodehd { margin-bottom: 12px; }
  .pkdice { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .pkdice button { min-height: 44px; padding: 0 8px; background: #0B3D22; color: #fff; border: 4px solid var(--ink2); border-radius: 16px; box-shadow: 0 4px 0 var(--ink2); font: 20px/1 var(--lilita); font-weight: 400; white-space: nowrap; transition: none; }
  .pkdice button.on { background: #FFD23F; color: var(--ink2); box-shadow: 0 4px 0 var(--ink2), inset 0 0 0 2px var(--ink2); }
  .pkdice.pkturn { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; } .pkdice.pkturn button { min-width: 0; padding: 0 3px; font-size: 17px; } /* the turn time's five picks (the eight-item session), on the Duel Player setup pages */
  .pkdice button:hover:not(:disabled) { filter: none; } .pkdice button:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink2); }
  /* with the Mode card on the page (the tiles, or the Dice tiles alone while Showdown is still hidden), the page sits a notch tighter than its short-phone sizes at every height, since the original filled each phone's screen to the pixel; shorter phones tighten a notch more (the tiles' pictures smaller) */
  .pkpage.hasdice .pagehead .row { min-height: 50px; } .pkpage.hasdice .pksub { font-size: 16px; margin-top: 4px; } .pkpage.hasdice .lbody.pkbody { padding-top: 10px; padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
  .pkpage.hasdice .pkcard { padding: 6px 12px; } .pkpage.hasdice .pkcard .pklbl { font-size: 16px; margin-bottom: 5px; } .pkpage.hasdice .pkcard input { min-height: 40px; font-size: 21px; } .pkpage.hasdice .pkdash { margin: 8px 0 6px; } .pkpage.hasdice .pkrow { font-size: 18px; } .pkpage.hasdice .pknote { font-size: 13px; }
  .pkpage.hasdice .pkmodecard { margin-bottom: 6px; padding: 10px 12px 12px; } .pkpage.hasdice .pkmodehd { margin-bottom: 10px; } .pkpage.hasdice .pkdice button { min-height: 38px; font-size: 18px; }
  .pkpage.hasdice .pkhead { margin: 8px 0 8px; font-size: 18px; } .pkpage.hasdice .pksitwrap { padding-top: 10px; } .pkpage.hasdice .gbtn.pksit { height: 56px; font-size: 28px; }
  @media (max-height: 760px) { .pkpage.hasdice .pkcard { padding: 5px 12px; } .pkpage.hasdice .pkcard .pklbl { font-size: 15px; margin-bottom: 4px; } .pkpage.hasdice .pkcard input { min-height: 38px; font-size: 20px; } .pkpage.hasdice .pkdash { margin: 6px 0 4px; } .pkpage.hasdice .pknote { font-size: 12px; } .pkpage.hasdice .pkmodecard { padding: 9px 12px 11px; } .pkpage.hasdice .pkdice button { min-height: 34px; font-size: 17px; } .pkpage.hasdice .gbtn.pksit { height: 50px; font-size: 26px; } .pkpage.hasdice .pksitwrap { padding-top: 8px; } .pkpage .vart { height: 46px; } .pkpage .vpick { --pd: 34px; --cw: 32px; } .pkpage .vpick.n3 { --pd: 30px; } .pkpage .vbot { height: 42px; } .pkpage .vtile { padding: 8px 5px 6px; gap: 3px; } .pkpage .vtile.on { padding: 7px 4px 5px; } .pkpage .vtile.vnameonly { padding-top: 22px; } .pkpage .vtile.vnameonly.on { padding-top: 21px; } }
  @media (max-height: 700px) { .pkpage.hasdice .pkdice button { min-height: 32px; } .pkpage .vart { height: 40px; } .pkpage .vpick { --pd: 30px; --cw: 28px; } .pkpage .vpick.n3 { --pd: 27px; } .pkpage .vbot { height: 38px; } .pkpage .vtile.vnameonly .vname { font-size: 18px; } }
  .pkhead { margin: 16px 0 8px; font: 22px/1 var(--lilita); color: #fff; text-shadow: 0 2px 0 rgba(0,0,0,.35); }
  .pksitwrap { margin-top: auto; padding-top: 20px; }
  .gbtn.pksit { background: #7ED957; width: 100%; height: 74px; font-size: 36px; border-radius: 48% 52% 46% 54% / 56% 50% 50% 44%; margin-top: 0; }
  /* short phones: a notch tighter everywhere, and the smallest ones lose the blinds' explainer */
  @media (max-height: 760px) { .pkpage .pksub { font-size: 16px; margin-top: 6px; } .pkcard { padding: 10px 14px 10px; } .pkcard .pklbl { font-size: 19px; margin-bottom: 8px; } .pkcard input { min-height: 48px; font-size: 24px; } .pkdash { margin: 10px 0 8px; } .pkrow { font-size: 18px; } .pknote { font-size: 14px; } .pkhead { margin: 12px 0 8px; font-size: 20px; } .pksitwrap { padding-top: 12px; } .gbtn.pksit { height: 62px; font-size: 32px; } }
  @media (max-height: 700px) { .pknote:not(.bad) { display: none; } .pkpage .pagehead .row { min-height: 50px; } .pkcard { padding: 8px 12px; } .pkcard .pklbl { font-size: 17px; margin-bottom: 6px; } .pkcard input { min-height: 44px; font-size: 22px; } .pkhead { margin: 10px 0 6px; font-size: 18px; } .gbtn.pksit { height: 56px; font-size: 28px; } }
  /* ---------- the poker table (images 4 to 7): the craps table's three parts and top bar, with poker inside them ---------- */
  .gtop .pkpill { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; background: #3FA9F5; color: var(--ink2); border: 3px solid var(--ink2); border-radius: 999px; box-shadow: 0 3px 0 var(--ink2); font: 18px/1 var(--lilita); white-space: nowrap; }
  button.icobtn.ranks { background: #B57BFF; margin-right: 2px; }
  /* flat dice: dark with gold pips (the craps table's Black & Gold), and the face-down die (grey, a dashed inner square, "?") */
  .pdie { display: inline-grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); width: var(--pd, 44px); height: var(--pd, 44px); padding: calc(var(--pd, 44px) * .14); gap: calc(var(--pd, 44px) * .03); background: #1F2229; border: 3px solid var(--ink2); border-radius: 22%; box-shadow: 0 3px 0 var(--ink2), inset 0 0 0 1px rgba(255,255,255,.06); flex: 0 0 auto; box-sizing: border-box; }
  .pdie i { display: block; width: 100%; height: 100%; border-radius: 50%; background: #F5C93A; visibility: hidden; }
  .pdie i.on { visibility: visible; }
  .pdie.gold { box-shadow: 0 0 0 3px #FFD23F, 0 3px 0 3px var(--ink2); }
  .fdie { position: relative; display: grid; place-items: center; width: var(--pd, 44px); height: var(--pd, 44px); background: #3A4654; border: 3px solid var(--ink2); border-radius: 22%; box-shadow: 0 3px 0 var(--ink2); color: #C9D2D8; font: calc(var(--pd, 44px) * .42)/1 var(--lilita); flex: 0 0 auto; box-sizing: border-box; }
  .fdie::before { content: ""; position: absolute; inset: 17%; border: 2px dashed #B8C2CC; border-radius: 16%; }
  .oppdice.peekable, .mydice.peekable { cursor: pointer; } .pdie.peek { outline: 1px dashed #C4B5FD; outline-offset: -1px; } /* (the admin's peek: the hidden dice face up, ringed so they never pass for a reveal; a hairline ring drawn just inside the die's edge, so the two rings never touch whatever the strip's gap (5 px on a phone); the dice themselves don't move or shrink) */
  /* the opponent strip: the skill tag, the stack and the action, the two face-down dice; a yellow ring while it is their move */
  .pkstrip { gap: 10px; cursor: default; }
  .pkstrip.turn { border-color: #FFD23F; box-shadow: 0 4px 0 #E8B820; } /* (their move: the strip's dark edge and shadow turn yellow) */
  .pkme .player.me.turn { border-color: #FFD23F; box-shadow: 0 4px 0 #E8B820, inset 0 0 0 2px rgba(230,184,76,.55); } /* (your move: your panel's edge the same yellow) */
  .pkstrip .skilltag { font: 800 9px/1 var(--nunito); letter-spacing: .1em; text-transform: uppercase; padding: 3px 7px; border-radius: 999px; color: var(--ink2); flex: 0 0 auto; }
  .pkstrip .skilltag.casual { background: #7ED957; } .pkstrip .skilltag.regular { background: #3FA9F5; } .pkstrip .skilltag.pro { background: #E8505B; color: #fff; }
  .player.pkstrip .line { font-size: 1.4rem; line-height: 26px; } /* (a long move steps down until it fits: fitAct; the line's height never changes) */ .pkstrip .line .act { color: #FFD23F; font-weight: 800; }
  .pkstrip .pkstack { flex: 0 0 auto; margin-left: auto; color: #fff; font-size: 1.45rem; font-weight: 700; } .pkstrip .pkstack + .oppdice { margin-left: 0; } /* (their stack on the right, before their dice) */
  .pkstrip .name .ttl { max-width: 7em; font-size: .7rem; } /* (the title rides on the name line: the second line is the stack and what they just did) */
  .pkstrip .oppdice { display: flex; gap: 8px; margin-left: auto; --pd: 46px; }
  /* the felt: the opponent's bet, the three board slots, the pot, the status line, your bet, the dealer button (the speed switch is in the ☰ menu) */
  .pkfelt { padding: 16px 12px 12px; margin: 6px 0; justify-content: center; } /* (a little air between the rail and the two cards) */
  body.pkon { min-height: 100vh; min-height: var(--app-h, 100dvh); } /* the poker screen is the page: the body is the screen's height, not 100vh (on Android Chrome 100vh counts the URL bar's room, which left a scroll into empty felt) */
  @media (max-width: 680px) { body.pkon { height: 100vh; height: var(--app-h, 100dvh); overflow: hidden; } } /* (a phone's poker screen is one screen tall and clips its own content: nothing to scroll to) */
  /* the middle fills the felt: an empty spacer above and the status line's box below share what is left, so the group sits in the middle and the status line halfway between the pot and the speed switch */
  .pkfeltmid { display: flex; flex-direction: column; align-items: center; gap: 12px; width: 100%; flex: 1 1 auto; min-height: 0; --bd: 84px; }
  .pkfeltmid::before { content: ""; flex: 1 1 0; }
  .pkstatwrap { flex: 1 1 0; width: 100%; display: flex; align-items: center; justify-content: center; margin-top: -12px; padding: 6px 0; } /* (the gap's 12px back: the distance from the pot is the box's own; a little air at least on a short phone) */
  .pkbetpill { order: -1; display: inline-flex; align-items: center; gap: 10px; min-height: 36px; color: #FFD23F; font: 22px/1 var(--lilita); text-shadow: 0 2px 2px rgba(0,0,0,.55); position: relative; z-index: 5; } /* (first, above the spacer: nearer the rail than the dice; over the tumbling die) */
  .pkbetpill:empty { visibility: hidden; } /* (the row stays: the board never moves when a bet comes or goes) */
  .pkbetpill.mine { order: 0; } /* (your bet: the last row, at the bottom of the felt on your side) */
  /* the speed switch, in the ☰ menu under the table code */
  .menurig { margin-top: 12px; width: 100%; } /* (the admin's Rig the dice in the poker and Blackjack menus, under the speed card) */
  .pkspeed { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; padding: 10px 14px; background: #06281A; border: 3px solid var(--ink2); border-radius: 18px; }
  .pkspeedlbl { font: 20px/1.1 var(--lilita); color: #fff; } .pkspeedlbl small { display: block; font: 800 12px/1.2 var(--nunito); color: #BFD8C8; } .pkspeedlbl small:empty { display: none; }
  .pkspeed .speedseg .seg { font-size: .95rem; padding: .55rem .9rem; }
  .pkbetpill b { font-weight: 400; }
  .pkchips { display: flex; align-items: center; }
  .pkchips .chip { width: 34px; height: 34px; font-size: .55rem; flex: 0 0 auto; box-shadow: -2px 1px 3px rgba(0,0,0,.45), inset 0 0 0 2px rgba(0,0,0,.15); } .pkchips .chip.d100000, .pkchips .chip.d500000, .pkchips .chip.d10000000, .pkchips .chip.d50000000, .pkchips .chip.d100000000 { font-size: .46rem; }
  .pkchips .chip + .chip { margin-left: -21px; } /* (fanned like a hand of cards: each chip over the one before, the last whole) */
  .pkboard { display: flex; gap: 14px; align-items: center; --pd: var(--bd); position: relative; top: -20px; } /* (a little nearer the bet than the pot; nothing else moves) */
  .pkboard .slot { width: var(--bd); height: var(--bd); border: 3px dashed rgba(255,255,255,.45); border-radius: 22%; display: grid; place-items: center; color: rgba(255,255,255,.55); font: calc(var(--bd) * .25)/1 var(--lilita); box-sizing: border-box; }
  .pkboard .slot.rolling { visibility: hidden; }
  .pkpot { margin-top: 4px; display: inline-flex; align-items: baseline; gap: 8px; padding: 5px 16px; background: #FFF4D6; border: 4px solid var(--ink2); border-radius: 999px; box-shadow: 0 4px 0 var(--ink2); color: var(--ink2); position: relative; z-index: 5; } /* (the pot, the bet and the status line draw over the tumbling die) */
  .pkpot small { font: 800 11px/1 var(--nunito); letter-spacing: .14em; text-transform: uppercase; color: #6b5a2a; }
  .pkpot b { font: 20px/1 var(--lilita); font-weight: 400; }
  .pkpot.down { animation: potdown .7s ease-in forwards; } .pkpot.up { animation: potup .7s ease-in forwards; }
  @keyframes potdown { 60% { opacity: 1; } to { transform: translateY(150px) scale(.5); opacity: 0; } }
  @keyframes potup { 60% { opacity: 1; } to { transform: translateY(-150px) scale(.5); opacity: 0; } }
  body.fast .pkpot.down, body.fast .pkpot.up { animation-duration: .35s; }
  .pkstatus { font: 21px/1.25 var(--lilita); color: #fff; text-shadow: 0 2px 2px rgba(0,0,0,.55); text-align: center; min-height: 2.5em; display: flex; flex-direction: column; justify-content: center; max-width: 100%; position: relative; z-index: 5; }
  .pkstatus.win { color: #7ED957; } .pkstatus.lose { color: #FF8A8A; }
  /* the result banner (poker-showdown-mode.md §2): at the end of every hand, in the status line's place, "You win 200,000!" in marker (gold for your win, white for theirs, cream for a split) with the reason under it in the status line's style. It lies over the status line's box and takes no room of its own, so nothing on the felt ever moves for it; fitBanner steps it down until it fits that box */
  .pkstatwrap { position: relative; }
  .pkresult { position: absolute; inset: 0; display: grid; place-items: center; z-index: 5; pointer-events: none; text-align: center; }
  .pkresult[hidden] { display: none; }
  .pkresin { display: flex; flex-direction: column; align-items: center; gap: 2px; max-width: 100%; }
  .pkbanner { font: 34px/1.05 var(--marker); color: #FFD93B; text-transform: uppercase; white-space: nowrap; max-width: 100%; padding: 2px 8px 5px; transform: rotate(-2deg); text-shadow: -2px -2px 0 var(--ink2), 2px -2px 0 var(--ink2), -2px 2px 0 var(--ink2), 2px 2px 0 var(--ink2), 0 4px 0 var(--ink2); animation: pkbanner .3s cubic-bezier(.2, .9, .3, 1.2) both; }
  .pkbanner.lose { color: #fff; } .pkbanner.split { color: #FFF4D6; }
  @keyframes pkbanner { from { opacity: 0; transform: rotate(-2deg) scale(.6); } }
  body.fast .pkbanner { animation-duration: .15s; }
  .pkreason { font: 21px/1.25 var(--lilita); color: #fff; text-shadow: 0 2px 2px rgba(0,0,0,.55); max-width: 100%; }
  /* the winning rank over the board at a showdown ("Three of a kind!"): plainer than the banner, Kiril's ask (no tilt, the table's regular font, a hairline edge rather than the marker outline, so it reads on a dark felt yet carries less weight than "You win"), standing in the other player's empty bet row, which liftOppBet centres between the felt's top edge and the dice while the word is up (its line fits the row's height at every size, so the board never moves for it) */
  .pkbetpill .pkrankword { font: 26px/1 var(--lilita); font-weight: 400; color: var(--ink2); white-space: nowrap; text-shadow: 1px 1px 0 #FFF4D6, -1px -1px 0 #FFF4D6, 1px -1px 0 #FFF4D6, -1px 1px 0 #FFF4D6; animation: pkrankword .3s cubic-bezier(.2, .9, .3, 1.2) both; }
  @keyframes pkrankword { from { opacity: 0; transform: scale(.6); } }
  .pkbetpill .pkrankword.red { color: #c8102e; } /* (a red one-colour hand, in the red pips' red) */
  .pkbetpill .pkrankword .cbtag { display: inline-block; margin-right: 6px; padding: 2px 6px 1px; border-radius: 6px; background: #8e0c22; color: #fff; font: 15px/1 var(--lilita); text-shadow: none; vertical-align: 3px; } /* (Colour-blind dice: "RED" before a red one-colour hand's name) */
  body.fast .pkbetpill .pkrankword { animation-duration: .15s; }
  /* the result tag on your hand card: WIN, LOSE or SPLIT in the strength meter's row until the next hand (the row keeps the meter's height, so the card doesn't change height) */
  .handcard .strength.result { min-height: 26px; justify-content: flex-start; }
  .rtag { display: inline-flex; align-items: center; height: 26px; padding: 0 14px; border: 2px solid var(--ink2); border-radius: 999px; font: 800 13px/1 var(--nunito); letter-spacing: .14em; color: #fff; box-shadow: 0 2px 0 var(--ink2); box-sizing: border-box; }
  .rtag.win { background: #7ED957; color: var(--ink2); } .rtag.lose { background: #E8505B; } .rtag.split { background: #5B6B7A; }
  .pkdealer { position: absolute; right: 18px; bottom: 6px; width: 40px; height: 40px; border-radius: 50%; background: #fff; border: 3px solid var(--ink2); display: grid; place-items: center; font: 22px/1 var(--lilita); color: var(--ink2); z-index: 3; }
  .pkdealer.top { bottom: auto; top: 16px; }
  /* Showdown (poker-showdown-mode.md §6): the hand's pill at the top-left of the felt ("100K each · hand 4", in the slot labels' style, over the felt so no row moves for it; on the Red & Black felt it sits in the green strip), the ready tick on the other player's strip once they have tapped Deal again, Change bet beside Deal again */
  .pkhandpill { position: absolute; top: 10px; left: 14px; z-index: 3; font: 12px/1.15 var(--lilita); letter-spacing: .02em; color: rgba(255,255,255,.72); background: rgba(0,0,0,.28); border: 2px solid rgba(255,255,255,.22); border-radius: 14px; padding: 4px 9px 5px; pointer-events: none; white-space: nowrap; text-align: left; } /* (two short lines: clear of the centred bet row whatever chips it fans) */
  .gtop .pkpill.long { letter-spacing: -.01em; } /* ("R&B Showdown": the longest name the pill carries) */
  .pkstrip .readytag { flex: 0 0 auto; width: 20px; height: 20px; border-radius: 50%; background: #7ED957; color: var(--ink2); border: 2px solid var(--ink2); display: inline-grid; place-items: center; font: 800 12px/1 var(--nunito); box-sizing: border-box; }
  .pkact .row .big .fitw { white-space: nowrap; max-width: 100%; overflow: hidden; padding: 0 2px; flex: 0 0 auto; } /* (a long "Waiting for [name]…" steps down to fit, fitSubs; Deal again the same; never shrunk by the button's height, which had squeezed "Deal again" to a sliver over its sub) */
  /* the board die's roll: the 3D renderer over the slot (the CSS cube inside is the fallback); the second scene the renderer wants sits off-screen */
  .pkroll { position: absolute; z-index: 4; pointer-events: none; display: flex; margin: 0; gap: 0; }
  .pkroll .scene.off { position: absolute; left: -9999px; top: 0; }
  /* your panel: the head, the hand card, the action row */
  .pkme .mehead .bank { font-size: 1.7rem; }
  .pkme .mehead .line { font-size: .9rem; } .pkme .mehead .line b { color: #fff; }
  .handcard { margin-top: 8px; background: #FFF4D6; border: 4px solid var(--ink2); border-radius: 18px; box-shadow: 0 4px 0 var(--ink2); padding: 10px 12px 10px; color: var(--ink2); display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 14px; align-items: center; text-align: left; }
  .handcard .mydice { display: flex; align-items: center; --pd: 68px; padding: 4px 6px 4px 2px; }
  .handcard .mydice .pdie:first-child { transform: rotate(-8deg); } .handcard .mydice .pdie:last-child { transform: rotate(8deg); margin-left: -2px; }
  .handcard .hinfo { min-width: 0; }
  /* the table's card: your dice on the right, above the main buttons (one-handed play, the right thumb), the words on the left; the strength row stays the full-width last row. The Raise sheet's mini card keeps its own order */
  .handcard:not(.mini) { grid-template-columns: minmax(0, 1fr) auto; }
  .handcard:not(.mini) .hinfo { order: 1; } .handcard:not(.mini) .mydice { order: 2; padding: 4px 2px 4px 6px; transform: scale(1.08); transform-origin: right bottom; } /* (a hair bigger into the room above and to the left: the bottom-right corner stays, and nothing else moves since a scale doesn't change the layout) */ .handcard:not(.mini) .strength { order: 3; }
  .handcard .hlbl { display: flex; align-items: center; gap: 6px; font: 800 13px/1 var(--nunito); letter-spacing: .14em; text-transform: uppercase; color: #6b5a2a; }
  .handcard .hlbl svg { width: 18px; height: 18px; flex: 0 0 auto; }
  .handcard .hlbl.tap { cursor: pointer; user-select: none; -webkit-user-select: none; padding: 4px 0; margin: -4px 0; }
  .handcard .mydice .fdie { width: var(--pd, 68px); height: var(--pd, 68px); font-size: calc(var(--pd, 68px) * .42); transform: scale(.9); } .handcard .mydice .fdie:last-child { margin-left: -2px; } /* (the real dice's box, so hiding them changes no size; drawn at nine tenths as before) */
  .handcard .hname, .handcard .hhint, .handcard .sword { position: relative; }
  .handcard .real { visibility: hidden; } .handcard .mask { position: absolute; inset: 0; overflow: hidden; } /* (hidden: the real words hold the room, the symbols sit over them) */
  /* the deal: your dice drop in from the felt, the other player's slide up to their strip, one after another */
  .pkme .mydice > span.deal, .pkstrip .oppdice > span.deal { animation: pkdeal .3s cubic-bezier(.2, .9, .3, 1.15) both; animation-delay: calc(var(--i, 0) * .1s); }
  .pkstrip .oppdice > span.deal { --dy: 54px; }
  @keyframes pkdeal { from { opacity: 0; transform: translateY(var(--dy, -72px)) rotate(-35deg) scale(.4); } }
  body.fast .pkme .mydice > span.deal, body.fast .pkstrip .oppdice > span.deal { animation-duration: .16s; animation-delay: calc(var(--i, 0) * .05s); }
  .handcard .hname { font: 30px/32px var(--lilita); height: 32px; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .handcard .hname.n2 { font-size: 25px; } .handcard .hname.n3 { font-size: 20px; } .handcard .hname.n4 { font-size: 17px; } /* a long name (a full house) shrinks instead of clipping; the line keeps its height (n4: the cards' "Full house, 7s full of aces") */
  .handcard .hhint { font: 16px/1.25 var(--lilita); color: #5a4d2e; min-height: 2.5em; } /* (two lines' room on every street, the river's empty one too: the card doesn't change height from street to street) */
  .handcard .strength { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; }
  .strength .slbl { font: 800 13px/1 var(--nunito); letter-spacing: .12em; text-transform: uppercase; color: #6b5a2a; flex: 0 0 auto; }
  .strength .segs { display: flex; gap: 4px; flex: 1 1 auto; min-width: 0; }
  .strength .segs i { flex: 1 1 0; height: 26px; border-radius: 6px; background: #E6D8B2; border: 2px solid #B8A57A; box-sizing: border-box; }
  .strength .segs i.on { border-color: var(--ink2); }
  .strength .segs i.on:nth-child(1) { background: #E8505B; } .strength .segs i.on:nth-child(2) { background: #F0783F; } .strength .segs i.on:nth-child(3) { background: #F7A23A; } .strength .segs i.on:nth-child(4) { background: #F5C93A; } .strength .segs i.on:nth-child(5) { background: #C9DB4A; }
  .strength .segs i.on:nth-child(6) { background: #9ADF5E; } .strength .segs i.on:nth-child(7) { background: #7ED957; } .strength .segs i.on:nth-child(8) { background: #5CC86A; } .strength .segs i.on:nth-child(9) { background: #3DB55F; } .strength .segs i.on:nth-child(10) { background: #23994F; }
  .strength .sword { font: 20px/1 var(--lilita); min-width: 4.4em; text-align: right; flex: 0 0 auto; }
  .strength .sword.weak { color: #C8323C; } .strength .sword.fair { color: #B8780F; } .strength .sword.strong { color: #23994F; } .strength .sword.monster { color: #0E7A3A; }
  .pkact { margin-top: 10px; height: var(--acth, 68px); display: flex; flex-direction: column; } /* (one height for the buttons, a note and the auto actions: the hand card above never moves) */
  .pkact .row { display: flex; gap: 10px; flex: 1 1 0; min-height: 0; }
  .pkact .row .big { flex: 1 1 0; min-width: 0; min-height: 0; padding: 12px 8px 3px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; font-family: var(--lilita); font-weight: 400; font-size: 25px; line-height: 1; border: 4px solid var(--ink2); border-radius: 16px; box-shadow: 0 5px 0 var(--ink2), inset 0 -4px 0 rgba(0,0,0,.16), inset 0 3px 0 rgba(255,255,255,.3); transition: transform 80ms, box-shadow 80ms; color: #fff; text-shadow: 1px 1px 0 var(--ink2), -1px -1px 0 var(--ink2), 1px -1px 0 var(--ink2), -1px 1px 0 var(--ink2); }
  .pkact .row .big:hover:not(:disabled) { filter: none; } .pkact .row .big:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 2px 0 var(--ink2), inset 0 -4px 0 rgba(0,0,0,.16), inset 0 3px 0 rgba(255,255,255,.3); }
  .pkact .row .big .sub { font: 16px/1 var(--lilita); text-shadow: none; opacity: .95; white-space: nowrap; max-width: 100%; overflow: hidden; flex: 0 0 auto; padding: 1px 2px; } /* (one line: a long one shrinks, fitSubs; never squeezed by the button's height; the padding keeps the outline of the first and last letters inside the clip) */
  .pkact .row .big.fold { background: #5B6B7A; flex: 0 0 27%; text-shadow: none; }
  .pkact .row .big.fold.armed { background: #E8505B; } /* (the first tap on Fold: red, "Fold?"; the second folds) */
  .pkact .row .big:not(:has(.sub)) { padding: 4px 8px 9px; } /* (one word, Fold or Check: centred on the face above its darker bottom edge, not pushed down like a two-line label) */
  .pkact .row .big.call { background: #3FA9F5; } .pkact .row .big.call .sub { color: #FFF4D6; }
  .pkact .row .big.raise { background: #7ED957; } .pkact .row .big.raise .sub { color: #FFF4D6; }
  .pkact .row .big.check { background: #3FA9F5; } .pkact .row .big.bet { background: #7ED957; }
  .pkact .row .big.bet .sub, .pkact .row .big.raise .sub, .pkact .row .big.moment .sub, .pkact .row .big.next .sub, .pkact .row .big.show .sub, .pkact .row .big.rebuy .sub { color: #fff; opacity: 1; text-shadow: 1px 1px 0 var(--ink2), -1px -1px 0 var(--ink2), 1px -1px 0 var(--ink2), -1px 1px 0 var(--ink2); } /* (white with the label's outline: the lobby's muted .sub grey was lost on the green) */
  .pkact .row .big.next { background: #FFD23F; color: var(--ink2); text-shadow: none; } .pkact .row .big.show { background: #3FA9F5; flex: 0 0 32%; } .pkact .row .big.moment { background: #B57BFF; } .pkact .row .big.moment .cam { font-size: .8em; line-height: 1; } .pkact .row .big.moment .lbl1 { line-height: 1; padding-top: 2px; } /* (the camera, smaller, no longer makes the line taller and lifts the words to the top edge) */ .pkact .row .big.rebuy { background: #E8505B; }
  .pkact .auto { display: flex; gap: 10px; flex: 1 1 0; min-height: 0; }
  body.lefty #pkActions .row, body.lefty #pkActions .auto { flex-direction: row-reverse; } /* Left-handed (Settings → Accessibility): Raise, Bet or Call on the left and Fold on the right, the auto actions and the after-hand row mirrored the same way */
  .pkact .auto button { flex: 1 1 0; min-width: 0; min-height: 0; overflow: hidden; display: flex; align-items: center; gap: 8px; padding: 2px 10px; border: 4px solid var(--ink2); border-radius: 16px; box-shadow: 0 5px 0 var(--ink2); background: var(--felt-edge, #06281A); color: #fff; text-align: left; transition: none; } /* (the row's full height, the move buttons' border, radius and drop: Fold / Check / Bet land on the same edges when your turn comes; the felt's darkest shade: the auto actions, the Raise sheet's picks and slider track and the sheet itself wear the host's felt, as the table does) */
  .pkact .auto button:hover:not(:disabled) { filter: none; } .pkact .auto button:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 2px 0 var(--ink2); }
  .pkact .auto button .rad { width: 26px; height: 26px; flex: 0 0 26px; border-radius: 50%; border: 3px solid #D6F2E0; display: grid; place-items: center; box-sizing: border-box; }
  .pkact .auto button.on { background: #FFD23F; color: var(--ink2); }
  .pkact .auto button.on .rad { border-color: var(--ink2); background: #FFF4D6; }
  .pkact .auto button.on .rad::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--ink2); }
  .pkact .auto .atxt { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
  .pkact .auto .atxt b { font: 19px/1.05 var(--lilita); font-weight: 400; white-space: nowrap; } .pkact .auto .atxt small { font: 13px/1.1 var(--lilita); white-space: nowrap; overflow: hidden; max-width: 100%; }
  .pkact .note { text-align: center; font: 17px/1.3 var(--lilita); color: #D6F2E0; flex: 1 1 0; min-height: 0; display: grid; place-items: center; padding: 0 8px; }
  .pkact .note b { color: #FFD23F; }
  /* the Raise sheet: your hand pinned, the amount with − and +, the slider, the quick picks, Cancel and the confirm */
  .pkraise .handcard.mini { margin: 6px 0 14px; padding: 8px 12px; grid-template-columns: auto minmax(0, 1fr) auto; }
  .pkraise .handcard.mini .mydice { --pd: 56px; }
  .pkraise .handcard.mini .hname { font-size: 24px; height: 26px; line-height: 26px; }
  .pkraise .handcard.mini .hpot { text-align: right; font: 17px/1.3 var(--lilita); white-space: nowrap; } .pkraise .handcard.mini .hpot b { font-weight: 400; }
  /* (the amount, the slider and the preset tiles are in sheets.css: craps's sheets use them too) */
  .pkraise .foot .tbtn.main b { font: 28px/1 var(--lilita); font-weight: 400; color: #fff; text-shadow: 2px 2px 0 var(--ink2), -1px -1px 0 var(--ink2), 1px -1px 0 var(--ink2), -1px 1px 0 var(--ink2); }
  .pkraise .foot .tbtn.green { background: #3DD17A; }
  #pkRaiseAmt { font-size: 34px; } .pkraise .pkamt .pkstep:disabled { opacity: .45; } /* (the amount is a display since amounts-and-raises.md: − / +, the slider and the picks set it, on the steps the server takes) */
  #pkRaisePicks { grid-template-columns: repeat(3, minmax(0, 1fr)); } /* (All in, ½ pot, Pot: three across; .pkpicks2 keeps its four for craps' Bet an amount) */
  .sheet.tsh.pkraise, .sheet.tsh.pkranks { height: auto; max-height: calc(var(--app-h, 100dvh) - 36px); }
  .sheet.tsh.pkraise.lifted { border-bottom: 4px solid var(--ink2); border-radius: 28px; } .sheet.tsh.pkraise.lifted .foot { border-radius: 0 0 24px 24px; } /* (lifted by liftRaise: level with the table's Bet / Raise) */
  .sheet.tsh.pkraise, .sheet.tsh.pkraise .foot { background: var(--felt-dark, #0B3D22); } /* (the Raise and Change bet sheets in the host's felt) */
  /* the Hand ranks sheet: nine rows, your rank's row the cream one with the YOU tag */
  .rankhd { display: flex; justify-content: space-between; margin: 12px 20px 4px; font: 800 14px/1 var(--nunito); letter-spacing: .14em; text-transform: uppercase; color: #BFD8C8; }
  .ranklist { display: flex; flex-direction: column; gap: 10px; }
  .rankrow { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; padding: 10px 14px 10px 10px; background: #06281A; border: 4px solid var(--ink2); border-radius: 18px; color: #fff; }
  .rankrow .rn { font: 22px/1 var(--lilita); color: #BFD8C8; text-align: center; grid-column: 1; grid-row: 1 / 3; }
  .rankrow .rname { display: flex; align-items: center; gap: 10px; font: 23px/1.1 var(--lilita); min-width: 0; grid-column: 2; grid-row: 1; }
  .rankrow .rname small { font: 800 12px/1 var(--nunito); letter-spacing: .1em; text-transform: uppercase; color: #BFD8C8; }
  .rankrow .youtag { font: 800 12px/1 var(--nunito); letter-spacing: .1em; padding: 5px 9px; border-radius: 999px; background: var(--ink2); color: #FFD23F; }
  .rankrow .rdice { display: flex; gap: 6px; --pd: 32px; grid-column: 2; grid-row: 2; } .rankrow .rdice .pdie { border-width: 2px; box-shadow: 0 2px 0 var(--ink2); }
  .rankrow .rch { grid-column: 3; grid-row: 1 / 3; text-align: right; } .rankrow .rch b { display: block; font: 24px/1 var(--lilita); font-weight: 400; } .rankrow .rch small { display: block; margin-top: 4px; font: 800 14px/1 var(--nunito); color: #BFD8C8; }
  .rankrow.you { background: #FFF4D6; color: var(--ink2); } .rankrow.you .rn, .rankrow.you .rch small, .rankrow.you .rname small { color: #6b5a2a; }
  .ranknote { margin: 14px 0 16px; padding: 14px 16px; border: 3px dashed rgba(255,255,255,.35); border-radius: 18px; font: 17px/1.4 var(--lilita); color: #D6F2E0; }
  /* the session sheet's tiles (the scorecard is the craps one's) */
  .pktiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 10px 0 14px; }
  .pktile { background: #06281A; border: 3px solid var(--ink2); border-radius: 16px; padding: 10px 8px; text-align: center; }
  .pktile small { display: block; font: 800 11px/1 var(--nunito); letter-spacing: .1em; text-transform: uppercase; color: #BFD8C8; } .pktile b { display: block; margin-top: 6px; font: 20px/1 var(--lilita); font-weight: 400; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  /* phones: one screen, the felt sized by what is left, the dice by the felt */
  @media (max-width: 680px) {
    .pk .gtop { gap: 6px; } .gtop .pkpill { min-height: 36px; padding: 0 11px; font-size: 15px; } /* (the logo, the pill and two 48px buttons must fit a 360px phone: 124 + 92 + 96 + four gaps) */
    .pkfelt { padding: 10px 8px 8px; margin: 6px 4px; } /* (4px a side: the rail's dark outer edge is drawn outside the felt, and the screen clips past its own edges) */
    .pkfeltmid { --bd: clamp(46px, 28cqh, 88px); gap: clamp(6px, 2.2cqh, 12px); } .pkstatwrap { margin-top: calc(-1 * clamp(6px, 2.2cqh, 12px)); }
    .handcard .mydice { --pd: clamp(50px, 7vh, 68px); }
    .pkstrip .oppdice { --pd: 38px; gap: 5px; } .pkstrip { gap: 7px; } .pkstrip .name { gap: 4px; } .player.pkstrip .line { font-size: 1.3rem; line-height: 24px; } .pkboard { top: calc(-1 * clamp(8px, 6cqh, 20px)); } .pkstrip .pkstack { font-size: 1.2rem; } .pkstrip .skilltag { letter-spacing: .04em; padding: 3px 5px; } /* (the name, the tag, the stack and two dice share a phone's width) */
    .pkstatus { font-size: 19px; } .pkreason { font-size: 19px; }
    .pkact { --acth: 64px; } .pkact .row .big { font-size: 23px; }
    .pkhandpill { top: 8px; left: 10px; font-size: 11px; padding: 3px 7px 4px; }
    .gtop .pkpill.long { font-size: 13px; padding: 0 8px; } /* (the logo, the pill and two 48px buttons share a 360px bar) */
  }
  @media (max-height: 760px) {
    .handcard { padding: 8px 10px; gap: 6px 12px; } .handcard .hname { font-size: 26px; height: 28px; line-height: 28px; } .handcard .hhint { font-size: 15px; } .strength .segs i { height: 22px; }
    .pkact { margin-top: 8px; --acth: 60px; } .pkact .row .big { font-size: 21px; } .pkact .row .big .sub { font-size: 14px; } .pkact .auto .atxt b { font-size: 18px; } .pkact .auto .atxt small { font-size: 12px; }
    .pkme .mehead .bank { font-size: 1.45rem; }
    .pkbetpill { min-height: 32px; font-size: 20px; } .pkbetpill .pkrankword { font-size: 24px; } .pkchips .chip { width: 30px; height: 30px; } .pkchips .chip + .chip { margin-left: -19px; } .pkpot b { font-size: 19px; } .pkstatus { font-size: 17px; } .pkreason { font-size: 17px; }
    .pkdealer { width: 34px; height: 34px; font-size: 19px; bottom: 5px; }
    .handcard .strength.result { min-height: 22px; } .rtag { height: 22px; font-size: 12px; padding: 0 11px; }
  }
  @media (max-height: 700px) {
    .handcard .mydice { --pd: 48px; } .handcard .hname { font-size: 23px; height: 25px; line-height: 25px; } .handcard .hhint { font-size: 14px; } .strength .segs i { height: 18px; } .strength .sword { font-size: 17px; }
    .handcard .strength.result { min-height: 18px; } .rtag { height: 18px; font-size: 10px; padding: 0 9px; letter-spacing: .1em; box-shadow: none; }
    .pkact { --acth: 58px; } .pkact .row .big { font-size: 20px; } .pkact .auto .atxt b { font-size: 17px; } .pkact .auto button .rad { width: 22px; height: 22px; flex-basis: 22px; }
    .pkfeltmid { gap: 5px; } .pkstatwrap { margin-top: -5px; } .pkpot { padding: 4px 14px; } .pkpot b { font-size: 18px; } .pkstrip .oppdice { --pd: 36px; }
  }
  /* narrow phones (after the height rules above, which it must beat): the auto actions one line each */
  @media (max-width: 379px) { .gtop .pkpill { min-height: 34px; padding: 0 9px; font-size: 14px; } .gtop .pkpill.long { font-size: 12px; padding: 0 7px; } .pkhandpill { font-size: 10px; padding: 3px 6px 4px; } .pkact .auto .atxt b { font-size: 16px; } .pkact .auto .atxt small { font-size: 12px; } .pkact .auto button { gap: 6px; padding: 2px 8px; } .pkact .auto button .rad { width: 22px; height: 22px; flex-basis: 22px; } .pkstrip .oppdice { --pd: 26px; gap: 3px; } .pkstrip { gap: 4px; padding-left: 8px; padding-right: 8px; } .pkstrip .name { gap: 3px; } .player.pkstrip .line { font-size: 1.15rem; line-height: 21px; } .pkstrip .pkstack { font-size: 1.05rem; } .pkstrip .skilltag { font-size: 8px; padding: 3px 4px; } }
  /* the fit loop (fitPoker): when the felt's contents still spill over its rail on a phone, each step gives something up */
  .pkfelt.fit-1 .pkfeltmid { --bd: 44px; gap: 4px; } .pkfelt.fit-1 .pkstatwrap { margin-top: -4px; } .pkfelt.fit-1 .pkpot { padding: 3px 12px; } .pkfelt.fit-1 .pkpot b { font-size: 17px; }
  .pkfelt.fit-2 .pkstatus { font-size: 14px; } .pkfelt.fit-2 .pkreason { font-size: 14px; } .pkfelt.fit-2 .pkbanner { font-size: 26px; } .pkfelt.fit-2 .pkbetpill { min-height: 26px; font-size: 17px; } .pkfelt.fit-2 .pkbetpill .pkrankword { font-size: 20px; } .pkfelt.fit-2 .pkchips .chip { width: 24px; height: 24px; font-size: .4rem; } .pkfelt.fit-2 .pkchips .chip + .chip { margin-left: -15px; }
  /* ---------- Red & Black (red-black-poker_1.md): the felt split in two, white dice with coloured pips, the board die's roll across the halves ---------- */
  .pkzone { display: contents; } /* (a plain table: the felt's rows sit straight in its column, exactly as they always did) */
  .rbword { display: none; }
  /* the Red & Black dice wherever a die shows flat (the hand card, the board, the other player's reveal, the Raise sheet, the ranks sheet): a white body, red or black pips; the winner's gold outline as before */
  .pdie.rbr, .pdie.rbb { background: #f5f1e6; box-shadow: 0 3px 0 var(--ink2), inset 0 0 0 1px rgba(0,0,0,.06); }
  .pdie.rbr i { background: #c8102e; } .pdie.rbb i { background: #1b1206; }
  .pdie.rbr.gold, .pdie.rbb.gold { box-shadow: 0 0 0 3px #FFD23F, 0 3px 0 3px var(--ink2); }
  body.cbdice .pdie.rbr { background: #8e0c22; } body.cbdice .pdie.rbr i { background: #fff; } /* Colour-blind dice (Settings → Accessibility): the red dice dark with white pips, the 3D die's rbredcb skin; black stays cream, so the two differ in lightness wherever a die is drawn */
  /* the felt: the green board strip on top (the other player's bet, the three slots), the colour zone under it (RED left, BLACK right, the gold divider, and over it the pot, the status line and your bet in today's order) */
  .pkfelt.rb { padding: 0; overflow: hidden; }
  .pkfelt.rb .pkfeltmid { gap: 0; }
  .pkfelt.rb .pkfeltmid::before { content: none; }
  .pkfelt.rb .pkzone { display: flex; flex-direction: column; align-items: center; width: 100%; min-height: 0; overflow: hidden; position: relative; box-sizing: border-box; }
  .pkfelt.rb .pkzone.top { flex: 0 0 55%; justify-content: center; gap: 12px; padding: 12px 12px 10px; background: radial-gradient(circle at 50% 40%, #2A8A4F 0%, #17603A 80%); border-bottom: 4px solid #0b3a21; }
  body[class*="felt-"]:not(.felt-green) .pkfelt.rb .pkzone.top { background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--felt), #fff 16%) 0%, var(--felt) 80%); border-bottom-color: var(--felt-edge, #0b3a21); } /* (the host's felt takes the strip; the red and black halves stay) */
  .pkfelt.rb .pkzone.bottom { flex: 1 1 45%; justify-content: space-between; gap: 8px; padding: 10px 12px 10px; background: radial-gradient(circle at 50% 45%, #C4283A 0%, #8E1624 78%) left top / 50% 100% no-repeat, radial-gradient(circle at 50% 45%, #2B2B2E 0%, #121214 78%) right top / 50% 100% no-repeat; }
  .pkfelt.rb .pkzone.bottom::before { content: ""; position: absolute; left: calc(50% - 2px); top: 0; bottom: 0; width: 4px; background: #F2C14E; pointer-events: none; } /* the gold divider */
  .pkfelt.rb .rbword { display: block; position: absolute; bottom: 8px; font: 30px/1 var(--marker); letter-spacing: .08em; pointer-events: none; z-index: 1; transform: translateX(-50%); }
  .pkfelt.rb .rbword.red { left: 25%; color: rgba(255,255,255,.28); } .pkfelt.rb .rbword.black { left: 75%; color: rgba(255,255,255,.22); }
  .pkfelt.rb .pkboard { top: 0; } /* (the strip is its own box: the slots sit in its middle under the other player's bet) */
  .pkfelt.rb .pkhandpill { top: 8px; left: 12px; }
  .pkfelt.rb .pkstatwrap { margin-top: 0; padding: 0; } .pkfelt.rb .pkpot { margin-top: 0; }
  .pkfelt.rb .pkboard .slot.rolling { visibility: visible; color: transparent; border-color: #FFF2A8; box-shadow: 0 0 0 4px rgba(255,242,168,.22), 0 0 18px rgba(255,242,168,.55); } /* the next slot to fill glows while its die rolls (a plain table hides it under the tumbling die) */
  @media (max-width: 680px) { .pkfelt.rb { margin: 6px 4px; } .pkfelt.rb .pkzone.top { gap: clamp(6px, 2.2cqh, 12px); padding: clamp(6px, 2cqh, 12px) 8px clamp(6px, 1.8cqh, 10px); } .pkfelt.rb .pkzone.bottom { gap: clamp(4px, 1.6cqh, 8px); padding: clamp(6px, 1.8cqh, 10px) 8px clamp(6px, 1.8cqh, 10px); } .pkfelt.rb .rbword { font-size: 24px; bottom: 5px; } }
  @media (max-height: 700px) { .pkfelt.rb .rbword { font-size: 20px; } }
  .pkfelt.rb.fit-1 .pkzone.top { gap: 4px; padding-top: 6px; padding-bottom: 6px; } .pkfelt.rb.fit-1 .pkzone.bottom { gap: 3px; padding-top: 5px; padding-bottom: 5px; } .pkfelt.rb.fit-1 .pkstatwrap { margin-top: 0; } /* (the fit steps: the strip and the zone each give up their air; --bd and the rest shrink as on a plain table) */
  .pkfelt.rb.fit-2 .rbword { font-size: 16px; bottom: 3px; }
  /* the ranks sheet with Red & Black's thirteen rows: one line each (the number, the name, the coloured example, the chance over the odds), so all thirteen fit a 390×844 phone; narrower or shorter, the list scrolls inside the sheet */
  /* ---------- Cards (poker-cards.md): the Red & Black felt and roll, every item a card (cardface.css's .bjcardt, Blackjack's) ---------- */
  .pkboard.cards { --cw: calc(var(--bd) * .72); gap: 10px; } /* (the three slots card-shaped: a card 72% of a die's width, taller than wide) */
  .pkboard.cards .slot { width: var(--cw); height: calc(var(--cw) * 86 / 60); border-radius: calc(var(--cw) * .17); font-size: calc(var(--cw) * .3); }
  .pkfelt.cards.fit-1 .pkboard.cards { --cw: 44px; gap: 8px; } .pkfelt.cards.fit-2 .pkboard.cards { --cw: 40px; gap: 6px; } /* (the fit steps shrink the dice to 44 px squares; a card keeps more of its width, since the strip has the height: 44 × 63 at fit-1 (360×740), 40 × 57 at fit-2 (375×667), measured with nothing spilling) */
  .handcard .mydice.cards { --cw: calc(var(--pd, 68px) * 60 / 86); gap: 4px; } /* (your two cards where the dice are, as tall as the dice were, so the card's height doesn't change) */
  .handcard .mydice.cards .bjcardt:first-child { --r: -6deg; } .handcard .mydice.cards .bjcardt:last-child { --r: 6deg; } /* (a little tilt apart, as the dice have) */
  .handcard .mydice.cards .bjcardt .pdie { transform: translateX(calc(var(--cw) * .13)); } .handcard .mydice.cards .bjcardt .pdie:last-child { transform: rotate(8deg) translate(calc(var(--cw) * -.03 - 2px), 1px); } /* (Kiril: your cards' dice a hair to the left, 3% of the card's width, both of them; the bottom die keeps the 8° tilt and the -2 px it always had from the hand card's last-child rule, which out-ranked the card's stagger there) */
  .pkstrip .oppdice.cards .bjcardt .pdie { border-width: 1px; box-shadow: 0 1px 0 var(--ink2); } .pkstrip .oppdice.cards .bjcardt .idx { font-size: calc(var(--cw) * .42); top: 0; left: calc(var(--cw) * .05); } /* (Kiril: the other player's revealed or peeked cards are small, so their dice wear a thinner edge and the corner value reads bigger) */
  .pkstrip .oppdice.cards { --cw: calc(var(--pd) * 60 / 86); gap: 5px; } /* (the other player's two face-down cards, the dice's height) */
  .bjcardt.peek { outline: 1px dashed #C4B5FD; outline-offset: -1px; } /* (the admin's peek on a card) */
  .pkroll.pair { flex-direction: column; } .pkroll.pair .face { padding: calc(var(--die, 76px) * .14); gap: calc(var(--die, 76px) * .03); } /* (a card's two dice tumble together, stacked like the card's; the CSS fallback's faces sized by the small dice, as Blackjack's) */
  .pkboard.cards .bjcardt.bjfloat .pdie { animation-name: bjfloat; } /* (a landed board card: its dice float from the line into the stagger, once) */
  .ranklist.cards .rankrow .rdice { --cw: 17px; gap: 3px; } .bjcardt.mini { padding: 0; min-width: 0; border-width: 2px; border-radius: 20%; box-shadow: 0 2px 0 var(--ink2); } .bjcardt.mini .idx { position: static; font-size: calc(var(--cw) * .62); letter-spacing: -.02em; } /* (the ranks sheet's examples: five value cards in their colours, 17 px wide and 24 tall, so a row keeps Red & Black's 38 px and all eleven fit a 390×844 phone; the value alone, since pips can't read at that size) */
  .ranklist.rb.cards { gap: 3px; } .ranklist.cards .rankrow .rch { min-width: 4.4em; } .ranklist.cards .rankrow .rname { font-size: 15px; } .ranklist.cards .rankrow .rname .youtag { margin-left: 4px; } /* (a pixel less between the twelve rows: 717 px in the 390×844 sheet's 720) */
  .ranklist.rb { gap: 4px; }
  .ranklist.rb .rankrow { grid-template-columns: 22px minmax(0, 1fr) auto auto; grid-template-rows: auto; gap: 0 8px; padding: 3px 10px 3px 8px; border-width: 3px; border-radius: 13px; align-items: center; }
  .ranklist.rb .rankrow .rn { grid-row: 1; font-size: 15px; }
  .ranklist.rb .rankrow .rname { grid-column: 2; grid-row: 1; font-size: 16px; gap: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; line-height: 1.2; }
  .ranklist.rb .rankrow .rname .youtag { display: inline-block; vertical-align: middle; margin-left: 6px; font-size: 9px; padding: 2px 5px; }
  .ranklist.rb .rankrow .rdice { grid-column: 3; grid-row: 1; --pd: 19px; gap: 3px; } .ranklist.rb .rankrow .rdice .pdie { border-width: 2px; border-radius: 20%; box-shadow: 0 2px 0 var(--ink2); padding: calc(var(--pd) * .12); }
  .ranklist.rb .rankrow .rch { grid-column: 4; grid-row: 1; min-width: 4.2em; } .ranklist.rb .rankrow .rch b { font-size: 15px; } .ranklist.rb .rankrow .rch small { margin-top: 1px; font-size: 10px; }
  .pkranks.rb .tsnote { font-size: 14px; margin-bottom: 2px; } .pkranks.rb .rankhd { margin: 6px 20px 3px; font-size: 12px; } .pkranks.rb .ranknote { margin: 8px 0 10px; padding: 8px 12px; font-size: 14px; }

/* a watcher's Challenge (or Add) the winner, beside the "Watching A and B" note (watch-friends.md; Blackjack's player-against-player modes wear it too) */
  .pkact .row .note + .big.winner { flex: 0 1 auto; max-width: 58%; flex-direction: row; gap: 6px; padding: 6px 14px 9px; font-size: 20px; }
  .pkact .row .big.winner.duel { background: #FF8A3D; } .pkact .row .big.winner.add { background: #3FA9F5; } .pkact .row .big.winner.sent { background: #5B6B7A; }
  .pkact .row .big.winner .fitw { overflow: hidden; text-overflow: ellipsis; }
  .pkact .row .big.winner svg { width: 20px; height: 20px; flex: 0 0 auto; }
  /* Reduce motion (body.rm): the pot fades rather than slides, the banner and the rank word fade in (the deal-in is left out in poker.js, the board dice lie still in rollAt) */
  body.rm .pkpot.down, body.rm .pkpot.up { animation: rmfadeout .15s ease-out forwards; }
  body.rm .pkbanner, body.rm .pkbetpill .pkrankword { animation: rmfade .15s ease-out both; }
  /* table talk (talk.css): the rows its button crowds, measured at 360, 375 and 390 px: a tighter gap, Fold and Show narrower; the auto actions without their dots (the picked one is still yellow) */
  #pkActions .row:has(> .talkbtn) { gap: 6px; } #pkActions .row:has(> .talkbtn) .big { padding-left: 4px; padding-right: 4px; }
  #pkActions .row:has(> .talkbtn) .big.fold { flex-basis: 22%; } #pkActions .row:has(> .talkbtn) .big.show { flex-basis: 26%; }
  #pkActions .auto:has(> .talkbtn) { gap: 6px; } #pkActions .auto:has(> .talkbtn) button:not(.talkbtn) { padding: 2px 8px; gap: 0; } #pkActions .auto:has(> .talkbtn) button:not(.talkbtn) .rad { display: none; }
  #pkActions .auto:has(> .talkbtn) .atxt b { font-size: 17px; }
  /* ---------- Autoplay (the admin's for now): the ☰ menu's button beside the rig, the pill on the felt's top edge, the red Stop, the settings sheet (craps' #apModal look and blocks) ---------- */
  .pkadmin { display: flex; gap: 10px; margin-top: 12px; } .pkadmin .menurig { margin-top: 0; flex: 1 1 0; min-width: 0; width: auto; padding-left: 8px; padding-right: 8px; white-space: nowrap; }
  .pkadmin .pkautobtn.stop { background: #E8505B; color: #fff; } .pkadmin .pkautobtn.lockd { opacity: .55; }
  #pkOppWrap { position: relative; } .pkautopill { position: absolute; top: calc(100% + 1px); left: 50%; transform: translateX(-50%); z-index: 6; padding: .16rem .75rem; font-size: .68rem; background: #0B2A1A; box-shadow: 0 2px 0 var(--ink2); pointer-events: none; } /* (on the felt's top edge, under the other player's strip: hung from the strip's wrap, since the Red & Black and Cards felts clip what crosses their rail) */
  .pkautopill .pkaico { font-size: 1.25em; line-height: 1; letter-spacing: 0; }
  .pkact .row .big.stopauto { background: #E8505B; color: #fff; } .pkact .row .big.stopauto .sub { color: #fff; opacity: 1; } .pkact .row .big.stopauto:disabled { opacity: .7; }
  #pkAutoModal .tshead { min-height: 52px; } #pkAutoModal .grip { margin-bottom: 2px; }
  #pkAutoModal .tsnote { font-size: 15px; line-height: 1.3; }
  #pkAutoModal .tslbl { margin: 10px 0 6px; }
  #pkAutoModal .pkaopts { gap: 8px; } #pkAutoModal .pkaopts > button { min-height: 44px; padding: 3px 4px; font-size: 18px; line-height: 1.05; }
  #pkAutoModal .aplimits { margin-top: 12px; padding: 10px 12px; }
  #pkAutoModal .aplimits .apstep { display: flex; align-items: center; gap: 8px; margin: 8px 0 0; padding: 0; background: none; border-radius: 0; font: 19px/1 var(--lilita); color: #fff; }
  #pkAutoModal .aplimits .apstep .onoff { gap: 10px; flex: 1 1 auto; min-width: 0; white-space: nowrap; }
  #pkAutoModal .aplimits .apstep .amt { gap: 6px; flex: 0 0 auto; }
  #pkAutoModal .aplimits .apstep .amt button { width: 36px; height: 36px; padding: 0; background: #5B6B7A; color: #fff; border: 3px solid var(--ink2); border-radius: 10px; box-shadow: 0 3px 0 var(--ink2); font: 22px/1 var(--lilita); }
  #pkAutoModal .aplimits .apstep .amt b { display: grid; place-items: center; min-width: 84px; height: 38px; padding: 0 8px; background: #fff; border: 3px solid var(--ink2); border-radius: 12px; font: 22px/1 var(--lilita); font-weight: 400; }
  #pkAutoModal .aplimits .apstep .amt b.loss { color: #C8323C; } #pkAutoModal .aplimits .apstep .amt b.gain { color: #2E9A55; }
  #pkAutoModal .apsum { margin-top: 12px; padding: 9px 12px; text-align: left; font-size: 15px; line-height: 1.3; color: var(--ink2); }
  #pkAutoModal #pkaErr { margin: 8px 0 2px; min-height: 0; }
  @media (max-width: 379px) { #pkAutoModal .aplimits .apstep .amt b { min-width: 72px; font-size: 19px; } #pkAutoModal .aplimits .apstep .amt button { width: 32px; } #pkAutoModal .aplimits .apstep { font-size: 17px; } #pkAutoModal .pkaopts > button { font-size: 16px; } }
  #pkAutoModal .pkaskill { padding-top: 6px; } /* (the skill tiles, pickers.css: room for the lifted tile and its ⓘ under the label) */
  @media (max-height: 760px) { #pkAutoModal .tshead { min-height: 44px; } #pkAutoModal .tsnote { font-size: 14px; } #pkAutoModal .tslbl { margin: 7px 0 4px; } #pkAutoModal .pkaopts > button { min-height: 36px; } #pkAutoModal .aplimits { margin-top: 8px; padding: 8px 12px; } #pkAutoModal .aplimits .apstep { margin-top: 6px; } #pkAutoModal .aplimits .apstep .amt b { height: 34px; } #pkAutoModal .aplimits .apstep .amt button { height: 32px; } #pkAutoModal .apsum { margin-top: 8px; padding: 7px 12px; font-size: 14px; } #pkAutoModal .foot .tbtn { min-height: 52px; } } /* (360×740: the whole sheet on the screen, no scrolling) */
