/* Room design contract: table identity is decorative; state always has a text label.
   These rules apply to the normal /table/ page. They do not enable display-mode. */
body.vice-tables {
  --room-table-one: #a7d68d;
  --room-table-two: #9dded0;
  --room-ink: #fff4ed;
  --room-reward: #ffc2a4;
  --room-muted: #b7cabe;
  --room-border: #d7eee226;
  --room-radius: 6px;
  --room-warning: #ffd09b;
  --room-warning-bg: #38251d;
  --bg: #12231a;
  --bg-soft: #11251a;
  --card: #14271e;
  --text: #f1f6ed;
  --muted: #b7cabe;
  --accent: #b8dea0;
  --accent-2: #9dded0;
}

/* BILLARD / permanent room screen — normal operation, no display-mode required.
   Two large playing areas, readable queues, rewards and a compact bottom tool dock. */
body.vice-tables.vice-theme:not(.display-mode){height:100dvh;overflow:hidden;background:#12231a}
html:has(body.vice-tables:not(.display-mode)){height:100%;overflow:hidden}
body.vice-tables.vice-theme:not(.display-mode) .page{display:flex;flex-direction:column;width:100%;max-width:none;height:100dvh;min-height:0;gap:10px;padding:12px 16px 8px;overflow:hidden}
body.vice-tables.vice-theme:not(.display-mode) .tables{order:0;flex:1;min-height:0;gap:16px;grid-auto-rows:minmax(0,1fr)}
body.vice-tables.vice-theme:not(.display-mode) .topbar{order:-2;flex:0 0 auto;min-height:40px;height:auto;padding:0 0 7px;margin:0;gap:16px;flex-wrap:nowrap;border:0;border-bottom:1px solid #d7eee220}
.vice-tables .topbar::after{display:none}
.vice-tables.vice-theme .topbar>.brand{display:flex;align-items:center;gap:24px;flex-shrink:0}
.vice-dock-brand{font:700 20px/.9 var(--vice-display);letter-spacing:.2px;text-decoration:none;display:flex;align-items:center;gap:12px;color:#fff1e9;white-space:nowrap}
.vice-dock-brand>span{font:500 7px/1.2 'Space Grotesk',sans-serif;color:#a7c0af;letter-spacing:1.8px;padding-left:12px;border-left:1px solid #d7eee230}
.vice-tables .brand .vice-connection{font-size:9px;color:#b7cabe}
.vice-tables .controls .toggle:has(#displayToggle){display:none}
.vice-tables.vice-theme .controls{max-width:none;width:auto;gap:6px;margin-left:auto;flex-wrap:nowrap}
.vice-tables.vice-theme .controls .icon-btn{min-height:32px;height:32px;padding:6px 10px;font-size:9px;letter-spacing:.3px}
.vice-tables.vice-theme .controls .laugh-btn{height:32px;width:32px;font-size:18px}
body.vice-tables.vice-theme:not(.display-mode) .milestones{order:-1;flex:0 0 auto;display:grid;grid-template-columns:150px minmax(0,1fr);align-items:center;gap:18px;padding:12px 16px;background:#294432;border:1px solid #cce8b455;border-radius:8px}
.vice-tables.vice-theme .milestones-grid{gap:12px}
.vice-tables.vice-theme .milestone{padding:0;border:0;border-radius:0;background:transparent;gap:10px;box-shadow:none}
.vice-tables.vice-theme .milestone::before,.vice-tables.vice-theme .milestone::after{display:none}
.vice-tables.vice-theme .milestone:not(:last-child){border-right:1px solid #d7eee228}
.vice-tables.vice-theme .milestone .milestone-chip{font:600 clamp(15px,1.15vw,28px)/1 var(--vice-display);padding:0;color:#ecf5eb;gap:5px}
.vice-tables .milestone-chip:not(.payout)::after{content:'WINS';font:500 clamp(9px,.65vw,16px)/1 'Space Grotesk',sans-serif;color:#b7cabe;margin-left:2px}
.vice-tables .milestone-chip.payout::before{content:'→';color:#90af9c;margin-right:5px}
.vice-tables .milestone .milestone-chip.payout{color:#ffc2a4}
.vice-tables .milestone-chip .icon{display:none}
.vice-tables .milestone .milestone-chip .unit{font:500 clamp(9px,.65vw,16px)/1 'Space Grotesk',sans-serif;color:#bfd4c5}
body.vice-tables.vice-theme:not(.display-mode) .table-card{display:flex;min-height:0;min-width:0;padding:clamp(16px,1.5vw,36px);border:1px solid #a7d68d3d;border-radius:10px;background:linear-gradient(160deg,#294634 0%,#1c3226 60%);gap:clamp(12px,1.4vh,24px)}
body.vice-tables.vice-theme:not(.display-mode) .table-card:nth-child(2){border-color:#9dded03d;background:linear-gradient(160deg,#234538 0%,#172f25 60%)}
.vice-tables .table-card::before{height:3px;opacity:1}
body.vice-tables.vice-theme:not(.display-mode) .table-head{display:grid;grid-template-columns:minmax(0,1fr) auto auto;min-height:clamp(42px,5vh,76px);margin:0;gap:16px;flex:0 0 auto}
.vice-tables.vice-theme .table-title{justify-self:start;grid-column:1;grid-row:1;gap:10px;min-width:0}
.vice-tables.vice-theme .table-name{max-width:clamp(120px,18vw,500px);font:600 clamp(28px,2.2vw,64px)/1 var(--vice-display);letter-spacing:.5px;color:var(--room-ink)}
.vice-tables.vice-theme .table-chip{width:clamp(30px,2.6vw,60px);height:clamp(30px,2.6vw,60px);font:600 clamp(20px,1.6vw,42px)/1 var(--vice-display);background:var(--room-table-one);color:#122213;border:0;border-radius:6px;flex-shrink:0}
.vice-tables.vice-theme .table-card:nth-child(2) .table-chip{background:var(--room-table-two);color:#10241d}
.vice-tables.vice-theme .table-right{grid-column:auto;justify-self:end;margin:0}
.vice-tables.vice-theme .table-status::after{font-size:clamp(10px,.85vw,22px);letter-spacing:2px}
.vice-tables.vice-theme .table-status::before{width:7px;height:7px}
.vice-tables.vice-theme .match-timer{background:#ffffff08;border:1px solid var(--room-border);border-radius:5px;color:#e0eee5;padding:8px 10px;font-size:clamp(15px,1.25vw,36px);font-weight:500;gap:7px}
.vice-tables .match-timer .icon{width:clamp(14px,1.1vw,24px);height:clamp(14px,1.1vw,24px)}
body.vice-tables.vice-theme:not(.display-mode) .match{flex:0 0 clamp(250px,29vh,560px);min-height:0;display:grid;grid-template-columns:minmax(0,1fr) clamp(28px,2.4vw,58px) minmax(0,1fr);grid-template-rows:minmax(0,1fr);align-items:stretch;gap:clamp(6px,.7vw,18px);margin:0;position:relative}
body.vice-tables.vice-theme:not(.display-mode) .player-slot{background:#365b44;border:1px solid #c2e4c92e;border-radius:7px;min-height:0;padding:14px 16px;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto auto;align-items:center;gap:10px;overflow:hidden;position:relative}
body.vice-tables.vice-theme:not(.display-mode) .table-card:nth-child(2) .player-slot{background:#2d5445;border-color:#b9e6ce25}
body.vice-tables.vice-theme:not(.display-mode) .player-slot.empty{background:#ffffff03;border:1px dashed #d7eee232}
.vice-tables.vice-theme .player-name{font:600 clamp(30px,2.7vw,90px)/1.1 var(--vice-display);letter-spacing:.2px;width:100%;color:var(--room-ink);min-width:0}
.vice-tables.vice-theme .player-slot.empty .player-name{font:500 clamp(24px,2.1vw,64px)/1.1 var(--vice-display);color:var(--room-muted)}
.vice-tables .player-slot.empty .player-meta{font-size:clamp(13px,1.1vw,30px);color:#c5d9cb}
.vice-tables.vice-theme .player-stats{grid-column:1;grid-row:2;display:flex;align-items:center;justify-content:center;gap:12px;min-width:0}
.vice-tables.vice-theme .stat-chip.win{display:flex;flex-direction:column;align-items:center;gap:3px;padding:0;background:transparent;border:0;color:#ffd2be}
.vice-tables .stat-chip.win .win-value{font:600 clamp(42px,3.6vw,112px)/1 var(--vice-display);min-width:1.1em;text-align:center}
.vice-tables .stat-chip.win .win-unit{font:500 clamp(11px,.85vw,24px)/1 'Space Grotesk',sans-serif;letter-spacing:1px;color:#d7e9dc}
.vice-tables.vice-theme .stat-chip.payout{font-size:clamp(14px,1.2vw,34px);padding:4px 8px;border-radius:4px;color:var(--room-reward);border-color:#ffc2a43b;background:#ffc2a409}
.vice-tables.vice-theme .player-progress{grid-column:1;grid-row:3;margin:0;gap:6px;min-width:0}
.vice-tables.vice-theme .player-meta{font-size:clamp(12px,.95vw,28px);color:#e0efe3;line-height:1.4}
.vice-tables.vice-theme .player-progress progress{height:5px;background:#ffffff15}
.vice-tables .table-card:nth-child(2) .player-progress progress::-webkit-progress-value{background:var(--room-table-two)}
.vice-tables.vice-theme .slot-actions{position:absolute;inset:auto auto 8px 18px;opacity:0;transform:none;pointer-events:none;display:flex;gap:6px;margin:0;flex-shrink:0;z-index:2}
.vice-tables.vice-theme .slot-actions button{font-size:clamp(10px,.7vw,19px);padding:7px 9px;min-height:30px;border-radius:4px;border:1px solid #d7eee224;background:#12231a3d;gap:4px}
.vice-tables.vice-theme .slot-actions button.win{color:#271a2b;background:var(--room-reward);border-color:#ffc2a4}
.vice-tables.vice-theme .slot-actions button .icon{width:13px;height:13px}
.vice-tables.vice-theme .versus{display:flex;flex-direction:column;align-self:stretch;align-items:center;justify-content:center;gap:14px;border:0;border-radius:0;width:auto;height:auto;min-width:0;background:none;color:#c5ddcb;font:600 clamp(20px,1.5vw,42px)/1 var(--vice-display);letter-spacing:1px;box-shadow:none;text-shadow:none;animation:none}
.vice-tables.vice-theme .queue{min-height:0;flex:1;gap:10px}
.vice-tables.vice-theme .queue-head{margin:0;padding-top:5px;flex-wrap:nowrap;gap:12px;flex:0 0 auto}
.vice-tables.vice-theme .queue-label{font-size:clamp(13px,1vw,30px);letter-spacing:1px;font-weight:500;color:#d7ebdc;gap:10px;white-space:nowrap}
.vice-tables.vice-theme .queue-count{font-size:clamp(14px,1.05vw,30px);font-weight:600;background:#ffffff09;border:1px solid var(--room-border);color:#fff1e9;border-radius:4px;padding:3px 9px}
.vice-tables.vice-theme .queue-head .input-row{flex:1;max-width:270px;min-width:0;gap:6px}
.vice-tables.vice-theme .queue-head .input-row input{max-width:none;height:36px;min-width:0;font-size:12px}
.vice-tables.vice-theme .queue-head .input-row button{width:36px;min-height:36px;padding:8px}
.vice-tables.vice-theme .queue-list{min-height:0;flex:1;gap:7px;overflow-y:auto;scrollbar-width:thin;scrollbar-gutter:stable;padding-right:5px}
.vice-tables.vice-theme .queue-item{flex-shrink:0;padding:clamp(10px,1vh,22px) 12px;gap:12px;min-height:clamp(50px,5.7vh,124px);background:#ffffff05;border:1px solid #d7eee220;border-radius:5px;font-size:clamp(23px,1.8vw,64px)}
.vice-tables.vice-theme .queue-item.next-up{background:#ffc2a40e;border-color:#ffc2a452}
.vice-tables.vice-theme .queue-position{font-size:clamp(14px,1.2vw,32px);min-width:30px;color:#a6c4ae;font-weight:400}
.vice-tables.vice-theme .queue-name{min-width:0;color:#fff1e9;font:600 clamp(24px,2vw,70px)/1.15 var(--vice-display)}
.vice-tables.vice-theme .queue-badge{font:600 clamp(9px,.7vw,22px)/1 'Space Grotesk',sans-serif;border-radius:3px;padding:5px 7px;letter-spacing:1px;flex-shrink:0}
.vice-tables.vice-theme .queue-item .icon-btn{width:28px;height:28px;min-height:28px;padding:5px;opacity:.6;background:#ffffff05;flex-shrink:0}
.vice-tables .queue-item:hover .icon-btn,.vice-tables .queue-item:focus-within .icon-btn{opacity:1}
.vice-tables.vice-theme .queue-empty{flex:1;min-height:56px;display:grid;place-content:center;font-size:clamp(15px,1.15vw,30px);color:#cfdfd2;background:#ffffff02;border:1px dashed #d7eee221}
@media(max-height:800px) and (min-width:901px){body.vice-tables.vice-theme:not(.display-mode) .match{flex-basis:230px}.vice-tables.vice-theme .player-name{font-size:clamp(32px,3.4vw,60px)}.vice-tables .stat-chip.win .win-value{font-size:40px}.vice-tables.vice-theme .player-slot{gap:8px}.vice-tables.vice-theme .table-head{min-height:42px}.vice-tables.vice-theme .table-name{font-size:35px}.vice-tables.vice-theme .table-chip{width:34px;height:34px;font-size:23px}.vice-tables.vice-theme .queue-item{min-height:46px;padding:7px 10px}}
@media(max-width:1100px) and (min-width:901px){.vice-tables.vice-theme .topbar>.brand{gap:12px}.vice-tables .brand .vice-connection{display:none}.vice-dock-brand>span{display:none}.vice-tables.vice-theme .queue-item{gap:7px}.vice-tables.vice-theme .queue-item .icon-btn{width:24px;height:24px;min-height:24px}.vice-tables.vice-theme .table-status::after{font-size:9px;letter-spacing:1px}}
/* Staff phone and portrait tablet: the same controls remain available, with vertical scrolling. */
@media(max-width:900px){html:has(body.vice-tables:not(.display-mode)){height:auto;overflow-y:auto}body.vice-tables.vice-theme:not(.display-mode){height:auto;overflow-y:auto}body.vice-tables.vice-theme:not(.display-mode) .page{height:auto;min-height:100dvh;padding:10px;overflow:visible;gap:12px}body.vice-tables.vice-theme:not(.display-mode) .tables{display:flex;flex-direction:column;flex:auto;gap:14px}body.vice-tables.vice-theme:not(.display-mode) .table-card{padding:16px 12px;min-height:460px;gap:14px}body.vice-tables.vice-theme:not(.display-mode) .table-head{grid-template-columns:minmax(0,1fr) auto auto;min-height:36px;gap:7px}.vice-tables.vice-theme .table-name{font-size:28px;max-width:120px}.vice-tables.vice-theme .table-title{gap:6px}.vice-tables.vice-theme .table-chip{width:27px;height:27px;font-size:18px}.vice-tables.vice-theme .table-status::after{font-size:8px;letter-spacing:1px}.vice-tables.vice-theme .match-timer{font-size:12px;padding:6px;gap:4px}body.vice-tables.vice-theme:not(.display-mode) .match{flex:0 0 260px;grid-template-columns:minmax(0,1fr) 24px minmax(0,1fr);gap:6px}body.vice-tables.vice-theme:not(.display-mode) .player-slot{padding:12px 8px;gap:8px}.vice-tables.vice-theme .player-name{font-size:34px}.vice-tables .stat-chip.win .win-value{font-size:38px}.vice-tables .stat-chip.win .win-unit{font-size:9px}.vice-tables.vice-theme .player-meta{font-size:10px}.vice-tables.vice-theme .slot-actions{gap:4px;flex-wrap:wrap;justify-content:center}.vice-tables.vice-theme .slot-actions button{font-size:9px;padding:6px;min-height:30px}.vice-tables.vice-theme .slot-actions .icon{display:none}.vice-tables.vice-theme .queue-head{flex-wrap:wrap}.vice-tables.vice-theme .queue-head .input-row{flex:0 0 100%;max-width:none}.vice-tables.vice-theme .queue-list{max-height:360px;min-height:65px}.vice-tables.vice-theme .queue-item{min-height:48px;padding:8px;gap:6px}.vice-tables.vice-theme .queue-position{min-width:22px;font-size:13px}.vice-tables.vice-theme .queue-name{font-size:25px}.vice-tables.vice-theme .queue-badge{font-size:7px;padding:4px}.vice-tables.vice-theme .queue-item .icon-btn{width:25px;height:27px;min-height:27px;padding:5px}body.vice-tables.vice-theme:not(.display-mode) .topbar{flex-wrap:wrap;padding:12px 3px;gap:12px}.vice-tables.vice-theme .topbar>.brand{width:100%;justify-content:space-between}.vice-tables .brand .vice-connection{display:flex}.vice-tables.vice-theme .controls{width:100%;justify-content:space-between;gap:4px}.vice-tables.vice-theme .controls .icon-btn{padding:6px 8px}.vice-tables .milestone-chip:not(.payout)::after{font-size:7px}.vice-tables.vice-theme .milestone{gap:5px}.vice-tables.vice-theme .milestones-grid{gap:5px}.vice-tables.vice-theme .milestone .milestone-chip{font-size:14px}.vice-tables .milestone .milestone-chip .unit{font-size:7px}}

/* Full names stay readable rather than ending in an ellipsis. */
.vice-tables.vice-theme .player-slot.filled .player-name{white-space:normal;overflow-wrap:anywhere;text-wrap:balance;text-overflow:clip;font-size:clamp(28px,2.6vw,88px);min-height:2.2em;display:grid;place-content:center;line-height:1.08;text-align:center;grid-column:1;grid-row:1}
@media(max-width:900px){.vice-tables.vice-theme .player-slot.filled .player-name{font-size:26px;min-height:2.2em}}

/* Small controls share one hit target; status never relies on color alone. */
.vice-tables .room-connection-warning {
  order: -1;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  border: 1px solid #ffd09b66;
  border-radius: var(--room-radius);
  color: var(--room-warning);
  background: var(--room-warning-bg);
  font-size: clamp(13px, 1.05vw, 28px);
  line-height: 1.4;
}
.vice-tables .room-connection-warning[hidden] { display: none; }
.vice-tables .room-connection-warning strong { color: #ffe7ca; font-weight: 600; }
.vice-tables .room-connection-warning button {
  flex-shrink: 0;
  min-height: 36px;
  padding: 8px 14px;
  border: 1px solid #ffd09b66;
  border-radius: var(--room-radius);
  background: transparent;
  color: #ffe7ca;
}
.vice-tables.vice-theme .queue-empty { gap: 8px; }
.vice-tables .queue-empty small { font-size: .7em; color: var(--room-muted); }
.vice-tables.vice-theme .queue-item .icon-btn {
  width: 34px;
  height: 34px;
  min-height: 34px;
  opacity: 1;
  border-color: var(--room-border);
}
.vice-tables.vice-theme .queue-item .icon-btn:disabled { opacity: .3; }
.vice-tables .queue-list:focus-visible { outline: 2px solid var(--room-reward); outline-offset: 3px; }
@media (max-width: 1100px) {
  .vice-tables.vice-theme .queue-item { flex-wrap: wrap; }
  .vice-tables.vice-theme .queue-name { flex: 1; min-width: 100px; }
  .vice-tables .room-connection-warning { flex-wrap: wrap; gap: 10px; }
}

/* Duel hierarchy: names and win counts are permanent; actions appear on intent. */
.vice-tables .table-left { grid-column: 2; grid-row: 1; }
.vice-tables .table-right { grid-column: 3; grid-row: 1; }
.vice-tables.vice-theme .player-slot.filled:hover .slot-actions,
.vice-tables.vice-theme .player-slot.filled:focus-within .slot-actions {
  opacity: 1;
  pointer-events: auto;
}
.vice-tables .slot-actions::before {
  content: '';
  position: absolute;
  inset: -4px;
  background: #1c3226;
  border: 1px solid var(--room-border);
  border-radius: 5px;
  z-index: -1;
}
.vice-tables .table-right .room-swap { padding: 6px; min-height: 28px; border: 1px solid var(--room-border); border-radius: 4px; background: #ffffff06; }
.vice-tables .room-swap .icon { width: 14px; height: 14px; }
.vice-tables .player-slot.empty { grid-template-rows: 1fr auto; }
.vice-tables.vice-theme .player-slot.empty .player-name { grid-column: 1; text-align: left; }
.vice-tables .player-slot.empty .player-meta { grid-column: 1; text-align: left; }
@media (hover: none), (pointer: coarse) {
  .vice-tables.vice-theme .slot-actions { position: static; grid-column: 1; grid-row: 4; opacity: 1; pointer-events: auto; justify-content: flex-start; }
  .vice-tables .slot-actions::before { display: none; }
  body.vice-tables.vice-theme:not(.display-mode) .match { flex-basis: 290px; }
}
@media (max-width: 900px) {
  .vice-tables.vice-theme .table-name { font-size: 26px; }
  .vice-tables.vice-theme .table-status { gap: 3px; }
  .vice-tables.vice-theme .table-status::after { font-size: 7px; letter-spacing: .5px; }
  .vice-tables .table-right { gap: 6px; }
  .vice-tables .table-right .room-swap { padding: 4px; min-height: 25px; }
  .vice-tables.vice-theme .match-timer { font-size: 11px; }
}

.vice-tables.vice-theme .player-progress .player-meta { text-align: center; }
@media (max-height: 800px) and (min-width: 901px) {
  .vice-tables.vice-theme .player-slot.filled .player-name { font-size: clamp(26px, 2.5vw, 38px); }
  body.vice-tables.vice-theme:not(.display-mode) .player-slot { padding: 10px 14px; gap: 6px 18px; }
}

/* Opponents face one another. Keep the names and win counts aligned across the duel. */
.vice-tables.vice-theme .versus::before,
.vice-tables.vice-theme .versus::after {
  content: '';
  width: 1px;
  height: clamp(20px, 4vh, 72px);
  background: linear-gradient(transparent, #c0ddca60, transparent);
}
.vice-tables.vice-theme .versus > .swap-btn { display: none; }
.vice-tables.vice-theme .versus:hover > span { opacity: 1; }
.vice-tables.vice-theme .player-slot.empty .player-name { text-align: center; }
.vice-tables .player-slot.empty .player-meta { text-align: center; }
@media (max-width: 900px) {
  .vice-tables.vice-theme .player-slot.filled .player-name { font-size: 26px; }
  .vice-tables.vice-theme .player-stats { gap: 5px; flex-wrap: wrap; }
  .vice-tables.vice-theme .stat-chip.payout { font-size: 12px; padding: 3px 5px; }
}

/* The operating menu belongs above the games, on desktop and phone. */
.vice-tables.vice-theme .controls .icon-btn,
.vice-tables.vice-theme .room-swap { background: #2b4936; color: #e4f0e5; border-color: var(--room-border); }
.vice-tables.vice-theme .controls .ghost { background: transparent; }
.vice-tables.vice-theme input[type="text"] { background: #1a3023; border-color: var(--room-border); color: #f1f6ed; }
.vice-tables.vice-theme .queue-item { background: #ffffff04; }
.vice-tables.vice-theme .queue-item.next-up { background: #b8dea00c; border-color: #b8dea052; }
.vice-tables.vice-theme .queue-badge { color: #c9e5b7; border-color: #b8dea040; background: #b8dea00b; }
.vice-tables.vice-theme .player-progress progress::-webkit-progress-value { background: linear-gradient(90deg,#a7d68d,#9dded0); }
.vice-tables.vice-theme .player-progress progress::-moz-progress-bar { background: #a7d68d; }
.vice-tables.vice-theme .table-card::before { background: linear-gradient(90deg,#a7d68d,#d1e8ac); }
.vice-tables.vice-theme .table-card:nth-child(2)::before { background: linear-gradient(90deg,#8fcdb2,#a7d9c9); }

/* Jackpot is a prominent reward strip below the operating menu. */
.vice-tables .room-jackpot-label { display: grid; gap: 6px; }
.vice-tables .room-jackpot-label strong { font: 700 clamp(22px,1.8vw,42px)/1 var(--vice-display); letter-spacing: 1.3px; color: #ffe5a1; }
.vice-tables .room-jackpot-label span { font-size: clamp(8px,.55vw,14px); letter-spacing: 1.3px; color: #e0eed5; line-height: 1.4; }
.vice-tables.vice-theme .milestones-grid { width: 100%; gap: 12px; }
.vice-tables.vice-theme .milestone { position: relative; min-height: 58px; padding: 8px 16px; gap: 14px; background: #ffffff07; border: 1px solid #d5ecc431; border-radius: 6px; overflow: hidden; }
.vice-tables.vice-theme .milestone:not(:last-child) { border-right: 1px solid #d5ecc431; }
.vice-tables.vice-theme .milestone .milestone-chip { position: relative; z-index: 1; font-size: clamp(24px,1.75vw,52px); color: #f4fbed; }
.vice-tables.vice-theme .milestone .milestone-chip.payout { font-size: clamp(32px,2.3vw,70px); color: #ffe5a1; }
.vice-tables .milestone-chip:not(.payout)::after { font-size: clamp(9px,.65vw,18px); color: #e3efdf; }
.vice-tables .milestone .milestone-chip .unit { font-size: clamp(12px,.85vw,24px); color: #ffe5a1; }
.vice-tables .milestone-chip.payout::before { color: #c7ddb8; font-size: .6em; }
.vice-tables.vice-theme .milestone.tier-3 { background: #ffe5a112; border-color: #ffe5a16b; animation: roomJackpotGlow 5s ease-in-out infinite; }
.vice-tables.vice-theme .milestone.tier-3::before { content: ''; display: block; position: absolute; inset: 0; width: 45%; height: 100%; pointer-events: none; background: linear-gradient(105deg,transparent,#fff3c42b,transparent); transform: translateX(-160%); animation: roomJackpotShine 9s ease-in-out infinite; }
@keyframes roomJackpotGlow { 0%,100% { box-shadow: 0 0 0 transparent; } 50% { box-shadow: 0 0 16px #e7cf7624; } }
@keyframes roomJackpotShine { 0%,65% { transform: translateX(-160%); } 95%,100% { transform: translateX(360%); } }
/* No translucent veil over the board: solid surfaces and brighter secondary text. */
body.vice-tables.vice-theme .glass-overlay,
body.vice-tables.vice-theme .logo-bg,
body.vice-tables.vice-theme .page::before { display: none; }
.vice-tables.vice-theme .table-card,
.vice-tables.vice-theme .player-slot,
.vice-tables.vice-theme .queue-list { filter: none; backdrop-filter: none; opacity: 1; }
.vice-tables.vice-theme .player-name,.vice-tables.vice-theme .queue-name { color: #f9fff7; }
.vice-tables.vice-theme .queue-empty { background: #243c2e; color: #d8e9d9; border-color: #d7eee236; }
.vice-tables.vice-theme .queue-item { background: #2a4534; border-color: #cee5d02b; }
.vice-tables.vice-theme .queue-item.next-up { background: #38563b; border-color: #d1eaa17a; }
.vice-tables.vice-theme .player-slot.empty { background: #2b4435; border-color: #c9dfce4a; }
.vice-tables.vice-theme .queue-position { color: #cfe4d2; }
.vice-tables.vice-theme .player-progress progress { background: #f2ffe321; }
.vice-tables.payouts-off .room-jackpot-label { display: none; }
body.vice-tables.vice-theme.payouts-off .milestones { display: block; }
@media(max-width:1100px) {
  body.vice-tables.vice-theme:not(.display-mode) .milestones { grid-template-columns: 100px minmax(0,1fr); gap: 10px; padding: 10px; }
  .vice-tables.vice-theme .milestone { padding: 8px; gap: 8px; }
}
@media(max-width:900px) {
  body.vice-tables.vice-theme:not(.display-mode) .milestones { grid-template-columns: minmax(0,1fr); gap: 10px; }
  .vice-tables .room-jackpot-label { display: flex; align-items: center; gap: 12px; }
  .vice-tables .room-jackpot-label strong { font-size: 22px; }
  .vice-tables .room-jackpot-label span { font-size: 7px; }
  .vice-tables.vice-theme .milestones-grid { gap: 6px; }
  .vice-tables.vice-theme .milestone { display: flex; flex-direction: column; gap: 4px; min-height: 74px; padding: 8px 3px; }
  .vice-tables.vice-theme .milestone .milestone-chip { font-size: 18px; }
  .vice-tables.vice-theme .milestone .milestone-chip.payout { font-size: 27px; }
  .vice-tables .milestone .milestone-chip .unit { font-size: 9px; }
  .vice-tables .milestone-chip:not(.payout)::after { font-size: 8px; }
  .vice-tables .milestone-chip.payout::before { display: none; }
}
@media(prefers-reduced-motion:reduce) {
  .vice-tables.vice-theme .milestone.tier-3,
  .vice-tables.vice-theme .milestone.tier-3::before { animation: none; }
}
