:root {
  --wood: #3a2415;
  --wood-hi: #6a4326;
  --leather: #1b130f;
  --brass: #c9a24a;
  --brass-hi: #ecd48f;
  --brass-dim: #8a6b2d;
  --cream: #f0e6cc;
  --cream-dim: #b9aa84;
  --muted: #a39373;
  --crimson: #8f1d25;
  --crimson-hi: #b82a33;
  --amber: #ffbf5e;
  --green: #4e9a6a;
  --red: #d0524a;
  --font: "Palatino Linotype", Palatino, "Book Antiqua", "Hoefler Text", "Times New Roman", serif;
  --font-brand: Copperplate, "Copperplate Gothic Bold", "Palatino Linotype", Palatino, "Book Antiqua", serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: #0b0605; overflow: hidden; }
body { font-family: var(--font); color: var(--cream); -webkit-font-smoothing: antialiased; user-select: none; }

/* The room: dark striped wallpaper, a warm pool of lamplight, heavy vignette. */
#viewport {
  position: fixed; inset: 0;
  background:
    radial-gradient(ellipse 75% 70% at 50% 46%, transparent 38%, rgba(0, 0, 0, .78) 100%),
    radial-gradient(ellipse 62% 58% at 50% 40%, rgba(255, 178, 92, .22), transparent 72%),
    repeating-linear-gradient(90deg, #1d100c 0 46px, #22140f 46px 48px),
    #0e0807;
}
#stage { position: absolute; left: 0; top: 0; width: 1280px; height: 720px; transform-origin: 0 0; }

button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
button:focus-visible, input:focus-visible { outline: 2px solid var(--brass-hi); outline-offset: 2px; }
.money { font-variant-numeric: lining-nums tabular-nums; letter-spacing: .01em; }
.defs { position: absolute; }

/* -------------------------------------------------------------- the table */
.table-rim {
  position: absolute; left: 96px; top: 96px; width: 1088px; height: 520px; border-radius: 50%;
  background:
    repeating-linear-gradient(92deg, rgba(0, 0, 0, .15) 0 2px, transparent 2px 9px),
    linear-gradient(165deg, #6c4527, #3a2415 46%, #24150b);
  box-shadow:
    0 36px 64px rgba(0, 0, 0, .7),
    0 0 0 2px #110904,
    inset 0 3px 3px rgba(255, 222, 170, .28),
    inset 0 -8px 14px rgba(0, 0, 0, .55);
}
.table-cushion {
  position: absolute; left: 108px; top: 108px; width: 1064px; height: 496px; border-radius: 50%;
  background: radial-gradient(ellipse at 50% 18%, #3a2a1e, #1b130e 72%);
  box-shadow: inset 0 3px 6px rgba(255, 235, 200, .14), inset 0 -4px 10px rgba(0, 0, 0, .75), 0 0 0 1px #0a0503;
}
.table-cushion::after { /* stitching */
  content: ""; position: absolute; inset: 7px; border-radius: 50%; border: 2px dashed rgba(214, 184, 120, .4);
}
.table-felt {
  position: absolute; left: 128px; top: 128px; width: 1024px; height: 456px; border-radius: 50%; overflow: hidden;
  background: radial-gradient(ellipse 62% 58% at 50% 36%, #1b7a50 0%, #0f5a3a 50%, #083a26 100%);
  box-shadow: inset 0 0 70px rgba(0, 0, 0, .62), inset 0 0 0 1px rgba(0, 0, 0, .55), 0 0 0 2px #072518;
}
.felt-noise { position: absolute; inset: 0; opacity: .3; mix-blend-mode: overlay; pointer-events: none; }
.felt-mark {
  position: absolute; left: 640px; top: 405px; transform: translateX(-50%); white-space: nowrap;
  font-family: var(--font); font-size: 26px; font-weight: 600; letter-spacing: .14em; color: rgba(236, 212, 143, .36);
  text-shadow: 0 1px 0 rgba(0, 0, 0, .4), 0 -1px 0 rgba(255, 240, 200, .08); pointer-events: none;
}

/* hanging lamp: a little enamel shade, and a soft pool of warm light under it */
.lamp-shade {
  position: absolute; left: 560px; top: 0; width: 160px; height: 11px; pointer-events: none;
  background: linear-gradient(180deg, #1d4a35, #0b241a); clip-path: polygon(7% 0, 93% 0, 100% 100%, 0 100%);
  filter: drop-shadow(0 5px 10px rgba(255, 196, 120, .55));
}
.lamp {
  position: absolute; left: 250px; top: 0; width: 780px; height: 600px; pointer-events: none; mix-blend-mode: soft-light;
  background: radial-gradient(ellipse 52% 62% at 50% 8%, rgba(255, 206, 140, .55), rgba(255, 190, 110, .18) 55%, transparent 80%);
}
.smoke { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.smoke i { position: absolute; width: 520px; height: 200px; border-radius: 50%; filter: blur(26px); opacity: .09;
  background: radial-gradient(ellipse, #e9ddc2, transparent 70%); animation: drift 38s ease-in-out infinite alternate; }
.smoke i:nth-child(1) { left: 80px; top: 120px; }
.smoke i:nth-child(2) { left: 620px; top: 260px; animation-duration: 52s; animation-delay: -14s; }
.smoke i:nth-child(3) { left: 300px; top: 430px; animation-duration: 44s; animation-delay: -27s; opacity: .06; }
@keyframes drift { from { transform: translateX(-60px) scale(1); } to { transform: translateX(120px) scale(1.15); } }

.brand { position: absolute; left: 32px; top: 24px; line-height: 1.15; }
.brand b { font-family: var(--font-brand); font-variant: small-caps; font-size: 27px; font-weight: 700; letter-spacing: .09em; color: var(--brass-hi);
  text-shadow: 0 2px 0 #000, 0 0 16px rgba(255, 191, 94, .28); }
.brand b::after { content: ""; display: block; margin-top: 5px; height: 2px; width: 150px; background: linear-gradient(90deg, var(--brass), transparent); }
.brand span { display: block; margin-top: 6px; font-size: 15px; font-style: italic; color: var(--cream-dim); }

/* ------------------------------------------------------------------ dealer */
.dealer { position: absolute; left: 510px; top: 2px; width: 260px; height: 230px; pointer-events: none; transform: scale(.85); transform-origin: 130px 0; }
.dealer svg { width: 100%; height: 100%; overflow: visible; }
.dealer-back { filter: drop-shadow(0 5px 8px rgba(0, 0, 0, .6)); }
.dealer-front { filter: drop-shadow(0 7px 6px rgba(0, 0, 0, .55)); }
.dealer .d-body { animation: bob 5s ease-in-out infinite; }
.dealer .d-eyes { transform-origin: 130px 51px; animation: blink 5.5s infinite; }
.dealer .d-mouth { transform-origin: 129px 73px; }
.dealer-back.talking .d-mouth { animation: talk .24s ease-in-out infinite alternate; }
.d-arm-l { transform-origin: 78px 86px; } .d-arm-r { transform-origin: 182px 86px; }
.d-wisp { opacity: 0; animation: wisp 4.2s ease-out infinite; transform-box: fill-box; transform-origin: 50% 100%; }
.d-wisp.w2 { animation-delay: -2.1s; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(2px); } }
@keyframes blink { 0%, 93%, 100% { transform: scaleY(1); } 96% { transform: scaleY(.1); } }
@keyframes talk { from { transform: scaleY(.55); } to { transform: scaleY(1.7); } }
@keyframes wisp { 0% { opacity: 0; transform: translate(0, 4px) scale(.7); } 25% { opacity: .9; } 100% { opacity: 0; transform: translate(8px, -22px) scale(1.5); } }

.speech {
  position: absolute; left: 782px; top: 66px; max-width: 300px; padding: 9px 16px; border-radius: 4px 16px 16px 16px;
  background: #f1e6c8; color: #2b1a0d; font-style: italic; font-size: 18px; line-height: 1.25;
  border: 2px solid var(--brass-dim); box-shadow: 0 8px 18px rgba(0, 0, 0, .55), inset 0 0 0 1px rgba(255, 255, 255, .5);
  opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .25s; pointer-events: none;
}
.speech.on { opacity: 1; transform: none; }

/* ------------------------------------------------------------ pot and board */
.pot { position: absolute; left: 640px; top: 262px; transform: translate(-50%, -50%); text-align: center; transition: opacity .3s; }
.pot.empty { opacity: 0; }
.pot .chips { justify-content: center; height: 34px; }
.pot-label { margin-top: 2px; font-size: 19px; font-weight: 700; color: var(--brass-hi); text-shadow: 0 1px 3px #000, 0 0 12px rgba(255, 191, 94, .3); }
.pot-label small { color: var(--cream-dim); font-weight: 400; font-style: italic; font-size: 15px; margin-right: 7px; }

.board { position: absolute; left: 640px; top: 338px; transform: translate(-50%, -50%); display: flex; gap: 10px; }
.board .card { width: 66px; height: 92px; }
.board .slot { width: 66px; height: 92px; border-radius: 9px; border: 1.5px solid rgba(236, 212, 143, .16); background: rgba(0, 0, 0, .12);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, .35); }
.board .slot-wrap { position: relative; width: 66px; height: 92px; }
.board .slot-wrap .card { position: absolute; inset: 0; }

/* -------------------------------------------------------------------- cards */
.card { position: relative; width: 46px; height: 64px; perspective: 600px; opacity: 0; transition: width .4s, height .4s; }
.card.dealt { opacity: 1; }
.card .inner { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .55s cubic-bezier(.3, .7, .2, 1); border-radius: 9px;
  box-shadow: 0 5px 10px rgba(0, 0, 0, .6), 0 1px 2px rgba(0, 0, 0, .5); }
.card.up .inner { transform: rotateY(180deg); }
.card .back, .card .face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.card .face { transform: rotateY(180deg); }
.card svg { width: 100%; height: 100%; display: block; }
.card.fly { position: absolute; z-index: 40; opacity: 1; pointer-events: none; }
.card.fly .inner { transition: none; }
.card.dim { filter: brightness(.45) saturate(.6); }

/* ------------------------------------------------------------------- chips */
.chips { display: flex; align-items: flex-end; gap: 5px; min-height: 28px; }
.stack { position: relative; width: 28px; height: 28px; display: block; }
.chip {
  position: absolute; left: 0; bottom: 0; width: 28px; height: 28px; border-radius: 50%; display: block;
  background:
    radial-gradient(circle, var(--c) 0 40%, rgba(0, 0, 0, .35) 41% 44%, rgba(244, 235, 208, .9) 45% 48%, transparent 49%),
    repeating-conic-gradient(rgba(244, 235, 208, .96) 0 15deg, var(--c) 15deg 45deg);
  box-shadow: 0 2px 3px rgba(0, 0, 0, .7), inset 0 0 0 1.5px rgba(0, 0, 0, .4), inset 0 -3px 4px rgba(0, 0, 0, .25);
  transform: scaleY(.62); transform-origin: bottom;
}
.stack { height: 28px; }
.chip:nth-child(2) { bottom: 4px; } .chip:nth-child(3) { bottom: 8px; } .chip:nth-child(4) { bottom: 12px; }
.chip:nth-child(5) { bottom: 16px; } .chip:nth-child(6) { bottom: 20px; }
.chip.yellow, .fly-chip.yellow { --c: #c79a2b; } .chip.purple, .fly-chip.purple { --c: #6d3f8c; }
.chip.black, .fly-chip.black { --c: #1f1d1c; } .chip.green, .fly-chip.green { --c: #1f7a46; }
.chip.red, .fly-chip.red { --c: #b3262c; } .chip.white, .fly-chip.white { --c: #e7dfc7; }
.chip.blue, .fly-chip.blue { --c: #2b55a6; }

.bet { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 3px; transition: opacity .25s; }
.bet:empty { opacity: 0; }
.bet .amt { font-size: 16px; font-weight: 700; color: var(--cream); text-shadow: 0 1px 4px #000, 0 0 2px #000; }

/* -------------------------------------------------------------------- seats */
.seat { position: absolute; width: 220px; height: 150px; margin: -75px 0 0 -110px; }
.seat .cards { position: absolute; left: 50%; top: 0; transform: translateX(-50%); display: flex; z-index: 1; }
.seat .cards .card { margin: 0 -6px; }
.seat .cards .card:first-child { transform: rotate(-7deg); transform-origin: bottom right; }
.seat .cards .card:last-child { transform: rotate(7deg); transform-origin: bottom left; }
.seat.me .cards { top: -64px; }
.seat.me .card { width: 80px; height: 112px; }
.seat.me .cards .card { margin: 0 3px; }
.seat .cards.reveal .card { width: 66px; height: 92px; }
.seat.folded .cards { opacity: 0; transition: opacity .4s; }

.plate {
  position: absolute; left: 10px; top: 42px; width: 200px; height: 64px; z-index: 2;
  display: flex; align-items: center; gap: 10px; padding: 6px 12px 6px 7px; border-radius: 34px 10px 10px 34px;
  background: linear-gradient(180deg, #3d2c1f, #1d1510);
  border: 1px solid var(--brass-dim);
  box-shadow: 0 8px 18px rgba(0, 0, 0, .65), inset 0 1px 0 rgba(255, 225, 170, .2), inset 0 0 0 3px rgba(0, 0, 0, .28);
  transition: border-color .25s, box-shadow .25s, opacity .3s;
}
.seat.folded .plate, .seat.out .plate { opacity: .55; }
.seat.turn .plate { border-color: var(--amber); box-shadow: 0 0 0 1px var(--amber), 0 0 26px rgba(255, 191, 94, .45), 0 8px 18px rgba(0, 0, 0, .65); }
.seat.winner .plate { border-color: var(--brass-hi); box-shadow: 0 0 0 2px var(--brass-hi), 0 0 36px rgba(255, 214, 120, .65), 0 8px 18px rgba(0, 0, 0, .65); }
.seat.me .plate { border-color: var(--brass); }

.avatar { position: relative; flex: none; width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center;
  font-size: 24px; font-weight: 700; color: #21140a; background: var(--av, var(--brass));
  box-shadow: 0 0 0 2px var(--brass), 0 0 0 4px #1b120c, inset 0 -4px 8px rgba(0, 0, 0, .22); }
.avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.avatar .ring { position: absolute; inset: -7px; width: 64px; height: 64px; transform: rotate(-90deg); pointer-events: none; }
.avatar .ring circle { fill: none; stroke-width: 3.4; }
.avatar .ring .track { stroke: rgba(0, 0, 0, 0); }
.avatar .ring .prog { stroke: var(--amber); stroke-linecap: round; stroke-dasharray: 182; stroke-dashoffset: 182; opacity: 0; }
.seat.turn .ring .prog { opacity: 1; }
.seat.urgent .ring .prog { stroke: var(--red); }
.seat.turn.thinking .ring .prog { opacity: 0; }
.seat.turn.thinking .avatar { animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 2px var(--brass), 0 0 0 4px #1b120c, 0 0 0 4px rgba(255, 191, 94, .55); } 50% { box-shadow: 0 0 0 2px var(--brass), 0 0 0 4px #1b120c, 0 0 0 11px rgba(255, 191, 94, 0); } }
.avatar .offline { position: absolute; right: -3px; bottom: -3px; width: 14px; height: 14px; border-radius: 50%; background: var(--red); border: 2px solid #1b120c; display: none; }
.seat.offline .avatar .offline { display: block; }

.who { min-width: 0; flex: 1; }
.who .name { font-size: 17px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--cream); }
.who .stack-amt { font-size: 19px; font-weight: 700; color: var(--brass-hi); text-shadow: 0 1px 2px #000; }

.badge { position: absolute; left: 50%; top: 112px; transform: translateX(-50%); z-index: 3; width: max-content; max-width: 200px; text-align: center; line-height: 1.2;
  padding: 3px 13px; border-radius: 4px; font-size: 14px; font-weight: 700; font-style: italic; background: rgba(16, 10, 6, .94);
  border: 1px solid var(--brass-dim); color: var(--cream); opacity: 0; transition: opacity .2s; box-shadow: 0 3px 8px rgba(0, 0, 0, .55); }
.badge.on { opacity: 1; }
.badge.fold { color: var(--muted); }
.badge.allin { color: #fbeee0; background: var(--crimson); border-color: #d9565d; }
.badge.win { color: #2b1a05; background: linear-gradient(180deg, #f3dc9a, #c9a24a); border-color: var(--brass-hi); font-style: normal; }
.badge.act { color: var(--brass-hi); }

.sit {
  position: absolute; left: 40px; top: 44px; width: 140px; height: 60px; border-radius: 30px; z-index: 4;
  border: 1.5px dashed rgba(236, 212, 143, .5); color: var(--brass-hi); font-size: 17px; font-weight: 700; font-style: italic;
  background: rgba(0, 0, 0, .18); transition: background .2s, box-shadow .2s;
}
.sit:hover { background: rgba(236, 212, 143, .12); box-shadow: 0 0 22px rgba(255, 191, 94, .3); }
.seat.empty .plate, .seat.empty .cards, .seat.empty .badge { display: none; }
.seat:not(.empty) .sit { display: none; }
.seat.empty.locked .sit { display: none; }
.seat.empty.locked::before { content: ""; position: absolute; left: 70px; top: 52px; width: 80px; height: 44px; border-radius: 22px; border: 1.5px dashed rgba(236, 212, 143, .18); }

/* the dealer button: an ivory puck, like the real thing */
.dbtn { position: absolute; z-index: 5; width: 32px; height: 32px; margin: -16px 0 0 -16px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, #fffaf0, #e2d6b6); color: #7a141c; font-weight: 800; font-size: 17px;
  box-shadow: 0 0 0 2px var(--brass), 0 0 0 3.5px #1b120c, 0 5px 10px rgba(0, 0, 0, .65);
  transition: left .6s cubic-bezier(.3, .7, .2, 1), top .6s cubic-bezier(.3, .7, .2, 1), opacity .3s; }

/* ---------------------------------------------------------------- effects */
.float { position: absolute; z-index: 50; transform: translate(-50%, -50%); font-size: 32px; font-weight: 800; color: var(--brass-hi);
  text-shadow: 0 0 18px rgba(255, 191, 94, .75), 0 2px 6px #000; pointer-events: none; }
.fly-chip { position: absolute; z-index: 45; width: 28px; height: 28px; margin: -14px 0 0 -14px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, var(--c) 0 40%, rgba(0, 0, 0, .35) 41% 44%, rgba(244, 235, 208, .9) 45% 48%, transparent 49%), repeating-conic-gradient(rgba(244, 235, 208, .96) 0 15deg, var(--c) 15deg 45deg);
  box-shadow: 0 2px 4px rgba(0, 0, 0, .7); }

/* --------------------------------------------------------------- action bar */
.bar { position: absolute; left: 0; right: 0; bottom: 14px; height: 76px; display: flex; justify-content: center; align-items: center; gap: 14px; z-index: 10; }
.bar .status { padding: 12px 24px; border-radius: 6px; background: rgba(18, 11, 7, .88); border: 1px solid var(--brass-dim); color: var(--cream-dim);
  font-size: 18px; font-style: italic; box-shadow: 0 6px 16px rgba(0, 0, 0, .5); }
.btn { height: 58px; min-width: 150px; padding: 0 24px; border-radius: 8px; font-size: 21px; font-weight: 700; letter-spacing: .02em; border: 1.5px solid;
  transition: transform .1s, box-shadow .2s, filter .2s; box-shadow: 0 6px 14px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .15); }
.btn:hover { filter: brightness(1.12); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn.fold { color: #f4d9d3; border-color: #8c3434; background: linear-gradient(180deg, #5f171c, #3a0d10); }
.btn.call, .btn.felt { color: #e8f2e3; border-color: #4c8a66; background: linear-gradient(180deg, #1f6b46, #124a31); }
.btn.raise { min-width: 190px; color: #2a1707; border-color: var(--brass-hi); background: linear-gradient(180deg, #ecd28a, #bb8f3c); box-shadow: 0 6px 16px rgba(0, 0, 0, .55), 0 0 18px rgba(255, 191, 94, .2), inset 0 1px 0 rgba(255, 255, 255, .45); }
.btn.solid { color: #2a1707; border-color: var(--brass-hi); background: linear-gradient(180deg, #ecd28a, #bb8f3c); }
.btn.ghost { color: var(--cream-dim); border-color: rgba(185, 170, 132, .4); background: rgba(14, 9, 6, .55); min-width: 0; box-shadow: none; }
.btn:disabled { opacity: .4; cursor: not-allowed; }

.raise-panel { display: flex; flex-direction: column; gap: 6px; width: 320px; }
.quick { display: flex; gap: 6px; }
.quick button { flex: 1; white-space: nowrap; padding: 0 4px; height: 26px; border-radius: 4px; font-size: 14px; font-style: italic; font-weight: 700; color: var(--cream-dim);
  border: 1px solid var(--brass-dim); background: rgba(18, 11, 7, .85); }
.quick button:hover { color: var(--brass-hi); border-color: var(--brass-hi); }
.quick.adds button { color: var(--brass-hi); border-color: var(--brass); background: rgba(40, 28, 14, .9); }
.quick.adds button:hover { background: rgba(120, 90, 30, .55); color: #fff3cf; }
.quick button:active { transform: translateY(1px); }

.corner { position: absolute; top: 24px; right: 28px; display: flex; gap: 8px; z-index: 12; }
.corner .btn { height: 34px; font-size: 15px; padding: 0 14px; border-radius: 5px; font-weight: 700; font-style: italic; }

.toast { position: absolute; left: 50%; bottom: 100px; transform: translate(-50%, 8px); padding: 10px 20px; border-radius: 5px; z-index: 60;
  background: rgba(60, 14, 16, .94); border: 1px solid var(--red); color: #f6d4cf; font-size: 17px; font-style: italic; opacity: 0; transition: opacity .2s, transform .2s; pointer-events: none; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

.banner { position: absolute; left: 50%; top: 14px; transform: translateX(-50%); padding: 7px 20px; border-radius: 5px; z-index: 70;
  background: rgba(60, 40, 8, .94); border: 1px solid var(--brass); color: var(--brass-hi); font-size: 16px; font-style: italic; display: none; }
.banner.on { display: block; }

.modal-bg { position: absolute; inset: 0; z-index: 80; background: rgba(6, 3, 2, .72); display: none; place-items: center; backdrop-filter: blur(3px); }
.modal-bg.on { display: grid; }
.modal { width: 390px; padding: 28px 30px; border-radius: 8px; background: linear-gradient(180deg, #2f2118, #1a110c); border: 2px solid var(--brass-dim);
  box-shadow: 0 0 0 5px #120a06, 0 24px 60px rgba(0, 0, 0, .7); }
.modal h2 { margin: 0 0 4px; font-family: var(--font-brand); font-variant: small-caps; letter-spacing: .06em; font-size: 28px; color: var(--brass-hi); }
.modal p { margin: 0 0 18px; color: var(--cream-dim); font-size: 16px; font-style: italic; }
.modal .big { font-size: 42px; font-weight: 800; color: var(--brass-hi); margin: 6px 0 10px; text-shadow: 0 2px 4px #000; }
.modal input[type=range] { width: 100%; accent-color: var(--brass); }
.modal .range-labels { display: flex; justify-content: space-between; color: var(--muted); font-size: 14px; margin-bottom: 20px; }
.modal .row { display: flex; gap: 10px; justify-content: flex-end; }

.fatal { position: absolute; left: 50%; top: 50%; width: 560px; transform: translate(-50%, -50%); text-align: center; padding: 34px 40px;
  border-radius: 8px; background: linear-gradient(180deg, #2f2118, #1a110c); border: 2px solid var(--red); box-shadow: 0 0 0 5px #120a06, 0 24px 60px rgba(0, 0, 0, .7); }
.fatal h2 { margin: 0 0 10px; font-size: 28px; color: var(--brass-hi); }
.fatal p { margin: 0 0 14px; color: var(--cream-dim); font-size: 18px; line-height: 1.4; font-style: italic; }
.fatal small { display: block; color: #e9a9a2; font-size: 14px; word-break: break-word; }

@media (prefers-reduced-motion: reduce) {
  .dealer .d-body, .dealer .d-eyes, .d-wisp, .smoke i, .seat.turn.thinking .avatar { animation: none; }
  .card .inner { transition-duration: .01s; }
}

.modal .presets { display: flex; gap: 8px; margin: 0 0 16px; flex-wrap: wrap; }
.modal .presets button { flex: 1; min-width: 56px; height: 36px; border-radius: 5px; font-size: 17px; font-weight: 700; color: var(--cream);
  border: 1px solid var(--brass-dim); background: rgba(18, 11, 7, .85); }
.modal .presets button:hover { border-color: var(--brass-hi); color: var(--brass-hi); }
.modal .field { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; padding: 8px 14px; border-radius: 6px; border: 1px solid var(--brass-dim); background: rgba(10, 6, 4, .7); }
.modal .field span { flex: 1; color: var(--cream-dim); font-style: italic; font-size: 16px; }
.modal .field b { color: var(--brass-hi); font-size: 24px; }
.modal .field input { width: 130px; background: transparent; border: 0; outline: 0; color: var(--brass-hi); font: inherit; font-size: 26px; font-weight: 800; text-align: right; user-select: text; }
.modal .err { min-height: 22px; margin-bottom: 14px; color: #f0a39b; font-size: 15px; font-style: italic; }
.modal .field input::-webkit-outer-spin-button, .modal .field input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.modal .field input[type=number] { -moz-appearance: textfield; appearance: textfield; }

.modal.wide { width: 470px; padding: 24px 28px; }
.modal.wide p { margin-bottom: 14px; font-size: 15px; }
.modal .sect { margin: 0 0 8px; font-family: var(--font-brand); font-variant: small-caps; letter-spacing: .08em; font-size: 17px; color: var(--brass); }
.modal .presets.blind-levels button { flex: 1 1 30%; font-size: 15px; }
.modal .pair { display: flex; gap: 10px; margin: 0 0 14px; }
.modal .pair .field { flex: 1; margin: 0; }
.modal .pair .field input { width: 80px; font-size: 24px; }
.modal .presets { margin-bottom: 10px; }
.modal .presets button { height: 34px; }
.modal .field + .err { margin-top: 6px; }

.modal .presets button:disabled, .modal .field input:disabled { opacity: .45; cursor: not-allowed; }
.modal.blinds-locked .pair .field { border-style: dashed; }
.btn.start { min-width: 190px; }
