:root {
  --bg: #07110c;
  --felt-1: #13744a;
  --felt-2: #0b4a2e;
  --felt-3: #06301d;
  --chalk: rgba(255, 255, 255, 0.88);
  --chalk-dim: rgba(255, 255, 255, 0.55);
  --gold: #f2cf6b;
  --gold-2: #b8892c;
  --gold-3: #7a5717;
  --red: #e04a3c;
  --green: #4fe08a;
  --panel: linear-gradient(180deg, #17201b, #0d1410);
  --display: 'Cinzel', Georgia, serif;
  --ui: 'Oswald', 'Arial Narrow', sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; }
body {
  background: radial-gradient(ellipse at 50% 20%, #17291f 0%, #07110c 60%, #030806 100%);
  color: #fff;
  font-family: var(--ui);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
button { font-family: inherit; }

/* ---------- stage (fixed design size, scaled to fit) ---------- */
#stage {
  position: absolute;
  width: 1600px; height: 900px;
  transform-origin: 0 0;
  display: grid;
  grid-template-rows: 84px 1fr 112px;
}

/* ---------- top bar ---------- */
.topbar {
  display: grid;
  grid-template-columns: 420px 1fr 520px;
  align-items: center;
  padding: 0 22px;
  background: linear-gradient(180deg, #1c1510 0%, #0d0a07 100%);
  border-bottom: 2px solid var(--gold-3);
  box-shadow: 0 2px 0 #000, 0 8px 30px rgba(0,0,0,.6);
  position: relative;
  z-index: 2;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand-mark {
  width: 50px; height: 50px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.7), rgba(255,255,255,.05) 45%), radial-gradient(circle, #1a6a45, #062a19);
  border: 2px solid var(--gold);
  box-shadow: 0 0 18px rgba(242,207,107,.35), inset 0 0 12px rgba(0,0,0,.6);
  position: relative;
}
.brand-mark span {
  position: absolute; width: 16px; height: 16px; border-radius: 4px;
  background: linear-gradient(135deg, #fff, #ddd); box-shadow: 0 2px 3px rgba(0,0,0,.5);
}
.brand-mark span:first-child { left: 9px; top: 18px; transform: rotate(-15deg); }
.brand-mark span:last-child { right: 9px; top: 13px; transform: rotate(20deg); background: linear-gradient(135deg, #e44, #a11); }
.brand-mark.big { width: 84px; height: 84px; margin: 0 auto 8px; }
.brand-mark.big span { width: 26px; height: 26px; border-radius: 6px; }
.brand-mark.big span:first-child { left: 14px; top: 30px; }
.brand-mark.big span:last-child { right: 14px; top: 22px; }
.brand-name {
  font-family: var(--display); font-weight: 900; font-size: 28px; letter-spacing: 3px;
  background: linear-gradient(180deg, #fff3c4 0%, var(--gold) 45%, var(--gold-2) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 0 rgba(0,0,0,.8));
}
.brand-sub { font-size: 11px; letter-spacing: 2px; color: #a8957a; }

.status { display: flex; align-items: center; justify-content: center; gap: 16px; }
.ring { width: 64px; height: 64px; position: relative; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-bg { fill: rgba(0,0,0,.5); stroke: #2a231a; stroke-width: 5; }
.ring-fg { fill: none; stroke: var(--green); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 176; stroke-dashoffset: 0; filter: drop-shadow(0 0 4px currentColor); transition: stroke .3s; }
.ring-num { position: absolute; inset: 0; display: grid; place-items: center; font-size: 26px; font-weight: 700; }
.status-main { font-family: var(--display); font-size: 26px; font-weight: 800; letter-spacing: 2px; text-shadow: 0 2px 6px #000; }
.status-sub { font-size: 14px; letter-spacing: 1.5px; color: #c9b893; }
.status.urgent .ring-fg { stroke: var(--red); }
.status.urgent .ring-num { color: #ff8a7a; animation: pulse .5s infinite alternate; }
.status.closed .ring-fg { stroke: var(--gold); }
@keyframes pulse { to { transform: scale(1.15); } }

.meters { display: flex; justify-content: flex-end; align-items: center; gap: 10px; }
.meter {
  min-width: 128px; padding: 6px 14px; border-radius: 8px;
  background: linear-gradient(180deg, #000, #15110c);
  border: 1px solid #3a2f20; box-shadow: inset 0 2px 8px rgba(0,0,0,.8);
  text-align: right;
}
.meter label { display: block; font-size: 10px; letter-spacing: 2px; color: #8f7f64; }
.meter-val { font-size: 24px; font-weight: 600; font-variant-numeric: tabular-nums; }
.meter-val.gold { color: var(--gold); text-shadow: 0 0 12px rgba(242,207,107,.4); }
.meter-val.pos { color: var(--green); }
.meter-val.neg { color: #ff7b6b; }
.icon-stack { display: flex; flex-direction: column; gap: 4px; }
.icon-btn.off { opacity: .35; filter: grayscale(1); }
.icon-btn { width: 34px; height: 34px; font-size: 15px !important; display: grid; place-items: center; padding: 0; border-radius: 50%; border: 1px solid #3a2f20; background: #120e0a; color: #fff; font-size: 18px; cursor: pointer; }

/* ---------- main area ---------- */
main { display: grid; grid-template-columns: 132px 1fr 350px; gap: 14px; padding: 14px 16px 10px; min-height: 0; }

.table-wrap { min-width: 0; display: flex; }
.rail {
  flex: 1;
  padding: 16px;
  border-radius: 34px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.12), transparent 30%),
    linear-gradient(135deg, #3b2416, #1d100a 50%, #2e1b10);
  box-shadow: 0 0 0 2px var(--gold-3), 0 0 0 4px #000, 0 20px 50px rgba(0,0,0,.8), inset 0 2px 2px rgba(255,255,255,.15), inset 0 -4px 10px rgba(0,0,0,.6);
  display: flex;
}
.felt {
  flex: 1;
  border-radius: 22px;
  padding: 14px;
  background:
    radial-gradient(ellipse at 45% 35%, rgba(255,255,255,.08), transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4'%3E%3Crect width='4' height='4' fill='%23000' fill-opacity='0'/%3E%3Crect width='1' height='1' fill='%23fff' fill-opacity='.025'/%3E%3C/svg%3E"),
    radial-gradient(ellipse at 50% 40%, var(--felt-1), var(--felt-2) 60%, var(--felt-3));
  box-shadow: inset 0 0 0 2px rgba(0,0,0,.4), inset 0 0 60px rgba(0,0,0,.55);
  display: grid;
  grid-template-columns: 86px repeat(6, 1fr) 262px;
  grid-template-rows: 200px 116px 112px 64px 78px;
  grid-template-areas:
    "dc   p4   p5   p6   p8   p9   p10  props"
    "ats  come come come come come come props"
    "ats  big  field field field field field props"
    "ats  dp   dp   dp   dp   dp   dpo  props"
    "ats  pass pass pass pass pass po   props";
  gap: 7px;
  position: relative;
}

/* ---------- generic bet zone ---------- */
.z {
  position: relative;
  border: 2px solid var(--chalk);
  border-radius: 10px;
  cursor: pointer;
  transition: background .15s, box-shadow .15s, opacity .2s;
  color: var(--chalk);
  text-align: center;
}
.z:hover { background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 22px rgba(242,207,107,.25), 0 0 0 1px var(--gold); }
.z.locked { cursor: not-allowed; }
.z.locked:not(.has-bet) > :not(.spot):not(.float) { opacity: .5; }
.z.locked:hover { background: rgba(0,0,0,.08); box-shadow: none; }
.z.flash-win { animation: flashWin 1.6s ease-out; }
.z.flash-lose { animation: flashLose 1.2s ease-out; }
.z.hit { box-shadow: inset 0 0 30px rgba(242,207,107,.6), 0 0 18px rgba(242,207,107,.6); }
@keyframes flashWin { 0%, 40% { background: rgba(242,207,107,.45); box-shadow: 0 0 30px var(--gold), inset 0 0 30px var(--gold); } 100% { background: transparent; } }
@keyframes flashLose { 0% { background: rgba(224,74,60,.35); } 100% { background: transparent; } }

.lbl { font-family: var(--display); font-weight: 800; letter-spacing: 1px; }
.odds-lbl { font-size: 11px; color: var(--gold); letter-spacing: 1px; font-family: var(--ui); }

.spot { position: absolute; pointer-events: none; display: flex; gap: 2px; align-items: flex-end; z-index: 3; }
.spot.center { left: 50%; top: 50%; transform: translate(-50%, -50%); }

/* ---------- chips ---------- */
.chip {
  --c: #d8342c;
  --edge: #fff;
  width: 40px; height: 40px; border-radius: 50%;
  position: relative;
  background:
    radial-gradient(circle, var(--c) 0 50%, transparent 51%),
    repeating-conic-gradient(var(--edge) 0 15deg, var(--c) 15deg 45deg);
  box-shadow: 0 2px 0 rgba(0,0,0,.45), 0 4px 6px rgba(0,0,0,.5), inset 0 0 0 2px rgba(0,0,0,.25);
  display: grid; place-items: center;
  flex: 0 0 auto;
}
.chip::before {
  content: ''; position: absolute; inset: 7px; border-radius: 50%;
  border: 1.5px dashed rgba(255,255,255,.75);
  background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.35), transparent 60%);
}
.chip span {
  position: relative; font-size: 13px; font-weight: 700; color: #fff; letter-spacing: -.3px;
  text-shadow: 0 1px 2px rgba(0,0,0,.9);
}
.chip.light span { color: #222; text-shadow: none; }
.chip.stack2 { box-shadow: 0 2px 0 rgba(0,0,0,.45), 0 4px 0 var(--c), 0 6px 0 rgba(0,0,0,.5), 0 8px 8px rgba(0,0,0,.5); transform: translateY(-4px); }
.chip.stack3 { box-shadow: 0 2px 0 rgba(0,0,0,.45), 0 4px 0 var(--c), 0 6px 0 rgba(0,0,0,.5), 0 8px 0 var(--c), 0 10px 0 rgba(0,0,0,.5), 0 12px 10px rgba(0,0,0,.5); transform: translateY(-8px); }
.chip.odds { width: 34px; height: 34px; margin-left: -10px; margin-bottom: -6px; }
.chip.odds span { font-size: 11px; }
.chip .tag {
  position: absolute; top: -8px; right: -8px; font-size: 9px; font-weight: 700;
  background: #fff; color: #000; border-radius: 6px; padding: 1px 4px; box-shadow: 0 1px 2px #000;
}
.chip.pop { animation: chipPop .25s ease-out; }
@keyframes chipPop { from { transform: scale(1.5) translateY(-20px); opacity: .3; } }

/* ---------- puck ---------- */
.puck {
  position: absolute; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--display); font-weight: 900; font-size: 13px; letter-spacing: 1px;
  box-shadow: 0 4px 8px rgba(0,0,0,.6), inset 0 -3px 6px rgba(0,0,0,.35), inset 0 3px 4px rgba(255,255,255,.5);
  z-index: 5; pointer-events: none;
  transition: transform .35s cubic-bezier(.3,1.6,.5,1), opacity .25s;
}
.puck.on { background: radial-gradient(circle at 40% 35%, #fff, #e3e3e3 60%, #b9b9b9); color: #111; border: 3px solid #111; }
.puck.off { background: radial-gradient(circle at 40% 35%, #444, #111 70%); color: #fff; border: 3px solid #eee; }
.puck.gone { opacity: 0; transform: scale(.3) translateY(-30px); }

/* ---------- don't come bar ---------- */
.dc-bar { grid-area: dc; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding-top: 28px; }
.dc-bar .lbl { font-size: 14px; line-height: 1.15; }
.dc-bar .spot { bottom: 6px; left: 50%; transform: translateX(-50%); }
.dc-bar .puck { top: 6px; left: 50%; margin-left: -22px; }
.bar-note { font-size: 10px; letter-spacing: .5px; color: var(--chalk-dim); display: flex; align-items: center; gap: 3px; }

/* ---------- point boxes ---------- */
.pbox {
  position: relative;
  border: 2px solid var(--chalk);
  border-radius: 10px;
  display: grid;
  grid-template-rows: 30px 1fr 30px;
  overflow: visible;
}
.pbox.is-point { box-shadow: 0 0 0 2px var(--gold), 0 0 24px rgba(242,207,107,.5); }
.pbox > .z { border: none; border-radius: 0; }
.pbox .buy, .pbox .lay {
  display: flex; align-items: center; justify-content: flex-start; padding-left: 8px;
  font-size: 12px; letter-spacing: 2px; font-weight: 600;
  background: rgba(0,0,0,.18);
}
.pbox .buy { border-bottom: 2px solid var(--chalk-dim); border-radius: 8px 8px 0 0; }
.pbox .lay { border-top: 2px solid var(--chalk-dim); border-radius: 0 0 8px 8px; }
.pbox .buy .spot, .pbox .lay .spot { right: 4px; top: 50%; transform: translateY(-50%) scale(.72); transform-origin: right center; }
.pbox .buy small, .pbox .lay small { font-size: 9px; letter-spacing: 0; color: var(--chalk-dim); margin-left: auto; margin-right: 6px; }
.pbox .buy.has-bet small, .pbox .lay.has-bet small { visibility: hidden; }
.pbox .place { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.pbox .num {
  font-family: var(--display); font-weight: 900; font-size: 56px; line-height: 1;
  background: linear-gradient(180deg, #ffffff 0%, #fff6dc 48%, #e9cf8e 52%, #fff3cf 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 0 rgba(0,0,0,.55)) drop-shadow(0 0 1px rgba(242,207,107,.9));
}
.pbox .num.word { font-size: 29px; letter-spacing: 1px; }
.pbox.is-point .num { animation: pointGlow 2.4s ease-in-out infinite; }
@keyframes pointGlow { 50% { filter: drop-shadow(0 2px 0 rgba(0,0,0,.55)) drop-shadow(0 0 10px rgba(242,207,107,.9)); } }
.pbox .pays { font-size: 11px; color: var(--chalk-dim); letter-spacing: 1px; margin-top: 4px; }
.pbox .place .spot { right: 6px; bottom: 6px; }
.pbox .place.has-bet .pays { visibility: hidden; }
.pbox .cspot, .pbox .dcspot {
  position: absolute; width: 46px; height: 46px; border-radius: 50%;
  border: 1.5px dashed transparent; z-index: 4;
  display: none;
}
.pbox .cspot { left: 4px; bottom: 34px; }
.pbox .dcspot { left: 4px; top: 34px; }
.pbox .cspot.active, .pbox .dcspot.active { display: block; border-color: rgba(242,207,107,.7); background: rgba(0,0,0,.25); }
.pbox .cspot .spot, .pbox .dcspot .spot { left: 3px; top: 3px; }
.pbox .puck { right: -10px; top: -14px; }

/* ---------- come / field / line ---------- */
.come { grid-area: come; display: grid; place-items: center; }
.come .lbl {
  font-size: 78px; font-weight: 900; line-height: 1;
  letter-spacing: .28em; padding-left: .28em; /* balance the trailing letter space so the word stays centered */
  background: linear-gradient(180deg, #fff8d8 0%, #f6d77c 40%, #c8932c 62%, #f3d27a 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 3px 0 #5a1010) drop-shadow(0 6px 10px rgba(0,0,0,.45));
}
.come .spot { right: 18px; top: 50%; transform: translateY(-50%); }

.field { grid-area: field; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 2px; }
.field .lbl {
  font-size: 28px; letter-spacing: .4em; padding-left: .4em;
  background: linear-gradient(180deg, #fff8d8, #f2cf6b 55%, #c8932c); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 0 rgba(0,0,0,.5));
}
.field .nums > span:not(.ring-n) { color: #fff; text-shadow: 0 2px 0 rgba(0,0,0,.45); }
.field .nums { display: flex; align-items: center; gap: 18px; font-family: var(--display); font-size: 30px; font-weight: 800; }
.field .ring-n { width: 52px; height: 52px; border-radius: 50%; border: 2px solid #ffe07a; display: grid; place-items: center; position: relative; color: #ffe07a; }
.field .ring-n small { position: absolute; bottom: -18px; font-family: var(--ui); font-size: 10px; letter-spacing: 1px; white-space: nowrap; color: #ffe07a; font-weight: 500; }
.field .spot { right: 18px; top: 50%; transform: translateY(-50%); }

.dp { grid-area: dp; display: flex; align-items: center; justify-content: center; gap: 14px; }
.dp .lbl { font-size: 22px; letter-spacing: .2em; padding-left: .2em; text-shadow: 0 2px 0 rgba(0,0,0,.45); }
.dp .spot { right: 14px; top: 50%; transform: translateY(-50%); }
.pass { grid-area: pass; display: flex; align-items: center; justify-content: center; border-width: 3px; }
.pass .lbl {
  font-size: 42px; letter-spacing: .3em; padding-left: .3em;
  background: linear-gradient(180deg, #ffffff 0%, #f4efe2 55%, #cfc6ae 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 3px 0 rgba(0,0,0,.5));
}
.pass .spot { right: 18px; top: 50%; transform: translateY(-50%); }
.odds-z { display: flex; flex-direction: column; align-items: center; justify-content: center; border-style: dashed; }
.odds-z .lbl { font-size: 13px; color: var(--gold); }
.odds-z .odds-lbl { color: var(--chalk-dim); font-size: 10px; }
.odds-z .spot { left: 50%; top: 50%; transform: translate(-50%, -50%); }
.odds-z.has-bet > :not(.spot) { visibility: hidden; }

/* ---------- big 6/8 ---------- */

/* ---------- proposition box ---------- */
.props {
  grid-area: props;
  border: 2px solid var(--gold);
  border-radius: 14px;
  padding: 8px;
  display: flex; flex-direction: column; gap: 6px;
  background: linear-gradient(180deg, rgba(0,0,0,.22), rgba(0,0,0,.1));
}
.props-title { text-align: center; font-family: var(--display); font-size: 12px; letter-spacing: 3px; color: var(--gold); }
.props .row { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.props .z { padding: 5px 6px; display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 52px; border-color: rgba(255,255,255,.7); }
.props .z.wide { min-height: 46px; }
.props .z .spot { right: 4px; top: 50%; transform: translateY(-50%) scale(.82); transform-origin: right center; }
.prop-pay { font-family: var(--ui); font-size: 13px; font-weight: 600; color: var(--gold); letter-spacing: .5px; white-space: nowrap; }
.prop-name { font-family: var(--display); font-weight: 800; font-size: 16px; letter-spacing: 1px; }
.prop-red .prop-name { color: #ff6a5a; }
.props .z.has-bet .prop-pay { opacity: .25; }
.mdice { display: flex; gap: 3px; }
.mdie { width: 22px; height: 22px; border-radius: 4px; background: linear-gradient(135deg, #fff, #dcdcdc); box-shadow: 0 1px 2px rgba(0,0,0,.6); display: grid; grid-template: repeat(3, 1fr) / repeat(3, 1fr); padding: 2px; }
.mdie.red { background: linear-gradient(135deg, #ef4b3f, #a51c14); }
.mdie i { border-radius: 50%; margin: 1px; }
.mdie i.p { background: #111; }
.mdie.red i.p { background: #fff; }
.hard-z { flex-direction: column; gap: 2px !important; }
.sub-title { text-align: center; font-size: 10px; letter-spacing: 2px; color: var(--chalk-dim); margin-top: 2px; }

/* floating payout text */
.float {
  position: absolute; left: 50%; top: 40%; z-index: 20; pointer-events: none;
  font-weight: 700; font-size: 22px; white-space: nowrap;
  transform: translate(-50%, 0);
  animation: floatUp 2.2s ease-out forwards;
  text-shadow: 0 2px 4px #000, 0 0 10px rgba(0,0,0,.8);
}
.float.win { color: #8dffb3; }
.float.lose { color: #ff8170; font-size: 18px; }
.float.push { color: #fff; font-size: 16px; }
@keyframes floatUp { 0% { opacity: 0; transform: translate(-50%, 10px) scale(.7); } 15% { opacity: 1; transform: translate(-50%, -6px) scale(1.1); } 75% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -46px) scale(1); } }

/* ---------- side: bubble dome ---------- */
.side { display: flex; flex-direction: column; gap: 10px; min-height: 0; }
.dome-wrap { display: flex; flex-direction: column; align-items: center; }
.dome {
  width: 300px; height: 230px; position: relative;
  border-radius: 150px 150px 30px 30px / 150px 150px 30px 30px;
  overflow: hidden;
  box-shadow: 0 0 0 3px #b6c4cc, 0 0 0 6px #4a5a62, 0 10px 30px rgba(0,0,0,.7), 0 0 40px rgba(120,200,255,.12);
}
.dome.shake { animation: domeShake .12s infinite; }
@keyframes domeShake { 0% { transform: translate(0,0); } 25% { transform: translate(1px,-1px); } 50% { transform: translate(-1px,1px); } 75% { transform: translate(1px,1px); } }
.dome-felt { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 85%, #1d8a58, #0b4a2e 55%, #042014); }
.dice-area { position: absolute; left: 50%; top: 58%; width: 0; height: 0; perspective: 600px; }
.glass {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 40% at 30% 18%, rgba(255,255,255,.45), transparent 60%),
    radial-gradient(ellipse at 50% 110%, transparent 55%, rgba(170,220,255,.18) 75%, rgba(255,255,255,.3) 100%);
  border-radius: inherit;
  box-shadow: inset 0 0 30px rgba(180,220,255,.35), inset 0 -10px 20px rgba(0,0,0,.4);
}
.glint { position: absolute; width: 30px; height: 80px; left: 230px; top: 40px; border-radius: 50%; background: linear-gradient(180deg, rgba(255,255,255,.5), transparent); transform: rotate(25deg); filter: blur(2px); pointer-events: none; }
.dome-base {
  width: 330px; height: 66px; margin-top: -8px; border-radius: 12px 12px 22px 22px;
  background: linear-gradient(180deg, #d6dde1, #7c8a91 30%, #353d42 70%, #1d2226);
  box-shadow: 0 8px 20px rgba(0,0,0,.6), inset 0 2px 1px rgba(255,255,255,.6);
  display: flex; align-items: center; justify-content: center; gap: 12px; position: relative; z-index: 2;
}
.dome-base .total {
  width: 50px; height: 50px; border-radius: 8px; background: #050807; border: 2px solid #222;
  display: grid; place-items: center; font-family: var(--display); font-weight: 900; font-size: 30px; color: var(--gold);
  text-shadow: 0 0 10px rgba(242,207,107,.7); box-shadow: inset 0 0 10px #000;
}
.dome-base .call {
  min-width: 220px; height: 40px; border-radius: 6px; background: #050807; border: 2px solid #222;
  display: grid; place-items: center; padding: 0 10px;
  font-family: var(--ui); font-size: 17px; font-weight: 600; letter-spacing: 1.5px; color: #9fffc5;
  text-shadow: 0 0 8px rgba(80,255,150,.6); box-shadow: inset 0 0 10px #000; white-space: nowrap;
}
.dome-base .call.seven { color: #ff8a7a; text-shadow: 0 0 8px rgba(255,80,60,.7); }
.dome-base .call.winner { color: var(--gold); text-shadow: 0 0 10px rgba(242,207,107,.8); }

/* 3D dice */
.die3d {
  --s: 50px;
  position: absolute; width: var(--s); height: var(--s); left: calc(var(--s) / -2); top: calc(var(--s) / -2);
  transform-style: preserve-3d;
  transition: transform .7s cubic-bezier(.2, 1.3, .4, 1);
}
.die3d.tumble { transition: transform .16s linear; }
.die3d .face {
  position: absolute; inset: 0; border-radius: 9px;
  background: radial-gradient(circle at 30% 25%, #ff7066, #d11f14 60%, #8d0e08);
  box-shadow: inset 0 0 6px rgba(0,0,0,.45);
  display: grid; grid-template: repeat(3, 1fr) / repeat(3, 1fr); padding: 6px;
  backface-visibility: hidden;
}
.die3d .face i { border-radius: 50%; margin: 2px; }
.die3d .face i.p { background: radial-gradient(circle at 40% 35%, #fff, #ddd); box-shadow: inset 0 1px 2px rgba(0,0,0,.4); }
.die3d .f1 { transform: translateZ(25px); }
.die3d .f6 { transform: rotateY(180deg) translateZ(25px); }
.die3d .f3 { transform: rotateY(90deg) translateZ(25px); }
.die3d .f4 { transform: rotateY(-90deg) translateZ(25px); }
.die3d .f2 { transform: rotateX(90deg) translateZ(25px); }
.die3d .f5 { transform: rotateX(-90deg) translateZ(25px); }
.die-shadow { position: absolute; width: 56px; height: 18px; margin: 22px 0 0 -28px; border-radius: 50%; background: radial-gradient(rgba(0,0,0,.55), transparent 70%); transition: transform .7s cubic-bezier(.2, 1.3, .4, 1); }
.die-shadow.tumble { transition: transform .16s linear; }

/* ---------- side panels ---------- */
.panel {
  background: var(--panel);
  border: 1px solid #2c3a31; border-radius: 12px;
  padding: 10px 12px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 6px 16px rgba(0,0,0,.4);
}
.panel.grow { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
.panel-title { font-size: 12px; letter-spacing: 2.5px; color: #a8957a; margin-bottom: 8px; display: flex; justify-content: space-between; }
.panel-title.small { margin-top: 10px; font-size: 11px; }
.history { display: flex; flex-wrap: wrap; gap: 5px; min-height: 30px; }
.hist {
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700; font-size: 14px;
  background: #22302a; border: 1px solid #3c5045; color: #e6efe9;
}
.hist.seven { background: #6e1510; border-color: #e04a3c; color: #fff; }
.hist.craps { background: #3a2a10; border-color: #a3722a; color: #ffcf80; }
.hist.pointset { background: #fff; color: #111; border-color: #fff; }
.hist.made { background: linear-gradient(180deg, #ffe58a, #c8961e); color: #2a1a00; border-color: #fff3c4; box-shadow: 0 0 8px rgba(242,207,107,.6); }
.hist:first-child { transform: scale(1.12); box-shadow: 0 0 0 2px var(--gold); }
.hotbars { margin-top: 8px; display: grid; grid-template-columns: repeat(11, 1fr); gap: 2px; align-items: end; height: 46px; }
.hotbars div { background: linear-gradient(180deg, var(--gold), var(--gold-3)); border-radius: 2px 2px 0 0; min-height: 2px; position: relative; }
.hotbars div.seven { background: linear-gradient(180deg, #ff6a5a, #7a1a12); }
.hotbars div::after { content: attr(data-n); position: absolute; bottom: -14px; left: 0; right: 0; text-align: center; font-size: 9px; color: #8f7f64; }
.hotbars { margin-bottom: 12px; }

.players { display: flex; flex-direction: column; gap: 4px; overflow: auto; max-height: 128px; }
.prow { display: grid; grid-template-columns: 12px 1fr auto auto; gap: 8px; align-items: center; padding: 5px 8px; border-radius: 6px; background: rgba(255,255,255,.03); font-size: 15px; }
.prow.me { background: rgba(242,207,107,.12); outline: 1px solid rgba(242,207,107,.35); }
.prow .dot { width: 8px; height: 8px; border-radius: 50%; background: #4fe08a; box-shadow: 0 0 6px #4fe08a; }
.prow .dot.off { background: #555; box-shadow: none; }
.prow .bank { color: var(--gold); font-variant-numeric: tabular-nums; }
.prow .bet { color: #8fa79a; font-size: 12px; font-variant-numeric: tabular-nums; }
.feed { flex: 1; overflow: hidden; display: flex; flex-direction: column; gap: 3px; font-size: 13px; color: #b8c7be; }
.feed div { padding: 2px 0; border-bottom: 1px solid rgba(255,255,255,.04); }
.feed time { color: #6c7d73; margin-right: 6px; font-size: 11px; }

/* ---------- chip tray ---------- */
.tray {
  display: grid; grid-template-columns: 520px 470px 1fr; align-items: center; gap: 18px;
  padding: 0 22px;
  background: linear-gradient(180deg, #1a130d, #0b0805);
  border-top: 2px solid var(--gold-3);
  box-shadow: 0 -8px 30px rgba(0,0,0,.6);
}
.chips { display: flex; gap: 14px; align-items: center; padding: 10px 16px; border-radius: 50px; background: linear-gradient(180deg, #000, #1a140e); box-shadow: inset 0 3px 10px #000, 0 1px 0 rgba(255,255,255,.05); }
.chips .chip { width: 66px; height: 66px; cursor: pointer; transition: transform .15s, box-shadow .15s; }
.chips .chip::before { inset: 10px; border-width: 2px; }
.chips .chip span { font-size: 19px; }
.chips .chip:hover { transform: translateY(-4px); }
.chips .chip.sel { transform: translateY(-8px) scale(1.06); box-shadow: 0 0 0 3px var(--gold), 0 0 22px rgba(242,207,107,.8), 0 10px 14px rgba(0,0,0,.6); }
.chips .chip.cant { opacity: .3; }

.actions { display: flex; gap: 10px; }
.btn {
  height: 58px; min-width: 92px; padding: 0 14px; border-radius: 10px; cursor: pointer;
  border: 1px solid #5a4528;
  background: linear-gradient(180deg, #3a2c1b, #1c140c);
  color: #f1e3c4;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.15), 0 4px 0 #0a0704, 0 6px 10px rgba(0,0,0,.5);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  transition: transform .08s, filter .15s;
}
.btn b { font-size: 17px; letter-spacing: 2px; font-weight: 600; }
.btn small { font-size: 10px; color: #8f7f64; }
.btn:hover { filter: brightness(1.2); }
.btn:active { transform: translateY(3px); box-shadow: inset 0 1px 0 rgba(255,255,255,.15), 0 1px 0 #0a0704; }
.btn:disabled { opacity: .4; cursor: default; filter: none; }
.btn.toggle.on { background: linear-gradient(180deg, #8a2a1e, #4a120b); border-color: #e04a3c; }
.btn.gold { background: linear-gradient(180deg, #f6dc8a, #c8961e 60%, #8a6214); color: #2a1a00; border-color: #fff0b8; }
.btn.gold small { color: #5a3e08; }
.btn.wide { width: 100%; }
.hidden { display: none !important; }

.infobox { height: 80px; padding: 10px 16px; border-radius: 10px; background: rgba(0,0,0,.5); border: 1px solid #2c3a31; overflow: hidden; }
.info-title { font-family: var(--display); font-weight: 800; font-size: 17px; letter-spacing: 1px; color: var(--gold); }
.info-body { font-size: 14px; color: #c8d4cd; line-height: 1.35; margin-top: 3px; }

/* ---------- toast & banner ---------- */
.toast {
  position: absolute; left: 50%; bottom: 128px; transform: translate(-50%, 20px);
  background: rgba(20, 6, 4, .95); border: 1px solid #e04a3c; color: #ffd4cc;
  padding: 10px 22px; border-radius: 30px; font-size: 17px; letter-spacing: .5px;
  opacity: 0; transition: opacity .2s, transform .2s; pointer-events: none; z-index: 50;
  box-shadow: 0 8px 30px rgba(0,0,0,.6);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.win-banner {
  position: absolute; left: 690px; top: 330px; transform: translate(-50%, -50%) scale(.6);
  padding: 16px 44px; border-radius: 16px;
  font-family: var(--display); font-weight: 900; font-size: 44px; letter-spacing: 2px;
  background: linear-gradient(180deg, rgba(20,14,4,.92), rgba(0,0,0,.92));
  border: 2px solid var(--gold); color: var(--gold);
  box-shadow: 0 0 60px rgba(242,207,107,.5), 0 20px 40px rgba(0,0,0,.7);
  opacity: 0; pointer-events: none; z-index: 40; white-space: nowrap;
  text-shadow: 0 0 20px rgba(242,207,107,.6);
}
.win-banner small { display: block; text-align: center; font-family: var(--ui); font-size: 15px; letter-spacing: 4px; color: #e8d7ad; font-weight: 500; }
.win-banner.show { animation: banner 2.8s ease-out forwards; }
.win-banner.lose { border-color: #6e3a33; color: #ff9a8a; box-shadow: 0 20px 40px rgba(0,0,0,.7); text-shadow: none; font-size: 32px; }
@keyframes banner { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.6); } 12% { opacity: 1; transform: translate(-50%, -50%) scale(1.06); } 20% { transform: translate(-50%, -50%) scale(1); } 80% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -60%) scale(1); } }

/* ---------- join modal ---------- */
.modal { position: fixed; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,.72); backdrop-filter: blur(6px); z-index: 100; }
.modal.hidden { display: none; }
.modal-card {
  width: min(420px, calc(100vw - 32px)); padding: 30px 28px; border-radius: 20px; text-align: center;
  background: radial-gradient(ellipse at 50% 0%, #1b6b45, #0a3320 70%);
  border: 2px solid var(--gold); box-shadow: 0 0 0 6px #1c120a, 0 0 0 8px var(--gold-3), 0 30px 60px #000;
}
.modal-card h1 { margin: 4px 0; font-family: var(--display); font-weight: 900; letter-spacing: 4px; color: var(--gold); }
.modal-card p { color: #d2e2d8; margin: 6px 0 18px; }
.modal-card input {
  width: 100%; height: 52px; border-radius: 10px; border: 2px solid #5a4528; background: #050a07; color: #fff;
  font-family: var(--ui); font-size: 22px; text-align: center; letter-spacing: 1px; outline: none; margin-bottom: 8px;
}
.modal-card input:focus { border-color: var(--gold); }
.modal-card small { display: block; margin-top: 12px; color: #9fb7a8; }
.join-err { min-height: 20px; color: #ff9a8a; margin-bottom: 8px; }

.rotate-hint { display: none; }
@media (orientation: portrait) and (max-width: 700px) {
  .rotate-hint { display: block; position: fixed; top: 8px; left: 16px; right: 16px; text-align: center; padding: 8px; border-radius: 8px; background: rgba(0,0,0,.8); border: 1px solid var(--gold-3); color: var(--gold); z-index: 90; font-size: 14px; }
}

/* ---------- last-roll breakdown in the info box ---------- */
.infobox.breakdown { overflow-y: auto; }
.infobox.breakdown .info-body { margin-top: 2px; font-size: 13px; line-height: 1.3; }
.infobox .pos { color: var(--green); }
.infobox .neg { color: #ff7b6b; }
.brow { display: grid; grid-template-columns: 130px 74px 1fr; gap: 8px; align-items: baseline; }
.brow span { color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brow b { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.brow em { font-style: normal; color: #9fb3a7; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chip .tag:is(em) { font-style: normal; }
.chip .tag.off { background: #222; color: #ffcf66; border: 1px solid #ffcf66; }
.infobox { height: 96px; }

/* ---------- effects layer: flying chips, coins, puck, sweeps ---------- */
#fx { position: absolute; inset: 0; pointer-events: none; z-index: 39; overflow: hidden; perspective: 800px; }
#fx .puck { transition: none; z-index: 1; }
.chip.fly { position: absolute; z-index: 2; margin: 0; }
.coin {
  position: absolute; width: 18px; height: 18px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff6c8, #f2cf6b 45%, #a8781c 80%);
  box-shadow: 0 0 6px rgba(242,207,107,.8), inset 0 0 0 2px rgba(122,87,23,.6);
}
.sweep {
  position: absolute; left: 690px; top: 330px; white-space: nowrap;
  padding: 10px 60px;
  font-family: var(--display); font-weight: 900; font-size: 52px; letter-spacing: .18em;
  color: #fff; text-shadow: 0 3px 0 rgba(0,0,0,.6), 0 0 24px rgba(224,74,60,.8);
  background: linear-gradient(90deg, transparent, rgba(120,10,6,.85) 15%, rgba(120,10,6,.85) 85%, transparent);
  border-top: 2px solid rgba(255,170,150,.6); border-bottom: 2px solid rgba(255,170,150,.6);
}

/* bankroll meter pulse when it changes after a roll */
.meter-val.bump-up { animation: bumpUp 1.2s ease-out; }
.meter-val.bump-down { animation: bumpDown 1.2s ease-out; }
@keyframes bumpUp { 0% { transform: scale(1); } 15% { transform: scale(1.18); color: #9dffbf; text-shadow: 0 0 18px rgba(79,224,138,.9); } 100% { transform: scale(1); } }
@keyframes bumpDown { 0% { transform: scale(1); } 15% { transform: scale(1.1); color: #ff8a7a; text-shadow: 0 0 14px rgba(224,74,60,.8); } 100% { transform: scale(1); } }
.meter-val { transform-origin: right center; display: inline-block; }

/* counting win / loss banner */
.win-banner { padding: 14px 54px 18px; text-align: center; }
.win-banner small { display: block; font-family: var(--display); font-size: 20px; font-weight: 800; letter-spacing: .35em; padding-left: .35em; color: #f6e3a8; }
.win-banner .amt {
  font-family: var(--display); font-weight: 900; font-size: 68px; line-height: 1.05; font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #fff8d8 0%, #f6d77c 45%, #c8932c 70%, #f3d27a 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 3px 0 rgba(0,0,0,.6));
}
.win-banner.show { animation: banner 3.2s ease-out forwards; }
.win-banner.lose { border-color: #b8402f; box-shadow: 0 0 40px rgba(224,74,60,.35), 0 20px 40px rgba(0,0,0,.7); font-size: inherit; }
.win-banner.lose small { color: #ffb3a6; }
.win-banner.lose .amt { font-size: 54px; background: linear-gradient(180deg, #ffd6cf, #ff7b6b 50%, #c23a2a); -webkit-background-clip: text; background-clip: text; }

/* ---------- make BUY / LAY strips unmistakable ---------- */
.pbox .lay {
  background: repeating-linear-gradient(135deg, rgba(150,22,14,.55) 0 8px, rgba(120,14,8,.55) 8px 16px);
  color: #ffd2c9;
}
.pbox .lay small { color: #ffb3a6; font-weight: 600; letter-spacing: .5px; }
.pbox .lay:hover { background: rgba(190,40,28,.7); box-shadow: inset 0 0 0 2px #ff8a7a; }
.pbox .buy { background: rgba(18,50,96,.45); color: #cfe2ff; }
.pbox .buy small { color: #a9c6f2; }
.pbox .buy:hover { background: rgba(30,80,150,.6); box-shadow: inset 0 0 0 2px #8db8ff; }
.chip .tag.lay { background: #c62a1c; color: #fff; }
.chip .tag.buy { background: #2b64c4; color: #fff; }
.toast.info { background: rgba(28,20,4,.96); border-color: var(--gold); color: #ffeab0; max-width: 820px; white-space: normal; text-align: center; }

/* ---------- left bar: what each total does for you + Small/Tall/All tracker ---------- */
.wins {
  display: flex; flex-direction: column; gap: 6px; min-height: 0;
  padding: 10px 8px; border-radius: 16px;
  background: linear-gradient(180deg, #17201b, #0b120e);
  border: 1px solid #2c3a31;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 10px 24px rgba(0,0,0,.5);
}
.wins-title { text-align: center; font-family: var(--display); font-weight: 800; font-size: 12px; letter-spacing: .2em; color: var(--gold); }
.wrows { flex: 1; display: flex; flex-direction: column; gap: 3px; min-height: 0; }
.wrow {
  flex: 1; display: grid; grid-template-columns: 28px 1fr; align-items: center; gap: 5px;
  padding: 0 6px; border-radius: 7px;
  background: rgba(255,255,255,.035); border: 1px solid transparent;
  transition: background .3s, border-color .3s, opacity .3s;
}
.wrow .wn { font-family: var(--display); font-weight: 900; font-size: 19px; text-align: center; color: #e9e3d2; }
.wrow .wv { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.05; font-variant-numeric: tabular-nums; }
.wrow .wv b { font-size: 15px; font-weight: 600; }
.wrow .wv small { font-size: 10px; color: #c7b98f; }
.wrow.quiet { opacity: .45; }
.wrow.quiet .wv b { color: #7f8f86; }
.wrow.win { background: linear-gradient(90deg, rgba(79,224,138,.08), rgba(79,224,138,.28)); border-color: rgba(79,224,138,.55); box-shadow: 0 0 12px rgba(79,224,138,.18); }
.wrow.win .wv b { color: #9dffbf; text-shadow: 0 0 8px rgba(79,224,138,.5); }
.wrow.lose { background: linear-gradient(90deg, rgba(224,74,60,.06), rgba(224,74,60,.22)); border-color: rgba(224,74,60,.45); }
.wrow.lose .wv b { color: #ff8a7a; }
.wrow.mixed { background: linear-gradient(90deg, rgba(224,74,60,.18), rgba(79,224,138,.22)); border-color: rgba(242,207,107,.5); }
.wrow.mixed .wv b { color: #ffd98a; }
.wrow.seven .wn { color: #ff6a5a; }
.wrow.seven { margin: 3px 0; }
.lamp { width: 10px; height: 10px; border-radius: 50%; background: #1d2620; box-shadow: inset 0 1px 2px #000; }
.wrow.seven .lamp { visibility: hidden; }
.lamp.lit { background: radial-gradient(circle at 40% 35%, #fff6c8, #f2cf6b 55%, #b8862a); box-shadow: 0 0 8px rgba(242,207,107,.9); }
.lamp.pop { animation: lampPop .6s cubic-bezier(.3,1.8,.5,1); }
@keyframes lampPop { 0% { transform: scale(2.2); } 100% { transform: scale(1); } }
.wins.reset .lamp { animation: lampReset .9s ease-out; }
@keyframes lampReset { 0%, 50% { background: #e04a3c; box-shadow: 0 0 10px #e04a3c; } 100% { background: #1d2620; } }
.wins .ats {
  min-height: 50px; display: flex; flex-direction: column; justify-content: center; align-items: center;
  border-color: var(--gold); border-radius: 10px;
  background: radial-gradient(ellipse at 50% 0%, rgba(242,207,107,.18), rgba(0,0,0,.2));
}
.wins .ats b { font-family: var(--display); font-weight: 900; font-size: 17px; letter-spacing: .2em; padding-left: .2em; color: var(--gold); }
.wins .ats small { font-size: 10px; color: #cfc2a0; letter-spacing: .5px; }
.wins .ats .spot { right: 2px; top: 50%; transform: translateY(-50%) scale(.75); transform-origin: right center; }
.wins .ats.has-bet small { visibility: visible; }
.wins .ats { align-items: flex-start; padding-left: 10px; }
.wins .ats b { padding-left: 0; }

/* ---------- Small / Tall / All area (felt, left column) ---------- */
.atscol { grid-area: ats; display: flex; flex-direction: column; gap: 7px; }
.atscol .ats {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  border-color: var(--gold);
  background: radial-gradient(ellipse at 50% 0%, rgba(242,207,107,.14), rgba(0,0,0,.18));
}
.atscol .ats b { font-family: var(--display); font-weight: 900; font-size: 17px; letter-spacing: .12em; padding-left: .12em; color: #ffe07a; text-shadow: 0 2px 0 rgba(0,0,0,.5); }
.atscol .ats .ats-sub { font-size: 10px; letter-spacing: .5px; color: #f1e3c4; font-weight: 600; }
.atscol .ats.all { flex: .7; position: relative; overflow: hidden; }
.atscol .ats.all::before { /* progress fill toward ALL */
  content: ''; position: absolute; left: 0; bottom: 0; width: 100%; height: var(--progress, 0%);
  background: linear-gradient(0deg, rgba(242,207,107,.35), rgba(242,207,107,.08)); transition: height .5s; pointer-events: none;
}
.atscol .ats .spot { right: 2px; bottom: 2px; transform: scale(.7); transform-origin: right bottom; }
.lamps { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px; max-width: 80px; }
.atscol .lamp {
  width: 15px; height: 15px; border-radius: 50%; display: grid; place-items: center;
  font-size: 8.5px; font-weight: 700; color: #7f8f86;
  background: #10251a; box-shadow: inset 0 1px 3px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.15);
}
.atscol .lamp.lit { color: #2a1a00; background: radial-gradient(circle at 40% 35%, #fff6c8, #f2cf6b 55%, #b8862a); box-shadow: 0 0 9px rgba(242,207,107,.95); }
.atscol .lamp.pop { animation: lampPop .6s cubic-bezier(.3,1.8,.5,1); }
.atscol.reset .lamp { animation: lampReset .9s ease-out; }

/* ---------- Big 6 / Big 8 corner, at the end of the field ---------- */
.bigbox {
  grid-area: big; display: grid; grid-template-columns: 1fr 1fr;
  border: 2px solid var(--chalk); border-radius: 10px 10px 10px 34px; overflow: hidden;
  background: rgba(150, 20, 20, .22);
}
.bigbox .bighalf { border: none; border-radius: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.bigbox .bighalf + .bighalf { border-left: 2px solid var(--chalk-dim); }
.bigbox b { font-family: var(--display); font-size: 11px; letter-spacing: 1px; }
.bigbox i { font-style: normal; font-family: var(--display); font-weight: 900; font-size: 36px; line-height: 1; color: #ff5a48; text-shadow: 0 2px 0 rgba(0,0,0,.5), 0 0 8px rgba(255,90,72,.35); }
.bigbox .spot { bottom: 3px; left: 50%; transform: translateX(-50%) scale(.75); transform-origin: center bottom; }
/* keep chips clear of the lamps and the big 6/8 digits */
.atscol .ats { align-items: flex-start; padding: 6px 4px 6px 7px; }
.atscol .ats b { font-size: 15px; }
.atscol .ats .lamps { align-self: center; margin-top: 2px; }
.atscol .ats .spot { top: 4px; right: 2px; bottom: auto; transform: scale(.6); transform-origin: right top; }
.bigbox .bighalf { justify-content: flex-start; padding-top: 10px; }
.bigbox .spot { bottom: 4px; transform: translateX(-50%) scale(.7); }

/* =====================================================================
   Red-glitch fixes.
   1) Chrome can drop "background-clip: text" when the element (or an ancestor)
      animates or has a filter, painting the whole gradient box as a solid block.
      Use solid fills with layered text-shadows instead.
   2) Loss feedback and static tints were painting large areas red; keep them subtle.
   ===================================================================== */
.brand-name, .pbox .num, .come .lbl, .field .lbl, .pass .lbl, .win-banner .amt, .win-banner.lose .amt {
  background: none; -webkit-background-clip: border-box; background-clip: border-box; filter: none;
}
.brand-name { color: var(--gold); text-shadow: 0 1px 0 #fff3c4, 0 2px 0 #7a5717, 0 3px 6px rgba(0,0,0,.8); }
.pbox .num { color: #fff8e6; text-shadow: 0 0 1px #f2cf6b, 0 2px 0 #b8892c, 0 3px 0 rgba(0,0,0,.55), 0 0 14px rgba(0,0,0,.35); }
.pbox.is-point .num { animation: pointGlowText 2.4s ease-in-out infinite; }
@keyframes pointGlowText { 50% { text-shadow: 0 0 1px #f2cf6b, 0 2px 0 #b8892c, 0 3px 0 rgba(0,0,0,.55), 0 0 16px rgba(242,207,107,.85); } }
.come .lbl { color: #f6d77c; text-shadow: 0 1px 0 #fff3c4, 0 3px 0 #7a1414, 0 5px 0 rgba(0,0,0,.35), 0 8px 14px rgba(0,0,0,.45); }
.field .lbl { color: #f6d77c; text-shadow: 0 2px 0 rgba(0,0,0,.5); }
.pass .lbl { color: #fbf8ef; text-shadow: 0 3px 0 rgba(0,0,0,.45); }
.win-banner .amt { color: #f6d77c; text-shadow: 0 1px 0 #fff3c4, 0 3px 0 #7a5717, 0 0 22px rgba(242,207,107,.45); }
.win-banner.lose .amt { color: #ff9a8a; text-shadow: 0 3px 0 rgba(0,0,0,.6); }

/* loss feedback: brief dim with a thin red outline instead of a red fill */
.z.flash-lose { animation: flashLoseSoft 1s ease-out; }
@keyframes flashLoseSoft { 0% { background: rgba(0,0,0,.32); box-shadow: inset 0 0 0 2px rgba(255,110,90,.75); } 100% { background: transparent; box-shadow: none; } }

/* NO MORE BETS: dark band with gold trim */
.sweep {
  background: linear-gradient(90deg, transparent, rgba(8,6,3,.88) 15%, rgba(8,6,3,.88) 85%, transparent);
  border-color: rgba(242,207,107,.65); color: #f6e3a8; text-shadow: 0 3px 0 rgba(0,0,0,.6);
}

/* left bar: losses in red text only; no red fills */
.wrow.lose { background: rgba(255,255,255,.035); border-color: transparent; }
.wrow.mixed { background: linear-gradient(90deg, rgba(255,255,255,.03), rgba(79,224,138,.14)); border-color: rgba(242,207,107,.35); }

/* softer static tints */
.pbox .lay { background: rgba(90,20,16,.38); color: #ffd2c9; }
.pbox .lay:hover { background: rgba(120,30,22,.55); box-shadow: inset 0 0 0 2px rgba(255,138,122,.7); }
.bigbox { background: rgba(0,0,0,.14); }
.win-banner.lose { border-color: #6e4a3f; box-shadow: 0 20px 40px rgba(0,0,0,.7); }

/* =====================================================================
   Round 6: flexible stage, logo, banners, chat, Small/Tall/All, dragging
   ===================================================================== */

/* the stage's size is set by fit() to match the window shape; the felt rows stretch with it */
.felt {
  grid-template-columns: 108px repeat(6, minmax(0, 1fr)) 262px;
  grid-template-rows: minmax(190px, 200fr) minmax(100px, 116fr) minmax(96px, 112fr) minmax(56px, 64fr) minmax(66px, 78fr);
}

/* ---------- logo ---------- */
.logo { width: 60px; height: 60px; display: block; filter: drop-shadow(0 4px 8px rgba(0,0,0,.6)); }
.logo.big { width: 104px; height: 104px; margin: 0 auto 6px; }
.brand { gap: 12px; }
.brand-name { display: flex; align-items: baseline; gap: 10px; font-size: 30px; letter-spacing: 0; line-height: 1; }
.brand-name .w1 { color: var(--gold); letter-spacing: .08em; text-shadow: 0 1px 0 #fff3c4, 0 2px 0 #7a5717, 0 4px 8px rgba(0,0,0,.8); }
.brand-name .w2 { color: #fbf5e4; font-size: 26px; letter-spacing: .22em; text-shadow: 0 2px 0 #8d0e08, 0 4px 8px rgba(0,0,0,.8); }
.brand-sub { display: flex; align-items: center; gap: 8px; margin-top: 5px; font-size: 11px; letter-spacing: 2.5px; color: #b9a57f; }
.brand-sub i { flex: 0 0 18px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-2), transparent); }

/* ---------- full screen button ---------- */
.full-btn { width: 40px; height: 40px; border-radius: 10px; }
.full-btn svg { width: 20px; height: 20px; fill: none; stroke: #e9dcb8; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.full-btn:hover { border-color: var(--gold); }
.full-btn.on svg { stroke: var(--gold); }

/* ---------- countdown: amber, not red ---------- */
.status.urgent .ring-fg { stroke: #ffb347; }
.status.urgent .ring-num { color: #ffcf80; }

/* ---------- toasts: neutral dark with a gold edge ---------- */
.toast { background: rgba(14,12,8,.95); border-color: #b8892c; color: #ffe9c2; }

/* ---------- centered banners on the felt ---------- */
.win-banner { left: var(--cx, 690px); top: var(--cy, 330px); }
.callout {
  position: absolute; left: var(--cx, 690px); top: var(--cy, 330px); z-index: 41; pointer-events: none;
  display: flex; align-items: center; gap: 22px; padding: 18px 46px; border-radius: 18px; white-space: nowrap;
  opacity: 0; transform: translate(-50%, -50%) scale(.86);
  transition: opacity .35s ease, transform .35s ease;
}
.callout.show { opacity: 1; transform: translate(-50%, -50%) scale(1); transition: opacity .18s ease-out, transform .45s cubic-bezier(.25,1.6,.45,1); }
.callout b { font-family: var(--display); font-weight: 900; font-size: 54px; letter-spacing: .16em; padding-left: .16em; line-height: 1; }
.callout .co-line { width: 70px; height: 2px; background: linear-gradient(90deg, transparent, var(--gold)); }
.callout .co-line:last-child { transform: scaleX(-1); }
.callout.open {
  background: radial-gradient(ellipse at 50% 0%, rgba(40,150,95,.96), rgba(6,52,32,.96) 75%);
  border: 2px solid var(--gold); box-shadow: 0 0 0 5px rgba(0,0,0,.35), 0 18px 40px rgba(0,0,0,.65), 0 0 40px rgba(242,207,107,.35);
}
.callout.open b { color: #fff6d6; text-shadow: 0 2px 0 #7a5717, 0 4px 10px rgba(0,0,0,.6); }
.callout.closed {
  background: linear-gradient(180deg, rgba(26,20,10,.97), rgba(4,3,2,.97));
  border: 2px solid var(--gold); box-shadow: 0 0 0 5px rgba(0,0,0,.35), 0 18px 40px rgba(0,0,0,.7);
}
.callout.closed b { color: var(--gold); text-shadow: 0 1px 0 #fff3c4, 0 3px 0 #5a3f0e, 0 0 18px rgba(242,207,107,.35); }

/* ---------- right column: smaller dome, players, chat ---------- */
.dome { width: 260px; height: 188px; }
.dome-base { width: 300px; height: 56px; }
.dome-base .total { width: 44px; height: 44px; font-size: 26px; }
.dome-base .call { height: 36px; min-width: 210px; font-size: 16px; }
.glint { left: 196px; top: 30px; height: 64px; }
.dice-area { top: 60%; }
.side { gap: 8px; }
.history { gap: 4px; min-height: 26px; max-height: 56px; overflow: hidden; }
.hist { width: 26px; height: 26px; font-size: 13px; }
.hotbars { height: 30px; margin-top: 6px; }
.panel { padding: 8px 12px; }
.panel-title { margin-bottom: 6px; }
.players { max-height: 58px; gap: 3px; }
.prow { padding: 3px 8px; font-size: 14px; }
.chat .panel-title span { font-size: 9px; letter-spacing: 1.5px; color: #6c7d73; }
.chat-log { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 3px; font-size: 14px; line-height: 1.3; padding-right: 4px; user-select: text; }
.chat-log::-webkit-scrollbar { width: 6px; }
.chat-log::-webkit-scrollbar-thumb { background: #2c3a31; border-radius: 3px; }
.chat-log > div:first-child { margin-top: auto; }
.chat-log time { color: #5f7066; font-size: 10px; margin-right: 6px; }
.cmsg { color: #eef3ef; overflow-wrap: anywhere; }
.cmsg b { color: #8fd1ff; font-weight: 600; }
.cmsg.me b { color: var(--gold); }
.cevent { color: #9fb0a6; font-size: 12px; font-style: italic; }
.chat-form { display: flex; gap: 6px; margin-top: 6px; }
.chat-form input {
  flex: 1; min-width: 0; height: 34px; padding: 0 12px; border-radius: 17px; outline: none;
  border: 1px solid #34463b; background: #050a07; color: #fff; font-family: var(--ui); font-size: 14px;
}
.chat-form input:focus { border-color: var(--gold); }
.chat-send { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--gold-2); background: linear-gradient(180deg, #2a2112, #130e07); color: var(--gold); cursor: pointer; font-size: 14px; }

/* ---------- Small / Tall / All: numbers down the left edge of each box ---------- */
.atscol .ats {
  display: grid; grid-template-columns: 24px 1fr; align-items: stretch; gap: 0; padding: 0;
  overflow: hidden; border-color: var(--gold);
}
.atscol .ats.tall, .atscol .ats.small { flex: 1.3; }
.atscol .ats.all { flex: .75; grid-template-columns: 1fr; }
.atscol .ats .lamps {
  display: flex; flex-direction: column; justify-content: space-evenly; align-items: center; gap: 0;
  max-width: none; margin: 0; align-self: stretch;
  background: rgba(0,0,0,.28); border-right: 1px solid rgba(242,207,107,.45);
}
.atscol .lamp { width: 19px; height: 19px; font-size: 10.5px; font-weight: 700; }
.atscol .ats-text { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding: 10px 2px 0; gap: 2px; }
.atscol .ats.all .ats-text { justify-content: center; padding: 0 2px; position: relative; }
.atscol .ats b { font-size: 15px; letter-spacing: .08em; padding-left: .08em; }
.atscol .ats.all b { font-size: 20px; }
.atscol .ats .ats-sub { font-size: 10px; white-space: nowrap; }
.atscol .ats .spot { top: auto; bottom: 6px; right: auto; left: calc(24px + (100% - 24px) / 2); transform: translateX(-50%) scale(.75); transform-origin: center bottom; }
.atscol .ats.all .spot { left: 50%; bottom: 3px; transform: translateX(-50%) scale(.65); }

/* ---------- dragging chips ---------- */
.z.has-bet { cursor: grab; }
body.dragging, body.dragging * { cursor: grabbing !important; }
.z.drag-from .spot { opacity: .3; }
.z.drop-ok { background: rgba(79,224,138,.16); box-shadow: inset 0 0 0 3px #4fe08a, 0 0 18px rgba(79,224,138,.55); }
.z.drop-bad { opacity: .55; }
.chip.drag-ghost { position: absolute; z-index: 5; transform: scale(1.18); box-shadow: 0 10px 18px rgba(0,0,0,.6), 0 2px 0 rgba(0,0,0,.45); }
body.drag-off .chip.drag-ghost { opacity: .55; }
body.drag-off .chip.drag-ghost::after {
  content: "TAKE DOWN"; position: absolute; top: 46px; left: 50%; transform: translateX(-50%);
  font-size: 11px; letter-spacing: 1px; white-space: nowrap; color: #fff; background: rgba(0,0,0,.8); padding: 2px 6px; border-radius: 4px;
}

/* =====================================================================
   Round 7: Small/Tall/All payouts, Big 6/8 diamond in the Pass Line corner
   ===================================================================== */

/* payouts always shown; the second line counts the numbers still needed */
.atscol .ats .ats-pay {
  font-size: 11px; font-weight: 700; letter-spacing: .5px; white-space: nowrap;
  color: #2a1a00; background: linear-gradient(180deg, #ffe69a, #d9a93e); padding: 1px 6px; border-radius: 4px;
  box-shadow: 0 1px 2px rgba(0,0,0,.5);
}
.atscol .ats .ats-sub { font-size: 9.5px; color: #d9ccaa; font-weight: 500; letter-spacing: .5px; }
.atscol .ats-text { gap: 3px; }
.atscol .ats.all .ats-text { gap: 2px; padding-bottom: 14px; }
.atscol .ats.all b { font-size: 18px; }


/* after a 7 the Small/Tall/All lamps fade out (no red flash) */
@keyframes lampFade { 0% { background: #f2cf6b; box-shadow: 0 0 10px rgba(242,207,107,.8); color: #2a1a00; } 100% { background: #10251a; box-shadow: inset 0 1px 3px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.15); } }
.atscol.reset .lamp, .wins.reset .lamp { animation: lampFade 1s ease-out; }

/* Big 6/8: a corner block at the end of the Field and Don't Pass rows (like the casino machines),
   split on the diagonal with BIG along the split, 6 lower-left and 8 upper-right */
.felt {
  grid-template-areas:
    "dc   p4   p5   p6   p8   p9   p10  props"
    "ats  come come come come come come props"
    "ats  big  field field field field field props"
    "ats  big  dp   dp   dp   dp   dpo  props"
    "ats  pass pass pass pass pass po   props";
}
.bigbox {
  grid-area: big; position: relative; display: block; overflow: hidden;
  border: 2px solid var(--chalk); border-radius: 10px 10px 10px 34px;
  background: rgba(0,0,0,.1);
}
.bigbox .bighalf { position: absolute; inset: 0; border: none; border-radius: 0; display: block; padding: 0; }
.bigbox .b6 { clip-path: polygon(0 0, 100% 100%, 0 100%); }
.bigbox .b8 { clip-path: polygon(0 0, 100% 0, 100% 100%); }
.bigbox .bighalf:hover { background: rgba(255,255,255,.1); box-shadow: none; }
.bigbox .bighalf i {
  position: absolute; font-style: normal; font-family: var(--display); font-weight: 900; font-size: 64px; line-height: 1;
  color: #ff4a3a; text-shadow: 0 3px 0 rgba(0,0,0,.5); transform: rotate(-35deg);
}
.bigbox .b6 i { left: 14%; bottom: 8%; }
.bigbox .b8 i { right: 14%; top: 6%; }
.bigbox .bighalf .spot { top: auto; bottom: auto; left: auto; right: auto; transform: scale(.75); }
.bigbox .b6 .spot { left: 40%; bottom: 7px; transform-origin: left bottom; }
.bigbox .b8 .spot { right: 40%; top: 9px; transform-origin: right top; }
.bigbox .big-word {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(42deg); pointer-events: none;
  font-family: var(--display); font-weight: 900; font-size: 18px; letter-spacing: .5em; padding-left: .5em;
  color: #fbf5e4; text-shadow: 0 2px 0 rgba(0,0,0,.5);
  background: #0c4a2e; padding: 0 6px 0 calc(6px + .5em); border-radius: 4px;
}
.dia-line { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.dia-line line { stroke: var(--chalk); stroke-width: 2px; vector-effect: non-scaling-stroke; }
.bigbox .bighalf + .bighalf { border: none; }
.dp .lbl { white-space: nowrap; font-size: 19px; letter-spacing: .14em; padding-left: .14em; }

/* Big 6/8 sized down to one column */
.bigbox .bighalf i { font-size: 40px; }
.bigbox .b6 i { left: 12%; bottom: 6%; }
.bigbox .b8 i { right: 12%; top: 5%; }
.bigbox .big-word { font-size: 12px; letter-spacing: .35em; transform: translate(-50%, -50%) rotate(62deg); padding: 0 4px 0 calc(4px + .35em); }
.bigbox .bighalf .spot { transform: scale(.62); }
.bigbox .b6 .spot { left: 6px; right: auto; top: 46%; bottom: auto; transform-origin: left top; }
.bigbox .b8 .spot { right: 6px; left: auto; bottom: 46%; top: auto; transform-origin: right bottom; }

/* =====================================================================
   Round 8: props tabs, hop bets, Fire Bet, quick bets, shooter, other
   players' chips, reactions, stats, hot streak, phone layout
   ===================================================================== */

/* ---------- props tabs ---------- */
.ptabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.ptab {
  height: 26px; border-radius: 7px; cursor: pointer; font-family: var(--display); font-weight: 800; font-size: 11px; letter-spacing: .15em;
  border: 1px solid rgba(242,207,107,.45); background: rgba(0,0,0,.3); color: #cdbb8e;
}
.ptab.on { background: linear-gradient(180deg, #f6dc8a, #c8961e); color: #2a1a00; border-color: #fff0b8; }
.ppane { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 6px; }
.props .sub-title small { font-size: 8px; letter-spacing: 1px; opacity: .8; }

/* hardway "rolls since last" counters */
.since { font-size: 9px; letter-spacing: .5px; color: #cfe3d6; background: rgba(0,0,0,.35); padding: 0 5px; border-radius: 6px; white-space: nowrap; }
.props .hard-z { min-height: 58px; }

/* Fire Bet */
.fire-z { justify-content: space-between !important; padding-left: 10px !important; padding-right: 10px !important; border-color: rgba(255,170,60,.85) !important; background: linear-gradient(90deg, rgba(120,50,0,.35), rgba(0,0,0,.1)); }
.fire-z .prop-name { font-size: 14px; color: #ffcf7a; }
.fire-lamps { display: flex; gap: 3px; margin-right: 34px; }
.fire-lamps i {
  width: 19px; height: 19px; border-radius: 50%; display: grid; place-items: center; font-style: normal;
  font-size: 9.5px; font-weight: 700; color: #a89574; background: rgba(0,0,0,.45); box-shadow: inset 0 1px 2px #000, 0 0 0 1px rgba(255,200,120,.25);
}
.fire-lamps i.lit { color: #2a1200; background: radial-gradient(circle at 40% 35%, #fff2c0, #ffb347 55%, #c46a12); box-shadow: 0 0 9px rgba(255,170,60,.95); }

/* Hop bets */
.ppane.hops { gap: 6px; }
.hopgrid { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 1fr; gap: 5px; min-height: 0; }
.hop-z { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 2px !important; min-height: 0 !important; border-color: rgba(255,255,255,.55) !important; }
.hop-z .mdie { width: 19px; height: 19px; }
.hop-z .prop-pay { font-size: 11px; }
.hop-z.hard { background: rgba(150, 20, 20, .14); }
.hop-z .spot { right: 2px !important; transform: translateY(-50%) scale(.6) !important; }

/* ---------- other players' chips ---------- */
.others { position: absolute; left: 3px; top: 3px; display: flex; gap: 2px; z-index: 4; pointer-events: none; }
.others i {
  width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-style: normal;
  font-size: 8px; font-weight: 700; color: #fff; letter-spacing: 0;
  background: hsl(var(--h, 200) 55% 40%); border: 1.5px dashed rgba(255,255,255,.8); box-shadow: 0 1px 3px rgba(0,0,0,.6);
}
.others i.more { background: #222; border-style: solid; }
.pbox .place > .others { top: auto; bottom: 4px; left: 4px; }

/* ---------- tray: two rows of buttons ---------- */
.actions { flex-direction: column; gap: 6px; }
.arow { display: flex; gap: 8px; }
.arow .btn { height: 44px; min-width: 86px; }
.arow .btn b { font-size: 15px; }
.qbtn {
  flex: 1; height: 30px; padding: 0 6px; border-radius: 7px; cursor: pointer;
  font-family: var(--ui); font-size: 12px; font-weight: 600; letter-spacing: 1px;
  border: 1px solid #4a3a22; background: linear-gradient(180deg, #2a2014, #15100a); color: #e8d7ad;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 2px 0 #0a0704;
}
.qbtn:hover { border-color: var(--gold); }
.qbtn:disabled { opacity: .4; cursor: default; border-color: #4a3a22; }
.qbtn.toggle.on { background: linear-gradient(180deg, #6a4a10, #3a2806); border-color: #ffb347; color: #ffd27a; }

/* ---------- shooter ROLL button ---------- */
.shoot-btn {
  width: 66px; height: 66px; border-radius: 50%; cursor: pointer; margin-left: 6px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0;
  border: 2px solid #fff0b8; color: #2a1a00;
  background: radial-gradient(circle at 40% 30%, #fff3c4, #f2cf6b 45%, #a8761c);
  box-shadow: 0 0 0 3px rgba(0,0,0,.5), 0 0 22px rgba(242,207,107,.7);
  animation: shootPulse 1.2s ease-in-out infinite;
}
.shoot-btn b { font-family: var(--display); font-weight: 900; font-size: 17px; letter-spacing: 1px; }
.shoot-btn small { font-size: 8px; letter-spacing: 1px; opacity: .7; }
.shoot-btn:disabled { animation: none; filter: grayscale(.6) brightness(.7); cursor: default; }
@keyframes shootPulse { 50% { box-shadow: 0 0 0 3px rgba(0,0,0,.5), 0 0 34px rgba(242,207,107,1); transform: scale(1.05); } }

/* ---------- hot shooter ---------- */
#stage.is-hot .rail { animation: hotRail 1.6s ease-in-out infinite; }
@keyframes hotRail {
  50% { box-shadow: 0 0 0 2px #ffb347, 0 0 0 4px #000, 0 0 46px rgba(255,170,60,.75), 0 20px 50px rgba(0,0,0,.8), inset 0 2px 2px rgba(255,255,255,.15); }
}
.callout.hotshot {
  background: radial-gradient(ellipse at 50% 0%, rgba(150,80,10,.97), rgba(40,18,2,.97) 75%);
  border: 2px solid #ffcf7a; box-shadow: 0 0 0 5px rgba(0,0,0,.35), 0 18px 40px rgba(0,0,0,.7), 0 0 50px rgba(255,170,60,.5);
}
.callout.hotshot b { color: #fff0c8; text-shadow: 0 2px 0 #6a3a00, 0 0 18px rgba(255,190,90,.6); }

/* ---------- reactions ---------- */
.reacts { display: flex; justify-content: space-between; margin-top: 6px; }
.reacts button {
  width: 34px; height: 28px; border-radius: 8px; cursor: pointer; font-size: 16px; line-height: 1; padding: 0;
  border: 1px solid #2c3a31; background: rgba(255,255,255,.04);
}
.reacts button:hover { border-color: var(--gold); transform: translateY(-2px); }
.emoji-float { position: absolute; font-size: 56px; line-height: 1; text-align: center; pointer-events: none; z-index: 6; filter: drop-shadow(0 4px 8px rgba(0,0,0,.6)); }
.emoji-float small { display: block; font-size: 13px; font-weight: 600; color: #fff; text-shadow: 0 1px 3px #000; font-family: var(--ui); }

/* ---------- modals: stats, kicked, join extras ---------- */
.modal-card { position: relative; }
.modal-x { position: absolute; top: 12px; right: 14px; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--gold-2); background: rgba(0,0,0,.4); color: var(--gold); cursor: pointer; font-size: 15px; }
.modal-card a { color: var(--gold); }
.stats-card { width: min(1120px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow: auto; text-align: left; padding: 24px 28px; }
.stats-card h1 { text-align: center; font-size: 26px; }
.stats-grid { display: grid; grid-template-columns: 1.1fr 1.2fr 1fr; gap: 22px; margin-top: 12px; }
.stats-card h2 { font-family: var(--display); font-size: 13px; letter-spacing: .2em; color: var(--gold); margin: 14px 0 8px; font-weight: 800; }
.stats-card section > h2:first-child { margin-top: 0; }
.st-note { color: #c4d6cb; font-size: 14px; margin: 4px 0 10px; }
.leaders { display: flex; flex-direction: column; gap: 5px; }
.lrow { display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 2px 8px; padding: 7px 10px; border-radius: 8px; background: rgba(0,0,0,.25); }
.lrow.me { outline: 1px solid rgba(242,207,107,.6); background: rgba(242,207,107,.1); }
.lrow .rank { font-size: 18px; text-align: center; }
.lrow .lname { font-size: 17px; font-weight: 600; }
.lrow .lnet { font-size: 17px; font-variant-numeric: tabular-nums; }
.lrow small { grid-column: 2 / 4; font-size: 11px; color: #a9bdb1; }
.pos { color: var(--green); }
.neg { color: #ff8a7a; }
.st-table { display: flex; flex-direction: column; gap: 3px; }
.strow { display: flex; justify-content: space-between; gap: 10px; padding: 5px 8px; border-bottom: 1px solid rgba(255,255,255,.07); font-size: 14px; }
.strow span { color: #b9cbbf; }
.strow b { font-weight: 600; text-align: right; }
.freq { display: grid; grid-template-columns: repeat(11, 1fr); gap: 4px; align-items: end; }
.fcol { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; }
.fcol b { font-size: 11px; color: #e8f0eb; }
.fcol span { color: #a9bdb1; }
.fbar { position: relative; width: 100%; height: 110px; }
.fbar i { position: absolute; left: 0; right: 0; bottom: 0; border-radius: 3px 3px 0 0; }
.fbar .got { left: 18%; right: 18%; background: linear-gradient(180deg, var(--gold), var(--gold-3)); }
.fbar .exp { border: 1px dashed rgba(255,255,255,.45); border-bottom: none; background: rgba(255,255,255,.04); }
.fcol.seven .got { background: linear-gradient(180deg, #ffb347, #8a4a0a); }
.pin-form { display: flex; gap: 8px; }
.pin-form input { flex: 1; min-width: 0; height: 44px !important; font-size: 18px !important; margin: 0 !important; }
.pin-form .btn { height: 44px; min-width: 0; }
#join-invite, #join-pin { margin-top: 2px; }

/* ---------- phone / small screens: bigger felt, chat in a drawer ---------- */
.menu-btn { display: none !important; }
body.compact .menu-btn { display: grid !important; }
body.compact main { grid-template-columns: 1fr 330px; }
body.compact .wins { display: none; }
body.compact .players-panel, body.compact .chat { display: none; }
body.compact.drawer-open .players-panel { display: block; }
body.compact.drawer-open .chat { display: flex; }
body.compact.drawer-open .dome-wrap, body.compact.drawer-open .side > .panel:first-of-type { display: none; }
body.compact.drawer-open .menu-btn { border-color: var(--gold); }
body.compact .tray { grid-template-columns: auto auto; justify-content: space-between; }
body.compact .infobox { display: none; }
body.compact .brand-sub, body.compact .meter:nth-child(3) { display: none; }
body.compact .topbar { grid-template-columns: 300px 1fr auto; }
.fire-z .prop-name { white-space: nowrap; font-size: 13px; letter-spacing: .5px; }
.fire-lamps { margin-right: 30px; gap: 2px; }
.fire-lamps i { width: 17px; height: 17px; font-size: 9px; }
body.compact .players-panel { display: block; }
body.compact .players { max-height: 140px; }
body.compact.drawer-open .players-panel { display: none; }

/* =====================================================================
   Round 9: Big 6/8 on the right, canvas dice, no 3D layers, no red
   flashes, DONE button, marquee lights, glow and celebrations
   ===================================================================== */

/* Big 6/8 at the right end of the Field and Don't Pass */
.felt {
  grid-template-areas:
    "dc   p4   p5   p6   p8   p9   p10  props"
    "ats  come come come come come come props"
    "ats  field field field field field big props"
    "ats  dp   dp   dp   dp   dpo  big props"
    "ats  pass pass pass pass pass po   props";
}
.bigbox { border-radius: 10px; }

/* dice canvas inside the dome; the glass and glint sit on top */
#dice-cv { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.dome .glass, .dome .glint { z-index: 2; }

/* no 3D layers anywhere, and no blur filters over the page */
#fx { perspective: none; }
.modal { backdrop-filter: none; background: rgba(0,0,0,.8); }

/* nothing flashes red: losing spots just dim for a moment */
.z.flash-lose { animation: flashLoseDim 1s ease-out; }
@keyframes flashLoseDim { 0% { background: rgba(0,0,0,.3); } 100% { background: transparent; } }
.btn.toggle.on { background: linear-gradient(180deg, #6a4a10, #3a2806); border-color: #ffb347; color: #ffd27a; }
.win-banner.lose { border-color: #5a5246; box-shadow: 0 20px 40px rgba(0,0,0,.7); }
.win-banner.lose small { color: #d8cfbd; }
.win-banner.lose .amt { color: #ece4d4; text-shadow: 0 3px 0 rgba(0,0,0,.6); }
.float.lose { color: #f1d9cf; }
.dome-base .call.seven { color: #ffcf80; text-shadow: 0 0 8px rgba(255,180,80,.6); }

/* DONE BETTING button (replaces the shooter's ROLL) */
.ready-btn {
  height: 54px; min-width: 92px; padding: 0 14px; margin-left: 8px; border-radius: 27px; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0;
  border: 2px solid var(--gold-2); color: #f6e3a8; background: linear-gradient(180deg, #2a2112, #120d06);
  box-shadow: 0 0 0 2px rgba(0,0,0,.5), 0 4px 10px rgba(0,0,0,.5);
  transition: background .2s, border-color .2s, box-shadow .2s;
}
.ready-btn b { font-family: var(--display); font-weight: 900; font-size: 16px; letter-spacing: 2px; padding-left: 2px; }
.ready-btn small { font-size: 9px; letter-spacing: 1px; opacity: .8; }
.ready-btn:hover { border-color: var(--gold); }
.ready-btn.on { background: linear-gradient(180deg, #1f7a4a, #0b3a22); border-color: #8dffb3; color: #eafff1; box-shadow: 0 0 0 2px rgba(0,0,0,.5), 0 0 18px rgba(79,224,138,.6); }
.ready-btn.on b::before { content: '✓ '; }

/* ---------- marquee lights around the rail ---------- */
.rail { position: relative; }
.marquee { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.marquee rect { fill: none; stroke-linecap: round; }
.marquee .bulbs-base { stroke: rgba(255,226,150,.22); stroke-width: 5; stroke-dasharray: 0 20; }
.marquee .bulbs-glow { stroke: rgba(242,207,107,.28); stroke-width: 13; stroke-dasharray: 0 40; animation: chase 1.8s linear infinite; }
.marquee .bulbs { stroke: #fff1c2; stroke-width: 5.5; stroke-dasharray: 0 40; animation: chase 1.8s linear infinite; }
@keyframes chase { to { stroke-dashoffset: -40; } }
#stage.lights-win .marquee .bulbs, #stage.lights-win .marquee .bulbs-glow { animation-duration: .3s; }
#stage.lights-win .marquee .bulbs-glow { stroke: rgba(255,240,190,.75); stroke-width: 17; }
#stage.lights-win .marquee .bulbs { stroke: #fff; }
#stage.is-hot .marquee .bulbs { stroke: #ffd27a; }
#stage.is-hot .marquee .bulbs-glow { stroke: rgba(255,170,60,.6); stroke-width: 16; }
#stage.is-hot .marquee .bulbs, #stage.is-hot .marquee .bulbs-glow { animation-duration: .7s; }
#stage.urgent .marquee .bulbs, #stage.urgent .marquee .bulbs-glow { animation-duration: .45s; }

/* countdown: the rail pulses amber in the last 3 seconds */
#stage.urgent .rail { animation: urgentRail .5s ease-in-out infinite alternate; }
@keyframes urgentRail { to { box-shadow: 0 0 0 2px #ffb347, 0 0 0 4px #000, 0 0 40px rgba(255,180,70,.6), 0 20px 50px rgba(0,0,0,.8); } }

/* light sweep across the felt when betting opens */
.felt > .sheen { position: absolute; inset: 0; overflow: hidden; border-radius: 22px; pointer-events: none; z-index: 6; }
.sheen i { position: absolute; top: -10%; bottom: -10%; left: -35%; width: 28%; background: linear-gradient(100deg, transparent, rgba(255,250,220,.16) 50%, transparent); transform: translateX(0) skewX(-14deg); opacity: 0; }
.sheen i.go { animation: sheenGo 1.2s cubic-bezier(.3,.6,.4,1); }
@keyframes sheenGo { 0% { transform: translateX(0) skewX(-14deg); opacity: 1; } 100% { transform: translateX(560%) skewX(-14deg); opacity: 1; } }

/* golden glow around the screen edges for big wins */
.edge-glow { position: absolute; inset: 0; pointer-events: none; z-index: 38; opacity: 0; box-shadow: inset 0 0 160px 40px rgba(242,207,107,.5); }
#stage.glow-win .edge-glow { animation: edgeGlow 2.4s ease-out; }
@keyframes edgeGlow { 0% { opacity: 0; } 12% { opacity: 1; } 40% { opacity: .6; } 55% { opacity: .95; } 100% { opacity: 0; } }

/* sparkles, confetti and chip ripples */
.spark { position: absolute; width: 9px; height: 9px; border-radius: 2px; pointer-events: none; box-shadow: 0 0 10px rgba(255,240,180,.95); }
.confetti { position: absolute; width: 8px; height: 13px; border-radius: 2px; pointer-events: none; }
.ripple { position: absolute; width: 56px; height: 56px; border-radius: 50%; pointer-events: none; border: 3px solid rgba(255,240,190,.9); box-shadow: 0 0 14px rgba(242,207,107,.8), inset 0 0 10px rgba(242,207,107,.5); }

/* winning spots glow harder */
@keyframes flashWin {
  0% { background: rgba(255,240,190,.55); box-shadow: 0 0 40px #f2cf6b, inset 0 0 36px #f2cf6b; }
  35% { background: rgba(242,207,107,.4); box-shadow: 0 0 28px #f2cf6b, inset 0 0 26px #f2cf6b; }
  100% { background: transparent; }
}

/* Small / Tall / All with one number to go: blink and glow */
.atscol .ats.one-to-go { animation: oneToGo .7s ease-in-out infinite alternate; }
@keyframes oneToGo { to { box-shadow: 0 0 0 2px #fff1c2, 0 0 22px rgba(242,207,107,.9); background-color: rgba(242,207,107,.16); } }

/* the ON puck glows */
.puck.on { box-shadow: 0 4px 8px rgba(0,0,0,.6), 0 0 16px rgba(255,255,255,.55), inset 0 -3px 6px rgba(0,0,0,.35); }

/* Big 6/8 only as tall as the Field, so Lay Odds sits right above Pass Line Odds */
.felt {
  grid-template-areas:
    "dc   p4   p5   p6   p8   p9   p10  props"
    "ats  come come come come come come props"
    "ats  field field field field field big props"
    "ats  dp   dp   dp   dp   dp   dpo  props"
    "ats  pass pass pass pass pass po   props";
}

/* ---------- a place number on fire (rolled twice in a row) ---------- */
.pbox.on-fire { border-color: #ffcf5a; box-shadow: 0 0 0 2px rgba(255,170,60,.8), 0 0 26px rgba(255,150,40,.75), inset 0 -30px 40px rgba(255,140,30,.35); animation: fireBox .9s ease-in-out infinite alternate; }
.pbox.on-fire .num { color: #fff6d0; text-shadow: 0 0 6px #ffcf5a, 0 0 18px #ff9a2e, 0 2px 0 #7a3a00; }
@keyframes fireBox { to { box-shadow: 0 0 0 2px rgba(255,200,90,.95), 0 0 40px rgba(255,160,40,.95), inset 0 -40px 50px rgba(255,150,30,.45); } }
.flames { position: absolute; left: 0; right: 0; bottom: 0; height: 100%; pointer-events: none; z-index: 2; overflow: hidden; border-radius: 0 0 8px 8px; }
.flames i {
  position: absolute; bottom: -6%; width: 15%; height: var(--h); transform-origin: 50% 100%;
  border-radius: 50% 50% 35% 35% / 70% 70% 30% 30%;
  background: radial-gradient(ellipse at 50% 85%, rgba(255,252,220,.95) 0%, rgba(255,214,90,.85) 22%, rgba(255,150,40,.6) 50%, rgba(255,110,20,0) 75%);
  animation: flame var(--d) ease-in-out var(--delay) infinite alternate;
}
.flames b { position: absolute; bottom: 8%; width: 4px; height: 4px; border-radius: 50%; background: #ffd27a; box-shadow: 0 0 6px #ffb347; animation: ember var(--d) linear var(--delay) infinite; }
@keyframes flame {
  0% { transform: scale(.85, .7) skewX(-4deg); opacity: .75; }
  50% { transform: scale(1.05, 1.05) skewX(3deg); opacity: 1; }
  100% { transform: scale(.9, 1.2) skewX(-2deg); opacity: .85; }
}
@keyframes ember { 0% { transform: translate(0, 0); opacity: 0; } 15% { opacity: 1; } 100% { transform: translate(6px, -110px); opacity: 0; } }
.pbox.inferno .flames i { height: calc(var(--h) * 1.5); width: 19%; }
.pbox.inferno { animation-duration: .5s; }
/* keep chips and the puck above the flames */
.pbox.on-fire .spot { z-index: 4; }
/* flames: wider teardrops low in the box, behind the number */
.flames { z-index: 0; }
.pbox.on-fire > .z { z-index: 1; }
.flames i { width: 24%; filter: none; }
.pbox.inferno .flames i { height: calc(var(--h) * 1.6); width: 28%; }

/* ---------- Small / Tall / All heating up ---------- */
.atscol .ats > .lamps, .atscol .ats > .ats-text { position: relative; z-index: 1; }
.atscol .ats.ats-smolder { border-color: #ffcf7a; box-shadow: 0 0 14px rgba(255,160,50,.45), inset 0 -24px 30px rgba(255,140,30,.18); }
.atscol .ats.ats-fire { border-color: #ffd27a; animation: atsFire .8s ease-in-out infinite alternate; }
@keyframes atsFire {
  from { box-shadow: 0 0 0 2px rgba(255,170,60,.7), 0 0 22px rgba(255,150,40,.7), inset 0 -30px 36px rgba(255,140,30,.3); }
  to { box-shadow: 0 0 0 2px rgba(255,210,110,.95), 0 0 36px rgba(255,170,50,.95), inset 0 -40px 44px rgba(255,150,30,.42); }
}
.atscol .ats.ats-fire.one-to-go { animation: atsFire .8s ease-in-out infinite alternate; }
.atscol .ats .flames { border-radius: 0 0 8px 8px; }
.atscol .ats.ats-fire .flames i { width: 34%; }
.atscol .lamp.need { color: #2a1200; background: radial-gradient(circle at 40% 35%, #fff2c0, #ffb347 60%, #c46a12); animation: needPulse .55s ease-in-out infinite alternate; }
@keyframes needPulse { from { box-shadow: 0 0 4px rgba(255,180,70,.6); transform: scale(1); } to { box-shadow: 0 0 14px rgba(255,200,90,1); transform: scale(1.18); } }
.callout.long b { font-size: 42px; letter-spacing: .1em; }

/* ---------- accounts: sign in / create account / password / account panel ---------- */
.auth-card { width: min(440px, calc(100vw - 32px)); max-height: calc(100vh - 24px); overflow: auto; padding: 24px 28px 22px; }
.auth-card h1 { font-size: 26px; }
.auth-card .logo.big { width: 64px; height: 64px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 14px 0 6px; padding: 4px; border-radius: 12px; background: rgba(0,0,0,.35); border: 1px solid #5a4528; }
.auth-tab { height: 38px; border: 0; border-radius: 9px; background: transparent; color: #cfdccf; font-family: var(--ui); font-weight: 600; font-size: 14px; letter-spacing: .08em; cursor: pointer; }
.auth-tab:hover { color: #fff; }
.auth-tab.on { background: linear-gradient(#f6dc8a, #c89b3c); color: #2a1a05; }
.auth-lead { font-size: 15px; margin: 10px 0 14px !important; min-height: 2.6em; }
#auth-form:not(.signup) .signup-only { display: none; }
.fld { display: block; text-align: left; margin-bottom: 10px; }
.fld > span { display: block; font-size: 13px; letter-spacing: .06em; color: #b9cdbf; margin: 0 0 4px 2px; }
.fld input, .account-card .fld input { height: 46px; font-size: 18px; text-align: left; padding: 0 14px; letter-spacing: .02em; margin: 0; }
.auth-card .btn.wide { height: 50px; margin-top: 2px; }
.auth-card .btn:disabled, .account-card .btn:disabled { opacity: .45; cursor: not-allowed; }
.auth-card small a, #pwc-logout { color: var(--gold); }

.account-card { width: min(820px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow: auto; text-align: left; padding: 24px 28px; }
.account-card h1 { text-align: center; font-size: 26px; }
.account-card h2 { font-family: var(--display); font-size: 13px; letter-spacing: .2em; color: var(--gold); margin: 0 0 10px; font-weight: 800; }
.acct-who { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 6px 0 2px; font-size: 20px; color: #fff; }
.acct-admin { display: block; text-align: center; margin: 4px 0 0; font-size: 15px; }
.role-tag { font-size: 11px; font-weight: 700; letter-spacing: .14em; padding: 3px 8px; border-radius: 999px; border: 1px solid #6f8b78; color: #cfe0d4; }
.role-tag.admin { border-color: var(--gold); color: var(--gold); }
.role-tag.owner { background: linear-gradient(#f6dc8a, #c89b3c); border-color: transparent; color: #2a1a05; }
.acct-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 18px; }
.acct-grid .st-note { margin-top: 8px; }
.devices { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.device { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 10px; background: rgba(0,0,0,.3); border: 1px solid #3d5a47; }
.device b { color: #fff; font-weight: 600; }
.device small { display: block; margin-top: 2px; color: #9fb7a8; font-size: 13px; }
.this-dev { margin-left: 8px; font-size: 10px; font-weight: 700; letter-spacing: .12em; color: var(--gold); }
.dev-out { flex: none; height: 32px; padding: 0 12px; border-radius: 8px; border: 1px solid #8a5a4a; background: rgba(120,30,20,.35); color: #ffc9bc; cursor: pointer; font-family: var(--ui); }
.dev-out:hover { background: rgba(160,40,25,.55); }
.acct-logout { margin-top: 20px; height: 48px; }
a.icon-btn { display: grid; place-items: center; text-decoration: none; }
@media (max-width: 700px) { .acct-grid { grid-template-columns: 1fr; } }

/* ?debug preview panel */
.dbg-panel { position: fixed; left: 12px; bottom: 12px; z-index: 200; display: flex; gap: 6px; align-items: center; padding: 8px 10px; border-radius: 10px; background: rgba(0,0,0,.82); border: 1px solid #ff4fb8; font: 600 12px sans-serif; color: #ff8ad6; }
.dbg-panel button { font: 600 13px sans-serif; padding: 7px 12px; border-radius: 8px; border: 1px solid #fff; background: #ff3fae; color: #fff; cursor: pointer; }
.dbg-panel button:hover { background: #ff6cc6; }
