/* Feature slots (Neon Drop, Endless Lagoon). Everything that moves is drawn on the canvas; the DOM around it
   is static, so the page costs nothing while idle. No box-shadow or filter animations here (see HANDOFF). */
.rl-page { display: grid; gap: 14px; align-content: start; } /* don't stretch rows to fill the page */
.rl-picker { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.rl-card { display: grid; gap: 10px; align-content: start; padding: 18px; border-radius: 18px; text-decoration: none; color: var(--text); background: var(--panel); border: 2px solid transparent; }
.rl-card .mc-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.rl-card .mc-tags span { font-size: 12px; font-weight: 700; padding: 5px 8px; border-radius: 6px; background: var(--panel-2); }
.rl-card:hover { border-color: var(--pink); }
.rl-card h2 { margin: 0; font: 400 26px var(--display); color: #fff; text-shadow: 3px 3px 0 var(--title-a); }
.rl-card p { margin: 0; color: var(--muted); }
.rl-card-art { display: flex; gap: 10px; justify-content: center; padding: 14px; border-radius: 14px; }
.rl-card-art img { width: 64px; height: 64px; }
.rl-card.neon .rl-card-art { background: linear-gradient(135deg, #3a1f9c, #c2309c); }
.rl-card.lagoon .rl-card-art { background: linear-gradient(135deg, #0f6b8c, #2f7de0); }

.rl-machine { --a: #ff5fa2; --b: #3ee6ff; display: grid; gap: 10px; max-width: 980px; width: 100%; margin: 0 auto; padding: 16px; border-radius: 22px;
              background: linear-gradient(180deg, #1c0d3e, #0b0618); box-shadow: 0 0 0 3px var(--a), 0 0 0 7px #0b0618, 0 0 0 10px var(--b); }
.rl-machine.lagoon { --a: #3ee6ff; --b: #ffd84d; background: linear-gradient(180deg, #082a44, #050c1f); }
.rl-head { display: flex; align-items: center; gap: 12px; }
.rl-head h1 { flex: 1; margin: 0; text-align: center; font: 400 clamp(22px, 4vw, 36px)/1 var(--display); color: #fff; text-shadow: 3px 3px 0 var(--a); }
.rl-hud { display: flex; justify-content: space-between; gap: 10px; padding: 8px 14px; border-radius: 12px; background: linear-gradient(90deg, var(--a), var(--b)); color: #12082e; font: 700 15px var(--body); }
.rl-hud b { font: 400 16px var(--display); }
.rl-stage { position: relative; display: grid; place-items: center; border-radius: 14px; background: #08041a; padding: 8px; contain: layout paint; }
.rl-stage canvas { display: block; max-width: 100%; touch-action: manipulation; }
.rl-banner { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: 6px; pointer-events: none;
             font: 400 clamp(28px, 6vw, 56px)/1 var(--display); color: #fff; text-shadow: 0 0 14px var(--a), 4px 4px 0 #12082e; animation: rl-pop .45s cubic-bezier(.2, 1.7, .4, 1); }
.rl-banner small { font-size: .4em; color: var(--text); }
@keyframes rl-pop { from { transform: scale(.4); opacity: 0; } }

.rl-winbar { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 6px 14px; border-radius: 12px; background: #0d0624; }
.rl-winbar small { display: block; font: 400 11px var(--display); color: var(--a); letter-spacing: .12em; }
.rl-winbar b { font: 700 clamp(22px, 3.6vw, 32px) ui-monospace, Consolas, monospace; color: #fff; font-variant-numeric: tabular-nums; }
.rl-chain { color: var(--muted); font-size: 14px; text-align: center; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.rl-mult b { color: var(--b); }

.rl-deck { display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; align-items: center; }
.rl-bet { display: grid; gap: 4px; justify-items: start; }
.rl-bet small { font: 400 12px var(--display); color: var(--a); letter-spacing: .1em; }
.rl-bet .muted { font: 500 12px var(--body); color: var(--muted); letter-spacing: 0; }
.rl-bet .bet-row { display: flex; align-items: center; gap: 10px; }
.rl-bet .bet-row b { font: 700 24px ui-monospace, Consolas, monospace; min-width: 70px; text-align: center; color: #fff; }
.rl-spin { width: clamp(92px, 13vw, 120px); aspect-ratio: 1; border-radius: 50%; border: 0; cursor: pointer; color: #12082e; font: 400 clamp(18px, 3vw, 26px) var(--display);
           background: radial-gradient(circle at 35% 30%, #fff 0, var(--b) 30%, var(--a) 100%); box-shadow: 0 6px 0 #4a1060, 0 0 0 5px #12082e; transition: transform .08s; }
.rl-spin:active, .rl-spin.busy { transform: translateY(4px); box-shadow: 0 2px 0 #4a1060, 0 0 0 5px #12082e; }
.rl-opts { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.rl-opts [aria-pressed="true"] { background: var(--b) !important; color: #12082e !important; }
.rl-hint { text-align: center; }

.rl-modal { border: 0; border-radius: 18px; background: #160c38; color: var(--text); padding: 18px; width: min(760px, calc(100% - 20px)); max-height: 86vh; }
.rl-modal.small { width: min(420px, calc(100% - 20px)); }
.rl-modal::backdrop { background: rgba(5, 3, 20, .78); }
.rl-modal h2 { margin: 0; font: 400 22px var(--display); color: var(--gold); }
.rl-modal h3 { margin: 16px 0 6px; font: 400 16px var(--display); color: #fff; }
.rl-modal-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.rl-tabs { display: flex; gap: 6px; margin-bottom: 12px; }
.rl-tabs button { border: 0; border-radius: 10px; padding: 8px 14px; font: 700 14px var(--body); background: var(--panel-2); color: var(--text); cursor: pointer; }
.rl-tabs button[aria-selected="true"] { background: var(--pink); color: #fff; }
.rl-info-body { overflow: auto; max-height: 64vh; font-size: 15px; line-height: 1.45; }
.rl-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.rl-facts div { background: var(--panel-2); border-radius: 10px; padding: 8px 10px; }
.rl-facts small { display: block; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.rl-facts b { color: #fff; font-size: 17px; }
.rl-pays { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; }
.rl-pay { display: flex; align-items: center; gap: 10px; background: var(--panel-2); border-radius: 10px; padding: 6px 10px; }
.rl-pay img { width: 46px; height: 46px; flex: none; }
.rl-pay span { display: grid; font-size: 13px; color: var(--text); }
.rl-pay b { color: var(--gold); }
.rl-orbs { display: flex; flex-wrap: wrap; gap: 6px; }
.rl-orbs i { font: 700 13px ui-monospace, Consolas, monospace; font-style: normal; padding: 4px 8px; border-radius: 999px; background: linear-gradient(135deg, #ff5fa2, #7b3dff); color: #fff; }
.rl-modal ul { margin: 6px 0; padding-left: 20px; }

.rl-big { position: fixed; left: 50%; top: 42%; transform: translate(-50%, -50%); z-index: 80; text-align: center; pointer-events: none; display: grid; gap: 6px;
          animation: rl-pop .5s cubic-bezier(.2, 1.7, .4, 1); }
.rl-big b { font: 400 clamp(40px, 9vw, 92px)/1 var(--display); color: #fff; text-shadow: 0 0 16px var(--gold), 4px 4px 0 var(--pink), 8px 8px 0 #12082e; }
.rl-big span { font: 700 clamp(28px, 6vw, 56px) ui-monospace, Consolas, monospace; color: var(--gold); text-shadow: 3px 3px 0 #12082e; font-variant-numeric: tabular-nums; }

@media (max-width: 760px) {
  .rl-picker { grid-template-columns: 1fr; }
  .rl-machine { padding: 10px; }
  .rl-deck { grid-template-columns: 1fr 1fr; }
  .rl-deck .rl-spin { grid-column: 1 / -1; justify-self: center; order: -1; }
  .rl-opts { justify-content: flex-start; }
  .rl-winbar { grid-template-columns: auto 1fr; }
  .rl-chain { display: none; }
}

/* painted scene behind the machine (same images as the classic slots) */
.slot-scene { position: fixed; inset: 0; z-index: -1; background: #0b0618 center / cover no-repeat; pointer-events: none; }
.slot-scene::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 70% 60% at 50% 45%, rgba(8, 4, 24, .1), rgba(8, 4, 24, .72)); }
.slot-scene:not([data-m]) { display: none; }
.slot-scene[data-m="neon"] { background-image: url("/shared/img/scenes/neon.webp?v=b916684274"); }
.slot-scene[data-m="lagoon"] { background-image: url("/shared/img/scenes/lagoon.webp?v=0e5b07d6d7"); }
.rl-machine { background: linear-gradient(180deg, rgba(28, 13, 62, .9), rgba(11, 6, 24, .94)); }
.rl-machine.lagoon { background: linear-gradient(180deg, rgba(8, 42, 68, .9), rgba(5, 12, 31, .94)); }
.rl-stage { background: rgba(8, 4, 26, .82); }
.credits { text-align: center; font-size: 12px; opacity: .75; margin: 6px 0 0; }
.credits a { color: inherit; }
.slot-scene[data-m="plains"] { background-image: url("/shared/img/scenes/plains.webp?v=fc17d7668e"); }
.rl-machine.plains { --a: #ff9a3d; --b: #ffd84d; background: linear-gradient(180deg, rgba(58, 20, 36, .9), rgba(18, 8, 16, .94)); }
.rl-gold { display: inline-flex; align-items: center; gap: 6px; }
.rl-gold img { width: 22px; height: 22px; }

/* popups: buttons don't touch, a lone last tile fills its row, the footnote gets room */
.rl-modal .row-end { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.rl-modal .row-end .btn { min-width: 92px; padding: 10px 14px; }
.rl-facts > div:last-child:nth-child(4n + 1) { grid-column: 1 / -1; }
.rl-note { margin-top: 14px; }
