:root {
  --bg: #080c12; --panel: #141c27; --panel2: #1e2937; --line: #2e3c4f;
  --text: #edf1f6; --muted: #93a3b6; --gold: #f0c050; --gold2: #c9952f; --green: #2fae6a; --red: #dc4d4d; --blue: #63b3ff;
  --sat: env(safe-area-inset-top, 0px); --sab: env(safe-area-inset-bottom, 0px);
  --sal: env(safe-area-inset-left, 0px); --sar: env(safe-area-inset-right, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text); overflow: hidden;
  font: 15px/1.35 system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  touch-action: manipulation; -webkit-user-select: none; user-select: none; overscroll-behavior: none;
}
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; touch-action: manipulation; }
button:disabled { opacity: .4; cursor: default; }
input, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }
#app { display: flex; flex-direction: column; height: 100vh; height: 100dvh; }

/* ---------- top bar ---------- */
#top {
  flex: none; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: calc(6px + var(--sat)) calc(10px + var(--sar)) 6px calc(12px + var(--sal));
  background: linear-gradient(#1a2330, #10161f); border-bottom: 1px solid #000; box-shadow: 0 1px 0 rgba(255,255,255,.05) inset, 0 6px 18px rgba(0,0,0,.45); z-index: 6;
}
#title { min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
#tGame { font-weight: 800; font-size: 15px; letter-spacing: .01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#tGame .dr { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 9px; background: linear-gradient(#f3c75c, #d49c2a); color: #201503; font-size: 11px; font-weight: 900; letter-spacing: .05em; vertical-align: 1px; }
#tInfo .drt { display: none; color: var(--gold); }
#tInfo { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#topBtns { display: flex; gap: 6px; flex: none; }
.tbtn { height: 36px; padding: 0 13px; border-radius: 10px; background: linear-gradient(#263345, #1a2431); border: 1px solid #3a4a60; font-weight: 700; font-size: 14px; box-shadow: 0 1px 0 rgba(255,255,255,.07) inset; }
.tbtn:active { background: #2a384a; }
.tbtn .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); margin-left: 6px; box-shadow: 0 0 8px var(--gold); }

/* ---------- room and table ---------- */
#sceneWrap {
  flex: 1; min-height: 0; position: relative; overflow: hidden;
  background:
    radial-gradient(ellipse 70% 55% at 50% 42%, rgba(255,214,150,.13), transparent 70%),
    radial-gradient(ellipse at 50% 45%, #232f40 0%, #121923 55%, #05070b 100%);
}
#sceneWrap::after { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 140px 40px rgba(0,0,0,.55); z-index: 3; }
#stage { position: absolute; left: 0; top: 0; z-index: 0; isolation: isolate; pointer-events: none; }
#tableSvg, #scene, #fx { position: absolute; left: 0; top: 0; width: 100%; height: 100%; }
#scene > *, #fx > * { position: absolute; }
#fx { z-index: 3000; }
.fxi { transform: translate(-50%, -100%); will-change: transform, opacity; }
.fxi .stk { position: relative; display: block; }

/* ---------- player pods ---------- */
.pod { width: 150px; text-align: center; transform: translate(-50%, -100%) scale(var(--s)); transform-origin: 50% 100%; transition: opacity .25s; }
.ring { position: relative; width: 96px; height: 96px; margin: 0 auto -18px; border-radius: 50%; padding: 4px; background: linear-gradient(160deg, #7c8ea8, #222c3a 70%); box-shadow: 0 10px 16px rgba(0,0,0,.55), 0 0 0 1px rgba(0,0,0,.6); }
.ring > svg, .ring > .avimg { width: 100%; height: 100%; border-radius: 50%; display: block; }
.avimg { background-size: cover; background-position: 50% 20%; }
.ring::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; box-shadow: inset 0 3px 6px rgba(255,255,255,.28), inset 0 -8px 12px rgba(0,0,0,.35); pointer-events: none; }
.ring.timed { background: conic-gradient(var(--gold) calc(var(--p, 1) * 360deg), #2a3546 0); }
.pod.turn .ring { box-shadow: 0 0 0 3px rgba(240,192,80,.28), 0 0 30px rgba(240,192,80,.75), 0 10px 16px rgba(0,0,0,.55); }
.pod.turn .ring:not(.timed) { background: var(--gold); }
.pod .plate { position: relative; z-index: 2; margin: 0 6px; background: linear-gradient(rgba(44,58,78,.97), rgba(15,21,30,.97)); border: 1.5px solid #4a5d7a; border-radius: 12px; padding: 3px 8px 5px; box-shadow: 0 6px 12px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.12); }
.pod .nm { font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pod .st { font-size: 16px; font-weight: 800; color: var(--gold); line-height: 1.15; }
.pod .st small { font-size: 11px; color: var(--muted); font-weight: 700; display: block; }
.pod.turn .plate { border-color: var(--gold); }
.pod.folded { opacity: .45; }
.pod.out .ring { filter: grayscale(1) brightness(.7); }
.pod.off .nm::after { content: " (away)"; color: #ff9a9a; font-weight: 600; font-size: 11px; }
.pod.won .plate { border-color: #6fe3a0; box-shadow: 0 0 0 3px rgba(111,227,160,.28), 0 0 28px rgba(111,227,160,.75); }
.pod.won .ring { background: #6fe3a0; }
.tag { position: absolute; left: 50%; top: -6px; transform: translateX(-50%); z-index: 4; background: #f4f6f8; color: #10151c; font-weight: 800; font-size: 13px; padding: 2px 10px; border-radius: 11px; white-space: nowrap; box-shadow: 0 3px 8px rgba(0,0,0,.45); animation: pop .22s cubic-bezier(.2,1.5,.4,1); }
@keyframes pop { from { transform: translateX(-50%) scale(.5); opacity: 0; } to { transform: translateX(-50%) scale(1); opacity: 1; } }
.tag.fold { background: #5b6675; color: #dfe5ec; }
.tag.agg { background: linear-gradient(#f6d06b, #dba632); }
.tag.allin { background: linear-gradient(#ef6262, #c53c3c); color: #fff; }
.tag.win { background: linear-gradient(#57dd92, #27a862); color: #04210e; font-size: 15px; top: -14px; }
.pod .held { position: absolute; right: 8px; top: 46px; display: flex; z-index: 3; --cw: 25px; padding-left: 15px; }
.pod .held .card { margin-left: -15px; transform-origin: 50% 100%; }
.pod .held.n2 .card:nth-child(1) { transform: rotate(-8deg); } .pod .held.n2 .card:nth-child(2) { transform: rotate(8deg); }
.pod .held.n4 .card:nth-child(1) { transform: rotate(-15deg); } .pod .held.n4 .card:nth-child(2) { transform: rotate(-5deg); }
.pod .held.n4 .card:nth-child(3) { transform: rotate(5deg); } .pod .held.n4 .card:nth-child(4) { transform: rotate(15deg); }
.pod .held.n7 { --cw: 22px; padding-left: 17px; right: 2px; }
.pod .held.n7 .card { margin-left: -17px; }
.pod .held.n7 .card:nth-child(1) { transform: rotate(-24deg); } .pod .held.n7 .card:nth-child(2) { transform: rotate(-16deg); } .pod .held.n7 .card:nth-child(3) { transform: rotate(-8deg); }
.pod .held.n7 .card:nth-child(5) { transform: rotate(8deg); } .pod .held.n7 .card:nth-child(6) { transform: rotate(16deg); } .pod .held.n7 .card:nth-child(7) { transform: rotate(24deg); }
.pod .shown { display: flex; justify-content: center; margin: -50px -40px 4px; position: relative; z-index: 3; --cw: 42px; padding-top: 8px; }
.pod .shown .card { margin: 0 1.5px; }
.pod .shown.n7 { --cw: 38px; padding-left: 16px; }
.pod .shown.n7 .card { margin: 0 0 0 -16px; align-items: flex-start; padding-left: 3px; }
.pod .shown.n7 .card b { font-size: calc(var(--cw) * .46); } .pod .shown.n7 .card i { font-size: calc(var(--cw) * .4); }
.pod .shown .card.used { transform: translateY(-8px); }
.pod .shown .card.unused { filter: brightness(.6); }
.pod .hdesc { font-size: 11.5px; font-weight: 700; color: #bfe9d0; line-height: 1.2; white-space: normal; }
.pod .hdesc .lo { color: #a9d6ff; }

/* ---------- chips ---------- */
.chips { transform: translate(-50%, -100%) scale(var(--s)); transform-origin: 50% 100%; }
.chips .pile { position: relative; margin: 0 auto; }
.stk {
  position: absolute; width: 20px; border-radius: 10px / 4px;
  background:
    repeating-linear-gradient(0deg, rgba(0,0,0,.55) 0 .5px, transparent .5px 2px),
    repeating-linear-gradient(90deg, transparent 0 3.5px, rgba(255,255,255,.9) 3.5px 6.5px, transparent 6.5px 10px),
    linear-gradient(90deg, #6d0f0f, #ee4a4a 34%, #c22a2a 62%, #5c0c0c);
  box-shadow: 0 4px 5px rgba(0,0,0,.5);
}
.stk::before { content: ""; position: absolute; left: 0; top: -4px; width: 20px; height: 8px; border-radius: 50%; background: radial-gradient(ellipse at 50% 50%, #f06a6a 0 30%, #fff 31% 44%, #e04242 45% 78%, #fff 79% 88%, #d83a3a 89%); border: .5px solid #6d0f0f; }
.stk::after { content: ""; position: absolute; left: 3px; top: 0; bottom: 2px; width: 3px; border-radius: 2px; background: linear-gradient(rgba(255,255,255,.35), transparent); }
.chips .lbl { position: absolute; left: 50%; top: 100%; transform: translateX(-50%); margin-top: 3px; font-size: 13px; font-weight: 800; background: rgba(4,8,12,.78); padding: 1px 9px; border-radius: 10px; white-space: nowrap; box-shadow: 0 0 0 1px rgba(255,255,255,.08); }
.chips.pot .lbl { font-size: 19px; padding: 3px 15px; border-radius: 16px; color: var(--gold); margin-top: 5px; box-shadow: 0 0 0 1px rgba(240,192,80,.35), 0 4px 10px rgba(0,0,0,.4); }
.dbtn { width: 34px; height: 24px; border-radius: 50%; background: radial-gradient(ellipse at 40% 30%, #fff, #e9e6d8 70%); color: #10151c; font-weight: 900; font-size: 13px; display: grid; place-items: center; transform: translate(-50%, -50%) scale(var(--s)); box-shadow: 0 3px 0 #a9a698, 0 7px 8px rgba(0,0,0,.55); border: 1px solid #c9c6b8; }

/* ---------- cards ---------- */
.card {
  width: var(--cw, 60px); height: calc(var(--cw, 60px) * 1.4); border-radius: calc(var(--cw, 60px) * .11); flex: none; position: relative; overflow: hidden;
  background: linear-gradient(160deg, #ffffff 0%, #f6f7f9 55%, #e4e7ec 100%);
  box-shadow: 0 3px 7px rgba(0,0,0,.5), inset 0 0 0 1px rgba(0,0,0,.14), inset 0 1px 0 #fff;
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
}
.card b { font-size: calc(var(--cw, 60px) * .56); line-height: .95; font-weight: 800; letter-spacing: -.04em; }
.card i { font-style: normal; font-size: calc(var(--cw, 60px) * .5); line-height: .95; }
.card.full { display: block; }
.card.full .ix { position: absolute; left: calc(var(--cw) * .09); top: calc(var(--cw) * .07); display: flex; flex-direction: column; align-items: center; min-width: calc(var(--cw) * .3); }
.card.full .ix b { font-size: calc(var(--cw) * .44); line-height: .9; }
.card.full .ix i { font-size: calc(var(--cw) * .27); line-height: 1; margin-top: calc(var(--cw) * .03); }
.card.full .pip { position: absolute; right: calc(var(--cw) * .08); bottom: calc(var(--cw) * .07); font-size: calc(var(--cw) * .66); line-height: 1; }
.card.full.face::before { content: ""; position: absolute; right: calc(var(--cw) * .05); bottom: calc(var(--cw) * .05); width: calc(var(--cw) * .62); height: calc(var(--cw) * .78); border-radius: calc(var(--cw) * .08); background: currentColor; opacity: .1; }
.card.full.ace .pip { font-size: calc(var(--cw) * .8); }
.card.s0 { color: #14853a; } .card.s1 { color: #1b5fd0; } .card.s2 { color: #d42a2a; } .card.s3 { color: #14171c; }
body.twocolor .card.s0 { color: #14171c; } body.twocolor .card.s1 { color: #d42a2a; }
.card.back {
  background:
    radial-gradient(circle at 50% 50%, #f0c050 0 9%, transparent 10%),
    repeating-linear-gradient(45deg, rgba(255,255,255,.14) 0 2px, transparent 2px 7px),
    repeating-linear-gradient(-45deg, rgba(255,255,255,.14) 0 2px, transparent 2px 7px),
    linear-gradient(160deg, #a3242d, #6b1219);
  box-shadow: 0 3px 7px rgba(0,0,0,.5), inset 0 0 0 2px #f4f1e8, inset 0 0 0 3px rgba(0,0,0,.25);
}
.card.dim { filter: brightness(.55); }
.card.uh { box-shadow: 0 0 0 2.5px var(--gold), 0 3px 7px rgba(0,0,0,.5); }
.card.ul { box-shadow: 0 0 0 2.5px var(--blue), 0 3px 7px rgba(0,0,0,.5); }
.card.uh.ul { box-shadow: 0 0 0 2.5px var(--gold), 0 0 0 5px var(--blue), 0 3px 7px rgba(0,0,0,.5); }
.board { display: flex; gap: 8px; transform: translate(-50%, -50%) scale(var(--s)); --cw: 76px; }
.board .slot { width: var(--cw); height: calc(var(--cw) * 1.4); border-radius: 8px; border: 2px dashed rgba(255,255,255,.12); }
.board .slot.dr { border-color: rgba(240,192,80,.4); }
.board .card:not(.old) { animation: flipIn .42s cubic-bezier(.2,.8,.3,1) both; }
.board .card:not(.old):nth-child(2) { animation-delay: .09s; } .board .card:not(.old):nth-child(3) { animation-delay: .18s; } .board .card:not(.old):nth-child(6) { animation-delay: .14s; }
@keyframes flipIn { 0% { transform: translateY(-26px) rotateY(90deg) scale(.9); opacity: 0; } 55% { opacity: 1; } 100% { transform: none; opacity: 1; } }
@keyframes dealIn { from { transform: translateY(-14px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes heroDeal { 0% { transform: translateY(-60px) rotate(-8deg) scale(.6); opacity: 0; } 100% { transform: none; opacity: 1; } }

/* ---------- overlays on the scene ---------- */
#center { position: absolute; left: 50%; top: 44%; transform: translate(-50%, -50%); text-align: center; z-index: 4; width: max-content; max-width: calc(100% - 16px); }
.banner { background: linear-gradient(rgba(22,31,44,.94), rgba(9,14,21,.94)); border: 1px solid #3a4a60; border-radius: 18px; padding: 14px 18px; box-shadow: 0 16px 40px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.08); }
.banner h3 { margin: 0 0 4px; font-size: 18px; }
#center.top { top: 8px; transform: translate(-50%, 0); }
.banner.pausebar { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 14px; padding: 8px 14px; border: 2px solid var(--gold); }
.banner.pausebar h3 { margin: 0; color: var(--gold); letter-spacing: .08em; font-size: 17px; }
.banner p { margin: 0; color: var(--muted); font-size: 14px; }
.banner .row { display: flex; gap: 10px; justify-content: center; margin-top: 12px; flex-wrap: wrap; }
.games { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.gamebtn { padding: 10px 12px; border-radius: 14px; background: linear-gradient(#2c3d55, #1a2533); border: 2px solid #46597a; font-weight: 800; font-size: 15px; line-height: 1.15; box-shadow: inset 0 1px 0 rgba(255,255,255,.1); }
.gamebtn small { display: block; font-weight: 600; font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.gamebtn:not(:disabled):active, .gamebtn:not(:disabled):hover { border-color: var(--gold); }
.drtoggle { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 10px; padding: 8px 12px; border-radius: 12px; background: rgba(0,0,0,.25); border: 1.5px solid #3a4a60; font-weight: 800; width: 100%; }
.drtoggle small { font-weight: 600; color: var(--muted); }
.drtoggle .sw { width: 46px; height: 26px; border-radius: 13px; background: #2c394a; position: relative; flex: none; transition: background .15s; }
.drtoggle .sw::after { content: ""; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 2px 4px rgba(0,0,0,.4); }
.drtoggle.on { border-color: var(--gold); background: rgba(240,192,80,.12); }
.drtoggle.on .sw { background: var(--gold); } .drtoggle.on .sw::after { transform: translateX(20px); }
#result { position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); z-index: 4; width: max-content; max-width: calc(100% - 16px); background: linear-gradient(rgba(14,24,20,.95), rgba(6,12,10,.95)); border: 1px solid #3d7a58; border-radius: 14px; padding: 8px 14px; font-size: 14px; text-align: center; box-shadow: 0 10px 28px rgba(0,0,0,.55); animation: dealIn .25s ease-out; }
#result:empty { display: none; }
#result b { color: #7be3a6; } #result .lo b { color: #8ecbff; }
#result .pn { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; margin-top: 3px; }
#requests { position: absolute; left: calc(8px + var(--sal)); top: 8px; z-index: 5; display: flex; flex-direction: column; gap: 6px; max-width: calc(100% - 16px); }
.req { display: flex; align-items: center; gap: 8px; background: rgba(21,29,40,.97); border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: 12px; padding: 7px 9px; font-size: 14px; box-shadow: 0 8px 20px rgba(0,0,0,.5); }
.req .who { flex: 1; min-width: 0; }
.mini { flex: none; border-radius: 50%; }
.mini > svg, .mini > .avimg { width: 100%; height: 100%; border-radius: 50%; display: block; }
.req .mini { width: 34px; height: 34px; }
.req button { height: 36px; padding: 0 12px; border-radius: 9px; font-weight: 800; }
.req .ok { background: var(--green); } .req .no { background: #3a4657; }
#miniLog { position: absolute; left: 12px; bottom: 8px; font-size: 12px; line-height: 1.45; color: rgba(255,255,255,.5); max-width: 300px; pointer-events: none; z-index: 4; }

/* ---------- hud ---------- */
#hud { flex: none; position: relative; background: linear-gradient(#1a2330, #0c1118); border-top: 1px solid #000; box-shadow: 0 1px 0 rgba(255,255,255,.07) inset, 0 -10px 30px rgba(0,0,0,.5); padding: 10px calc(12px + var(--sar)) calc(10px + var(--sab)) calc(12px + var(--sal)); z-index: 7; }
#hudRow { display: grid; grid-template-columns: minmax(170px, 1fr) auto minmax(330px, 1fr); align-items: center; gap: 14px; max-width: 1280px; margin: 0 auto; }
#turnBar { position: absolute; left: 0; right: 0; top: -4px; height: 4px; overflow: hidden; }
#turnBar i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold2), var(--gold)); transform-origin: 0 50%; transform: scaleX(var(--p, 1)); box-shadow: 0 0 12px var(--gold); }
#heroInfo { display: flex; align-items: center; gap: 10px; min-width: 0; }
#heroInfo .ring { width: 60px; height: 60px; margin: 0; padding: 3px; flex: none; }
#heroInfo .ring::after { inset: 3px; }
#hud.myturn #heroInfo .ring { background: var(--gold); box-shadow: 0 0 22px rgba(240,192,80,.7); }
#heroInfo .hn { font-weight: 800; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#heroInfo .hn span { color: var(--gold); font-size: 10.5px; letter-spacing: .08em; margin-left: 4px; }
#heroInfo .hs { font-weight: 800; font-size: 20px; color: var(--gold); line-height: 1.1; }
#heroInfo .hh { font-size: 12.5px; color: #bfe9d0; font-weight: 700; }
#heroInfo .hh.lo { color: #a9d6ff; }
#heroCards { display: flex; gap: 6px; --cw: 68px; min-height: calc(68px * 1.4); align-items: center; }
#heroCards.n4 { --cw: 62px; }
#heroCards.n7 { --cw: 54px; gap: 4px; }
#heroCards.fresh .card { animation: heroDeal .34s cubic-bezier(.2,.8,.3,1) both; }
#heroCards.fresh .card:nth-child(2) { animation-delay: .07s; } #heroCards.fresh .card:nth-child(3) { animation-delay: .14s; } #heroCards.fresh .card:nth-child(4) { animation-delay: .21s; }
#heroCards.fresh .card:nth-child(5) { animation-delay: .28s; } #heroCards.fresh .card:nth-child(6) { animation-delay: .35s; } #heroCards.fresh .card:nth-child(7) { animation-delay: .42s; }
#heroCards .card.uh, #heroCards .card.ul { transform: translateY(-5px); }
#actions { display: flex; gap: 10px; justify-content: flex-end; align-items: center; min-width: 0; }
#actions .status { color: var(--muted); font-size: 14px; text-align: right; flex: 1; }
.btn { height: 56px; min-width: 104px; padding: 0 16px; border-radius: 15px; font-weight: 800; font-size: 17px; line-height: 1.1; color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.3), inset 0 -4px 0 rgba(0,0,0,.24), 0 5px 12px rgba(0,0,0,.4); text-shadow: 0 1px 1px rgba(0,0,0,.3); }
.btn small { display: block; font-size: 12.5px; font-weight: 700; opacity: .9; }
.btn:active { transform: translateY(2px); box-shadow: inset 0 1px 0 rgba(255,255,255,.2), inset 0 -2px 0 rgba(0,0,0,.24); }
.btn.fold { background: linear-gradient(#ea6464, #c13a3a); }
.btn.call { background: linear-gradient(#42c57f, #228c54); }
.btn.raise { background: linear-gradient(#f8d26a, #d9a02e); color: #201503; text-shadow: 0 1px 0 rgba(255,255,255,.35); }
.btn.ghost { background: linear-gradient(#263345, #1a2431); border: 1px solid #3a4a60; box-shadow: inset 0 1px 0 rgba(255,255,255,.07); }
.btn.slim { height: 44px; font-size: 15px; }
#actions .btn { flex: 1 1 0; }
kbd { font: 700 10px system-ui; opacity: .6; border: 1px solid currentColor; border-radius: 4px; padding: 0 4px; margin-left: 6px; vertical-align: 2px; }

#raisePanel { position: absolute; right: calc(12px + var(--sar)); bottom: 100%; margin-bottom: 10px; width: min(470px, calc(100vw - 16px)); background: linear-gradient(#1a2432, #111821); border: 1px solid #3f5069; border-radius: 20px; padding: 12px 14px 14px; box-shadow: 0 20px 50px rgba(0,0,0,.65), inset 0 1px 0 rgba(255,255,255,.08); z-index: 20; animation: dealIn .16s ease-out; }
.rpHead { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 8px; }
.rpHead span { color: var(--muted); font-weight: 700; }
.rpHead output { font-size: 32px; font-weight: 900; color: var(--gold); line-height: 1; text-shadow: 0 0 18px rgba(240,192,80,.35); }
.rpHead .x { width: 34px; height: 34px; border-radius: 50%; background: var(--panel2); font-size: 20px; align-self: center; }
.presets { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.presets button { height: 46px; border-radius: 12px; background: linear-gradient(#263345, #1a2431); border: 1.5px solid var(--line); font-weight: 800; font-size: 14px; line-height: 1.05; }
.presets button small { display: block; font-weight: 600; font-size: 11px; color: var(--muted); }
.presets button.on { border-color: var(--gold); background: #33301f; }
.sliderRow { display: flex; align-items: center; gap: 10px; margin: 12px 0; }
.sliderRow .step { width: 46px; height: 46px; flex: none; border-radius: 50%; background: linear-gradient(#263345, #1a2431); border: 1px solid var(--line); font-size: 24px; font-weight: 700; line-height: 1; }
input[type=range] { -webkit-appearance: none; appearance: none; flex: 1; min-width: 0; height: 46px; background: transparent; margin: 0; touch-action: pan-y; }
input[type=range]::-webkit-slider-runnable-track { height: 12px; border-radius: 6px; background: linear-gradient(to right, var(--gold) var(--fill, 0%), #2c394a var(--fill, 0%)); box-shadow: inset 0 1px 3px rgba(0,0,0,.5); }
input[type=range]::-moz-range-track { height: 12px; border-radius: 6px; background: linear-gradient(to right, var(--gold) var(--fill, 0%), #2c394a var(--fill, 0%)); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 36px; height: 36px; margin-top: -12px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff3cf, var(--gold) 60%, #b98722); border: 3px solid #fff; box-shadow: 0 3px 8px rgba(0,0,0,.5); }
input[type=range]::-moz-range-thumb { width: 30px; height: 30px; border-radius: 50%; background: var(--gold); border: 3px solid #fff; box-shadow: 0 3px 8px rgba(0,0,0,.5); }
#raisePanel .btn { width: 100%; }

/* ---------- menu, drawer, modal ---------- */
#menu { position: fixed; top: calc(50px + var(--sat)); right: calc(8px + var(--sar)); z-index: 45; min-width: 250px; background: linear-gradient(#1a2432, #111821); border: 1px solid #3f5069; border-radius: 16px; padding: 6px; box-shadow: 0 20px 50px rgba(0,0,0,.65); }
#menu button { display: block; width: 100%; text-align: left; height: 46px; padding: 0 12px; border-radius: 10px; font-weight: 700; }
#menu button:hover, #menu button:active { background: var(--panel2); }
#menu .sep { height: 1px; background: var(--line); margin: 5px 4px; }
#menu .cap { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--gold); padding: 6px 12px 2px; }
#menu .danger { color: #ff9a9a; }
#drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(600px, 100vw); z-index: 40; background: var(--panel); border-left: 1px solid #3a4a60; box-shadow: -20px 0 50px rgba(0,0,0,.55); display: flex; flex-direction: column; padding-top: var(--sat); }
#drawerHead { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tabs button { height: 38px; padding: 0 14px; border-radius: 10px; font-weight: 800; color: var(--muted); }
.tabs button.on { background: var(--panel2); color: var(--text); }
#drawerClose { width: 40px; height: 40px; font-size: 26px; border-radius: 50%; background: var(--panel2); }
#drawerBody { flex: 1; overflow: auto; -webkit-overflow-scrolling: touch; padding: 12px calc(12px + var(--sar)) calc(16px + var(--sab)) 12px; -webkit-user-select: text; user-select: text; }
.lrow { background: var(--panel2); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; margin-bottom: 8px; }
.lrow .h { display: flex; align-items: center; gap: 10px; }
.lrow .mini { width: 42px; height: 42px; }
.lrow .n { font-weight: 800; font-size: 16px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lrow .n small { display: block; font-weight: 600; font-size: 12px; color: var(--muted); }
.lrow .net { font-weight: 900; font-size: 19px; text-align: right; }
.lrow .net small { display: block; font-size: 11px; font-weight: 700; color: var(--muted); }
.pos { color: #6fe3a0; } .neg { color: #ff8f8f; } .zero { color: var(--text); }
.lrow .buys { display: flex; flex-wrap: wrap; gap: 5px; margin: 8px 0 6px; }
.lrow .buys span { background: #111922; border: 1px solid var(--line); border-radius: 8px; padding: 2px 8px; font-size: 13px; font-weight: 700; }
.lrow .buys span small { color: var(--muted); font-weight: 600; margin-left: 5px; }
.lrow .sum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; font-size: 13px; color: var(--muted); }
.lrow .sum b { display: block; color: var(--text); font-size: 15px; }
.lrow .acts { display: flex; gap: 8px; margin-top: 8px; }
.lrow .acts button, .prow button { height: 36px; padding: 0 12px; border-radius: 9px; background: #3a4657; font-weight: 700; font-size: 13px; }
.lrow .acts .danger, .prow .danger { background: #6b2c33; color: #ffd0d0; }
.ltot { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0; }
.ltot div { background: #111922; border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; font-size: 12px; color: var(--muted); }
.ltot b { display: block; font-size: 18px; color: var(--text); }
.logline { font-size: 13.5px; padding: 3px 0; border-bottom: 1px solid rgba(255,255,255,.04); }
.logline time { color: var(--muted); font-size: 11.5px; margin-right: 8px; }
.logline.hd { color: var(--gold); font-weight: 800; margin-top: 8px; }
.empty { color: var(--muted); text-align: center; padding: 30px 10px; }
.prow { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.prow .mini { width: 40px; height: 40px; }
.prow .n { flex: 1; min-width: 0; font-weight: 800; }
.prow .n small { display: block; font-weight: 600; font-size: 12px; color: var(--muted); }
.prow .n small.away { color: #ff9a9a; }

#modal { position: fixed; inset: 0; z-index: 50; background: rgba(3,6,10,.74); display: grid; place-items: center; padding: 12px; }
.sheet { background: linear-gradient(#18212d, #111821); border: 1px solid #3f5069; border-radius: 22px; padding: 18px; width: min(580px, 100%); max-height: calc(100dvh - 24px); overflow: auto; box-shadow: 0 24px 70px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.08); }
.sheet h2 { margin: 0 0 4px; font-size: 21px; }
.sheet p { margin: 0 0 12px; color: var(--muted); }
.sheet label { display: block; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin: 14px 0 6px; }
.sheet input[type=text], .sheet input[type=number], .sheet select { width: 100%; height: 48px; border-radius: 12px; border: 1px solid #3a4a60; background: #0b1118; padding: 0 12px; font-size: 17px; font-weight: 700; -webkit-user-select: text; user-select: text; }
.sheet input:focus, .sheet select:focus { outline: 2px solid var(--gold); outline-offset: 0; }
.who { display: flex; align-items: center; gap: 12px; }
.who .ring { width: 84px; height: 84px; margin: 0; flex: none; }
.who .wn { font-weight: 900; font-size: 18px; }
.who .wt { color: var(--muted); font-size: 13.5px; font-style: italic; }
.cats { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.cats button { height: 34px; padding: 0 12px; border-radius: 17px; background: var(--panel2); border: 1.5px solid var(--line); font-weight: 700; font-size: 13px; color: var(--muted); }
.cats button.on { border-color: var(--gold); color: var(--text); background: #2b2a1e; }
.avgrid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 7px; max-height: 244px; overflow: auto; -webkit-overflow-scrolling: touch; padding: 2px; }
.avopt { border: 2px solid transparent; border-radius: 14px; background: var(--panel2); padding: 5px 3px 3px; text-align: center; font-size: 10.5px; font-weight: 700; color: var(--muted); line-height: 1.15; overflow: hidden; }
.avopt .mini { width: 100%; aspect-ratio: 1; margin-bottom: 3px; }
.avopt.on { border-color: var(--gold); color: var(--text); background: #2b2a1e; }
.avopt.taken { opacity: .28; }
.amts { display: flex; flex-wrap: wrap; gap: 7px; }
.amts button { height: 46px; min-width: 62px; padding: 0 12px; border-radius: 12px; background: var(--panel2); border: 2px solid var(--line); font-weight: 800; font-size: 16px; }
.amts button.on { border-color: var(--gold); background: #2b2a1e; }
.amts .custom { display: flex; align-items: center; gap: 4px; flex: 1; min-width: 110px; }
.amts .custom input { height: 46px; }
.sheet .foot { display: flex; gap: 10px; margin-top: 18px; }
.sheet .foot .btn { flex: 1; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.note { font-size: 13px; color: var(--muted); margin-top: 8px; }
.bigstat { font-size: 30px; font-weight: 900; color: var(--gold); }
#toasts { position: fixed; left: 50%; top: calc(56px + var(--sat)); transform: translateX(-50%); z-index: 60; display: flex; flex-direction: column; gap: 6px; align-items: center; pointer-events: none; width: max-content; max-width: calc(100vw - 20px); }
.toast { background: #223044; border: 1px solid #44597a; border-radius: 12px; padding: 9px 14px; font-weight: 700; box-shadow: 0 8px 24px rgba(0,0,0,.5); animation: dealIn .2s ease-out; }
.toast.err { background: #4a2226; border-color: #8a3a40; }
#conn { position: fixed; left: 50%; top: calc(6px + var(--sat)); transform: translateX(-50%); z-index: 70; background: var(--red); color: #fff; font-weight: 800; padding: 6px 16px; border-radius: 20px; }

/* ---------- phones ---------- */
@media (max-width: 720px) {
  #hud { padding-top: 8px; }
  #hudRow { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "info cards" "act act"; gap: 8px 8px; }
  #hudRow.many { grid-template-areas: "info info" "cards cards" "act act"; }
  #hudRow.many #heroInfo .hh { display: inline; margin-right: 8px; }
  #heroInfo { grid-area: info; } #heroCards { grid-area: cards; } #actions { grid-area: act; }
  #heroInfo .ring { width: 46px; height: 46px; }
  #hudRow.many #heroInfo .ring { width: 36px; height: 36px; }
  #heroInfo .hs { font-size: 18px; }
  #heroCards { --cw: 54px; gap: 4px; min-height: calc(54px * 1.4); }
  #heroCards.n4 { --cw: 47px; gap: 3px; }
  #heroCards.n7 { --cw: min(48px, calc((100vw - 24px - 18px) / 7)); gap: 3px; justify-content: center; }
  #actions { justify-content: stretch; gap: 8px; }
  #actions .status { text-align: center; padding: 6px 0; }
  .btn { min-width: 0; padding: 0 8px; height: 58px; font-size: 17px; }
  kbd { display: none; }
  #raisePanel { left: calc(8px + var(--sal)); right: calc(8px + var(--sar)); width: auto; }
  .presets button { height: 48px; }
  #miniLog { display: none; }
  #btnChips { display: none; }
  .avgrid { grid-template-columns: repeat(4, 1fr); max-height: 228px; }
  .games { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gamebtn { font-size: 14px; padding: 9px 8px; }
  #tGame { font-size: 14px; } .tbtn { padding: 0 11px; }
  #tGame .dr { display: none; } #tInfo .drt { display: inline; }
  #result { font-size: 13px; }
  .sheet { padding: 16px 14px; }
  .who .ring { width: 68px; height: 68px; }
}
@media (max-height: 520px) and (orientation: landscape) {
  #miniLog { display: none; }
  #top { padding-top: 3px; padding-bottom: 3px; } .tbtn { height: 30px; }
  #hud { padding-top: 6px; padding-bottom: calc(6px + var(--sab)); }
  .btn { height: 46px; } #heroCards { --cw: 44px; min-height: calc(44px * 1.4); } #heroCards.n4 { --cw: 40px; } #heroCards.n7 { --cw: 36px; }
  #heroInfo .ring { width: 40px; height: 40px; }
}

/* ---------- 3D table: flat labels over the WebGL scene ---------- */
#gl { position: absolute; left: 0; top: 0; width: 100%; height: 100%; display: none; }
body.v3d #gl { display: block; }
body.v3d #tableSvg { display: none; }
body.v3d #sceneWrap { background: #05070a; }
body.v3d #sceneWrap::after { box-shadow: inset 0 0 70px 6px rgba(0,0,0,.4); }
body.v3d #miniLog { display: none; }
.p3 { transform: translate(-50%, -50%); text-align: center; white-space: nowrap; z-index: 5; }
.pl3 { position: relative; display: inline-block; min-width: 108px; padding: 4px 13px 7px; border-radius: 13px; background: linear-gradient(rgba(20,29,42,.96), rgba(6,10,16,.96)); border: 2px solid rgba(255,255,255,.3); box-shadow: 0 6px 16px rgba(0,0,0,.65); }
.pl3 .nm { font-weight: 800; font-size: 15.5px; line-height: 1.15; max-width: 160px; overflow: hidden; text-overflow: ellipsis; }
.pl3 .st { font-weight: 900; font-size: 22px; color: var(--gold); line-height: 1.05; }
.pl3 .st small { display: block; font-size: 11px; color: var(--muted); font-weight: 700; }
.pl3 .tb { position: absolute; left: 6px; right: 6px; bottom: 2px; height: 4px; border-radius: 2px; background: var(--gold); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); display: none; }
.pl3[data-dl] .tb { display: block; }
.p3.up { transform: translate(-50%, -100%); }
.p3.turn .pl3 { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(240,192,80,.3), 0 0 28px rgba(240,192,80,.8); }
.p3.folded { opacity: .6; }
.p3.out .pl3 { filter: grayscale(1); opacity: .75; }
.p3.off .nm::after { content: " (away)"; color: #ff9a9a; font-size: 11px; font-weight: 600; }
.p3.won .pl3 { border-color: #6fe3a0; box-shadow: 0 0 0 3px rgba(111,227,160,.3), 0 0 28px rgba(111,227,160,.8); }
.a3 { display: block; width: max-content; margin: 0 auto 4px; padding: 3px 13px; border-radius: 12px; font-weight: 900; font-size: 15px; letter-spacing: .02em; background: #f4f6f8; color: #10151c; box-shadow: 0 4px 12px rgba(0,0,0,.6); animation: pop3 .22s cubic-bezier(.2,1.5,.4,1); }
@keyframes pop3 { from { transform: scale(.5); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.a3.agg { background: linear-gradient(#f8d26a, #d9a02e); color: #201503; }
.a3.call { background: linear-gradient(#42c57f, #228c54); color: #fff; }
.a3.fold { background: #5b6675; color: #dfe5ec; }
.a3.allin { background: linear-gradient(#ef6262, #c53c3c); color: #fff; }
.a3.win { background: linear-gradient(#57dd92, #27a862); color: #04210e; font-size: 17px; }
.bet3 { transform: translate(-50%, -50%); background: rgba(4,8,12,.9); border: 2px solid var(--gold); color: #fff; font-weight: 900; font-size: 19px; padding: 2px 13px; border-radius: 14px; white-space: nowrap; z-index: 4; box-shadow: 0 4px 12px rgba(0,0,0,.6); }
.pot3 { transform: translate(-50%, -50%); background: rgba(4,8,12,.88); border: 2px solid rgba(240,192,80,.75); color: var(--gold); font-weight: 900; font-size: 23px; padding: 3px 18px; border-radius: 18px; white-space: nowrap; z-index: 4; box-shadow: 0 6px 16px rgba(0,0,0,.6); }
.board.b3 { transform: translate(-50%, -50%); gap: calc(var(--cw) * .08); z-index: 4; filter: drop-shadow(0 10px 12px rgba(0,0,0,.55)); }
.board.b3 .slot { border-color: rgba(255,255,255,.2); border-radius: calc(var(--cw) * .11); }
.board.b3.two { flex-direction: column; align-items: center; }
.board.b3 .umtag { position: absolute; right: 0; top: calc(100% + 5px); width: calc(var(--cw) * 2.08); box-sizing: border-box; border: 2px solid var(--gold); border-top: 0; border-radius: 0 0 10px 10px; padding: 3px 0 2px; text-align: center; font-size: clamp(11px, calc(var(--cw) * .15), 17px); font-weight: 900; letter-spacing: .12em; color: var(--gold); background: rgba(4,8,12,.55); }
.board.b3 .brow { display: flex; gap: calc(var(--cw) * .08); }
.board .brow .card:not(.old):nth-child(2) { animation-delay: .09s; } .board .brow .card:not(.old):nth-child(3) { animation-delay: .18s; }
.d3 { position: absolute; left: -13px; top: -13px; width: 27px; height: 27px; border-radius: 50%; background: radial-gradient(circle at 40% 30%, #fff, #e2dfd0 70%); color: #10151c; font-weight: 900; font-size: 14px; display: grid; place-items: center; box-shadow: 0 2px 0 #a9a698, 0 5px 9px rgba(0,0,0,.55); z-index: 2; }
.d3.solo { transform: translate(-50%, -50%); width: 32px; height: 32px; font-size: 16px; }
.shown3 { display: flex; justify-content: center; margin-bottom: 5px; --cw: 42px; }
.shown3 .card { margin: 0 1.5px; }
.shown3.n7 { --cw: 36px; padding-left: 15px; }
.shown3.n7 .card { margin: 0 0 0 -15px; align-items: flex-start; padding-left: 3px; }
.shown3.n7 .card b { font-size: calc(var(--cw) * .46); } .shown3.n7 .card i { font-size: calc(var(--cw) * .4); }
.shown3 .card.used { transform: translateY(-7px); }
.shown3 .card.unused { filter: brightness(.6); }
.hd3 { font-size: 12.5px; font-weight: 800; color: #bfe9d0; white-space: normal; max-width: 180px; line-height: 1.15; margin-top: 1px; }
.hd3 .lo { color: #a9d6ff; display: block; }

/* ---------- game picker ---------- */
.chooser { max-width: min(560px, calc(100vw - 16px)); }
.seg { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; align-items: center; margin-top: 10px; }
.seg > button:not(.drtoggle) { height: 44px; padding: 0 14px; border-radius: 12px; background: linear-gradient(#2c3d55, #1a2533); border: 2px solid #46597a; font-weight: 800; font-size: 15px; }
.seg > button.on { border-color: var(--gold); background: #33301f; }
.seg > span { color: var(--muted); font-weight: 700; font-size: 13px; margin-right: 4px; }
.seg .drtoggle { width: auto; margin-top: 0; height: 44px; padding: 0 12px; }
.chooser .sum { margin-top: 12px !important; font-size: 13px; }
.chooser .sum b { color: var(--text); font-size: 16px; }

/* ---------- your own cards: bigger numbers, drag to reorder ---------- */
#heroInfo .hn { font-size: 18px; }
#heroInfo .hs { font-size: 27px; }
#heroCards .card { touch-action: none; cursor: grab; transition: transform .12s; }
#heroCards .card.drag { z-index: 9; transition: none; cursor: grabbing; box-shadow: 0 16px 28px rgba(0,0,0,.65), 0 0 0 2px rgba(255,255,255,.5) !important; }
.avgrid.people { grid-template-columns: repeat(5, 1fr); max-height: none; gap: 8px; }
.avgrid.people .avopt { font-size: 12px; padding: 6px 4px 5px; }
@media (max-width: 720px) {
  .pl3 { min-width: 70px; padding: 2px 7px 5px; border-radius: 10px; border-width: 1.5px; } .pl3 .nm { font-size: 12px; max-width: 86px; } .pl3 .st { font-size: 16px; }
  .hd3 { font-size: 10.5px; max-width: 120px; } .shown3.tiny { --cw: 22px; padding-left: 13px; } .shown3.tiny .card { margin: 0 0 0 -13px; } .d3 { width: 22px; height: 22px; font-size: 12px; left: -10px; top: -10px; }
  .a3 { font-size: 12.5px; padding: 2px 9px; } .bet3 { font-size: 15px; padding: 1px 9px; } .pot3 { font-size: 18px; padding: 2px 13px; }
  .shown3 { --cw: 34px; } .shown3.n7 { --cw: 30px; }
  .seg > button:not(.drtoggle) { height: 42px; padding: 0 11px; font-size: 14px; }
  #heroInfo .hs { font-size: 23px; } #heroInfo .hn { font-size: 16px; }
  .avgrid.people { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- phone showdown sheet ---------- */
body.sdsheet #result { display: none; }
.sd3 { left: 5px; right: 5px; top: 5px; bottom: 5px; z-index: 6; overflow-y: auto; -webkit-overflow-scrolling: touch; pointer-events: auto; padding: 9px 8px 6px; border-radius: 16px; background: linear-gradient(rgba(13,20,30,.95), rgba(5,9,14,.96)); border: 1px solid #3a4a60; box-shadow: 0 14px 34px rgba(0,0,0,.6); animation: pop3 .22s ease-out; }
.sd3 .board.sdb { position: static; transform: none; filter: none; justify-content: center; margin: 0 0 9px; gap: 4px; }
.sdr { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 8px; padding: 4px 6px; border-top: 1px solid rgba(255,255,255,.09); text-align: left; }
.sdr.won { background: rgba(60,190,120,.13); border-radius: 9px; border-top-color: transparent; }
.sdr .sdw b { display: block; font-size: 14px; line-height: 1.15; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sdr .sdw span { display: block; font-size: 11.5px; line-height: 1.2; font-weight: 700; color: #bfe9d0; }
.sdr .sdw span.lo { color: #a9d6ff; }
.sdr .sdw { min-width: 0; display: block; }
.sdc { display: flex; gap: 3px; --cw: 24px; }
.sdc .card.unused { filter: brightness(.55); }
.sdr .amt { min-width: 58px; text-align: right; font-weight: 900; font-size: 15px; color: #6fe3a0; white-space: nowrap; }
.sdr .amt small { display: block; font-size: 10px; font-weight: 700; color: var(--muted); }
.sdn { margin-top: 5px; text-align: center; font-size: 10.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 560px) { .banner.pausebar p { display: none; } .banner.pausebar { padding: 6px 12px; } }

/* ---------- v1.3: Hold'em first in the picker, game speed, last hand sheet ---------- */
.seg.lead { margin-top: 12px; }
.seg > button.hold { height: 58px; min-width: min(300px, 78%); font-size: 22px; letter-spacing: .02em; }
.seg.pace { margin-top: 0; flex-wrap: nowrap; }
.seg.pace > button:not(.drtoggle) { flex: 1; height: 56px; line-height: 1.15; padding: 0 6px; }
.seg.pace > button small { display: block; font-size: 11px; font-weight: 600; color: var(--muted); margin-top: 2px; }
#menu .ver { font-size: 11px; color: var(--muted); text-align: center; padding: 7px 0 3px; }
.sheet .warn { color: #ffb0a8; }
.btn.clr { color: #ff9a9a; }
.sheet.wide { width: min(640px, 100%); padding: 14px 14px 16px; }
.lh .lhh { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 2px 4px 12px; font-size: 17px; font-weight: 800; }
.lh .lhh b { color: var(--gold); margin-right: 6px; }
.lh .lhh small { color: var(--muted); font-size: 12px; font-weight: 600; white-space: nowrap; }
.lh .lhh .dr { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 9px; background: linear-gradient(#f3c75c, #d49c2a); color: #201503; font-size: 11px; font-weight: 900; letter-spacing: .05em; vertical-align: 1px; }
.lh .board.sdb { position: static; transform: none; filter: none; justify-content: center; margin: 0 0 12px; gap: 5px; }
.lh .board.sdb .card { animation: none; }
.lh .sdr { padding: 6px 8px; }
.lh .sdr .sdw b { font-size: 15px; }
.lh .sdr .sdw span { font-size: 12.5px; }
.lh .sdr .sdw span.dim { color: var(--muted); }
.lh .sdr.fold .sdc { opacity: .75; }
.lh .sdc { --cw: 32px; flex-wrap: wrap; justify-content: flex-end; max-width: 262px; row-gap: 3px; }
.lh .sdr .amt { min-width: 74px; font-size: 16px; }
.lh .sdr .amt .neg { color: #ff9a9a; }
.lh .lhf { margin-top: 8px; padding: 0 8px; font-size: 12.5px; color: var(--muted); text-align: left; }
.lh .lhnb { margin: 4px 0 12px; font-size: 13px; color: var(--muted); text-align: center; }
@media (max-width: 560px) {
  .lh .sdc { --cw: 25px; max-width: 150px; } .lh .sdr .amt { min-width: 62px; font-size: 15px; } .lh .lhh { font-size: 15px; }
  #btnLast { padding: 0 9px; }
}
@media (max-width: 480px) { .tbtn { padding: 0 8px; font-size: 13px; } #topBtns { gap: 5px; } }
#menu { max-height: calc(100dvh - 58px - var(--sat)); overflow-y: auto; -webkit-overflow-scrolling: touch; }

/* ---------- v1.4: sound button, auto-play boxes, show cards, louder turn marker, colourful bets, hand under your cards ---------- */
.tbtn.icon { width: 40px; padding: 0; display: grid; place-items: center; }
.tbtn.icon svg { display: block; }
.tbtn.icon.off { color: #ff9a9a; border-color: #7a3a40; background: linear-gradient(#3a2428, #24161a); }
@media (max-width: 480px) { .tbtn.icon { width: 34px; } }

/* your best hand sits directly under your cards */
#heroMid { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; }
#heroHand { min-height: 24px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 8px; font-size: 14.5px; font-weight: 800; line-height: 1.2; text-align: center; }
#heroHand .hi { color: #d9ffe8; background: rgba(47,174,106,.22); border: 1px solid rgba(111,227,160,.55); padding: 1px 11px; border-radius: 11px; }
#heroHand .lo { color: #cfe6ff; background: rgba(99,179,255,.18); border: 1px solid rgba(99,179,255,.5); padding: 1px 11px; border-radius: 11px; }
#heroHand .dm { color: var(--muted); font-weight: 700; font-size: 12.5px; }
#heroHand .sh { color: var(--gold); font-size: 12.5px; }
em.lead { font-style: normal; display: inline-block; margin-left: 5px; padding: 0 7px; border-radius: 8px; background: linear-gradient(#57dd92, #27a862); color: #04210e; font-size: 11px; font-weight: 900; letter-spacing: .05em; line-height: 1.5; vertical-align: 1px; }
em.lead.lo { background: linear-gradient(#8ecbff, #4a9be8); color: #04182e; }

/* whose turn it is: a gold plate that pulses, a TO ACT flag, and (in 3D) a pool of light on the felt */
@keyframes turnPulse { 0%, 100% { box-shadow: 0 0 0 3px rgba(255,214,90,.6), 0 0 26px 6px rgba(255,200,60,.75); } 50% { box-shadow: 0 0 0 8px rgba(255,214,90,.28), 0 0 50px 16px rgba(255,200,60,.95); } }
.p3.turn { z-index: 7; }
.p3.turn .pl3 { background: linear-gradient(#ffe89a, #f0b83a); border: 3px solid #fff6d0; color: #1b1202; transform: scale(1.12); animation: turnPulse 1s ease-in-out infinite; }
.p3.turn .pl3 .st { color: #3a2300; } .p3.turn .pl3 .st small { color: #5b4520; }
.p3.turn .pl3 .tb { background: #b3261e; height: 5px; }
.p3.turn .pl3 .hd3 { color: #1b1202; }
.pl3 .ta { position: absolute; left: 50%; bottom: -13px; transform: translateX(-50%); background: #b3261e; color: #fff; font-size: 10.5px; font-weight: 900; letter-spacing: .1em; padding: 1px 9px; border-radius: 8px; white-space: nowrap; box-shadow: 0 2px 6px rgba(0,0,0,.5); }
.pod.turn .ring { animation: turnPulse 1s ease-in-out infinite; }
.pod.turn .plate { background: linear-gradient(#ffe89a, #f0b83a); border-color: #fff6d0; color: #1b1202; }
.pod.turn .st { color: #3a2300; }
@keyframes hudPulse { 0%, 100% { box-shadow: 0 -3px 0 var(--gold), 0 -10px 34px rgba(240,192,80,.35), 0 1px 0 rgba(255,255,255,.07) inset; } 50% { box-shadow: 0 -3px 0 var(--gold), 0 -18px 58px rgba(240,192,80,.75), 0 1px 0 rgba(255,255,255,.07) inset; } }
#hud.myturn { animation: hudPulse 1s ease-in-out infinite; }
#hud.myturn #turnBar { height: 7px; top: -7px; }
#hud.myturn #heroInfo .ring { animation: turnPulse 1s ease-in-out infinite; }

/* bets and badges, colour-coded by what the player did */
@keyframes allinPulse { 0%, 100% { box-shadow: 0 0 0 2px rgba(255,211,77,.5), 0 0 16px rgba(255,77,109,.7); } 50% { box-shadow: 0 0 0 4px rgba(255,211,77,.3), 0 0 30px rgba(255,77,109,1); } }
.bet3 { border-width: 2.5px; text-shadow: 0 1px 1px rgba(0,0,0,.5); }
.bet3.k-call { background: linear-gradient(#34c577, #17824a); border-color: #b8ffd8; }
.bet3.k-agg { background: linear-gradient(#ff9a3d, #e2560f); border-color: #ffe0a8; }
.bet3.k-allin { background: linear-gradient(#ff4d6d, #b5123a); border-color: #ffd34d; animation: allinPulse .9s ease-in-out infinite; }
.bet3.k-blind { background: linear-gradient(#5b8def, #2c56b8); border-color: #cfe0ff; }
.a3.check { background: linear-gradient(#3fd0d4, #168a94); color: #fff; }
.a3.agg { background: linear-gradient(#ffb04a, #ef6a12); color: #2a1000; }
.a3.allin { background: linear-gradient(#ff4d6d, #b5123a); color: #fff; box-shadow: 0 0 0 2px #ffd34d, 0 4px 14px rgba(255,77,109,.7); }
.a3.blind { background: linear-gradient(#5b8def, #2c56b8); color: #fff; }
.a3.show { background: linear-gradient(#b98cff, #7a45d6); color: #fff; }
.tag.check { background: linear-gradient(#3fd0d4, #168a94); color: #fff; }
.tag.call { background: linear-gradient(#42c57f, #228c54); color: #fff; }
.tag.agg { background: linear-gradient(#ffb04a, #ef6a12); color: #2a1000; }
.tag.allin { background: linear-gradient(#ff4d6d, #b5123a); box-shadow: 0 0 0 2px #ffd34d, 0 3px 10px rgba(255,77,109,.7); }
.tag.blind { background: linear-gradient(#5b8def, #2c56b8); color: #fff; }
.tag.show { background: linear-gradient(#b98cff, #7a45d6); color: #fff; }
.chips.bet .lbl { font-size: 14px; color: #fff; }
.chips.bet.k-call .lbl { background: linear-gradient(#34c577, #17824a); }
.chips.bet.k-agg .lbl { background: linear-gradient(#ff9a3d, #e2560f); }
.chips.bet.k-allin .lbl { background: linear-gradient(#ff4d6d, #b5123a); box-shadow: 0 0 0 2px #ffd34d; }
.chips.bet.k-blind .lbl { background: linear-gradient(#5b8def, #2c56b8); }
.chips.bet .stk:nth-child(3n+2), .chips.pot .stk:nth-child(3n+2) { filter: hue-rotate(215deg) saturate(1.1); }
.chips.bet .stk:nth-child(3n), .chips.pot .stk:nth-child(3n) { filter: hue-rotate(125deg) saturate(.9); }

/* hands at showdown and during an all-in run-out */
.hd3 { font-size: 14px; max-width: 220px; color: #eafff2; }
.p3.lead .pl3 { border-color: #6fe3a0; box-shadow: 0 0 0 2px rgba(111,227,160,.35), 0 0 20px rgba(111,227,160,.55); }
.pod .hdesc { font-size: 13px; }
#result { font-size: 15px; padding: 9px 16px; }
#result .lost { color: #c3ccd7; font-size: 13.5px; } #result .lost b { color: #e9edf2; }
#result .rhd { color: var(--gold); font-size: 11.5px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 3px; }
#result .rrow { display: flex; align-items: center; gap: 8px; padding: 2px 0; font-size: 14.5px; text-align: left; white-space: nowrap; }
#result .rrow .rk { flex: none; width: 54px; font-size: 10.5px; font-weight: 900; letter-spacing: .06em; color: #04210e; text-align: center; border-radius: 8px; line-height: 1.6; }
#result .rrow.lead .rk { background: linear-gradient(#57dd92, #27a862); }
#result .rrow b { color: #fff; } #result .rrow.lead b { color: #7be3a6; }
#result .rrow .hn { color: #bfe9d0; font-weight: 700; } #result .rrow .hn.lo { color: #a9d6ff; }

/* auto-play boxes: tick one while you wait and it is played when your turn comes */
.prewrap { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; min-width: 0; flex: 1; }
#actions .prewrap .status { flex: none; font-size: 13px; line-height: 1.2; }
.prebox { display: flex; gap: 8px; flex: none; }
.pre { height: 44px; padding: 0 12px 0 8px; transition: border-color .12s, background .12s, transform .06s; border-radius: 12px; border: 2px solid #46597a; background: linear-gradient(#253246, #18212e); font-weight: 800; font-size: 14.5px; display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.pre i { width: 20px; height: 20px; border-radius: 6px; border: 2px solid #7f93b3; background: #0b1118; flex: none; position: relative; }
.pre:hover:not(:disabled) { border-color: #7f93b3; }
.pre:active:not(:disabled) { transform: translateY(1px) scale(.98); }
.pre:disabled { opacity: .35; }
@keyframes tick { from { transform: rotate(45deg) scale(.3); opacity: 0; } to { transform: rotate(45deg) scale(1); opacity: 1; } }
.tbtn:hover { border-color: #5a6f90; }
.pre.on { border-color: var(--gold); background: #33301f; color: #ffe9a8; }
.pre.on i { background: var(--gold); border-color: var(--gold); }
.pre.on i::after { content: ""; position: absolute; left: 5px; top: 1px; width: 5px; height: 10px; border: solid #201503; border-width: 0 3px 3px 0; transform: rotate(45deg); animation: tick .14s ease-out; }
.pre[data-pre=fold].on { border-color: #ea6464; background: #3a2022; color: #ffd0d0; }
.pre[data-pre=fold].on i { background: #ea6464; border-color: #ea6464; }
.showbtn { position: relative; overflow: hidden; min-width: 170px; }
.showbtn .cd { position: absolute; left: 0; bottom: 0; height: 5px; width: 100%; background: #201503; opacity: .6; transform-origin: 0 50%; transform: scaleX(var(--p, 1)); }

/* reset with buy-ins */
.sheet .drtoggle { margin-top: 2px; }
#rsList { margin-top: 8px; max-height: 250px; overflow: auto; -webkit-overflow-scrolling: touch; }
#rsList .prow input[type=number] { width: 104px; height: 40px; flex: none; text-align: right; }
#rsList .dl { color: var(--muted); font-weight: 800; }

@media (max-width: 720px) {
  #heroMid { grid-area: cards; }
  #heroHand { font-size: 12.5px; min-height: 21px; }
  .prewrap { align-items: stretch; }
  #actions .prewrap .status { text-align: center; padding: 0; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .prebox { display: grid; grid-template-columns: .8fr 1.25fr 1fr 1.1fr; gap: 5px; }
  .pre { height: 42px; padding: 0 3px; font-size: 13px; gap: 5px; justify-content: center; }
  .pre i { width: 16px; height: 16px; border-radius: 5px; } .pre.on i::after { left: 3.5px; top: 0; width: 4px; height: 8px; border-width: 0 2.5px 2.5px 0; }
  .hd3 { font-size: 11px; max-width: 130px; } .pl3 .ta { font-size: 9px; padding: 0 6px; bottom: -11px; }
  .p3.turn .pl3 { transform: scale(1.08); border-width: 2.5px; }
  #result .rrow { font-size: 12.5px; gap: 6px; } #result .rrow .rk { width: 44px; font-size: 9.5px; }
  em.lead { font-size: 9.5px; padding: 0 5px; margin-left: 3px; }
}

/* phone: the same one-sheet view while an all-in board runs out */
.sd3 .sdh { text-align: center; color: var(--gold); font-size: 11.5px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 8px; }
.sd3 .board.sdb .card:not(.old) { animation: flipIn .42s cubic-bezier(.2,.8,.3,1) both; }
.sdr .amt em.lead { display: block; margin: 2px 0 0 auto; width: max-content; }
.sdc.tight { --cw: 20px; gap: 2px; }
@media (max-width: 720px) { #heroMid { max-width: 66vw; } }
/* twelve people to pick from: two rows on a wide screen, three on a phone */
.avgrid.people { grid-template-columns: repeat(6, 1fr); }
.avgrid.people .avopt { font-size: 11.5px; }
@media (max-width: 720px) { .avgrid.people { grid-template-columns: repeat(4, 1fr); gap: 6px; } .avgrid.people .avopt { font-size: 10.5px; padding: 4px 2px; } }

/* ---------- version 1.5 ---------- */
/* what a player just did: under their name and stack, coloured by the action */
.sas { display: flex; flex-wrap: wrap; justify-content: center; gap: 3px 4px; margin-top: 3px; }
.sa { display: inline-block; padding: 1px 10px; border-radius: 9px; font-weight: 900; font-size: 13.5px; letter-spacing: .03em; line-height: 1.5; white-space: nowrap; background: #e9edf2; color: #10151c; box-shadow: 0 2px 5px rgba(0,0,0,.45); text-shadow: none; }
.sa.blind { background: linear-gradient(#5b8def, #2c56b8); color: #fff; }
.sa.check { background: linear-gradient(#3fd0d4, #168a94); color: #fff; }
.sa.call { background: linear-gradient(#42c57f, #228c54); color: #fff; }
.sa.agg { background: linear-gradient(#ffb04a, #ef6a12); color: #2a1000; }
.sa.allin { background: linear-gradient(#ff4d6d, #b5123a); color: #fff; box-shadow: 0 0 0 2px #ffd34d, 0 2px 8px rgba(255,77,109,.6); }
.sa.fold { background: #5b6675; color: #dfe5ec; }
.sa.show { background: linear-gradient(#b98cff, #7a45d6); color: #fff; }
.sa.win { background: linear-gradient(#57dd92, #27a862); color: #04210e; font-size: 16px; }
.sa.bty { background: linear-gradient(#ffe27a, #f0b020); color: #2a1a00; box-shadow: 0 0 0 2px #fff3c4, 0 2px 10px rgba(240,192,80,.7); }
.sa.pay { background: #5a2228; color: #ffc9c9; }
.sa.bank { background: #23344d; color: #cfe0ff; border: 1px solid #5b8def; }
.pod .plate .sas { margin: 3px -4px 0; } .pod .sa { font-size: 12.5px; padding: 0 8px; }
#heroInfo .sas { justify-content: flex-start; margin-top: 2px; } #heroInfo .sa { font-size: 12.5px; }
@media (max-width: 720px) { .sa { font-size: 11px; padding: 0 6px; line-height: 1.45; border-radius: 7px; } .sa.win { font-size: 12.5px; } .sas { gap: 2px; margin-top: 2px; } #heroInfo .sa { font-size: 11px; } }

/* time bank button */
#actions .btn.bank { flex: 0 0 auto; min-width: 74px; padding: 0 10px; background: linear-gradient(#34507a, #213554); border: 1px solid #5b8def; font-size: 16px; }
#actions .btn.bank small { font-size: 11px; opacity: .85; }
@media (max-width: 720px) { #actions .btn.bank { min-width: 58px; padding: 0 6px; font-size: 14px; } }

/* reactions once a hand is over */
.endrow { display: flex; gap: 8px; align-items: center; justify-content: flex-end; }
.emorow { display: flex; gap: 5px; }
.emob { width: 44px; height: 44px; border-radius: 12px; font-size: 24px; line-height: 1; background: linear-gradient(#253246, #18212e); border: 2px solid #46597a; transition: transform .08s, border-color .12s; }
.emob:hover { border-color: #7f93b3; } .emob:active, .emob.sent { transform: scale(1.18); border-color: var(--gold); }
.emo { position: fixed; z-index: 70; font-size: 54px; line-height: 1; pointer-events: none; transform: translate(-50%, -50%); animation: emoUp 2.5s cubic-bezier(.2,.7,.3,1) forwards; filter: drop-shadow(0 6px 10px rgba(0,0,0,.6)); }
@keyframes emoUp { 0% { transform: translate(-50%, -30%) scale(.3); opacity: 0; } 12% { transform: translate(-50%, -90%) scale(1.25); opacity: 1; } 25% { transform: translate(-50%, -100%) scale(1); } 75% { opacity: 1; } 100% { transform: translate(-50%, -230%) scale(1); opacity: 0; } }
@media (max-width: 720px) { .endrow { justify-content: center; gap: 6px; } .emorow { gap: 4px; } .emob { width: 40px; height: 42px; font-size: 22px; border-radius: 10px; } .endrow .showbtn { min-width: 0; padding: 0 10px; font-size: 13.5px; } .emo { font-size: 44px; } }

/* your turn: a gold flash around the whole screen */
#flash { position: fixed; inset: 0; z-index: 65; pointer-events: none; opacity: 0; box-shadow: inset 0 0 0 10px var(--gold), inset 0 0 120px 30px rgba(240,192,80,.55); background: rgba(240,192,80,.1); }
#flash.go { animation: flashGo 1.1s ease-out; }
@keyframes flashGo { 0% { opacity: 0; } 12% { opacity: 1; } 35% { opacity: .35; } 55% { opacity: .9; } 100% { opacity: 0; } }

/* rabbit hunt: the cards that would have come */
.board .card.rab { filter: brightness(.66) saturate(.55); outline: 2px dashed rgba(255,255,255,.75); outline-offset: -5px; }
.board .rabtag { position: absolute; left: 0; top: calc(100% + 6px); padding: 2px 10px; border-radius: 9px; background: rgba(4,8,12,.85); border: 1px dashed rgba(255,255,255,.55); color: #dfe7f1; font-size: 12px; font-weight: 900; letter-spacing: .06em; white-space: nowrap; }
.lh .board .card.rab { outline-offset: -4px; }
@media (max-width: 720px) { .board .rabtag { font-size: 10px; padding: 1px 7px; left: 50%; transform: translateX(-50%); } }

/* seven-deuce bounty in the result panel */
#result .bty { color: #ffe9a8; font-weight: 800; } #result .bty b { color: var(--gold); }

/* card style: large print */
body.bigcards .card b { font-size: calc(var(--cw, 60px) * .68); }
body.bigcards .card i { font-size: calc(var(--cw, 60px) * .58); }
body.bigcards .card.full .ix { left: 0; right: 0; top: calc(var(--cw) * .1); min-width: 0; }
body.bigcards .card.full .ix b { font-size: calc(var(--cw) * .7); letter-spacing: -.06em; }
body.bigcards .card.full .ix i { font-size: calc(var(--cw) * .58); margin-top: 0; }
body.bigcards .card.full .pip, body.bigcards .card.full.face::before { display: none; }
.cardprev { display: flex; justify-content: center; gap: 7px; margin: 12px 0 10px; --cw: 58px; }
.sheet .drtoggle.left { justify-content: flex-start; text-align: left; margin-top: 6px; }
.sheet .drtoggle.left small { display: block; }
#sBounty, #sRabbit { justify-content: flex-start; text-align: left; margin-top: 6px; } #sBounty small, #sRabbit small { display: block; }

/* stats and settle-up */
.stwrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -4px; }
.stt { width: 100%; border-collapse: collapse; font-size: 14px; }
.stt th { font-size: 10px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); text-align: right; padding: 6px 5px; white-space: nowrap; font-weight: 800; }
.stt th:first-child { text-align: left; }
.stt td { padding: 9px 5px; text-align: right; border-top: 1px solid var(--line); white-space: nowrap; font-weight: 700; }
.stt td.pn2 { text-align: left; display: flex; align-items: center; gap: 8px; font-weight: 800; }
.stt td.pn2 .mini { width: 26px; height: 26px; } .stt td.pn2 span { max-width: 104px; overflow: hidden; text-overflow: ellipsis; } .stt td.pn2 small { color: var(--gold); font-size: 10px; text-transform: uppercase; letter-spacing: .06em; margin-left: 3px; }
.stt td.top { color: var(--gold); }
.stt .pos b, .payrow .amt, .resrow .pos { color: #6fe3a0; } .stt .neg b, .resrow .neg { color: #ff9a9a; } .stt .zero b, .resrow .zero { color: var(--muted); }
.cap2 { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--gold); margin: 14px 2px 6px; }
.payrow { display: flex; align-items: center; gap: 8px; background: var(--panel2); border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: 12px; padding: 11px 12px; margin-bottom: 6px; font-size: 16px; }
.payrow .arrow { color: var(--muted); font-size: 13px; font-weight: 700; } .payrow .amt { margin-left: auto; font-weight: 900; font-size: 18px; color: var(--text); }
.resrow { display: flex; align-items: center; gap: 9px; padding: 7px 4px; border-top: 1px solid var(--line); font-weight: 700; }
.resrow .mini { width: 28px; height: 28px; } .resrow span { flex: 1; } .resrow small { color: var(--muted); font-weight: 600; margin-left: 4px; } .resrow b { font-size: 16px; }
.warnbox { border-left: 3px solid var(--gold); background: #1b222c; padding: 8px 12px; border-radius: 0 10px 10px 0; margin: 0 0 4px; }
@media (max-width: 480px) { .tabs button { padding: 0 9px; font-size: 13px; height: 36px; } .stt { font-size: 12.5px; } .stt td, .stt th { padding: 7px 4px; } .stt td.pn2 .mini { display: none; } .payrow { font-size: 14.5px; padding: 9px 10px; } }

.bet3 { z-index: 6; }
.pl3 .sas { max-width: 190px; margin-left: auto; margin-right: auto; }
@media (max-width: 720px) { .pl3 .sas { max-width: 112px; } }
.sdr .amt small.bn { display: block; color: var(--gold); font-weight: 800; } .sdr .amt small.bn.pay { color: #ff9a9a; }
@media (max-width: 720px) { .emob { width: 37px; } .emorow { gap: 3px; } }

/* v1.6 tournament */
b.trn { color: var(--gold); font-weight: 700; }
#tLvl { font-variant-numeric: tabular-nums; }
#tnBox .seg { display: flex; flex-wrap: wrap; gap: 6px; }
#tnBox .seg button { flex: 1 1 0; min-width: 90px; }
#tnBox .seg button small { display: block; font-weight: 500; opacity: .75; }

/* ---------- 1.7 ---------- */
/* last hand: a strip across the top of the table for everyone */
#lastbar { position: absolute; left: 0; right: 0; top: 0; z-index: 6; height: 30px; display: grid; place-items: center; background: linear-gradient(90deg, #5c0c14, #c8102e 30%, #e3263f 50%, #c8102e 70%, #5c0c14); box-shadow: 0 4px 14px rgba(200,16,46,.55); pointer-events: none; }
#lastbar span { font-weight: 900; letter-spacing: .32em; font-size: 15px; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.5); animation: lastBlink 1.4s ease-in-out infinite; }
@keyframes lastBlink { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
body.lastcall #requests { top: 38px; } body.lastcall #center.top { top: 38px; }
.banner.lastask { border: 2px solid #e3263f; }
.banner.lastask h3 { color: #ff8f9f; }
#menu button.hot { color: #ff8f9f; font-weight: 900; }

/* your deal: blinking yellow until you pick */
#flash.deal { box-shadow: inset 0 0 0 12px #ffe14d, inset 0 0 140px 40px rgba(255,225,77,.6); background: rgba(255,225,77,.13); }
@keyframes dealBlink { 0%, 100% { box-shadow: 0 0 0 3px #ffe14d, 0 0 28px 6px rgba(255,225,77,.7), 0 16px 40px rgba(0,0,0,.6); } 50% { box-shadow: 0 0 0 6px rgba(255,225,77,.35), 0 0 54px 18px rgba(255,225,77,.95), 0 16px 40px rgba(0,0,0,.6); } }
body.mydeal .banner.chooser { border: 2px solid #ffe14d; animation: dealBlink 1.1s ease-in-out infinite; }
body.mydeal .banner.chooser h3 { color: #ffe14d; }
.dealclock { height: 5px; border-radius: 3px; background: rgba(255,255,255,.12); margin: 6px auto 2px; max-width: 320px; overflow: hidden; }
.dealclock i { display: block; height: 100%; background: #ffe14d; transform-origin: 0 50%; transform: scaleX(var(--p, 1)); }
@keyframes dealPlate { 0%, 100% { box-shadow: 0 0 0 3px #ffe14d, 0 0 22px rgba(255,225,77,.75); } 50% { box-shadow: 0 0 0 6px rgba(255,225,77,.3), 0 0 40px rgba(255,225,77,1); } }
.p3.dealing .pl3 { border-color: #ffe14d; animation: dealPlate 1.1s ease-in-out infinite; }
.pod.dealing .ring { animation: dealPlate 1.1s ease-in-out infinite; } .pod.dealing .plate { border-color: #ffe14d; }
.pl3 .ta.deal { background: #e0b400; color: #201503; }

/* boost */
.boostpop { margin: 10px auto 0; max-width: 420px; background: rgba(0,0,0,.3); border: 1.5px solid var(--gold); border-radius: 14px; padding: 8px 10px 9px; animation: dealIn .2s ease-out; }
.boostpop .bpt { font-weight: 800; font-size: 13.5px; color: var(--gold); }
.boostpop .bpn { font-size: 12px; color: var(--muted); margin-top: 6px; }
.seg.boosts { margin-top: 6px; } .seg.boosts > button { min-width: 82px; }
#heroCards .card.boosted { animation: heroDeal .5s cubic-bezier(.2,.8,.3,1) both; box-shadow: 0 0 0 3px #ffe14d, 0 3px 7px rgba(0,0,0,.5); }

/* slow roll: the river peels up, and the empty river slot pulses while the table waits for it */
.board .card.peel { animation: peel 1.3s cubic-bezier(.3,.1,.2,1) both; transform-origin: 50% 100%; }
.board .card.peel.slow { animation-duration: 2.1s; }
@keyframes peel { 0% { transform: translateY(-20px) rotateX(-88deg) scale(.92); opacity: 0; filter: brightness(.2); } 15% { opacity: 1; } 55% { transform: translateY(-6px) rotateX(-60deg) scale(.96); filter: brightness(.5); } 100% { transform: none; filter: none; } }
.board .slot.next { border-color: rgba(255,225,77,.85); animation: slotWait 1s ease-in-out infinite; }
@keyframes slotWait { 0%, 100% { box-shadow: 0 0 0 0 rgba(255,225,77,0); } 50% { box-shadow: 0 0 22px 4px rgba(255,225,77,.55); } }

/* settings: timer slider, game options */
.timerrow { display: flex; align-items: center; gap: 8px; }
.timerrow input[type=range] { flex: 1; accent-color: var(--gold); height: 34px; }
.timerrow .step, .sliderRow .step { width: 40px; height: 40px; border-radius: 10px; background: var(--panel2); border: 1px solid var(--line); font-size: 22px; font-weight: 800; flex: none; }
.drtoggle.mini { width: auto; margin: 0; padding: 4px 10px; gap: 6px; flex: none; }
.drtoggle.mini .sw { width: 38px; height: 22px; } .drtoggle.mini .sw::after { width: 16px; height: 16px; } .drtoggle.mini.on .sw::after { transform: translateX(16px); }
.optgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.optgrid .drtoggle { margin: 0; padding: 7px 6px; flex-direction: column; gap: 4px; font-size: 13.5px; text-align: center; }
.optgrid .drtoggle small { display: block; font-size: 10.5px; }
.row2 { display: flex; gap: 8px; margin-top: 8px; } .row2 .btn { flex: 1; min-width: 0; }
.sheet label small.lbls { text-transform: none; letter-spacing: 0; font-weight: 600; color: var(--muted); }
@media (max-width: 560px) { .optgrid { grid-template-columns: repeat(2, 1fr); } }

/* side bets */
.sa.side { background: linear-gradient(#ff8fd6, #c2389a); color: #fff; }
.req.side { border-left-color: #e055b5; flex-wrap: wrap; }
.req.side .who { min-width: 160px; }
.req.side.wait { opacity: .9; } .req.claim { border-left-color: var(--blue); }
.btn.side { background: linear-gradient(#ff8fd6, #c2389a); }
#result .sidel { color: #ffd0ee; font-size: 13.5px; } #result .sidel b { color: #ff9ddd; }
.lhside { margin-top: 10px; padding-top: 8px; border-top: 1px dashed #3a4a60; }
.lhside .lhsh { font-weight: 700; color: #ffd0ee; margin-bottom: 4px; } .lhside .lhsh b { color: #ff9ddd; }
.avgrid.sidepick, .avgrid.claims { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 6px; }
.avgrid.claims .avopt small { display: block; color: var(--gold); font-size: 11px; }
.claimbox { margin: 10px 0 2px; padding: 10px; border-radius: 14px; border: 1.5px solid var(--blue); background: rgba(99,179,255,.08); }
.claimbox .ct { font-weight: 800; } .claimbox .cn { font-size: 12.5px; color: var(--muted); margin: 3px 0 7px; }
#amts button small, #sideAmts button small { display: block; font-size: 10.5px; color: var(--muted); }
#sideAmts button { height: auto; min-height: 46px; }

/* cocktail server */
.avimg.waitress { background-image: url('people/Waitress/thumb.jpg'); }
#drinkPop { position: fixed; z-index: 40; right: calc(10px + var(--sar)); top: calc(56px + var(--sat)); width: min(330px, calc(100vw - 20px)); background: linear-gradient(#2a1520, #160b12); border: 1.5px solid #e3263f; border-radius: 16px; padding: 9px 10px 12px; box-shadow: 0 16px 40px rgba(0,0,0,.6); animation: dealIn .3s ease-out; overflow: hidden; }
#drinkPop .dph { display: flex; align-items: center; gap: 9px; margin-bottom: 7px; }
#drinkPop .dph .avimg { width: 40px; height: 40px; border-radius: 50%; flex: none; background-size: cover; background-position: center 20%; border: 2px solid #e3263f; }
#drinkPop .dph b { display: block; font-size: 15px; } #drinkPop .dph small { color: #f3c4cd; font-size: 13px; }
#drinkPop .dpb { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
#drinkPop .dpb button { min-height: 44px; border-radius: 11px; background: linear-gradient(#3b2230, #26141e); border: 1.5px solid #6b3a4c; font-weight: 800; font-size: 13.5px; text-align: left; padding: 4px 8px; display: flex; align-items: center; gap: 6px; line-height: 1.15; }
#drinkPop .dpb button.none { grid-column: span 2; justify-content: center; color: #d7c3ca; }
#drinkPop .dpb button:active { background: #5a2a3c; }
#drinkPop .dn { width: 20px; height: 20px; border-radius: 50%; background: #e3263f; color: #fff; display: grid; place-items: center; font-size: 11px; flex: none; }
#drinkPop .di { font-size: 20px; }
#drinkPop .dpt { position: absolute; left: 0; bottom: 0; height: 4px; width: 100%; background: #e3263f; transform-origin: 0 50%; transform: scaleX(var(--p, 1)); }
.drk { position: absolute; right: -10px; bottom: -6px; font-size: 22px; line-height: 1; filter: drop-shadow(0 2px 3px rgba(0,0,0,.7)); pointer-events: none; animation: pop3 .4s ease-out; }
.pl3 .drk { right: -14px; top: -14px; bottom: auto; font-size: 24px; }
#heroInfo .ring { position: relative; }
#waiter { position: absolute; z-index: 30; width: 46px; height: 46px; transform: translate(-50%, -50%); transition: left 1.6s ease-in-out, top 1.6s ease-in-out; pointer-events: none; }
#waiter .avimg { width: 46px; height: 46px; border-radius: 50%; background-size: cover; background-position: center 20%; border: 3px solid #e3263f; box-shadow: 0 6px 14px rgba(0,0,0,.6); }
#waiter .wb { position: absolute; left: 50%; bottom: 100%; transform: translateX(-50%); margin-bottom: 4px; background: #fff; color: #2a1520; font-weight: 900; font-size: 13px; padding: 2px 9px; border-radius: 10px; white-space: nowrap; box-shadow: 0 3px 8px rgba(0,0,0,.5); }

/* reactions: speech bubbles, glares in the flat view */
.rbub { position: fixed; z-index: 62; transform: translate(-50%, -100%); display: flex; align-items: center; gap: 6px; background: #fff; color: #10151c; border-radius: 16px; padding: 4px 12px 4px 6px; font-weight: 900; font-size: 15px; box-shadow: 0 8px 20px rgba(0,0,0,.55); pointer-events: none; animation: bubIn 2.6s ease-out both; white-space: nowrap; }
.rbub::after { content: ""; position: absolute; left: 50%; top: 100%; margin-left: -7px; border: 7px solid transparent; border-top-color: #fff; }
.rbub .re { font-size: 26px; line-height: 1; }
.rbub.k-rage { background: #ffdfdf; color: #8a0f1d; font-size: 17px; animation: bubRage 4.2s ease-out both; } .rbub.k-rage::after { border-top-color: #ffdfdf; }
.rbub.k-slam, .rbub.k-shove { background: #ffe8c9; color: #7a3300; } .rbub.k-slam::after, .rbub.k-shove::after { border-top-color: #ffe8c9; }
.rbub.k-cheer, .rbub.k-pump { background: #dcffe9; color: #0c5a2c; } .rbub.k-cheer::after, .rbub.k-pump::after { border-top-color: #dcffe9; }
@keyframes bubIn { 0% { transform: translate(-50%, -60%) scale(.4); opacity: 0; } 10% { transform: translate(-50%, -110%) scale(1.1); opacity: 1; } 20% { transform: translate(-50%, -100%) scale(1); } 80% { opacity: 1; } 100% { transform: translate(-50%, -140%); opacity: 0; } }
@keyframes bubRage { 0% { transform: translate(-50%, -60%) scale(.4); opacity: 0; } 6% { transform: translate(-50%, -110%) scale(1.25) rotate(-4deg); opacity: 1; } 10% { transform: translate(-50%, -100%) scale(1) rotate(3deg); } 14% { transform: translate(-50%, -100%) rotate(-3deg); } 18% { transform: translate(-50%, -100%) rotate(2deg); } 22% { transform: translate(-50%, -100%) rotate(0); } 85% { opacity: 1; } 100% { transform: translate(-50%, -130%); opacity: 0; } }
.pod.glaring .ring { box-shadow: 0 0 0 calc(var(--glare, 0) * 4px) rgba(255,60,60,calc(var(--glare, 0) * .9)), 0 0 calc(var(--glare, 0) * 26px) rgba(255,40,40,calc(var(--glare, 0) * .9)); }
body.glare-hi .pod.glaring .ring { animation: glareShake .18s linear infinite; }
@keyframes glareShake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-1.5px); } 75% { transform: translateX(1.5px); } }
.pod.act-rage { animation: podRage .5s ease-in-out 4; } .pod.act-slam { animation: podSlam .3s ease-in-out 3; } .pod.act-cheer, .pod.act-pump { animation: podHop .45s ease-in-out 3; }
@keyframes podRage { 0%, 100% { transform: translate(-50%, -100%) scale(var(--s)) rotate(0); } 25% { transform: translate(-50%, -112%) scale(calc(var(--s) * 1.08)) rotate(-6deg); } 75% { transform: translate(-50%, -112%) scale(calc(var(--s) * 1.08)) rotate(6deg); } }
@keyframes podSlam { 0%, 100% { transform: translate(-50%, -100%) scale(var(--s)); } 50% { transform: translate(-50%, -94%) scale(calc(var(--s) * .95)); } }
@keyframes podHop { 0%, 100% { transform: translate(-50%, -100%) scale(var(--s)); } 50% { transform: translate(-50%, -110%) scale(var(--s)); } }

/* final results: winners board and losers board */
.fboards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 6px; }
.fb { border-radius: 14px; padding: 8px; background: rgba(0,0,0,.25); border: 1.5px solid #2f5a43; }
.fb.lose { border-color: #6b2a32; }
.fbh { font-weight: 900; text-transform: uppercase; letter-spacing: .12em; font-size: 13px; text-align: center; padding: 2px 0 6px; color: #7be3a6; }
.fb.lose .fbh { color: #ff8f9f; }
.fbrow { display: flex; align-items: center; gap: 7px; padding: 5px 4px; border-radius: 10px; }
.fbrow.me { background: rgba(240,192,80,.1); }
.fbrow .fbn { width: 18px; text-align: center; font-weight: 900; color: var(--muted); }
.fbrow .mini { width: 32px; height: 32px; flex: none; }
.fbrow .fbname { flex: 1; min-width: 0; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fbrow .fbname small { display: block; font-weight: 600; color: var(--muted); font-size: 11px; }
.fbrow b { font-size: 17px; } .fbrow.pos b { color: #7be3a6; } .fbrow.neg b { color: #ff8f9f; }
.fb.win .fbrow:first-of-type .fbn { color: var(--gold); }
.fbhl { display: grid; gap: 3px; font-size: 14px; color: #d8dee6; } .fbhl b { color: var(--gold); }
@media (max-width: 560px) { .fboards { grid-template-columns: 1fr; } }

/* stats */
.stt td.low { color: #ff8f9f; font-weight: 800; }
.stt td small { display: block; font-size: 10.5px; color: var(--muted); font-weight: 600; }
.stt.bygame td.pos { color: #7be3a6; } .stt.bygame td.neg { color: #ff8f9f; }

.p3.glaring .pl3 { box-shadow: 0 0 0 calc(var(--glare, 0) * 3px) rgba(255,60,60,calc(var(--glare, 0) * .9)), 0 0 calc(var(--glare, 0) * 24px) rgba(255,40,40,calc(var(--glare, 0) * .85)), 0 6px 16px rgba(0,0,0,.65); }
body.glare-hi .p3.glaring .pl3 { animation: glareShake .18s linear infinite; }

/* 1.7 small screens: the picker scrolls instead of running off the table; big boosted hands overlap; compact drink box */
#heroCards.n10 { --cw: 50px; gap: 0; } #heroCards.n10 .card + .card { margin-left: -12px; }
.sdn.side { color: #ffd0ee; } .sdn.side b { color: #ff9ddd; }
@media (max-width: 720px) {
  .boostpop { padding: 6px 8px 7px; } .boostpop .bpn { display: none; } .seg.boosts > button { min-width: 70px; }
  #heroCards.n10 { --cw: min(44px, calc((100vw - 24px) / 7.2)); justify-content: center; } #heroCards.n10 .card + .card { margin-left: calc(var(--cw) * -.28); }
  #drinkPop { top: calc(50px + var(--sat)); right: 50%; transform: translateX(50%); width: min(360px, calc(100vw - 16px)); padding: 7px 8px 9px; }
  #drinkPop .dph { margin-bottom: 5px; } #drinkPop .dph .avimg { width: 30px; height: 30px; }
  #drinkPop .dpb { grid-template-columns: repeat(5, 1fr); gap: 4px; }
  #drinkPop .dpb button, #drinkPop .dpb button.none { grid-column: auto; flex-direction: column; justify-content: center; text-align: center; font-size: 10.5px; min-height: 58px; padding: 3px 2px; gap: 1px; }
  #drinkPop .dn { display: none; } #drinkPop .di { font-size: 20px; }
  .rbub { font-size: 13px; padding: 3px 9px 3px 5px; } .rbub .re { font-size: 20px; }
  .fbrow b { font-size: 15px; }
}
@media (max-height: 520px) and (orientation: landscape) {
  #drinkPop { top: 40px; width: 420px; padding: 6px 8px 8px; } #drinkPop .dph { margin-bottom: 4px; } #drinkPop .dph .avimg { width: 28px; height: 28px; }
  #drinkPop .dpb { grid-template-columns: repeat(5, 1fr); gap: 4px; }
  #drinkPop .dpb button, #drinkPop .dpb button.none { grid-column: auto; flex-direction: column; justify-content: center; text-align: center; font-size: 10.5px; min-height: 50px; padding: 2px; gap: 1px; }
  #drinkPop .dn { display: none; }
}

@media (max-width: 720px) {
  #heroCards.n7 { --cw: min(48px, calc((100vw - 30px) / var(--n, 7) - 3px)); }
  #heroCards.n10 { --cw: min(46px, calc((100vw - 30px) / (1 + (var(--n, 8) - 1) * .72))); }
}

@media (max-width: 380px) { .prebox { gap: 4px; width: 100%; min-width: 0; } .prebox .pre { font-size: 12px; padding: 0 2px; gap: 3px; min-width: 0; overflow: hidden; } .prebox .pre i { flex: none; } }
@media (max-height: 520px) and (orientation: landscape) { .prebox { gap: 4px; } .pre { height: 38px; padding: 0 6px; font-size: 12.5px; gap: 4px; } }

/* ---------- 1.8 ---------- */
/* The game picker never scrolls. --pk (1 down to about .5, set by fitPicker in app.js) shrinks the buttons and the
   spacing until the whole picker fits the table area; it sits dead centre of that area while you pick. */
#center.picking { top: 50%; }
.banner.chooser { --pk: 1; padding: calc(13px * var(--pk)) 14px calc(14px * var(--pk)); overflow: visible; max-height: none; }
.chooser h3 { font-size: calc(18px * max(var(--pk), .78)); margin: 0 0 calc(4px * var(--pk)); line-height: 1.15; }
.chooser .dealclock { margin: calc(6px * var(--pk)) auto 0; height: max(3px, calc(5px * var(--pk))); }
.chooser .seg { margin-top: calc(10px * var(--pk)); gap: calc(6px * var(--pk)) 6px; }
.chooser .seg.lead { margin-top: calc(11px * var(--pk)); }
.chooser .seg > button:not(.drtoggle) { height: calc(44px * var(--pk)); font-size: calc(15px * max(var(--pk), .8)); border-radius: calc(12px * max(var(--pk), .7)); }
.chooser .seg > button.hold { height: calc(58px * var(--pk)); font-size: calc(22px * max(var(--pk), .78)); }
.chooser .seg .drtoggle { height: calc(44px * var(--pk)); font-size: calc(15px * max(var(--pk), .8)); gap: 8px; }
.chooser .seg .drtoggle .sw { transform: scale(max(var(--pk), .7)); transform-origin: 50% 50%; margin: 0 calc(-6px * (1 - var(--pk))); }
.chooser .seg > span { font-size: calc(13px * max(var(--pk), .85)); }
.chooser .boostpop { margin-top: calc(10px * var(--pk)); padding: calc(8px * var(--pk)) 10px calc(9px * var(--pk)); }
.chooser .boostpop .bpt { font-size: calc(13.5px * max(var(--pk), .82)); line-height: 1.2; }
.chooser .boostpop .bpn { font-size: calc(12px * max(var(--pk), .85)); margin-top: calc(6px * var(--pk)); }
.chooser .seg.boosts { margin-top: calc(6px * var(--pk)); }
.chooser .sum { margin-top: calc(11px * var(--pk)) !important; font-size: calc(13px * max(var(--pk), .85)); line-height: 1.25; }
.chooser .sum b { font-size: calc(16px * max(var(--pk), .82)); }
.chooser .row { margin-top: calc(12px * var(--pk)); }
.chooser .row .btn.slim { height: calc(46px * max(var(--pk), .62)); font-size: calc(16px * max(var(--pk), .85)); }
@media (max-width: 720px) {
  .banner.chooser { padding-left: 10px; padding-right: 10px; }
  /* Umaha and Boost share one row on a phone: their small print goes (the boost box shows what is picked) */
  .chooser .seg.two .drtoggle small { display: none; }
  .chooser .seg.two .drtoggle { padding: 0 10px; }
  .chooser .seg.two .drtoggle.boostbtn.on small { display: inline; font-size: 11px; }
}

/* stats: players across the top, numbers down the side */
.stbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: -2px 0 8px; color: var(--muted); font-size: 13px; }
.stbar .btn { flex: none; height: 36px; padding: 0 14px; font-size: 13.5px; }
#drawer.full { width: 100vw; border-left: 0; }
#drawer.full #drawerBody { padding-left: max(12px, calc((100vw - 1500px) / 2)); padding-right: max(12px, calc((100vw - 1500px) / 2)); }
.stt2 { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 14px; table-layout: fixed; min-width: calc(104px + var(--np, 4) * 58px); }
.stt2 th, .stt2 td { padding: 7px 4px; text-align: center; border-top: 1px solid var(--line); font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stt2 thead th { border-top: 0; position: sticky; top: 0; background: var(--panel); z-index: 2; padding: 2px 2px 7px; font-size: 12.5px; font-weight: 800; vertical-align: bottom; }
.stt2 thead th .mini { width: 34px; height: 34px; display: block; margin: 0 auto 3px; }
.stt2 thead th span { display: block; overflow: hidden; text-overflow: ellipsis; }
.stt2 thead th.me span { color: var(--gold); }
.stt2 tbody th, .stt2 thead th:first-child { position: sticky; left: 0; background: var(--panel); z-index: 1; text-align: left; width: 104px; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .03em; font-weight: 800; padding-left: 2px; white-space: normal; line-height: 1.15; }
.stt2 thead th:first-child { z-index: 3; }
.stt2 td small { display: block; font-size: 10.5px; color: var(--muted); font-weight: 600; }
.stt2 td.top { color: var(--gold); } .stt2 td.low { color: #ff8f9f; }
.stt2 td.pos { color: #6fe3a0; } .stt2 td.neg { color: #ff9a9a; } .stt2 td.zero { color: var(--muted); }
.stt2 tr.res td { font-size: 14px; font-weight: 900; } .stt2 tr.res th { color: var(--text); }
.stt2 tr.besth td { white-space: normal; font-size: 12px; line-height: 1.2; }
.stt2 tr.sec th { position: static; width: auto; text-align: left; color: var(--gold); padding: 16px 2px 6px; border-top: 0; font-size: 12px; letter-spacing: .1em; background: none; }
.stt2 tr.sec th small { color: var(--muted); text-transform: none; letter-spacing: 0; font-weight: 600; margin-left: 6px; }
@media (min-width: 621px) {
  #drawer.full .stt2 { font-size: 15.5px; } #drawer.full .stt2 th, #drawer.full .stt2 td { padding: 9px 6px; }
  #drawer.full .stt2 tbody th, #drawer.full .stt2 thead th:first-child { width: 150px; font-size: 13px; }
  #drawer.full .stt2 tr.res td { font-size: 17px; }
  #drawer.full .stt2 thead th { font-size: 14px; } #drawer.full .stt2 thead th .mini { width: 44px; height: 44px; }
}
@media (max-width: 620px) {
  .stbar .btn { display: none; }                      /* the sheet is already the full width of a phone */
  #drawer.full { width: min(600px, 100vw); }
  .stt2 { font-size: 12.5px; min-width: calc(80px + var(--np, 4) * 49px); } .stt2 th, .stt2 td { padding: 6px 2px; }
  .stt2 tbody th, .stt2 thead th:first-child { width: 80px; font-size: 10px; letter-spacing: 0; }
  .stt2 .bh2 { display: none; }
  .stt2 thead th { font-size: 11px; } .stt2 thead th .mini { width: 28px; height: 28px; }
  .stt2 tr.res td { font-size: 12px; } .stt2 tr.besth td { font-size: 10.5px; }
}

/* while you pick the game on a phone, the bar under the table keeps only your name and stack, so the picker gets the room */
@media (max-width: 720px), (max-height: 560px) {
  body.picking #heroMid, body.picking #heroCards { display: none; min-height: 0; }
  body.picking #actions .status { display: none; }
  body.picking #hudRow { gap: 0 8px; padding-top: 6px; padding-bottom: 6px; }
  body.picking #heroInfo .ring { width: 38px; height: 38px; }
}
/* a phone on its side has width to spare and no height: the picker lays its rows side by side */
@media (max-height: 520px) and (orientation: landscape) {
  .chooser { max-width: min(880px, calc(100vw - 16px)); }
  .chooser h3 { font-size: calc(15px * max(var(--pk), .85)); margin: 0; }
  .chooser .seg.rules, .chooser .seg.holes, .chooser .seg.two { display: inline-flex; vertical-align: top; margin-left: 3px; margin-right: 3px; flex-wrap: nowrap; }
  .chooser .seg.lead { margin-top: calc(10px * var(--pk)); }
  .chooser .seg > button.hold { height: calc(44px * var(--pk)); min-width: 118px; font-size: calc(17px * max(var(--pk), .8)); }
  .chooser .seg .drtoggle small { display: none; }
  .chooser .boostpop { display: flex; align-items: center; justify-content: center; gap: 12px; max-width: none; padding-top: calc(5px * var(--pk)); padding-bottom: calc(5px * var(--pk)); }
  .chooser .boostpop .bpn { display: none; } .chooser .seg.boosts { margin-top: 0; flex-wrap: nowrap; }
  .chooser .sum { display: inline-block; vertical-align: middle; text-align: left; margin-right: 16px; }
  .chooser .row { display: inline-flex; vertical-align: middle; }
  body.picking #hudRow { padding-top: 2px; padding-bottom: 2px; }
}

/* ================= version 1.9 ================= */
/* The game in the top bar: tap it for the whole thing (on a phone the name is cut short) */
#title { cursor: pointer; }
#tInfo .bst { color: #ffe14d; }
@media (max-width: 720px) {
  #title { position: relative; padding-right: 20px; }
  #title::after { content: "i"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; border-radius: 50%; border: 1.5px solid #8fa0b6; color: #c7d2e0; font: italic 700 10.5px/15px Georgia, 'Times New Roman', serif; text-align: center; }
}
.gi { display: grid; gap: 9px; margin-top: 6px; }
.girow { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 10px; font-size: 14.5px; line-height: 1.36; }
.girow > span { color: var(--gold); font-weight: 800; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; padding-top: 3px; }
.gidr { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 9px; background: linear-gradient(#f3c75c, #d49c2a); color: #201503; font-size: 11px; font-weight: 900; letter-spacing: .05em; vertical-align: 3px; }

/* A drink sits beside the name, never on top of it */
.drk.in, .pl3 .drk.in, #heroInfo .drk.in { position: static; display: inline-block; font-style: normal; font-size: 15px; line-height: 1; filter: none; animation: none; flex: none; letter-spacing: -2px; right: auto; top: auto; bottom: auto; }
.pl3 .nm { display: flex; align-items: center; justify-content: center; gap: 3px; }
.pl3 .nm .nmt { font-weight: inherit; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
#heroInfo .hn { display: flex; align-items: center; gap: 5px; }
#heroInfo .hn .hnn { font-weight: inherit; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
#heroInfo .hn span { flex: none; margin-left: 0; }
@media (max-width: 720px) { .drk.in, .pl3 .drk.in, #heroInfo .drk.in { font-size: 12.5px; } }

/* Emoji tags: stuck on a player until they win a hand */
@keyframes tagWob { 0%, 100% { transform: rotate(-9deg); } 50% { transform: rotate(9deg); } }
@keyframes tagWob3 { 0%, 100% { transform: translate(-50%, -50%) rotate(-9deg); } 50% { transform: translate(-50%, -50%) rotate(9deg); } }
@keyframes tagSlap { 0% { transform: translate(-50%, -50%) scale(5) rotate(-30deg); opacity: 0; } 22% { transform: translate(-50%, -50%) scale(.85) rotate(10deg); opacity: 1; } 38% { transform: translate(-50%, -50%) scale(1.3) rotate(-4deg); } 55%, 82% { transform: translate(-50%, -50%) scale(1); opacity: 1; } 100% { transform: translate(-50%, -50%) scale(1); opacity: 0; } }
.tagb { position: absolute; left: -9px; top: -12px; font-size: 34px; line-height: 1; z-index: 3; filter: drop-shadow(0 2px 3px rgba(0,0,0,.85)); transform-origin: 50% 85%; animation: tagWob 2.8s ease-in-out infinite; cursor: help; }
#heroInfo .ring .tagb { font-size: 30px; left: -10px; top: -12px; }
.pod .ring .tagb { font-size: 44px; left: -12px; top: -16px; }
.tag3 { position: absolute; font-size: 40px; line-height: 1; z-index: 6; filter: drop-shadow(0 3px 4px rgba(0,0,0,.9)); transform: translate(-50%, -50%); transform-origin: 50% 85%; animation: tagWob3 2.8s ease-in-out infinite; pointer-events: none; }
.tag3.near { font-size: 27px; }
.tagfly { position: fixed; z-index: 60; font-size: 58px; line-height: 1; pointer-events: none; transform: translate(-50%, -50%); animation: tagSlap 1.45s cubic-bezier(.2,.9,.3,1) both; filter: drop-shadow(0 6px 10px rgba(0,0,0,.8)); }
@media (max-width: 720px) { .tag3 { font-size: 30px; } .tag3.near { font-size: 21px; } #heroInfo .ring .tagb { font-size: 24px; left: -8px; top: -9px; } }
#tagPop { position: fixed; z-index: 41; right: calc(12px + var(--sar)); bottom: calc(var(--hudh, 150px) + 10px); width: min(350px, calc(100vw - 20px)); background: linear-gradient(#20263a, #0e121c); border: 1.5px solid #ffe14d; border-radius: 16px; padding: 10px 10px 14px; box-shadow: 0 16px 40px rgba(0,0,0,.65); overflow: hidden; }
#tagPop .tph b { display: block; font-size: 15.5px; color: #ffe14d; }
#tagPop .tph small { display: block; color: #cfd6e2; font-size: 12.5px; line-height: 1.3; margin: 2px 0 8px; }
#tagPop .tpe { display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; margin-bottom: 8px; }
#tagPop .tpe button { height: 38px; font-size: 21px; line-height: 1; border-radius: 10px; background: #1a2130; border: 1.5px solid #34425a; padding: 0; }
#tagPop .tpe button.on { border-color: #ffe14d; background: #3a3413; box-shadow: 0 0 0 2px rgba(255,225,77,.25); }
#tagPop .tpp { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
#tagPop .tpp button { min-height: 42px; min-width: 0; border-radius: 11px; background: linear-gradient(#2b3550, #1b2337); border: 1.5px solid #4a5c86; font-weight: 800; font-size: 14px; display: flex; align-items: center; gap: 6px; padding: 3px 8px; text-align: left; }
#tagPop .tpp button:active { background: #3b4a70; }
#tagPop .tpp .te { font-size: 19px; flex: none; } #tagPop .tpp .tn { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#tagPop .tpp small { margin-left: auto; flex: none; font-size: 10.5px; color: var(--muted); font-weight: 700; }
#tagPop .tpx { margin-top: 8px; width: 100%; height: 32px; border-radius: 9px; background: transparent; border: 1px solid #3a4558; color: var(--muted); font-weight: 700; font-size: 13px; }
#tagPop .dpt { position: absolute; left: 0; bottom: 0; height: 4px; width: 100%; background: #ffe14d; transform-origin: 0 50%; transform: scaleX(var(--p, 1)); }
#tagPop.chip { width: auto; padding: 0; border-radius: 14px; animation: tagChip 1.3s ease-in-out infinite; }
#tagPop .tpchip { display: flex; align-items: center; gap: 9px; padding: 7px 14px 10px 10px; text-align: left; }
#tagPop .tpchip .te { font-size: 26px; line-height: 1; }
#tagPop .tpchip b { display: block; font-size: 14.5px; color: #ffe14d; white-space: nowrap; }
#tagPop .tpchip small { display: block; font-size: 12px; color: #cfd6e2; white-space: nowrap; }
@keyframes tagChip { 0%, 100% { box-shadow: 0 10px 26px rgba(0,0,0,.6), 0 0 0 0 rgba(255,225,77,.55); } 50% { box-shadow: 0 10px 26px rgba(0,0,0,.6), 0 0 0 7px rgba(255,225,77,0); } }
@media (max-width: 720px) {
  #tagPop { left: 8px; right: 8px; width: auto; max-width: 370px; margin: 0 auto; bottom: calc(var(--hudh, 170px) + 8px); padding: 8px 8px 12px; }
  #tagPop.chip { left: auto; right: 8px; margin: 0; padding: 0; }
  #tagPop .tpe button { height: 36px; font-size: 19px; }
}
.tagset { margin: 2px 0 10px 14px; padding: 2px 0 2px 12px; border-left: 2px solid #2c3a4e; }
.tagset input[type=range] { width: 100%; }

/* Final results: "if nobody had ever bet" */
.wtab { display: grid; gap: 4px; }
.wrow { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto auto auto; align-items: center; gap: 9px; padding: 6px 10px; border-radius: 10px; background: rgba(255,255,255,.045); font-size: 14.5px; }
.wrow .mini { width: 24px; height: 24px; }
.wrow .wn { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.wrow b { font-size: 19px; color: #d8dee6; min-width: 28px; text-align: right; }
.wrow.top { background: rgba(240,192,80,.12); } .wrow.top b { color: var(--gold); }
.wrow.me .wn { color: #fff; }
.wof { color: var(--muted); font-size: 12.5px; white-space: nowrap; } .wreal { color: #9fb4cc; font-size: 12.5px; white-space: nowrap; }
@media (max-width: 480px) { .wrow { grid-template-columns: 22px minmax(0, 1fr) auto auto; row-gap: 0; } .wreal { grid-column: 2 / -1; } }

/* Table chat: computers only, bottom left. Your name and stack move to the right of your cards. */
#chat { display: none; }
body.haschat #chat { display: block; grid-area: chat; position: relative; height: 116px; min-width: 0; align-self: center; }
/* chat | cards | name and stack | buttons. The cards and the name always get the room they need; the chat and the
   buttons share what is left (each has a cap), which also keeps the cards near the middle of the bar. */
body.haschat #hudRow { grid-template-columns: minmax(190px, 1.25fr) auto minmax(128px, auto) minmax(min-content, 1.5fr); grid-template-areas: "chat cards info act"; max-width: 1600px; }
body.haschat #chat { max-width: 330px; }
body.haschat #actions { max-width: 540px; width: 100%; justify-self: end; }
body.haschat .emob { width: 40px; height: 42px; font-size: 22px; }
/* a laptop-width window with a big hand: slightly smaller cards and picture, so the bar never runs out of room */
@media (max-width: 1439px) {
  body.haschat #heroCards.n7 { --cw: 46px; } body.haschat #heroCards.n10 { --cw: 44px; }
  body.haschat #hudRow.many #heroInfo .ring { width: 42px; height: 42px; }
  body.haschat #hudRow.many #heroInfo .hs { font-size: 22px; }
}
body.haschat #heroMid { grid-area: cards; } body.haschat #heroInfo { grid-area: info; } body.haschat #actions { grid-area: act; }
#chatBox { position: absolute; left: 0; right: 0; bottom: 0; height: 100%; display: flex; flex-direction: column; background: rgba(8,12,18,.94); border: 1px solid #2c3a4e; border-radius: 10px; overflow: hidden; z-index: 8; }
#chat.big #chatBox { height: 400px; border-color: #46597a; box-shadow: 0 -12px 34px rgba(0,0,0,.65); }
#chatLog { flex: 1; min-height: 0; overflow-y: auto; padding: 5px 8px 3px; font-size: 13px; line-height: 1.34; overflow-wrap: anywhere; scrollbar-width: thin; scrollbar-color: #33435c transparent; }
.cm { color: #dfe6ef; } .cm b { font-weight: 800; margin-right: 5px; } .cm.me b { color: var(--gold) !important; }
.cm.none { color: var(--muted); font-style: italic; }
#chatNew { position: absolute; left: 50%; bottom: 40px; transform: translateX(-50%); height: 22px; padding: 0 10px; border-radius: 11px; background: #2f4a7a; border: 1px solid #5b8def; color: #fff; font-size: 11.5px; font-weight: 800; white-space: nowrap; }
#chatForm { display: flex; gap: 4px; padding: 4px; border-top: 1px solid #223044; background: #0c121a; flex: none; }
#chatIn { flex: 1; min-width: 0; height: 26px; border-radius: 7px; border: 1px solid #33435c; background: #141c28; color: #fff; font: inherit; font-size: 13px; padding: 0 8px; outline: none; }
#chatIn:focus { border-color: #5b8def; } #chatIn:disabled { opacity: .55; }
#chatForm button { flex: none; height: 26px; border-radius: 7px; border: 1px solid #33435c; background: #1c2636; color: #cfd8e6; font-size: 12px; font-weight: 800; padding: 0 9px; }
#chatForm .chs:hover, #chatForm .chz:hover { background: #26344c; color: #fff; }
#chatForm .chz { width: 26px; padding: 0; } #chatForm .chz::before { content: "\25B4"; } #chat.big #chatForm .chz::before { content: "\25BE"; }

/* Seven reactions and the "Show my cards" button share one row on a phone: the faces give up width so nothing is cut off */
@media (max-width: 720px) {
  .endrow { min-width: 0; }
  .emorow { flex: 1 1 auto; min-width: 0; justify-content: center; gap: 3px; }
  .emob { flex: 1 1 0; width: auto; min-width: 24px; max-width: 40px; font-size: clamp(16px, 5.4vw, 22px); padding: 0; }
  .endrow .showbtn { flex: none; white-space: nowrap; }
}
/* The dealer button sits on the plate's corner: the name steps aside for it now that a drink can share the line */
.pl3.hasd .nm { padding-left: 5px; }
@media (max-width: 720px) { .pl3.hasd .nm { padding-left: 9px; } }

/* ================= version 2.0 ================= */
/* Login on the join screen */
.sheet input[type=password] { width: 100%; height: 48px; border-radius: 12px; border: 1px solid #3a4a60; background: #0b1118; color: inherit; padding: 0 12px; font: inherit; font-size: 17px; font-weight: 700; letter-spacing: .18em; -webkit-user-select: text; user-select: text; }
.sheet input[type=password]::placeholder { letter-spacing: 0; font-weight: 600; font-size: 14.5px; }
.lgd { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 10px 0 2px; padding: 9px 12px; border-radius: 12px; background: rgba(91,141,239,.12); border: 1px solid #33466b; font-size: 15px; }
.lgd b { color: var(--gold); }
.lnk { background: none; border: 0; color: #9db8ee; text-decoration: underline; font-size: 13px; font-weight: 700; padding: 4px 0; white-space: nowrap; }
/* Tournament payouts */
#poLeft b { color: var(--gold); }
#poList .prow .n small { display: block; }

/* ---------- 2.1: effects volume, the 1 Card game, reactions that cannot turn into a fold ---------- */
.sndwrap { position: relative; display: flex; }
.sndpop { display: none; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); z-index: 40; padding-top: 7px; width: 216px; }
.sndpop::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; bottom: 0; border-radius: 12px; background: linear-gradient(#223044, #161f2c); border: 1px solid #44597a; box-shadow: 0 10px 26px rgba(0,0,0,.6); }
.sndpop > * { position: relative; }
.sndpop span { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding-left: 11px; flex: none; }
.sndpop b { width: 42px; text-align: right; padding-right: 11px; font-size: 13px; font-weight: 800; color: var(--gold); flex: none; font-variant-numeric: tabular-nums; }
.sndpop input[type=range] { height: 40px; margin: 0 6px; }
.sndpop input[type=range]::-webkit-slider-runnable-track { height: 8px; border-radius: 4px; }
.sndpop input[type=range]::-moz-range-track { height: 8px; border-radius: 4px; }
.sndpop input[type=range]::-webkit-slider-thumb { width: 24px; height: 24px; margin-top: -8px; border-width: 2px; }
.sndpop input[type=range]::-moz-range-thumb { width: 20px; height: 20px; border-width: 2px; }
.sndwrap.open .sndpop { display: flex; align-items: center; }
@media (hover: hover) and (pointer: fine) { .sndwrap:hover .sndpop, .sndwrap:focus-within .sndpop { display: flex; align-items: center; } }
.volrow { display: flex; align-items: center; gap: 10px; margin: 6px 0 0; padding: 2px 12px; border-radius: 12px; background: rgba(0,0,0,.25); border: 1.5px solid #3a4a60; }
.volrow span { font-weight: 800; flex: none; }
.volrow b { width: 44px; text-align: right; font-weight: 800; color: var(--gold); flex: none; font-variant-numeric: tabular-nums; }
.sheet .note.volnote { margin-top: 5px; }
/* the reaction row was just tapped: the action buttons and auto-play boxes that took its place wait a moment */
#actions.guard .btn[data-a], #actions.guard .pre { opacity: .4; filter: saturate(.4); transition: none; cursor: default; }
#actions .btn[data-a], #actions .pre { transition: opacity .18s, filter .18s, border-color .12s, background .12s, transform .06s; }
/* 1 Card: no board, so the middle of the felt names the game */
.onetag { position: absolute; transform: translate(-50%, -50%); z-index: 3; text-align: center; white-space: nowrap; padding: 7px 20px 8px; border: 2px solid rgba(240,192,80,.6); border-radius: 14px; color: rgba(240,205,120,.92); background: rgba(4,20,13,.45); pointer-events: none; }
.onetag b { display: block; font-family: Georgia, "Times New Roman", serif; font-size: 25px; letter-spacing: .14em; line-height: 1.1; }
.onetag span { display: block; font-size: 11.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; opacity: .9; }
.onetag i { display: block; font-style: normal; font-size: 17px; letter-spacing: .32em; margin: 2px -0.32em 0 0; color: #f4ead0; }
.onetag.flat { position: static; transform: none; display: block; width: max-content; margin: 2px auto 10px; }
.suitrank { letter-spacing: .12em; color: var(--text); font-weight: 800; }
@media (max-width: 720px) { .onetag { padding: 5px 14px 6px; } .onetag b { font-size: 19px; } .onetag span { font-size: 10px; } .onetag i { font-size: 15px; } }
/* five games in the second row of the picker: on a phone they stay on one line */
@media (max-width: 430px) {
  .chooser .seg.rules:not(.lead) { flex-wrap: nowrap; gap: 4px; }
  .chooser .seg.rules:not(.lead) > button { flex: 1 1 auto; min-width: 0; padding: 0 5px; font-size: calc(13.5px * max(var(--pk), .85)); white-space: nowrap; }
}

/* ---------- 2.2: saved games ---------- */
.req.save { border-left-color: var(--green); flex-wrap: wrap; }
.req.save .who { min-width: 170px; }
.req.save .who small { display: block; color: var(--muted); font-size: 12px; line-height: 1.25; margin-top: 2px; overflow-wrap: anywhere; }
.recsec { margin-top: 14px; }
.recsec h3 { margin: 0 0 6px; font-size: 13px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--gold); }
.recsec h3 small { color: var(--muted); font-weight: 700; margin-left: 4px; }
.recnone { color: var(--muted); font-size: 14px; padding: 6px 2px; }
.recrow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 9px 11px; margin-bottom: 6px; border-radius: 12px; background: rgba(0,0,0,.25); border: 1.5px solid #3a4a60; }
.recrow.new { border-color: var(--gold); }
.recrow .rn { flex: 1 1 220px; min-width: 0; }
.recrow .rn b { display: block; overflow-wrap: anywhere; }
.recrow .rn small { display: block; color: var(--muted); font-size: 12.5px; line-height: 1.3; margin-top: 2px; }
.recrow .rn i { font-style: normal; color: var(--gold); font-weight: 700; }
.recrow .rb { display: flex; gap: 6px; flex-wrap: wrap; }
.recrow .rb .btn { min-width: 0; height: 36px; padding: 0 12px; font-size: 14px; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.recroot { margin-top: 16px; }
.recroot summary { cursor: pointer; font-weight: 800; color: var(--muted); }
.recroot input { width: 100%; margin: 8px 0; font-size: 13px; }
.recroot .row { display: flex; gap: 8px; flex-wrap: wrap; }

/* Banker only: a quiet mark beside a player who is not seeing the chat (a phone, or a computer window too small for it) */
.nochat { flex: none; display: inline-flex; align-items: center; color: #9fb0c8; opacity: .7; font-style: normal; pointer-events: auto; cursor: help; }
.nochat svg { height: 12px; width: auto; display: block; }
.pod .nm .nmt { font-weight: inherit; }
.pod .nm.hasnc { display: flex; align-items: center; justify-content: center; gap: 4px; }
.pod .nm.hasnc .nmt { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 720px) { .nochat svg { height: 10px; } }


/* ===================== 2.4 ===================== */
/* Check is not Call: Check is a calm steel blue (nothing goes in), Call stays green (chips go in). */
.btn.call.check { background: linear-gradient(#5f8fd6, #3462a8); }
#actions .btn.two { line-height: 1.05; }
#actions .btn.two span { display: inline-flex; flex-direction: column; align-items: center; }
#actions .btn.two small { display: block; font-size: 10.5px; font-weight: 700; opacity: .92; letter-spacing: .01em; margin-top: 2px; white-space: normal; line-height: 1.1; max-width: 100%; }
#actions .btn.two { padding-left: 8px; padding-right: 8px; } #actions .btn.two kbd { display: none; }
#actions .btn.bank.ext { background: linear-gradient(#7a5a1c, #4f3a10); border-color: var(--gold); color: #ffe9a8; }
/* five auto-play boxes; the Call box shows the amount it is for */
.pre span { display: inline-flex; align-items: baseline; gap: 5px; white-space: nowrap; }
.pre span small { font-size: 12px; font-weight: 700; opacity: .8; }
.pre[data-pre=callx].on { border-color: #42c57f; background: #1d3327; color: #c9f5dc; }
.pre[data-pre=callx].on i { background: #42c57f; border-color: #42c57f; }
@media (max-width: 720px) {
  .prebox.n5 { grid-template-columns: .72fr 1.22fr .86fr .8fr 1.05fr; gap: 4px; }
  .prebox.n5 .pre { padding: 0 2px; font-size: 12.5px; gap: 0; }
  .prebox.n5 .pre i { display: none; }                       /* no room for five tick squares: the whole box lights up instead */
  .prebox.n5 .pre span { flex-direction: column; align-items: center; gap: 0; line-height: 1.05; }
  .prebox.n5 .pre span small { font-size: 10.5px; }
}
@media (max-width: 380px) { .prebox.n5 .pre { font-size: 11.5px; } }
/* what a folded hand would be */
#heroHand .wb { margin-left: 8px; opacity: .85; }
#heroHand .wb b { color: #cfd9ea; font-weight: 800; }
/* the small sit-out button, bottom left of the table */
.sitbtn { position: absolute; left: calc(8px + var(--sal, 0px)); bottom: 8px; z-index: 6; height: 30px; padding: 0 11px 0 8px; border-radius: 15px; font-size: 12.5px; font-weight: 800; color: #b9c6da; background: rgba(13, 20, 30, .72); border: 1px solid rgba(127, 147, 179, .45); display: inline-flex; align-items: center; gap: 5px; opacity: .78; transition: opacity .15s, border-color .15s, color .15s; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.sitbtn[hidden] { display: none; }
.sitbtn i { font-style: normal; font-size: 14px; line-height: 1; }
.sitbtn:hover, .sitbtn:active { opacity: 1; color: #fff; border-color: #7f93b3; }
.sitbtn.back { color: #c9f5dc; border-color: #42c57f; background: rgba(22, 60, 40, .85); opacity: 1; }
body.hassit #miniLog { bottom: 46px; }
body.picking .sitbtn { display: none; }
@media (max-width: 720px) { .sitbtn { height: 28px; font-size: 12px; bottom: 6px; padding: 0 9px 0 7px; } }
/* carry-over lines */
#result .carl { color: #ffd98a; font-size: 13px; }
.carrow { flex-wrap: wrap; } .carrow small { flex-basis: 100%; color: var(--muted); font-size: 12px; margin-top: 2px; }
.logline .ck { color: var(--muted); margin-left: 6px; }
.tabs .wide { display: inline; }
@media (max-width: 560px) { .tabs .wide { display: none; } }
/* stats: how they play, and the bad-beat rings */
.stt2 tr.sty td { font-size: .92em; } .stt2 tr.sty td small { display: block; opacity: .7; font-size: .78em; font-weight: 600; }
.stt2 td.hid { color: #4b5b73; }
.bbc { display: inline-block; padding: 1px 6px; border-radius: 999px; }
.bbc.got { box-shadow: 0 0 0 2px #ea6464; }
.bbc.gave { box-shadow: 0 0 0 2px #42c57f; }
.bbc.both { box-shadow: 0 0 0 2px #ea6464, 0 0 0 5px #42c57f; margin: 0 3px; }
.note .bbc { padding: 0 6px; font-weight: 700; }
/* the game picker: repeat, favorites, the star */
.chooser .rpt { display: flex; align-items: baseline; justify-content: center; gap: 8px; flex-wrap: wrap; width: 100%; margin-top: calc(9px * var(--pk)); min-height: calc(40px * var(--pk)); padding: calc(5px * var(--pk)) 12px; border-radius: calc(12px * max(var(--pk), .7)); border: 1.5px dashed #6f86a8; background: rgba(40, 56, 80, .55); color: #dfe8f5; font-size: calc(15px * max(var(--pk), .8)); }
.chooser .rpt b { font-weight: 800; } .chooser .rpt small { font-size: calc(12.5px * max(var(--pk), .85)); opacity: .85; font-weight: 600; }
.chooser .rpt:hover:not(:disabled) { border-color: var(--gold); color: #fff; } .chooser .rpt:disabled { opacity: .4; }
.chooser .favs { display: flex; align-items: center; gap: calc(6px * var(--pk)) 6px; flex-wrap: wrap; justify-content: center; margin-top: calc(10px * var(--pk)); }
.chooser .favs > span { font-size: calc(12px * max(var(--pk), .85)); color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.chooser .favs button { height: calc(34px * max(var(--pk), .7)); padding: 0 10px; border-radius: 999px; border: 1.5px solid #46597a; background: #1b2636; color: #d7e0ee; font-weight: 700; font-size: calc(13px * max(var(--pk), .85)); white-space: nowrap; }
.chooser .favs button i { font-style: normal; color: var(--gold); margin-right: 4px; }
.chooser .favs button.on { border-color: var(--gold); background: #33301f; color: #ffe9a8; }
.chooser .favs button:disabled { opacity: .35; }
.chooser .dealrow { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
.chooser .favstar { height: calc(38px * max(var(--pk), .68)); padding: 0 12px; border-radius: 999px; border: 1.5px solid #46597a; color: #b9c6da; font-weight: 700; font-size: calc(13px * max(var(--pk), .88)); white-space: nowrap; }
.chooser .favstar.on { border-color: var(--gold); color: #ffe9a8; background: #33301f; }
@media (max-width: 480px) { .chooser .favs > span { display: none; } .chooser .favs button { padding: 0 8px; } }
/* high pressure: a red pulse in time with the heartbeat */
#pulse { position: fixed; inset: 0; z-index: 30; pointer-events: none; opacity: 0; box-shadow: inset 0 0 90px 28px rgba(214, 28, 48, .55), inset 0 0 18px 4px rgba(255, 70, 90, .35); }
body.pressure #pulse.beat { animation: heartBeat .72s ease-out 1; }
@keyframes heartBeat { 0% { opacity: 0; } 9% { opacity: 1; } 24% { opacity: .35; } 33% { opacity: .8; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { body.pressure #pulse.beat { animation: none; opacity: .3; } }
/* the welcome screen */
.wel { margin: -4px -4px 14px; padding: 14px 14px 12px; border-radius: 16px; background: radial-gradient(120% 140% at 0% 0%, #1f4a39 0%, #12283a 55%, #101a28 100%); border: 1px solid #2f5a4a; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.weltop { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.wellogo { width: 42px; height: 42px; border-radius: 50%; flex: none; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, #e23b4e, #9c1626); border: 3px dashed rgba(255, 255, 255, .85); box-shadow: 0 0 0 3px #9c1626; }
.wellogo i { font-style: normal; color: #fff; font-size: 19px; line-height: 1; }
.welname { display: flex; flex-direction: column; min-width: 170px; flex: 1; }
.welname b { font-size: 20px; letter-spacing: .01em; line-height: 1.1; } .welname span { font-size: 12.5px; color: #a9c2bb; }
.wellive { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 800; background: rgba(0, 0, 0, .35); border: 1px solid rgba(255, 255, 255, .16); white-space: nowrap; }
.wellive i { width: 8px; height: 8px; border-radius: 50%; background: #8a97aa; }
.wellive.live { color: #c9f5dc; border-color: rgba(66, 197, 127, .6); } .wellive.live i { background: #42c57f; box-shadow: 0 0 0 0 rgba(66, 197, 127, .7); animation: livePing 1.6s ease-out infinite; }
.wellive.wait { color: #ffe9a8; } .wellive.wait i { background: var(--gold); }
.wellive.over { color: #c3ccd9; }
@keyframes livePing { 0% { box-shadow: 0 0 0 0 rgba(66, 197, 127, .7); } 100% { box-shadow: 0 0 0 9px rgba(66, 197, 127, 0); } }
.welkind { margin-top: 12px; font-size: 15px; color: #dfe8f5; } .welkind b { color: #fff; font-size: 17px; }
.welfacts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px; margin-top: 9px; }
@media (max-width: 600px) { .welfacts { grid-template-columns: repeat(2, minmax(0, 1fr)); } .welfacts > div:last-child:nth-child(odd) { grid-column: 1 / -1; } }
.welfacts > div { background: rgba(0, 0, 0, .28); border: 1px solid rgba(255, 255, 255, .09); border-radius: 12px; padding: 7px 10px 8px; min-width: 0; }
.welfacts label { display: block; margin: 0; font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: #9fb4c9; }
.welfacts b { display: block; font-size: 16.5px; line-height: 1.25; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 600px) { .welfacts b { font-size: 18px; } }
.welfacts small { display: block; font-size: 11.5px; color: #a9b8cb; line-height: 1.25; }
.welwho { display: flex; align-items: center; gap: 0; margin-top: 10px; }
.welwho span { margin-right: -7px; } .welwho .mini { width: 28px; height: 28px; border: 2px solid #12283a; border-radius: 50%; }
.welwho em { font-style: normal; margin-left: 16px; font-size: 12.5px; color: #a9c2bb; }
.welhelp { width: 100%; margin-top: 11px; display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px; text-align: left; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .26); color: #eaf1fb; transition: background .12s, border-color .12s; }
.welhelp:hover, .welhelp:active { background: rgba(255, 255, 255, .13); border-color: var(--gold); }
.welhelp i { font-style: normal; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--gold); color: #201503; font-weight: 900; flex: none; }
.welhelp span { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.25; }
.welhelp b { font-size: 15px; } .welhelp small { font-size: 12.5px; color: #b5c5d8; }
.welhelp em { font-style: normal; font-size: 22px; color: #b5c5d8; line-height: 1; }
/* the "How it works" sheet */
.hlead { color: var(--muted); margin-top: -4px; }
.hsec { border: 1px solid var(--line); border-radius: 12px; margin-top: 8px; background: rgba(255, 255, 255, .02); overflow: hidden; }
.hsec summary { cursor: pointer; padding: 11px 14px; font-weight: 800; font-size: 15.5px; list-style: none; display: flex; align-items: center; justify-content: space-between; }
.hsec summary::-webkit-details-marker { display: none; }
.hsec summary::after { content: "+"; color: var(--muted); font-size: 20px; line-height: 1; }
.hsec[open] summary::after { content: "\2212"; }
.hsec[open] summary { border-bottom: 1px solid var(--line); }
.hsec > div { padding: 4px 14px 10px; font-size: 14px; line-height: 1.45; color: #d5deeb; }
.hsec ul { margin: 6px 0 0; padding-left: 18px; } .hsec li { margin: 5px 0; } .hsec p { margin: 8px 0 2px; }
/* who is connected */
.wholist { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.whorow { display: grid; grid-template-columns: minmax(120px, 1.1fr) minmax(120px, .9fr) minmax(150px, 1.4fr); gap: 4px 12px; align-items: start; padding: 9px 11px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, .02); font-size: 14px; }
.whorow.off { opacity: .6; }
.whorow small { display: block; color: var(--muted); font-size: 12px; line-height: 1.3; }
.whorow .wn em { font-style: normal; color: var(--muted); font-weight: 600; }
.whorow .wb { margin-left: 6px; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #201503; background: var(--gold); border-radius: 6px; padding: 1px 5px; vertical-align: 2px; }
.whorow code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; color: #e7eef9; word-break: break-all; }
.whorow .wt { display: inline-block; font-style: normal; font-size: 11px; font-weight: 800; border-radius: 6px; padding: 1px 6px; margin: 4px 4px 0 0; }
.whorow .wt.cell { background: #25364f; color: #cfe0ff; } .whorow .wt.warn { background: #4a3413; color: #ffd98a; }
@media (max-width: 640px) { .whorow { grid-template-columns: 1fr 1fr; } .whorow .wp { grid-column: 1 / -1; } }

/* 2.4.1: an auto-play box that cannot be chosen right now is not shown, but its place is kept so nothing moves */
.pre.gone { visibility: hidden; pointer-events: none; border-color: transparent; background: none; }
/* on a computer the five boxes sit in fixed columns too (they used to size themselves to their words) */
@media (min-width: 721px) {
  .prebox.n5 { display: grid; grid-template-columns: 84fr 138fr 98fr 142fr 116fr; width: 610px; max-width: 100%; gap: 8px; }
  .prebox.n5 .pre { min-width: 0; overflow: hidden; justify-content: flex-start; }
}

/* ---------- 2.5: the recap ---------- */
.thwho { display: contents; cursor: pointer; font: inherit; color: inherit; }
.stt2 thead th:has(.thwho):hover span { text-decoration: underline; }
#menu button.hot[data-cmd="recap"] { color: #f2c14e; }

/* ---------- 2.6: hats (they replaced the emoji tags) and the bigger cast ---------- */
/* a hat on a portrait: it sits on top of the ring, where the head is */
.tagb.hatb { left: 50%; top: auto; bottom: 56%; width: 82%; font-size: 0; line-height: 0; transform: translateX(-50%); transform-origin: 50% 95%; animation: hatWob 3.2s ease-in-out infinite; filter: drop-shadow(0 2px 3px rgba(0,0,0,.8)); }
.tagb.hatb svg, .tag3.hat3 svg, .tagfly.hatfly svg, #tagPop svg { display: block; width: 100%; height: auto; }
#heroInfo .ring .tagb.hatb, .pod .ring .tagb.hatb { left: 50%; top: auto; font-size: 0; }
.pod .ring .tagb.hatb { width: 78%; bottom: 60%; }
.tagb.hatb.trophy { filter: drop-shadow(0 0 6px rgba(255,225,77,.75)) drop-shadow(0 2px 3px rgba(0,0,0,.8)); }
@keyframes hatWob { 0%, 100% { transform: translateX(-50%) rotate(-4deg); } 50% { transform: translateX(-50%) rotate(4deg); } }
.tag3.hat3 { width: 44px; font-size: 0; } .tag3.hat3.near { width: 34px; }
.tag3.hat3.trophy { filter: drop-shadow(0 0 6px rgba(255,225,77,.75)) drop-shadow(0 3px 4px rgba(0,0,0,.9)); }
.tagfly.hatfly { width: 86px; font-size: 0; }
@media (max-width: 720px) { .tag3.hat3 { width: 36px; } .tag3.hat3.near { width: 28px; } #heroInfo .ring .tagb.hatb { left: 50%; top: auto; width: 86%; } }
/* the offer: six to hand out, four to wear */
#tagPop .tpk { font-size: 12.5px; font-weight: 800; color: #cfd6e2; margin: 2px 0 4px; }
#tagPop .tpk small { font-weight: 600; color: var(--muted); margin-left: 4px; }
#tagPop .tpk.tr { color: #ffe14d; margin-top: 2px; }
#tagPop .tpe { grid-template-columns: repeat(7, 1fr); gap: 5px; }
#tagPop .tpe.tr { grid-template-columns: repeat(3, 1fr); }
#tagPop .tpe button { height: 50px; padding: 4px 0; display: grid; place-items: center; }
#tagPop .tpe button svg { width: auto; height: 40px; }
#tagPop .tpe.tr button { background: #2a2512; border-color: #6b5a1c; }
#tagPop .tpw { display: flex; align-items: center; gap: 10px; background: #141a27; border: 1px solid #2c3a4e; border-radius: 11px; padding: 6px 10px; margin-bottom: 8px; }
#tagPop .tpw .te { width: 40px; flex: none; }
#tagPop .tpw b { display: block; font-size: 14px; text-transform: capitalize; } #tagPop .tpw small { display: block; font-size: 12px; color: #cfd6e2; line-height: 1.25; }
#tagPop .tpp.one { grid-template-columns: 1fr; }
#tagPop .tpp.one button { background: linear-gradient(#5a4a12, #3a3008); border-color: #ffe14d; color: #ffe14d; justify-content: center; }
#tagPop .tpp button { justify-content: flex-start; padding: 0 10px; }
#tagPop .tpchip .te { width: 34px; font-size: 0; }
@media (max-width: 720px) { #tagPop .tpe button { height: 44px; font-size: 0; } #tagPop .tpe button svg { height: 34px; } }
/* 41 characters: a filter, and a grid that scrolls inside the join sheet */
.avset { display: flex; gap: 6px; margin: 0 0 7px; }
.avset button { height: 30px; padding: 0 12px; border-radius: 15px; background: var(--panel2); border: 1.5px solid transparent; color: var(--muted); font-weight: 800; font-size: 13px; }
.avset button.on { border-color: var(--gold); color: var(--text); background: #2b2a1e; }
.avset button small { font-weight: 700; opacity: .7; }
.avgrid.people.many { grid-template-columns: repeat(7, 1fr); max-height: 318px; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding: 2px 4px 2px 2px; border-radius: 12px; }
.avgrid.people.many .avopt { font-size: 11px; padding: 5px 2px 4px; line-height: 1.15; }
@media (max-width: 720px) { .avgrid.people.many { grid-template-columns: repeat(5, 1fr); max-height: 262px; gap: 5px; } .avgrid.people.many .avopt { font-size: 9.8px; padding: 3px 1px; } }
@media (max-width: 380px) { .avgrid.people.many { grid-template-columns: repeat(4, 1fr); } }

/* ===================== 2.7 ===================== */
/* show some of your cards: tap to pick, gold and lifted; cards already turned up carry a small mark */
#heroCards.canpick .card { cursor: pointer; }
#heroCards .card.pick { transform: translateY(-13px); box-shadow: 0 0 0 3px var(--gold), 0 10px 18px rgba(0,0,0,.55); }
#heroCards .card.pick::after { content: "SHOW"; position: absolute; left: 50%; bottom: 4px; transform: translateX(-50%); font-size: 8.5px; font-weight: 900; letter-spacing: .06em; color: #201503; background: var(--gold); border-radius: 6px; padding: 1px 5px; line-height: 1.2; white-space: nowrap; }
/* while you are choosing what to show, the best-hand outline steps back so the picked cards are the only gold ones */
#heroCards.canpick .card.uh:not(.pick):not(.peeked), #heroCards.canpick .card.ul:not(.pick):not(.peeked) { box-shadow: 0 3px 7px rgba(0,0,0,.5); transform: none; }
#heroCards .card.peeked { box-shadow: 0 0 0 2.5px #6fe3a0, 0 3px 7px rgba(0,0,0,.5); }
#heroCards .card.peeked::after { content: "SHOWN"; position: absolute; left: 50%; bottom: 4px; transform: translateX(-50%); font-size: 8.5px; font-weight: 900; letter-spacing: .06em; color: #06281a; background: #6fe3a0; border-radius: 6px; padding: 1px 5px; line-height: 1.2; white-space: nowrap; }
#heroHand .tip { font-size: 12px; font-weight: 700; opacity: .9; }
.showrow { display: flex; gap: 8px; flex: none; align-items: center; }
.showrow .showbtn { min-width: 150px; flex: none; }
.showrow .noshow { flex: none; min-width: 92px; border-color: #5a6f90; color: #d5deec; }
#actions.guard .showrow .btn { opacity: .4; filter: saturate(.4); transition: none; cursor: default; }
/* a seat with some cards up: the shown ones bright, backs for the rest */
.pod .shown.peek .card.back, .shown3.peek .card.back { filter: brightness(.8); }
.pod .shown.peek .card.used, .shown3.peek .card.used { transform: none; }
.sdc .card.back { width: var(--cw, 34px); }
@media (max-width: 720px) {
  /* a phone: the two show buttons take the line the status text had, and the reactions stay underneath */
  .prewrap.hasshow .status { display: none; }
  .prewrap.hasshow .endrow { flex-wrap: wrap; row-gap: 6px; }
  .prewrap.hasshow .showrow { order: -1; flex: 1 0 100%; justify-content: center; gap: 8px; }
  .showrow .showbtn, .showrow .noshow { min-width: 0; flex: 1 1 0; max-width: 190px; padding: 0 10px; font-size: 14.5px; white-space: nowrap; }
}

/* the bet panel: your usual size, as one more choice */
.presets.six { grid-template-columns: repeat(6, 1fr); }
.presets button.usual { border-color: rgba(242,193,78,.65); color: #ffe9a8; }
.presets button.usual small { color: #e7cf8f; }
@media (max-width: 420px) { .presets.six { gap: 4px; } .presets.six button { font-size: 12.5px; } .presets.six button small { font-size: 10px; } }

/* reactions while you wait: bottom left of the table, next to Sit out, never where the action buttons are */
#waitRow { position: absolute; left: calc(8px + var(--sal, 0px)); bottom: 8px; z-index: 6; display: flex; align-items: flex-end; }
#waitRow[hidden] { display: none; }
body.hassit #waitRow { left: calc(104px + var(--sal, 0px)); }
#waitRow .wtog { display: none; }
#waitRow .wlist { display: flex; gap: 4px; padding: 3px 5px; border-radius: 17px; background: rgba(16, 23, 34, .82); border: 1.5px solid #3d4d66; }
#waitRow .wemo, #waitRow .wtog { width: 32px; height: 28px; border-radius: 9px; font-size: 18px; line-height: 1; background: none; border: 0; padding: 0; transition: transform .08s; }
#waitRow .wemo:hover { background: rgba(255,255,255,.1); } #waitRow .wemo:active { transform: scale(1.25); }
#waitRow.cool .wemo { opacity: .35; filter: grayscale(.7); cursor: default; }
body.picking #waitRow { display: none; }
@media (max-width: 720px) {
  #waitRow { bottom: 6px; flex-direction: column-reverse; align-items: flex-start; gap: 4px; }
  body.hassit #waitRow { left: calc(92px + var(--sal, 0px)); }
  #waitRow .wtog { display: block; width: 34px; height: 28px; border-radius: 14px; background: rgba(16, 23, 34, .82); border: 1.5px solid #3d4d66; }
  #waitRow .wlist { display: none; flex-direction: column-reverse; padding: 5px 2px; }
  #waitRow.open .wlist { display: flex; }
  #waitRow .wemo { width: 34px; height: 34px; font-size: 20px; }
  #waitRow.cool .wtog { opacity: .4; filter: grayscale(.7); }
}

/* stats: the row of names stays at the top while you scroll. The sideways scroller used to be a box of its own,
   which is what let the names scroll away; now the sheet itself scrolls both ways. */
#drawerBody .stwrap { overflow: visible; }
#drawerBody.st { padding-top: 0; }
#drawerBody.st .stbar { margin-top: 0; padding-top: 10px; }
#drawerBody.st .stt2 thead th { padding-top: 8px; box-shadow: 0 1px 0 var(--line); }
#drawerBody .stbar, #drawerBody > .note, #drawerBody > .sthint { position: sticky; left: 0; }

/* ===================== 2.7.1: the banker's draws line (trial) ===================== */
#heroHand .dr { color: #e6dcff; background: rgba(150,120,255,.16); border: 1px dashed rgba(186,165,255,.7); padding: 1px 11px; border-radius: 11px; font-weight: 700; white-space: nowrap; }
#heroHand .dr em { font-style: normal; font-size: .78em; text-transform: uppercase; letter-spacing: .07em; color: #bfaeff; margin-right: 7px; font-weight: 900; }
#heroHand .dr b { color: #fff; font-weight: 900; }
#heroHand .dr i { font-style: normal; color: #a99be0; margin: 0 6px; }
/* the cards a draw is built on: a dashed ring, under the solid one when the card is also in the made hand */
#heroCards .card.ud { outline: 2px dashed #baa5ff; outline-offset: 2px; }
@media (max-width: 720px) { #heroHand .dr { white-space: normal; padding: 1px 8px; } #heroHand .dr i { margin: 0 4px; } }

/* ================= version 2.8 ================= */
/* for fun, not for money */
.funnote { margin: 10px 0; padding: 9px 12px; border-radius: 12px; background: rgba(66,197,127,.12); border: 1px solid rgba(66,197,127,.5); color: #d5f3e2; font-size: 13.5px; line-height: 1.35; }
.funnote b { color: #7be3a6; }
.funnote.wel2 { margin: 10px 0 2px; background: rgba(0,0,0,.28); }
/* a split pot, announced */
#splitPop { position: absolute; left: 50%; top: 10px; transform: translateX(-50%); z-index: 5; width: max-content; min-width: 260px; max-width: min(460px, calc(100% - 16px)); padding: 12px 16px 8px; border-radius: 18px; text-align: center; cursor: pointer;
  background: linear-gradient(rgba(38,28,6,.97), rgba(16,12,4,.97)); border: 2px solid var(--gold); box-shadow: 0 0 0 4px rgba(240,192,80,.18), 0 18px 44px rgba(0,0,0,.7); animation: splitIn .45s cubic-bezier(.2,1.4,.4,1); }
#splitPop[hidden] { display: none; }
@keyframes splitIn { from { transform: translateX(-50%) scale(.6); opacity: 0; } to { transform: translateX(-50%) scale(1); opacity: 1; } }
#splitPop .sph { font-size: 30px; font-weight: 900; letter-spacing: .08em; color: var(--gold); line-height: 1.05; text-shadow: 0 2px 0 rgba(0,0,0,.6); }
#splitPop .spk { font-size: 13.5px; color: #e8d9ae; margin: 2px 0 8px; }
#splitPop .spp { border-top: 1px solid rgba(240,192,80,.3); padding: 7px 0 5px; text-align: left; }
#splitPop .spn { display: flex; align-items: baseline; gap: 8px; font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; color: #cdbf98; font-weight: 800; }
#splitPop .spn b { color: #fff; font-size: 15px; letter-spacing: 0; }
#splitPop .spn i { font-style: normal; margin-left: auto; padding: 0 8px; border-radius: 8px; background: var(--gold); color: #201503; font-size: 10.5px; line-height: 1.7; }
#splitPop .spr { display: grid; grid-template-columns: 62px minmax(0, 1fr) auto; column-gap: 9px; align-items: center; padding: 4px 0; font-size: 18px; }
#splitPop .spr .spt { font-size: 11px; font-weight: 900; letter-spacing: .06em; text-align: center; border-radius: 8px; line-height: 1.9; color: #04210e; background: linear-gradient(#57dd92, #27a862); }
#splitPop .spr.lo .spt { background: linear-gradient(#9fd2ff, #5fa3e6); color: #06203a; }
#splitPop .spr b { color: #fff; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#splitPop .spr em { font-style: normal; font-weight: 900; color: #7be3a6; white-space: nowrap; } #splitPop .spr.lo em { color: #8ecbff; }
#splitPop .spr small { grid-column: 2 / 4; font-size: 12.5px; color: #cfd6df; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#splitPop .spx { font-size: 10.5px; color: #9a8f72; text-transform: uppercase; letter-spacing: .08em; margin-top: 2px; }
@media (max-width: 720px) { #splitPop .sph { font-size: 25px; } #splitPop .spr { font-size: 16px; grid-template-columns: 54px minmax(0, 1fr) auto; } #splitPop { padding: 10px 12px 6px; } }
@media (max-height: 520px) and (orientation: landscape) { #splitPop { top: 4px; padding: 6px 12px 4px; } #splitPop .sph { font-size: 20px; } #splitPop .spk { margin-bottom: 3px; } #splitPop .spr { font-size: 14px; padding: 2px 0; } #splitPop .spr small, #splitPop .spx { display: none; } }
#result .splithd { display: inline-block; margin-bottom: 4px; padding: 1px 12px; border-radius: 9px; background: linear-gradient(#f3c75c, #d49c2a); color: #201503; font-size: 13px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.sdsplit { color: var(--gold); letter-spacing: .06em; }
/* the whole game in the top bar on a phone: a line of its own, nothing cut off */
#tGame .bstb { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 9px; background: #ffe14d; color: #201503; font-size: 11px; font-weight: 900; letter-spacing: .04em; vertical-align: 1px; white-space: nowrap; }
#tGame .gii { display: none; }
@media (max-width: 720px) {
  #top { flex-wrap: wrap; row-gap: 3px; }
  #title { display: contents; }
  #title::after { display: none; }
  #tGame { order: -1; flex: 1 0 100%; white-space: normal; overflow: visible; text-overflow: clip; font-size: 15.5px; line-height: 1.3; }
  #tGame .dr { display: inline-block; margin-left: 6px; white-space: nowrap; } #tInfo .drt { display: none; }
  #tGame .bstb { margin-left: 6px; }
  #tGame .gii { display: inline-block; margin-left: 7px; width: 15px; height: 15px; border-radius: 50%; border: 1.5px solid #8fa0b6; color: #c7d2e0; font: italic 700 10.5px/15px Georgia, 'Times New Roman', serif; text-align: center; vertical-align: 1px; }
  #tInfo { flex: 1 1 0; min-width: 0; }
}
/* fold when a check is free: asked first */
#actions .foldask { flex: 1.2 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; text-align: center; font-size: 13.5px; line-height: 1.2; color: #ffd9d9; }
#actions .foldask .lnk { font-size: 13px; }
#actions .btn.fold.sure { box-shadow: 0 0 0 2px #fff inset; }
