:root {
  color-scheme: dark;
  --ink: #f7f1de;
  --muted: #aab9a6;
  --dim: #6e897c;
  --brass: #edbd5f;
  --brass-soft: #f6dda1;
  --teal: #37d3bd;
  --felt: #086247;
  --felt-dark: #04392e;
  --felt-deep: #031e1a;
  --wood: #3e251c;
  --red: #e76d5d;
  --line: rgba(218, 228, 192, .18);
  --line-strong: rgba(218, 228, 192, .34);
  --shadow: 0 20px 50px rgba(0, 0, 0, .4);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; margin: 0; }
body {
  min-height: 100dvh;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 50% -12%, rgba(38, 156, 126, .24), transparent 38rem),
    radial-gradient(circle at 50% 110%, rgba(14, 78, 62, .18), transparent 38rem),
    linear-gradient(155deg, #061f1d 0%, #031311 50%, #010807 100%);
}
body::before { position: fixed; inset: 0; z-index: -1; pointer-events: none; content: ""; opacity: .14; background-image: radial-gradient(rgba(255,255,255,.23) .55px, transparent .55px); background-size: 5px 5px; mix-blend-mode: soft-light; }
button, input { font: inherit; color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, a:focus-visible { outline: 3px solid var(--brass-soft); outline-offset: 3px; }
button:disabled { cursor: not-allowed; opacity: .48; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
.sr-only { width: 1px !important; height: 1px !important; position: absolute !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; clip-path: inset(50%) !important; white-space: nowrap !important; }
.online-shell { width: min(100%, 1120px); min-height: 100dvh; margin: 0 auto; padding: 0 14px max(12px, env(safe-area-inset-bottom)); }
.online-topbar { min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: max(8px, env(safe-area-inset-top)) 3px 7px; }
.brand-lockup { display: inline-flex; align-items: center; gap: 8px; min-width: 0; color: inherit; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 27px; height: 27px; border: 1px solid rgba(237,189,95,.62); border-radius: 50%; color: var(--brass); font-size: 15px; box-shadow: 0 0 16px rgba(237,189,95,.15); }
.brand-lockup > span:last-child { display: grid; gap: 2px; min-width: 0; }
.brand-lockup small, .eyebrow, .connection-state, .rules-link, .field-label, .seat-picker legend, .hud-cell span, .felt-state, .feed-tag, .chat-label, .chat-lock, .rail-label { color: var(--brass); font-size: 9px; font-weight: 850; letter-spacing: .15em; line-height: 1.1; }
.brand-lockup strong { font-size: 17px; letter-spacing: .17em; line-height: 1; }
.topbar-right { display: flex; align-items: center; gap: 9px; }
.connection-state { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 8px; letter-spacing: .08em; white-space: nowrap; }
.connection-state i, .status-dot { width: 6px; height: 6px; flex: 0 0 6px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 10px var(--teal); }
.connection-state.is-offline i { background: var(--red); box-shadow: 0 0 10px var(--red); }
.rules-link, .text-button { min-height: 40px; padding: 0 5px; border: 0; color: var(--muted); background: transparent; text-decoration: none; }
.rules-link:hover, .text-button:hover { color: var(--brass-soft); text-decoration: underline; text-underline-offset: 4px; }
.online-main { min-width: 0; }

/* Entry / lobby */
.entry-screen { width: min(100%, 560px); min-height: calc(100dvh - 61px); margin: 0 auto; padding: clamp(16px, 6vh, 68px) 0 24px; }
.entry-heading { text-align: center; }
.entry-heading h1 { margin-top: 8px; font-size: clamp(30px, 8vw, 45px); letter-spacing: .04em; line-height: 1; }
.entry-heading > p:last-child { max-width: 380px; margin: 12px auto 24px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.identity-panel { display: grid; gap: 16px; padding: 19px; border: 1px solid rgba(237,189,95,.28); border-radius: 14px; background: linear-gradient(145deg, rgba(10, 66, 53, .95), rgba(3, 35, 31, .94)); box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.08); }
.identity-fields, .entry-actions { display: grid; gap: 7px; }
.field-label { display: flex; justify-content: space-between; gap: 8px; color: var(--brass-soft); font-size: 10px; }
.field-label span { color: var(--dim); font-size: 8px; letter-spacing: .06em; text-transform: lowercase; }
input[type="text"] { width: 100%; min-height: 46px; padding: 0 13px; border: 1px solid rgba(210,224,178,.25); border-radius: 7px; color: var(--ink); background: rgba(1, 23, 20, .66); font-size: 14px; }
input[type="text"]::placeholder { color: var(--dim); }
.photo-row { display: grid; grid-template-columns: 52px minmax(0,1fr); align-items: center; gap: 12px; padding: 11px 0 2px; border-top: 1px solid var(--line); }
.avatar-preview { width: 52px; height: 52px; display: grid; place-items: center; overflow: hidden; border: 1px solid rgba(237,189,95,.52); border-radius: 50%; color: var(--brass-soft); background: radial-gradient(circle at 35% 30%, rgba(55,211,189,.52), rgba(3,39,34,.86)); font-size: 20px; font-weight: 800; }
.avatar-preview img { width: 100%; height: 100%; object-fit: cover; }
.photo-copy { min-width: 0; display: grid; gap: 4px; }
.photo-copy strong { font-size: 10px; letter-spacing: .12em; }
.photo-copy strong small { color: var(--dim); font-size: 8px; letter-spacing: .05em; }
.photo-copy p { color: var(--muted); font-size: 11px; }
.photo-actions { display: flex; align-items: center; gap: 9px; }
.subtle-button { min-height: 38px; padding: 0 10px; border: 1px solid rgba(237,189,95,.48); border-radius: 6px; color: var(--brass-soft); background: rgba(7, 74, 56, .78); font-size: 9px; font-weight: 850; letter-spacing: .1em; }
.subtle-button:hover { border-color: var(--brass-soft); background: rgba(17, 112, 80, .85); }
.seat-picker { margin: 0; padding: 14px 0 0; border: 0; border-top: 1px solid var(--line); }
.seat-picker legend { padding: 0; color: var(--brass-soft); }
.seat-options { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; margin-top: 9px; }
.seat-option { min-height: 54px; display: grid; place-items: center; align-content: center; gap: 2px; padding: 4px; border: 1px solid rgba(210,224,178,.22); border-radius: 7px; color: var(--muted); background: rgba(2, 40, 33, .72); }
.seat-option span { font-size: 16px; font-weight: 800; }
.seat-option small { color: var(--brass); font-size: 7px; letter-spacing: .1em; }
.seat-option.is-selected { border-color: var(--brass); color: var(--ink); background: linear-gradient(180deg, rgba(24,119,82,.93), rgba(5,65,48,.93)); box-shadow: inset 0 0 0 1px rgba(237,189,95,.22), 0 0 14px rgba(237,189,95,.1); }
.seat-option:disabled { cursor: not-allowed; opacity: .7; border-color: rgba(126,153,139,.38); color: var(--dim); background: rgba(2, 28, 24, .78); }
.seat-option:disabled small { color: var(--brass); }
.primary-action, .secondary-action { min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 14px; border-radius: 8px; font-weight: 850; letter-spacing: .11em; }
.primary-action { border: 1px solid rgba(92,218,190,.67); color: #eafff8; background: linear-gradient(145deg, #147d68, #075140); box-shadow: inset 0 1px 0 rgba(255,255,255,.16); }
.secondary-action { border: 1px solid rgba(237,189,95,.48); color: var(--brass-soft); background: linear-gradient(145deg, #196c4d, #083d2d); }
.primary-action span, .secondary-action span { font-size: 12px; }
.primary-action small, .secondary-action small { color: var(--muted); font-size: 9px; letter-spacing: .03em; font-weight: 600; }
.entry-notice { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 18px; color: var(--dim); font-size: 10px; letter-spacing: .04em; }

/* Live table */
.table-screen { min-width: 0; padding-bottom: 3px; }
.room-bar { min-height: 42px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 2px 3px 7px; }
.room-bar h1 { margin-top: 3px; font-size: 16px; letter-spacing: .03em; }
.room-bar .eyebrow { color: var(--brass-soft); }
.room-bar .eyebrow span { color: var(--teal); }
.room-actions { display: flex; align-items: center; gap: 5px; }
.room-actions .subtle-button { min-height: 35px; padding-inline: 8px; font-size: 8px; }
.room-actions .text-button { min-height: 35px; font-size: 8px; letter-spacing: .1em; }
.hud-strip { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--line); }
.hud-cell { min-width: 0; min-height: 46px; display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 6px 9px; background: rgba(3, 29, 26, .88); }
.hud-cell span { color: var(--brass); font-size: 8px; }
.hud-cell strong { min-width: 0; overflow: hidden; color: var(--ink); font-size: clamp(13px, 3.8vw, 18px); line-height: 1; white-space: nowrap; text-overflow: ellipsis; }
.hud-cell:nth-child(2) strong { color: var(--brass-soft); }
.hud-cell:nth-child(3) strong { color: #a8f1dc; }
.streak-cell strong { color: var(--teal); }
.result-strip { min-height: 43px; display: grid; grid-template-columns: minmax(0,1fr) auto auto; align-items: center; gap: 12px; padding: 5px 11px; border-bottom: 1px solid rgba(237,189,95,.24); }
.result-strip > div:first-child { min-width: 0; display: grid; gap: 2px; }
.phase-label { color: var(--brass); font-size: 8px; font-weight: 850; letter-spacing: .19em; }
.result-strip #result-copy { overflow: hidden; color: var(--muted); font-size: 10px; white-space: nowrap; text-overflow: ellipsis; }
.result-total { min-width: 42px; color: var(--brass-soft); font-size: 27px; font-weight: 900; line-height: 1; text-align: center; }
.point-badge { min-width: 68px; display: grid; gap: 2px; padding: 4px 7px; border: 1px solid rgba(237,189,95,.55); border-radius: 100px; text-align: center; background: rgba(6, 41, 34, .8); }
.point-badge span { color: var(--brass); font-size: 7px; font-weight: 850; letter-spacing: .15em; }
.point-badge strong { color: var(--brass-soft); font-size: 15px; line-height: 1; }

.craps-tub { position: relative; height: 182px; overflow: hidden; margin: 0 1px; border: 1px solid rgba(210, 224, 178, .26); border-radius: 44% 44% 18% 18% / 29% 29% 12% 12%; background: linear-gradient(180deg, #4a2b20 0%, #1d1613 8%, #031e1a 13%, #075745 74%, #032c25 100%); box-shadow: inset 0 0 0 5px rgba(14, 10, 8, .54), inset 0 0 0 7px rgba(197, 134, 63, .3), 0 12px 25px rgba(0,0,0,.28); }
.tub-rim { position: absolute; left: 3%; right: 3%; height: 17px; border: 1px solid rgba(232, 180, 92, .54); border-radius: 50%; pointer-events: none; }
.tub-rim-back { top: 2px; box-shadow: 0 0 0 5px rgba(20,12,9,.53), 0 0 18px rgba(237,189,95,.16); }
.tub-rim-front { bottom: -7px; height: 48px; border-color: rgba(183, 229, 204, .26); box-shadow: 0 -8px 0 rgba(12, 111, 83, .18); }
.tub-felt { position: absolute; inset: 23px 10% 20px; overflow: hidden; border: 1px solid rgba(179, 235, 204, .32); border-radius: 48% 48% 42% 42% / 42% 42% 29% 29%; background: radial-gradient(ellipse at 50% 34%, rgba(27, 147, 102, .42), transparent 54%), linear-gradient(180deg, #08745a, #034634 83%); box-shadow: inset 0 7px 30px rgba(0,0,0,.23); }
.tub-felt::after { position: absolute; inset: 7px; border: 1px solid rgba(198, 242, 211, .19); border-radius: inherit; content: ""; }
.felt-logo { position: absolute; top: 34%; left: 50%; color: rgba(235, 209, 140, .3); font-size: 11px; font-weight: 900; letter-spacing: .25em; transform: translate(-50%, -50%); }
.felt-mark { position: absolute; top: 56%; color: rgba(245, 220, 157, .42); font-size: 7px; font-weight: 900; letter-spacing: .2em; }
.mark-left { left: 9%; transform: rotate(-26deg); }
.mark-right { right: 9%; transform: rotate(26deg); }
.felt-line { position: absolute; left: 18%; right: 18%; height: 1px; background: rgba(245,220,157,.26); transform: rotate(-3deg); }
.line-one { top: 60%; }.line-two { top: 65%; transform: rotate(3deg); }
.table-seats { position: absolute; inset: 13px 5% 9px; z-index: 3; pointer-events: none; }
.table-seat { position: absolute; width: 52px; display: grid; justify-items: center; gap: 2px; color: var(--muted); font-size: 8px; text-align: center; transform: translate(-50%, -50%); }
.table-seat:nth-child(1) { left: 8%; top: 50%; }.table-seat:nth-child(2) { left: 23%; top: 12%; }.table-seat:nth-child(3) { left: 50%; top: 5%; }.table-seat:nth-child(4) { left: 77%; top: 12%; }.table-seat:nth-child(5) { left: 92%; top: 50%; }.table-seat:nth-child(6) { left: 50%; top: 94%; }
.seat-avatar { position: relative; width: 31px; height: 31px; display: grid; place-items: center; overflow: hidden; border: 2px solid rgba(176, 201, 182, .44); border-radius: 50%; color: var(--ink); background: linear-gradient(145deg, #1d856d, #073d35); font-size: 10px; font-weight: 850; box-shadow: 0 3px 8px rgba(0,0,0,.38); }
.seat-avatar img { width: 100%; height: 100%; object-fit: cover; }
.table-seat.is-shooter .seat-avatar { border-color: var(--brass); box-shadow: 0 0 0 3px rgba(237,189,95,.16), 0 3px 8px rgba(0,0,0,.38); }
.table-seat.is-self .seat-avatar { border-color: var(--teal); }
.seat-name { max-width: 58px; overflow: hidden; color: var(--ink); font-size: 8px; white-space: nowrap; text-overflow: ellipsis; }
.seat-status { color: var(--dim); font-size: 7px; letter-spacing: .07em; }
.table-seat.is-ready .seat-status { color: var(--teal); }.table-seat.is-shooter .seat-status { color: var(--brass); }
.dice-stage { position: absolute; inset: 34px 24% 24px; z-index: 4; display: grid; place-items: center; align-content: center; gap: 4px; pointer-events: none; }
.dice-caption { color: rgba(244,217,148,.64); font-size: 7px; font-weight: 850; letter-spacing: .18em; }
.dice-pair { display: flex; align-items: center; justify-content: center; gap: clamp(8px, 3vw, 19px); }
.die { position: relative; width: clamp(38px, 10vw, 53px); height: clamp(38px, 10vw, 53px); border: 2px solid rgba(255, 248, 221, .75); border-radius: 12px; background: linear-gradient(145deg, #fffdf1, #d8d8c4); box-shadow: 0 6px 12px rgba(0,0,0,.4), inset 0 -4px 6px rgba(110,93,59,.2); transform: rotate(-9deg); }
.die:last-child { transform: rotate(9deg); }
.die::before { position: absolute; inset: 15%; display: grid; place-items: center; color: #34504a; font-size: clamp(8px, 3vw, 15px); content: attr(data-value); opacity: .16; }
.die::after { position: absolute; inset: 23%; content: ""; background: radial-gradient(circle at 0 0, #36514c 0 13%, transparent 15%), radial-gradient(circle at 100% 0, #36514c 0 13%, transparent 15%), radial-gradient(circle at 0 100%, #36514c 0 13%, transparent 15%), radial-gradient(circle at 100% 100%, #36514c 0 13%, transparent 15%), radial-gradient(circle at 50% 50%, #36514c 0 13%, transparent 15%); opacity: 0; }
.die[data-value="1"]::after { opacity: 1; background: radial-gradient(circle at 50% 50%, #36514c 0 13%, transparent 15%); }
.die[data-value="2"]::after { opacity: 1; background: radial-gradient(circle at 0 0, #36514c 0 13%, transparent 15%), radial-gradient(circle at 100% 100%, #36514c 0 13%, transparent 15%); }
.die[data-value="3"]::after { opacity: 1; background: radial-gradient(circle at 0 0, #36514c 0 13%, transparent 15%), radial-gradient(circle at 50% 50%, #36514c 0 13%, transparent 15%), radial-gradient(circle at 100% 100%, #36514c 0 13%, transparent 15%); }
.die[data-value="4"]::after { opacity: 1; background: radial-gradient(circle at 0 0, #36514c 0 13%, transparent 15%), radial-gradient(circle at 100% 0, #36514c 0 13%, transparent 15%), radial-gradient(circle at 0 100%, #36514c 0 13%, transparent 15%), radial-gradient(circle at 100% 100%, #36514c 0 13%, transparent 15%); }
.die[data-value="5"]::after { opacity: 1; background: radial-gradient(circle at 0 0, #36514c 0 13%, transparent 15%), radial-gradient(circle at 100% 0, #36514c 0 13%, transparent 15%), radial-gradient(circle at 50% 50%, #36514c 0 13%, transparent 15%), radial-gradient(circle at 0 100%, #36514c 0 13%, transparent 15%), radial-gradient(circle at 100% 100%, #36514c 0 13%, transparent 15%); }
.die[data-value="6"]::after { opacity: 1; background: radial-gradient(circle at 0 0, #36514c 0 13%, transparent 15%), radial-gradient(circle at 100% 0, #36514c 0 13%, transparent 15%), radial-gradient(circle at 0 50%, #36514c 0 13%, transparent 15%), radial-gradient(circle at 100% 50%, #36514c 0 13%, transparent 15%), radial-gradient(circle at 0 100%, #36514c 0 13%, transparent 15%), radial-gradient(circle at 100% 100%, #36514c 0 13%, transparent 15%); }
.roll-orb { display: grid; place-items: center; width: 43px; height: 43px; border: 1px solid rgba(237,189,95,.68); border-radius: 50%; color: var(--brass-soft); background: rgba(2, 34, 30, .9); font-size: 20px; font-weight: 900; }
.dice-shadow { position: absolute; bottom: -4px; left: 15%; right: 15%; height: 16px; border-radius: 50%; background: rgba(0,0,0,.38); filter: blur(8px); }
.dice-pair.is-rolling .die { animation: tumble .72s cubic-bezier(.22,.7,.3,1); }.dice-pair.is-rolling .die:last-child { animation-delay: .06s; }.dice-pair.is-rolling .roll-orb { animation: orb-pulse .72s ease; }
@keyframes tumble { 0% { transform: translate(-45px,-20px) rotate(-70deg) scale(.72); } 55% { transform: translate(13px,4px) rotate(200deg) scale(1.05); } 100% { transform: translate(0) rotate(-9deg) scale(1); } }
@keyframes orb-pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.16); color: #fff4bf; box-shadow: 0 0 20px rgba(237,189,95,.35); } }
.feed-strip { min-height: 27px; display: grid; grid-template-columns: auto minmax(0,1fr); align-items: center; gap: 8px; padding: 3px 6px; border-bottom: 1px solid var(--line); }
.feed-tag { color: var(--dim); font-size: 7px; letter-spacing: .13em; }
.feed-strip p { overflow: hidden; color: var(--muted); font-size: 9px; white-space: nowrap; text-overflow: ellipsis; }

.felt-workspace { position: relative; margin-top: 6px; padding: 7px 7px 6px; border: 1px solid rgba(237,189,95,.31); border-radius: 11px; background: linear-gradient(155deg, rgba(7, 104, 72, .96), rgba(3, 57, 44, .97)); box-shadow: inset 0 0 0 4px rgba(6, 92, 63, .36), inset 0 1px 0 rgba(255,255,255,.1); }
.felt-header { min-height: 26px; display: flex; align-items: center; justify-content: space-between; gap: 7px; padding: 0 2px 5px; }
.felt-header h2 { margin-top: 2px; font-size: 14px; letter-spacing: .03em; }
.felt-state { color: var(--teal); font-size: 8px; }
.shortcut-row, .contract-row { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 6px; }
.contract-shortcut { position: relative; min-width: 0; min-height: 39px; display: grid; place-items: center; align-content: center; gap: 2px; padding: 3px 7px; overflow: hidden; border: 1px solid rgba(237,189,95,.43); border-radius: 6px; color: var(--ink); background: rgba(4, 70, 51, .73); }
.contract-shortcut > span:first-child { font-size: 11px; font-weight: 900; letter-spacing: .1em; white-space: nowrap; }
.contract-shortcut small { max-width: 100%; overflow: hidden; color: rgba(245, 220, 157, .76); font-size: 7px; letter-spacing: .02em; white-space: nowrap; text-overflow: ellipsis; }
.pass-shortcut { border-color: rgba(83, 188, 255, .8); background: linear-gradient(180deg, rgba(28, 111, 154, .93), rgba(6, 61, 88, .94)); }
.field-shortcut { border-color: rgba(237,189,95,.6); background: linear-gradient(180deg, rgba(25, 124, 79, .93), rgba(6, 73, 47, .94)); }
.come-shortcut { background: linear-gradient(180deg, rgba(11, 111, 83, .93), rgba(4, 65, 53, .94)); }
.odds-shortcut { border-color: rgba(237,189,95,.34); background: rgba(4, 44, 37, .8); }
.bet-chip-slot { position: absolute; right: 6px; top: 50%; width: 25px; height: 25px; transform: translateY(-50%); }
.chip-stack { position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 26px; height: 26px; border: 3px solid rgba(255,255,255,.65); border-radius: 50%; color: white; font-size: 7px; font-weight: 900; transform: translate(-50%,-50%); box-shadow: 0 2px 3px rgba(0,0,0,.45), inset 0 0 0 1px rgba(0,0,0,.2); }
.chip-stack::after { position: absolute; inset: -3px; border: 3px dashed rgba(255,255,255,.72); border-radius: 50%; content: ""; }
.chip-stack.is-red { background: #bd423c; }.chip-stack.is-blue { background: #3768c5; }.chip-stack.is-green { background: #27935f; }.chip-stack.is-black { background: #2b3137; }.chip-stack.is-white { color: #36413c; background: #e7e3d3; }
.chip-stack.is-off { opacity: .48; filter: grayscale(.45) saturate(.45); }
.number-grid { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 4px; margin-top: 6px; }
.number-cell { min-width: 0; min-height: 72px; display: grid; grid-template-rows: minmax(21px,1fr) 27px minmax(21px,1fr); overflow: hidden; border: 1px solid rgba(178, 221, 179, .29); border-radius: 4px; background: rgba(2, 71, 49, .66); }
.number-cell.is-latest { border-color: var(--teal); box-shadow: inset 0 0 0 1px rgba(55,211,189,.68), 0 0 11px rgba(55,211,189,.14); }
.number-cell.is-point { border-color: rgba(237,189,95,.95); box-shadow: inset 0 0 0 1px rgba(237,189,95,.35); }
.number-cell.is-latest.is-point { border-color: var(--brass); box-shadow: inset 0 0 0 1px rgba(55,211,189,.55), 0 0 0 1px rgba(237,189,95,.65); }
.number-target { position: relative; min-width: 0; min-height: 23px; display: grid; place-items: center; align-content: center; gap: 1px; padding: 2px; border: 0; color: var(--muted); background: rgba(5, 83, 56, .58); }
.number-target:hover { color: var(--ink); background: rgba(19, 125, 81, .75); }.number-target:active { transform: scale(.97); }
.number-target span { font-size: 7px; font-weight: 900; letter-spacing: .08em; }.number-target small { color: rgba(245,220,157,.62); font-size: 6px; }
.number-target.place-zone { border-top: 1px solid rgba(186,220,180,.18); }.number-target.buy-zone { border-bottom: 1px solid rgba(186,220,180,.18); }
.number-center { position: relative; min-width: 0; display: grid; place-items: center; border-top: 1px solid rgba(186,220,180,.18); border-bottom: 1px solid rgba(186,220,180,.18); color: var(--ink); font-size: 22px; font-weight: 900; line-height: 1; background: linear-gradient(180deg, rgba(13, 106, 69, .72), rgba(8, 92, 61, .68)); }
.number-center .on-puck { position: absolute; top: 1px; right: 2px; display: grid; place-items: center; width: 17px; height: 17px; border: 1px solid #e8cb84; border-radius: 50%; color: #7f312c; background: #f9e8bd; font-size: 6px; font-weight: 900; }
.contract-row { margin-top: 5px; }.contract-row .contract-shortcut { min-height: 34px; }.contract-row .contract-shortcut > span:first-child { font-size: 9px; }.contract-row .contract-shortcut small { font-size: 6px; }
.secondary-panel { position: absolute; right: 6px; bottom: 6px; left: 6px; z-index: 16; max-height: min(62dvh, 430px); overflow-y: auto; padding: 9px; border: 1px solid rgba(237,189,95,.56); border-radius: 9px; background: linear-gradient(158deg, rgba(4, 71, 53, .99), rgba(2, 27, 24, .99)); box-shadow: 0 16px 36px rgba(0,0,0,.58), inset 0 1px 0 rgba(255,255,255,.1); scrollbar-width: thin; }
.secondary-panel-head { min-height: 31px; display: flex; align-items: center; justify-content: space-between; gap: 7px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.secondary-panel-head strong { color: var(--ink); font-size: 11px; letter-spacing: .02em; }
.secondary-close { min-height: 32px; padding: 0 7px; border: 1px solid rgba(237,189,95,.36); border-radius: 5px; color: var(--brass-soft); background: rgba(7, 50, 40, .72); font-size: 7px; font-weight: 900; letter-spacing: .1em; }
.secondary-odds-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6px; margin-top: 7px; }
.secondary-odds-row > .contract-shortcut { min-height: 44px; }
.secondary-odds-column { min-width: 0; display: grid; align-content: start; gap: 3px; }
.secondary-section-label, .secondary-section h3 { color: var(--brass); font-size: 7px; font-weight: 900; letter-spacing: .13em; }
.secondary-section { margin-top: 8px; }
.secondary-section h3 { margin-bottom: 4px; }
.secondary-wager-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
.secondary-wager { position: relative; min-width: 0; min-height: 36px; display: grid; align-content: center; justify-items: start; gap: 1px; padding: 3px 31px 3px 7px; overflow: hidden; border: 1px solid rgba(178, 221, 179, .28); border-radius: 5px; color: var(--ink); background: rgba(4, 72, 52, .82); text-align: left; }
.secondary-wager:hover { border-color: rgba(237,189,95,.7); background: rgba(12, 105, 70, .9); }
.secondary-wager strong { overflow: hidden; max-width: 100%; font-size: 8px; letter-spacing: .06em; white-space: nowrap; text-overflow: ellipsis; }
.secondary-wager small { overflow: hidden; max-width: 100%; color: rgba(245,220,157,.72); font-size: 6px; white-space: nowrap; text-overflow: ellipsis; }
.secondary-chip-slot { position: absolute; top: 50%; right: 4px; width: 25px; height: 25px; transform: translateY(-50%); }
.secondary-chip-slot .chip-stack { width: 24px; height: 24px; font-size: 6px; }
.secondary-empty { min-height: 36px; display: grid; place-items: center; padding: 3px; border: 1px dashed rgba(178,221,179,.22); border-radius: 5px; color: var(--dim); font-size: 7px; text-align: center; }

.control-dock { margin-top: 6px; }
.chip-rail { min-height: 53px; display: flex; align-items: center; justify-content: center; gap: clamp(3px, 1vw, 7px); padding: 2px; overflow: hidden; }
.rail-label { flex: 0 0 auto; margin-right: 1px; color: var(--dim); font-size: 8px; }
.chip { position: relative; flex: 0 0 clamp(39px, 10.5vw, 58px); width: clamp(39px, 10.5vw, 58px); height: clamp(39px, 10.5vw, 58px); display: grid; place-items: center; border: 4px solid rgba(255,255,255,.68); border-radius: 50%; color: #fff; font-size: clamp(9px, 2.5vw, 13px); font-weight: 900; box-shadow: 0 3px 7px rgba(0,0,0,.5), inset 0 0 0 1px rgba(0,0,0,.22); }
.chip::after { position: absolute; inset: -4px; border: 4px dashed rgba(255,255,255,.8); border-radius: 50%; content: ""; }
.chip.is-selected { transform: translateY(-3px); box-shadow: 0 7px 11px rgba(0,0,0,.5), 0 0 0 2px var(--brass), inset 0 0 0 1px rgba(0,0,0,.22); }
.chip-5 { color: #3e4842; background: #e8e3d4; }.chip-10, .chip-50 { background: #3a69c8; }.chip-25 { background: #2c9b64; }.chip-100 { background: #293039; }.chip-500 { background: #af3e39; }
.rail-control { flex: 0 0 clamp(46px, 12vw, 64px); min-width: 0; min-height: 46px; display: grid; place-items: center; align-content: center; gap: 1px; padding: 3px; border: 1px solid rgba(237,189,95,.46); border-radius: 7px; color: var(--ink); background: linear-gradient(180deg, rgba(26,125,81,.9), rgba(6,71,47,.9)); }
.rail-control strong { font-size: 8px; letter-spacing: .08em; }.rail-control small { color: var(--brass-soft); font-size: 7px; }.press-control { background: rgba(26, 63, 53, .85); }.undo-control, .clear-control { background: rgba(4, 47, 39, .85); border-color: rgba(189,220,182,.25); }
.roll-dock { min-height: 62px; display: grid; grid-template-columns: minmax(0,1fr) minmax(82px, .65fr) minmax(92px, .74fr); align-items: stretch; gap: 6px; padding: 4px 0 0; }
.roll-status { min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 0 5px; }.roll-status span { color: var(--teal); font-size: 10px; font-weight: 900; letter-spacing: .1em; }.roll-status small { overflow: hidden; color: var(--muted); font-size: 8px; white-space: nowrap; text-overflow: ellipsis; }
.ready-button, .gamble-button { min-width: 0; min-height: 56px; display: grid; place-items: center; align-content: center; gap: 2px; padding: 5px; border-radius: 8px; }.ready-button { border: 1px solid rgba(237,189,95,.62); color: var(--brass-soft); background: linear-gradient(180deg, rgba(51, 111, 80, .95), rgba(7, 58, 43, .96)); }.ready-button.is-ready { border-color: rgba(55,211,189,.8); color: #b8f7e7; background: linear-gradient(180deg, rgba(13, 126, 96, .95), rgba(5, 66, 53, .96)); }.gamble-button { border: 2px solid #f6d46f; color: #fff5ce; background: radial-gradient(circle at 35% 24%, #fa7d63, #a93032 76%); box-shadow: 0 5px 0 #52212b, 0 8px 15px rgba(0,0,0,.35), inset 0 0 0 2px rgba(255,235,143,.24); }.gamble-button:active:not(:disabled) { transform: translateY(2px); box-shadow: 0 3px 0 #52212b, 0 5px 10px rgba(0,0,0,.35); }.ready-button span, .gamble-button span { font-size: 12px; font-weight: 950; letter-spacing: .1em; }.ready-button small, .gamble-button small { color: rgba(255,245,206,.75); font-size: 7px; letter-spacing: .03em; }
.chat-dock { min-height: 27px; display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 8px; margin-top: 4px; padding: 4px 7px; border-top: 1px solid var(--line); color: var(--muted); }.chat-label, .chat-lock { color: var(--dim); font-size: 7px; }.chat-dock p { overflow: hidden; font-size: 9px; white-space: nowrap; text-overflow: ellipsis; }.chat-lock { padding: 3px 5px; border: 1px solid rgba(237,189,95,.24); border-radius: 4px; color: var(--brass); }
.inline-alert { position: fixed; z-index: 20; left: 50%; bottom: max(14px, calc(env(safe-area-inset-bottom) + 8px)); width: min(calc(100% - 28px), 520px); padding: 10px 13px; border: 1px solid rgba(231,109,93,.6); border-radius: 8px; color: #ffe0d5; background: rgba(74, 25, 25, .95); box-shadow: var(--shadow); font-size: 11px; transform: translateX(-50%); }
.inline-alert.is-success { border-color: rgba(55,211,189,.55); color: #c7fff1; background: rgba(4, 75, 61, .96); }

@media (min-width: 700px) {
  .online-shell { padding-inline: 24px; }
  .online-topbar { min-height: 62px; }
  .table-screen { max-width: 980px; margin: 0 auto; }
  .craps-tub { height: 230px; }
  .number-cell { min-height: 92px; grid-template-rows: minmax(28px,1fr) 36px minmax(28px,1fr); }
  .number-center { font-size: 27px; }
  .chip-rail { justify-content: center; }
}
@media (min-width: 1000px) {
  .table-screen { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr); column-gap: 14px; align-items: start; }
  .room-bar, .hud-strip, .result-strip, .feed-strip, .chat-dock { grid-column: 1 / -1; }
  .craps-tub { grid-column: 1; grid-row: 5 / span 2; height: 280px; }
  .felt-workspace { grid-column: 2; grid-row: 5 / span 2; margin-top: 0; }
  .control-dock { grid-column: 1 / -1; grid-row: 7; }
}
@media (max-width: 430px) {
  .rail-label { display: none; }
  .chip-rail { justify-content: center; gap: 2px; padding-inline: 0; }
  .chip { flex-basis: 34px; width: 34px; height: 34px; border-width: 3px; font-size: 8px; }
  .chip::after { inset: -3px; border-width: 3px; }
  .rail-control { flex-basis: 35px; min-height: 44px; }
  .rail-control strong { font-size: 6px; letter-spacing: .04em; }
  .rail-control small { font-size: 6px; }
}
@media (max-width: 355px) {
  .online-shell { padding-inline: 8px; }
  .online-topbar { min-height: 46px; padding-inline: 1px; }
  .brand-lockup strong { font-size: 15px; }.connection-state { display: none; }
  .room-actions .text-button { display: none; }
  .hud-cell { min-height: 40px; padding-inline: 6px; }.hud-cell span { font-size: 7px; }.hud-cell strong { font-size: 12px; }
  .result-strip { min-height: 38px; gap: 6px; padding-inline: 6px; }.result-total { font-size: 23px; }.point-badge { min-width: 58px; }.point-badge strong { font-size: 13px; }
  .craps-tub { height: 151px; }.tub-felt { inset-inline: 7%; }.table-seat { width: 42px; }.seat-avatar { width: 27px; height: 27px; }.seat-name { font-size: 7px; }.seat-status { font-size: 6px; }.dice-stage { inset-inline: 19%; }.die { width: 34px; height: 34px; border-radius: 8px; }.roll-orb { width: 35px; height: 35px; font-size: 16px; }
  .felt-workspace { padding: 5px; }.felt-header { min-height: 21px; }.felt-header h2 { font-size: 12px; }.shortcut-row, .contract-row { gap: 4px; }.contract-shortcut { min-height: 34px; }.contract-shortcut > span:first-child { font-size: 9px; }.contract-shortcut small { font-size: 6px; }.number-grid { gap: 3px; }.number-cell { min-height: 67px; grid-template-rows: minmax(19px,1fr) 24px minmax(19px,1fr); }.number-target span { font-size: 6px; }.number-target small { font-size: 5px; }.number-center { font-size: 18px; }.number-center .on-puck { width: 14px; height: 14px; font-size: 5px; }
  .chip-rail { min-height: 51px; justify-content: flex-start; gap: 3px; overflow-x: auto; scrollbar-width: none; }.chip-rail::-webkit-scrollbar { display: none; }.chip { flex-basis: 37px; width: 37px; height: 37px; border-width: 3px; font-size: 8px; }.chip::after { inset: -3px; border-width: 3px; }.rail-control { flex-basis: 40px; min-height: 41px; }.rail-control strong { font-size: 7px; }.roll-dock { min-height: 58px; grid-template-columns: minmax(0,1fr) 75px 85px; gap: 4px; }.ready-button, .gamble-button { min-height: 50px; }.ready-button span, .gamble-button span { font-size: 10px; }.roll-status span { font-size: 8px; }.roll-status small { font-size: 7px; }
}
/* Live-density pass: keep the table, full number bank, chip rail and roll controls
   together inside a real phone browser viewport without horizontal control scrolling. */
.table-screen .room-bar { min-height: 34px; gap: 8px; padding: 0 3px 4px; }
.table-screen .room-bar h1 { margin-top: 2px; font-size: 14px; line-height: 1; }
.table-screen .room-actions .subtle-button,
.table-screen .room-actions .text-button { min-height: 32px; }
.table-screen .hud-cell { min-height: 42px; gap: 3px; padding: 5px 8px; }
.table-screen .hud-cell strong { font-size: clamp(12px, 3.5vw, 17px); text-overflow: clip; }
.table-screen .result-strip { min-height: 37px; gap: 8px; padding: 4px 8px; }
.table-screen .result-total { min-width: 38px; font-size: 24px; }
.table-screen .point-badge { min-width: 61px; gap: 1px; padding: 3px 6px; }
.table-screen .craps-tub { height: 146px; }
.table-screen .tub-felt { inset: 20px 9% 17px; }
.table-screen .table-seats { inset: 10px 5% 7px; }
.table-screen .table-seat { width: 48px; gap: 1px; }
.table-screen .seat-avatar { width: 28px; height: 28px; font-size: 9px; }
.table-screen .dice-stage { inset: 25px 22% 18px; gap: 2px; }
.table-screen .die { width: clamp(34px, 9vw, 47px); height: clamp(34px, 9vw, 47px); border-radius: 10px; }
.table-screen .roll-orb { width: 38px; height: 38px; font-size: 18px; }
.table-screen .feed-strip { min-height: 24px; padding-block: 2px; }
.table-screen .felt-workspace { margin-top: 4px; padding: 5px 6px; }
.table-screen .felt-header { min-height: 21px; padding-bottom: 3px; }
.table-screen .felt-header h2 { margin-top: 1px; font-size: 12px; }
.table-screen .contract-shortcut { min-height: 34px; gap: 1px; padding: 2px 6px; }
.table-screen .number-grid { gap: 3px; margin-top: 4px; }
.table-screen .number-cell { min-height: 62px; grid-template-rows: minmax(18px, 1fr) 24px minmax(18px, 1fr); }
.table-screen .number-center { font-size: 20px; }
.table-screen .contract-row { margin-top: 4px; }
.table-screen .contract-row .contract-shortcut { min-height: 30px; }
.table-screen .control-dock { margin-top: 3px; }
.table-screen .chip-rail { min-height: 45px; gap: clamp(2px, .7vw, 6px); padding: 1px; overflow: hidden; }
.table-screen .chip { flex-basis: clamp(34px, 9vw, 50px); width: clamp(34px, 9vw, 50px); height: clamp(34px, 9vw, 50px); border-width: 3px; font-size: clamp(8px, 2.2vw, 12px); }
.table-screen .chip::after { inset: -3px; border-width: 3px; }
.table-screen .rail-control { flex-basis: clamp(40px, 10.5vw, 58px); min-height: 40px; padding: 2px; }
.table-screen .roll-dock { min-height: 54px; grid-template-columns: minmax(0, 1fr) minmax(78px, .65fr) minmax(88px, .74fr); gap: 5px; padding-top: 2px; }
.table-screen .ready-button,
.table-screen .gamble-button { min-height: 51px; gap: 1px; padding: 4px; }
.table-screen .chat-dock { min-height: 25px; margin-top: 2px; padding-block: 3px; }
.online-win { position: absolute; top: 49%; left: 50%; z-index: 8; min-width: 150px; min-height: 52px; display: flex; align-items: baseline; justify-content: center; gap: 7px; padding: 0 10px; border: 0; color: #fff1ae; background: transparent; transform: translate(-50%, -50%); filter: drop-shadow(0 5px 7px rgba(0,0,0,.72)); animation: online-win-hit .7s cubic-bezier(.14,.84,.22,1.18) both; }
.online-win[hidden] { display: none; }
.online-win::before { position: absolute; z-index: -2; width: 190px; height: 96px; border-radius: 50%; content: ""; background: repeating-conic-gradient(from -8deg, rgba(255,218,93,.68) 0 2deg, transparent 2deg 13deg); -webkit-mask: radial-gradient(ellipse, transparent 0 23%, #000 34%, transparent 72%); mask: radial-gradient(ellipse, transparent 0 23%, #000 34%, transparent 72%); animation: online-win-rays .9s ease-out both; }
.online-win::after { position: absolute; z-index: -1; width: 172px; height: 65px; border-radius: 50%; content: ""; background: radial-gradient(ellipse, rgba(255,235,134,.82), rgba(255,184,49,.25) 44%, transparent 74%); filter: blur(7px); }
.online-win span { font-size: 9px; font-weight: 950; letter-spacing: .16em; text-shadow: 0 0 8px #ffbd3d, 0 2px 3px rgba(0,0,0,.82); }
.online-win strong { color: #ffd65c; font-size: clamp(24px, 7vw, 35px); font-variant-numeric: tabular-nums; letter-spacing: -.04em; text-shadow: 0 0 5px #fff0a7, 0 0 16px rgba(255,184,48,.9), 0 3px 3px rgba(74,29,0,.82); }
.online-win.is-exiting { pointer-events: none; animation: online-win-exit .2s ease-in both; }
@keyframes online-win-hit { 0% { opacity: 0; transform: translate(-50%, calc(-50% + 10px)) scale(.68); } 58% { opacity: 1; transform: translate(-50%, calc(-50% - 2px)) scale(1.1); } 100% { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
@keyframes online-win-exit { to { opacity: 0; transform: translate(-50%, calc(-50% - 8px)) scale(.94); } }
@keyframes online-win-rays { from { opacity: 0; transform: rotate(-18deg) scale(.35); } to { opacity: .46; transform: rotate(8deg) scale(1.1); } }
.chat-dock { position: relative; }
.chat-toggle,
.chat-open { min-height: 38px; padding: 0 4px; border: 0; color: var(--dim); background: transparent; font-size: 7px; font-weight: 900; letter-spacing: .13em; }
.chat-toggle:hover,
.chat-open:hover { color: var(--brass-soft); }
.chat-open { min-width: 48px; border: 1px solid rgba(237,189,95,.28); border-radius: 5px; color: var(--brass); }
.chat-panel { position: absolute; right: 0; bottom: calc(100% + 6px); z-index: 14; width: min(100%, 430px); max-height: min(38dvh, 250px); display: grid; grid-template-rows: auto minmax(54px, 1fr) auto; overflow: hidden; border: 1px solid rgba(237,189,95,.38); border-radius: 11px; background: linear-gradient(160deg, rgba(5,55,47,.97), rgba(1,20,18,.97)); box-shadow: 0 18px 42px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.08); backdrop-filter: blur(14px); }
.chat-panel-head { min-height: 35px; display: flex; align-items: center; justify-content: space-between; padding: 0 8px 0 11px; border-bottom: 1px solid var(--line); }
.chat-panel-head strong { color: var(--brass-soft); font-size: 9px; letter-spacing: .13em; }
.chat-panel-head .text-button { min-height: 34px; font-size: 7px; }
.chat-log { display: grid; align-content: end; gap: 7px; min-height: 54px; overflow-y: auto; padding: 10px 11px; scrollbar-width: thin; }
.chat-empty { color: var(--dim); font-size: 10px; text-align: center; }
.chat-message { display: grid; grid-template-columns: auto minmax(0,1fr); align-items: baseline; gap: 7px; }
.chat-message strong { max-width: 92px; overflow: hidden; color: var(--teal); font-size: 8px; letter-spacing: .04em; white-space: nowrap; text-overflow: ellipsis; }
.chat-message p { color: var(--ink); font-size: 10px; line-height: 1.35; overflow-wrap: anywhere; }
.chat-form { display: grid; grid-template-columns: minmax(0,1fr) 58px; gap: 5px; padding: 7px; border-top: 1px solid var(--line); }
.chat-form input[type="text"] { min-height: 40px; font-size: 16px; }
.chat-form button { min-height: 40px; border: 1px solid rgba(55,211,189,.54); border-radius: 6px; color: #dffff6; background: linear-gradient(180deg, #127d67, #07513f); font-size: 8px; font-weight: 900; letter-spacing: .09em; }

@media (min-width: 700px) {
  .table-screen .craps-tub { height: 220px; }
  .table-screen .number-cell { min-height: 82px; grid-template-rows: minmax(25px, 1fr) 32px minmax(25px, 1fr); }
  .table-screen .number-center { font-size: 25px; }
}

@media (min-width: 1000px) {
  .table-screen .craps-tub { height: 268px; }
  .table-screen .felt-workspace { margin-top: 0; }
}

@media (max-width: 430px) {
  .table-screen .chip { flex-basis: clamp(29px, 8.5vw, 34px); width: clamp(29px, 8.5vw, 34px); height: clamp(29px, 8.5vw, 34px); }
  .table-screen .rail-control { flex-basis: clamp(32px, 9.2vw, 36px); min-height: 40px; }
  .table-screen .rail-control strong { font-size: 6px; letter-spacing: .02em; }
}

@media (max-width: 355px) {
  .table-screen .room-bar { min-height: 30px; }
  .table-screen .room-bar h1 { font-size: 12px; }
  .table-screen .hud-cell { min-height: 37px; padding-inline: 5px; }
  .table-screen .result-strip { min-height: 34px; }
  .table-screen .craps-tub { height: 132px; }
  .table-screen .felt-workspace { padding-inline: 4px; }
  .table-screen .number-cell { min-height: 57px; grid-template-rows: 17px 23px 17px; }
  .table-screen .contract-shortcut { min-height: 31px; }
  .table-screen .contract-row .contract-shortcut { min-height: 28px; }
  .table-screen .chip-rail { min-height: 41px; justify-content: center; gap: 2px; overflow: hidden; }
  .table-screen .chip { flex-basis: 26px; width: 26px; height: 26px; border-width: 2px; font-size: 7px; }
  .table-screen .chip::after { inset: -2px; border-width: 2px; }
  .table-screen .rail-control { flex-basis: 33px; min-height: 37px; }
  .table-screen .roll-dock { min-height: 51px; grid-template-columns: minmax(0, 1fr) 72px 80px; }
  .table-screen .ready-button,
  .table-screen .gamble-button { min-height: 48px; }
}

/* At the 320px edge the ten controls use two compact rows rather than a
   horizontal scroller: six denominations above four actions.  Each control
   keeps the documented 32x36 dense-terminal minimum while the grid itself
   remains inside the phone's content width. */
@media (max-width: 355px) {
  .table-screen .chip-rail { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: 36px 36px; grid-auto-flow: row; gap: 2px; min-height: 74px; height: 74px; align-items: stretch; justify-content: stretch; overflow: visible; }
  .table-screen .chip { grid-column: span 2; flex: none; min-width: 32px; width: 100%; height: 36px; border-width: 3px; font-size: 8px; }
  .table-screen .chip::after { inset: -3px; border-width: 3px; }
  .table-screen .rail-control { grid-column: span 3; flex: none; min-width: 32px; width: 100%; min-height: 36px; height: 36px; padding: 2px; }
  .table-screen .rail-control strong { font-size: 7px; letter-spacing: .02em; }
  .table-screen .rail-control small { font-size: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* -------------------------------------------------------------------------
   Online table redesign v2
   The final layer intentionally owns the composition below.  The earlier
   rules keep the shared chip/stack primitives and reduced-motion contract;
   these selectors establish the concept render's table-first hierarchy.
   ------------------------------------------------------------------------- */
:root { --table-ink: #f8f1dc; --table-muted: #a9bdaf; --table-dim: #6f8c7e; --table-brass: #eac269; --table-teal: #36d6bd; --table-felt: #087653; --table-felt-dark: #034735; --table-oxblood: #32191a; }
body { background: radial-gradient(circle at 50% -10%, rgba(14,139,107,.24), transparent 34rem), linear-gradient(155deg, #08251f, #031411 54%, #010807); }
.online-shell { width: min(100%, 1120px); min-height: 100dvh; padding: 0 14px max(10px, env(safe-area-inset-bottom)); }
.online-main { min-width: 0; }
.entry-screen { width: min(100%, 520px); min-height: 100dvh; margin: 0 auto; padding: max(10px, env(safe-area-inset-top)) 0 18px; }
.entry-topbar, .live-header { min-height: 49px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-bottom: 1px solid rgba(206,225,194,.14); }
.brand-lockup { display: inline-flex; align-items: center; gap: 8px; min-width: 0; color: var(--table-ink); text-decoration: none; }
.brand-lockup > span:last-child { min-width: 0; display: grid; gap: 2px; }
.brand-lockup small, .eyebrow, .connection-state, .rules-link, .field-label, .seat-picker legend, .hud-cell span, .felt-state, .feed-tag, .secondary-section-label { color: var(--table-brass); font-size: 8px; font-weight: 900; letter-spacing: .15em; line-height: 1.1; }
.brand-lockup strong { font-size: 17px; letter-spacing: .15em; line-height: 1; }
.brand-mark { position: relative; width: 28px; height: 28px; display: grid; grid-template-columns: repeat(2, 4px); grid-template-rows: repeat(2, 4px); place-content: center; gap: 5px; border: 1px solid rgba(234,194,105,.76); border-radius: 8px; transform: rotate(-8deg); }
.brand-mark i { width: 4px; height: 4px; border-radius: 50%; background: var(--table-brass); box-shadow: 0 0 7px rgba(234,194,105,.65); }
.connection-state { display: inline-flex; align-items: center; gap: 5px; color: var(--table-muted); font-size: 8px; letter-spacing: .08em; white-space: nowrap; }
.connection-state i, .status-dot { width: 6px; height: 6px; flex: 0 0 6px; border-radius: 50%; background: var(--table-teal); box-shadow: 0 0 10px var(--table-teal); }
.connection-state.is-offline i { background: #df6e5d; box-shadow: 0 0 10px #df6e5d; }
.entry-heading { padding: 24px 6px 16px; text-align: left; }
.entry-heading h1 { margin-top: 7px; font-size: clamp(29px, 8vw, 40px); letter-spacing: -.04em; line-height: 1; }
.entry-heading > p:last-child { max-width: 340px; margin-top: 9px; color: var(--table-muted); font-size: 12px; line-height: 1.4; }
.identity-panel { display: grid; gap: 12px; padding: 0 2px; border: 0; background: transparent; box-shadow: none; }
.seat-picker { min-width: 0; margin: 0; padding: 0; border: 0; }
.seat-picker legend { padding: 0 4px; color: var(--table-brass); }
.seat-scene { position: relative; height: 258px; margin-top: 8px; overflow: hidden; border: 1px solid rgba(234,194,105,.34); border-radius: 18px; background: radial-gradient(ellipse at 50% 48%, rgba(18,147,100,.42), transparent 55%), linear-gradient(180deg, #061e1b, #021311); box-shadow: inset 0 0 0 5px rgba(48,25,24,.78), inset 0 0 0 7px rgba(234,194,105,.23), 0 15px 30px rgba(0,0,0,.27); }
.entry-table-art { position: absolute; inset: 36px 12% 28px; overflow: hidden; border: 2px solid rgba(234,194,105,.65); border-radius: 49% 49% 44% 44% / 42% 42% 31% 31%; background: radial-gradient(ellipse at 50% 42%, rgba(17,163,109,.55), rgba(3,71,51,.9) 70%); box-shadow: inset 0 0 0 11px rgba(49,24,24,.9), inset 0 0 20px rgba(37,215,169,.2); }
.entry-table-art::after { position: absolute; inset: 16px; border: 1px solid rgba(53,214,188,.24); border-radius: inherit; content: ""; }
.entry-rail { position: absolute; top: 16%; left: 8%; right: 8%; z-index: 2; color: rgba(246,223,160,.76); font-size: 7px; font-weight: 900; letter-spacing: .08em; text-align: center; }
.entry-lane { position: absolute; z-index: 2; color: rgba(244,224,164,.72); font-size: 10px; font-weight: 900; letter-spacing: .18em; }.entry-lane-come { top: 39%; left: 50%; transform: translateX(-50%); }.entry-lane-field { left: 20%; bottom: 25%; font-size: 7px; }.entry-lane-pass { right: 13%; bottom: 25%; font-size: 7px; }
.seat-options { position: absolute; inset: 0; display: block; margin: 0; }
.seat-option { position: absolute; width: 53px; min-height: 53px; display: grid; place-items: center; align-content: center; gap: 1px; padding: 0; border: 2px solid rgba(147,184,166,.54); border-radius: 50%; color: var(--table-ink); background: radial-gradient(circle at 35% 26%, rgba(237,192,139,.88), rgba(24,111,87,.9) 42%, rgba(2,36,31,.96) 74%); box-shadow: 0 5px 13px rgba(0,0,0,.4); transform: translate(-50%, -50%); }
.seat-option span { font-size: 15px; font-weight: 900; }.seat-option small { color: var(--table-muted); font-size: 6px; font-weight: 900; letter-spacing: .1em; }.seat-option.is-selected { width: 60px; min-height: 60px; border-color: var(--table-teal); color: #f5fff2; box-shadow: 0 0 0 3px rgba(54,214,189,.18), 0 7px 15px rgba(0,0,0,.46); }.seat-option:not(.is-selected)::after { position: absolute; inset: -3px; border: 1px dashed rgba(234,194,105,.26); border-radius: 50%; content: ""; }
.seat-option:nth-child(1) { left: 18%; top: 43%; }.seat-option:nth-child(2) { left: 34%; top: 15%; }.seat-option:nth-child(3) { left: 66%; top: 15%; }.seat-option:nth-child(4) { left: 82%; top: 43%; }.seat-option:nth-child(5) { left: 65%; top: 80%; }.seat-option:nth-child(6) { left: 35%; top: 80%; }
.seat-hint { position: absolute; left: 50%; bottom: 10px; z-index: 4; color: var(--table-brass); font-size: 7px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; transform: translateX(-50%); white-space: nowrap; }
.identity-row { display: grid; grid-template-columns: 56px minmax(0,1fr); align-items: center; gap: 10px; padding: 9px 5px; border-top: 1px solid rgba(206,225,194,.14); border-bottom: 1px solid rgba(206,225,194,.14); }
.avatar-preview { width: 56px; height: 56px; display: grid; place-items: center; overflow: hidden; border: 1px solid rgba(234,194,105,.58); border-radius: 50%; color: var(--table-brass); background: radial-gradient(circle at 35% 25%, rgba(232,173,129,.8), rgba(9,101,77,.8) 45%, #03251e 75%); font-size: 18px; font-weight: 900; }.avatar-preview img { width: 100%; height: 100%; object-fit: cover; }
.identity-fields, .entry-actions { min-width: 0; display: grid; gap: 6px; }.field-label { display: flex; justify-content: space-between; gap: 8px; color: var(--table-brass); font-size: 8px; }.field-label span { color: var(--table-dim); font-size: 7px; letter-spacing: .05em; text-transform: lowercase; }
input[type="text"] { width: 100%; min-height: 42px; padding: 0 11px; border: 1px solid rgba(204,225,192,.26); border-radius: 6px; color: var(--table-ink); background: rgba(1,21,18,.7); font-size: 13px; } input[type="text"]::placeholder { color: var(--table-dim); }
#player-name { font-size: 16px; }
.photo-actions { display: flex; align-items: center; gap: 8px; }.subtle-button, .secondary-action { min-height: 38px; padding: 0 10px; border: 1px solid rgba(234,194,105,.45); border-radius: 6px; color: #f5dda0; background: rgba(7,74,56,.76); font-size: 8px; font-weight: 900; letter-spacing: .09em; }.text-button { min-height: 36px; padding: 0 5px; border: 0; color: var(--table-muted); background: transparent; font-size: 8px; font-weight: 850; letter-spacing: .08em; }.text-button:hover { color: #fff0b1; text-decoration: underline; text-underline-offset: 3px; }
.entry-actions { gap: 8px; }.primary-action, .secondary-action { min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 13px; border-radius: 7px; font-weight: 900; letter-spacing: .08em; }.primary-action { border: 1px solid rgba(55,214,189,.7); color: #f1fff8; background: linear-gradient(150deg,#168c6e,#07513e); box-shadow: inset 0 1px 0 rgba(255,255,255,.17); }.primary-action span, .secondary-action span { font-size: 11px; }.primary-action small, .secondary-action small { color: rgba(233,250,235,.65); font-size: 8px; letter-spacing: .02em; }
.entry-actions { padding-top: 2px; }
.entry-notice { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 10px 0 0; color: var(--table-dim); font-size: 8px; letter-spacing: .04em; }

/* Live shell */
.table-screen { position: relative; min-width: 0; max-width: 760px; margin: 0 auto; padding-bottom: 6px; }.live-header { position: relative; }.live-header-right { display: flex; align-items: center; gap: 7px; }.utility-toggle { width: 38px; height: 38px; border: 1px solid rgba(206,225,194,.3); border-radius: 8px; color: var(--table-brass); background: rgba(3,39,32,.56); font-size: 17px; letter-spacing: .04em; line-height: 1; }.utility-menu { position: absolute; top: 55px; right: 0; z-index: 30; width: min(270px, calc(100% - 16px)); padding: 9px; border: 1px solid rgba(234,194,105,.55); border-radius: 9px; background: rgba(3,31,27,.98); box-shadow: 0 18px 38px rgba(0,0,0,.55); }.utility-head { min-height: 30px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(206,225,194,.14); }.utility-head strong { color: var(--table-brass); font-size: 8px; letter-spacing: .14em; }.utility-close { min-height: 31px; padding: 0 7px; border: 0; color: var(--table-muted); background: transparent; font-size: 8px; font-weight: 900; letter-spacing: .1em; }.utility-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 5px; padding-top: 8px; }.utility-actions .rules-link, .utility-actions .danger-link { min-height: 38px; padding: 0 6px; border-radius: 6px; font-size: 8px; }.utility-actions .rules-link { border: 1px solid rgba(206,225,194,.3); color: var(--table-ink); background: rgba(4,58,45,.7); }.utility-actions .danger-link { border: 1px solid rgba(223,110,93,.42); color: #e89c88; background: rgba(74,26,27,.42); }
.utility-actions #clear-button { grid-column: 1 / -1; }
.utility-actions .danger-link { font-family: inherit; font-weight: 900; letter-spacing: .05em; }
.hud-strip { min-height: 53px; margin-top: 4px; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 1px; overflow: hidden; border: 1px solid rgba(206,225,194,.2); border-radius: 9px; background: rgba(190,210,183,.18); }.hud-cell { min-width: 0; min-height: 51px; display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 5px 8px; background: rgba(2,28,24,.91); }.hud-cell span { color: var(--table-brass); font-size: 7px; }.hud-cell strong { min-width: 0; overflow: hidden; color: var(--table-ink); font-size: clamp(12px,3.6vw,17px); line-height: 1; white-space: nowrap; text-overflow: clip; }.hud-cell:nth-child(2) strong { color: #f1dda6; }.hud-cell:nth-child(3) strong { color: #a7f1dc; }.streak-cell strong { color: #ed9b57; }
.result-strip { min-height: 38px; display: grid; grid-template-columns: minmax(0,1fr) auto auto; align-items: center; gap: 8px; padding: 3px 7px; border-bottom: 1px solid rgba(234,194,105,.2); }.result-main { min-width: 0; display: flex; align-items: baseline; gap: 8px; }.phase-label { color: var(--table-brass); font-size: 7px; font-weight: 900; letter-spacing: .16em; white-space: nowrap; }.result-strip #result-copy { min-width: 0; overflow: hidden; color: var(--table-muted); font-size: 9px; white-space: nowrap; text-overflow: ellipsis; }.result-total { min-width: 31px; color: #f7d985; font-size: 24px; font-weight: 950; line-height: 1; text-align: center; }.point-badge { min-width: 61px; display: grid; gap: 1px; padding: 3px 7px; border: 1px solid rgba(234,194,105,.63); border-radius: 99px; text-align: center; background: rgba(4,34,29,.86); }.point-badge span { color: var(--table-brass); font-size: 6px; font-weight: 900; letter-spacing: .13em; }.point-badge strong { color: #f7dda1; font-size: 13px; line-height: 1; }

/* Authentic supported craps topology */
.craps-tub { position: relative; height: 210px; overflow: hidden; margin: 5px 0 0; border: 1px solid rgba(234,194,105,.5); border-radius: 17% 17% 23% 23% / 22% 22% 17% 17%; background: linear-gradient(180deg,#4a2723 0%,#241616 12%,#2c1719 16%,#3a1b1d 84%,#241316 100%); box-shadow: inset 0 0 0 6px rgba(25,12,13,.72), inset 0 0 0 8px rgba(234,194,105,.25), 0 13px 28px rgba(0,0,0,.3); }.tub-rim { position: absolute; left: 3%; right: 3%; height: 15px; border: 1px solid rgba(234,194,105,.5); border-radius: 50%; pointer-events: none; }.tub-rim-back { top: 2px; box-shadow: 0 0 0 5px rgba(30,14,14,.5); }.tub-rim-front { bottom: -7px; height: 32px; border-color: rgba(176,235,204,.3); }
.tub-felt { position: absolute; inset: 25px 8% 22px; overflow: hidden; border: 1px solid rgba(234,194,105,.66); border-radius: 5px; background: radial-gradient(ellipse at 50% 43%, rgba(21,168,108,.52), transparent 67%), linear-gradient(180deg,#087e59,#04573f); box-shadow: inset 0 0 0 7px rgba(3,45,35,.22), inset 0 0 24px rgba(0,0,0,.26); }.tub-felt::after { position: absolute; inset: 6px; border: 1px solid rgba(192,244,210,.22); border-radius: 3px; content: ""; pointer-events: none; }
.table-topology { position: absolute; inset: 0; display: grid; grid-template-rows: 25% 35% 40%; color: rgba(245,224,164,.79); text-align: center; }.table-number-rail { display: grid; grid-template-columns: repeat(10,1fr); align-items: center; border-bottom: 1px solid rgba(231,235,188,.34); }.table-number-rail span { height: 100%; display: grid; place-items: center; border-right: 1px solid rgba(231,235,188,.22); font-size: 8px; font-weight: 900; }.table-number-rail span:last-child { border-right: 0; }.table-lane { display: grid; place-items: center; border-bottom: 1px solid rgba(231,235,188,.3); font-size: 17px; font-weight: 950; letter-spacing: .16em; }.lane-come { grid-row: 2; }.lane-field { grid-row: 3; width: 50%; border-right: 1px solid rgba(231,235,188,.28); font-size: 9px; letter-spacing: .11em; }.lane-field small { color: rgba(245,224,164,.66); font-size: 5px; letter-spacing: .02em; }.lane-pass { position: absolute; right: 0; bottom: 0; width: 50%; height: 40%; display: grid; place-items: center; font-size: 9px; letter-spacing: .11em; }
.table-seats { position: absolute; inset: 8px 4% 7px; z-index: 5; pointer-events: none; }.table-seat { position: absolute; width: 63px; display: grid; justify-items: center; gap: 1px; color: var(--table-muted); font-size: 7px; text-align: center; transform: translate(-50%,-50%); }.table-seat:nth-child(1) { left: 19%; top: 12%; }.table-seat:nth-child(2) { left: 50%; top: 4%; }.table-seat:nth-child(3) { left: 81%; top: 12%; }.table-seat:nth-child(4) { left: 81%; top: 88%; }.table-seat:nth-child(5) { left: 50%; top: 96%; }.table-seat:nth-child(6) { left: 19%; top: 88%; }.seat-avatar { width: 40px; height: 40px; display: grid; place-items: center; overflow: hidden; border: 2px solid rgba(173,205,187,.44); border-radius: 50%; color: var(--table-ink); background: linear-gradient(145deg,#2c9678,#073d34); font-size: 12px; font-weight: 900; box-shadow: 0 4px 10px rgba(0,0,0,.42); }.seat-avatar img { width: 100%; height: 100%; object-fit: cover; }.table-seat.is-shooter .seat-avatar { width: 46px; height: 46px; border-color: var(--table-brass); box-shadow: 0 0 0 3px rgba(234,194,105,.16), 0 4px 11px rgba(0,0,0,.44); }.table-seat.is-self .seat-avatar { width: 46px; height: 46px; border-color: var(--table-teal); box-shadow: 0 0 0 3px rgba(54,214,189,.18), 0 4px 11px rgba(0,0,0,.44); }.seat-name { max-width: 63px; overflow: hidden; color: var(--table-ink); font-size: 7px; font-weight: 800; white-space: nowrap; text-overflow: ellipsis; }.seat-status { color: var(--table-dim); font-size: 6px; letter-spacing: .06em; }.table-seat.is-ready .seat-status { color: var(--table-teal); }.table-seat.is-shooter .seat-status { color: var(--table-brass); }.table-seat:not(.is-self):not(.is-shooter) .seat-avatar:not(:has(img)) { opacity: .82; }
.dice-stage { position: absolute; inset: 49px 27% 38px; z-index: 6; display: grid; place-items: center; align-content: center; pointer-events: none; }.dice-pair { display: flex; align-items: center; justify-content: center; gap: 9px; }.die { width: clamp(44px,11vw,50px); height: clamp(44px,11vw,50px); border-radius: 11px; }.roll-orb { width: 42px; height: 42px; font-size: 19px; }.dice-shadow { bottom: -3px; }.online-win { top: 53%; }
.table-feed { position: absolute; left: 10px; bottom: 7px; z-index: 8; width: min(56%, 225px); display: grid; grid-template-columns: auto minmax(0,1fr); align-items: baseline; gap: 6px; padding-left: 6px; border-left: 3px solid var(--table-teal); color: var(--table-muted); }.table-feed .feed-tag { color: var(--table-teal); font-size: 6px; }.table-feed p { overflow: hidden; font-size: 8px; line-height: 1.25; white-space: nowrap; text-overflow: ellipsis; }

/* Private board */
.felt-workspace { position: relative; margin-top: 7px; padding: 9px 9px 8px; border: 1px solid rgba(234,194,105,.48); border-radius: 13px; background: linear-gradient(155deg,rgba(5,99,69,.97),rgba(3,58,43,.98)); box-shadow: inset 0 0 0 4px rgba(5,72,51,.38), inset 0 1px 0 rgba(255,255,255,.1); }.felt-header { min-height: 26px; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 1px 7px; }.felt-header h2 { margin: 0; color: var(--table-ink); font-size: 14px; letter-spacing: .12em; }.felt-header-actions { min-width: 0; display: flex; align-items: center; gap: 7px; }.selected-chip-label { color: var(--table-muted); font-size: 7px; font-weight: 850; letter-spacing: .04em; white-space: nowrap; }.felt-state { color: var(--table-teal); font-size: 7px; white-space: nowrap; }.secondary-toggle { min-height: 32px; padding: 0 7px; border: 1px solid rgba(234,194,105,.55); border-radius: 5px; color: var(--table-brass); background: rgba(4,63,45,.7); font-size: 7px; font-weight: 900; letter-spacing: .08em; white-space: nowrap; }
.number-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 4px; margin: 0; }.number-cell { min-width: 0; min-height: 82px; grid-template-rows: 22px 38px 22px; overflow: hidden; border: 1px solid rgba(190,225,189,.28); border-radius: 3px; background: rgba(2,71,49,.66); }.number-cell.is-latest { border-color: var(--table-teal); box-shadow: inset 0 0 0 1px rgba(54,214,189,.8), 0 0 10px rgba(54,214,189,.18); }.number-cell.is-point { border-color: rgba(234,194,105,.95); box-shadow: inset 0 0 0 1px rgba(234,194,105,.4); }.number-cell.is-latest.is-point { border-color: var(--table-brass); }.number-target { min-height: 22px; padding: 2px 25px 2px 2px; }.number-target span { font-size: 7px; }.number-target small { font-size: 6px; }.number-center { font-size: 24px; }.number-center .on-puck { width: 17px; height: 17px; font-size: 6px; }.number-target .chip-stack { top: 3px; right: 3px; left: auto; width: 22px; height: 22px; border-width: 2px; font-size: 5px; transform: none; }.number-target .chip-stack::after { inset: -2px; border-width: 2px; }
.main-bet-row { display: grid; grid-template-columns: 1.35fr 1fr 1fr 1fr; gap: 5px; margin-top: 7px; }.main-bet-row .contract-shortcut, .main-bet-row .rail-control { min-width: 0; min-height: 47px; height: 47px; padding: 3px 5px; }.main-bet-row .contract-shortcut > span:first-child { font-size: 8px; letter-spacing: .06em; }.main-bet-row .contract-shortcut small, .main-bet-row .rail-control small { font-size: 6px; }.main-bet-row .rail-control strong { font-size: 8px; letter-spacing: .04em; }.main-bet-row .bet-chip-slot { right: 5px; }.main-bet-row .chip-stack { width: 23px; height: 23px; font-size: 5px; }
.secondary-panel { position: absolute; right: 7px; bottom: 7px; left: 7px; z-index: 20; max-height: min(66dvh, 460px); overflow-y: auto; padding: 9px; border: 1px solid rgba(234,194,105,.66); border-radius: 9px; background: linear-gradient(158deg,rgba(4,72,53,.99),rgba(2,27,24,.99)); box-shadow: 0 18px 38px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.1); scrollbar-width: thin; }.secondary-panel-head { min-height: 31px; display: flex; align-items: center; justify-content: space-between; gap: 7px; padding-bottom: 6px; border-bottom: 1px solid rgba(206,225,194,.14); }.secondary-panel-head strong { color: var(--table-ink); font-size: 11px; }.secondary-close { min-height: 32px; padding: 0 7px; border: 1px solid rgba(234,194,105,.38); border-radius: 5px; color: var(--table-brass); background: rgba(7,50,40,.72); font-size: 7px; font-weight: 900; letter-spacing: .1em; }.secondary-panel .come-shortcut { min-height: 42px; margin-top: 7px; }.secondary-odds-row { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px; margin-top: 7px; }.secondary-odds-row > .contract-shortcut { min-height: 42px; }.secondary-odds-column { min-width: 0; display: grid; align-content: start; gap: 3px; }.secondary-wager-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 4px; }.secondary-wager { position: relative; min-width: 0; min-height: 36px; display: grid; align-content: center; gap: 1px; padding: 3px 28px 3px 7px; overflow: hidden; border: 1px solid rgba(178,221,179,.28); border-radius: 5px; color: var(--table-ink); background: rgba(4,72,52,.82); text-align: left; }.secondary-wager strong { overflow: hidden; font-size: 8px; white-space: nowrap; text-overflow: ellipsis; }.secondary-wager small { overflow: hidden; color: rgba(245,220,157,.72); font-size: 6px; white-space: nowrap; text-overflow: ellipsis; }.secondary-chip-slot { position: absolute; top: 50%; right: 4px; width: 23px; height: 23px; transform: translateY(-50%); }.secondary-chip-slot .chip-stack { width: 22px; height: 22px; font-size: 5px; }.secondary-section { margin-top: 8px; }.secondary-section h3 { margin: 0 0 4px; color: var(--table-brass); font-size: 7px; letter-spacing: .13em; }.secondary-empty { min-height: 36px; display: grid; place-items: center; padding: 3px; border: 1px dashed rgba(178,221,179,.22); border-radius: 5px; color: var(--table-dim); font-size: 7px; text-align: center; }

/* Chips, one context action, and transparent conversation footer */
.control-dock { margin-top: 6px; }.chip-rail { min-height: 58px; height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 1px; padding: 3px 0; overflow: visible; }.chip { position: relative; flex: 0 0 44px; width: 44px; height: 44px; border-width: 3px; font-size: 9px; }.chip::after { inset: -3px; border-width: 3px; }.context-action-slot { position: relative; flex: 0 0 92px; height: 54px; }.context-action { position: absolute; inset: 0; width: 100%; min-height: 52px; }.ready-button, .gamble-button { min-width: 0; min-height: 52px; display: grid; place-items: center; align-content: center; gap: 2px; padding: 4px; border-radius: 8px; }.ready-button { border: 1px solid rgba(234,194,105,.72); color: #f8e5aa; background: linear-gradient(180deg,rgba(38,122,80,.97),rgba(6,66,48,.98)); }.ready-button.is-ready { border-color: rgba(54,214,189,.8); color: #c2fff0; background: linear-gradient(180deg,rgba(11,130,96,.98),rgba(4,66,53,.98)); }.gamble-button { border: 2px solid #f6d46f; color: #fff5ce; background: radial-gradient(circle at 35% 24%,#fa7d63,#a93032 76%); box-shadow: 0 4px 0 #52212b, 0 7px 14px rgba(0,0,0,.35), inset 0 0 0 2px rgba(255,235,143,.24); }.context-action span { font-size: 11px; font-weight: 950; letter-spacing: .08em; }.context-action small { color: rgba(255,245,206,.74); font-size: 6px; letter-spacing: .02em; }
.chat-dock { position: relative; min-height: 53px; display: grid; grid-template-columns: minmax(0,2fr) minmax(112px,1fr); gap: 6px; margin-top: 2px; padding: 3px 0 0; border-top: 1px solid rgba(206,225,194,.14); }.chat-preview-wrap { min-width: 0; display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 6px; padding: 4px 8px; border: 1px solid rgba(85,159,133,.28); border-radius: 8px; background: rgba(2,31,26,.4); }.chat-toggle, .chat-open { min-height: 36px; padding: 0 4px; border: 0; color: var(--table-dim); background: transparent; font-size: 7px; font-weight: 900; letter-spacing: .12em; }.chat-preview-wrap p { min-width: 0; overflow: hidden; color: var(--table-muted); font-size: 9px; white-space: nowrap; text-overflow: ellipsis; }.chat-open { min-width: 42px; border: 1px solid rgba(234,194,105,.34); border-radius: 5px; color: var(--table-brass); }.readiness-tile { min-width: 0; display: grid; place-items: center; align-content: center; gap: 3px; padding: 4px; border: 1px solid rgba(234,194,105,.42); border-radius: 8px; color: var(--table-brass); background: rgba(5,35,29,.46); text-align: center; }.readiness-tile strong { font-size: 11px; letter-spacing: .05em; }.readiness-tile small { overflow: hidden; max-width: 100%; color: var(--table-muted); font-size: 7px; white-space: nowrap; text-overflow: ellipsis; }
.chat-panel { position: absolute; right: 0; bottom: calc(100% + 7px); z-index: 25; width: min(100%, 430px); max-height: min(42dvh,260px); display: grid; grid-template-rows: auto minmax(54px,1fr) auto; overflow: hidden; border: 1px solid rgba(234,194,105,.48); border-radius: 10px; background: linear-gradient(160deg,rgba(5,55,47,.98),rgba(1,20,18,.98)); box-shadow: 0 18px 42px rgba(0,0,0,.58); }.chat-panel-head { min-height: 35px; display: flex; align-items: center; justify-content: space-between; padding: 0 8px 0 11px; border-bottom: 1px solid rgba(206,225,194,.14); }.chat-panel-head strong { color: var(--table-brass); font-size: 9px; letter-spacing: .13em; }.chat-log { display: grid; align-content: end; gap: 7px; min-height: 54px; overflow-y: auto; padding: 10px 11px; }.chat-form { display: grid; grid-template-columns: minmax(0,1fr) 58px; gap: 5px; padding: 7px; border-top: 1px solid rgba(206,225,194,.14); }.chat-form input[type="text"] { min-height: 40px; font-size: 16px; }.chat-form button { min-height: 40px; border: 1px solid rgba(54,214,189,.54); border-radius: 6px; color: #dffff6; background: linear-gradient(180deg,#127d67,#07513f); font-size: 8px; font-weight: 900; }

@media (max-width: 430px) {
  .online-shell { padding-inline: 14px; }.entry-screen { padding-bottom: 14px; }.seat-scene { height: 250px; }.craps-tub { height: 208px; }.table-screen .number-cell { min-height: 80px; grid-template-rows: 21px 38px 21px; }.table-screen .number-center { font-size: 23px; }.main-bet-row { gap: 4px; }.main-bet-row .contract-shortcut, .main-bet-row .rail-control { min-height: 45px; height: 45px; }.main-bet-row .contract-shortcut > span:first-child, .main-bet-row .rail-control strong { font-size: 7px; }.main-bet-row .contract-shortcut small, .main-bet-row .rail-control small { font-size: 5px; }.chip-rail { gap: 1px; }.chip { flex-basis: 44px; width: 44px; height: 44px; }.context-action-slot { flex-basis: 92px; }
}
@media (max-width: 355px) {
  .online-shell { padding-inline: 10px; }.entry-heading { padding-top: 16px; }.seat-scene { height: 230px; }.entry-table-art { inset-inline: 10%; }.seat-option { width: 46px; min-height: 46px; }.seat-option.is-selected { width: 52px; min-height: 52px; }.seat-option:nth-child(1) { left: 16%; }.seat-option:nth-child(4) { left: 84%; }.table-screen .result-strip { gap: 5px; }.result-main { gap: 5px; }.result-strip #result-copy { font-size: 8px; }.craps-tub { height: 190px; }.table-seats { inset-inline: 1%; }.table-seat { width: 52px; }.seat-avatar { width: 34px; height: 34px; }.table-seat.is-shooter .seat-avatar, .table-seat.is-self .seat-avatar { width: 39px; height: 39px; }.dice-stage { inset-inline: 22%; }.die { width: 40px; height: 40px; }.roll-orb { width: 36px; height: 36px; font-size: 16px; }.felt-workspace { padding-inline: 5px; }.felt-header-actions { gap: 4px; }.selected-chip-label { display: none; }.secondary-toggle { padding-inline: 5px; font-size: 6px; }.table-screen .number-cell { min-height: 69px; grid-template-rows: 18px 33px 18px; }.table-screen .number-center { font-size: 20px; }.main-bet-row .contract-shortcut, .main-bet-row .rail-control { min-height: 41px; height: 41px; }.chip-rail { min-height: 108px; height: 108px; flex-wrap: wrap; align-content: start; justify-content: center; gap: 2px; }.chip { flex: 0 0 43px; width: 43px; height: 43px; }.context-action-slot { flex: 0 0 94px; height: 52px; margin-left: 4px; }.chat-dock { grid-template-columns: 1fr; }.readiness-tile { min-height: 42px; }.chat-preview-wrap { min-height: 47px; }
}
@media (min-width: 700px) { .online-shell { padding-inline: 24px; }.table-screen { max-width: 760px; }.craps-tub { height: 214px; }.felt-workspace { padding: 10px; }.table-screen .number-cell { min-height: 85px; grid-template-rows: 23px 39px 23px; }.chip-rail { justify-content: center; gap: 5px; }.chat-dock { grid-template-columns: minmax(0,2fr) minmax(180px,1fr); } }
@media (min-width: 1000px) { .table-screen { max-width: 1100px; display: grid; grid-template-columns: minmax(0,1.05fr) minmax(390px,.95fr); column-gap: 18px; align-items: start; }.live-header, .hud-strip, .result-strip { grid-column: 1 / -1; }.craps-tub { grid-column: 1; grid-row: 4 / span 2; height: 310px; }.felt-workspace { grid-column: 2; grid-row: 4 / span 2; margin-top: 5px; }.control-dock, .chat-dock { grid-column: 1 / -1; }.chat-dock { grid-row: 6; } }
@media (prefers-reduced-motion: reduce) { .mode-button, .dice-pair.is-rolling .die, .online-win { animation: none !important; transition: none !important; } }

/* Specificity corrections for the redesigned phone composition.  The shared
   density layer above intentionally remains available to other breakpoints;
   these final table-screen selectors prevent it from collapsing the stage or
   shrinking the fixed six-chip rail on the 390px first frame. */
.table-screen .craps-tub { height: 210px; }
.table-screen .chip { flex: 0 0 44px; width: 44px; height: 44px; }
.table-screen .context-action-slot { flex: 0 0 92px; }
.table-screen .felt-workspace { min-height: 282px; }
.table-screen .number-cell { min-height: 82px; grid-template-rows: 22px 38px 22px; }

@media (max-width: 430px) {
  .table-screen .craps-tub { height: 208px; }
  .table-screen .chip { flex: 0 0 44px; width: 44px; height: 44px; }
  .table-screen .context-action-slot { flex-basis: 92px; }
  .table-screen .number-cell { min-height: 80px; grid-template-rows: 21px 38px 21px; }
}

@media (max-width: 355px) {
  .table-screen .craps-tub { height: 190px; }
  .table-screen .felt-workspace { min-height: 0; }
  .table-screen .number-cell { min-height: 69px; grid-template-rows: 18px 33px 18px; }
  .table-screen .chip { flex: 0 0 43px; width: 43px; height: 43px; }
  .table-screen .context-action-slot { flex-basis: 94px; }
}

@media (min-width: 700px) {
  .table-screen .craps-tub { height: 214px; }
  .table-screen .number-cell { min-height: 85px; grid-template-rows: 23px 39px 23px; }
}

/* Lead visual-QA corrections: keep the table social, the wager targets fast,
   and the phone rail comfortably inside the felt. */
.table-screen .table-seat {
  width: 96px;
  grid-template-columns: 46px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 4px;
  align-items: center;
  text-align: left;
}
.table-screen .table-seat:nth-child(-n+3) { top: 8%; }
.table-screen .table-seat:nth-child(n+4) { top: 92%; }
.table-screen .table-seat .seat-avatar {
  grid-column: 1;
  grid-row: 1 / 3;
  width: 36px;
  height: 36px;
}
.table-screen .table-seat.is-shooter .seat-avatar,
.table-screen .table-seat.is-self .seat-avatar { width: 42px; height: 42px; }
.table-screen .table-seat .seat-name { grid-column: 2; grid-row: 1; align-self: end; min-width: 0; width: 100%; max-width: 100%; }
.table-screen .table-seat .seat-status { grid-column: 2; grid-row: 2; align-self: start; min-width: 0; width: 100%; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.table-screen .table-seat .seat-bank { grid-column: 2; grid-row: 3; align-self: start; min-width: 0; width: 100%; max-width: 100%; overflow: hidden; color: var(--table-brass); font-size: 6px; font-weight: 850; letter-spacing: .03em; line-height: 1.1; white-space: nowrap; text-overflow: ellipsis; }
.table-screen .table-seat:nth-child(3),
.table-screen .table-seat:nth-child(4) {
  grid-template-columns: minmax(0, 1fr) 46px;
  text-align: right;
}
.table-screen .table-seat:nth-child(3) .seat-avatar,
.table-screen .table-seat:nth-child(4) .seat-avatar { grid-column: 2; }
.table-screen .table-seat:nth-child(3) .seat-name,
.table-screen .table-seat:nth-child(3) .seat-status,
.table-screen .table-seat:nth-child(4) .seat-name,
.table-screen .table-seat:nth-child(4) .seat-status { grid-column: 1; }
.table-screen .table-seat:nth-child(3) .seat-bank,
.table-screen .table-seat:nth-child(4) .seat-bank { grid-column: 1; }
.table-screen .table-seat.is-empty .seat-name,
.table-screen .table-seat.is-empty .seat-status { display: none; }
.table-screen .tub-felt { inset: 42px 8% 32px; }
.table-screen .table-feed { display: none; }

@media (min-width: 700px) {
  .table-screen .table-seat { width: 108px; grid-template-columns: 52px minmax(0, 1fr); }
  .table-screen .table-seat:nth-child(3),
  .table-screen .table-seat:nth-child(4) { grid-template-columns: minmax(0, 1fr) 52px; }
}

.table-screen .number-cell {
  position: relative;
  display: block;
  height: 82px;
}
.table-screen .number-target {
  position: absolute;
  right: 0;
  left: 0;
  z-index: 1;
  min-height: 40px;
  height: 50%;
  padding: 4px 24px 4px 4px;
}
.table-screen .number-target.buy-zone { top: 0; align-content: start; }
.table-screen .number-target.place-zone { bottom: 0; align-content: end; }
.table-screen .number-center {
  position: absolute;
  top: 50%;
  right: 0;
  left: 0;
  z-index: 2;
  height: 36px;
  border-top: 0;
  border-bottom: 0;
  pointer-events: none;
  transform: translateY(-50%);
}
.table-screen .number-target .chip-stack {
  top: 50%;
  right: 3px;
  width: 20px;
  height: 20px;
  border-width: 2px;
  font-size: 5px;
  transform: translateY(-50%);
}

.table-screen .online-win {
  min-width: 178px;
  min-height: 66px;
  flex-direction: column;
  align-items: center;
  gap: 0;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(2, 25, 20, .92) 0 34%, rgba(255, 190, 55, .3) 55%, transparent 76%);
}
.table-screen .online-win span { font-size: 8px; }
.table-screen .online-win strong { font-size: clamp(27px, 7.5vw, 36px); }

@media (max-width: 430px) {
  .table-screen .chip { flex-basis: clamp(40px, 10.7vw, 44px); width: clamp(40px, 10.7vw, 44px); height: clamp(40px, 10.7vw, 44px); }
  .table-screen .context-action-slot { flex-basis: clamp(88px, 23vw, 92px); }
  .table-screen .utility-toggle { width: 44px; height: 44px; }
  .entry-screen input[type="text"] { min-height: 44px; }
  .entry-screen .photo-actions .subtle-button { min-height: 44px; }
  .table-screen .secondary-toggle { min-height: 36px; }
}

@media (max-width: 355px) {
  .table-screen .main-bet-row { grid-template-columns: 1.35fr 1fr 1fr 1fr; }
  .table-screen .main-bet-row .rail-control { grid-column: auto; width: auto; }
  .table-screen .number-cell { height: 69px; }
  .table-screen .number-target { min-height: 34px; }
  .table-screen .number-center { height: 31px; }
  .table-screen .number-target .chip-stack { width: 18px; height: 18px; font-size: 4px; }
  .table-screen .table-seat { width: 88px; grid-template-columns: 46px minmax(0, 1fr); column-gap: 2px; }
  .table-screen .table-seat:nth-child(1),
  .table-screen .table-seat:nth-child(6) { left: 17%; }
  .table-screen .table-seat:nth-child(3),
  .table-screen .table-seat:nth-child(4) { left: 83%; }
  .table-screen .table-seat:nth-child(3),
  .table-screen .table-seat:nth-child(4) { grid-template-columns: minmax(0, 1fr) 46px; }
  .table-screen .table-seat .seat-avatar { width: 32px; height: 32px; }
  .table-screen .table-seat.is-shooter .seat-avatar,
  .table-screen .table-seat.is-self .seat-avatar { width: 36px; height: 36px; }
  .table-screen { padding-bottom: 112px; }
  .table-screen .control-dock {
    position: fixed;
    right: 10px;
    bottom: max(0px, env(safe-area-inset-bottom));
    left: 10px;
    z-index: 50;
    margin: 0;
    padding: 4px 5px;
    border: 1px solid rgba(234, 194, 105, .42);
    border-radius: 12px 12px 0 0;
    background: rgba(1, 24, 20, .97);
    box-shadow: 0 -9px 24px rgba(0, 0, 0, .48);
  }
  .table-screen .chip-rail {
    min-height: 96px;
    height: 96px;
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-template-rows: 42px 50px;
    gap: 4px 2px;
    overflow: visible;
  }
  .table-screen .chip {
    grid-column: span 2;
    justify-self: center;
    width: 42px;
    height: 42px;
  }
  .table-screen .context-action-slot {
    grid-column: 1 / -1;
    width: 100%;
    height: 50px;
    margin: 0;
  }
  .table-screen .context-action { min-height: 48px; }
}

@media (min-width: 1000px) {
  .table-screen .craps-tub { height: 310px; }
}

/* Correctness surfaces: semantic AT RISK access, bounded native dialogs, and
   combined self/shooter cues.  These are closed-state overlays, so they do
   not consume any of the first-view phone budget. */
.table-screen .risk-hud-cell {
  appearance: none;
  width: 100%;
  border: 0;
  border-radius: 0;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.table-screen .risk-hud-cell:hover,
.table-screen .risk-hud-cell:focus-visible { background: rgba(14, 58, 45, .96); }
.table-screen .risk-hud-cell:focus-visible { outline: 2px solid var(--table-teal); outline-offset: -3px; }
.online-dialog {
  width: min(520px, calc(100vw - 28px));
  max-width: calc(100vw - 28px);
  max-height: min(78dvh, 620px);
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(234, 194, 105, .72);
  border-radius: 12px;
  color: var(--table-ink);
  background: linear-gradient(158deg, rgba(4, 72, 53, .99), rgba(2, 27, 24, .99));
  box-shadow: 0 22px 55px rgba(0, 0, 0, .64), inset 0 1px 0 rgba(255, 255, 255, .12);
}
.online-dialog::backdrop { background: rgba(0, 9, 8, .72); backdrop-filter: blur(4px); }
.online-dialog-shell { min-height: 0; display: grid; grid-template-rows: auto minmax(0, 1fr); max-height: inherit; }
.online-dialog-head { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 12px 9px 15px; border-bottom: 1px solid rgba(206, 225, 194, .2); }
.online-dialog-head .eyebrow { margin: 0 0 4px; }
.online-dialog-head h2 { margin: 0; color: var(--table-ink); font-size: 18px; letter-spacing: -.02em; }
.dialog-close { min-width: 64px; min-height: 44px; padding: 0 9px; border: 1px solid rgba(234, 194, 105, .5); border-radius: 6px; color: var(--table-brass); background: rgba(3, 50, 39, .86); font-size: 8px; font-weight: 900; letter-spacing: .12em; }
.dialog-close:focus-visible, .risk-work-toggle:focus-visible, .risk-remove:focus-visible { outline: 2px solid var(--table-teal); outline-offset: 2px; }
.online-dialog-body { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 14px 15px 18px; scrollbar-width: thin; }
.online-dialog-body p { margin: 0; color: var(--table-muted); font-size: 11px; line-height: 1.48; }
.online-dialog-body strong { color: var(--table-ink); }
.online-dialog-body .dialog-intro { margin-bottom: 13px; color: #c2dbcd; }
.online-dialog-body section + section { margin-top: 16px; }
.online-dialog-body h3 { margin: 0 0 6px; color: var(--table-brass); font-size: 9px; letter-spacing: .14em; }
.online-dialog-body section p + p { margin-top: 6px; }
.dialog-excluded { margin-top: 16px !important; padding-top: 11px; border-top: 1px solid rgba(206, 225, 194, .16); color: var(--table-dim) !important; font-size: 10px !important; }
.risk-list { display: grid; gap: 7px; }
.risk-empty { padding: 18px 8px; border: 1px dashed rgba(178, 221, 179, .28); border-radius: 7px; text-align: center; }
.risk-bet-row { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(132px, auto); align-items: center; gap: 9px; padding: 8px; border: 1px solid rgba(178, 221, 179, .28); border-radius: 7px; background: rgba(4, 54, 41, .72); }
.risk-bet-details { min-width: 0; display: grid; gap: 3px; }
.risk-bet-details strong { overflow: hidden; color: var(--table-ink); font-size: 11px; white-space: nowrap; text-overflow: ellipsis; }
.risk-bet-details small { color: var(--table-muted); font-size: 9px; }
.risk-bet-actions { min-width: 0; display: flex; align-items: center; justify-content: flex-end; gap: 5px; flex-wrap: wrap; }
.risk-work-toggle, .risk-remove { min-width: 44px; min-height: 44px; padding: 0 8px; border: 1px solid rgba(234, 194, 105, .52); border-radius: 5px; color: var(--table-brass); background: rgba(8, 77, 56, .9); font-size: 7px; font-weight: 900; letter-spacing: .05em; }
.risk-work-toggle.is-working { border-color: rgba(54, 214, 189, .72); color: #c5fff0; background: rgba(5, 112, 84, .9); }
.risk-remove { border-color: rgba(223, 110, 93, .58); color: #f2b5a0; background: rgba(79, 28, 28, .72); }
.risk-work-toggle:disabled, .risk-remove:disabled { opacity: .46; cursor: not-allowed; }
.risk-locked { min-height: 44px; display: inline-grid; place-items: center; padding: 0 5px; color: var(--table-dim); font-size: 7px; font-weight: 900; letter-spacing: .08em; }
.table-screen .table-seat.is-shooter.is-self .seat-avatar { border-color: var(--table-teal); box-shadow: 0 0 0 2px rgba(54, 214, 189, .92), 0 0 0 5px rgba(234, 194, 105, .88), 0 4px 11px rgba(0, 0, 0, .44); }
.table-screen .table-seat.is-shooter.is-self .seat-status { color: var(--table-brass); white-space: nowrap; letter-spacing: .03em; }
.table-screen .table-seat.is-shooter:not(.is-self) .seat-avatar { border-color: var(--table-brass); box-shadow: 0 0 0 3px rgba(234, 194, 105, .2), 0 4px 11px rgba(0, 0, 0, .44); }
.table-screen .table-seat.is-self:not(.is-shooter) .seat-avatar { border-color: var(--table-teal); box-shadow: 0 0 0 3px rgba(54, 214, 189, .22), 0 4px 11px rgba(0, 0, 0, .44); }
@media (max-width: 430px) {
  .online-dialog { width: calc(100vw - 28px); max-height: min(82dvh, 640px); }
  .online-dialog-body { padding-inline: 12px; }
  .risk-bet-row { grid-template-columns: minmax(0, 1fr); }
  .risk-bet-actions { justify-content: flex-start; }
}
@media (max-width: 355px) {
  .table-screen .table-seat.is-shooter.is-self .seat-status { font-size: 5px; letter-spacing: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .online-dialog, .online-dialog::backdrop { scroll-behavior: auto; }
}

/* Shared wager presence and casino-style dice.  The public layer is presence
   only: it never renders stake values or private bet identifiers. */
:root {
  --seat-1: #38d6bd;
  --seat-2: #e8bb64;
  --seat-3: #5d9ff0;
  --seat-4: #ec806f;
  --seat-5: #b487e7;
  --seat-6: #8fd7b3;
}
.public-wagers { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.public-wager-marker { position: absolute; left: var(--marker-x); top: var(--marker-y); width: 14px; height: 14px; display: grid; place-items: center; border: 1.5px solid color-mix(in srgb, var(--seat-accent) 80%, #fff 20%); border-radius: 50%; color: #06261f; background: radial-gradient(circle at 32% 25%, color-mix(in srgb, var(--seat-accent) 72%, #fff 28%), var(--seat-accent)); box-shadow: 0 2px 4px rgba(0,0,0,.42), inset 0 0 0 1px rgba(255,255,255,.28); font-size: 5.5px; font-weight: 950; line-height: 1; transform: translate(-50%, -50%); }
.public-wager-marker.number-marker { z-index: 2; }
.public-wager-marker.come-marker, .public-wager-marker.field-marker, .public-wager-marker.pass-marker { width: 16px; height: 16px; }
.public-wager-marker.side-marker { width: 13px; height: 13px; opacity: .9; }
.public-wager-marker.side-marker::after { position: absolute; bottom: calc(100% + 1px); left: 50%; color: rgba(248,226,164,.9); font-size: 4.5px; font-weight: 950; letter-spacing: .02em; line-height: 1; text-shadow: 0 1px 2px rgba(0,0,0,.9); content: attr(data-short-target); transform: translateX(-50%); }
.table-seat .seat-avatar { border-color: var(--seat-accent, rgba(173,205,187,.44)); }
.table-seat.is-shooter .seat-avatar { border-color: var(--table-brass); }
.table-seat.is-self .seat-avatar { border-color: var(--table-teal); }

.die { --die-size: clamp(44px, 11vw, 52px); width: var(--die-size); height: var(--die-size); position: relative; border: 0; border-radius: 12px; background: transparent; box-shadow: none; transform: none; perspective: 260px; transform-style: preserve-3d; }
.die:last-child { transform: none; }
.die::before, .die::after { display: none !important; }
.die-cube { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform 80ms linear; }
.die-face { position: absolute; inset: 0; display: block; overflow: hidden; border: 2px solid rgba(255,250,224,.9); border-radius: 11px; backface-visibility: hidden; background: linear-gradient(145deg,#fffef2 0%,#f1eed9 58%,#c7c9b7 100%); box-shadow: inset 0 -5px 7px rgba(92,77,52,.2), inset 1px 1px 0 rgba(255,255,255,.78), 0 7px 11px rgba(0,0,0,.33); }
.die-face::before { position: absolute; inset: 0; border-radius: inherit; content: ""; background: linear-gradient(135deg,rgba(255,255,255,.4),transparent 35%,rgba(85,72,49,.12)); }
.die-face::after { position: absolute; inset: 23%; content: ""; background: radial-gradient(circle at 50% 50%, #35524c 0 13%, transparent 15%); opacity: 0; }
.die-face[data-face="1"] { transform: translateZ(calc(var(--die-size) / 2)); }.die-face[data-face="2"] { transform: rotateY(90deg) translateZ(calc(var(--die-size) / 2)); }.die-face[data-face="3"] { transform: rotateX(-90deg) translateZ(calc(var(--die-size) / 2)); }.die-face[data-face="4"] { transform: rotateX(90deg) translateZ(calc(var(--die-size) / 2)); }.die-face[data-face="5"] { transform: rotateY(-90deg) translateZ(calc(var(--die-size) / 2)); }.die-face[data-face="6"] { transform: rotateY(180deg) translateZ(calc(var(--die-size) / 2)); }
.die-face[data-face="1"]::after { opacity: 1; background: radial-gradient(circle at 50% 50%,#35524c 0 13%,transparent 15%); }
.die-face[data-face="2"]::after { opacity: 1; background: radial-gradient(circle at 0 0,#35524c 0 13%,transparent 15%),radial-gradient(circle at 100% 100%,#35524c 0 13%,transparent 15%); }
.die-face[data-face="3"]::after { opacity: 1; background: radial-gradient(circle at 0 0,#35524c 0 13%,transparent 15%),radial-gradient(circle at 50% 50%,#35524c 0 13%,transparent 15%),radial-gradient(circle at 100% 100%,#35524c 0 13%,transparent 15%); }
.die-face[data-face="4"]::after { opacity: 1; background: radial-gradient(circle at 0 0,#35524c 0 13%,transparent 15%),radial-gradient(circle at 100% 0,#35524c 0 13%,transparent 15%),radial-gradient(circle at 0 100%,#35524c 0 13%,transparent 15%),radial-gradient(circle at 100% 100%,#35524c 0 13%,transparent 15%); }
.die-face[data-face="5"]::after { opacity: 1; background: radial-gradient(circle at 0 0,#35524c 0 13%,transparent 15%),radial-gradient(circle at 100% 0,#35524c 0 13%,transparent 15%),radial-gradient(circle at 50% 50%,#35524c 0 13%,transparent 15%),radial-gradient(circle at 0 100%,#35524c 0 13%,transparent 15%),radial-gradient(circle at 100% 100%,#35524c 0 13%,transparent 15%); }
.die-face[data-face="6"]::after { opacity: 1; background: radial-gradient(circle at 0 0,#35524c 0 13%,transparent 15%),radial-gradient(circle at 100% 0,#35524c 0 13%,transparent 15%),radial-gradient(circle at 0 50%,#35524c 0 13%,transparent 15%),radial-gradient(circle at 100% 50%,#35524c 0 13%,transparent 15%),radial-gradient(circle at 0 100%,#35524c 0 13%,transparent 15%),radial-gradient(circle at 100% 100%,#35524c 0 13%,transparent 15%); }
.die-cube[data-show="0"] { opacity: 0; }
.die-cube[data-show="1"] { transform: rotateX(0) rotateY(0); }.die-cube[data-show="2"] { transform: rotateY(-90deg); }.die-cube[data-show="3"] { transform: rotateX(90deg); }.die-cube[data-show="4"] { transform: rotateX(-90deg); }.die-cube[data-show="5"] { transform: rotateY(90deg); }.die-cube[data-show="6"] { transform: rotateY(180deg); }
.dice-pair.is-rolling .die-cube { animation: cube-chaos 1.04s cubic-bezier(.18,.76,.28,1); }
.dice-pair.is-rolling .die {
  overflow: hidden;
  border: 2px solid rgba(255,250,224,.92);
  border-radius: 11px;
  background: linear-gradient(145deg,#fffef2 0%,#efeccf 62%,#bbbda9 100%);
  box-shadow: 0 8px 13px rgba(0,0,0,.42), inset 0 -4px 7px rgba(92,77,52,.18);
}
.dice-pair.is-rolling .die-face {
  border: 0;
  border-radius: 7px;
  box-shadow: inset 0 -4px 6px rgba(92,77,52,.16);
}
@keyframes cube-chaos { 0% { transform: rotateX(0) rotateY(0) rotateZ(0); } 23% { transform: rotateX(220deg) rotateY(-145deg) rotateZ(70deg); } 57% { transform: rotateX(430deg) rotateY(240deg) rotateZ(-150deg); } 82% { transform: rotateX(570deg) rotateY(340deg) rotateZ(125deg); } 100% { transform: rotateX(620deg) rotateY(360deg) rotateZ(180deg); } }
.toss-0 .die:first-child { --sx: -62px; --sy: -18px; --mx: -30px; --my: 10px; --sr: -90deg; --mr: 230deg; }.toss-0 .die:last-child { --sx: 58px; --sy: -14px; --mx: 26px; --my: 4px; --sr: 100deg; --mr: -240deg; }
.toss-1 .die:first-child { --sx: -42px; --sy: 24px; --mx: 32px; --my: -24px; --sr: -180deg; --mr: 310deg; }.toss-1 .die:last-child { --sx: 48px; --sy: 19px; --mx: -30px; --my: -18px; --sr: 175deg; --mr: -300deg; }
.toss-2 .die:first-child { --sx: -70px; --sy: 2px; --mx: -14px; --my: -26px; --sr: -260deg; --mr: 180deg; }.toss-2 .die:last-child { --sx: 66px; --sy: 7px; --mx: 12px; --my: -23px; --sr: 250deg; --mr: -190deg; }
.toss-3 .die:first-child { --sx: -24px; --sy: -34px; --mx: -36px; --my: 7px; --sr: -140deg; --mr: 270deg; }.toss-3 .die:last-child { --sx: 22px; --sy: -31px; --mx: 38px; --my: 5px; --sr: 150deg; --mr: -265deg; }
.toss-4 .die:first-child { --sx: 57px; --sy: -22px; --mx: 30px; --my: 21px; --sr: 205deg; --mr: -285deg; }.toss-4 .die:last-child { --sx: -52px; --sy: -19px; --mx: -27px; --my: 18px; --sr: -210deg; --mr: 275deg; }
.toss-5 .die:first-child { --sx: -18px; --sy: 30px; --mx: 42px; --my: 5px; --sr: -320deg; --mr: 410deg; }.toss-5 .die:last-child { --sx: 16px; --sy: 28px; --mx: -40px; --my: 7px; --sr: 315deg; --mr: -400deg; }
.dice-pair.is-rolling .die { animation: shared-toss 1.04s cubic-bezier(.18,.76,.28,1); transform-origin: 50% 70%; }
.dice-pair.is-rolling .roll-orb { opacity: 0; animation: none; transform: scale(.72); }
@keyframes shared-toss { 0% { transform: translate3d(var(--sx),var(--sy),0) rotate(var(--sr)) scale(.72); } 35% { transform: translate3d(var(--mx),calc(var(--my) - 15px),18px) rotate(calc(var(--sr) * -.35)) scale(1.12); } 60% { transform: translate3d(calc(var(--mx) * .38),calc(var(--my) * .28),0) rotate(var(--mr)) scale(.93); } 82% { transform: translate3d(calc(var(--mx) * .12),calc(var(--my) * .1),0) rotate(calc(var(--mr) * .25)) scale(1.03); } 100% { transform: translate3d(0,0,0) rotate(0) scale(1); } }

.readiness-tile small { white-space: normal; line-height: 1.2; text-overflow: clip; }
.entry-actions button:disabled { border-color: rgba(145,176,157,.24); }

@media (min-width: 700px) and (max-width: 999px) {
  .public-wager-marker { width: 16px; height: 16px; font-size: 6px; }
  .public-wager-marker.come-marker, .public-wager-marker.field-marker, .public-wager-marker.pass-marker { width: 18px; height: 18px; }
  .table-screen { max-width: 900px; }
  .table-screen .craps-tub { height: 285px; }
  .table-screen .felt-workspace { min-height: 350px; }
  .table-screen .number-cell { height: 103px; min-height: 103px; }
  .table-screen .number-target { min-height: 49px; }
  .table-screen .number-center { height: 43px; font-size: 28px; }
}
@media (min-width: 1000px) {
  .public-wager-marker { width: 16px; height: 16px; font-size: 6px; }
  .public-wager-marker.come-marker, .public-wager-marker.field-marker, .public-wager-marker.pass-marker { width: 18px; height: 18px; }
  .table-screen {
    max-width: 1120px;
    min-height: 0;
    grid-template-rows: auto auto auto auto auto auto;
    align-content: start;
  }
  .table-screen .live-header { grid-row: 1; }
  .table-screen .hud-strip { grid-row: 2; }
  .table-screen .result-strip { grid-row: 3; }
  .table-screen .craps-tub,
  .table-screen .felt-workspace { grid-row: 4; }
  .table-screen .control-dock { grid-row: 5; }
  .table-screen .chat-dock { grid-row: 6; }
  .table-screen .craps-tub { height: 360px; }
  .table-screen .felt-workspace { min-height: 360px; }
  .table-screen .number-cell { height: 106px; min-height: 106px; }
  .table-screen .number-target { min-height: 51px; }
  .table-screen .number-center { height: 45px; font-size: 30px; }
}
@media (min-width: 1200px) {
  .table-screen {
    --desktop-main-height: clamp(445px, 63dvh, 590px);
    max-width: 1360px;
    grid-template-columns: minmax(0, 1.2fr) minmax(390px, .8fr);
  }
  .table-screen .craps-tub { height: var(--desktop-main-height); }
  .table-screen .felt-workspace { min-height: var(--desktop-main-height); }
  .table-screen .number-cell {
    height: calc((var(--desktop-main-height) - 120px) / 2);
    min-height: calc((var(--desktop-main-height) - 120px) / 2);
  }
}
@media (prefers-reduced-motion: reduce) {
  .dice-pair.is-rolling .die, .dice-pair.is-rolling .die-cube { animation: none !important; }
}

/* Interaction and table-readability correction pass. */
.felt-header {
  min-height: 44px;
  gap: 6px;
  padding-bottom: 7px;
}
.felt-title {
  min-width: 64px;
  display: grid;
  align-content: center;
  gap: 2px;
}
.felt-title h2 { line-height: 1; white-space: nowrap; }
.felt-title .felt-state { font-size: 6px; letter-spacing: .08em; }
.felt-header-actions { gap: 4px; }
.bet-edit-action,
.felt-header .secondary-toggle {
  min-height: 44px;
  border-radius: 6px;
  font-size: 7px;
  font-weight: 900;
  letter-spacing: .08em;
}
.bet-edit-action {
  min-width: 44px;
  padding: 0 6px;
  border: 1px solid rgba(157, 207, 181, .36);
  color: var(--table-ink);
  background: rgba(2, 47, 38, .78);
}
.bet-edit-action:not(:disabled):hover,
.bet-edit-action:not(:disabled):focus-visible { border-color: var(--table-teal); background: rgba(7, 91, 67, .9); }
.felt-header .secondary-toggle { min-width: 70px; padding-inline: 7px; }

/* Keep target backgrounds behind the number band while their wager chips
   remain in the shared stacking context above both layers. */
.table-screen .number-target { z-index: auto; }
.table-screen .number-target .chip-stack {
  z-index: 5;
  pointer-events: auto;
  touch-action: none;
  cursor: grab;
}
.table-screen .number-target .chip-stack:active { cursor: grabbing; }
.table-screen .chip-stack[data-bet-id] { touch-action: none; }
.chip-stack.is-drag-source { opacity: .25; }
.chip-drag-ghost {
  position: fixed !important;
  right: auto !important;
  z-index: 1000 !important;
  width: 34px !important;
  height: 34px !important;
  pointer-events: none !important;
  opacity: .94;
  transform: translate(-50%, -50%) scale(.9) !important;
  filter: drop-shadow(0 8px 8px rgba(0, 0, 0, .48));
  transition: transform 90ms ease;
}
.chip-drag-ghost.is-moving { transform: translate(-50%, -50%) scale(1.08) !important; }
body.is-dragging-wager .chip-rail {
  border-radius: 10px;
  background: rgba(24, 124, 88, .16);
  box-shadow: inset 0 0 0 1px rgba(54, 214, 189, .54), 0 0 18px rgba(54, 214, 189, .12);
}

/* Three evenly distributed seats on each rail. */
.table-screen .table-seat {
  width: 112px;
  grid-template-columns: 44px minmax(0, 1fr);
  grid-template-rows: minmax(0, auto) auto auto;
  column-gap: 4px;
}
.table-screen .table-seat:nth-child(1),
.table-screen .table-seat:nth-child(6) { left: 15%; }
.table-screen .table-seat:nth-child(2),
.table-screen .table-seat:nth-child(5) { left: 50%; }
.table-screen .table-seat:nth-child(3),
.table-screen .table-seat:nth-child(4) { left: 85%; }
.table-screen .table-seat:nth-child(-n+3) { top: 12%; }
.table-screen .table-seat:nth-child(n+4) { top: 88%; }
.table-screen .table-seat .seat-avatar {
  grid-row: 1 / 4;
  width: 38px;
  height: 38px;
}
.table-screen .table-seat.is-shooter .seat-avatar,
.table-screen .table-seat.is-self .seat-avatar { width: 42px; height: 42px; }
.table-screen .table-seat .seat-name {
  min-height: 9px;
  display: -webkit-box;
  overflow: hidden;
  color: var(--table-ink);
  font-size: 8px;
  font-weight: 850;
  line-height: 1.04;
  white-space: normal;
  overflow-wrap: anywhere;
  text-overflow: clip;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.table-screen .table-seat .seat-status {
  overflow: visible;
  color: var(--table-muted);
  font-size: 6.5px;
  letter-spacing: .025em;
  line-height: 1.08;
  white-space: nowrap;
  text-overflow: clip;
}
.table-screen .table-seat .seat-bank {
  overflow: visible;
  color: var(--table-brass);
  font-size: 7px;
  line-height: 1.08;
  white-space: nowrap;
  text-overflow: clip;
}
.table-screen .table-seat:nth-child(3),
.table-screen .table-seat:nth-child(4) { grid-template-columns: minmax(0, 1fr) 44px; }
.table-screen .table-seat:nth-child(3) .seat-avatar,
.table-screen .table-seat:nth-child(4) .seat-avatar { grid-row: 1 / 4; }
.table-screen .table-seat:nth-child(3) .seat-name,
.table-screen .table-seat:nth-child(3) .seat-status,
.table-screen .table-seat:nth-child(3) .seat-bank,
.table-screen .table-seat:nth-child(4) .seat-name,
.table-screen .table-seat:nth-child(4) .seat-status,
.table-screen .table-seat:nth-child(4) .seat-bank {
  width: 48px;
  max-width: 48px;
  justify-self: end;
}
.table-screen .table-seat:nth-child(3) .seat-status,
.table-screen .table-seat:nth-child(4) .seat-status {
  font-size: 5px;
  letter-spacing: 0;
  white-space: nowrap;
  overflow-wrap: normal;
}
.table-screen .table-seat:nth-child(2),
.table-screen .table-seat:nth-child(5) {
  grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr);
}
.table-screen .table-seat:nth-child(2) .seat-avatar,
.table-screen .table-seat:nth-child(5) .seat-avatar {
  grid-column: 2;
  justify-self: center;
}
.table-screen .table-seat:nth-child(2) .seat-name,
.table-screen .table-seat:nth-child(2) .seat-status,
.table-screen .table-seat:nth-child(2) .seat-bank,
.table-screen .table-seat:nth-child(5) .seat-name,
.table-screen .table-seat:nth-child(5) .seat-status,
.table-screen .table-seat:nth-child(5) .seat-bank {
  grid-column: 3;
  width: 48px;
  max-width: 48px;
  justify-self: start;
}
.table-screen .table-seat:nth-child(2) .seat-status,
.table-screen .table-seat:nth-child(5) .seat-status {
  white-space: normal;
  overflow-wrap: anywhere;
}

/* Inset circular pips replace edge-clipped gradients that rendered as bars. */
.die-face::after { inset: 0; }
.die-face[data-face="1"]::after {
  background: radial-gradient(circle at 50% 50%, #29463f 0 8.5%, transparent 9.5%);
}
.die-face[data-face="2"]::after {
  background: radial-gradient(circle at 28% 28%, #29463f 0 8.5%, transparent 9.5%), radial-gradient(circle at 72% 72%, #29463f 0 8.5%, transparent 9.5%);
}
.die-face[data-face="3"]::after {
  background: radial-gradient(circle at 27% 27%, #29463f 0 8.5%, transparent 9.5%), radial-gradient(circle at 50% 50%, #29463f 0 8.5%, transparent 9.5%), radial-gradient(circle at 73% 73%, #29463f 0 8.5%, transparent 9.5%);
}
.die-face[data-face="4"]::after {
  background: radial-gradient(circle at 28% 28%, #29463f 0 8.5%, transparent 9.5%), radial-gradient(circle at 72% 28%, #29463f 0 8.5%, transparent 9.5%), radial-gradient(circle at 28% 72%, #29463f 0 8.5%, transparent 9.5%), radial-gradient(circle at 72% 72%, #29463f 0 8.5%, transparent 9.5%);
}
.die-face[data-face="5"]::after {
  background: radial-gradient(circle at 27% 27%, #29463f 0 8.5%, transparent 9.5%), radial-gradient(circle at 73% 27%, #29463f 0 8.5%, transparent 9.5%), radial-gradient(circle at 50% 50%, #29463f 0 8.5%, transparent 9.5%), radial-gradient(circle at 27% 73%, #29463f 0 8.5%, transparent 9.5%), radial-gradient(circle at 73% 73%, #29463f 0 8.5%, transparent 9.5%);
}
.die-face[data-face="6"]::after {
  background: radial-gradient(circle at 29% 25%, #29463f 0 8.5%, transparent 9.5%), radial-gradient(circle at 71% 25%, #29463f 0 8.5%, transparent 9.5%), radial-gradient(circle at 29% 50%, #29463f 0 8.5%, transparent 9.5%), radial-gradient(circle at 71% 50%, #29463f 0 8.5%, transparent 9.5%), radial-gradient(circle at 29% 75%, #29463f 0 8.5%, transparent 9.5%), radial-gradient(circle at 71% 75%, #29463f 0 8.5%, transparent 9.5%);
}

@media (max-width: 355px) {
  .felt-header { gap: 3px; }
  .felt-header h2 { font-size: 12px; letter-spacing: .08em; }
  .bet-edit-action { min-width: 44px; padding-inline: 4px; }
  .felt-header .secondary-toggle { min-width: 63px; padding-inline: 4px; font-size: 6.5px; }
  .table-screen .table-seat { width: 92px; grid-template-columns: 38px minmax(0, 1fr); }
  .table-screen .table-seat:nth-child(3),
  .table-screen .table-seat:nth-child(4) { grid-template-columns: minmax(0, 1fr) 38px; }
  .table-screen .table-seat:nth-child(2),
  .table-screen .table-seat:nth-child(5) { grid-template-columns: minmax(0, 1fr) 38px minmax(0, 1fr); }
  .table-screen .table-seat:nth-child(3) .seat-name,
  .table-screen .table-seat:nth-child(3) .seat-status,
  .table-screen .table-seat:nth-child(3) .seat-bank,
  .table-screen .table-seat:nth-child(4) .seat-name,
  .table-screen .table-seat:nth-child(4) .seat-status,
  .table-screen .table-seat:nth-child(4) .seat-bank { width: 42px; max-width: 42px; }
  .table-screen .table-seat:nth-child(2) .seat-name,
  .table-screen .table-seat:nth-child(2) .seat-status,
  .table-screen .table-seat:nth-child(2) .seat-bank,
  .table-screen .table-seat:nth-child(5) .seat-name,
  .table-screen .table-seat:nth-child(5) .seat-status,
  .table-screen .table-seat:nth-child(5) .seat-bank { width: 34px; max-width: 34px; }
  .table-screen .table-seat .seat-avatar { width: 34px; height: 34px; }
  .table-screen .table-seat.is-shooter .seat-avatar,
  .table-screen .table-seat.is-self .seat-avatar { width: 38px; height: 38px; }
  .table-screen .table-seat .seat-name { font-size: 7px; }
  .table-screen .table-seat .seat-status { font-size: 5.75px; }
  .table-screen .table-seat .seat-bank { font-size: 6px; }
}

/* Cohesive room-state cues: the host marker lives on the portrait so it never
   consumes another row, while reconnecting remains readable without color. */
.table-screen .table-seat .seat-avatar { overflow: visible; }
.table-screen .table-seat .seat-avatar img { border-radius: inherit; }
.seat-host-badge {
  position: absolute;
  bottom: -5px;
  left: 50%;
  z-index: 3;
  min-width: 25px;
  padding: 2px 4px;
  border: 1px solid rgba(255, 235, 172, .72);
  border-radius: 999px;
  color: #19211d;
  background: linear-gradient(180deg, #ffe6a5, #ca9840);
  box-shadow: 0 2px 5px rgba(0, 0, 0, .45);
  font-size: 5px;
  font-style: normal;
  font-weight: 950;
  letter-spacing: .08em;
  line-height: 1;
  transform: translateX(-50%);
}
.table-screen .table-seat.is-reconnecting .seat-avatar {
  opacity: .66;
  border-style: dashed;
  animation: reconnect-seat-pulse 1.45s ease-in-out infinite;
}
.table-screen .table-seat.is-reconnecting .seat-status {
  overflow: hidden;
  color: #ffc86e;
  font-weight: 900;
  line-height: 1.04;
  white-space: normal;
  text-overflow: ellipsis;
}
@keyframes reconnect-seat-pulse {
  50% { opacity: .88; filter: drop-shadow(0 0 5px rgba(255, 190, 92, .46)); }
}

.chat-message.is-system {
  padding: 4px 6px;
  border-left: 2px solid rgba(234, 194, 105, .7);
  background: linear-gradient(90deg, rgba(234, 194, 105, .1), transparent);
}
.chat-message.is-system strong { color: var(--table-brass); }
.chat-message.is-system p { color: #d8e6dc; }

.confirm-dialog { width: min(390px, calc(100vw - 28px)); }
.confirm-dialog-shell { grid-template-rows: auto auto; }
.confirm-dialog-head { min-height: 62px; }
.confirm-dialog-body { display: grid; gap: 16px; overflow: visible; padding: 15px; }
.confirm-dialog-body > p { color: #c8d9ce; font-size: 12px; line-height: 1.48; }
.confirm-dialog-actions { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.confirm-dialog-actions button {
  min-width: 0;
  min-height: 46px;
  border: 1px solid rgba(206, 225, 194, .28);
  border-radius: 7px;
  color: var(--table-ink);
  background: rgba(5, 73, 55, .92);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .08em;
}
.confirm-dialog-actions button:focus-visible { outline: 2px solid var(--table-teal); outline-offset: 2px; }
.confirm-dialog.is-danger .confirm-accept {
  border-color: rgba(237, 129, 103, .72);
  color: #fff2eb;
  background: linear-gradient(180deg, #9a3f35, #692720);
}
.confirm-dialog .confirm-cancel { border-color: rgba(54, 214, 189, .48); color: #d8fff3; }

@media (max-width: 355px) {
  .seat-host-badge { min-width: 23px; font-size: 4.5px; }
  .confirm-dialog-actions { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .table-screen .table-seat.is-reconnecting .seat-avatar { animation: none; }
}

/* Keep each occupied seat's identity on one compact three-line rhythm.  The
   copy wrapper prevents the spanning avatar from stretching the name, state,
   and bank into separate grid tracks. */
.table-screen .table-seat {
  grid-template-rows: 44px;
  align-items: center;
}
.table-screen .table-seat .seat-avatar {
  grid-column: 1;
  grid-row: 1;
  align-self: center;
  justify-self: center;
}
.table-screen .table-seat .seat-copy {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  display: grid;
  grid-template-rows: repeat(3, auto);
  align-content: center;
  justify-items: stretch;
  gap: 1px;
  text-align: left;
}
.table-screen .table-seat .seat-copy > .seat-name,
.table-screen .table-seat .seat-copy > .seat-status,
.table-screen .table-seat .seat-copy > .seat-bank {
  grid-column: auto;
  grid-row: auto;
  align-self: center;
  justify-self: stretch;
  width: 100%;
  max-width: 100%;
  min-height: 0;
  display: block;
  overflow: hidden;
  line-height: 1.08;
  white-space: nowrap;
  overflow-wrap: normal;
  text-overflow: ellipsis;
}
.table-screen .table-seat .seat-copy > .seat-name { font-size: 8px; }
.table-screen .table-seat .seat-copy > .seat-status { font-size: 6px; letter-spacing: .02em; }
.table-screen .table-seat .seat-copy > .seat-bank { font-size: 7px; }
.table-screen .table-seat:nth-child(3) .seat-avatar,
.table-screen .table-seat:nth-child(4) .seat-avatar { grid-column: 2; }
.table-screen .table-seat:nth-child(3) .seat-copy,
.table-screen .table-seat:nth-child(4) .seat-copy {
  grid-column: 1;
  justify-self: stretch;
  text-align: right;
}
.table-screen .table-seat:nth-child(2) .seat-avatar,
.table-screen .table-seat:nth-child(5) .seat-avatar { grid-column: 2; }
.table-screen .table-seat:nth-child(2) .seat-copy,
.table-screen .table-seat:nth-child(5) .seat-copy {
  grid-column: 3;
  justify-self: stretch;
  text-align: left;
}
.table-screen .table-seat:nth-child(2) .seat-copy > .seat-name,
.table-screen .table-seat:nth-child(5) .seat-copy > .seat-name,
.table-screen .table-seat:nth-child(2) .seat-copy > .seat-status,
.table-screen .table-seat:nth-child(5) .seat-copy > .seat-status {
  display: -webkit-box;
  white-space: normal;
  overflow-wrap: anywhere;
  text-overflow: clip;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.table-screen .table-seat:nth-child(2) .seat-copy > .seat-name,
.table-screen .table-seat:nth-child(5) .seat-copy > .seat-name { font-size: 6px; }
.table-screen .table-seat:nth-child(2) .seat-copy > .seat-bank,
.table-screen .table-seat:nth-child(5) .seat-copy > .seat-bank { font-size: 5.75px; }
.table-screen .table-seat.is-empty .seat-copy { display: none; }

/* Seat copy follows the tub geometry instead of sharing one blanket offset.
   Upper identities live wholly in the back rail; lower identities live wholly
   in the front rail.  The middle seats receive the extra clearance needed by
   their bounded two-line copy while their portraits stay geometrically fixed. */
.table-screen .table-seat:nth-child(1) .seat-copy,
.table-screen .table-seat:nth-child(3) .seat-copy { transform: translateY(-5px); }
.table-screen .table-seat:nth-child(2) .seat-copy { transform: translateY(-7px); }
.table-screen .table-seat:nth-child(4) .seat-copy { transform: translateY(14px); }
.table-screen .table-seat:nth-child(5) .seat-copy { transform: translateY(14px); }
.table-screen .table-seat:nth-child(6) .seat-copy { transform: translateY(13px); }

@media (min-width: 700px) and (max-width: 999px) {
  .table-screen .table-seat:nth-child(1) .seat-copy,
  .table-screen .table-seat:nth-child(3) .seat-copy { transform: translateY(-15px); }
  .table-screen .table-seat:nth-child(2) .seat-copy { transform: translateY(-16px); }
  .table-screen .table-seat:nth-child(4) .seat-copy { transform: translateY(23px); }
  .table-screen .table-seat:nth-child(5) .seat-copy { transform: translateY(23px); }
  .table-screen .table-seat:nth-child(6) .seat-copy { transform: translateY(22px); }
}

@media (min-width: 1000px) {
  .table-screen .table-seat:nth-child(1) .seat-copy { transform: translateY(-51px); }
  .table-screen .table-seat:nth-child(3) .seat-copy { transform: translateY(-50px); }
  .table-screen .table-seat:nth-child(2) .seat-copy { transform: translateY(-53px); }
  .table-screen .table-seat:nth-child(4) .seat-copy { transform: translateY(59px); }
  .table-screen .table-seat:nth-child(5) .seat-copy { transform: translateY(60px); }
  .table-screen .table-seat:nth-child(6) .seat-copy { transform: translateY(58px); }
}

@media (max-width: 355px) {
  .table-screen .table-seat { grid-template-rows: 40px; }
  .table-screen .table-seat .seat-copy > .seat-name { font-size: 7px; }
  .table-screen .table-seat:nth-child(2) .seat-copy > .seat-name,
  .table-screen .table-seat:nth-child(5) .seat-copy > .seat-name { font-size: 5.5px; }
  .table-screen .table-seat:nth-child(2) .seat-copy > .seat-bank,
  .table-screen .table-seat:nth-child(5) .seat-copy > .seat-bank { font-size: 5px; }
  .table-screen .table-seat .seat-copy > .seat-status { font-size: 5.25px; letter-spacing: 0; }
  .table-screen .table-seat .seat-copy > .seat-bank { font-size: 6px; }
}
