/* casino-games-v2 (26 Oct 2026): Lucky Bean in the casino game family. PRESENTATION ONLY.
   Loaded after beanville.css, bean-casino.css, casino-next.css (all unchanged), casino-skin.css and casino-games-v2.css,
   only by bean-machine/lucky-bean.html (body.lb2-page). The slot cabinet (marquee, reels, beanstalk, deck) keeps its
   own colours in every theme: it is the machine. Around it, the page takes the casino's Light / Dark / Dood. */

/* Beanville's header, tabs and colour switch give way to the Casino bar and the game's top bar */
body.lb2-page .bv-top, body.lb2-page .bv-footbar, body.lb2-page .bm-tabs, body.lb2-page .bv-more { display: none !important; }
body.lb2-page .lbc-hero { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); padding: 0 !important; margin: 0 !important; } /* keeps its h1 for screen readers */
body.lb2-page .lbc-hero .bm-eyebrow { display: none; }
/* the top bar has Sound and Motion (it presses these two buttons) */
body.lb2-page .lbc-tools #soundBtn, body.lb2-page .lbc-tools #motionBtn { display: none; }
body.lb2-page .csn { margin-bottom: 10px !important; }
body.lb2-page.cas-skin main.bm-wrap .cg2-top .cg2-name { font: 400 clamp(26px, 6.4vw, 40px)/1 var(--cg-logo) !important; color: var(--cg-gold-2) !important; }
body.lb2-page.cas-skin[data-theme="light"] main.bm-wrap .cg2-top .cg2-name { color: #4b2690 !important; }
body.lb2-page.cas-skin main.bm-wrap .cg2-top .cg2-kicker { color: var(--cg-gold) !important; }
body.lb2-page.cas-skin main.bm-wrap .cg2-howto-card h2 { font: 700 28px/1.05 var(--cg-display) !important; color: var(--cg-gold-2) !important; }
body.lb2-page.cas-skin main.bm-wrap .cg2-howto .cg2-note { color: var(--cg-muted) !important; }
body.lb2-page .cg2-howto .cg2-ok { font-family: var(--cg-body) !important; }

/* under the game: the wallet card and the network notes (as on Pantry Pop) */
body.lb2-page .lb2-info { display: grid; gap: 10px; margin: 16px 0 6px; }
body.lb2-page .lb2-info .lbc-wallet { margin: 0; }
body.lb2-page .lb2-netrow { display: grid; justify-items: center; gap: 6px; }
body.lb2-page.lbc-page .lb2-netrow .bm-net.test { margin: 0; max-width: 760px; padding: 8px 14px; border-radius: 14px; font-size: 12.5px; text-align: center; background: var(--cg-panel-2) !important; color: var(--cg-text) !important; border: 1px solid var(--cg-rim) !important; }
body.lb2-page .lbc-lounge h2, body.lb2-page .lbc-wallet h2 { font-family: var(--cg-display) !important; }

/* phones and tablets: the jackpot sign and the recent-results row move under the SPIN button, so the reels and SPIN
   come first on the screen */
@media (max-width: 999px) {
  body.lb2-page .lbc-cabinet { display: flex; flex-direction: column; }
  body.lb2-page .lbc-cabinet > .lbc-marquee, body.lb2-page .lbc-cabinet > #recent { order: 1; margin: 10px 0 0 !important; }
  body.lb2-page .lbc-cabinet > .lbc-deck ~ * { order: 2; }
  body.lb2-page .lbc-stage { width: 100%; max-width: 560px; margin-left: auto; margin-right: auto; }
  body.lb2-page .lbc-host { display: none; } /* Mayor Pinto's line is also in the ticker under the reels */
}
/* wide screens: the deck stands beside the reels, SPIN at the top, so it is on the first screen */
@media (min-width: 1000px) {
  body.lb2-page .lbc-cabinet { display: grid; grid-template-columns: minmax(0, 1fr) 280px; column-gap: 18px; align-items: start; }
  body.lb2-page .lbc-cabinet > :not(.lbc-bulbs) { grid-column: 1 / -1; }
  body.lb2-page .lbc-cabinet > .lbc-marquee { grid-row: 1; }
  body.lb2-page .lbc-cabinet > .lbc-mode { grid-row: 2; }
  body.lb2-page .lbc-cabinet > .lbc-freebar { grid-row: 3; }
  body.lb2-page .lbc-cabinet > #xpBar { grid-row: 4; }
  body.lb2-page .lbc-cabinet > .lbc-stage { grid-row: 5; grid-column: 1; }
  body.lb2-page .lbc-cabinet > #lineKeys { grid-row: 6; grid-column: 1; }
  body.lb2-page .lbc-cabinet > .lbcu-boardinfo { grid-row: 7; grid-column: 1; }
  body.lb2-page .lbc-cabinet > #ticker { grid-row: 8; grid-column: 1; }
  body.lb2-page .lbc-cabinet > #recent { grid-row: 9; grid-column: 1; }
  body.lb2-page .lbc-cabinet > #maxConfirm { grid-row: 10; } body.lb2-page .lbc-cabinet > #autoAsk { grid-row: 11; } body.lb2-page .lbc-cabinet > #autoNote { grid-row: 12; }
  body.lb2-page .lbc-cabinet > .lbc-tools { grid-row: 13; } body.lb2-page .lbc-cabinet > #formula { grid-row: 14; } body.lb2-page .lbc-cabinet > #betNote { grid-row: 15; } body.lb2-page .lbc-cabinet > .lbcu-unlock { grid-row: 16; }
  body.lb2-page .lbc-cabinet > .lbc-deck { grid-row: 5 / span 5; grid-column: 2; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; }
  body.lb2-page .lbc-cabinet > .lbc-deck > .lbc-spinwrap { grid-column: 1 / -1; order: -1; }
  body.lb2-page .lbc-cabinet > .lbc-deck > .lbc-bet { grid-column: 1 / -1; order: 2; }
  body.lb2-page .lbc-cabinet > .lbc-deck > .win { order: 1; } body.lb2-page .lbc-cabinet > .lbc-deck > .lbcu-lines { order: 3; } body.lb2-page .lbc-cabinet > .lbc-deck > .lbcu-total { order: 4; }
}
@media (min-width: 1000px) and (max-height: 820px) {
  body.lb2-page .lbc-spin { width: 96px !important; height: 96px !important; }
  body.lb2-page .lbc-cabinet > .lbc-marquee { margin-bottom: 4px !important; }
  body.lb2-page .lbc-cabinet { padding-top: 10px !important; }
}
/* phones: the reels and the SPIN button on the first screen */
@media (max-width: 560px) {
  body.lb2-page .lbc-sign { display: none; }
  body.lb2-page .lbc-marquee { padding: 6px 8px !important; gap: 4px; }
  body.lb2-page .lbc-jackpot { display: flex; align-items: baseline; justify-content: center; gap: 10px; padding: 6px 10px; }
  body.lb2-page .lbc-jp-amt { font-size: 24px !important; }
  body.lb2-page .lbc-jp-sub { display: none; }
  body.lb2-page .lbc-mode { gap: 2px 6px; margin: 2px 0 4px; line-height: 1.3; }
  body.lb2-page .lbc-mode > * { font-size: 12px !important; }
  body.lb2-page .lbc-mode .lbc-pill { padding: 2px 8px; }
  body.lb2-page .lbc-cabinet { margin-top: 4px !important; padding-top: 12px !important; }
  body.lb2-page .cg2-top { margin-bottom: 8px; }
  body.lb2-page #recent { margin: 2px 0; }
  body.lb2-page .lbc-host { display: none; }
  body.lb2-page .lbcu-boardinfo { display: none; }
  body.lb2-page .lbc-ticker { margin: 6px 0; padding: 6px 10px; font-size: 13.5px; }
  body.lb2-page .lbc-spin { width: 92px !important; height: 92px !important; }
  body.lb2-page .lbc-spinwrap small { margin-top: 6px; }
}

/* motion: the Motion switch stills the cabinet's loops too (the game's own switch, lbcu-reduced, is pressed with it) */
body.lb2-page.still .lbc-bulbs, body.lb2-page.still .lbc-cabinet::before, body.lb2-page.still .lbc-cabinet::after, body.lb2-page.still .lbc-spin span { animation: none !important; }
@media (max-width: 380px) {
  body.lb2-page .lbc-spin { width: 80px !important; height: 80px !important; }
  body.lb2-page .lbc-cabinet { padding-left: 8px !important; padding-right: 8px !important; }
}

/* the machine keeps the Night Room colours in every theme (its text sits on its own dark lacquer) */
body.lb2-page[data-theme="light"] .lbc-cabinet, body.lb2-page[data-theme="light"] .lbc-overlay, body.lb2-page[data-theme="light"] .lbc-paytable, body.lb2-page[data-theme="light"] .lbc-lounge-row {
  color-scheme: dark;
  --bg: #0b0614; --surface: #160c2a; --surface-2: #1f1240; --line: #3a2766; --edge: #3a2766;
  --text: #f6eedf; --muted: #bcaed6; --accent: #e2b955; --accent-ink: #2a1a05; --accent-soft: rgba(226,185,85,.14);
  --butter-soft: #2a1d0c; --ok: #5ee39b; --bad: #ff8a80; --warn: #f2c45a;
  --cs-gold: #e2b955; --cs-gold-2: #f6d98b; --cs-gold-ink: #2a1a05; --cs-panel: #160c2a; --cs-panel-2: #1c1033; --cs-rim: #e2b95566;
  color: #f6eedf;
}

/* CASINO-PRIZES-M1 (lb3, 31 Oct 2026): the weekly Lucky Bean board (shown only when the casino runs on Casino Chips) */
.lbb-board { margin: 14px 0; }
.lbb-board h2 { margin: 0 0 4px; }
.lbb-list, .lbb-last ol { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.lbb-list li, .lbb-last li { display: grid; grid-template-columns: 28px 32px 1fr auto; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 12px; background: var(--surface-2, rgba(127,127,127,.10)); }
.lbb-list li small { grid-column: 3 / 5; margin-top: -4px; opacity: .75; font-size: 12.5px; }
.lbb-list li.you { outline: 2px solid var(--cs-gold, #FFC93C); }
.lbb-list li:nth-child(-n+3) .lbb-rank { background: var(--cs-gold, #FFC93C); color: #2B1B14; }
.lbb-rank { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font-weight: 800; font-size: 13px; background: rgba(127,127,127,.22); }
.lbb-list img, .lbb-dot { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; background: rgba(127,127,127,.25); }
.lbb-who { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.lbb-x { font-variant-numeric: tabular-nums; font-size: 17px; }
.lbb-you { margin: 8px 0 0; }
.lbb-last { margin-top: 12px; }
.lbb-last summary { cursor: pointer; font-weight: 700; }
.lbb-last li { grid-template-columns: 28px 1fr; }
/* CASINO M2 step 1: board tabs (Lucky Bean · Roulette · Casino Champion), shown only when the server lists them */
.lbb-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 4px; }
.lbb-tabs button { flex: 1 1 auto; min-height: 40px; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(127,127,127,.45); background: transparent; color: inherit; font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; }
.lbb-tabs button[aria-selected="true"] { background: var(--cs-gold, #FFC93C); border-color: var(--cs-gold, #FFC93C); color: #2B1B14; }
.lbb-tabs button:focus-visible { outline: 3px solid var(--cs-gold, #FFC93C); outline-offset: 2px; }
