/* casino-hub-tidy-v1 (9 Nov 2026): Casino Hub clean-up. Works with js/casino-hub-tidy.mjs (b=ht1). */

/* the casino menu stays visible under the site's fixed top bar (it used to slide underneath it) */
header.topbar { top: var(--ht-head, 0px) !important; }
/* on phones the casino bar is two rows tall: it scrolls away there (the Beanville tab bar at the bottom stays) */
@media (max-width: 899px) { header.topbar { position: relative !important; top: 0 !important; } }
/* the site sets overflow-x: hidden on html and body, which turns body into its own scroll box and stops "sticky" from
   ever sticking; clip hides sideways overflow the same way without that side effect */
@supports (overflow-x: clip) { html, body { overflow-x: clip !important; } }
html { scroll-padding-top: calc(var(--ht-head, 0px) + 80px) !important; }

/* Your casino today (signed-in BEAN holder): replaces the "New here?" line */
body.ht-in .hero .lede-sub { display: none; }
.ht-today { margin: 16px 0 0; max-width: 560px; }
.ht-today-h { margin: 0 0 8px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold, #e2b955); }
.ht-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ht-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 14px; border-radius: 999px; background: #ffffff12; border: 1px solid #e2b95555; color: var(--ivory, #f6eedf); font-size: 14px; text-decoration: none; }
.ht-chip b { color: var(--gold-2, #f6d98b); font-size: 15px; }
a.ht-chip:hover, .ht-left summary:hover { border-color: var(--gold, #e2b955); background: #e2b9551f; }
.ht-chip.go { background: linear-gradient(135deg, #e2b955, #f6d98b); color: var(--gold-ink, #2a1a05); border-color: transparent; font-weight: 600; }
.ht-chip.go b { color: inherit; }
.ht-chip.done { color: var(--muted, #bcaed6); }
details.ht-left { position: relative; display: inline-block; padding: 0; }
.ht-left summary { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 14px; border-radius: 999px; cursor: pointer; list-style: none; }
.ht-left summary::-webkit-details-marker { display: none; }
.ht-left summary::after { content: "▾"; font-size: 11px; opacity: .7; }
.ht-left[open] summary::after { content: "▴"; }
.ht-left ul { position: absolute; z-index: 30; left: 0; top: calc(100% + 6px); min-width: 240px; margin: 0; padding: 8px; list-style: none; border-radius: 14px; background: var(--plum, #1c1033); border: 1px solid #e2b95566; box-shadow: 0 16px 40px #000a; }
.ht-left li { padding: 2px 4px; font-size: 14px; color: var(--muted, #bcaed6); }
.ht-left li a { display: inline-flex; min-height: 36px; align-items: center; color: var(--ivory, #f6eedf); }

/* Around Beanville: Friends, Community, Records and the Collection fold */
.ht-town { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; max-width: 1280px; margin: 56px auto 0; padding: 18px var(--pad, 24px); border-top: 1px solid #ffffff14; border-bottom: 1px solid #ffffff14; }
.ht-town h2 { margin: 0; font: 700 clamp(26px, 3vw, 34px)/1.1 var(--display, Georgia, serif); }
.ht-town p { margin: 4px 0 0; color: var(--muted, #bcaed6); font-size: 14px; }
.ht-town .btn { min-height: 44px; }
body.ht-town-folded #friends, body.ht-town-folded #community, body.ht-town-folded #records, body.ht-town-folded #collection { display: none !important; }

/* the weekly prize boards now sit inside This Week's Leaderboards */
.hub-prizeboards.ht-in-boards { margin: 0 0 16px; }
.ht-boards-link { margin: -8px 0 16px; font-size: 14px; color: var(--muted, #bcaed6); }
.ht-boards-link a { color: var(--gold-2, #f6d98b); font-weight: 700; }

/* table cards: Play stays visible; seats and rules fold */
.ht-play { margin: 10px 0 0; }
.ht-play:empty { display: none; }
.ht-more { margin: 10px 0 0; border-top: 1px solid #ffffff14; }
.ht-more > summary { cursor: pointer; padding: 10px 0 4px; min-height: 40px; font-size: 14px; font-weight: 600; color: var(--muted, #bcaed6); }
.ht-more > summary:hover { color: var(--ivory, #f6eedf); }
.ht-more[open] > summary { margin-bottom: 8px; }

/* the Lucky Bean card's empty half */
.ftxt .ht-lb { margin: 4px 0 6px; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 14px; color: var(--muted, #bcaed6); }
.ftxt .ht-lb li::before { content: "✦ "; color: var(--gold, #e2b955); }
.ftxt .ht-lb b { font: 700 16px/1 var(--sans, system-ui); color: var(--gold-2, #f6d98b); }
.ftxt .ht-lb li.you { color: #5ee39b; }
/* ht2: Slots & Quick Play is a row of normal tiles; the slot's stats are short lines in its tile */
.tile .txt .ht-lb { margin: 2px 0 4px; padding: 0; list-style: none; display: grid; gap: 2px; font-size: 12.5px; color: var(--muted, #bcaed6); }
.tile .txt .ht-lb b { color: var(--gold-2, #f6d98b); font-weight: 700; font-size: 13px; font-family: var(--sans, system-ui); }
.tile .txt .ht-lb li.you { color: #5ee39b; }
#slots .tile .art.sq img, #booths .tile .art.sq img { width: 100%; height: 100%; object-fit: cover; }

/* Midway booth pictures: a striped carnival awning behind each booth's sign, one colour per booth */
#booths .art.sq { position: relative; overflow: hidden; }
#booths .booth-art { position: relative; display: grid; place-items: center; width: 100%; height: 100%; min-height: 120px;
  background: radial-gradient(circle at 50% 62%, #ffffff22 0 34%, transparent 35%), linear-gradient(180deg, transparent 0 26%, var(--bt, #6a2bd1) 26% 100%); }
#booths .booth-art::before { content: ""; position: absolute; inset: 0 0 auto; height: 30%;
  background: repeating-linear-gradient(90deg, #f6eedf 0 18px, var(--bt, #6a2bd1) 18px 36px); -webkit-mask: radial-gradient(10px at 9px 100%, #0000 98%, #000) 0 0/18px 100%; mask: radial-gradient(10px at 9px 100%, #0000 98%, #000) 0 0/18px 100%; }
#booths .booth-art::after { content: ""; position: absolute; left: 12%; right: 12%; bottom: 12%; height: 8px; border-radius: 4px; background: #00000040; }
#booths .booth-art span { position: relative; z-index: 1; margin-top: 18%; filter: drop-shadow(0 6px 8px #0007); }
#booths li:nth-child(5n+1) .booth-art { --bt: #c0392b; }
#booths li:nth-child(5n+2) .booth-art { --bt: #6a2bd1; }
#booths li:nth-child(5n+3) .booth-art { --bt: #1f8a5b; }
#booths li:nth-child(5n+4) .booth-art { --bt: #d18a1f; }
#booths li:nth-child(5n+5) .booth-art { --bt: #1f6fd1; }

/* the Casino Collection: what you own */
#collectionList li.ht-not img { opacity: .55; filter: grayscale(.5); }
#collectionList li { position: relative; }
#collectionList .ht-badge { position: absolute; top: 6px; right: 6px; padding: 2px 8px; border-radius: 999px; background: #5ee39b; color: #0b2a17; font: 700 11px/1.5 var(--sans, system-ui); font-style: normal; }
.ht-have { flex-basis: 100%; margin: 6px 0 0 !important; color: var(--ivory, #f6eedf) !important; }
.ht-have b { color: #5ee39b; }

/* footer: the long rules fold */
.ht-fine { margin: 6px 0; }
.ht-fine > summary { cursor: pointer; min-height: 32px; font-weight: 600; color: var(--muted, #bcaed6); }
.ht-fine[open] > summary { margin-bottom: 4px; }
