/* Bars dimensions and reveal treatment from the supplied 25 October recording. */
.bars-body [hidden] { display:none !important; }
.bars-body .bars-game-panel { container-type:inline-size; position:relative; height:662px; padding:0; border:0; border-radius:0 6px 0 0; background:#0f212e; overflow:hidden; }
.bars-body .originals-controls { min-height:662px; }
.bars-body .originals-bet-panel { gap:12px; }
.bars-body .selection-actions, .bars-body .mode-panel { display:grid; gap:12px; }
.bars-body .selection-actions .button { min-height:44px; background:#2f4553; border:0; color:#fff; font-size:14px; }
.bars-body .selection-actions .button:hover:not(:disabled) { background:#3d5564; }
.bars-body .bars-board-shell { position:absolute; width:60%; top:58px; left:20%; aspect-ratio:540/448; }
.bars-grid { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:8px 10px; width:100%; height:100%; }
.bars-body .bar-cell { --face:#2f4553; --base:#213743; position:relative; display:grid; place-items:center; min-width:0; padding:0 0 9px; border:0; border-radius:6px; clip-path:polygon(5% 0,95% 0,100% 7%,100% 93%,95% 100%,5% 100%,0 93%,0 7%); background:var(--base); color:#fff; cursor:pointer; font-size:clamp(12px,1.85cqw,17px); font-weight:750; font-variant-numeric:tabular-nums; line-height:1; isolation:isolate; transition:filter .12s; }
.bars-body .bar-cell::before { content:''; position:absolute; z-index:-1; inset:0 0 9px; background:var(--face); border-radius:5px; }
.bars-body .bar-cell:hover:not(:disabled) { filter:brightness(1.18); }
.bars-body .bar-cell:focus-visible { outline:none; filter:brightness(1.35); box-shadow:inset 0 0 0 3px white; }
.bars-body .bar-cell.selected { --face:#60eafb; --base:#289fef; color:#051d2b; }
.bars-body [data-difficulty="medium"] .bar-cell.selected { --face:#0e7bf6; --base:#175fad; }
.bars-body [data-difficulty="hard"] .bar-cell.selected { --face:#12ff07; --base:#0cd705; }
.bars-body [data-difficulty="expert"] .bar-cell.selected { --face:#f8c709; --base:#f47606; }
.bars-body .bar-cell.revealed:not(.selected) { color:#b1bad3; }
.bars-body .bar-cell.revealed:not(.selected).positive { color:#00e701; }
.bars-body .bar-cell.revealed:not(.selected).high { color:#ffd100; }
.bars-body .bar-cell.revealed:not(.selected).rare { color:#ec80ff; }
.bars-body .bar-cell.revealed:not(.selected).top { color:#ff6f9e; }
.bars-body .bars-grid.settled .bar-cell:not(.selected) { opacity:.38; }
.bars-body .bar-cell .bar-value { position:relative; z-index:1; pointer-events:none; }
.bars-body .bar-cell.shine::after { content:''; position:absolute; inset:0; background:linear-gradient(110deg,transparent 25%,#fff8 50%,transparent 75%); transform:translateX(-150%); animation:bars-sweep .55s ease-out both; pointer-events:none; }
.bars-body .bar-cell:disabled { cursor:default; }
.bars-body .bars-selection-hint { position:absolute; top:522px; left:0; width:100%; margin:0; text-align:center; color:#b1bad3; font-size:13px; }
.bars-body .bar-payout-card { position:absolute; left:3.111%; right:3.111%; bottom:16px; }
.bars-body .bar-payout-list { display:flex; gap:6px; }
.bars-body .bar-payout-row { position:relative; flex:1 1 0; min-width:0; }
.bars-body .bar-payout-row > summary { display:grid; place-items:center; height:50px; padding:0 3px; border-radius:5px; background:#2f4553; color:#fff; font-size:clamp(9px,1.45cqw,14px); font-weight:700; list-style:none; cursor:pointer; white-space:nowrap; }
.bars-body .bar-payout-row > summary::-webkit-details-marker { display:none; }
.bars-body .bar-payout-row > summary:hover, .bars-body .bar-payout-row[open] > summary { background:#557086; }
.bars-body .bar-payout-tooltip { position:absolute; z-index:8; bottom:60px; left:50%; transform:translateX(-50%); width:170px; padding:12px; border-radius:5px; background:#fff; color:#0f212e; text-align:center; box-shadow:0 4px 20px #0005; font-size:12px; }
.bars-body .bar-payout-row:first-child .bar-payout-tooltip { left:0; transform:none; }
.bars-body .bar-payout-row:last-child .bar-payout-tooltip { left:auto; right:0; transform:none; }
.bars-body .bar-payout-tooltip strong { display:block; margin-top:4px; font-size:14px; }
.bars-body .bars-result { position:absolute; z-index:10; top:50%; left:50%; transform:translate(-50%,-50%); display:grid; gap:10px; min-width:148px; padding:16px 22px; border:3px solid #b1bad3; border-radius:8px; color:#b1bad3; background:#0f212e; text-align:center; box-shadow:0 4px 16px #0005; pointer-events:none; }
.bars-body .bars-result.win { border-color:#00e701; color:#00e701; }
.bars-body .bars-result strong { font-size:clamp(24px,4cqw,36px); line-height:1; }
.bars-body .bars-result span { border-top:1px solid #2f4553; padding-top:10px; font-size:14px; font-weight:700; white-space:nowrap; }
.bars-body .bars-options { position:relative; margin-top:12px; }
.bars-body .bars-options > summary { display:grid; place-items:center; width:36px; height:36px; color:#b1bad3; background:#2f4553; border-radius:5px; font-size:22px; list-style:none; cursor:pointer; }
.bars-body .bars-options > summary::-webkit-details-marker { display:none; }
.bars-body .bars-options > .tool-row { position:absolute; z-index:30; left:0; top:42px; display:grid; gap:8px; width:210px; padding:14px; border-radius:6px; background:#1a2c38; box-shadow:0 8px 22px #0006; }
.bars-body .auto-pacing { display:grid; gap:12px; }
.bars-body .mapping-panel { margin-block:14px; }
.bars-body .mapping-wrap { max-height:24rem; margin-top:10px; }
.bars-body .mapping-wrap table { min-width:42rem; }
@keyframes bars-sweep { to { transform:translateX(150%); } }
@media(min-width:721px) and (max-width:1100px) { .bars-body .bars-board-shell { width:78%; left:11%; } }
@media(max-width:720px) {
  .bars-body .bars-game-panel { height:auto; min-height:0; aspect-ratio:400/440; border-radius:6px; }
  .bars-body .bars-board-shell { width:88%; left:6%; top:24px; }
  .bars-body .bars-grid { gap:6px; }
  .bars-body .bar-cell { font-size:clamp(11px,3.4cqw,17px); padding-bottom:6px; }
  .bars-body .bar-cell::before { bottom:6px; }
  .bars-body .bars-selection-hint { top:calc(73cqw + 34px); font-size:12px; }
  .bars-body .bar-payout-card { left:4%; right:4%; bottom:15px; }
  .bars-body .bar-payout-list { gap:3px; }
  .bars-body .bar-payout-row > summary { height:34px; padding:0 1px; font-size:clamp(8px,2.6cqw,12px); }
  .bars-body .bar-payout-tooltip { bottom:44px; width:125px; }
  .bars-body .bar-payout-row:nth-child(2) .bar-payout-tooltip { left:0; transform:none; }
  .bars-body .bar-payout-row:nth-last-child(2) .bar-payout-tooltip { left:auto; right:0; transform:none; }
  .bars-body .originals-controls { min-height:0; }
  .bars-body .bars-result { padding:13px 16px; min-width:132px; }
  .bars-body .bars-result strong { font-size:28px; }
}
@media(prefers-reduced-motion:reduce) { .bars-body .bar-cell.shine::after { animation:none; } }

.bars-body .bar-payout-row { position:static; }
.bars-body .bar-payout-tooltip,
.bars-body .bar-payout-row:first-child .bar-payout-tooltip,
.bars-body .bar-payout-row:last-child .bar-payout-tooltip,
.bars-body .bar-payout-row:nth-child(2) .bar-payout-tooltip,
.bars-body .bar-payout-row:nth-last-child(2) .bar-payout-tooltip { left:0; right:0; transform:none; width:100%; display:grid; grid-template-columns:1fr 1fr; gap:16px; padding:16px; color:#b1bad3; background:#213743; text-align:left; }
.bars-body .bar-payout-tooltip strong { padding:10px 12px; border:1px solid #2f4553; border-radius:5px; color:white; font-weight:500; overflow-wrap:anywhere; }
.bars-body .bars-result { top:61%; }
@media(max-width:720px) { .bars-body .bar-payout-tooltip { gap:8px; padding:10px; font-size:11px; }.bars-body .bar-payout-tooltip strong { font-size:11px; padding:8px; } }

.bars-body .bar-cell::before { inset:4px 4px 12px; border-radius:3px; }
.bars-body .bars-selection-hint { top:auto; bottom:16px; left:3.111%; right:3.111%; width:auto; height:50px; display:grid; place-items:center; border-radius:4px; background:#2f4553; font-size:14px; font-weight:700; }
@media(max-width:720px) { .bars-body .bar-cell::before { inset:3px 3px 8px; }.bars-body .bars-selection-hint { top:auto; bottom:15px; left:4%; right:4%; height:34px; font-size:12px; } }
