/* ---- The roulette table ---- */
/* A roulette table seen from above: a dark wooden rail round deep green felt.
   At the head the wheel, with the house beside it; then the betting layout
   printed in gold; then the five seats along the rail. My own chips and
   buttons are under the table. Everything here lives inside #roulette. The
   felt, the gold and the wood are the same whatever look the rest of the
   page has: red and black numbers need a green cloth. */
#roulette {
  max-width: 880px; margin: 0 auto;
  --rl-gold: #e8c877; --rl-line: rgba(232, 200, 119, 0.8); --rl-red: #a8201a; --rl-black: #17181a; --rl-green: #1c8a4a;
  --rl-serif: Georgia, 'Times New Roman', serif;
}
#roulette *, #roulette *::before, #roulette *::after { box-sizing: border-box; }
#roulette #rl-title { text-align: center; font-weight: 700; font-size: 0.9rem; padding: 0 48px; min-height: 1.3em; margin-bottom: 6px; }

/* The rail and the felt */
#roulette #rl-rail {
  padding: 10px; border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0) 30%, rgba(0, 0, 0, 0.35)),
    linear-gradient(90deg, #3d2415, #5e3a22 22%, #6e4428 50%, #5e3a22 78%, #3d2415);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(0, 0, 0, 0.5), inset 0 2px 0 rgba(255, 255, 255, 0.18);
}
#roulette #rl-felt {
  position: relative; border-radius: 18px; padding: 10px 10px 12px;
  background:
    radial-gradient(ellipse at 50% -10%, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0) 55%),
    radial-gradient(ellipse at 50% 30%, #1d7147, #135336 60%, #0a3622);
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.35), inset 0 6px 26px rgba(0, 0, 0, 0.45);
  color: #f4f1e6;
}

/* The head of the table: the wheel, and beside it the house, the number and the last numbers */
#roulette #rl-top { display: flex; align-items: center; justify-content: center; gap: 12px; }
#roulette #rl-wheel-box { flex: none; line-height: 0; }
#roulette #rl-wheel { width: 150px; height: 150px; border-radius: 50%; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.6)); }
#roulette #rl-wheel .rl-track { fill: #2a170c; stroke: rgba(0, 0, 0, 0.6); stroke-width: 0.6; }
#roulette #rl-wheel .rl-ring { fill: #0c0c0c; stroke: var(--rl-gold); stroke-width: 0.8; }
#roulette #rl-wheel .rl-pk { stroke: #d9b65a; stroke-width: 0.45; }
#roulette #rl-wheel .rl-pk-red { fill: #b3261e; }
#roulette #rl-wheel .rl-pk-black { fill: #151515; }
#roulette #rl-wheel .rl-pk-green { fill: #1f9a52; }
#roulette #rl-wheel .rl-pk-n { fill: #fff; font: 700 7.4px var(--rl-serif); }
#roulette #rl-wheel .rl-fret { fill: none; stroke: #d9b65a; stroke-width: 0.7; }
#roulette #rl-wheel .rl-cone { stroke: #d9b65a; stroke-width: 0.8; }
#roulette #rl-wheel .rl-spoke { fill: #c9a23e; }
#roulette #rl-wheel .rl-knob { fill: #f0d584; stroke: #7a5a14; stroke-width: 0.5; }
#roulette #rl-wheel .rl-hub, #roulette #rl-wheel .rl-cap { stroke: #7a5a14; stroke-width: 0.6; }
#roulette #rl-wheel #rl-ball { stroke: rgba(0, 0, 0, 0.45); stroke-width: 0.4; }
#roulette #rl-head { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 5px; text-align: center; }
#roulette #rl-house { position: relative; }
#roulette .rl-who { font-weight: 700; font-family: var(--rl-serif); color: var(--rl-gold); font-size: 1rem; }
#roulette .rl-badge { display: inline-block; font: 800 0.6rem system-ui, sans-serif; color: #1b1b1b; background: var(--rl-gold); border-radius: 999px; padding: 1px 6px; margin-left: 5px; text-transform: uppercase; letter-spacing: 0.04em; vertical-align: middle; }
#roulette .rl-badge[hidden] { display: none; }
#roulette .rl-note { font-size: 0.78rem; color: rgba(255, 255, 255, 0.72); min-height: 1.2em; font-variant-numeric: tabular-nums; font-weight: 700; }
#roulette #rl-notice { text-align: center; font-size: 0.8rem; color: var(--rl-gold); margin: 6px 6px 0; }
#roulette #rl-notice:empty { display: none; }
/* The number that came up, large, in its colour */
#roulette #rl-number {
  width: 66px; height: 66px; border-radius: 14px; display: grid; place-items: center;
  font: 700 2.3rem var(--rl-serif); font-variant-numeric: lining-nums; color: #fff;
  border: 2px dashed rgba(232, 200, 119, 0.45); background: rgba(0, 0, 0, 0.18);
}
#roulette #rl-number.rl-red, #roulette #rl-number.rl-black, #roulette #rl-number.rl-green { border: 2px solid var(--rl-gold); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5), inset 0 0 0 2px rgba(0, 0, 0, 0.3); }
#roulette #rl-number.rl-red { background: var(--rl-red); }
#roulette #rl-number.rl-black { background: var(--rl-black); }
#roulette #rl-number.rl-green { background: var(--rl-green); }
#roulette #rl-number.rl-rolling::before { content: '···'; color: var(--rl-gold); font-size: 1.6rem; animation: rl-wait 0.9s ease-in-out infinite alternate; }
#roulette #rl-number.rl-pop { animation: rl-pop 0.35s ease-out; }
@keyframes rl-wait { from { opacity: 0.25; } }
@keyframes rl-pop { from { opacity: 0; scale: 0.6; } }
/* The last twelve numbers, the newest first */
#roulette #rl-history { display: flex; flex-wrap: wrap; justify-content: center; gap: 3px; min-height: 22px; }
#roulette .rl-h { min-width: 22px; height: 22px; padding: 0 3px; border-radius: 11px; display: grid; place-items: center; font: 700 0.7rem var(--rl-serif); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25); }
#roulette .rl-h.rl-red { background: var(--rl-red); }
#roulette .rl-h.rl-black { background: var(--rl-black); }
#roulette .rl-h.rl-green { background: var(--rl-green); }
#roulette .rl-h.rl-h-new { box-shadow: 0 0 0 2px var(--rl-gold); }

/* The betting layout. Where every box and spot goes is set by roulette.js, in
   percent of this frame: upright here, lying sideways on a wide screen. */
#roulette #rl-layout { position: relative; height: 700px; margin: 12px 0 0; user-select: none; -webkit-user-select: none; touch-action: manipulation; }
#roulette #rl-cells, #roulette #rl-chips-on { position: absolute; inset: 0; }
#roulette #rl-chips-on { pointer-events: none; z-index: 5; }
#roulette .rl-cell {
  position: absolute; display: grid; place-items: center; text-align: center; line-height: 1.1;
  font-family: var(--rl-serif); font-weight: 700; color: #fff; box-shadow: inset 0 0 0 1px var(--rl-line);
  -webkit-tap-highlight-color: transparent;
}
#roulette .rl-num { font-size: 1.15rem; font-variant-numeric: lining-nums; z-index: 1; }
#roulette .rl-num.rl-red { background: var(--rl-red); }
#roulette .rl-num.rl-black { background: var(--rl-black); }
#roulette .rl-num.rl-green { background: var(--rl-green); border-radius: 14px 14px 0 0; }
#roulette .rl-out { font-size: 0.74rem; letter-spacing: 0.02em; color: var(--rl-gold); background: rgba(0, 0, 0, 0.1); text-transform: uppercase; }
#roulette .rl-out-red { background: var(--rl-red); color: #fff; }
#roulette .rl-out-black { background: var(--rl-black); color: #fff; }
#roulette #rl-layout.rl-open .rl-cell, #roulette #rl-layout.rl-open .rl-spot { cursor: pointer; }
/* What a bet covers, while it is put down */
#roulette .rl-num.rl-lit { box-shadow: inset 0 0 0 1px var(--rl-line), inset 0 0 0 4px #ffe9a8; filter: brightness(1.3); }
/* The number that came up keeps a bright ring until the next spin */
#roulette .rl-num.rl-hit { z-index: 2; box-shadow: inset 0 0 0 3px #fff, 0 0 0 2px var(--rl-gold), 0 0 16px 4px rgba(255, 233, 168, 0.75); }
#roulette #rl-layout.rl-settled .rl-num.rl-hit { animation: rl-hit 0.6s ease-in-out infinite alternate; }
@keyframes rl-hit { to { box-shadow: inset 0 0 0 3px #fff, 0 0 0 3px var(--rl-gold), 0 0 26px 9px rgba(255, 233, 168, 0.95); filter: brightness(1.25); } }
/* The places on the lines: a split, a street, a corner, a six line. Nothing to see until the pointer is on one. */
#roulette .rl-spot { position: absolute; transform: translate(-50%, -50%); z-index: 3; border-radius: 10px; -webkit-tap-highlight-color: transparent; }
#roulette .rl-spot-h { height: 20px; }
#roulette .rl-spot-v { width: 20px; }
#roulette .rl-spot-pt { width: 26px; height: 26px; border-radius: 50%; z-index: 4; }
@media (hover: hover) {
  #roulette #rl-layout.rl-open .rl-spot:hover { background: rgba(255, 233, 168, 0.45); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.6); }
  #roulette #rl-layout.rl-open .rl-out:hover { filter: brightness(1.25); }
}

/* A player's chips on the layout: a chip seen from above with the amount on it, ringed in the player's colour */
#roulette .rl-p0 { --rl-seat: #4fc3f7; }
#roulette .rl-p1 { --rl-seat: #ff9a62; }
#roulette .rl-p2 { --rl-seat: #d7a3e6; }
#roulette .rl-p3 { --rl-seat: #b4e06a; }
#roulette .rl-p4 { --rl-seat: #fff176; }
#roulette .rl-c100 { --chip: #1b1b1d; --chip-edge: #000; }
#roulette .rl-c500 { --chip: #6d3fa0; --chip-edge: #4a2a70; }
#roulette .rl-c1000 { --chip: #d39a1c; --chip-edge: #94690c; }
#roulette .rl-c5000 { --chip: #c9302c; --chip-edge: #8a1f1c; }
#roulette .rl-c25000 { --chip: #1d6fb8; --chip-edge: #124a7c; }
#roulette .rl-stack {
  position: absolute; width: 26px; height: 26px; margin: -13px 0 0 -13px; translate: var(--rl-dx, 0) 0; border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle, var(--chip) 0 52%, rgba(255, 255, 255, 0.9) 53% 60%, var(--chip) 61% 100%);
  border: 2px dashed rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 0 2px var(--rl-seat), 0 3px 0 1px var(--chip-edge), 0 5px 6px rgba(0, 0, 0, 0.55);
}
#roulette .rl-stack.rl-own { z-index: 1; }
#roulette .rl-stack-amt { font: 800 0.56rem system-ui, sans-serif; color: #fff; font-variant-numeric: tabular-nums; text-shadow: 0 1px 2px #000, 0 0 3px #000; letter-spacing: -0.02em; }
/* After the spin: the bets that won light up, the others fade */
#roulette .rl-stack.rl-won { z-index: 2; animation: rl-won 0.5s ease-in-out infinite alternate; }
#roulette .rl-stack.rl-lost { opacity: 0.3; filter: grayscale(0.8); }
@keyframes rl-won { to { scale: 1.3; box-shadow: 0 0 0 2px var(--rl-seat), 0 0 0 4px #fff, 0 0 16px 6px rgba(255, 233, 168, 0.95); } }

/* The seats along the rail: picture, name, chips */
#roulette #rl-seats { display: flex; justify-content: center; align-items: flex-start; gap: 3px; margin-top: 12px; }
#roulette .rl-seat { position: relative; flex: 1 1 0; min-width: 0; max-width: 170px; display: flex; flex-direction: column; align-items: center; text-align: center; }
#roulette .rl-seat.rl-gone { opacity: 0.6; }
#roulette .rl-seat.rl-vacant { cursor: pointer; }
#roulette .rl-plate {
  display: flex; flex-direction: column; align-items: center; gap: 2px; width: 100%; min-width: 0;
  padding: 3px 4px 4px; border-radius: 9px; background: rgba(0, 0, 0, 0.42); border: 1px solid rgba(255, 255, 255, 0.12); border-top: 3px solid var(--rl-seat);
}
#roulette .rl-seat.rl-me .rl-plate { background: rgba(0, 0, 0, 0.62); border-color: var(--rl-seat); }
#roulette .rl-seat.rl-banker .rl-plate { box-shadow: 0 0 0 2px var(--rl-gold); }
#roulette .rl-seat.rl-empty .rl-plate { background: none; border-color: transparent; border-top-color: rgba(255, 255, 255, 0.25); color: rgba(255, 255, 255, 0.6); }
#roulette .rl-seat.rl-empty .rl-foot, #roulette .rl-seat.rl-empty .rl-cam { display: none; }
#roulette .rl-seat.rl-empty .rl-name { white-space: normal; font-weight: 600; font-size: 0.72rem; }
#roulette .rl-seat.rl-vacant .rl-name { text-decoration: underline; color: #fff; }
/* Camera pictures are round, and never mirrored: my own is shown as the others see it. */
#roulette .rl-cam { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: #000; box-shadow: 0 0 0 2px var(--rl-seat); flex: none; transform: none !important; }
#roulette .rl-cam.blank { display: none; }
#roulette .rl-name { max-width: 100%; font-weight: 700; font-size: 0.74rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#roulette .rl-name .rl-badge { display: block; margin: 1px auto 0; width: max-content; }
#roulette .rl-dot { display: none; width: 8px; height: 8px; border-radius: 50%; background: var(--rl-seat); margin-right: 4px; }
#roulette .rl-stackline { max-width: 100%; font-size: 0.68rem; color: var(--rl-gold); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#roulette .rl-given { font-size: 0.62rem; color: rgba(255, 255, 255, 0.7); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Up or down since sitting down */
#roulette .rl-net { font-size: 0.68rem; font-weight: 800; color: rgba(255, 255, 255, 0.75); white-space: nowrap; font-variant-numeric: tabular-nums; }
#roulette .rl-net-up { color: #8fe0ad !important; }
#roulette .rl-net-down { color: #ffb4a9 !important; }
#roulette .rl-foot { font-size: 0.66rem; min-height: 1.25em; margin-top: 2px; color: rgba(255, 255, 255, 0.75); font-variant-numeric: tabular-nums; }
#roulette .rl-foot.rl-placed { color: var(--rl-gold); font-weight: 700; }
#roulette .rl-foot.rl-up-chips { color: #8fe0ad; font-weight: 800; }
#roulette .rl-foot.rl-down-chips { color: #ffb4a9; font-weight: 800; }

/* Speech bubbles: the house's under its name, a player's above the seat */
#roulette .rl-bubble {
  position: absolute; z-index: 8; left: 50%; transform: translateX(-50%); top: calc(100% + 6px);
  width: max-content; max-width: min(300px, 80vw); padding: 7px 11px; text-align: center;
  background: #fdfdfd; color: #161616; border-radius: 12px; font: 600 0.88rem/1.25 system-ui, sans-serif;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5); pointer-events: none;
}
#roulette .rl-bubble[hidden] { display: none; }
#roulette .rl-bubble::after { content: ''; position: absolute; left: 50%; margin-left: -6px; top: -12px; border: 6px solid transparent; border-bottom-color: #fdfdfd; }
#roulette .rl-bubble.rl-up { top: auto; bottom: calc(100% + 4px); max-width: 190px; }
#roulette .rl-bubble.rl-up::after { top: auto; bottom: -12px; border-bottom-color: transparent; border-top-color: #fdfdfd; }
#roulette .rl-bubble.rl-pop { animation: rl-pop 0.22s ease-out; }

/* Under the table: what is going on, the limits, and my chips and buttons */
#roulette #rl-status { text-align: center; font-weight: 700; min-height: 1.5em; margin: 12px 0 2px; font-variant-numeric: tabular-nums; }
#roulette #rl-limits { margin: 0; text-align: center; }
#roulette #rl-error { text-align: center; min-height: 1.2em; margin: 2px 0 0; }
#roulette #rl-mine { margin: 6px 0 0; text-align: center; min-height: 1.2em; font-variant-numeric: tabular-nums; }
#roulette #rl-chips { justify-content: center; gap: 16px; }
#roulette #rl-chips .rl-chip {
  flex: none; width: 62px; height: 62px; min-height: 0; padding: 0; border-radius: 50%;
  font-weight: 800; font-size: 0.84rem; color: #fff; font-variant-numeric: tabular-nums; text-shadow: 0 1px 2px #000;
  background: radial-gradient(circle, var(--chip) 0 52%, rgba(255, 255, 255, 0.92) 53% 57%, var(--chip) 58% 100%);
  border: 5px dashed rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 0 -1px var(--chip-edge), 0 7px 10px rgba(0, 0, 0, 0.5);
  transition: translate 0.12s, box-shadow 0.12s;
}
/* The chip I am betting with stands a little higher, with a bright ring */
#roulette #rl-chips .rl-chip.rl-on { translate: 0 -5px; box-shadow: 0 0 0 3px var(--accent), 0 6px 0 2px var(--chip-edge), 0 12px 14px rgba(0, 0, 0, 0.55); }
#roulette #rl-chips .rl-chip:disabled { opacity: 0.4; }
#roulette #rl-bet-box .row > button { padding: 0 4px; }
#roulette #rl-house-box { margin-top: 10px; }
#roulette #rl-house-text { margin-top: 6px; }
#roulette #rl-leave { margin-top: 6px; }
/* The house's own settings: how big the bets may be, and chips for the players */
#roulette #rl-max-box, #roulette #rl-give-box { margin-top: 8px; }
#roulette #rl-max-box p, #roulette #rl-give-box p { margin: 0 0 4px; text-align: center; }
#roulette #rl-max-box #rl-max-text { margin: 4px 0 0; }
#roulette #rl-max, #roulette #rl-give { flex-wrap: wrap; justify-content: center; }
#roulette #rl-max button { flex: 1 1 70px; min-height: 40px; padding: 0 6px; }
#roulette #rl-max button.picked { background: var(--t15); color: #1b1b1b; border-color: var(--t15); }
#roulette #rl-give button { flex: 1 1 150px; min-height: 44px; }
#roulette #rl-give-amount { justify-content: center; align-items: center; gap: 12px; margin-bottom: 6px; }
#roulette #rl-give-amount button { flex: none; width: 48px; min-height: 44px; padding: 0; font-size: 1.3rem; font-weight: 800; }
#roulette #rl-give-now { min-width: 90px; text-align: center; font-weight: 800; font-size: 1.1rem; font-variant-numeric: tabular-nums; color: var(--t15); }

@media (max-width: 699px) {
  #roulette { padding-top: 46px; } /* room for the row of round buttons along the top */
  #roulette #rl-title { padding: 0; }
  #roulette #rl-rail { padding: 7px; border-radius: 20px; }
  #roulette #rl-felt { padding: 8px 6px 10px; border-radius: 14px; }
  #roulette #rl-bet-box .row > button { font-size: 0.88rem; }
  /* Bubbles stay inside the screen: the house's hangs from the right, the seats at the edges hang theirs inwards. */
  #roulette #rl-house-bubble { left: auto; right: -4px; transform: none; max-width: 230px; }
  #roulette #rl-house-bubble::after { left: auto; right: 44px; }
  #roulette .rl-bubble.rl-up { max-width: 160px; }
  #roulette .rl-seat:nth-child(-n+2) .rl-bubble.rl-up { left: 0; transform: none; }
  #roulette .rl-seat:nth-child(-n+2) .rl-bubble.rl-up::after { left: 24px; }
  #roulette .rl-seat:nth-child(n+4) .rl-bubble.rl-up { left: auto; right: 0; transform: none; }
  #roulette .rl-seat:nth-child(n+4) .rl-bubble.rl-up::after { left: auto; right: 18px; }
}
/* Phones: while it spins the wheel comes forward, large, in the middle of the screen, and everything
   behind it goes dim (the wide shadow), so the ball can be followed. The number shows under it when it lands. */
#roulette #rl-auto-row { align-items: center; justify-content: center; gap: 6px; }
#roulette #rl-auto-row button { flex: 0 0 auto; min-width: 46px; min-height: 34px; padding: 0 10px; font-weight: 700; }
#roulette #rl-auto-label { font-weight: 700; }
#roulette #rl-auto-text { text-align: center; margin: 4px 0 0; }
@media (max-width: 699px) {
  #roulette #rl-top { min-height: 150px; }
  /* Five chips in the row on a phone: a little smaller and closer together. */
  #roulette #rl-chips { gap: 8px; }
  #roulette #rl-chips .rl-chip { width: 56px; height: 56px; font-size: 0.74rem; border-width: 4px; }
  #roulette.rl-focus #rl-wheel-box {
    position: fixed; left: 50%; top: 44%; z-index: 60; transform: translate(-50%, -50%);
    pointer-events: none; border-radius: 50%; box-shadow: 0 0 0 200vmax rgba(4, 12, 8, 0.72);
    animation: rl-forward 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
  }
  #roulette.rl-focus #rl-wheel { width: min(90vw, 58vh); height: min(90vw, 58vh); display: block; }
  #roulette.rl-focus #rl-wheel-box[data-result]:not([data-result=""])::after {
    content: attr(data-result); position: absolute; left: 50%; top: calc(100% + 14px); transform: translateX(-50%);
    min-width: 76px; padding: 6px 14px; border-radius: 14px; text-align: center; line-height: 1.1;
    font: 800 2.6rem var(--rl-serif); color: #fff; border: 2px solid var(--rl-gold); background: #151515;
    animation: rl-shown 0.3s ease-out;
  }
  #roulette.rl-focus #rl-wheel-box.rl-red::after { background: #b3261e; }
  #roulette.rl-focus #rl-wheel-box.rl-green::after { background: #1f9a52; }
}
@keyframes rl-forward { from { opacity: 0.2; transform: translate(-50%, -50%) scale(0.45); } }
@keyframes rl-shown { from { opacity: 0; } }
@media (min-width: 700px) {
  #roulette #rl-wheel { width: 200px; height: 200px; }
  #roulette #rl-top { gap: 24px; }
  #roulette #rl-head { flex: 0 1 260px; }
  #roulette #rl-seats { gap: 8px; }
  #roulette .rl-plate { padding: 4px 8px 5px; }
  #roulette .rl-cam { width: 54px; height: 54px; }
  #roulette .rl-name { font-size: 0.84rem; }
  #roulette .rl-dot { display: inline-block; }
  #roulette .rl-stackline { font-size: 0.76rem; }
  #roulette .rl-foot { font-size: 0.74rem; }
}

/* Wide screens: the page gets the room a roulette table needs, and the layout
   lies sideways as at a real table: the zero at the left, twelve rows across.
   (roulette.js turns the layout at the same width.) */
@media (min-width: 760px) {
  main:has(#roulette:not([hidden])), body > :has(> #roulette:not([hidden])) { max-width: 900px; }
  #roulette #rl-rail { padding: 13px; }
  #roulette #rl-felt { padding: 14px 18px 16px; }
  #roulette #rl-wheel { width: 230px; height: 230px; }
  #roulette #rl-number { width: 84px; height: 84px; font-size: 3rem; }
  #roulette .rl-h { min-width: 26px; height: 26px; border-radius: 13px; font-size: 0.8rem; }
  #roulette .rl-who { font-size: 1.15rem; }
  #roulette #rl-layout { height: auto; aspect-ratio: 14 / 4.3; margin-top: 16px; }
  #roulette .rl-num { font-size: 1.3rem; }
  #roulette .rl-num.rl-green { border-radius: 16px 0 0 16px; }
  #roulette .rl-out { font-size: 0.9rem; }
  #roulette .rl-spot-h { height: 18px; }
  #roulette .rl-spot-v { width: 18px; }
  #roulette .rl-stack { width: 28px; height: 28px; margin: -14px 0 0 -14px; }
  #roulette .rl-stack-amt { font-size: 0.6rem; }
  #roulette #rl-bet-box, #roulette #rl-house-box, #roulette #rl-rebuy-box, #roulette #rl-add-box, #roulette #rl-auto-box, #roulette #rl-limits, #roulette #rl-status ~ .row { max-width: 560px; margin-left: auto; margin-right: auto; }
}

@media (prefers-reduced-motion: reduce) {
  #roulette .rl-stack.rl-won, #roulette #rl-layout.rl-settled .rl-num.rl-hit, #roulette #rl-number.rl-pop, #roulette #rl-number.rl-rolling::before, #roulette .rl-bubble.rl-pop { animation: none; }
  #roulette #rl-chips .rl-chip { transition: none; }
}

/* ---- the biggest chip, and six chips in one row ---- */
#roulette .rl-c100000 { --chip: #c2257a; --chip-edge: #861652; }
#roulette #rl-chips { gap: 8px; flex-wrap: nowrap; }
#roulette #rl-chips .rl-chip { width: 54px; height: 54px; font-size: 0.74rem; border-width: 4px; }
@media (max-width: 699px) {
  #roulette #rl-chips { gap: 5px; }
  #roulette #rl-chips .rl-chip { width: 50px; height: 50px; font-size: 0.66rem; border-width: 3px; }
}
