/* Roulette und Video-Poker */
/* Roulette: Rad links, Ergebnis rechts, Spielfeld darunter */
.rl-head { display: flex; align-items: center; gap: 14px; padding: 10px 0 6px; }
.rl-wheel { flex: 0 0 min(42vw, 184px, 18vh); aspect-ratio: 1; }
.rl-svg { width: 100%; height: 100%; display: block; overflow: visible; }
.rl-svg .w-rim { fill: var(--sunken); stroke: var(--line-strong); }
.rl-svg .w-red { fill: #c7263b; } .rl-svg .w-black { fill: #17181c; } .rl-svg .w-green { fill: #138a4e; }
.rl-svg .w-hub { fill: var(--surface); stroke: var(--line-strong); }
.rl-svg .w-sep { stroke: #f2f1ee40; stroke-width: .6; }
.rl-svg text { fill: #f2f1ee; font-family: var(--mono); font-size: 8.5px; font-weight: 600; text-anchor: middle; dominant-baseline: middle; }
.rl-svg .w-ball { fill: #fff; stroke: #0006; }
.rl-svg .w-pin { fill: var(--warn); }
#rlWheel, #rlBall { transform-origin: 0 0; }
.rl-side { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.rl-num { width: 72px; height: 72px; display: grid; place-items: center; border: 1px solid var(--line-strong); font-family: var(--display); font-stretch: 125%; font-weight: 900; font-size: 34px; }
.rl-num.red { background: #c7263b; border-color: #c7263b; } .rl-num.black { background: #17181c; } .rl-num.green { background: #138a4e; border-color: #138a4e; }
#rlMsg { font-size: 16px; min-height: 20px; }
.rl-hist { display: flex; flex-wrap: wrap; justify-content: center; gap: 3px; }
.rl-hist span { min-width: 22px; padding: 2px 3px; text-align: center; font-family: var(--mono); font-size: 11px; color: #fff; }
.rl-hist .red { background: #c7263b; } .rl-hist .black { background: #26272d; } .rl-hist .green { background: #138a4e; }
.rl-hist span:first-child { outline: 1px solid #fff; }

.rl-board { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(6, 1fr); grid-template-rows: repeat(13, minmax(22px, 1fr)) repeat(4, auto); /* Außenwetten und Auszahlungstext in voller Höhe, sonst überlappen sie */ gap: 2px; margin: 4px 0 10px; }
.rl-cell { grid-column: span 2; position: relative; border: none; color: #fff; font-family: var(--mono); font-size: 12px; font-weight: 600; cursor: pointer; padding: 0; transition: transform .15s cubic-bezier(.3,1.6,.5,1), outline-color .2s; }
.rl-cell:active { transform: scale(.94); }
.rl-cell.red { background: #a81f31; } .rl-cell.black { background: #1d1e23; } .rl-cell.green { background: #117a45; }
.rl-cell.zero { grid-column: span 6; }
.rl-cell.out { background: var(--surface); border: 1px solid var(--line); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.rl-cell.half { grid-column: span 1; font-size: 11px; letter-spacing: .02em; }
.rl-cell.redbet { background: #a81f31; border-color: #a81f31; } .rl-cell.blackbet { background: #1d1e23; }
.rl-cell.hit { outline: 2px solid var(--warn); outline-offset: -2px; z-index: 1; animation: pop .5s ease; }
#rlBoard .rl-chip { position: absolute; right: 2px; top: 50%; translate: 0 -50%; min-width: 20px; height: 18px; padding: 0 4px; border-radius: 9px !important; background: #fff; color: #0b0b0c; font-size: 11px; font-weight: 700; display: grid; place-items: center; box-shadow: 0 2px 0 #0008; }
#roulette .controls, #vpoker .controls { min-height: 0; }
.chip.sel { outline: 2px solid #fff; outline-offset: 3px; translate: 0 -4px; }

/* Video-Poker: Auszahltabelle, fünf Karten mit Halten-Tag */
.vp-pay { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 14px; margin-top: 12px; padding: 10px 12px; border: 1px solid var(--line); background: var(--surface); }
.vp-row { display: flex; justify-content: space-between; gap: 6px; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 2px 4px; }
.vp-row b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.vp-row.on { background: var(--text); color: #0b0b0c; } .vp-row.on b { color: #0b0b0c; }
.vp-row.won { background: var(--warn); animation: pop .5s ease; }
.vp-table { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 16px; }
.vp-hand { --cw: min(16.5vw, 76px); display: flex; gap: 6px; }
.vp-slot { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 0; border: none; background: none; cursor: pointer; transition: translate .25s cubic-bezier(.3,1.6,.5,1); }
.vp-slot:disabled { cursor: default; }
.vp-slot.held .vp-tag { background: var(--accent); color: #0b0b0c; padding: 0 6px; } /* Halten ohne Hochschieben, sonst verdeckt die Karte den Ergebnistitel */
.vp-slot.held .card { box-shadow: 0 0 0 2px var(--accent), 0 12px 24px #000000a0; }
.vp-tag { min-height: 18px; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.vp-hand.showdown .card:not(.scored) { filter: brightness(.55); transition: filter .4s; }
.vp-hint { margin: 0; text-align: center; }
.vp-row small { font-size: 11px; letter-spacing: 0; text-transform: none; opacity: .75; }
/* Innenwetten auf Kanten und Ecken: unsichtbare Knöpfe über den Zahlenfeldern (Split, Street, Ecke, Six-Line) */
.rl-cell.out { min-height: 40px; }
.rl-zone { position: relative; z-index: 2; padding: 0; border: none; background: none; cursor: pointer; }
.rl-zone:hover, .rl-zone:focus-visible { background: #f2f1ee40; }
.rl-zone.z-r { justify-self: end; align-self: center; width: 14px; height: 70%; margin-right: -8px; }
.rl-zone.z-b { justify-self: center; align-self: end; width: 60%; height: 12px; margin-bottom: -7px; }
.rl-zone.z-l { justify-self: start; align-self: center; width: 12px; height: 70%; }
.rl-zone.z-rb, .rl-zone.z-lb { align-self: end; width: 16px; height: 14px; margin-bottom: -8px; z-index: 3; }
.rl-zone.z-rb { justify-self: end; margin-right: -9px; } .rl-zone.z-lb { justify-self: start; }
.rl-zone.hit { outline: 2px solid var(--warn); }
#rlBoard .rl-zone .rl-chip { right: auto; left: 50%; translate: -50% -50%; min-width: 16px; height: 16px; padding: 0 3px; font-size: 8.5px; }
.rl-pays { grid-column: 1 / -1; padding-top: 4px; font-family: var(--mono); font-size: 11px; line-height: 1.5; color: var(--muted); text-align: center; }
#vpMsg { min-height: 56px; display: flex; align-items: flex-end; justify-content: center; margin-bottom: 4px; }
[data-theme="studio"] .rl-pays { letter-spacing: .04em; line-height: 1.4; }
#roulette { overflow-y: auto; } #roulette .rl-board { flex: 1 0 auto; } /* passt das Feld nicht, scrollt die Ansicht, die Knöpfe bleiben unten */
