  /* ---------- table ---------- */
  #table { display: none; }
  .topbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
  .topbar .right { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
  .code { font-family: ui-monospace, Menlo, monospace; font-size: 1.05rem; background: rgba(0,0,0,.35); padding: .35rem .7rem; border-radius: 8px; letter-spacing: .15em; }
  .badge { background: rgba(0,0,0,.35); padding: .35rem .7rem; border-radius: 8px; font-size: .85rem; color: var(--muted); white-space: nowrap; }
  .badge b { color: var(--cream); }
  .conn { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--green); vertical-align: middle; margin-left: 4px; }
  .timer { display: block; font-size: .8rem; color: var(--muted); font-variant-numeric: tabular-nums; }
  .timer.wait { color: #ff8a80; } /* the waiting time, until a second player sits and the roll-off is done */
  /* the table is open: the panel shows only the modes that are on, read-only ("Game modes on"), or nothing at all */
  .modes.set .switch, .modes.set .req, .modes.set .mrow:not(.on) { display: none !important; }
  .modes.set .mrow.on { border-color: rgba(230,184,76,.35); }
  .joinrow { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-top: 1px dashed rgba(255,255,255,.08); } .joinrow:first-child { border-top: 0; }
  .joinrow .mico { font-size: 1.4rem; width: 32px; text-align: center; flex: 0 0 32px; } .joinrow .txt { min-width: 0; } .joinrow b { display: block; } .joinrow small { color: var(--muted); display: block; font-size: .78rem; line-height: 1.35; } .joinrow small.set { color: var(--gold); }
  .tutor { color: #fff; font-size: .95rem; line-height: 1.45; max-width: 540px; margin: 0 auto 12px; text-shadow: 0 1px 3px rgba(0,0,0,.65); } .tutor b { color: var(--gold); }
  .admlist { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; max-height: 260px; overflow-y: auto; }
  .admrow { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: .85rem; padding: 4px 8px; background: rgba(0,0,0,.2); border-radius: 8px; } .admrow button { padding: .3rem .6rem; font-size: .75rem; }
  .nums { margin-top: 8px; font-size: .82rem; color: var(--muted); line-height: 1.45; } .nums b { color: var(--cream); }
  .numtab { border-collapse: collapse; margin-top: 4px; width: 100%; } .numtab th, .numtab td { text-align: left; padding: 3px 6px; font-size: .78rem; } .numtab th { color: var(--muted); font-weight: 600; }
  .conn.off { background: var(--red); }

  .bubble { position: absolute; font-size: 2.2rem; line-height: 1; pointer-events: none; z-index: 8; animation: floatup 2.8s ease-out forwards; filter: drop-shadow(0 4px 6px rgba(0,0,0,.5)); }
  @keyframes floatup { 0% { transform: translateY(12px) scale(.5); opacity: 0; } 15% { transform: translateY(0) scale(1.15); opacity: 1; } 65% { opacity: 1; } 100% { transform: translateY(-56px) scale(1); opacity: 0; } }
  #momentBox { margin-top: 8px; } #momentBox button { padding: .45rem .9rem; font-size: .82rem; } /* (the felt's moment box only: as a bare .moment it also pushed every Share button, class "big moment", 8 px down its action row) */
  .player .pid { font-size: .72rem; color: var(--muted); font-weight: 600; font-family: ui-monospace, Menlo, monospace; }
  .player .fr { padding: .3rem .6rem; font-size: .72rem; border-radius: 999px; }
  .player .fr.is { background: rgba(63,185,122,.2); color: var(--green); cursor: default; }

  .seat { margin-top: 12px; }
  .seat .hdr { font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 6px; }
  .player { background: var(--card); border-radius: 14px; padding: 12px 14px; position: relative; border: 2px solid transparent; }
  .player.me { border-color: rgba(230,184,76,.55); }
  .player .top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
  .player .tag { position: absolute; top: -10px; right: 12px; background: var(--gold); color: var(--ink); font-size: .68rem; font-weight: 800; padding: 2px 8px; border-radius: 999px; letter-spacing: .08em; }
  .player .name { font-weight: 800; font-size: 1.05rem; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
  .player .name .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
  .player .name .dot.off { background: var(--red); }
  .player .hold { font-size: .78rem; color: #4fc3f7; margin-top: 4px; }
  .player .owner { font-size: .7rem; color: var(--gold); font-weight: 600; letter-spacing: .05em; }
  .player .bank { font-size: 1.7rem; font-weight: 900; color: #fff; margin: 4px 0 2px; }
  .player .stats { display: flex; gap: 12px; font-size: .82rem; color: var(--muted); flex-wrap: wrap; }
  .player .stats b { color: var(--cream); }
  .net.pos { color: var(--green) !important; } .net.neg { color: var(--red) !important; }
  .player .status { margin-top: 6px; font-size: .8rem; min-height: 1.2em; color: var(--gold); }
  .player.empty { opacity: .55; display: flex; align-items: center; justify-content: center; font-style: italic; color: var(--muted); min-height: 120px; text-align: center; }
  .player h3 { margin: 12px 0 6px; font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }

  /* ---------- chips ---------- */
  .rack { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; min-height: 30px; align-items: center; }
  .stack { position: relative; width: 52px; height: 58px; }
  .stack .chip { position: absolute; left: 0; }
  .stack .cnt { position: absolute; right: -4px; bottom: -2px; background: var(--ink); color: #fff; font-size: .7rem; font-weight: 800; padding: 1px 6px; border-radius: 999px; border: 1px solid rgba(255,255,255,.25); }
  .stack.clickable { cursor: pointer; }
  .stack.clickable:hover .chip { transform: translateY(-3px); }
  .chip {
    width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-size: .78rem; color: #fff;
    background:
      radial-gradient(circle at center, var(--chip) 0 51%, var(--ring, var(--chip)) 51.5% 58%, transparent 59%),
      repeating-conic-gradient(from 0deg, var(--insert, #fff) 0 18deg, var(--chip) 18deg 60deg);
    box-shadow: 0 2px 0 rgba(0,0,0,.35), inset 0 0 0 2px rgba(0,0,0,.15); transition: transform .12s;
    text-shadow: 0 1px 1px rgba(0,0,0,.4); user-select: none; -webkit-user-select: none;
  }
  .chip.d1 { --chip: var(--c1); color: #333; text-shadow: none; } .chip.d5 { --chip: var(--c5); } .chip.d25 { --chip: var(--c25); }
  .chip.d100 { --chip: var(--c100); } .chip.d500 { --chip: var(--c500); } .chip.d1000 { --chip: var(--c1000); --ring: #FFFFFF; }
  .chip.d5000 { --chip: var(--c5000); --ring: #FFFFFF; } .chip.d10000 { --chip: var(--c10000); --ring: #FFFFFF; } .chip.d25000 { --chip: var(--c25000); --ring: #FFFFFF; }
  .chip.d100000 { --chip: var(--c100000); --ring: #FFFFFF; } .chip.d500000 { --chip: var(--c500000); --ring: #FFFFFF; }
  .chip.d1000000 { --chip: var(--c1000000); --ring: #F0C24B; color: #FFF4D6; text-shadow: 0 1px 1px rgba(0,0,0,.6); }
  .chip.d10000000 { --chip: var(--c10000000); --ring: #F0C24B; } .chip.d50000000 { --chip: var(--c50000000); --ring: #F0C24B; } .chip.d100000000 { --chip: var(--c100000000); --ring: #F0C24B; }
  .chip.d1000000000 { --chip: var(--c1000000000); --ring: #F0C24B; --insert: #E6B84C; color: #F7D46A; text-shadow: 0 1px 0 #3a0a10, 0 0 2px #3a0a10; }
  .chip.d1000, .chip.d10000, .chip.d100000000 { text-shadow: 0 1px 1px rgba(0,0,0,.55), 0 0 2px rgba(0,0,0,.45); } /* (white on the light chips: a soft dark shadow keeps it readable) */
  .chip.d100000, .chip.d500000, .chip.d10000000, .chip.d50000000, .chip.d100000000 { font-size: .68rem; } .chip.sm.d100000, .chip.sm.d500000, .chip.sm.d10000000, .chip.sm.d50000000, .chip.sm.d100000000 { font-size: .52rem; }
  .chip.sm { width: 34px; height: 34px; font-size: .6rem; }
  .betspot { margin-top: 10px; border: 2px dashed rgba(255,255,255,.25); border-radius: 12px; padding: 8px 10px; min-height: 58px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
  .betspot .label { font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; width: 100%; }
  .betspot .amt { margin-left: auto; font-weight: 900; font-size: 1.1rem; }
  .betspot.ready { border-color: var(--green); border-style: solid; }
  .betspot .quick { margin-left: 2px; height: 34px; padding: 0 10px; border-radius: 10px; background: #5B6B7A; color: #fff; border: 3px solid var(--ink2); font-family: var(--lilita); font-size: .9rem; font-weight: 400; letter-spacing: .02em; flex: 0 0 auto; }
  /* the quick bet sheet: a typed amount, a slider and presets; the dealer breaks the amount into chips */
  .amtslide { width: 100%; margin: 12px 0 2px; accent-color: var(--gold); }
  .presets { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; } .presets button { flex: 1 1 30%; padding: .55rem .4rem; font-size: .85rem; background: rgba(255,255,255,.12); color: var(--cream); white-space: nowrap; }
  .presets button:disabled { opacity: .4; }

  /* ---------- felt ---------- */
  .felt { position: relative; display: flex; flex-direction: column; align-items: center; background: rgba(0,0,0,.18); border: 6px solid var(--rail); border-radius: 120px / 60px; padding: 16px 20px 14px; text-align: center; min-height: 230px; --die: 84px;
    box-shadow: 0 0 0 4px var(--ink2), 0 5px 0 4px var(--ink2), inset 0 0 0 3px var(--ink2); } /* the rail: ink outside it and a bottom edge, ink inside it around the felt */
  .felt::before { content: ""; position: absolute; inset: -6px; border-radius: inherit; pointer-events: none; box-shadow: inset 0 3px 0 rgba(255,255,255,.13); } /* the faint highlight along the top of the rail */
  .banner { font-family: var(--lilita); font-weight: 400; font-size: 21px; line-height: 1.25; text-shadow: 0 2px 2px rgba(0,0,0,.55); position: relative; z-index: 2; max-width: 100%; }
  /* the felt since the cleanup (craps-table-cleanup.md §4, the poker felt): their bet, the point label above the dice, the dice, the pot alone in poker's cream pill (the modes' pucks beside it), the status line in two lines' room (poker's), your bet */
  .ptrow { display: flex; justify-content: center; align-items: center; gap: 8px; min-height: 40px; position: relative; z-index: 2; } /* (the point label, and the Autopilot pill beside it while a run goes: no row of its own) */
  .potrow { display: flex; justify-content: center; align-items: center; gap: 8px; flex-wrap: nowrap; width: 100%; position: relative; z-index: 2; } .potrow.chipsout .pucks { display: none; } /* (the modes' pucks beside the pot while they fit its one line; otherwise they ride in the round card) */
  .potrow .pucks { margin-top: 0; gap: 6px; flex-wrap: nowrap; flex: 0 0 auto; } /* (one line: when it doesn't fit beside the pot, placeChips moves it into the round card) */
  .crpot { 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); white-space: nowrap; }
  .crpot small { font: 800 11px/1 var(--nunito); letter-spacing: .14em; text-transform: uppercase; color: #6b5a2a; } .crpot b { font: 20px/1 var(--lilita); font-weight: 400; }
  .crpot.empty { visibility: hidden; }
  .statwrap { display: flex; align-items: center; justify-content: center; width: 100%; height: 53px; margin-top: 8px; overflow: hidden; position: relative; z-index: 2; } /* (two lines' room always, the words centred: fitStatus steps long ones down) */
  .banner.win { color: #7ED957; } .banner.lose { color: #FF8A8A; }
  .felt .total, .felt .history, .felt .sideresults { display: none; } /* (the total reads off the flat dice; the round's history and the side results are the round card's and the status line's) */
  .felt.dimdice .dice { opacity: .45; }
  .felt .dicelabels { min-height: 1.3em; margin-top: 0; line-height: 1.3; white-space: nowrap; } .felt .dicelabels span { display: flex; justify-content: center; gap: 4px; min-width: 0; } .felt .dicelabels i { font-style: normal; overflow: hidden; text-overflow: ellipsis; } /* (the roll-off's names on one line under each die, the row kept while empty: the board never moves for them) */ /* (above the dice canvas: a tumbling die never draws over the text) */

  .banner.don { color: #ffb02e; }
  .dice { display: flex; justify-content: center; gap: 30px; margin: 106px 0 14px; } /* the room above the dice is the tumble's: a 100 px die leaping its full 70 px reaches 106 px above its box (dice3d.js reachAbove), so the banner sits clear of it at every moment; the felt's padding (96 / 90 before the dice grew and the tumble got its room) paid for it, so the felt's height is what it was */
  .scene { width: var(--die, 76px); height: var(--die, 76px); --h: calc(var(--die, 76px) / 2); perspective: 520px; perspective-origin: 50% 40%; }
  .scene.bounce { animation: bounce .9s cubic-bezier(.3,.7,.3,1); }
  @keyframes bounce { /* (--leap, set by the CSS fallback per throw, is the 70 px leap or what the room above the dice allows) */
    0% { transform: translateY(calc(var(--leap, 70px) * -1)) translateX(calc(-30px * var(--sway, 1))); } 55% { transform: translateY(calc(var(--leap, 70px) * 6 / 70)) translateX(calc(8px * var(--sway, 1))); }
    75% { transform: translateY(calc(var(--leap, 70px) * -10 / 70)) translateX(0); } 100% { transform: translateY(0); }
  }
  .scene.pending { opacity: .3; filter: grayscale(.4); }
  /* the speed switch inside the rail at the very bottom of the felt, host only: a segmented pick (1x · 2x · insta,
     exactly one lit: blue, gold, red). Flat colours, no transition or glow. */
  .fastrow { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; align-items: center; z-index: 3; pointer-events: none; }
  .speedseg { pointer-events: auto; display: inline-flex; border-radius: 999px; background: rgba(0,0,0,.42); border: 3px solid var(--ink2); overflow: hidden; }
  .speedseg .seg { font-size: .7rem; font-weight: 800; letter-spacing: .08em; line-height: 1; padding: .3rem .6rem; border: 0; border-radius: 0; background: transparent; color: rgba(255,255,255,.55); box-shadow: none; transition: none; }
  .speedseg .seg + .seg { border-left: 2px solid var(--ink2); }
  .speedseg .seg, .sheet .xclose { position: relative; } .speedseg .seg::after, .sheet .xclose::after { content: ""; position: absolute; inset: -10px -4px; } /* a 40 px hit area for a 21 px control, invisible */
  .speedseg .seg:hover, .speedseg .seg:active { filter: none; transform: none; }
  .speedseg .seg.on.s1 { background: #5bbcff; color: #06283d; }
  .speedseg .seg.on.s2 { background: var(--gold); color: #2a1d00; }
  .speedseg .seg.on.s3 { background: var(--red); color: #fff; }
  .speedseg.locked .seg:not(.on) { opacity: .55; }
  /* the admin's "insta round" pill, beside the speed switch but its own thing (admin mode only): one tap throws the whole round */
  .fastrow { gap: 8px; }
  .instaround { pointer-events: auto; font-size: .7rem; font-weight: 800; letter-spacing: .08em; line-height: 1; padding: .3rem .6rem; border-radius: 999px; background: rgba(0,0,0,.42); border: 3px solid var(--ink2); color: rgba(220,190,255,.85); box-shadow: none; transition: none; }
  .instaround.on { background: #8e44ad; color: #fff; }
  .instaround:hover, .instaround:active { filter: none; transform: none; }
  /* Roll: a tap rolls when you let go; held, it auto rolls (the handler). No callout, zoom or selection on a long press. */
  #rollBtn { touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
  .actions .big .sub, #rollBtn .sub { display: block; margin: 0; color: inherit; font-size: .62em; font-weight: 600; opacity: .72; letter-spacing: 0; line-height: 1.2; } /* a button's second line (not the lobby's subtitle, which shares the class) */
  #rollBtn.holding { box-shadow: 0 5px 0 var(--ink2), inset 0 0 0 4px rgba(255,255,255,.85), inset 0 -4px 0 rgba(0,0,0,.16); } /* the held-Roll ring, over the ink edge */
  /* an automatic throw (Roll held down, or the computer's): the dice swell and settle, well inside the pace between throws, so nothing waits on it */
  .dice.pulse { animation: dicepulse .32s ease-out; }
  @keyframes dicepulse { 0% { transform: scale(1); } 40% { transform: scale(1.12); } 100% { transform: scale(1); } }
  body.fast .scene.bounce { animation-duration: .45s; }
  body.fast .cube { transition-duration: .475s; }
  body.fast .coinbox.toss { animation-duration: .7s; }
  body.fast .coin { transition-duration: .7s; }
  body.fast .rps .hand.shake .big { animation-duration: .45s; }
  .dicelabels { display: flex; justify-content: center; gap: 30px; margin-top: 4px; font-size: .8rem; color: var(--muted); }
  .dicelabels span { width: var(--die, 76px); text-align: center; } .dicelabels b { color: var(--cream); }
  .cube { width: 100%; height: 100%; position: relative; transform-style: preserve-3d; transition: transform .95s cubic-bezier(.2,.75,.25,1); transform: rotateX(-10deg) rotateY(12deg); }
  /* The dice (table-polish.md Part C): solid cubes with rounded corners, like real dice. Each face is rounded (18% of the
     die) and shaded toward its edges so the corners read as rounded; three body-coloured planes through the cube's centre
     (XY, XZ, YZ, the full size of the die) fill it, so a rounded corner never shows the inside or the felt mid-tumble.
     One variable per skin (--die-body, --die-pip, --die-edge) drives the faces, the core and the pips. */
  .dice { --die-body: #fbfbf7; --die-pip: var(--ink); --die-edge: rgba(0,0,0,.2); }
  .face {
    position: absolute; inset: 0; background: var(--die-body); border-radius: 18%; backface-visibility: hidden; -webkit-backface-visibility: hidden;
    display: grid; grid-template-columns: repeat(3,1fr); grid-template-rows: repeat(3,1fr); padding: 10px; gap: 2px;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,.1), inset 0 0 calc(var(--die, 76px) * .16) var(--die-edge), inset calc(var(--die, 76px) * -.04) calc(var(--die, 76px) * -.04) calc(var(--die, 76px) * .1) rgba(0,0,0,.1);
  }
  .cube .core { position: absolute; inset: 0; background: var(--die-body); } /* the hidden core: three planes through the centre */
  .cube .core.cz { transform: translateZ(0); } .cube .core.cx { transform: rotateY(90deg); } .cube .core.cy { transform: rotateX(90deg); }
  .face .pip { width: 76%; height: 76%; place-self: center; border-radius: 50%; background: var(--die-pip); visibility: hidden; }
  .face .pip.on { visibility: visible; }
  .f1 { transform: translateZ(var(--h)); } .f6 { transform: rotateY(180deg) translateZ(var(--h)); }
  .f2 { transform: rotateY(90deg) translateZ(var(--h)); } .f5 { transform: rotateY(-90deg) translateZ(var(--h)); }
  .f3 { transform: rotateX(90deg) translateZ(var(--h)); } .f4 { transform: rotateX(-90deg) translateZ(var(--h)); }
  /* The dice in 3D (public/dice3d.js, three.js): one WebGL canvas laid over the dice area draws both dice as real rounded
     bodies; the CSS cubes above keep the layout and are the fallback (no WebGL, a lost context, "Force CSS dice" in the
     admin console). The canvas reaches past the box for the bounce and takes no taps. */
  .dice { position: relative; }
  .dicegl { position: absolute; z-index: 0; pointer-events: none; display: block; }
  .dice.gl .cube { display: none; } /* out of painting altogether: visibility alone left the lit pips (visibility: visible) showing through at the landing spot while the 3D die bounced */
  .diepv.img { padding: 0 !important; background: none !important; box-shadow: none !important; border-radius: 0 !important; display: block; object-fit: contain; } /* a preview rendered by the 3D dice, a plain image */
  .total { font-size: 1rem; color: var(--muted); min-height: 1.6rem; }
  .total b { color: #fff; font-size: 1.5rem; }
  .pucks { display: flex; justify-content: center; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
  .puck { border-radius: 999px; padding: .35rem .8rem; font-weight: 800; font-size: .85rem; letter-spacing: .06em; background: rgba(255,255,255,.12); border: 3px solid var(--ink2); }
  .puck.pot { background: var(--gold); color: var(--ink); }
  /* the point label (table-polish.md Part B): "COME-OUT ROLL" in grey, or the point in gold with a small POINT label and
     the number big; it pops once when a point is set (half as long at 2x, not at all at insta); a polite live region */
  .pucks { align-items: center; }
  .puck.ptlbl { background: #3A4654; color: #fff; display: inline-flex; align-items: center; gap: .3em; white-space: nowrap; }
  .puck.ptlbl.on { background: #F2C14E; color: var(--ink2); }
  .puck.ptlbl small { font-size: .72em; letter-spacing: .1em; font-weight: 800; }
  .puck.ptlbl b { font-size: 1.15em; line-height: 1; font-weight: 900; }
  .puck.ptlbl .sep { opacity: .55; font-size: .8em; }
  .puck.ptlbl.pop { animation: ptpop .3s ease-out; }
  @keyframes ptpop { 0% { transform: scale(1); } 45% { transform: scale(1.12); } 100% { transform: scale(1); } }
  body.fast .puck.ptlbl.pop { animation-duration: .15s; }
  .puck.don { background: linear-gradient(90deg, #ff6a00, #ffb02e); color: #2b1200; }
  .puck.side { background: linear-gradient(90deg, #1e88e5, #4fc3f7); color: #06233a; }
  .history { margin-top: 8px; font-size: .8rem; color: var(--muted); }

  /* coin */
  .coinwrap { display: none; justify-content: center; margin: 16px 0 10px; perspective: 600px; }
  .coinwrap.show { display: flex; }
  .coinbox { width: 96px; height: 96px; }
  .coinbox.toss { animation: toss 1.4s cubic-bezier(.3,.7,.3,1); }
  @keyframes toss { 0% { transform: translateY(0); } 40% { transform: translateY(-80px); } 100% { transform: translateY(0); } }
  .coin { width: 100%; height: 100%; position: relative; transform-style: preserve-3d; transition: transform 1.4s cubic-bezier(.2,.7,.2,1); }
  .coin .side { position: absolute; inset: 0; border-radius: 50%; backface-visibility: hidden; -webkit-backface-visibility: hidden; display: grid; place-items: center; font-weight: 900; font-size: 2.1rem; color: #5a3b00;
    background: radial-gradient(circle at 35% 30%, #fff1a8, #e6b84c 55%, #b8862b); box-shadow: inset 0 0 0 4px rgba(120,80,0,.35), inset 0 0 0 7px rgba(255,240,180,.35), 0 8px 18px rgba(0,0,0,.4); }
  .coin .tails { transform: rotateY(180deg); }
  .coin.pending .side { filter: grayscale(.5) opacity(.55); }
  .coinlabel { font-size: .85rem; color: var(--muted); margin-top: 6px; }

  /* rock paper scissors */
  .rps { display: none; justify-content: center; gap: 28px; margin: 14px 0 6px; }
  .rps.show { display: flex; }
  .rps .hand { width: 120px; background: rgba(0,0,0,.3); border-radius: 14px; padding: 10px 6px; }
  .rps .hand .big { font-size: 2.6rem; line-height: 1.2; min-height: 3rem; }
  .rps .hand .who { font-size: .8rem; color: var(--muted); }
  .rps .hand.win { outline: 2px solid var(--green); }
  .rps .hand.shake .big { animation: shake .9s ease-in-out; }
  @keyframes shake { 0%, 100% { transform: translateY(0); } 20%, 60% { transform: translateY(-14px); } 40%, 80% { transform: translateY(0); } }

  /* ---------- mode panel ---------- */
  .modes {
    position: fixed; right: 14px; top: 50%; transform: translateY(-50%); width: 184px; z-index: 5; max-height: calc(100vh - 28px); overflow-y: auto;
    background: rgba(0,0,0,.5); border: 1px solid rgba(255,140,0,.35); border-radius: 16px; padding: 12px 8px;
    display: flex; flex-direction: column; align-items: center; gap: 10px; backdrop-filter: blur(4px);
  }
  .modes > * { flex-shrink: 0; max-width: 100%; } /* the panel scrolls when it's taller than the screen; its rows never squash */
  .modes { overflow-x: hidden; scrollbar-width: none; -ms-overflow-style: none; } /* scrolls down without a visible bar, never sideways */
  .modes::-webkit-scrollbar { display: none; }
  .modes .flame span { display: block; }
  .modes .flame {
    font-weight: 900; text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; line-height: 1.15; text-align: center;
    background: linear-gradient(180deg, #fff3b0 0%, #ffb02e 40%, #ff6a00 70%, #ff2d00 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 6px rgba(255,120,0,.55));
  }
  .modes.off .flame { filter: grayscale(1) opacity(.45); }
  .modes.on .flame { animation: flicker 1.4s infinite alternate; }
  @keyframes flicker { from { filter: drop-shadow(0 0 4px rgba(255,120,0,.5)); } to { filter: drop-shadow(0 0 11px rgba(255,80,0,.95)); } }
  .switch { position: relative; width: 54px; height: 30px; display: block; cursor: pointer; }
  .switch input { opacity: 0; width: 0; height: 0; position: absolute; }
  .switch .track { position: absolute; inset: 0; background: rgba(255,255,255,.18); border-radius: 999px; transition: background .2s; }
  .switch .knob { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 2px 4px rgba(0,0,0,.4); }
  .switch input:checked + .track { background: linear-gradient(90deg, #ff6a00, #ffb02e); }
  .switch input:checked + .track .knob { transform: translateX(24px); }
  .modes.locked .switch { cursor: default; opacity: .9; }
  .modes .methods { display: flex; flex-direction: column; gap: 6px; width: 100%; }
  .modes .methods button { background: rgba(255,255,255,.08); color: var(--cream); padding: 6px 4px; border-radius: 10px; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: .7rem; font-weight: 700; border: 2px solid transparent; }
  .modes .methods button .ico { font-size: 1.25rem; line-height: 1; }
  .modes .methods button.active { border-color: #ffb02e; background: rgba(255,140,0,.18); }
  .modes.off .methods button { opacity: .45; }
  .modes.locked .methods button { cursor: default; }
  .modes .who { font-size: .66rem; color: var(--muted); text-align: center; text-transform: uppercase; letter-spacing: .08em; }
  @media (max-width: 1240px) {
    .modes { position: static; transform: none; width: auto; max-height: none; flex-direction: row; justify-content: center; flex-wrap: wrap; margin: 12px 0 0; padding: 10px 12px; gap: 12px; }
    .modes > #modesWho { flex-basis: 100%; text-align: center; margin-bottom: -4px; } /* its own line above Double or Nothing */
    .modes .flame { font-size: .85rem; line-height: 1; }
    .modes .flame span { display: inline; }
    .modes .methods { flex-direction: row; width: auto; }
    .modes .methods button { flex-direction: row; gap: 6px; padding: 6px 10px; }
  }

  /* ---------- extra modes ---------- */
  .modes .flame.clicky { cursor: pointer; }
  .paylevel { display: flex; gap: 3px; width: 100%; background: rgba(0,0,0,.3); border-radius: 10px; padding: 3px; }
  .paylevel button { flex: 1; padding: 5px 2px; font-size: .66rem; border-radius: 8px; background: transparent; color: var(--muted); font-weight: 700; letter-spacing: .02em; }
  .paylevel button.active { background: var(--gold); color: var(--ink); }
  .paylevel button.info { flex: 0 0 26px; font-size: .8rem; }
  .paylevel button:disabled { opacity: .7; cursor: default; }
  .paylevel button.active:disabled { opacity: 1; }
  @media (max-width: 1240px) { .paylevel { width: auto; min-width: 260px; } .paylevel button { font-size: .78rem; padding: 6px 10px; } }
  .modelist { display: grid; grid-template-columns: 1fr; gap: 6px; width: 100%; }
  .mrow { display: flex; align-items: center; gap: 6px; min-width: 0; background: rgba(255,255,255,.06); border-radius: 10px; padding: 4px 6px 4px 4px; border: 1px solid transparent; }
  .mrow.on { border-color: rgba(230,184,76,.5); background: rgba(230,184,76,.1); }
  .mrow.blocked { opacity: .45; } .mrow.blocked .switch, .mrow.blocked .switch input:disabled + .track { cursor: not-allowed; } /* a mode another mode makes impossible */
  .mrow .mname { flex: 1; min-width: 0; background: transparent; color: var(--cream); padding: 4px 4px; border-radius: 8px; text-align: left; display: flex; align-items: center; gap: 6px; font-size: .7rem; font-weight: 700; line-height: 1.15; }
  .mrow .mname:hover { background: rgba(255,255,255,.08); }
  .mrow .mname .mico { font-size: 1.05rem; line-height: 1; }
  .mrow .mname small { display: block; color: var(--muted); font-weight: 500; font-size: .62rem; }
  .mrow .mname .txt { min-width: 0; overflow-wrap: anywhere; }
  @media (max-width: 1240px) { .modelist { grid-template-columns: repeat(3, 1fr); } .mrow .mname { font-size: .78rem; } }
  .switch.sm { width: 40px; height: 22px; flex: 0 0 auto; }
  .switch.sm .knob { width: 16px; height: 16px; top: 3px; left: 3px; }
  .switch.sm input:checked + .track .knob { transform: translateX(18px); }
  .switch.sm input:checked + .track { background: linear-gradient(90deg, #e6b84c, #f5d78a); }
  .switch input:disabled + .track { cursor: default; }
  .puck.jackpot { background: linear-gradient(90deg, #f6d365, #fda085); color: #3a1f00; }
  .puck.series { background: linear-gradient(90deg, #c3cfe2, #f5f7fa); color: #1a2333; }
  .puck.blinds { background: linear-gradient(90deg, #a18cd1, #fbc2eb); color: #2a1340; }
  .puck.hand { background: linear-gradient(90deg, #ff9966, #ff5e62); color: #2b0a00; }
  .puck.clock { background: rgba(0,0,0,.45); color: #fff; min-width: 74px; }
  .puck.clock.urgent { background: var(--red); animation: pulse .6s infinite alternate; }
  @keyframes pulse { from { transform: scale(1); } to { transform: scale(1.06); } }
  .status .tick { display: inline-block; margin-left: 6px; font-weight: 800; color: #fff; background: rgba(0,0,0,.4); padding: 0 7px; border-radius: 999px; }
  /* the turn time's ring (Kiril's ask: never the seconds): while a seat's time counts down, its yellow outline is this ring over the border, draining clockwise
     from the top middle (--tp the share of the time left, redrawn every frame by util.js's turnRing from each game's ticker; the line's end is feathered a degree),
     red and pulsing in the last five seconds; the border under it keeps the ink, so the drained part shows. Every game's seat panels and strips wear it. */
  .tring { position: relative; }
  .tring::after { content: ""; position: absolute; inset: calc(-1 * var(--tw, 4px)); border: var(--tw, 4px) solid transparent; border-radius: inherit; background: conic-gradient(from 0deg, transparent 0 calc((1 - var(--tp, 1)) * 360deg), var(--tcol, #FFD23F) calc((1 - var(--tp, 1)) * 360deg + 1deg) 360deg) border-box; -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0); mask-composite: exclude; pointer-events: none; z-index: 3; }
  .tring.urgent::after { --tcol: #E8505B; animation: tringpulse .55s ease-in-out infinite alternate; }
  @keyframes tringpulse { from { opacity: 1; } to { opacity: .3; } }
  .player.turn.tring { border-color: var(--ink2) !important; } /* (the ring is the yellow now: each game's .turn rule paints the border yellow, and the border under the ring must stay ink) */
  body.rm .tring.urgent::after { animation: none; }
  .status .tick.urgent { background: var(--red); }
  .banner .jp { color: #ffd166; }
  .banner .ser { color: #c3cfe2; }
  .mm .explain { margin-top: 10px; }
  .mm .trig { margin-top: 6px; font-size: .82rem; color: var(--muted); line-height: 1.4; }
  .mm .stat { margin-top: 10px; font-size: .85rem; color: var(--gold); line-height: 1.5; }
  .mm .settings label { margin-top: 8px; }
  .acceptspec { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: .85rem; color: var(--muted); }
  .acceptspec input { width: auto; }
  .speclist { margin-top: 8px; border: 2px dashed rgba(255,209,102,.35); border-radius: 12px; padding: 6px 10px; font-size: .82rem; }
  .speclist .label { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; display: block; margin-bottom: 2px; }
  .speclist div { padding: 2px 0; }
  .speclist .pos { color: var(--green); } .speclist .neg { color: var(--red); }
  #specCard .bank { font-size: 1.5rem; }
  .specbet { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
  .specbet .amt { display: flex; align-items: center; gap: 4px; background: rgba(0,0,0,.3); border-radius: 10px; padding: 4px; }
  .specbet .amt button { width: 34px; height: 34px; padding: 0; border-radius: 8px; background: rgba(255,255,255,.15); color: #fff; font-size: 1.1rem; }
  .specbet .amt b { min-width: 64px; text-align: center; }
  .specbet .back { flex: 1 1 140px; padding: .7rem .6rem; font-size: .95rem; }
  .specbet .back small { display: block; font-weight: 500; font-size: .72rem; opacity: .8; }
  .picks.opts button { width: auto; height: auto; border-radius: 999px; padding: 6px 12px; font-size: .85rem; }
  .sbrow .st.pushed { background: rgba(255,255,255,.25); }
  .puck.press { background: linear-gradient(90deg, #ff512f, #dd2476); color: #fff; }
  .puck.shot { background: linear-gradient(90deg, #11998e, #38ef7d); color: #04261b; }
  .puck.lock { background: linear-gradient(90deg, #8e9eab, #eef2f3); color: #1b2430; }
  .banner .mull { color: #4fc3f7; }
  .banner .oddsr { color: #c8e6c9; }
  .oddslist { margin-top: 8px; border: 2px dashed rgba(200,230,201,.35); border-radius: 12px; padding: 6px 10px; font-size: .82rem; }
  .oddslist .label { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; display: block; margin-bottom: 2px; }
  .oddslist .pos { color: var(--green); } .oddslist .neg { color: var(--red); }
  .numgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 6px; margin-top: 10px; }
  .numgrid button { background: rgba(255,255,255,.08); color: var(--cream); padding: 8px 6px; border-radius: 10px; border: 2px solid transparent; display: flex; flex-direction: column; align-items: center; gap: 2px; }
  .numgrid button b { font-size: 1.3rem; }
  .numgrid button small { color: var(--muted); font-weight: 500; font-size: .72rem; text-align: center; }
  .numgrid button.active { border-color: var(--gold); background: rgba(230,184,76,.15); }
  .paytable { margin-top: 8px; font-size: .82rem; color: var(--muted); line-height: 1.5; }
  .paytable b { color: var(--cream); }
  .puck.tourn { background: linear-gradient(90deg, #f7971e, #ffd200); color: #3a2400; }
  .puck.bounty { background: linear-gradient(90deg, #ee0979, #ff6a00); color: #fff; }
  .puck.streak { background: linear-gradient(90deg, #56ab2f, #a8e063); color: #0b2a00; }
  .puck.dark { background: #0b1020; color: #cdd6ff; }
  .puck.loaded { background: linear-gradient(90deg, #8e2de2, #4a00e0); color: #fff; }
  .puck.dp { background: linear-gradient(90deg, #00c6ff, #0072ff); color: #fff; }
  .puck.pressure { background: linear-gradient(90deg, #f12711, #f5af19); color: #2b0a00; }
  .puck.team { background: linear-gradient(90deg, #43cea2, #185a9d); color: #fff; }
  .banner .buy { color: #c3f0ff; }
  .scene.hidden { --die-body: #3a4a3f; --die-edge: rgba(0,0,0,.3); } .scene.hidden .pip { visibility: hidden !important; }
  .scene.hidden::after { content: "?"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 2.2rem; font-weight: 900; color: var(--cream); }
  .scene { position: relative; z-index: 1; } /* (above the 3D canvas, so a dark come-out's "?" shows over the drawn die) */
  /* The landed die is flat, like Poker dice's board die once it has rolled in: the skin's body and pips in a square with the ink
     border and bottom edge (.fd in each .scene, built by dice.js). A throw tumbles as the 3D body (or the CSS cube) and, when it
     lands, the body goes and the flat die shows the result in its place (.scene.landed; dice3d.js skips a landed die's body);
     a hidden (dark come-out) die keeps its "?" and no pips, a pending die fades with its scene. Scaled a touch so it covers the
     felt like the face-on body did. */
  .scene .fd { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); padding: 14%; gap: 3%; background: var(--die-body); 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); box-sizing: border-box; visibility: hidden; transform: scale(1.12); }
  .scene .fd i { display: block; width: 100%; height: 100%; border-radius: 50%; background: var(--die-pip); visibility: hidden; }
  .scene.landed .fd { visibility: visible; } .scene.landed .fd i.on { visibility: visible; }
  .scene.landed .cube { visibility: hidden; } /* (the CSS fallback's body, out of sight while the flat die shows) */
  .scene.hidden .fd i { visibility: hidden !important; }

  /* ---------- Autopilot (the game plays full rounds for you) and the ladder locks ---------- */
  .apbtn { margin-left: 8px; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: .4rem .8rem; border-radius: 12px; background: rgba(230,184,76,.12); border: 2px solid rgba(230,184,76,.6); color: var(--gold); font-weight: 800; font-size: .9rem; white-space: nowrap; }
  .apbtn:disabled { opacity: .45; } .apbtn.lockd { opacity: .55; } .apbtn small { font-weight: 600; font-size: .72rem; opacity: .85; }
  .betspot.auto { border-color: var(--gold); border-style: solid; background: rgba(230,184,76,.1); }
  .betspot .approg { margin-left: 8px; text-align: right; line-height: 1.15; white-space: nowrap; } .betspot .approg b { display: block; color: var(--gold); font-size: 1rem; } .betspot .approg small { color: var(--muted); font-size: .72rem; }
  .rack.locked .stack { opacity: .4; pointer-events: none; }
  .appill { display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid var(--gold); color: var(--gold); border-radius: 999px; padding: .3rem .8rem; font-weight: 800; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; background: rgba(0,0,0,.25); white-space: nowrap; flex: 0 0 auto; }
  .appill.short .apword { display: none; } /* (beside the point label on a narrow felt: the icon and "round 3 of 50") */
  #apStopBtn .sub, #resRetry .sub { display: block; margin: 0; font-size: .62em; font-weight: 600; opacity: .85; line-height: 1.2; letter-spacing: 0; color: inherit; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; text-shadow: none; }
  .apseg { display: flex; gap: 4px; background: rgba(0,0,0,.3); border-radius: 12px; padding: 4px; margin-top: 8px; } .apseg button { flex: 1; background: transparent; color: var(--cream); padding: .6rem .2rem; font-size: .9rem; min-width: 0; } .apseg button.active { background: var(--gold); color: var(--ink); }
  .apchips { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 8px; min-height: 58px; } .apchips .stack { cursor: pointer; } .apchips .reset { padding: .4rem .7rem; font-size: .8rem; }
  .apstep { display: flex; align-items: center; justify-content: space-between; gap: 8px; background: rgba(0,0,0,.25); border-radius: 12px; padding: 6px 6px 6px 14px; margin-top: 8px; font-size: .95rem; }
  .apstep .amt { display: flex; align-items: center; gap: 4px; } .apstep .amt button { width: 42px; height: 42px; padding: 0; border-radius: 10px; background: rgba(255,255,255,.12); color: #fff; font-size: 1.25rem; touch-action: none; } .apstep .amt b { min-width: 84px; text-align: center; font-size: 1.05rem; }
  .apstep .amt b.loss { color: #ff8a80; } .apstep .amt b.gain { color: var(--green); }
  .apsum { text-align: center; margin-top: 10px; font-size: .9rem; color: var(--muted); } .apsum b { color: var(--cream); }
  .sheet h3 .r { float: right; color: var(--cream); font-size: 1.1rem; text-transform: none; letter-spacing: 0; }
  .apcard .chk { display: flex; align-items: center; gap: 8px; width: 100%; font-size: .8rem; color: var(--muted); margin-top: 2px; } .apcard .chk input { width: auto; }
  .mepanel .reqbox .card.vetocard { background: rgba(255,138,61,.14); border-color: rgba(255,138,61,.6); padding: 5px 10px; text-align: center; } .mepanel .reqbox .card.vetocard .msg { font-size: .82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } /* the shooter's keep-or-veto card: the point and the two chances on one line, above the action row */
  .mepanel .reqbox.show { margin: 8px 0 0; } .mepanel .reqbox .card { margin-top: 0; padding: 8px 10px; gap: 6px; } .mepanel .reqbox .card .msg { font-size: .85rem; flex-basis: 100%; } .mepanel .reqbox .card button { padding: .45rem .7rem; font-size: .82rem; }
  .speedseg .seg.lockd { opacity: .45; }
  /* the Autopilot mark: two white arrows in a loop, drawn (not an emoji, which every phone paints its own way) */
  .apico { width: 1.1em; height: 1.1em; display: inline-block; vertical-align: -.2em; flex: 0 0 auto; }
  .apstep.off .amt { opacity: .35; pointer-events: none; } .apstep .onoff { display: flex; align-items: center; gap: 8px; } .apstep .onoff small { color: var(--muted); font-size: .72rem; }
  /* All in and I'm in: the amount on a second, smaller and darker line, so the button never grows a line (Kiril's ask) */
  #allInBtn .sub, #readyBtn .sub { display: block; margin: 0; font-size: .66em; font-weight: 700; line-height: 1.2; letter-spacing: 0; color: rgba(0,0,0,.6); opacity: 1; }
  #readyBtn.secondary .sub { color: var(--muted); }

  /* ---------- side bets ---------- */
  .modes .divider { width: 100%; height: 1px; background: rgba(255,255,255,.12); }
  .modes .cool { background: linear-gradient(180deg, #e3f6ff 0%, #4fc3f7 45%, #1e88e5 80%, #0d47a1 100%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 6px rgba(79,195,247,.5)); animation: none; }
  .modes.sboff .cool { filter: grayscale(1) opacity(.45); }
  .modes .gear { background: rgba(255,255,255,.1); color: var(--cream); padding: 5px 9px; font-size: .74rem; border-radius: 8px; }
  .sidelist { margin-top: 10px; border: 2px dashed rgba(79,195,247,.35); border-radius: 12px; padding: 6px 10px; }
  .sidelist .label { font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
  .sbrow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 6px 0; border-top: 1px dashed rgba(255,255,255,.08); }
  .sbrow:first-of-type { border-top: 0; }
  .modes .req { background: rgba(255,255,255,.1); color: var(--cream); padding: 5px 8px; font-size: .68rem; border-radius: 8px; line-height: 1.2; }
  .modes .req.sent { opacity: .7; }
  .reqbox { display: none; margin-top: 12px; }
  .reqbox.show { display: block; }
  .reqbox .card { background: rgba(230,184,76,.14); border: 1px solid rgba(230,184,76,.5); border-radius: 12px; padding: 10px 14px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
  .reqbox .card .msg { flex: 1 1 240px; font-size: .9rem; }
  .reqbox .card button { padding: .5rem .9rem; font-size: .85rem; }
  .sbrow .what { flex: 1 1 200px; } .sbrow .what b { display: block; }
  .sbrow .meta { font-size: .8rem; color: var(--muted); }
  .sbrow .st { font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; background: rgba(255,255,255,.1); }
  .sbrow .st.won { background: var(--green); color: #06261a; } .sbrow .st.lost { background: var(--red); color: #fff; }
  .sbrow .st.accepted { background: rgba(79,195,247,.3); }
  .sbrow .last { font-size: .75rem; font-weight: 800; padding: 2px 7px; border-radius: 999px; background: rgba(255,255,255,.08); }
  .sbrow .last.pos { color: var(--green); } .sbrow .last.neg { color: var(--red); }
  .sbrow .btns { display: flex; gap: 6px; } .sbrow .btns button { padding: .45rem .8rem; font-size: .85rem; }
  .dots { display: flex; gap: 3px; flex-wrap: wrap; }
  .dots span { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: .65rem; font-weight: 800; background: rgba(255,255,255,.1); color: var(--muted); }
  .dots span.hit { background: var(--green); color: #06261a; }
  .sbprompt { font-size: .82rem; background: rgba(230,184,76,.12); border-left: 3px solid var(--gold); padding: 6px 10px; border-radius: 6px; width: 100%; line-height: 1.4; }
  .sideresults { margin-top: 6px; font-size: .85rem; color: var(--gold); }
  .key { display: none; font-weight: 600; opacity: .65; font-size: .8em; margin-left: .35em; } body.kb .key { display: inline; } /* keyboard hints, PC only */
  .rpsbtn .key { font-size: .55em; vertical-align: middle; opacity: .55; }
  .sbtypes { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; margin-top: 8px; }
  .sbtypes button { background: rgba(255,255,255,.08); color: var(--cream); padding: 8px 10px; border-radius: 10px; text-align: left; font-weight: 700; border: 2px solid transparent; display: flex; flex-direction: column; gap: 2px; }
  .sbtypes button small { color: var(--muted); font-weight: 500; font-size: .72rem; }
  .sbtypes button.active { border-color: var(--gold); background: rgba(230,184,76,.15); }
  /* "Choose multiple": every pickable bet shows a small checkbox, ticked when it's in the selection */
  .sbtypes button { position: relative; }
  .sbtypes button .chk { display: none; position: absolute; top: 7px; right: 7px; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); place-items: center; font-size: .68rem; font-weight: 900; color: #fff; line-height: 1; }
  .sbtypes.multi button { padding-right: 32px; }
  .sbtypes.multi button:not([disabled]) .chk { display: grid; }
  .sbtypes.multi button.active .chk { background: var(--red); border-color: var(--red); }
  .sbtypes.multi button.active .chk::after { content: "✓"; }
  .multipicks { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
  .multipicks .hop { margin-top: 0; } .multipicks .hop > b { font-size: .85rem; min-width: 96px; }
  .explain { margin-top: 10px; background: rgba(0,0,0,.3); border-radius: 12px; padding: 10px 12px; font-size: .85rem; line-height: 1.45; }
  .explain .row { display: flex; gap: 14px; flex-wrap: wrap; color: var(--muted); margin-top: 6px; } .explain .row b { color: var(--cream); }
  .hop { display: flex; gap: 8px; align-items: center; margin-top: 8px; flex-wrap: wrap; }
  .picks { display: flex; gap: 4px; flex-wrap: wrap; }
  .picks button { width: 36px; height: 36px; padding: 0; border-radius: 50%; background: rgba(255,255,255,.1); color: var(--cream); font-weight: 800; border: 2px solid transparent; }
  .picks button.active { border-color: var(--gold); background: rgba(230,184,76,.2); }
  .hop select, .settings select { font: inherit; padding: .45rem .6rem; border-radius: 8px; background: rgba(0,0,0,.3); color: var(--cream); border: 2px solid rgba(255,255,255,.18); }
  .settings label { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 10px; font-size: .9rem; }
  .settings label input[type=number], .settings label select { width: 150px; }
  .settings .types { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 2px 10px; margin-top: 6px; font-size: .85rem; }
  .settings .types label { justify-content: flex-start; margin-top: 4px; }
  .settings .types input { width: auto; }
  .settings label input[type=checkbox] { width: auto; flex: 0 0 auto; }
  .settings .setrow { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 10px; font-size: .9rem; } .settings .setrow > span { flex: 1; }
  .intro { font-size: .85rem; color: var(--muted); line-height: 1.45; margin-top: 6px; }

  /* ---------- the game screen: one phone screen, nothing scrolls (structure only; every component keeps its look) ---------- */
  .game-screen { display: none; flex-direction: column; gap: 10px; }
  .screen { display: flex; flex-direction: column; gap: 8px; padding-top: env(safe-area-inset-top); } /* (the installed app runs full screen on Android, over the camera cutout: the top bar starts below it) */
  .gtop { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; min-height: 44px; }
  /* the top bar borrows the lobby's look (table-polish.md Part A): the logo small in Permanent Marker with the ink outline and drop, the code pill with an ink border, the menu a round ink-edged button */
  .gtop h1 { font-family: var(--marker); font-weight: 400; font-size: 24px; margin: 0 2px 0 0; padding: 2px 4px 4px 2px; text-transform: none; letter-spacing: 0; line-height: 1; color: var(--lob-yellow); transform: rotate(-3deg); transform-origin: left center; white-space: nowrap;
    text-shadow: -2px -2px 0 var(--ink2), 2px -2px 0 var(--ink2), -2px 2px 0 var(--ink2), 2px 2px 0 var(--ink2), 0 -2px 0 var(--ink2), 0 2px 0 var(--ink2), -2px 0 0 var(--ink2), 2px 0 0 var(--ink2), 0 4px 0 var(--ink2); }
  .gtop .code { border: 3px solid var(--ink2); background: rgba(0,0,0,.5); font-weight: 700; color: #fff; }
  .gtop .gsp { flex: 1; }
  .gtop .timer { font-size: .82rem; white-space: nowrap; }
  /* the craps top bar (craps-table-cleanup.md §2, the poker bar's look): the logo, a yellow "Craps" pill with the connection dot on its corner only when the line drops, the timer as a small dark pill, the purple How to play button, ☰. The logo may break onto two lines when the timer needs the room (it fits a 360 px bar either way) */
  .crtop { gap: 8px; }
  .crtop h1 { flex: 0 1 auto; min-width: min-content; white-space: normal; line-height: .92; }
  .crpill { position: relative; display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; background: #FFD23F; 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; flex: 0 0 auto; }
  .crpill .conn { position: absolute; top: -4px; right: -4px; width: 12px; height: 12px; margin: 0; border: 2px solid var(--ink2); background: var(--red); display: none; }
  .crpill .conn.off { display: block; }
  .crtop .timer { display: inline-flex; align-items: center; gap: 5px; min-height: 34px; padding: 0 11px; background: rgba(0,0,0,.4); border: 3px solid var(--ink2); border-radius: 999px; font: 16px/1 var(--lilita); color: #fff; flex: 0 0 auto; }
  .crtop .timer svg { width: 16px; height: 16px; flex: 0 0 auto; } .crtop .timer.wait { color: #ff8a80; }
  button.icobtn.rules { background: #B57BFF; margin-right: 2px; }
  @media (max-width: 680px) { .crtop { gap: 6px; } .crpill { min-height: 36px; padding: 0 11px; font-size: 15px; } .crtop .timer { min-height: 30px; padding: 0 8px; font-size: 14px; gap: 4px; } .crtop .timer svg { width: 14px; height: 14px; } }
  @media (max-width: 379px) { .crpill { min-height: 34px; padding: 0 9px; font-size: 14px; } .crtop .timer { padding: 0 6px; font-size: 13px; } .crtop { gap: 5px; } }
  /* the ☰ menu's extras (§6): the speed card under the code card, then the 2×2 grid: Insta round, Rig the dice, Game modes, How to play */
  .spdcard { margin-top: 12px; padding: 10px 12px 12px; background: #06281A; border: 3px solid var(--ink2); border-radius: 20px; }
  .spdcard .spdhd { display: flex; align-items: center; justify-content: space-between; gap: 10px; font: 20px/1.1 var(--lilita); color: #fff; margin-bottom: 8px; }
  .spdcard .hosttag { flex: 0 0 auto; font: 800 12px/1 var(--nunito); font-style: normal; letter-spacing: .1em; text-transform: uppercase; background: #FFD23F; color: var(--ink2); padding: 6px 10px; border-radius: 999px; }
  .spdcard .hosttag.guest { background: transparent; color: #BFD8C8; padding: 6px 0; }
  .spdcard .speedseg { display: flex; width: 100%; }
  .spdcard .speedseg .seg { flex: 1 1 0; font: 20px/1 var(--lilita); letter-spacing: 0; padding: .7rem 0; color: rgba(255,255,255,.6); background: #0B1A14; }
  .spdcard .speedseg .seg.on.s1 { background: #5bbcff; color: #06283d; } .spdcard .speedseg .seg.on.s2 { background: var(--gold); color: #2a1d00; } .spdcard .speedseg .seg.on.s3 { background: var(--red); color: #fff; }
  .menugrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
  .menugrid .tbtn { min-width: 0; min-height: 56px; padding: 0 10px; }
  .tbtn.orange { background: #FF8A3D; } .tbtn.instar { background: #2E1F4A; color: #D9B8FF; } .tbtn.instar.on { background: #8e44ad; color: #fff; } .tbtn.rig.on { background: #F0B429; color: var(--ink2); }
  .tsh .acceptspec { margin-top: 12px; padding: 10px 14px; background: #06281A; border: 3px solid var(--ink2); border-radius: 18px; font: 800 15px/1.3 var(--nunito); color: #D6F2E0; }
  /* the How to play sheet (the poker ranks sheet's style) */
  .sheet.tsh.rulesh { height: auto; max-height: calc(var(--app-h, 100dvh) - 36px); }
  .rulesh .tsnote b { color: #fff; }
  .rulesh3 { margin: 14px 0 6px; font: 22px/1 var(--lilita); color: #fff; text-shadow: 0 2px 0 rgba(0,0,0,.35); }
  .rulestab { display: flex; flex-direction: column; gap: 6px; }
  .rulestab .rrow { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 12px; background: #06281A; border: 3px solid var(--ink2); border-radius: 14px; font: 800 14px/1.25 var(--nunito); color: #D6F2E0; }
  .rulestab .rrow b { font: 18px/1 var(--lilita); font-weight: 400; color: #fff; white-space: nowrap; } .rulestab .rrow b small { font: 800 12px/1 var(--nunito); color: #BFD8C8; margin-left: 4px; }
  .rulesmodes { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
  .rulesmodes .rmode { display: flex; gap: 10px; align-items: flex-start; padding: 9px 12px; background: #06281A; border: 3px solid var(--ink2); border-radius: 14px; }
  .rulesmodes .rmode .mico { font-size: 1.3rem; line-height: 1.2; } .rulesmodes .rmode b { display: block; font: 18px/1.15 var(--lilita); font-weight: 400; color: #fff; } .rulesmodes .rmode small { display: block; margin-top: 2px; font: 800 13px/1.3 var(--nunito); color: #D6F2E0; }
  @media (max-width: 379px) { .gtop h1 { font-size: 22px; } .player.strip .stk { font-size: 1.05rem; } .player.crstrip .line { font-size: 1.15rem; line-height: 21px; } .player.crstrip { gap: 6px; } .role { padding: 2px 5px; letter-spacing: .06em; } .mepanel .betspot:has(.qbets) .label { display: none; } #topSeat .tag, #bottomSeat .mehead .tag { font-size: .52rem; padding: 1px 5px; } #topSeat .owner, #bottomSeat .mehead .owner { font-size: .62rem; } .fastrow { gap: 5px; } .instaround { padding: .3rem .5rem; } } /* (the craps strip and panel only: the poker strip's ★ HOST stays as it is) */ /* (the quick buttons and the Autopilot button fill a narrow phone's bet row; the amount on the felt says whose bet it is) */
  button.icobtn { width: 48px; height: 48px; padding: 0; flex: 0 0 48px; border-radius: 50%; background: #5B6B7A; color: #fff; border: 4px solid var(--ink2); box-shadow: 0 4px 0 var(--ink2), inset 0 3px 0 rgba(255,255,255,.3); font-size: 1.3rem; line-height: 1; display: grid; place-items: center; transition: transform 80ms, box-shadow 80ms; }
  button.icobtn svg { width: 24px; height: 24px; display: block; }
  button.icobtn:hover:not(:disabled) { filter: none; }
  button.icobtn:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink2), inset 0 3px 0 rgba(255,255,255,.3); }
  .opp { position: relative; flex: 0 0 auto; z-index: 5; }
  .player.strip { padding: 8px 12px; display: flex; align-items: center; gap: 10px; min-height: 60px; cursor: pointer; border: 4px solid var(--ink2); box-shadow: 0 4px 0 var(--ink2); }
  .player.strip.empty { font-style: italic; color: var(--muted); justify-content: center; min-height: 60px; }
  .player.strip .who { flex: 1; min-width: 7em; }
  .player.strip .name { font-size: .95rem; gap: 6px; flex-wrap: nowrap; white-space: nowrap; overflow: hidden; }
  .player.strip .name .nm { min-width: 0; flex: 0 1 auto; overflow: hidden; text-overflow: ellipsis; } .player.strip .name .tag, .player.strip .name .owner { flex: 0 0 auto; }
  .player.strip .line { font-size: .82rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .player.strip .line b { color: var(--cream); }
  .player.strip .tag, .mehead .tag { position: static; font-size: .58rem; padding: 1px 7px; }
  .player.strip .chev { width: 24px; height: 24px; flex: 0 0 24px; display: grid; place-items: center; color: var(--muted); font-size: .8rem; transition: transform .25s; }
  .player.strip .stk { flex: 0 0 auto; margin-left: auto; color: #fff; font-size: 1.45rem; font-weight: 700; }
  .crstrip.turn { border-color: #FFD23F; box-shadow: 0 4px 0 #E8B820; } /* (their move: the strip's dark edge and shadow turn yellow, poker's .pkstrip.turn) */
  .player.crstrip .line { font: 1.4rem/26px var(--lilita); color: #FFD23F; } .player.crstrip .line .act { color: #FFD23F; }
  .crstrip .name .ttl { max-width: 7em; font-size: .7rem; }
  .crstrip .chev { width: 30px; height: 30px; flex: 0 0 30px; border-radius: 50%; background: rgba(0,0,0,.45); border: 2px solid var(--ink2); color: #fff; } .crstrip .chev svg { width: 16px; height: 16px; }
  .role { position: static; flex: 0 0 auto; font: 800 .62rem/1 var(--nunito); letter-spacing: .1em; text-transform: uppercase; padding: 3px 7px; border-radius: 999px; border: 2px solid var(--ink2); }
  .role.shooter { background: var(--gold); color: var(--ink2); } .role.fader { background: #3A4654; color: #D6DEE6; }
  .streak { flex: 0 0 auto; font: 800 .66rem/1 var(--nunito); padding: 2px 7px; border-radius: 999px; background: #E8505B; color: #fff; border: 2px solid var(--ink2); white-space: nowrap; } /* (their balance on the right of the strip, as on the poker strip; their bet is on the felt) */
  .opp.open .chev { transform: rotate(180deg); }
  .oppdrop { position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: #10281c; border: 4px solid var(--ink2); border-radius: 14px; padding: 10px 12px; cursor: default; box-shadow: 0 4px 0 var(--ink2), 0 16px 40px rgba(0,0,0,.5); max-height: 55vh; max-height: calc(var(--app-h, 100dvh) * .55); overflow-y: auto; transform-origin: top; transform: scaleY(.96) translateY(-6px); opacity: 0; pointer-events: none; transition: transform .22s ease, opacity .18s ease; }
  .opp.open .oppdrop { transform: none; opacity: 1; pointer-events: auto; }
  .oppdrop .tag { position: static; display: inline-block; margin-bottom: 4px; }
  .feltmid { display: flex; flex-direction: column; align-items: center; width: 100%; margin-top: auto; margin-bottom: auto; } /* (centred between the two bet rows: the auto margins take the felt's spare height) */
  #feltArea { margin: 6px 0; } /* (a little air between the rail and the two cards, as the poker felt has) */
  /* The bets on the felt (the poker felt's way): the other player's as a fan of their chips and the short amount at the top, yours
     at the bottom; a row keeps its height while there is no bet, so nothing on the felt moves when a bet comes or goes. */
  .betrow { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 36px; flex: 0 0 auto; color: #FFD23F; font: 22px/1 var(--lilita); text-shadow: 0 2px 2px rgba(0,0,0,.55); position: relative; z-index: 2; }
  .betrow:empty { visibility: hidden; }
  .betrow b { font-weight: 400; }
  .betrow .fan { display: flex; align-items: center; }
  .betrow .fan .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); } .betrow .fan .chip.d100000, .betrow .fan .chip.d500000, .betrow .fan .chip.d10000000, .betrow .fan .chip.d50000000, .betrow .fan .chip.d100000000 { font-size: .46rem; }
  .betrow .fan .chip + .chip { margin-left: -21px; } /* (fanned: each chip over the one before, the biggest on top and whole) */
  .betrow .fan .chip.clickable { cursor: pointer; }
  .felt.nobets .betrow { display: none; } /* (a Path level is not played for chips) */
  .felt .reqbox { width: 100%; margin-top: 10px; }
  .modeshdr { display: none; }
  .mepanel { flex: 0 0 auto; padding-bottom: 4px; } /* (room for the panel's ink bottom edge inside the one-screen game) */
  .mepanel .player { padding: 10px 12px; }
  .mepanel .player.me, .seat.spec .player.me { border: 4px solid var(--ink2); box-shadow: 0 4px 0 var(--ink2), inset 0 0 0 2px rgba(230,184,76,.55); } /* the gold accent moved inside the ink border, so the panel still reads as "you" */
  .mehead { display: flex; align-items: center; gap: 8px; }
  .mehead .who { flex: 1; min-width: 0; } .mehead .name { font-size: .95rem; gap: 6px; }
  #bottomSeat .mehead .name { flex-wrap: nowrap; white-space: nowrap; overflow: hidden; } #bottomSeat .mehead .name .nm { min-width: 0; flex: 0 1 auto; overflow: hidden; text-overflow: ellipsis; } #bottomSeat .mehead .name .tag, #bottomSeat .mehead .name .owner { flex: 0 0 auto; } /* (the craps panel's name line is one line whatever the balance's width: the panel never changes height for it; the poker panel's is untouched) */
  .instaround { white-space: nowrap; }
  .mehead .line { font-size: .8rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .mehead .line b { color: var(--cream); }
  .mehead .bank { margin: 0; font-size: 1.55rem; }
  .mepanel .status { margin-top: 2px; font-size: .78rem; min-height: 1.25em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .mepanel .hold { margin-top: 2px; font-size: .74rem; }
  .mepanel .betspot { margin-top: 8px; padding: 6px 10px; min-height: 60px; gap: 6px; } /* (one height in every state: the Autopilot button's 44 px inside it, Clear bet's 34 or neither) */
  .mepanel .betspot .label { width: auto; flex: 0 1 auto; }
  .mepanel .betspot .stack { width: 32px !important; height: 32px !important; } .mepanel .betspot .chip.sm { width: 30px; height: 30px; font-size: .55rem; }
  .mepanel .rack { justify-content: flex-start; margin-top: 8px; gap: 8px; }
  @media (min-width: 681px) { .mepanel .rack { gap: 14px; } .felt { min-height: 440px; } }
  .mepanel .actions { margin-top: 8px; gap: 6px; }
  .mepanel .actions .big { flex: 1 1 auto; min-width: 0; font-size: 1rem; padding: .4rem .6rem; font-family: var(--lilita); font-weight: 400; letter-spacing: .01em; border: 4px solid var(--ink2); border-radius: 14px; 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, filter .15s; } /* (the padding is a touch smaller than before so the 4 px border keeps a two-line button inside the row's 56 px) */
  .mepanel .actions .big.veto { background: #FF8A3D; } /* Veto · new point: the lobby's orange */
  .mepanel .actions .big.go, .mepanel .actions .big.danger, .mepanel .actions .big.veto { color: #fff; text-shadow: 1px 1px 0 var(--ink2), -1px -1px 0 var(--ink2), 1px -1px 0 var(--ink2), -1px 1px 0 var(--ink2); }
  .mepanel .actions .big .sub, .mepanel .actions .big .key { font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; text-shadow: none; }
  .mepanel .actions .big:hover:not(:disabled) { filter: brightness(1.04); }
  .mepanel .actions .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); }
  .mepanel .actions button:not(.big):not(.icobtn):not(.rpsbtn) { padding: .55rem .7rem; font-size: .85rem; }
  /* the main button never moves: every button in the row is the same height (Roll's two lines set it), and the hint
     below keeps its two lines of space even when empty (Kiril: I'm in, Roll and Next round must sit in the same spot) */
  .mepanel .actions button:not(.icobtn) { min-height: 56px; line-height: 1.15; } /* (an explicit line height: an emoji must not stretch the line box) */
  .mepanel .actions .rpsbtn { padding: .35rem 1rem; }
  .mepanel .rack { min-height: 58px; }
  .mepanel .hint { margin-top: 6px; font-size: .8rem; height: 2.7em; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.3; }
  .mepanel .ghost { visibility: hidden; }
  #controls { position: relative; }
  .mepanel .sidelist, .mepanel .oddslist, .mepanel .speclist { margin-top: 6px; font-size: .78rem; max-height: 76px; overflow-y: auto; }
  .seat.spec { flex: 0 0 auto; margin: 0; }
  @media (min-width: 1240px) { #modesBtn { display: none; } }
  /* the mode panel: in flow under the game (collapsible on phones), fixed on the right of a wide screen */
  @media (max-width: 1239px) { .modes { margin-top: 0; } }

  /* ---------- controls ---------- */
  .actions { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; align-items: center; }
  .actions .big { font-size: 1.1rem; padding: .85rem 1.5rem; flex: 1; min-width: 170px; }
  .actions .rpsbtn { font-size: 1.6rem; padding: .5rem 1.2rem; flex: 1; background: rgba(255,255,255,.12); }
  .actions .rpsbtn.picked { background: var(--green); }

  /* ---------- exchange modal ---------- */
  .modal { position: fixed; inset: 0; background: rgba(0,0,0,.6); display: none; align-items: center; justify-content: center; padding: 16px; z-index: 10; }
  .modal.open { display: flex; }
  .sheet { background: #10281c; border: 1px solid rgba(255,255,255,.12); border-radius: 16px; padding: 18px; width: 100%; max-width: 640px; max-height: calc(100vh - 32px); max-height: calc(var(--app-h, 100dvh) - 32px); overflow-y: auto; box-shadow: 0 20px 60px rgba(0,0,0,.5); position: relative; display: flex; flex-direction: column; }
  .sheet > * { flex-shrink: 0; } /* the sheet scrolls when it's taller than the screen; nothing inside squashes */
  .sheet .xclose { position: absolute; top: 8px; right: 8px; width: 34px; height: 34px; padding: 0; border-radius: 50%; background: rgba(255,255,255,.12); color: var(--cream); font-size: 1.3rem; line-height: 1; }
  .sheet .foot { position: sticky; bottom: -18px; margin: 12px -18px -18px; padding: 10px 18px 18px; background: #10281c; border-top: 1px solid rgba(255,255,255,.08); }
  .sheet .foot .actions { margin-top: 0; }
  .sheet h2 { margin: 0 0 4px; font-size: 1.1rem; color: var(--gold); }
  .sheet h3 { margin: 14px 0 0; font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
  .xrow { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; margin-top: 8px; }
  .xcell { background: rgba(0,0,0,.3); border-radius: 12px; padding: 8px 4px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
  .xcell .have { font-size: .7rem; color: var(--muted); }
  .xcell .pm { display: flex; align-items: center; gap: 4px; }
  .xcell .pm button { padding: 0; width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,.15); color: #fff; font-size: 1rem; line-height: 1; touch-action: none; user-select: none; -webkit-user-select: none; }
  .xcell .pm span { min-width: 24px; text-align: center; font-weight: 800; }
  .xcell .pm5 { display: flex; gap: 4px; }
  .xcell .pm5 button { padding: 0; width: 36px; height: 24px; border-radius: 6px; background: rgba(255,255,255,.1); color: var(--muted); font-size: .7rem; font-weight: 800; touch-action: none; user-select: none; -webkit-user-select: none; }
  .xcell button:active { background: rgba(230,184,76,.5); color: var(--ink); }
  .xtotals { display: flex; justify-content: space-between; margin-top: 12px; font-weight: 700; gap: 8px; flex-wrap: wrap; }
  .xtotals .bad { color: var(--red); } .xtotals .ok { color: var(--green); }

  .qbets { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; } .betspot .qbets .quick { margin-left: 0; }

  /* ---------- phones ---------- */
  @media (max-width: 680px) {
    .wrap { padding: 10px; }
    .topbar { gap: 6px; }
    .tutor { font-size: .84rem; margin-bottom: 8px; max-height: calc(var(--app-h, 100dvh) * .34); overflow-y: auto; }
    .items { grid-template-columns: repeat(2, 1fr); }
    /* phones: the game itself is one screen tall and never scrolls; the mode panel sits below it, collapsed */
    .screen { height: calc(100vh - 20px); height: calc(var(--app-h, 100dvh) - 20px); gap: 6px; overflow: hidden; padding-bottom: env(safe-area-inset-bottom); }
    .gtop { min-height: 40px; }
    .mehead .bank { font-size: 1.4rem; }
    .player.strip .stk { font-size: 1.2rem; }
    .mepanel .rack { min-height: 52px; }
    /* the bet row is one line, one height, in every state (with nothing up it used to wrap the Autopilot button onto a second line, and the felt shrank by that line until the first chip went up): compact buttons, no "0" beside the quick buttons */
    .mepanel .betspot { flex-wrap: nowrap; min-height: 50px; overflow: hidden; }
    .mepanel .betspot .label { font-size: .7rem; letter-spacing: .04em; white-space: nowrap; }
    .mepanel .betspot .qbets { flex: 0 0 auto; }
    .betspot .quick { padding: 0 8px; font-size: .85rem; }
    .mepanel .betspot .apbtn { min-height: 34px; padding: .25rem .5rem; font-size: .84rem; gap: 4px; margin-left: 4px; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
    .mepanel .betspot .amt.zero { display: none; }
    .felt { flex: 1 1 0; min-height: 0; justify-content: center; container-type: size; --die: clamp(46px, 28cqh, 88px); } /* (the poker board dice's size) */ /* the dice are sized by the felt itself, so a small screen gets small dice (30% bigger than the 16cqh they were; fit-6 below is that old size) */
    .feltmid { gap: 0; }
    /* the fit loop (fitFelt): when the felt's contents still spill over the strip or your panel, it steps these down in order */
    .felt.fit-1 .tutor, .felt.fit-1 .pathbox { font-size: .76rem; margin-bottom: 4px; } .felt.fit-1 #momentBox { margin-top: 4px; } .felt.fit-1 #momentBox button { white-space: nowrap; font-size: .72rem; padding: .28rem .6rem; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
    .felt.fit-2 .pucks { gap: 5px; } .felt.fit-2 .puck { font-size: .72rem; padding: .25rem .55rem; } .felt.fit-2 .crpot { padding: 3px 12px; } .felt.fit-2 .crpot b { font-size: 17px; } /* (a notch smaller, still wrapping: a row that scrolled sideways cut the last puck off) */
    .felt.fit-3 .betrow { min-height: 22px; font-size: 14px; gap: 6px; } .felt.fit-3 .betrow .fan .chip { width: 20px; height: 20px; font-size: .34rem; } .felt.fit-3 .betrow .fan .chip.d100000, .felt.fit-3 .betrow .fan .chip.d500000, .felt.fit-3 .betrow .fan .chip.d10000000, .felt.fit-3 .betrow .fan .chip.d50000000, .felt.fit-3 .betrow .fan .chip.d100000000 { font-size: .3rem; } .felt.fit-3 .betrow .fan .chip + .chip { margin-left: -12px; }
    .felt.fit-4 .statwrap { height: 40px; margin-top: 4px; } .felt.fit-4 .banner { font-size: 15px; } .felt.fit-4 .dicelabels { margin-top: 0; line-height: 1.1; } /* (the status line after the pucks and the bets' rows: it is what you read every roll) */
    .felt.fit-5 .ptrow { min-height: 30px; } .felt.fit-5 .puck.ptlbl { font-size: .72rem; padding: .22rem .6rem; } .felt.fit-5 .dice { margin-bottom: 8px; }
    .felt.fit-6 { --die: clamp(40px, 20cqh, 64px); }
    .felt.fit-7 { --die: clamp(32px, 15cqh, 52px); } /* the very last resort */
    .mepanel .actions .icobtn { order: -2; } .mepanel .actions button:not(.big):not(.icobtn):not(.rpsbtn) { order: -1; } .mepanel .actions .big, .mepanel .actions .rpsbtn { order: 1; } /* main button on the right, within thumb reach */
    body.lefty .mepanel .actions .icobtn { order: 2; } body.lefty .mepanel .actions button:not(.big):not(.icobtn):not(.rpsbtn) { order: -1; } body.lefty .mepanel .actions .big, body.lefty .mepanel .actions .rpsbtn { order: -2; } /* Left-handed (Settings → Accessibility): the same row mirrored, the main button on the left, the reactions on the right */
    .modeshdr { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; background: rgba(255,255,255,.08); color: var(--cream); font-weight: 800; letter-spacing: .04em; text-transform: uppercase; font-size: .78rem; padding: .6rem; border-radius: 10px; }
    .modeshdr .chev { transition: transform .25s; } .modes.collapsed .modeshdr .chev { transform: rotate(-90deg); }
    .modes.collapsed > *:not(.modeshdr) { display: none; }
    .code { font-size: .9rem; padding: .3rem .5rem; letter-spacing: .1em; }
    .badge { font-size: .78rem; padding: .3rem .5rem; }
    button { padding: .6rem .8rem; }
    .player { padding: 10px 12px; }
    .player .bank { font-size: 1.45rem; }
    .player .stats { gap: 8px; font-size: .78rem; }
    .stack { width: 46px; height: 52px; }
    .chip { width: 42px; height: 42px; font-size: .7rem; }
    .rack { gap: 6px; }
    .felt { border-radius: 40px; padding: 10px 8px 10px; } /* (the speed switch went to the ☰ menu: your bet's row is the last thing on the felt, as on poker's) */
    #feltArea { margin: 6px 4px; justify-content: flex-start; } /* (4px a side: the rail's dark outer ring is drawn outside the felt and the screen clips past its own edges; the middle's auto margins centre the contents while there is room, and when there isn't they run down from the top rather than over the strip) */
    .betrow { min-height: 30px; font-size: 18px; gap: 8px; } .betrow .fan .chip { width: 28px; height: 28px; font-size: .48rem; } .betrow .fan .chip.d100000, .betrow .fan .chip.d500000, .betrow .fan .chip.d10000000, .betrow .fan .chip.d50000000, .betrow .fan .chip.d100000000 { font-size: .4rem; } .betrow .fan .chip + .chip { margin-left: -17px; }
    .dice { gap: 20px; margin: clamp(10px, calc(100cqh - var(--budget, 234px)), calc(76px + var(--die) * 0.37)) 0 14px; } /* the room above the dice is the tumble's: whatever the felt has beyond its contents (--budget: their height measured by fitFelt, so the room is exactly the spare and never squeezes a puck out), at least the 10 px of old, at most what the full leap needs (dice3d.js reachAbove); the dice leap as high as that room allows. Under the dice, room for the total and the roll-off names (the dice draw a little past their box) */
    .dicelabels { gap: 20px; margin-top: 4px; }
    .banner { font-size: 19px; } .statwrap { height: 48px; }
    .player.crstrip .line { font-size: 1.3rem; line-height: 24px; }
    .crpot b { font-size: 19px; }
    .actions { gap: 8px; }
    .actions .big { min-width: 0; flex: 1 1 46%; font-size: 1rem; padding: .8rem .6rem; }
    .rps { gap: 14px; } .rps .hand { width: 110px; }
    .modal { align-items: flex-start; padding: 8px; }
    .sheet { padding: 12px 10px; max-height: calc(100vh - 16px); max-height: calc(var(--app-h, 100dvh) - 16px); }
    .sheet h2 { font-size: 1rem; padding-right: 36px; }
    .sheet h3 { margin-top: 8px; }
    .sheet .foot { bottom: -12px; margin: 8px -10px -12px; padding: 8px 10px 12px; }
    #xmodal .hint { display: none; }
    .xrow { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; margin-top: 6px; }
    .xcell { padding: 4px 1px 4px; gap: 3px; border-radius: 10px; min-width: 0; overflow: hidden; }
    .xcell .chip.sm { width: 28px; height: 28px; font-size: .55rem; }
    .xcell .have { font-size: .6rem; }
    .xcell .pm { gap: 1px; }
    .xcell .pm button { width: 24px; height: 26px; font-size: .95rem; border-radius: 8px; }
    .xcell .pm span { min-width: 14px; font-size: .85rem; }
    .xcell .pm5 { gap: 2px; }
    .xcell .pm5 button { width: 26px; height: 20px; font-size: .58rem; }
    .xtotals { font-size: .85rem; margin-top: 8px; }
    .modes { padding: 8px; gap: 8px; }
    .modelist { grid-template-columns: repeat(2, 1fr); }
    .mrow .mname { font-size: .72rem; }
  }
  /* middle phones (a 360×740 one; the range stops where the short tier below starts, so neither out-ranks the other): the bets' rows a notch smaller, and the craps strip and panel a notch tighter (sizes and spacing only, as the short tier does more of), so the felt keeps its dice and its pucks with the bets on it. Scoped to the craps screen (#table): the poker screen shares .player.strip and .mepanel .player and must not move */
  @media (max-width: 680px) and (min-height: 701px) and (max-height: 760px) {
    .betrow { min-height: 26px; font-size: 16px; } .betrow .fan .chip { width: 24px; height: 24px; font-size: .42rem; } .betrow .fan .chip.d100000, .betrow .fan .chip.d500000, .betrow .fan .chip.d10000000, .betrow .fan .chip.d50000000, .betrow .fan .chip.d100000000 { font-size: .36rem; } .betrow .fan .chip + .chip { margin-left: -15px; }
    #table .player.strip { min-height: 56px; }
    #table .mepanel .player { padding: 8px 12px; }
    #table .mepanel .betspot { min-height: 46px; padding: 5px 10px; } #table .betspot .quick { height: 32px; } #table .mepanel .betspot .apbtn { min-height: 32px; }
    #table .mepanel .rack { min-height: 46px; margin-top: 6px; } #table .mepanel .rack .stack { width: 42px; height: 46px; } #table .mepanel .rack .chip { width: 38px; height: 38px; font-size: .64rem; }
    #table .mepanel .actions { margin-top: 6px; } #table .mepanel .actions button:not(.icobtn) { min-height: 50px; } #table .mepanel .actions .big { padding: .3rem .5rem; }
    #table .mepanel .hint { height: 2.5em; line-height: 1.25; margin-top: 4px; }
  }
    /* short phones (an iPhone SE): your panel is compacted so the felt keeps a usable height; nothing changes look, only size and spacing */
  @media (max-width: 680px) and (max-height: 700px) {
    .screen { gap: 4px; }
    .gtop { min-height: 36px; }
    .player.strip { min-height: 50px; padding: 5px 10px; }
    .mepanel .player { padding: 6px 10px; }
    .mepanel .status { display: none; } /* the hint under the buttons says what you're doing */
    .mehead .bank { font-size: 1.25rem; }
    .mepanel .betspot { margin-top: 4px; min-height: 46px; padding: 4px 8px; }
    .mepanel .betspot .apbtn { min-height: 34px; padding: .25rem .5rem; font-size: .8rem; margin-left: 4px; }
    .mepanel .rack { min-height: 44px; margin-top: 4px; gap: 5px; } .mepanel .rack .stack { width: 40px; height: 44px; } .mepanel .rack .chip { width: 36px; height: 36px; font-size: .62rem; }
    .mepanel .actions { margin-top: 4px; gap: 6px; } .mepanel .actions button:not(.icobtn) { min-height: 46px; } .mepanel .actions .big { padding: .25rem .5rem; font-size: .95rem; } .mepanel .actions button.icobtn { width: 46px; height: 46px; flex-basis: 46px; } .mepanel .actions button.icobtn svg { width: 22px; height: 22px; }
    .mepanel .actions button:not(.big):not(.icobtn):not(.rpsbtn) { padding: .4rem .5rem; font-size: .78rem; }
    .mepanel .hint { height: 1.35em; margin-top: 4px; -webkit-line-clamp: 1; }
    .mepanel .sidelist, .mepanel .oddslist, .mepanel .speclist { max-height: 44px; font-size: .72rem; }
    .acceptspec { margin-top: 4px; font-size: .74rem; }
    .felt { padding: 6px; }
    .betrow { min-height: 26px; font-size: 16px; } .betrow .fan .chip { width: 24px; height: 24px; font-size: .42rem; } .betrow .fan .chip.d100000, .betrow .fan .chip.d500000, .betrow .fan .chip.d10000000, .betrow .fan .chip.d50000000, .betrow .fan .chip.d100000000 { font-size: .36rem; } .betrow .fan .chip + .chip { margin-left: -15px; }
    .player.strip .stk { font-size: 1.1rem; }
    .dice { margin: clamp(6px, calc(100cqh - var(--budget, 195px)), calc(76px + var(--die) * 0.37)) 0 10px; }
    .banner { font-size: 17px; } .statwrap { height: 43px; margin-top: 4px; } .ptrow { min-height: 32px; }
    .pucks { gap: 6px; } .puck { font-size: .72rem; padding: .25rem .6rem; }
    .crpot { padding: 3px 13px; } .crpot b { font-size: 18px; }
  }

  /* ---------- the ☰ table menu and the session sheet: bottom sheets over the dimmed table, in the lobby's cartoon style ---------- */
  .modal.tsheet { align-items: flex-end; justify-content: center; padding: 0; background: rgba(6,20,12,.62); }
  .sheet.tsh { max-width: 440px; width: 100%; height: calc(100vh - 36px); height: calc(var(--app-h, 100dvh) - 36px); max-height: calc(100vh - 36px); max-height: calc(var(--app-h, 100dvh) - 36px); background: #0B3D22; border: 4px solid var(--ink2); border-bottom: 0; border-radius: 28px 28px 0 0; padding: 10px 16px 0; box-shadow: none; color: #fff; font-family: var(--lilita); overflow: hidden; }
  @media (min-width: 681px) { .sheet.tsh { height: min(calc(var(--app-h, 100dvh) - 36px), 900px); } }
  .tsh .grip { width: 100px; height: 8px; border-radius: 999px; background: #5B6B7A; margin: 0 auto 6px; flex: 0 0 8px; }
  .tsh .tshead { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 60px; }
  .tsh .tstitle { margin: 0; font: 30px/1.1 var(--marker); font-weight: 400; color: var(--lob-yellow); text-transform: none; letter-spacing: 0; text-shadow: -2px -2px 0 var(--ink2), 2px -2px 0 var(--ink2), -2px 2px 0 var(--ink2), 2px 2px 0 var(--ink2), 0 5px 0 var(--ink2); transform: rotate(-2deg); transform-origin: left center; padding: 6px 0 4px; }
  .tsh .xclose { position: relative; top: auto; right: auto; flex: 0 0 48px; width: 48px; height: 48px; padding: 0; border-radius: 50%; background: #5B6B7A; color: #fff; border: 4px solid var(--ink2); box-shadow: 0 4px 0 var(--ink2); font: 30px/1 var(--lilita); display: grid; place-items: center; transition: none; }
  .tsh .xclose:hover:not(:disabled) { filter: none; } .tsh .xclose:active:not(:disabled) { transform: translateY(2px); box-shadow: 0 2px 0 var(--ink2); }
  .tsh .tsnote { margin: 4px 0 0; font: 800 15px/1.4 var(--nunito); color: #D6F2E0; }
  .tsh .tsbody { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; display: flex; flex-direction: column; margin: 0 -16px; padding: 0 16px 4px; }
  .tsh .tsbody > * { flex-shrink: 0; }
  .tsh .foot { position: static; flex: 0 0 auto; margin: 0 -16px; padding: 10px 16px calc(14px + env(safe-area-inset-bottom)); background: #0B3D22; border-top: 2px solid rgba(255,255,255,.14); }
  .tsh .foot .actions { display: flex; gap: 12px; align-items: stretch; margin: 0; flex-wrap: nowrap; }
  .tsh .foot .tbtn { min-height: 60px; } .tsh .foot .tbtn.side { flex: 0 0 auto; min-width: 112px; } .tsh .foot .tbtn.main { flex: 1 1 auto; min-width: 0; flex-direction: column; gap: 2px; padding: 6px 12px; }
  .tsh .foot .tbtn.main b { font-weight: 400; } .tsh .foot .tbtn.main small { font: 800 13px/1.15 var(--nunito); text-shadow: none; }
  /* the chunky buttons: 4 px ink, a drop edge, Lilita */
  .tbtn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 16px; border: 4px solid var(--ink2); border-radius: 16px; box-shadow: 0 5px 0 var(--ink2); background: #FFD23F; color: var(--ink2); font: 21px/1 var(--lilita); font-weight: 400; text-decoration: none; white-space: nowrap; transition: none; }
  .tbtn svg { width: 22px; height: 22px; flex: 0 0 auto; }
  .tbtn:hover:not(:disabled) { filter: none; } .tbtn:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 2px 0 var(--ink2); }
  .tbtn.gold { background: #FFD23F; } .tbtn.blue { background: #3FA9F5; } .tbtn.green { background: #7ED957; } .tbtn.purple { background: #B57BFF; } .tbtn.grey { background: #5B6B7A; color: #fff; }
  .tbtn.red { background: #E8505B; color: #fff; text-shadow: 2px 2px 0 var(--ink2), -1px -1px 0 var(--ink2), 1px -1px 0 var(--ink2), -1px 1px 0 var(--ink2); }
  .tbtn.rig { background: #1A1F27; color: #F0B429; } /* the admin console's look */
  /* the invite card */
  .invcard { margin-top: 6px; padding: 12px 14px 13px; background: #FFF4D6; color: var(--ink2); border: 4px solid var(--ink2); border-radius: 22px; box-shadow: 0 6px 0 var(--ink2); transform: rotate(-.5deg); }
  .invcard .invtop { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
  .invcard small { display: block; font: 800 13px/1 var(--nunito); letter-spacing: .12em; text-transform: uppercase; color: #6b5a2a; }
  .invcard .invl { min-width: 0; } .invcard .invcode { display: block; margin-top: 6px; font: 600 34px/1 var(--mono); letter-spacing: .18em; white-space: nowrap; } .invcard .invcode.long { font-size: 22px; letter-spacing: .02em; margin-top: 12px; }
  .invcard .invr { text-align: right; flex: 0 0 auto; } .invcard .invr b { display: block; margin-top: 8px; font: 30px/1 var(--lilita); font-weight: 400; }
  .invcard .invbtns { display: flex; gap: 12px; margin-top: 12px; } .invcard .invbtns .tbtn { flex: 1 1 0; min-width: 0; min-height: 46px; } .invcard .invbtns #copyBtn { flex-grow: 1.3; }
  .wpill { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; min-height: 40px; padding: 0 14px; background: #06281A; border: 3px solid var(--ink2); border-radius: 999px; font: 17px/1 var(--lilita); color: #fff; }
  .wpill.pausepill { background: #3A2E12; color: #FFE08A; } .tsbody > .wpill.pausepill:first-child { align-self: flex-start; margin: 0 0 4px; } /* (against the computer: the game waits while the ☰ menu is open, so a player can leave between hands without being dealt in; it is the first line of each menu, above the code: its 4px and the card's 6px make the 10px gap, and hidden, nothing above the code moves) */
  /* the You row: one button to My account */
  .yourow { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 64px; margin-top: 12px; padding: 6px 12px; background: #06281A; border: 3px solid var(--ink2); border-radius: 20px; color: #fff; text-align: left; font-family: var(--lilita); font-weight: 400; transition: none; }
  .yourow:hover:not(:disabled) { filter: none; } .yourow:active:not(:disabled) { transform: none; background: #0A3A24; }
  .yourow .avw { font-size: 48px; } .yourow .av { background: #FFE9B8; border: 3px solid var(--ink2); box-sizing: border-box; }
  .yourow .who { flex: 1 1 auto; min-width: 0; } .yourow .who > b { display: block; font: 20px/1.1 var(--lilita); font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .yourow .who .pid { font: 600 14px/1 var(--mono); color: #C9D2D8; margin-left: 5px; }
  .yourow .who small { display: block; margin-top: 4px; font: 17px/1 var(--lilita); color: #D6F2E0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .yourow .who small b { font-weight: 400; color: #fff; }
  .yourow .goacct { display: inline-flex; align-items: center; gap: 2px; color: #FFD23F; font: 18px/1 var(--lilita); white-space: nowrap; flex: 0 0 auto; } .yourow .goacct svg { width: 18px; height: 18px; }
  /* the host's buy-in editor */
  .hostcard { margin-top: 12px; padding: 10px 12px 10px; background: #06281A; border: 3px solid var(--ink2); border-radius: 20px; }
  .hostcard .hosthd { display: flex; align-items: center; justify-content: space-between; gap: 10px; font: 17px/1.15 var(--lilita); }
  .hostcard .hosttag { flex: 0 0 auto; font: 800 12px/1 var(--nunito); font-style: normal; letter-spacing: .1em; text-transform: uppercase; background: #FFD23F; color: var(--ink2); padding: 6px 10px; border-radius: 999px; }
  .hostcard .hostrow { display: flex; gap: 10px; margin-top: 8px; align-items: stretch; }
  .hostcard input { flex: 1 1 auto; min-width: 0; width: auto; height: 50px; padding: 0 12px; background: #fff; color: var(--ink2); border: 3px solid var(--ink2); border-radius: 14px; font: 24px/1 var(--lilita); }
  .hostcard input:focus { border-color: var(--ink2); box-shadow: 0 0 0 3px #FFD23F; }
  .hostcard .tbtn { flex: 0 0 auto; min-height: 50px; }
  .hostcard .hostnote { margin-top: 7px; font: 800 13px/1.3 var(--nunito); color: #CFE8D6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .hostcard .hostnote.bad { color: #FF8A8A; }
  /* How to play · Rig the dice · Game modes */
  .menubtns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; } .menubtns .tbtn { flex: 1 1 calc(50% - 6px); min-width: 0; min-height: 48px; }
  /* How it works, collapsed until tapped */
  .howit { margin-top: 12px; background: #06281A; border: 3px solid var(--ink2); border-radius: 18px; overflow: hidden; }
  .howit .howithd { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 50px; padding: 0 16px; background: transparent; color: #fff; font: 20px/1 var(--lilita); font-weight: 400; border-radius: 0; text-align: left; transition: none; }
  .howit .howithd:hover:not(:disabled) { filter: none; } .howit .howithd:active:not(:disabled) { transform: none; }
  .howit .howithd svg { width: 22px; height: 22px; flex: 0 0 auto; transition: transform .2s; } .howit.open .howithd svg { transform: rotate(180deg); }
  .howit .howitbody { display: none; padding: 0 16px 14px; font: 800 15px/1.45 var(--nunito); color: #D6F2E0; } .howit.open .howitbody { display: block; } .howit .howitbody b { color: #fff; }
  /* the table log: newest first, a dot per kind, the box fills what's left of the sheet */
  .tsh .loghd { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 14px 0 6px; }
  .tsh .tsh3 { margin: 0; font: 26px/1 var(--marker); font-weight: 400; color: #fff; text-shadow: 3px 3px 0 var(--ink2); text-transform: none; letter-spacing: 0; }
  .tsh .loghd small { font: 800 15px/1 var(--nunito); color: #D6F2E0; }
  .tsh .log { flex: 1 1 auto; min-height: 150px; max-height: none; margin: 0 0 12px; padding: 6px 14px; background: #06281A; border: 3px solid var(--ink2); border-radius: 18px; overflow-y: auto; overscroll-behavior: contain; font: 800 16px/1.35 var(--nunito); color: #fff; }
  .tsh .log div { display: flex; gap: 10px; align-items: flex-start; padding: 9px 0; border-bottom: 2px dashed rgba(255,255,255,.12); } .tsh .log div:last-child { border-bottom: 0; }
  .tsh .log i { flex: 0 0 10px; width: 10px; height: 10px; margin-top: 6px; border-radius: 50%; background: #C9D2D8; } .tsh .log i.g { background: #7ED957; } .tsh .log i.y { background: #FFD23F; }
  .tsh .log span { min-width: 0; overflow-wrap: anywhere; }
  /* the "See session recap →" nudge at the top right of the lobby (Settings: Session recap off): a tap opens the recap, a swipe sideways or ten seconds take it away */
  .recapnudge { position: fixed; top: calc(10px + env(safe-area-inset-top)); right: 10px; z-index: 30; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px 0 16px; background: #FFF4D6; color: var(--ink2); border: 4px solid var(--ink2); border-radius: 999px; box-shadow: 0 4px 0 var(--ink2), 0 10px 30px rgba(0,0,0,.45); font: 18px/1 var(--lilita); font-weight: 400; white-space: nowrap; touch-action: pan-y; transition: transform .18s, opacity .18s; animation: nudgein .3s cubic-bezier(.2, .9, .3, 1.2) both; }
  .recapnudge i { font-style: normal; font-size: 22px; line-height: 1; }
  /* the recap's foot with Play again (rejoin-rebuy-play-again.md §2.4): Share and Save step back to icons so the green main button keeps its words on a 360 phone; the note under the buttons when Play again can't start, its Quests link in the note's own colour */
  #recapModal .foot { display: flex; flex-direction: column; gap: 8px; }
  #recapModal #recapAgainNote { margin: 0; }
  #recapModal .actions.again .tbtn.side { min-width: 0; flex: 0 0 auto; padding: 0 14px; } #recapModal .actions.again .tbtn.side .lbl { display: none; }
  @media (min-width: 480px) { #recapModal .actions.again .tbtn.side { padding: 0 16px; } #recapModal .actions.again .tbtn.side .lbl { display: inline; } }
  #recapAgainNote .linkbtn { background: none; border: 0; padding: 0; margin: 0; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; box-shadow: none; }
  .recapnudge:hover:not(:disabled) { filter: none; } .recapnudge:active:not(:disabled) { transform: translateY(2px); box-shadow: 0 2px 0 var(--ink2), 0 10px 30px rgba(0,0,0,.45); }
  @keyframes nudgein { from { opacity: 0; transform: translateX(40px); } }
  /* the session sheet: the scorecard stays put, the tiles scroll under it */
  .scorecard { flex: 0 0 auto; margin: 8px 0 4px; padding: 12px 14px 14px; background: #FFF4D6; color: var(--ink2); border: 4px solid var(--ink2); border-radius: 22px; box-shadow: 0 6px 0 var(--ink2); transform: rotate(-.6deg); }
  .scorecard:empty { display: none; }
  .scorecard .sctop { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
  .scorecard .scnet { min-width: 0; } .scorecard .lbl { display: block; font: 800 13px/1 var(--nunito); letter-spacing: .12em; text-transform: uppercase; color: #6b5a2a; }
  .scorecard .net { display: block; margin-top: 6px; font: 46px/1 var(--marker); color: var(--ink2); white-space: nowrap; } .scorecard .net.pos { color: #2E9A55; } .scorecard .net.neg { color: #C8323C; }
  .scorecard .net.n6 { font-size: 44px; } .scorecard .net.n7 { font-size: 38px; } .scorecard .net.n8 { font-size: 33px; } .scorecard .net.n10 { font-size: 26px; } .scorecard .net.n12 { font-size: 22px; }
  .scorecard .pills { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex: 0 1 auto; min-width: 0; max-width: 60%; }
  .scorecard .pill { display: inline-flex; align-items: center; gap: 3px; max-width: 100%; min-height: 38px; padding: 0 12px; background: #fff; border: 3px solid var(--ink2); border-radius: 999px; font: 18px/1 var(--lilita); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .scorecard .pill.rec { letter-spacing: .06em; } .scorecard .pill .w { color: #2E9A55; } .scorecard .pill .l { color: #C8323C; } .scorecard .pill .dot { margin: 0 4px; }
  .scorecard .minis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
  .scorecard .mini { min-width: 0; padding: 9px 3px 8px; background: #FFFBEA; border: 3px solid var(--ink2); border-radius: 16px; text-align: center; }
  .scorecard .mini b { display: block; font: 26px/1 var(--lilita); font-weight: 400; } .scorecard .mini small { display: block; margin-top: 4px; font: 800 11px/1.1 var(--nunito); letter-spacing: .03em; text-transform: uppercase; color: #6b5a2a; }
  .tsh .sgrp { margin: 14px 0 0; font: 26px/1 var(--marker); font-weight: 400; color: #fff; text-shadow: 3px 3px 0 var(--ink2); text-transform: none; letter-spacing: 0; }
  .tsh .tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 8px; }
  .tsh .tile { min-width: 0; padding: 11px 10px 10px; background: #06281A; border: 3px solid var(--ink2); border-radius: 18px; }
  .tsh .tile.w2 { grid-column: span 2; } .tsh .tile.w3 { grid-column: span 3; }
  .tsh .tile small { display: block; font: 800 11.5px/1.2 var(--nunito); letter-spacing: .04em; text-transform: uppercase; color: #CFE8D6; }
  .tsh .tile b { display: block; margin-top: 5px; font: clamp(15px, 4.1vw, 18px)/1.05 var(--lilita); font-weight: 400; overflow-wrap: anywhere; } .tsh .tile b.pos { color: #7ED957; } .tsh .tile b.neg { color: #FF8A8A; }
  @media (max-width: 379px) {
    .tsh .tiles { gap: 8px; } .tsh .tile { padding: 10px 9px 9px; }
    .scorecard .minis { gap: 8px; } .scorecard .mini b { font-size: 24px; } .scorecard .pill { font-size: 17px; padding: 0 10px; }
    .invcard .invcode { font-size: 30px; } .invcard .invr b { font-size: 26px; } .tbtn { font-size: 19px; padding: 0 12px; }
  }

  /* ---------- your panel since the cleanup (craps-table-cleanup.md §5, the poker panel's): the head, the round card or the bet card, the one-height action row. Scoped to the craps screen: the poker panel must not move ---------- */
  #bottomSeat { --cardh: 152px; --acth: 68px; }
  #table .mepanel .player.me.turn { border-color: #FFD23F; box-shadow: 0 4px 0 #E8B820, inset 0 0 0 2px rgba(230,184,76,.55); } /* (your move: the edge turns the poker panel's yellow, never while the dice tumble) */
  #bottomSeat #hint, #bottomSeat #vetoBox, #bottomSeat > .status { display: none !important; } /* (the rule is the round card's line; the veto's chances are on its buttons and the card) */
  #bottomSeat .crhead { gap: 10px; }
  #bottomSeat .crhead .name { font-size: 1.05rem; gap: 6px; flex-wrap: nowrap; white-space: nowrap; overflow: hidden; align-items: center; height: 26px; }
  #bottomSeat .crhead .name .nm, .crstrip .name .nm { flex: 0 0 auto; } #bottomSeat .crhead .name .ttl, .crstrip .name .ttl { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; } /* (the title gives way first; the name stays whole) */
  .crstrip .name { height: 24px; align-items: center; }
  #bottomSeat .crhead .name .ttl { max-width: 7em; font-size: .7rem; }
  #bottomSeat .crhead .line { font-size: .9rem; } #bottomSeat .crhead .line b { color: #fff; }
  #bottomSeat .crhead .bank { font-size: 1.7rem; }
  /* the round card: the poker hand card's look, one fixed height in every state */
  #bottomSeat .rcard, #bottomSeat .betcard { margin-top: 8px; background: #FFF4D6; border: 4px solid var(--ink2); border-radius: 18px; box-shadow: 0 4px 0 var(--ink2); padding: 9px 12px 10px; color: var(--ink2); height: var(--cardh); display: flex; flex-direction: column; text-align: left; overflow: hidden; }
  #bottomSeat .rchd { display: flex; align-items: center; gap: 8px; height: 22px; flex: 0 0 auto; }
  #bottomSeat .rchd.haschips .rclbl { display: none; } /* (the modes' icons need the row: the label gives way) */
  #bottomSeat .rclbl, #bottomSeat .bcleft .label { font: 800 13px/1 var(--nunito); letter-spacing: .14em; text-transform: uppercase; color: #6b5a2a; flex: 0 0 auto; white-space: nowrap; }
  #bottomSeat .bcleft .label small { font-size: 11px; letter-spacing: .04em; text-transform: none; }
  #bottomSeat .rcpills { margin-left: auto; display: flex; gap: 5px; align-items: center; min-width: 0; overflow: hidden; }
  #bottomSeat .rcpills .puck { flex: 0 0 auto; font-size: .58rem; padding: .12rem .45rem; border-width: 2px; white-space: nowrap; }
  #bottomSeat .rcpills .bcpill { height: 22px; padding: 0 10px; font-size: 13px; box-shadow: 0 2px 0 var(--ink2); border-width: 2px; flex: 0 0 auto; }
  #bottomSeat .rcstate { font: 30px/32px var(--lilita); height: 32px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  #bottomSeat .rcrule { font: 15px/1.2 var(--lilita); color: #5a4d2e; height: 2.4em; margin-top: 2px; overflow: hidden; display: flex; flex-direction: column; }
  #bottomSeat .rcrule .rr { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } #bottomSeat .rcrule .rr b { color: var(--ink2); font-weight: 400; }
  #bottomSeat .rcrule.withhist .rr { -webkit-line-clamp: 1; } /* (the history takes the second line once the first roll after the come-out lands) */
  #bottomSeat .rcrule .rh { font: 800 13px/1.25em var(--nunito); color: #6b5a2a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  #bottomSeat .rcfoot { margin-top: auto; display: flex; align-items: center; gap: 8px; min-height: 26px; }
  #bottomSeat .rcnote { font: 800 13px/1.2 var(--nunito); color: #6b5a2a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
  #bottomSeat .rtag.push { background: #5B6B7A; }
  /* the bet card: the amount on the left, the buttons on the right, the rack and Exchange under them */
  #bottomSeat .betcard .betspot { display: flex; align-items: flex-start; gap: 8px; flex-wrap: nowrap; margin: 0; padding: 0; min-height: 0; border: 0; border-radius: 0; }
  #bottomSeat .bcleft { display: flex; flex-direction: column; gap: 4px; flex: 0 0 auto; min-width: 0; }
  #bottomSeat .bcleft .amt { margin: 0; font: 34px/1 var(--lilita); font-weight: 400; color: var(--ink2); white-space: nowrap; }
  #bottomSeat .bcbtns { margin-left: auto; display: flex; flex-wrap: wrap; justify-content: flex-end; align-content: center; gap: 6px; min-width: 0; }
  #bottomSeat .bcpill { height: 30px; padding: 0 13px; border: 3px solid var(--ink2); border-radius: 999px; box-shadow: 0 3px 0 var(--ink2); background: #5B6B7A; color: #fff; font: 17px/1 var(--lilita); font-weight: 400; white-space: nowrap; transition: none; }
  #bottomSeat .bcpill:hover:not(:disabled) { filter: none; } #bottomSeat .bcpill:active:not(:disabled) { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink2); } #bottomSeat .bcpill:disabled { opacity: .45; }
  #bottomSeat .bcpill.white { background: #fff; color: var(--ink2); } #bottomSeat .bcpill.side { background: #3FA9F5; color: var(--ink2); } #bottomSeat .bcpill.odds { background: #7ED957; color: var(--ink2); }
  #bottomSeat .bcbtns .apbtn { min-height: 30px; height: 30px; margin: 0; padding: 0 12px; border-radius: 999px; font-size: .82rem; gap: 4px; background: #06281A; }
  #bottomSeat .betcard .approg { margin: 0; } #bottomSeat .betcard .approg small { color: #6b5a2a; }
  #bottomSeat .rackrow { margin-top: auto; display: flex; align-items: center; gap: 8px; }
  #bottomSeat .rackrow .rack { flex: 1 1 auto; min-width: 0; margin: 0; min-height: 0; flex-wrap: nowrap; gap: 6px; }
  #bottomSeat .rackrow .rack.tight .stack { width: 40px; height: 44px; } #bottomSeat .rackrow .rack.tight .chip { width: 36px; height: 36px; font-size: .6rem; }
  #bottomSeat .rackrow .rack.tighter { gap: 3px; } #bottomSeat .rackrow .rack.tighter .stack { width: 34px; height: 38px; } #bottomSeat .rackrow .rack.tighter .chip { width: 30px; height: 30px; font-size: .5rem; } #bottomSeat .rackrow .rack.tighter .cnt { font-size: .6rem; padding: 0 4px; }
  #bottomSeat .rackrow .xch { width: 44px; height: 44px; flex: 0 0 44px; }
  /* the action row: one height in every state (poker's --acth); the reactions button on the left, the main button on the right */
  #bottomSeat #controls .actions { height: var(--acth); flex-wrap: nowrap; align-items: stretch; gap: 8px; margin-top: 10px; }
  #bottomSeat #controls .actions > button { min-height: 0 !important; height: 100%; flex: 1 1 0; min-width: 0; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; padding: 4px 8px; font-family: var(--lilita); font-weight: 400; font-size: 23px; line-height: 1.05; letter-spacing: 0; 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); text-align: center; overflow-wrap: anywhere; }
  #bottomSeat #controls .actions > button .sub { font: 14px/1 var(--lilita); opacity: .95; margin: 0; letter-spacing: 0; }
  #bottomSeat #controls .actions > button.secondary { background: #5B6B7A; color: #fff; }
  #bottomSeat #controls .actions > #emoteBtn { flex: 0 0 60px; width: 60px; border-radius: 16px; padding: 0; }
  #bottomSeat #controls .actions > #allInBtn { flex: 0 0 30%; }
  #bottomSeat #controls .actions > .big.go .sub, #bottomSeat #controls .actions > .big.danger .sub, #bottomSeat #controls .actions > #allInBtn .sub { color: #fff; text-shadow: 1px 1px 0 var(--ink2), -1px -1px 0 var(--ink2), 1px -1px 0 var(--ink2), -1px 1px 0 var(--ink2); }
  #bottomSeat #controls .actions > #allInBtn { color: #fff; text-shadow: 1px 1px 0 var(--ink2), -1px -1px 0 var(--ink2), 1px -1px 0 var(--ink2), -1px 1px 0 var(--ink2); }
  #bottomSeat #controls .actions > .big.moment { background: #B57BFF; color: #fff; } #bottomSeat #controls .actions > .big.moment .cam { font-size: .8em; } #bottomSeat #controls .actions > .big.moment .lbl1 { white-space: nowrap; line-height: 1; }
  #bottomSeat .actnote { order: 1; flex: 1 1 0; min-width: 0; display: grid; place-items: center; padding: 0 10px; border: 3px dashed rgba(255,255,255,.32); border-radius: 16px; font: 20px/1.2 var(--lilita); color: #D6F2E0; text-align: center; overflow: hidden; }
  #bottomSeat #controls .actions > .icobtn { order: -2; } #bottomSeat #controls .actions > button:not(.big):not(.icobtn):not(.rpsbtn) { order: -1; } #bottomSeat #controls .actions > .big, #bottomSeat #controls .actions > .rpsbtn { order: 1; }
  body.lefty #bottomSeat #controls .actions > .icobtn { order: 2; } body.lefty #bottomSeat #controls .actions > button:not(.big):not(.icobtn):not(.rpsbtn) { order: -1; } body.lefty #bottomSeat #controls .actions > .big, body.lefty #bottomSeat #controls .actions > .rpsbtn { order: -2; } /* Left-handed: mirrored (the main button on the left, the reactions button on the right; the note keeps its place) */
  #sideSheet .sidelist, #sideSheet .oddslist, #sideSheet .speclist { margin-top: 10px; }
  @media (max-width: 680px) {
    #bottomSeat { --cardh: 148px; --acth: 64px; }
    #bottomSeat .crhead .bank { font-size: 1.5rem; }
    #bottomSeat #controls .actions > button { font-size: 22px; }
  }
  @media (max-width: 680px) and (max-height: 760px) {
    #bottomSeat { --cardh: 138px; --acth: 60px; }
    #bottomSeat .rcstate { font-size: 26px; line-height: 28px; height: 28px; } #bottomSeat .rcrule { font-size: 14px; } #bottomSeat .bcleft .amt { font-size: 30px; }
    #bottomSeat #controls .actions { margin-top: 8px; } #bottomSeat #controls .actions > button { font-size: 21px; } #bottomSeat #controls .actions > button .sub { font-size: 13px; }
    #bottomSeat .bcpill { height: 28px; font-size: 15px; padding: 0 11px; } #bottomSeat .bcbtns .apbtn { height: 28px; min-height: 28px; }
  }
  @media (max-width: 680px) and (max-height: 700px) {
    #bottomSeat { --cardh: 124px; --acth: 56px; }
    #bottomSeat .rcard, #bottomSeat .betcard { margin-top: 6px; padding: 6px 10px 7px; }
    #bottomSeat .rclbl, #bottomSeat .bcleft .label { font-size: 11px; } #bottomSeat .rchd { height: 20px; } #bottomSeat .rcpills .bcpill { height: 20px; font-size: 12px; } #bottomSeat .rcpills .puck.mini { width: 20px; height: 20px; }
    #bottomSeat .rcstate { font-size: 23px; line-height: 25px; height: 25px; margin-top: 2px; } #bottomSeat .rcrule { font-size: 14px; } #bottomSeat .rcfoot { min-height: 18px; }
    #bottomSeat .crhead .bank { font-size: 1.3rem; } #bottomSeat .crhead .line { font-size: .82rem; }
    #bottomSeat .bcleft .amt { font-size: 26px; } #bottomSeat .bcpill { height: 26px; font-size: 14px; padding: 0 9px; border-width: 2px; } #bottomSeat .bcbtns { gap: 4px; } #bottomSeat .bcbtns .apbtn { height: 26px; min-height: 26px; font-size: .72rem; }
    #bottomSeat .rackrow .xch { width: 38px; height: 38px; flex-basis: 38px; }
    #bottomSeat #controls .actions { margin-top: 6px; gap: 6px; } #bottomSeat #controls .actions > button { font-size: 19px; border-radius: 14px; } #bottomSeat #controls .actions > #emoteBtn { flex-basis: 52px; width: 52px; }
  }
  @media (max-width: 379px) { #bottomSeat .bcpill { padding: 0 9px; } #bottomSeat .bcbtns .apbtn { padding: 0 8px; } #bottomSeat .rcpills .bcpill { padding: 0 7px; } }
  #bottomSeat .rcfoot .segs { gap: 3px; } #bottomSeat .rcfoot .sword { min-width: 3.6em; }
  .felt .dicelabels span { width: calc(var(--die, 76px) + 18px); } .felt .dicelabels { gap: 2px; } /* (a name a little wider than its die, so a short phone's small dice don't clip it) */
  @media (max-width: 379px) { #bottomSeat .rcfoot .slbl { font-size: 11px; letter-spacing: .06em; } #bottomSeat .rcfoot .sword { font-size: 17px; min-width: 3.2em; } #bottomSeat .rcfoot { gap: 6px; } }
  @media (max-width: 680px) and (max-height: 700px) { #bottomSeat .rcfoot .slbl { font-size: 11px; letter-spacing: .08em; } }
  #bottomSeat .rcpills { flex: 0 1 auto; } #bottomSeat .rcchips { display: flex; gap: 4px; min-width: 0; overflow: hidden; order: -1; }
  #bottomSeat .rcpills .puck.mini { width: 24px; height: 24px; padding: 0; display: grid; place-items: center; font-size: .72rem; letter-spacing: 0; border-width: 2px; flex: 0 0 auto; } /* (a mode's puck in the card: its icon, its colours, its words as the title) */
  /* the roll tracker in your bet's row once the round's first roll is down: small numbers, a bullet between each, the latest brighter; one line, the oldest give way to "…" */
  .betrow.trk { overflow: hidden; white-space: nowrap; }
  .betrow .rolls { display: inline-flex; align-items: center; gap: 7px; font: 17px/1 var(--lilita); color: rgba(255,244,214,.62); text-shadow: 0 1px 2px rgba(0,0,0,.5); }
  .betrow .rolls .r.last { color: #FFF4D6; } .betrow .rolls .sep { font-style: normal; font-size: .8em; color: rgba(255,244,214,.38); } .betrow .rolls .more { font-style: normal; }
  .betrow .rolls s { text-decoration-thickness: 2px; }
  @media (max-width: 680px) { .betrow .rolls { font-size: 16px; gap: 6px; } }
  @media (max-width: 680px) and (max-height: 700px) { .betrow .rolls { font-size: 14px; gap: 5px; } }
  /* the craps dice a little further apart (Kiril: mid-tumble they piled over each other): a die spinning through 45° is 1.4× its side corner to corner, so the old 20 px gap let the corners meet */
  #diceWrap.dice { gap: 40px; } #feltArea .dicelabels { gap: 22px; }
  @media (max-width: 680px) { #diceWrap.dice { gap: 32px; } #feltArea .dicelabels { gap: 14px; } }

  /* ---------- the craps bet sheets as bottom sheets in the ☰ menu's look (old-sheets-new-style.md §2; the blocks are in sheets.css) ---------- */
  /* Exchange with the dealer: what you give and what you get in two dark boxes, the get side scrolling inside its box, the totals in a cream card */
  #xmodal .xbox { padding: 12px 8px 8px; } #xmodal .xbox .tslbl { margin: 0 4px 8px; }
  #xmodal .xgetbox { flex: 1 1 0; min-height: 190px; display: flex; flex-direction: column; } #xmodal .xgetbox .xrow { flex: 1 1 0; min-height: 0; }
  #xmodal .xrow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px 4px; margin: 0; align-content: start; }
  #xmodal .xcell { min-width: 0; padding: 5px 1px 7px; gap: 5px; background: transparent; border: 3px solid transparent; border-radius: 16px; overflow: visible; }
  #xmodal .xcell.on { border-color: #FFD23F; background: #0F4A2C; }
  #xmodal .xcell .chip.sm { width: 36px; height: 36px; font-size: .6rem; } #xmodal .xcell .chip.sm.d100000, #xmodal .xcell .chip.sm.d500000, #xmodal .xcell .chip.sm.d10000000, #xmodal .xcell .chip.sm.d50000000, #xmodal .xcell .chip.sm.d100000000 { font-size: .52rem; }
  #xmodal .xcell .have { font: 16px/1 var(--lilita); color: #CFE8D6; } #xmodal .xcell .have b { font-weight: 400; color: #fff; }
  #xmodal .xcell .pm { gap: 3px; } #xmodal .xcell .pm5 { gap: 6px; }
  #xmodal .xcell .pm button, #xmodal .xcell .pm5 button { padding: 0; background: #5B6B7A; color: #fff; border: 3px solid var(--ink2); box-shadow: 0 3px 0 var(--ink2); font: 20px/1 var(--lilita); font-weight: 400; transition: none; }
  #xmodal .xcell .pm button { width: 24px; height: 26px; border-radius: 8px; border-width: 2px; font-size: 18px; } #xmodal .xcell .pm5 button { width: 28px; height: 22px; border-radius: 8px; border-width: 2px; background: #3E4A56; font-size: 13px; }
  #xmodal .xcell .pm span { min-width: 20px; font: 22px/1 var(--lilita); color: #fff; }
  #xmodal .xcell button:active:not(:disabled) { background: #FFD23F; color: var(--ink2); transform: translateY(2px); box-shadow: 0 1px 0 var(--ink2); }
  #xmodal .xcell button:disabled { opacity: .3; }
  #xmodal .xtotals { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: nowrap; margin: 12px 0 6px; padding: 10px 14px; font-weight: 400; }
  #xmodal .xt { min-width: 0; display: flex; flex-direction: column; gap: 4px; } #xmodal .xt.r { text-align: right; }
  #xmodal .xt small { font: 800 12px/1 var(--nunito); letter-spacing: .12em; text-transform: uppercase; color: #6b5a2a; } #xmodal .xt b { font: 28px/1 var(--lilita); font-weight: 400; }
  #xmodal #xstatus { flex: 0 1 auto; min-width: 0; padding: 6px 12px; border: 3px solid var(--ink2); border-radius: 999px; font: 16px/1.1 var(--lilita); text-align: center; }
  #xmodal #xstatus.ok { background: #7ED957; color: var(--ink2); } #xmodal #xstatus.bad { background: #E8505B; color: #fff; }
  /* Place a side bet: How side bets work folded away, Just one · Choose multiple, the bets in two columns, the picked one's cream card, the amount */
  #sbModal .sbhow { margin-top: 4px; } #sbModal .sbhow .howithd svg { color: #FFD23F; }
  #sbModal .sbmode { margin-top: 12px; } #sbModal .sbmode > button { min-height: 50px; font-size: 20px; }
  #sbModal .sbtbox { flex: 1 1 0; min-height: 170px; display: flex; flex-direction: column; padding: 10px; }
  #sbModal .sbtypes { flex: 1 1 0; min-height: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; align-content: start; padding: 2px 1px 22px; }
  #sbModal .sbtypes button { min-width: 0; padding: 9px 10px 10px; gap: 4px; background: #0B3D22; color: #fff; border: 3px solid var(--ink2); border-radius: 16px; box-shadow: 0 4px 0 var(--ink2); font: 20px/1.05 var(--lilita); font-weight: 400; text-align: left; transition: none; }
  #sbModal .sbtypes button small { font: 800 12px/1.25 var(--nunito); color: #C9E3D3; }
  #sbModal .sbtypes button.active { background: #FFD23F; color: var(--ink2); border-color: var(--ink2); } #sbModal .sbtypes button.active small { color: #6b5a2a; }
  #sbModal .sbtypes button:hover:not(:disabled) { filter: none; } #sbModal .sbtypes button:active:not(:disabled) { transform: translateY(2px); box-shadow: 0 2px 0 var(--ink2); }
  #sbModal .sbtypes button:disabled { opacity: .45; }
  #sbModal .sbtypes.multi button { padding-right: 40px; }
  #sbModal .sbtypes button .chk { top: 9px; right: 9px; width: 24px; height: 24px; border-radius: 7px; border: 3px solid var(--ink2); background: #1B3B2A; box-shadow: 0 2px 0 var(--ink2); color: var(--ink2); font: 16px/1 var(--lilita); }
  #sbModal .sbtypes.multi button.active .chk { background: #7ED957; border-color: var(--ink2); }
  #sbModal .explain { line-height: 1.4; }
  #sbModal .explain > b:first-child { font: 21px/1.1 var(--lilita); font-weight: 400; }
  #sbModal .explain .muted { font: inherit; color: #6b5a2a; }
  #sbModal .explain .row { gap: 8px; margin-top: 10px; color: var(--ink2); }
  #sbModal .explain .row span { display: inline-flex; align-items: center; gap: 4px; min-height: 34px; padding: 0 12px; background: #fff; border: 3px solid var(--ink2); border-radius: 999px; font: 16px/1 var(--lilita); }
  #sbModal .explain .row span:first-child { background: #7ED957; } #sbModal .explain .row b { font-weight: 400; color: var(--ink2); }
  #sbModal .hop { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 12px; }
  #sbModal .hop > .muted, #sbModal .multipicks .hop > b { flex: 0 0 100%; font: 800 12px/1.2 var(--nunito); letter-spacing: .12em; text-transform: uppercase; color: #9FD3B5; }
  #sbModal .hop > span:not(.muted):not(.segrow) { font: 22px/1 var(--lilita); color: #fff; }
  #sbModal .hop .segrow { flex: 1 1 0; gap: 6px; } #sbModal .hop .segrow button { min-height: 44px; padding: 4px 2px; font-size: 19px; }
  #sbModal .picks { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; width: 100%; }
  #sbModal .picks button, #sbModal .picks.opts button { width: auto; height: auto; min-width: 0; min-height: 46px; padding: 4px 6px; background: #06281A; color: #fff; border: 3px solid var(--ink2); border-radius: 14px; box-shadow: 0 3px 0 var(--ink2); font: 20px/1.1 var(--lilita); font-weight: 400; transition: none; }
  #sbModal .picks.opts { grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); } #sbModal .picks.opts button { font-size: 17px; }
  #sbModal .picks button.active { background: #FFD23F; color: var(--ink2); }
  #sbModal .multipicks { gap: 4px; margin-top: 4px; }
  /* Side bet settings: the switch and the three limits in a dark box, the paytable as an option row, the allowed bets as ticks scrolling inside their box */
  #sbSettingsModal .ssbox .setrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0; padding: 6px 0; font: 21px/1.1 var(--lilita); color: #fff; }
  #sbSettingsModal .ssbox .setrow + .setrow, #sbSettingsModal .ssbox .parsedamt + .setrow { margin-top: 6px; }
  #sbSettingsModal .ssbox label.setrow input.tsfield { flex: 0 0 42%; width: 42%; min-width: 0; height: 52px; font-size: 26px; }
  #sbSettingsModal .ssbox .parsedamt { margin-top: 2px; }
  #sbSettingsModal .sspay .segrow button { min-height: 50px; font-size: 20px; }
  #sbSettingsModal #ssPayLine { margin-top: 8px; }
  #sbSettingsModal .sstypes { flex: 1 1 0; min-height: 170px; display: flex; flex-direction: column; }
  #sbSettingsModal .types { flex: 1 1 0; min-height: 0; overflow-y: auto; overscroll-behavior: contain; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 10px; margin: 0; align-content: start; }
  #sbSettingsModal .types label { display: flex; align-items: center; gap: 10px; margin: 0; min-width: 0; font: 18px/1.1 var(--lilita); color: #fff; }
  #sbSettingsModal .types label b { font-weight: 400; } #sbSettingsModal .types label .muted { font: 800 13px/1 var(--nunito); color: #9FD3B5; white-space: nowrap; }
  #sbSettingsModal .types label:has(input:disabled) { opacity: .7; }
  /* Set the point (Call your shot, Load the dice, Name a face): the numbers as chunky tiles, five across */
  #ptModal .numgrid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
  #ptModal .numgrid button { min-width: 0; min-height: 72px; padding: 6px 2px 7px; gap: 3px; justify-content: center; background: #06281A; color: #fff; border: 3px solid var(--ink2); border-radius: 16px; box-shadow: 0 4px 0 var(--ink2); transition: none; }
  #ptModal .numgrid button b { font: 30px/1 var(--lilita); font-weight: 400; }
  #ptModal .numgrid button small { font: 800 12px/1.2 var(--nunito); color: #C9E3D3; overflow-wrap: anywhere; }
  #ptModal .numgrid button.off b { font-size: 24px; }
  #ptModal .numgrid button.cur { border-color: #FFD23F; background: #0F4A2C; }
  #ptModal .numgrid button.active { background: #FFD23F; color: var(--ink2); border-color: var(--ink2); } #ptModal .numgrid button.active small { color: #6b5a2a; }
  #ptModal .numgrid button:hover:not(:disabled) { filter: none; } #ptModal .numgrid button:active:not(:disabled) { transform: translateY(2px); box-shadow: 0 2px 0 var(--ink2); }
  #ptModal .numgrid button:disabled { opacity: .4; }
  #ptModal .numgrid button:disabled small .pay { display: none; } /* (a number the other player can't cover says so instead) */
  #ptModal #ptNote { margin: 14px 0 6px; }
  /* Behind the line, Bet an amount, Buy the point: the poker Raise sheet's amount, slider and tiles */
  .amtsheet .pkamt { margin-top: 14px; }
  .amtsheet .tspills { margin-top: 12px; } .amtsheet .tspill { font-size: 19px; }
  .amtsheet .tspills + .tsnote { margin-top: 12px; } .amtsheet .tsnote:last-child { margin-bottom: 8px; }
  #amountModal .pkamt .pkval { font-size: 34px; } /* (the amount is a display since amounts-and-raises.md: set by − / +, the slider and the presets, never typed) */
  #amountModal .pkamt .pkstep:disabled { opacity: .45; }
  #amountModal .pkpicks2 { margin-top: 14px; margin-bottom: 8px; }
  #amountModal .pkpicks2 button:disabled { opacity: .4; }
  #amountModal .pkpicks2 button small { font-size: 18px; } #amountModal .pkpicks2 button.on small { color: #6b5a2a; }
  @media (max-width: 379px) {
    #xmodal .xcell .pm button { width: 22px; } #xmodal .xcell .pm5 button { width: 26px; } #xmodal .xcell .pm span { min-width: 17px; font-size: 20px; }
    #ptModal .numgrid { gap: 6px; } #ptModal .numgrid button small { font-size: 11px; }
    #sbModal .sbtypes button { font-size: 18px; padding: 8px 8px 9px; } #sbModal .sbtypes button small { font-size: 11.5px; }
  }
  /* ---------- the craps flow's sheets (old-sheets-new-style.md §3) ---------- */
  /* the Mode sheet: one layout for every mode and the Paytable sheet. The explainer as a note, the status as a cream card, the numbers in a dark box, the settings as the sheet blocks */
  #modeModal .tsbody > .tsnote:first-child { margin-top: 2px; }
  #modeModal #mmStat { margin-top: 14px; font-size: 16px; color: var(--ink2); } #modeModal #mmStat b { color: var(--ink2); }
  #modeModal #mmStat.blocked { color: #8A5A00; } #modeModal #mmStat.blocked b { color: var(--ink2); }
  #modeModal .nums { margin-top: 14px; padding: 12px 14px; font: 800 15px/1.45 var(--nunito); color: #D6F2E0; } #modeModal .nums b { color: #fff; }
  #modeModal .numtab { width: calc(100% + 28px); margin: 10px -14px; border-collapse: collapse; }
  #modeModal .numtab th { padding: 4px 14px 10px; font: 800 12px/1.2 var(--nunito); letter-spacing: .12em; text-transform: uppercase; color: #9FD3B5; vertical-align: bottom; }
  #modeModal .numtab td { padding: 10px 14px; border-top: 2px solid rgba(255,255,255,.08); font: 18px/1.15 var(--lilita); color: #fff; }
  #modeModal .numtab tr:last-child td { border-bottom: 2px solid rgba(255,255,255,.08); }
  #modeModal .numtab .bp { display: inline-flex; align-items: center; min-height: 30px; padding: 0 12px; border: 3px solid var(--ink2); border-radius: 999px; font: 16px/1 var(--lilita); color: #fff; text-shadow: 1px 1px 0 var(--ink2); white-space: nowrap; }
  #modeModal .numtab .bp.veto { background: #FF8A3D; } #modeModal .numtab .bp.keep { background: #7ED957; color: var(--ink2); text-shadow: none; }
  #modeModal .trig:empty { display: none; }
  #modeModal .trig { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; font: 800 14px/1.35 var(--nunito); color: #C9E3D3; line-height: 1.35; }
  #modeModal .trig > div { padding: 12px 14px; background: #06281A; border: 3px solid var(--ink2); border-radius: 18px; box-shadow: 0 4px 0 var(--ink2); }
  #modeModal .trig > div b { font: 20px/1.1 var(--lilita); font-weight: 400; color: #fff; }
  #modeModal .trig > div.cur { background: #FFD23F; color: #4A3A10; } #modeModal .trig > div.cur b { color: var(--ink2); }
  #modeModal .settings:empty { display: none; }
  #modeModal .settings > label { display: flex; flex-direction: column; align-items: stretch; gap: 8px; margin: 16px 0 0; font: 800 12px/1.2 var(--nunito); letter-spacing: .12em; text-transform: uppercase; color: #9FD3B5; }
  #modeModal .settings > label .segrow, #modeModal .settings > label .slider { margin-left: 0; letter-spacing: 0; text-transform: none; }
  #modeModal .settings > label input[type=text] { width: 100%; height: 56px; padding: 0 14px; background: #fff; color: var(--ink2); border: 3px solid var(--ink2); border-radius: 14px; box-shadow: 0 4px 0 var(--ink2); font: 28px/1 var(--lilita); letter-spacing: 0; text-transform: none; }
  #modeModal .settings > label input[type=text]:disabled { opacity: .6; }
  #modeModal .settings .parsedamt { letter-spacing: 0; text-transform: none; }
  #modeModal .settings .segrow { grid-auto-flow: row; grid-template-columns: repeat(auto-fit, minmax(72px, 1fr)); }
  #modeModal .settings .segrow button { min-height: 56px; }
  #modeModal .settings .segrow.tiles { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  #modeModal .settings .segrow.tiles button { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 12px 14px; border-radius: 18px; text-align: left; background: #06281A; }
  #modeModal .settings .segrow.tiles button.active { background: #FFD23F; }
  #modeModal .settings .segrow.tiles button b { font: 20px/1.1 var(--lilita); font-weight: 400; } #modeModal .settings .segrow.tiles button small { font: 800 14px/1.35 var(--nunito); color: #C9E3D3; } #modeModal .settings .segrow.tiles button.active small { color: #4A3A10; }
  #modeModal .settings .slider { display: flex; align-items: center; gap: 14px; max-width: none; width: 100%; }
  #modeModal .settings .slider input[type=range].pkslide { flex: 1 1 auto; margin: 0; height: 36px; accent-color: auto; }
  #modeModal .settings .slider output { min-width: 2.6em; font: 26px/1 var(--lilita); color: #FFD23F; text-align: right; }
  #modeModal .settings .darkbox { margin-top: 14px; } #modeModal .settings .darkbox .hint { font: 800 14px/1.4 var(--nunito); color: #D6F2E0; min-height: 0; margin: 0 0 4px; }
  #modeModal .settings .darkbox .setrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0; padding: 10px 0; border-top: 2px solid rgba(255,255,255,.08); font: 20px/1.15 var(--lilita); color: #fff; }
  #modeModal .foot .tbtn.side { min-width: 0; padding: 0 14px; } #modeModal .foot .tbtn { white-space: normal; line-height: 1.05; text-align: center; }
  /* Autopilot: the bet in a dark box with its chips and the ↺ tile, the rounds as an option row, the stops (solo) as switch rows with a stepper, the summary as a cream card */
  #apModal #apTitle .apico { width: 34px; height: 34px; vertical-align: -5px; stroke: #FFD23F; }
  #apModal .apbet .tslbl { align-items: center; margin-bottom: 10px; } #apModal .apamt { font: 30px/1 var(--lilita); color: #fff; letter-spacing: 0; }
  #apModal .apchips { gap: 12px; margin: 0; min-height: 56px; }
  #apModal .apchips .stack { width: 46px; height: 46px; } #apModal .apchips .chip { width: 44px; height: 44px; font-size: .66rem; }
  #apModal .apchips .stack .cnt { right: -8px; bottom: -6px; padding: 2px 6px; background: var(--ink2); border: 2px solid #FFF4D6; font: 14px/1 var(--lilita); }
  #apModal .apchips .reset { margin-left: auto; width: 52px; height: 52px; padding: 0; background: #5B6B7A; color: #fff; border: 3px solid var(--ink2); border-radius: 14px; box-shadow: 0 4px 0 var(--ink2); font: 26px/1 var(--lilita); }
  #apModal .apbet .tsnote { margin-top: 10px; }
  #apModal .apseg { padding: 0; background: none; border-radius: 0; } #apModal .apseg button { flex: none; padding: 6px 8px; font-size: 20px; line-height: 1.05; }
  #apModal .apseg button.active { background: #FFD23F; color: var(--ink2); }
  #apModal .aplimits .apstep { display: flex; align-items: center; gap: 8px; margin: 10px 0 0; padding: 0; background: none; border-radius: 0; font: 19px/1 var(--lilita); color: #fff; }
  #apModal .aplimits .apstep .onoff { gap: 10px; flex: 1 1 auto; min-width: 0; white-space: nowrap; }
  #apModal .aplimits .apstep .amt { gap: 6px; flex: 0 0 auto; }
  #apModal .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); }
  #apModal .aplimits .apstep .amt b { display: grid; place-items: center; min-width: 92px; height: 40px; padding: 0 8px; background: #fff; border: 3px solid var(--ink2); border-radius: 12px; font: 22px/1 var(--lilita); font-weight: 400; }
  #apModal .aplimits .apstep .amt b.loss { color: #C8323C; } #apModal .aplimits .apstep .amt b.gain { color: #2E9A55; }
  #apModal .aplimits > .tsnote { margin-top: 10px; }
  #apModal .apsum { margin-top: 14px; text-align: left; font-size: 16px; color: var(--ink2); } #apModal .apsum b { color: var(--ink2); }
  #apModal #apErr { margin: 10px 0 4px; min-height: 0; }
  @media (max-width: 379px) { #apModal .aplimits .apstep .amt b { min-width: 76px; font-size: 19px; } #apModal .aplimits .apstep .amt button { width: 32px; } #apModal .aplimits .apstep { font-size: 17px; } }
  /* the lesson's end: who wins a round in a cream card (a two-colour bar sized by the numbers), the first and last paragraphs as notes */
  #lessonModal .whowins { margin-top: 4px; } #lessonModal .whowins p { margin: 12px 0 0; } #lessonModal .whowins p b { font: 17px/1 var(--lilita); font-weight: 400; }
  #lessonModal .whowins .lbl { display: block; font: 800 13px/1 var(--nunito); letter-spacing: .12em; text-transform: uppercase; color: #6b5a2a; }
  #lessonModal .wwbar { display: flex; margin-top: 12px; border: 4px solid var(--ink2); border-radius: 16px; overflow: hidden; }
  #lessonModal .wwbar span { flex-basis: 0; min-width: 0; padding: 10px 6px; text-align: center; white-space: nowrap; font: 19px/1 var(--lilita); }
  #lessonModal .wwbar .sh { background: #FFD23F; color: var(--ink2); } #lessonModal .wwbar .fd { background: #3FA9F5; color: #fff; border-left: 4px solid var(--ink2); text-shadow: 1px 1px 0 var(--ink2), -1px -1px 0 var(--ink2), 1px -1px 0 var(--ink2), -1px 1px 0 var(--ink2); }
  #lessonModal p.tsnote { margin: 14px 0 0; } #lessonModal p.tsnote.big { font-size: 17px; } #lessonModal p.tsnote:last-child { margin-bottom: 8px; }
  #lessonModal .foot .tbtn.side { flex: 1 1 auto; } #lessonModal .foot .tbtn.main { flex: 0 1 auto; padding: 6px 18px; }
  /* ---------- the opponent drop-down and the reactions pop-over (old-sheets-new-style.md §5) ---------- */
  #oppDrop { background: #0B3D22; border: 4px solid var(--ink2); border-radius: 20px; padding: 12px 12px 14px; box-shadow: 0 5px 0 var(--ink2), 0 16px 40px rgba(0,0,0,.5); color: #fff; }
  #oppDrop .top { display: block; }
  #oppDrop .odhead { display: flex; align-items: center; gap: 12px; }
  #oppDrop .odhead > .avw { font-size: 52px; } #oppDrop .odhead > .avw .av { border: 3px solid var(--ink2); box-sizing: border-box; }
  #oppDrop .odwho { flex: 1 1 auto; min-width: 0; }
  #oppDrop .name { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font: 22px/1.1 var(--lilita); font-weight: 400; color: #fff; }
  #oppDrop .name .dot { margin: 0; }
  #oppDrop .name .pid { font: 600 12px/1 var(--mono); color: #C9D2D8; }
  #oppDrop .name .owner, #oppDrop .name .tag { position: static; display: inline-flex; align-items: center; gap: 3px; margin: 0; padding: 3px 9px; border: 2px solid var(--ink2); border-radius: 999px; font: 13px/1 var(--lilita); letter-spacing: .04em; white-space: nowrap; }
  #oppDrop .name .owner { background: #E8505B; color: #fff; text-shadow: 1px 1px 0 var(--ink2); } #oppDrop .name .tag { background: #3A4654; color: #fff; }
  #oppDrop .ttl.blk { margin-top: 3px; font-size: 14px; }
  #oppDrop .fr { display: inline-flex; margin-top: 6px; min-height: 32px; padding: 0 12px; border: 3px solid var(--ink2); border-radius: 12px; box-shadow: 0 3px 0 var(--ink2); background: #5B6B7A; color: #fff; font: 15px/1 var(--lilita); font-weight: 400; align-items: center; }
  #oppDrop button.fr.go { background: #7ED957; color: var(--ink2); } #oppDrop .fr.is { background: #06281A; color: #7ED957; box-shadow: none; cursor: default; }
  #oppDrop .bank { flex: 0 0 auto; margin: 0; font: 30px/1 var(--lilita); color: #fff; white-space: nowrap; }
  #oppDrop .riv { margin-top: 12px; padding: 9px 12px; background: #FFF4D6; color: var(--ink2); border: 3px solid var(--ink2); border-radius: 16px; box-shadow: 0 4px 0 var(--ink2); font: 800 15px/1.3 var(--nunito); }
  #oppDrop .stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
  #oppDrop .stats span { min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 8px 4px; background: #06281A; border: 3px solid var(--ink2); border-radius: 14px; font: 800 11px/1.1 var(--nunito); letter-spacing: .06em; text-transform: uppercase; color: #CFE8D6; text-align: center; }
  #oppDrop .stats b { font: 19px/1 var(--lilita); letter-spacing: 0; text-transform: none; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
  #oppDrop .stats b.pos { color: #7ED957; } #oppDrop .stats b.neg { color: #FF8A8A; }
  #oppDrop .hold { margin-top: 10px; font: 800 13px/1.3 var(--nunito); color: #8FD3FF; }
  #oppDrop .status { margin-top: 10px; min-height: 0; font: 20px/1.15 var(--lilita); color: #FFD23F; }
  #oppDrop .status:empty { display: none; }
  #oppDrop .odrack { margin-top: 10px; padding: 10px 12px 12px; background: #06281A; border: 3px solid var(--ink2); border-radius: 18px; }
  #oppDrop .label { display: block; margin-bottom: 8px; font: 800 12px/1.2 var(--nunito); letter-spacing: .12em; text-transform: uppercase; color: #9FD3B5; }
  #oppDrop .odrack .rack { display: flex; flex-wrap: wrap; gap: 10px; min-height: 0; margin: 0; padding: 0; background: none; border: 0; }
  #oppDrop .rack .stack .cnt, #oppDrop .betspot .stack .cnt { right: -6px; bottom: -4px; padding: 2px 6px; background: var(--ink2); border: 2px solid #FFF4D6; font: 13px/1 var(--lilita); }
  #oppDrop .betspot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; padding: 10px 14px; background: #FFF4D6; color: var(--ink2); border: 4px solid var(--ink2); border-radius: 18px; box-shadow: 0 4px 0 var(--ink2); min-height: 0; }
  #oppDrop .betspot .label { flex: 1 1 auto; margin: 0; color: #6b5a2a; } #oppDrop .betspot .muted { color: #6b5a2a; font: 800 13px/1 var(--nunito); }
  #oppDrop .betspot .amt { margin-left: auto; font: 28px/1 var(--lilita); color: var(--ink2); }
  #oppDrop .sidelist, #oppDrop .oddslist, #oppDrop .speclist { margin-top: 10px; padding: 10px 12px; background: #06281A; border: 3px solid var(--ink2); border-radius: 18px; font: 800 14px/1.35 var(--nunito); color: #D6F2E0; max-height: none; }
  #oppDrop .sidelist .label, #oppDrop .oddslist .label, #oppDrop .speclist .label { font-size: 12px; color: #9FD3B5; }
  #oppDrop .oddslist div, #oppDrop .speclist div { padding: 6px 0; border-top: 2px solid rgba(255,255,255,.08); } #oppDrop .oddslist .label + div, #oppDrop .speclist .label + div { border-top: 0; }
  #oppDrop .oddslist .pos, #oppDrop .speclist .pos { color: #7ED957; } #oppDrop .oddslist .neg, #oppDrop .speclist .neg { color: #FF8A8A; }
  #oppDrop .sbrow { border-top: 2px solid rgba(255,255,255,.08); padding: 8px 0; } #oppDrop .sbrow .what b { font: 17px/1.15 var(--lilita); font-weight: 400; color: #fff; } #oppDrop .sbrow .meta { font: 800 12px/1.3 var(--nunito); color: #C9E3D3; }
  #oppDrop .sbrow .st { padding: 4px 10px; border: 2px solid var(--ink2); border-radius: 999px; font: 13px/1 var(--lilita); letter-spacing: .04em; background: #3A4654; color: #fff; }
  #oppDrop .sbrow .st.accepted { background: #3FA9F5; color: var(--ink2); } #oppDrop .sbrow .st.won { background: #7ED957; color: var(--ink2); } #oppDrop .sbrow .st.lost { background: #E8505B; color: #fff; } #oppDrop .sbrow .st.pushed { background: #C9D2D8; color: var(--ink2); }
  #oppDrop .sbrow .last { border: 2px solid var(--ink2); background: #0B3D22; font: 13px/1 var(--lilita); }
  @media (max-width: 379px) { #oppDrop .stats { gap: 6px; } #oppDrop .stats b { font-size: 17px; } #oppDrop .bank { font-size: 26px; } }

/* ---------- the gallery (watch-friends.md): a watcher's reactions and Challenge the winner, under their card ---------- */
  .specreact { position: relative; display: flex; align-items: stretch; gap: 8px; margin-top: 10px; min-height: 52px; }
  .specreact > #emoteBtn { flex: 0 0 60px; width: 60px; height: auto; min-height: 52px; border-radius: 16px; padding: 0; }
  .specreact .specwin { flex: 1 1 0; min-width: 0; display: flex; }
  .specreact .specwin:empty { display: none; }
  .specreact .winner { flex: 1 1 0; min-width: 0; min-height: 52px; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 4px 10px; font: 20px/1 var(--lilita); color: #fff; border-radius: 16px; }
  .specreact .winner .fitw { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .specreact .winner svg { width: 20px; height: 20px; flex: 0 0 auto; }
  .specreact .winner.duel { background: #FF8A3D; } .specreact .winner.add { background: #3FA9F5; } .specreact .winner.sent { background: #5B6B7A; opacity: .8; }
  .bubble.gallery { display: flex; flex-direction: column; align-items: center; gap: 2px; }
  .bubble.gallery small { font: 800 11px/1.1 var(--nunito); color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.8); max-width: 96px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  /* Reduce motion (body.rm): the dice land without tumbling (dice.js showFace), and here the rest calm down. The pop that table.js waits out keeps an animation (a fade), so its animationend still fires; nothing else waits on one */
  body.rm .scene.bounce, body.rm .dice.pulse, body.rm .coinbox.toss, body.rm .rps .hand.shake .big { animation: none; }
  body.rm .modes.on .flame, body.rm .puck.clock.urgent { animation: none; } /* (the endless loops: the fire-mode flame, the urgent clock) */
  body.rm .puck.ptlbl.pop { animation: rmfade .15s ease-out; }
  body.rm .bubble { animation: rmbubble 2.8s ease-out forwards; } @keyframes rmbubble { 0% { opacity: 0; } 10%, 65% { opacity: 1; } 100% { opacity: 0; } } /* (a reaction appears in place and fades out over the same 2.8 s) */
  body.rm .recapnudge { animation: rmfade .15s ease-out both; }
