: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 ---------- */
.bigcol { grid-area: big; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 46px; }
.big {
  width: 70px; height: 70px; transform: rotate(45deg);
  display: grid; place-items: center;
  background: rgba(150, 20, 20, .25);
}
.big > div:first-child { transform: rotate(-45deg); line-height: 1; }
.big b { display: block; font-family: var(--display); font-size: 12px; letter-spacing: 1px; }
.big i { font-style: normal; font-family: var(--display); font-weight: 900; font-size: 32px; color: #ff5a48; text-shadow: 0 2px 0 rgba(0,0,0,.5), 0 0 8px rgba(255,90,72,.35); }
.big .float { rotate: -45deg; }
.big .spot { left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-45deg); }

/* ---------- 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.big { 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); }
.hot { margin-top: 8px; display: grid; grid-template-columns: repeat(11, 1fr); gap: 2px; align-items: end; height: 46px; }
.hot div { background: linear-gradient(180deg, var(--gold), var(--gold-3)); border-radius: 2px 2px 0 0; min-height: 2px; position: relative; }
.hot div.seven { background: linear-gradient(180deg, #ff6a5a, #7a1a12); }
.hot div::after { content: attr(data-n); position: absolute; bottom: -14px; left: 0; right: 0; text-align: center; font-size: 9px; color: #8f7f64; }
.hot { 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; }
#join-pass-wrap[hidden] { display: none; }


.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); }
