/* =============================================================================
   roulette.css — the Roulette table's own sheet (labs 561)

   Class names are all prefixed rl-. site.css owns the short names (.band,
   .console, .btn, .seg__b, .sw, .lbl, .hint) and this sheet only places them.

   THE WHEEL AND THE LAYOUT ARE OBJECTS ON THE PAGE, like the reversi board:
   a red pocket is red and a black one black because the game says so, so
   their colours are tokens of their own (--rl-*), set once here for the paper
   edition and once for the moon edition (html[data-dark]). One sheet, one
   document, two skins. roulette.js reads the same tokens to paint the canvas,
   so the drawn wheel and the laid table can never disagree about a colour.

   The dress is the house's, not a casino's: on paper a pale turned-ash bowl,
   an ink-lacquer track, nickel frets and a layout printed like a ledger; by
   moonlight smoked walnut, brass and a slate cloth. The one orange thing is
   the jewel at the wheel's centre and whatever is live.

   Phones first: under 700 px the layout stands on its end (three numbers
   across, every box at least 44 px), the wheel above it, nothing wider than
   the screen. Colour is never the only signal: a result is said in words, red
   boxes carry a filled lozenge and black an open one, the strip of past
   numbers sets red high and black low.
   ========================================================================== */

.rl {
    --rl-cloth:   #F7F3EA;
    --rl-cloth-2: #EFE9DB;
    --rl-rule:    rgba(30, 38, 43, .46);
    --rl-red:     #B8321F;
    --rl-black:   #1E262B;
    --rl-green:   #1D6B45;
    --rl-on:      #FFF8EC;
    --rl-word:    #1E262B;
    --rl-lit:     #FB923C;
    --rl-shadow:  0 1px 2px rgba(17, 22, 28, .14), 0 18px 40px rgba(17, 22, 28, .16);
    /* the wheel (read by roulette.js) */
    --rl-wood-a:  #EADCC0;
    --rl-wood-b:  #C6AB7C;
    --rl-wood-c:  #A98F63;
    --rl-track-a: #2B343B;
    --rl-track-b: #12181D;
    --rl-metal-a: #FBFCFD;
    --rl-metal-b: #B9C0C6;
    --rl-metal-c: #6B747C;
    --rl-ball:    #FBF8F1;
    --rl-jewel:   #F97316;
    --rl-floor:   rgba(17, 22, 28, .30);
    /* the chips */
    --rl-c1: #F7F3EA; --rl-c1b: #1E262B; --rl-c1t: #1E262B;
    --rl-c5: #B8321F; --rl-c5b: #FFF8EC; --rl-c5t: #FFF8EC;
    --rl-c25: #1D6B45; --rl-c25b: #FFF8EC; --rl-c25t: #FFF8EC;
    --rl-c100: #1E262B; --rl-c100b: #FB923C; --rl-c100t: #FFF8EC;
    --rl-c500: #FB923C; --rl-c500b: #1E262B; --rl-c500t: #2A1206;
}
html[data-dark] .rl {
    --rl-cloth:   #131C24;
    --rl-cloth-2: #18232D;
    --rl-rule:    rgba(255, 255, 255, .24);
    --rl-red:     #C4412C;
    --rl-black:   #070A0D;
    --rl-green:   #1F7F53;
    --rl-on:      #FFF4E2;
    --rl-word:    #F1F4F7;
    --rl-lit:     #F97316;
    --rl-shadow:  0 0 0 1px rgba(255, 255, 255, .07), 0 18px 44px rgba(0, 0, 0, .55);
    --rl-wood-a:  #5B4330;
    --rl-wood-b:  #2C1F16;
    --rl-wood-c:  #17100B;
    --rl-track-a: #1A222A;
    --rl-track-b: #080B0E;
    --rl-metal-a: #FFE9B8;
    --rl-metal-b: #C79A4B;
    --rl-metal-c: #6E4E1E;
    --rl-ball:    #FFFDF7;
    --rl-floor:   rgba(0, 0, 0, .55);
    --rl-c1: #F1ECE0; --rl-c100: #2A3640;
}

.rl-stat { margin: 0 0 0 auto; font-size: .78rem; letter-spacing: .04em; color: var(--ink-55); text-align: right; }
.rl [hidden] { display: none !important; }
.rl-fact { margin: 2.2rem 0 0; padding-top: 1.1rem; border-top: 1px solid var(--line); max-width: 46rem; font-size: .84rem; line-height: 1.6; color: var(--ink-55); }

/* ------------------------------------------------------------ wheel + board */
.rl-top { display: grid; gap: 1.2rem; min-width: 0; }
.rl-stage { min-width: 0; display: grid; justify-items: center; }
.rl-wheel {
    position: relative; width: 100%; max-width: 30rem; aspect-ratio: 1 / 1; border-radius: 50%;
    box-shadow: var(--rl-shadow);
    background: var(--rl-wood-b);
}
.rl-wheel canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; border-radius: 50%; }
.rl-noscript { position: absolute; inset: 22%; display: grid; place-items: center; text-align: center; margin: 0; padding: 1rem; border-radius: 12px; background: var(--paper); color: var(--ink); font-size: .9rem; }

.rl-side { min-width: 0; display: grid; gap: 1rem; align-content: start; }
.rl-call { display: flex; align-items: center; gap: 1rem; min-width: 0; }
.rl-num {
    flex: 0 0 auto; width: 5.4rem; height: 5.4rem; border-radius: 16px; display: grid; place-items: center;
    font-size: 2.9rem; font-weight: 700; letter-spacing: -.02em; line-height: 1; font-variant-numeric: tabular-nums;
    color: var(--ink-55); background: transparent; border: 1px dashed var(--line);
}
.rl-num[data-c] { color: var(--rl-on); border: 0; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), 0 6px 18px rgba(17, 22, 28, .18); }
.rl-num[data-c="red"] { background: var(--rl-red); }
.rl-num[data-c="black"] { background: var(--rl-black); }
.rl-num[data-c="green"] { background: var(--rl-green); }
html[data-dark] .rl-num[data-c="black"] { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); }
.rl-num.is-new { animation: rl-pop .5s var(--ease); }
@keyframes rl-pop { from { transform: scale(.72); opacity: 0; } 60% { transform: scale(1.06); } to { transform: none; opacity: 1; } }
.rl-callw { min-width: 0; }
.rl-callw b { display: block; font-size: 1.25rem; line-height: 1.25; color: var(--ink); }
.rl-callw span { display: block; margin-top: .2rem; font-size: .86rem; line-height: 1.45; color: var(--ink-55); }
.rl-say { margin: 0; min-height: 2.9em; font-size: .92rem; line-height: 1.45; color: var(--ink-77); }
.rl-say b { color: var(--ink); }

.rl-money { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; margin: 0; }
.rl-money div { min-width: 0; padding: .6rem .7rem; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
html[data-dark] .rl-money div { background: var(--deep); }
.rl-money dt { font-size: .66rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-55); }
.rl-money dd { margin: .15rem 0 0; font-size: 1.22rem; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rl-money dd small { font-size: .7rem; font-weight: 600; color: var(--ink-55); margin-left: .25rem; }
.rl-refill { margin: 0; font-size: .84rem; color: var(--ink-55); }
.rl-link { -webkit-appearance: none; appearance: none; background: none; border: 0; padding: .65rem 0; margin: 0; min-height: 44px; font: inherit; font-weight: 700; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.rl-link:hover { color: var(--accent); }

/* the last numbers: red sits high, black low, the zero in the middle */
.rl-lastw { min-width: 0; }
.rl-last { list-style: none; margin: .35rem 0 0; padding: 0; display: flex; gap: 4px; height: 3.3rem; align-items: center; overflow: hidden; }
.rl-last li {
    flex: 0 0 auto; width: 1.95rem; height: 1.95rem; border-radius: 7px; display: grid; place-items: center;
    font-size: .82rem; font-weight: 700; color: var(--rl-on); font-variant-numeric: tabular-nums;
}
.rl-last li[data-c="red"] { background: var(--rl-red); align-self: flex-start; }
.rl-last li[data-c="black"] { background: var(--rl-black); align-self: flex-end; }
.rl-last li[data-c="green"] { background: var(--rl-green); }
html[data-dark] .rl-last li[data-c="black"] { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); }
.rl-last li[aria-current] { outline: 2px solid var(--rl-lit); outline-offset: 1px; }
.rl-last__none { font-size: .82rem; color: var(--ink-55); width: auto !important; background: none !important; font-weight: 500 !important; color: var(--ink-55) !important; }

/* ------------------------------------------------------------------ the rack */
.rl-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.2rem; min-width: 0; }
.rl-rack { display: flex; align-items: center; gap: .55rem; min-width: 0; }
.rl-chipb {
    -webkit-appearance: none; appearance: none; border: 0; background: none; padding: 0; margin: 0; cursor: pointer;
    width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; position: relative;
    touch-action: none; transition: transform .18s var(--ease);
}
.rl-chipb[aria-checked="true"] { transform: translateY(-5px); }
.rl-chipb[aria-checked="true"]::after { content: ''; position: absolute; left: 50%; bottom: -9px; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: var(--accent); }
.rl-chipb:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.rl-chip {
    --a: var(--rl-c1); --b: var(--rl-c1b); --t: var(--rl-c1t);
    width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; pointer-events: none;
    font-size: .78rem; font-weight: 800; letter-spacing: -.01em; color: var(--t); font-variant-numeric: tabular-nums;
    background:
        radial-gradient(circle, var(--a) 0 54%, transparent 55%),
        radial-gradient(circle, transparent 0 57%, var(--b) 58% 61%, transparent 62%),
        repeating-conic-gradient(from -11.25deg, var(--b) 0 22.5deg, var(--a) 22.5deg 45deg);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .22), inset 0 2px 1px rgba(255, 255, 255, .28), 0 1px 0 rgba(0, 0, 0, .35), 0 3px 5px rgba(17, 22, 28, .28);
}
.rl-chip[data-d="5"] { --a: var(--rl-c5); --b: var(--rl-c5b); --t: var(--rl-c5t); }
.rl-chip[data-d="25"] { --a: var(--rl-c25); --b: var(--rl-c25b); --t: var(--rl-c25t); }
.rl-chip[data-d="100"] { --a: var(--rl-c100); --b: var(--rl-c100b); --t: var(--rl-c100t); }
.rl-chip[data-d="500"] { --a: var(--rl-c500); --b: var(--rl-c500b); --t: var(--rl-c500t); }
.rl-acts { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; min-width: 0; }
.rl-acts .btn { min-height: 44px; }
.rl-spin { margin-left: auto; min-height: 48px; min-width: 9.5rem; justify-content: center; font-size: .86rem; }
.rl-spin[disabled] { opacity: .6; }
.rl-spin2 { display: none; }

/* ------------------------------------------------------------------ the layout
   Every bet is a real <button>, placed by roulette.js in percentages of this box,
   so the layout scales with it and stands on its end for a phone. */
.rl-table {
    position: relative; width: 100%; height: 290px; min-width: 0;
    background: var(--rl-cloth); border: 1.5px solid var(--rl-rule); border-radius: 10px;
    box-shadow: var(--rl-shadow); overflow: hidden;
    touch-action: pan-y; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
}
@media (min-width: 1100px) { .rl-table { height: 304px; } }
.rl-table.is-tall { height: 664px; }
.rl-table.is-shut .rl-s { cursor: default; }
.rl-s {
    -webkit-appearance: none; appearance: none; position: absolute; margin: 0; padding: 0; border: 0; background: none;
    font: inherit; color: var(--rl-word); cursor: pointer; display: grid; place-items: center; min-width: 0; border-radius: 0;
    -webkit-tap-highlight-color: transparent;
}
.rl-s:focus { outline: none; }
/* a number, a box */
.rl-s--area { box-shadow: inset 0 0 0 .75px var(--rl-rule); z-index: 1; }
.rl-s--area .rl-s__l { font-size: 1.02rem; font-weight: 700; letter-spacing: .01em; font-variant-numeric: tabular-nums; pointer-events: none; text-align: center; line-height: 1.15; }
.rl-s--area .rl-s__l small { display: block; font-size: .62rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; opacity: .7; margin-top: .15rem; }
.rl-s[data-c] { color: var(--rl-on); }
.rl-s[data-c="red"] { background: var(--rl-red); }
.rl-s[data-c="black"] { background: var(--rl-black); }
.rl-s[data-c="green"] { background: var(--rl-green); }
.rl-s[data-k="dozen"], .rl-s[data-k="column"], .rl-s[data-k="even"] { background: var(--rl-cloth-2); }
.rl-s[data-k="dozen"] .rl-s__l, .rl-s[data-k="column"] .rl-s__l, .rl-s[data-k="even"] .rl-s__l { font-size: .84rem; letter-spacing: .04em; }
.rl-loz { display: inline-block; width: .78em; height: .78em; margin-right: .4em; transform: rotate(45deg) translateY(-.02em); vertical-align: -.02em; border: 1.5px solid currentColor; }
.rl-loz--red { background: var(--rl-red); border-color: var(--rl-red); }
.rl-loz--black { background: transparent; border-color: var(--rl-word); box-shadow: inset 0 0 0 2px var(--rl-cloth-2), inset 0 0 0 9px var(--rl-black); }
html[data-dark] .rl-loz--black { box-shadow: inset 0 0 0 2px var(--rl-cloth-2), inset 0 0 0 9px #000; }
/* a line, a corner: a small button over the join, with a dot that shows when it is aimed at */
.rl-s--line { z-index: 3; }
.rl-s--node { z-index: 4; }
.rl-s--line::before, .rl-s--node::before {
    content: ''; width: 11px; height: 11px; border-radius: 50%; background: var(--rl-lit); opacity: 0; transform: scale(.4);
    box-shadow: 0 0 0 2px var(--rl-cloth); transition: opacity .12s, transform .12s; pointer-events: none;
}
.rl-s--line:hover::before, .rl-s--node:hover::before, .rl-s--line.is-aim::before, .rl-s--node.is-aim::before,
.rl-s--line:focus-visible::before, .rl-s--node:focus-visible::before { opacity: 1; transform: none; }
.rl-s.has-chip::before { display: none; }
.rl-s--area:hover, .rl-s--area.is-aim { box-shadow: inset 0 0 0 .75px var(--rl-rule), inset 0 0 0 3px var(--rl-lit); }
.rl-s:focus-visible { z-index: 6; }
.rl-s--area:focus-visible { box-shadow: inset 0 0 0 .75px var(--rl-rule), inset 0 0 0 3px var(--rl-lit), inset 0 0 0 5px var(--rl-cloth); }
.rl-s--line:focus-visible, .rl-s--node:focus-visible { outline: 2px solid var(--rl-lit); outline-offset: -2px; border-radius: 6px; background: color-mix(in srgb, var(--rl-cloth) 70%, transparent); }
.rl-table.is-shut .rl-s:hover { box-shadow: inset 0 0 0 .75px var(--rl-rule); }
.rl-table.is-shut .rl-s--line:hover::before, .rl-table.is-shut .rl-s--node:hover::before { opacity: 0; }
/* the numbers a bet covers, lit while it is aimed at */
.rl-s.is-lit::after { content: ''; position: absolute; inset: 0; background: rgba(255, 255, 255, .26); box-shadow: inset 0 0 0 2px var(--rl-lit); pointer-events: none; }
/* the winning number, marked */
.rl-s.is-won { z-index: 2; }
.rl-s.is-won::after { content: ''; position: absolute; inset: 3px; border: 3px solid var(--rl-lit); border-radius: 6px; pointer-events: none; animation: rl-mark 1.1s var(--ease) 1; background: none; box-shadow: 0 0 0 1px rgba(0, 0, 0, .25); }
@keyframes rl-mark { from { inset: -8px; opacity: 0; } to { inset: 3px; opacity: 1; } }

/* a stack on the layout */
.rl-stack {
    position: absolute; left: 50%; top: 50%; width: 30px; height: 30px; margin: -15px 0 0 -15px; z-index: 5; pointer-events: none;
    font-size: .64rem; animation: rl-drop .22s var(--ease);
}
.rl-stack .rl-chip { width: 30px; height: 30px; font-size: .64rem; }
.rl-stack[data-h="2"] .rl-chip { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .22), inset 0 2px 1px rgba(255, 255, 255, .28), 0 2px 0 var(--b), 0 3px 0 rgba(0, 0, 0, .4), 0 5px 6px rgba(17, 22, 28, .3); transform: translateY(-1px); }
.rl-stack[data-h="3"] .rl-chip { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .22), inset 0 2px 1px rgba(255, 255, 255, .28), 0 2px 0 var(--b), 0 3px 0 rgba(0, 0, 0, .4), 0 5px 0 var(--a), 0 6px 0 rgba(0, 0, 0, .4), 0 8px 8px rgba(17, 22, 28, .3); transform: translateY(-3px); }
@keyframes rl-drop { from { transform: translateY(-9px) scale(1.18); opacity: 0; } to { transform: none; opacity: 1; } }
/* A chip on a number sits on the number, as on a real table (every edge and corner of the cell is another
   bet's place). A box keeps its name beside the chip that is on it. */
.rl-s[data-k="dozen"].has-chip .rl-s__l, .rl-s[data-k="even"].has-chip .rl-s__l { transform: translateX(-15px); }
.rl-s[data-k="dozen"] .rl-stack, .rl-s[data-k="even"] .rl-stack { left: calc(100% - 26px); }
.rl-s[data-k="column"].has-chip .rl-s__l { transform: translateY(-15px); }
.rl-s[data-k="column"].has-chip .rl-s__l small { display: none; }
.rl-s[data-k="column"] .rl-stack { top: calc(50% + 13px); }
.rl-s[data-spot="s:0"].has-chip .rl-s__l { transform: translateY(-30px); }
.rl-table.is-tall .rl-s[data-k="dozen"].has-chip .rl-s__l, .rl-table.is-tall .rl-s[data-k="even"].has-chip .rl-s__l { transform: translateY(-19px); }
.rl-table.is-tall .rl-s[data-k="dozen"] .rl-stack, .rl-table.is-tall .rl-s[data-k="even"] .rl-stack { left: 50%; top: calc(50% + 19px); }
.rl-table.is-tall .rl-s[data-k="column"].has-chip .rl-s__l { transform: translateX(-16px); }
.rl-table.is-tall .rl-s[data-k="column"] .rl-stack { top: 50%; left: calc(50% + 19px); }
.rl-table.is-tall .rl-s[data-spot="s:0"].has-chip .rl-s__l { transform: translateX(-30px); }
/* On a number the numeral is the cell's only label, and a chip dead centre hid it: the chip is a size smaller and
   seated low and to the right, the numeral moves up and to the left of it, and the two do not meet. (The zero's
   cell is three rows long: its numeral moves along it, above.) */
.rl-s[data-k="straight"]:not([data-spot="s:0"]) .rl-stack { width: 24px; height: 24px; margin: -12px 0 0 -12px; left: calc(50% + 9px); top: calc(50% + 10px); }
.rl-s[data-k="straight"]:not([data-spot="s:0"]) .rl-stack .rl-chip { width: 24px; height: 24px; font-size: .56rem; }
.rl-s[data-k="straight"]:not([data-spot="s:0"]).has-chip .rl-s__l { transform: translate(-9px, -12px); }
.rl-table.is-tall .rl-s[data-k="straight"]:not([data-spot="s:0"]) .rl-stack { left: calc(50% + 13px); top: calc(50% + 7px); }
.rl-table.is-tall .rl-s[data-k="straight"]:not([data-spot="s:0"]).has-chip .rl-s__l { transform: translate(-14px, -9px); }
.rl-stack.is-lost { opacity: .34; filter: grayscale(.7); animation: none; }
.rl-stack.is-paid { animation: none; }
.rl-stack.is-paid .rl-chip { outline: 2px solid var(--rl-lit); outline-offset: 1px; }
.rl-stack.is-half { opacity: .7; animation: none; }

/* the lens: what the finger is on, said above it */
.rl-lens {
    position: fixed; z-index: 60; left: 0; top: 0; pointer-events: none; max-width: min(18rem, calc(100vw - 16px));
    display: flex; align-items: center; gap: .6rem; padding: .5rem .8rem .5rem .55rem; border-radius: 999px;
    background: var(--deep); color: #fff; box-shadow: 0 8px 24px rgba(0, 0, 0, .35), 0 0 0 1px rgba(255, 255, 255, .14);
    font-size: .84rem; line-height: 1.25;
}
.rl-lens b { display: block; font-size: .92rem; white-space: nowrap; }
.rl-lens span span { display: block; opacity: .78; font-size: .74rem; white-space: nowrap; }
.rl-lens .rl-chip { width: 34px; height: 34px; font-size: .68rem; flex: 0 0 auto; }
.rl-ghost { position: fixed; z-index: 61; left: 0; top: 0; pointer-events: none; margin: -21px 0 0 -21px; opacity: .92; }

.rl-tip { margin: 0; min-height: 1.5em; font-size: .86rem; line-height: 1.5; color: var(--ink-77); }
.rl-tip b { color: var(--ink); }

/* -------------------------------------------------------------- the racetrack */
.rl-called { border: 1px solid var(--line); border-radius: 12px; background: var(--paper); min-width: 0; }
html[data-dark] .rl-called, html[data-dark] .rl-counts, html[data-dark] .rl-slip { background: var(--deep); }
.rl-called > summary, .rl-counts > summary { cursor: pointer; padding: .85rem 1rem; min-height: 44px; font-size: .86rem; font-weight: 700; color: var(--ink); }
.rl-called__in { padding: 0 1rem 1rem; display: grid; gap: .8rem; min-width: 0; }
.rl-called__in > p { margin: 0; font-size: .84rem; line-height: 1.55; color: var(--ink-55); max-width: 52rem; }
.rl-sectors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .45rem; }
.rl-sector {
    -webkit-appearance: none; appearance: none; min-height: 48px; padding: .5rem .7rem; border: 1px solid var(--line); border-radius: 10px;
    background: var(--paper); color: var(--ink); font: inherit; font-size: .84rem; font-weight: 700; text-align: left; cursor: pointer; min-width: 0;
}
html[data-dark] .rl-sector { background: var(--deep-soft); }
.rl-sector small { display: block; font-size: .7rem; font-weight: 500; color: var(--ink-55); margin-top: .1rem; }
.rl-sector:hover, .rl-sector:focus-visible { border-color: var(--ink); outline: none; box-shadow: 0 0 0 2px var(--rl-lit); }
.rl-track { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 3px; min-width: 0; }
@media (min-width: 700px) { .rl-track { grid-template-columns: repeat(10, minmax(0, 1fr)); } .rl-sectors { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.rl-tn {
    -webkit-appearance: none; appearance: none; min-height: 44px; border: 0; border-radius: 7px; margin: 0; padding: 0; cursor: pointer;
    font: inherit; font-size: .9rem; font-weight: 700; color: var(--rl-on); font-variant-numeric: tabular-nums; position: relative;
}
.rl-tn[data-c="red"] { background: var(--rl-red); }
.rl-tn[data-c="black"] { background: var(--rl-black); }
.rl-tn[data-c="green"] { background: var(--rl-green); }
html[data-dark] .rl-tn[data-c="black"] { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28); }
.rl-tn:hover, .rl-tn:focus-visible, .rl-tn.is-lit { outline: 2px solid var(--rl-lit); outline-offset: 1px; z-index: 2; }
.rl-tn.is-lit { filter: brightness(1.25); }
@media (min-width: 1000px) {
    .rl-called__in { grid-template-columns: minmax(0, 1fr); }
    /* the track is drawn: a lane of the table's cloth, fifty pixels wide, the numbers set along its middle
       (roulette.js places them: --x, --y), and the four called bets on the field inside it */
    .rl-track { display: block; height: 220px; max-width: 920px; margin: 0 auto; width: 100%; }
    .rl-track::before { content: ''; position: absolute; inset: 0; border: 1px solid var(--rl-rule); border-radius: 110px; background: var(--rl-cloth); pointer-events: none; }
    .rl-track::after { content: ''; position: absolute; inset: 50px; border: 1px solid var(--rl-rule); border-radius: 60px; background: var(--paper); pointer-events: none; }
    html[data-dark] .rl-track::after { background: var(--deep); }
    .rl-tn { position: absolute; z-index: 1; width: 44px; height: 44px; min-height: 0; margin: -22px 0 0 -22px; left: var(--x); top: var(--y); border-radius: 50%; }
    .rl-sectors { position: absolute; left: 14%; right: 14%; top: 50%; transform: translateY(-50%); grid-template-columns: repeat(4, minmax(0, 1fr)); z-index: 1; }
    .rl-trackw { position: relative; }
}

/* ------------------------------------------------------------------ the slip */
.rl-slip { border: 1px solid var(--line); border-radius: 12px; background: var(--paper); padding: .85rem 1rem; min-width: 0; }
.rl-slip h3 { margin: 0 0 .5rem; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-55); }
.rl-slip__none { margin: 0; font-size: .86rem; color: var(--ink-55); }
.rl-slipw { max-height: 26rem; overflow: auto; }
.rl-slip table { width: 100%; border-collapse: collapse; font-size: .84rem; font-variant-numeric: tabular-nums; }
.rl-slip th, .rl-slip td { padding: .38rem .5rem .38rem 0; text-align: right; border-top: 1px solid var(--line-soft); white-space: nowrap; }
.rl-slip thead th { border-top: 0; font-size: .66rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-55); }
.rl-slip th:first-child, .rl-slip td:first-child { text-align: left; white-space: normal; }
.rl-slip tbody th { font-weight: 700; color: var(--ink); }
.rl-slip tfoot td, .rl-slip tfoot th { font-weight: 700; color: var(--ink); border-top: 1px solid var(--line); }
.rl-won { color: var(--free); font-weight: 700; }
.rl-lost { color: var(--ink-55); }
.rl-half { color: var(--unsure); font-weight: 700; }

.rl-opts { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; min-width: 0; }
.rl-opts .sw { min-height: 44px; }
.rl-opts .hint { margin: 0; flex: 1 1 100%; max-width: 40rem; }

/* ----------------------------------------------------------------- the counts */
.rl-counts { border: 1px solid var(--line); border-radius: 12px; background: var(--paper); min-width: 0; }
.rl-counts__in { padding: 0 1rem 1rem; min-width: 0; }
.rl-counts__in p { margin: 0 0 .8rem; font-size: .86rem; line-height: 1.55; color: var(--ink-77); max-width: 52rem; }
.rl-counts__in p b { color: var(--ink); }
.rl-bars { display: grid; grid-template-columns: repeat(37, minmax(0, 1fr)); gap: 2px; align-items: end; height: 7.4rem; margin: 0; padding: 0; list-style: none; }
.rl-bars li { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; min-width: 0; }
.rl-bars i { display: block; width: 100%; min-height: 2px; border-radius: 2px 2px 0 0; background: var(--ink-55); }
.rl-bars li[data-c="red"] i { background: var(--rl-red); }
.rl-bars li[data-c="green"] i { background: var(--rl-green); }
.rl-bars li[data-c="black"] i { background: var(--rl-black); }
html[data-dark] .rl-bars li[data-c="black"] i { background: #5B6670; }
.rl-bars b { font-size: .56rem; font-weight: 700; color: var(--ink-55); margin-top: 2px; line-height: 1; font-variant-numeric: tabular-nums; }
.rl-bars em { font-style: normal; font-size: .56rem; color: var(--ink-77); line-height: 1; margin-bottom: 2px; font-variant-numeric: tabular-nums; }
@media (max-width: 699px) { .rl-bars { grid-template-columns: repeat(19, minmax(0, 1fr)); height: auto; row-gap: .7rem; } .rl-bars li { height: 4.6rem; } }

/* ------------------------------------------------------------------- the odds */
.rl-oddsw { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); margin-top: 1.6rem; }
html[data-dark] .rl-oddsw { background: var(--deep); }
.rl-odds { width: 100%; border-collapse: collapse; font-size: .9rem; font-variant-numeric: tabular-nums; }
.rl-odds caption { text-align: left; }
.rl-odds th, .rl-odds td { padding: .7rem .9rem; text-align: right; border-top: 1px solid var(--line-soft); white-space: nowrap; }
.rl-odds thead th { border-top: 0; font-size: .68rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-55); vertical-align: bottom; white-space: normal; }
.rl-odds th:first-child, .rl-odds td:first-child { text-align: left; }
.rl-odds tbody th { color: var(--ink); font-weight: 700; white-space: normal; }
.rl-odds tbody th small { display: block; font-weight: 500; font-size: .76rem; color: var(--ink-55); }
.rl-odds tr.is-part td, .rl-odds tr.is-part th { background: var(--unsure-wash); }
.rl-oddsnote { margin: 1rem 0 0; font-size: .86rem; line-height: 1.6; color: var(--ink-55); max-width: 52rem; }
.rl-oddsnote b { color: var(--ink); }
/* A phone: eight columns are 455 px and the box is 318, so each bet is its name and then four figures under their
   own small labels, as the bet slip is — pays, chance, house edge, loss per 100. "Numbers" and "Wins" (rl-o-mid) say
   the bet's name and its chance a second time, and "Places on the table" (rl-o-wide) is for a wide screen: a phone
   does not show them. The column heads stay for a screen reader. Nothing scrolls sideways; nothing is cut off. */
@media (max-width: 699px) {
    .rl-odds, .rl-odds tbody { display: block; }
    .rl-odds { font-size: .88rem; }
    .rl-odds thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
    .rl-odds tr { display: grid; grid-template-columns: .9fr 1fr 1.2fr 1.3fr; gap: 0 .5rem; align-items: end; padding: .75rem .85rem; border-top: 1px solid var(--line-soft); }
    .rl-odds tbody tr:first-child { border-top: 0; }
    .rl-odds tbody th { grid-column: 1 / -1; border: 0; padding: 0 0 .4rem; }
    .rl-odds tbody th small { display: inline; margin-left: .45rem; }
    .rl-odds td { border: 0; padding: 0; text-align: left; color: var(--ink); min-width: 0; }
    .rl-odds td[data-l]::before { content: attr(data-l); display: block; margin-bottom: .1rem; font-size: .58rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-55); white-space: normal; }
    .rl-odds .rl-o-wide, .rl-odds .rl-o-mid { display: none; }
    .rl-odds td.rl-o-all { grid-column: 1 / -1; white-space: normal; }
    .rl-odds tr.is-part { background: var(--unsure-wash); }
    .rl-odds tr.is-part td, .rl-odds tr.is-part th { background: none; }
}

/* ------------------------------------------------------------------ the method */
.rl-cols { display: grid; gap: 2rem 3rem; margin-top: 1.6rem; }
.rl-cols p { margin: 0 0 1.1rem; font-size: .95rem; line-height: 1.7; color: var(--ink-77); }
.rl-h3 { margin: 0 0 .5rem; font-size: 1rem; font-weight: 700; color: var(--ink); }
.rl-cols code { font-size: .86em; }
.rl-linkbtn { -webkit-appearance: none; appearance: none; background: none; border: 0; padding: 0; margin: 0; font: inherit; color: var(--ink); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.rl-linkbtn:hover { color: var(--accent); }
.rl-proof { margin: 0 0 1.1rem; padding: .8rem 1rem; border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 10px; font-size: .88rem; line-height: 1.6; color: var(--ink-77); }
.rl-proof b { color: var(--ink); }

/* -------------------------------------------------------------------- widths */
@media (max-width: 1099px) {
    .rl-s[data-k="column"] .rl-s__l small { display: none; }
    .rl-s--area .rl-s__l { font-size: .95rem; }
}
@media (min-width: 900px) {
    .rl-top { grid-template-columns: minmax(0, 30rem) minmax(0, 1fr); gap: 2rem; align-items: center; }
    .rl-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 699px) {
    .rl-wheel { max-width: 22.5rem; }
    .rl-num { width: 4.4rem; height: 4.4rem; font-size: 2.3rem; }
    .rl-bar { gap: .7rem; }
    .rl-rack { width: 100%; justify-content: space-between; gap: .2rem; }
    .rl-acts { width: 100%; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .rl-acts .btn { padding-inline: .3rem; justify-content: center; }
    .rl-spin { grid-column: 1 / -1; width: 100%; margin: 0; }
    .rl-spin2 { display: inline-flex; width: 100%; justify-content: center; min-height: 48px; }
    .rl-s--area .rl-s__l { font-size: .98rem; }
    .rl-s[data-k="dozen"] .rl-s__l, .rl-s[data-k="column"] .rl-s__l, .rl-s[data-k="even"] .rl-s__l { font-size: .74rem; letter-spacing: 0; }
    .rl-loz { display: block; margin: 0 auto .35em; }
    .rl-money dd { font-size: 1.05rem; }
    .rl-money div { padding: .5rem .55rem; }
}
/* a phone: each bet is its name, then its four figures under their own small labels */
@media (max-width: 699px) {
    .rl-slip table, .rl-slip tbody, .rl-slip tfoot { display: block; }
    .rl-slip thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
    .rl-slip tr { display: grid; grid-template-columns: .8fr 1fr 1fr 1.5fr; gap: 0 .4rem; padding: .5rem 0; border-top: 1px solid var(--line-soft); }
    .rl-slip tbody tr:first-child { border-top: 0; }
    .rl-slip tfoot tr { border-top: 1px solid var(--line); }
    .rl-slip tbody th, .rl-slip tfoot th { grid-column: 1 / -1; border: 0; padding: 0 0 .2rem; }
    .rl-slip td, .rl-slip tfoot td { border: 0; padding: 0; text-align: left; }
    .rl-slip td[data-l]::before { content: attr(data-l); display: block; font-size: .58rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-55); }
}
@media (prefers-reduced-motion: reduce) {
    .rl-num.is-new, .rl-stack, .rl-s.is-won::after { animation: none; }
    .rl-chipb { transition: none; }
}
