/* Live Roulette page. Classes use the lr- prefix; the wheel and layout come from /demos/roulette/shared.css. */
.lr-modes button { white-space: nowrap; }
.lr-tabs { display: none; }
.lr-screen { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 16px; align-items: start; padding: 14px 18px 16px; }
.lr-pane { min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.lr-ptitle { display: flex; align-items: center; gap: 10px; min-height: 26px; }
.lr-badge { display: inline-flex; align-items: center; gap: 7px; padding: 4px 9px; border-radius: 7px; border: 1px solid var(--s-line); background: var(--s-panel); font: 600 10.5px 'IBM Plex Mono', monospace; letter-spacing: .16em; text-transform: uppercase; }
.lr-badge::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--hot); }
.lr-badge.op { border-style: dashed; border-color: rgba(255,255,255,.35); }
.lr-badge.op::before { border-radius: 2px; background: var(--you); }
.lr-sub { font-size: 12px; color: var(--s-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lr-air { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font: 700 10.5px Inter, sans-serif; letter-spacing: .16em; text-transform: uppercase; color: var(--s-dim); }
.lr-air i { width: 8px; height: 8px; border-radius: 50%; background: var(--s-faint); }
.lr-air.on { color: #ff8a8a; } .lr-air.on i { background: var(--hot); animation: dkping 1.6s infinite; }

/* ---------- live picture ---------- */
.lr-cam { position: relative; aspect-ratio: 16 / 6.9; border-radius: 14px; overflow: hidden; background: #050506; border: 1px solid var(--s-line); }
.lr-cam > video, .lr-cam > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }
.lr-camempty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; padding: 20px; background: radial-gradient(80% 80% at 50% 40%, #16181d, #07080a); }
.lr-camempty b { font-size: 18px; font-weight: 800; }
.lr-camempty span { font-size: 13px; color: var(--s-dim); max-width: 420px; }
.lr-camempty.err b { color: var(--tb-lose); }

/* simulated camera scene, drawn with CSS and the shared SVG wheel */
.lr-scene { position: absolute; inset: 0; overflow: hidden; }
.lr-room { position: absolute; inset: 0; background: radial-gradient(70% 60% at 50% 18%, #2a2c33 0%, #121318 55%, #060608 100%); }
.lr-tablefelt { position: absolute; left: -10%; right: -10%; top: 30%; bottom: -30%; border-radius: 50% 50% 0 0 / 30% 30% 0 0;
  background: repeating-linear-gradient(45deg, rgba(0,0,0,.05) 0 1px, transparent 1px 3px), radial-gradient(90% 90% at 50% 10%, #1f7b4f, #0f4e31 60%, #072619);
  box-shadow: 0 -8px 0 #5a3517, 0 -12px 0 #2a170a, inset 0 30px 60px -20px rgba(0,0,0,.6); }
.lr-feltprint { position: absolute; left: 13%; top: 16%; font: 800 12px Inter, sans-serif; letter-spacing: .3em; text-transform: uppercase; color: rgba(240,210,140,.55); transform: perspective(500px) rotateX(40deg); }
.lr-float { position: absolute; right: 9%; top: 52%; display: flex; gap: 6px; transform: perspective(600px) rotateX(48deg); }
.lr-float .tb-stack { --chip: 34px; --ct: 3px; }
.lr-w3d { position: absolute; left: 50%; top: 56%; width: 58%; max-width: 520px; aspect-ratio: 1; transform: translate(-50%, -50%) perspective(1100px) rotateX(58deg); }
.lr-wheel { width: 100%; height: 100%; }
.lr-grain { position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 100% at 50% 50%, transparent 55%, rgba(0,0,0,.55) 100%), repeating-linear-gradient(0deg, rgba(255,255,255,.025) 0 1px, transparent 1px 3px);
  animation: lrgrain .35s steps(2) infinite; mix-blend-mode: normal; }
@keyframes lrgrain { 50% { background-position: 0 0, 0 1px; } }

/* overlays */
.lr-ov-tl, .lr-ov-tr, .lr-ov-bl { position: absolute; z-index: 3; display: flex; align-items: center; gap: 8px; }
.lr-ov-tl { left: 12px; top: 12px; } .lr-ov-tr { right: 12px; top: 12px; } .lr-ov-bl { left: 12px; bottom: 12px; }
.lr-live { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 6px; background: #e0262f; color: #fff; font: 800 11px Inter, sans-serif; letter-spacing: .16em; text-transform: uppercase; }
.lr-live i { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: lrblink 1.2s infinite; }
@keyframes lrblink { 50% { opacity: .25; } }
.lr-camtag, .lr-viewers, .lr-round, .lr-dname { padding: 4px 9px; border-radius: 6px; background: rgba(0,0,0,.55); backdrop-filter: blur(4px); font-size: 11.5px; color: rgba(255,255,255,.85); }
.lr-dname { font-family: Inter, sans-serif; } .lr-dname b { color: #fff; }
.lr-clock { position: absolute; z-index: 3; right: 12px; bottom: 12px; width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%; background: rgba(0,0,0,.6); backdrop-filter: blur(4px); }
.lr-clock svg { position: absolute; inset: 4px; width: calc(100% - 8px); height: calc(100% - 8px); transform: rotate(-90deg); }
.lr-clock circle { fill: none; stroke-width: 3.5; }
.lr-clock .bg { stroke: rgba(255,255,255,.14); }
.lr-clock .fg { stroke: var(--up); stroke-linecap: round; stroke-dasharray: 119.4; transition: stroke-dashoffset .25s linear, stroke .3s; }
.lr-clock b { position: relative; font-size: 19px; font-weight: 700; line-height: 1; margin-top: 6px; }
.lr-clock small { position: relative; font: 700 8px Inter, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--s-dim); margin-top: -14px; }
.lr-stage[data-phase="spin"] .lr-clock .fg { stroke: var(--you); }
.lr-stage[data-phase="show"] .lr-clock .fg { stroke: #7fb6ff; }
.lr-clock.hurry b { color: var(--tb-lose); }
.lr-call { position: absolute; z-index: 3; left: 50%; top: 14px; transform: translateX(-50%); padding: 7px 16px; border-radius: 999px; background: rgba(0,0,0,.6); backdrop-filter: blur(4px); font: 800 13px Inter, sans-serif; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.lr-call.pop { animation: lrcall .5s cubic-bezier(.2, 1.3, .4, 1); }
@keyframes lrcall { from { transform: translate(-50%, -12px); opacity: 0; } }
.lr-bign { position: absolute; z-index: 4; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; justify-content: center; width: 132px; height: 132px; border-radius: 26px; color: #fff; box-shadow: 0 24px 60px rgba(0,0,0,.6), inset 0 0 0 2px rgba(255,255,255,.25); animation: lrbig .55s cubic-bezier(.2, 1.4, .4, 1); }
.lr-bign b { font: 900 64px/1 Inter, sans-serif; letter-spacing: -.04em; }
.lr-bign small { font: 800 11px Inter, sans-serif; letter-spacing: .2em; text-transform: uppercase; opacity: .85; margin-top: 4px; }
.lr-bign.red { background: linear-gradient(180deg, #d4293b, #9a1523); } .lr-bign.black { background: linear-gradient(180deg, #2c2f36, #101114); } .lr-bign.green { background: linear-gradient(180deg, #1aa362, #0c6b3c); }
@keyframes lrbig { from { transform: translate(-50%, -50%) scale(.4); opacity: 0; } }
.lr-toast { position: absolute; z-index: 5; left: 50%; bottom: 16px; transform: translateX(-50%); padding: 9px 18px; border-radius: 12px; background: rgba(8,10,12,.88); border: 1px solid rgba(53,227,154,.6); color: var(--tb-win); font: 800 16px Inter, sans-serif; white-space: nowrap; animation: lrcall .45s cubic-bezier(.2, 1.3, .4, 1); }
.lr-toast.lose { border-color: rgba(255,255,255,.2); color: var(--s-text); }

/* ---------- table row ---------- */
.lr-tablerow { display: grid; grid-template-columns: minmax(0, 1fr) 224px; gap: 12px; align-items: start; }
.lr-feltwrap { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.lr-felt { border-radius: 14px; padding: 9px 12px 10px; }
.lr-felt-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; min-height: 22px; }
.lr-hist { display: flex; gap: 4px; overflow: hidden; min-width: 0; }
.lr-hist .rl-pill { min-width: 22px; height: 22px; font-size: 11px; border-radius: 6px; }
.lr-hist .rl-pill:first-child { box-shadow: 0 0 0 2px #0f4e31, 0 0 0 3.5px var(--you); }
.lr-hist em { font-size: 11.5px; color: rgba(255,255,255,.6); font-style: normal; }
.lr-lim { font-size: 11px; color: rgba(255,255,255,.62); white-space: nowrap; }
.lr-actions { display: flex; align-items: center; gap: 7px; flex-wrap: nowrap; padding: 8px 10px; border-radius: 12px; background: var(--s-panel); border: 1px solid var(--s-line); }
.lr-rack .tb-rchip { --chip: 36px; }
.lr-rack .tb-rack { gap: 7px; }
.lr-mine { display: none; }
.lr-bal { margin-left: auto; }
.lr-mine small { font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--s-dim); }
.lr-mine b { font-size: 17px; font-weight: 800; }
.lr-bal .tb-balance { padding: 5px 9px 5px 7px; gap: 8px; }
.lr-bal .tb-balance-chip { width: 24px; height: 24px; }
.lr-bal .tb-balance-chip::after { inset: 8px; }
.lr-bal .tb-balance-v { font-size: 15px; }
.lr-bal .tb-balance-reset { font-size: 10.5px; }
.lr-stage[data-phase="spin"] .lr-felt, .lr-stage[data-phase="show"] .lr-felt { filter: saturate(.8); }

.lr-side { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.lr-ph { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.lr-ph small { font-size: 11px; color: var(--s-faint); }
.lr-seats ul { list-style: none; display: flex; flex-direction: column; }
.lr-seats li { display: flex; justify-content: space-between; gap: 8px; padding: 2px 0; font-size: 12px; border-top: 1px solid var(--s-line); }
.lr-seats li:first-child { border-top: 0; }
.lr-seats li span { color: var(--s-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lr-seats li span i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }
.lr-seats li b { font: 600 11.5px 'IBM Plex Mono', monospace; }
.lr-seats li b.up { color: var(--tb-win); } .lr-seats li.you span { color: var(--you); }
.lr-chat { display: flex; flex-direction: column; }
.lr-chat ol { list-style: none; height: 74px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 3px; font-size: 12px; line-height: 1.35; }
.lr-chat li { color: var(--s-text); animation: dkfeed .4s; }
.lr-chat li b { color: var(--s-dim); font-weight: 700; margin-right: 5px; }
.lr-chat li.you b { color: var(--you); }
.lr-chat li.sys { color: var(--s-faint); font-style: italic; }
.lr-chat input { margin-top: 7px; width: 100%; background: var(--s-bg); border: 1px solid var(--s-line); border-radius: 8px; color: var(--s-text); font: 500 12.5px Inter, sans-serif; padding: 7px 10px; outline: none; }
.lr-chat input:focus { border-color: var(--you); }

/* ---------- dealer console ---------- */
.lr-dealer { gap: 10px; }
.lr-dcam { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 12px; padding: 12px; border-radius: 12px; background: var(--s-panel); border: 1px solid var(--s-line); }
.lr-prev { position: relative; aspect-ratio: 16 / 10; border-radius: 9px; overflow: hidden; background: #000; border: 1px solid var(--s-line); }
.lr-prev video { width: 100%; height: 100%; object-fit: cover; }
.lr-prevsim { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 8px 10px; background: radial-gradient(60% 50% at 50% 62%, #1d7a4e 0 30%, transparent 31%), radial-gradient(70% 70% at 50% 30%, #23262d, #08090b); }
.lr-prevsim span { font-size: 11.5px; font-weight: 700; } .lr-prevsim small { font-size: 10.5px; color: var(--s-dim); }
.lr-prevtag { position: absolute; left: 7px; top: 7px; padding: 2px 6px; border-radius: 4px; background: rgba(0,0,0,.6); font: 600 9.5px 'IBM Plex Mono', monospace; letter-spacing: .12em; text-transform: uppercase; }
.lr-dform { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.lr-f { display: flex; flex-direction: column; gap: 4px; }
.lr-f > span { font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--s-dim); }
.lr-f select, .lr-f input { width: 100%; background: var(--s-bg); border: 1px solid var(--s-line); border-radius: 8px; color: var(--s-text); font: 500 12.5px Inter, sans-serif; padding: 7px 9px; outline: none; }
.lr-f input { font-family: 'IBM Plex Mono', monospace; font-size: 12px; }
.lr-f select:focus, .lr-f input:focus { border-color: var(--you); }
.lr-btnrow { display: flex; gap: 6px; }
.lr-note { font-size: 11.5px; color: var(--s-dim); line-height: 1.4; }
.lr-note.ok { color: var(--tb-win); } .lr-note.bad { color: var(--tb-lose); }
.lr-url { display: flex; flex-direction: column; gap: 7px; padding: 12px; border-radius: 12px; background: var(--s-panel); border: 1px solid var(--s-line); }
.lr-stage[data-mode="sim"] .lr-url, .lr-stage[data-mode="cam"] .lr-url { opacity: .55; }
.lr-stage[data-mode="url"] .lr-url { opacity: 1; box-shadow: inset 0 0 0 1px rgba(255,178,30,.4); }
.lr-stage[data-mode="cam"] .lr-dcam { box-shadow: inset 0 0 0 1px rgba(255,178,30,.4); }

.lr-status { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; padding: 12px; border-radius: 12px; background: var(--s-panel); border: 1px solid var(--s-line); }
.lr-st-l { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.lr-pill { align-self: flex-start; padding: 3px 9px; border-radius: 999px; font: 800 10.5px Inter, sans-serif; letter-spacing: .14em; text-transform: uppercase; background: rgba(53,227,154,.16); color: var(--tb-win); }
.lr-stage[data-phase="spin"] .lr-pill { background: rgba(255,178,30,.18); color: var(--you); }
.lr-stage[data-phase="show"] .lr-pill { background: rgba(127,182,255,.18); color: #9cc6ff; }
.lr-st-l b { font-size: 17px; font-weight: 800; }
.lr-st-l small { font-size: 12px; color: var(--s-dim); }
.lr-st-r { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.lr-st-r > b { font-size: 26px; font-weight: 700; line-height: 1; }
.lr-caller button { font-size: 11.5px; padding: 5px 8px; }
.lr-meter { grid-column: 1 / -1; height: 5px; border-radius: 3px; background: #0b0c0f; overflow: hidden; }
.lr-meter i { display: block; height: 100%; background: var(--up); transform-origin: left; transition: transform .25s linear; }
.lr-stage[data-phase="spin"] .lr-meter i { background: var(--you); }
.lr-stage[data-phase="show"] .lr-meter i { background: #7fb6ff; }

.lr-padwrap { padding: 12px; border-radius: 12px; background: var(--s-panel); border: 1px solid var(--s-line); }
.lr-pad { display: grid; grid-template-columns: 1.1fr repeat(12, minmax(0, 1fr)); grid-template-rows: repeat(3, 38px); gap: 4px; }
.lr-pad button { appearance: none; border: 0; border-radius: 7px; color: #fff; font: 800 14px Inter, sans-serif; cursor: pointer; box-shadow: inset 0 -2px 0 rgba(0,0,0,.35); transition: transform .08s, filter .15s, opacity .2s; }
.lr-pad button.red { background: #b81f2d; } .lr-pad button.black { background: #24262c; } .lr-pad button.green { background: #13874d; grid-row: 1 / span 3; }
.lr-pad button:hover:not(:disabled) { filter: brightness(1.2); }
.lr-pad button:active:not(:disabled) { transform: translateY(1px); }
.lr-pad button:disabled { cursor: default; opacity: .62; }
.lr-pad button.called { opacity: 1; box-shadow: 0 0 0 3px #ffd36a, 0 0 20px rgba(255,211,106,.6); animation: lrtap .5s; z-index: 1; }
@keyframes lrtap { 30% { transform: scale(.88); } }
.lr-stage[data-phase="spin"].calling .lr-pad button:not(:disabled) { box-shadow: inset 0 -2px 0 rgba(0,0,0,.35), 0 0 0 1px rgba(255,178,30,.5); }
.lr-padfoot { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.lr-padnote { font-size: 11.5px; color: var(--s-dim); }
.lr-fairnote { font-size: 11.5px; color: var(--s-faint); line-height: 1.45; padding: 0 2px; }

.lr-setup article .n { text-transform: uppercase; letter-spacing: .12em; }

@media (max-width: 1240px) {
  .lr-modes button { padding: 6px 8px; font-size: 12px; }
  .lr-tablerow { grid-template-columns: 1fr; }
  .lr-side { display: grid; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 980px) {
  .lr-tabs { display: flex; gap: 6px; padding: 10px 14px 0; }
  .lr-tabs button { flex: 1; appearance: none; border: 1px solid var(--s-line); background: var(--s-panel); color: var(--s-dim); border-radius: 9px; padding: 9px; font: 700 13px Inter, sans-serif; cursor: pointer; }
  .lr-tabs button.on { background: var(--s-text); color: var(--s-bg); }
  .lr-screen { grid-template-columns: 1fr; }
  .lr-pane { display: none; }
  .lr-pane.on { display: flex; }
}
@media (max-width: 640px) {
  .dk-bar-r .lr-modes { order: 3; width: 100%; }
  .lr-modes button { flex: 1; padding: 6px 4px; font-size: 11px; white-space: normal; line-height: 1.15; }
  .lr-screen { padding: 10px 10px 14px; }
  .lr-sub { display: none; }
  .lr-cam { aspect-ratio: 4 / 3.2; }
  .lr-call { top: 50px; font-size: 12px; }
  .lr-w3d { width: 92%; top: 58%; }
  .lr-float { display: none; }
  .lr-bign { width: 104px; height: 104px; } .lr-bign b { font-size: 50px; }
  .lr-side { grid-template-columns: 1fr; }
  .lr-dcam { grid-template-columns: 1fr; }
  .lr-pad { grid-template-columns: repeat(6, minmax(0, 1fr)); grid-template-rows: none; grid-auto-rows: 40px; }
  .lr-pad button.green { grid-row: auto; grid-column: 1 / -1; }
  .lr-status { grid-template-columns: 1fr; }
  .lr-st-r { align-items: flex-start; }
  .lr-actions { flex-wrap: wrap; }
  .lr-actions .lr-rack { width: 100%; }
  .lr-mine { margin-left: 0; text-align: left; }
}
.lr-stage [hidden] { display: none !important; }
