/* AnomicFlip — Roulette (/roulette). Shares the page shell (.cf, .cf-side, .cf-amt…) with coinflip.css. */
.rl-game { grid-template-columns: 400px minmax(0, 1fr); }
.rl-side { gap: 16px; }

/* chips */
.rl-chips { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; justify-items: center; }
.rl-chip, .rl-placed {
  --c: #3b82f6;
  display: grid; place-items: center; border-radius: 50%; cursor: pointer; padding: 0;
  background: radial-gradient(circle, #f5f6f8 0 54%, var(--c) 55%);
  border: 5px dashed rgba(255,255,255,.92); box-shadow: 0 0 0 3px var(--c), 0 4px 10px rgba(0,0,0,.45);
  color: #15181c; font: 800 15px 'Archivo', system-ui, sans-serif; letter-spacing: -.3px;
}
.rl-chip { width: 60px; height: 60px; transition: transform .12s, box-shadow .12s; }
.rl-chip:hover { transform: translateY(-2px); }
.rl-chip.on { box-shadow: 0 0 0 3px var(--c), 0 0 0 7px #1a1d20, 0 0 0 10px #3fd68f, 0 4px 10px rgba(0,0,0,.45); }
.rl-mine { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 18px; border-radius: 8px; background: #111315; font-size: 16px; color: #c9ccd1; }
.rl-mine b { display: inline-flex; align-items: center; gap: 6px; color: #fff; font-variant-numeric: tabular-nums; }
.rl-clear { height: 50px; border: 0; border-radius: 8px; background: #2a2d33; color: #c9ccd1; font: 700 16px 'Archivo', system-ui, sans-serif; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.rl-clear:hover { background: #33373e; color: #fff; }
.rl-status { margin-top: auto; display: grid; gap: 6px; font-size: 15px; color: #8b8f97; }
.rl-live { display: inline-flex; align-items: center; gap: 8px; color: #3fd68f; font-size: 16px; }
.rl-live::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #3fd68f; box-shadow: 0 0 8px rgba(63,214,143,.8); }

/* main column */
.rl-main { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 20px 22px 22px; }
.rl-top .cf-tbtn { flex: none; white-space: nowrap; }
.rl-top { display: flex; align-items: center; gap: 10px; }
.rl-hist { flex: 1; min-width: 0; display: flex; justify-content: flex-end; gap: 6px; overflow: hidden; }
.rl-h { flex: none; min-width: 36px; height: 36px; padding: 0 6px; border-radius: 7px; display: grid; place-items: center; font-weight: 800; font-size: 16px; color: #fff; font-variant-numeric: tabular-nums; }
.rl-h.r { background: #e03b4a; } .rl-h.b { background: #2a2d33; } .rl-h.g { background: #1f8a5b; }
.rl-h.last { min-width: 44px; height: 44px; font-size: 19px; box-shadow: 0 0 0 2px rgba(255,255,255,.12); }

.rl-mid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 18px; align-items: stretch; }
.rl-wheel-wrap { position: relative; width: 100%; max-width: 760px; aspect-ratio: 1; justify-self: center; }
.rl-wheel { display: block; width: 100%; height: 100%; overflow: visible; }
.rl-ring-bg { fill: none; stroke: #23272c; stroke-width: 10; }
.rl-ring { fill: none; stroke: #3fbf7f; stroke-width: 10; stroke-linecap: round; transition: stroke-dashoffset .1s linear; }
.rl-rim { fill: #1b1e22; stroke: #2a2e34; stroke-width: 4; }
.rl-track { fill: none; stroke: #24282d; stroke-width: 34; }
.rl-band { fill: #15181b; }
.rl-seg path { stroke: #15181b; stroke-width: 2; }
.rl-seg.r path { fill: #e03b4a; } .rl-seg.b path { fill: #2a2e34; } .rl-seg.g path { fill: #1f8a5b; }
.rl-seg text { fill: #fff; font: 800 30px 'Archivo', system-ui, sans-serif; text-anchor: middle; dominant-baseline: central; }
.rl-seg.win path { stroke: #f2c94c; stroke-width: 6; }
.rl-seg.win { filter: drop-shadow(0 0 10px rgba(242,201,76,.65)); }
.rl-hub { fill: #1a1d20; }
.rl-gold { fill: #1d2023; stroke: #6b5a2a; stroke-width: 4; }
.rl-ball { fill: #fff; filter: drop-shadow(0 2px 3px rgba(0,0,0,.6)); }
.rl-center { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 6px; pointer-events: none; text-align: center; }
.rl-center small#rlLabel { font-size: clamp(14px, 2.4vw, 22px); font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; color: #a7abb2; }
.rl-center b { font-size: clamp(44px, 8vw, 96px); font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.rl-center b small { font-size: .4em; color: #8b8f97; margin-left: 2px; }
.rl-num { display: inline-grid; place-items: center; width: 1.6em; height: 1.6em; border-radius: 50%; font-size: .75em; }
.rl-num.r { background: #e03b4a; } .rl-num.b { background: #2a2e34; } .rl-num.g { background: #1f8a5b; }

/* players / winners */
.rl-players { min-width: 0; display: flex; flex-direction: column; gap: 12px; padding: 18px; border-radius: 12px; background: #1a1d20; }
.rl-ph { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.rl-ph h3 { margin: 0; font-size: 18px; }
.rl-pc { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border-radius: 99px; background: #24272c; color: #c9ccd1; font-weight: 700; font-size: 15px; }
.rl-ptotal { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-radius: 8px; background: #111315; color: #a7abb2; font-size: 15px; }
.rl-ptotal[hidden] { display: none; }
.rl-ptotal b { display: inline-flex; align-items: center; gap: 6px; color: #fff; }
.rl-plist { flex: 1; min-height: 120px; max-height: 520px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; }
.rl-empty { margin: auto; color: #6b7078; font-size: 15px; }
.rl-prow { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 12px; border-radius: 8px; background: #24272c; font-size: 15px; color: #e6e8eb; animation: cf-row-in .25s ease-out; }
.rl-prow.win { background: #1d2a23; box-shadow: inset 3px 0 0 #3fd68f; }
.rl-av { flex: none; width: 30px; height: 30px; border-radius: 6px; background: #33373e center / cover no-repeat; display: grid; place-items: center; font-style: normal; font-weight: 800; color: #3fd68f; font-size: 14px; }
.rl-prow button, .rl-prow .hid { flex: 1; min-width: 0; text-align: left; border: 0; background: none; padding: 0; color: inherit; font: inherit; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rl-prow .hid { color: #6b7078; font-style: italic; cursor: default; }
.rl-prow button:hover { text-decoration: underline; }
.rl-prow b { display: inline-flex; align-items: center; gap: 5px; font-variant-numeric: tabular-nums; }
.rl-prow b.g { color: #3fd68f; }

/* betting board */
.rl-board-wrap { overflow-x: auto; padding: 14px; border-radius: 12px; background: #1a1d20; }
.rl-board { min-width: 860px; display: grid; grid-template-columns: 64px repeat(12, minmax(0, 1fr)) 60px; grid-template-rows: repeat(3, 58px) 56px 56px; gap: 5px; }
.rl-board .rl-cell:nth-child(n) { } /* placement comes from inline grid-column / grid-row */
.rl-cell {
  position: relative; border: 2px solid transparent; border-radius: 6px; color: #fff; cursor: pointer;
  font: 800 19px 'Archivo', system-ui, sans-serif; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  transition: filter .12s, border-color .12s, transform .08s;
}
/* live-stats.css has global .r/.g text colours; keep numbers white here */
.rl-cell.r, .rl-cell.g, .rl-cell.b, .rl-h.r, .rl-h.g, .rl-num.r, .rl-num.g { color: #fff; }
.rl-cell.r { background: #e03b4a; } .rl-cell.b { background: #2a2e34; } .rl-cell.g { background: #1f8a5b; }
.rl-cell.side { background: #24272c; font-size: 15px; }
.rl-cell.out { background: #2a2e34; font-size: 16px; }
.rl-cell.out small { font-weight: 600; font-size: 13px; color: #8b8f97; }
.rl-cell:hover { filter: brightness(1.15); }
.rl-cell:active { transform: scale(.97); }
.rl-cell.hit { border-color: #3fd68f; box-shadow: 0 0 0 2px rgba(63,214,143,.35), 0 0 18px rgba(63,214,143,.35); }
.rl-dia { width: 14px; height: 14px; transform: rotate(45deg); border-radius: 2px; }
.rl-dia.r { background: #e03b4a; } .rl-dia.b { background: #15181b; border: 1px solid #6b7078; }
.rl.closed .rl-cell { cursor: not-allowed; }
.rl.closed .rl-cell:not(.hit) { filter: brightness(.82); }
.rl-placed { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 30px; height: 30px; border-width: 3px; font-size: 8.5px; box-shadow: 0 0 0 2px var(--c), 0 3px 6px rgba(0,0,0,.5); pointer-events: none; z-index: 1; animation: rl-drop .18s ease-out; }
@keyframes rl-drop { from { transform: translateY(-8px) scale(1.2); opacity: 0; } to { transform: none; opacity: 1; } }

.rl-fair-list { display: grid; gap: 6px; max-height: 280px; overflow-y: auto; }
.rl-fair-list div { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.rl-verify { padding: 8px 14px; border-radius: 8px; background: #2a2d33; color: #3fd68f; font-weight: 700; font-size: 14px; text-decoration: none; }
.rl-verify:hover { background: #33373e; }
.rl-fair-list code { padding: 8px; font-size: 12px; }

@media (max-width: 1400px) { .rl-mid { grid-template-columns: minmax(0, 1fr) 300px; } }
@media (max-width: 1100px) {
  .rl-game { grid-template-columns: minmax(0, 1fr); }
  .rl-side { order: 2; }
  .rl-mid { grid-template-columns: minmax(0, 1fr); }
  .rl-plist { max-height: 300px; }
}
@media (max-width: 600px) {
  .rl-main { padding: 14px 10px; }
  .rl-hist .rl-h:nth-child(-n+10) { display: none; }
  .rl-top .cf-tbtn { padding: 0 10px; font-size: 14px; }
  .rl-chips { grid-template-columns: repeat(4, 1fr); }
  .rl-board { min-width: 720px; }
  .rl-center small#rlLabel { font-size: 11px; letter-spacing: 1px; }
}

/* chips sit on the middle of the spot they're on */
.rl-cell { position: relative; }
.rl-cell.out .rl-placed, .rl-cell.side .rl-placed { width: 28px; height: 28px; }
