/* BankBot home: "the lounge". Onyx room, gold light, felt green for wins.
   Scoped to body.bbh so the other BankBot pages keep bankbot-pages.css untouched.
   Nothing here hides content by default: hidden/animated states only exist under .bbh-on (set by bankbot-motion.js). */
body.bbh {
    --onyx: #08080A;
    --lounge: #111114;
    --lounge-2: #18171A;
    --rim: #2A2620;
    --rim-soft: rgba(255, 236, 190, .08);
    --gold: #F5B301;
    --gold-hi: #FFD978;
    --gold-deep: #8C6500;
    --gold-soft: rgba(245, 179, 1, .12);
    --felt: #0D3A2B;
    --jade: #34D69F;
    --ivory: #F4EEE1;
    --smoke: #A19A8B;
    --text: var(--ivory);
    --muted: var(--smoke);
    --line: var(--rim);
    --vault: var(--lounge);
    --vault-2: var(--lounge-2);
    --ink: var(--onyx);
    --h-display: 'Bricolage Grotesque', 'Geist', system-ui, sans-serif;
    --h-body: 'Geist', 'IBM Plex Sans Arabic', system-ui, sans-serif;
    --ease-out: cubic-bezier(.16, 1, .3, 1);
    background: var(--onyx);
    color: var(--ivory);
    font-family: var(--h-body);
    font-size: 16px;
}
html[lang="ar"] body.bbh { --h-display: 'Alexandria', 'IBM Plex Sans Arabic', sans-serif; --h-body: 'IBM Plex Sans Arabic', 'Geist', sans-serif; line-height: 1.75; }
.bbh main { overflow-x: clip; }

/* nav sits on the onyx room */
.bbh .bb-nav { background: rgba(8, 8, 10, .72); border-bottom-color: rgba(255, 236, 190, .07); }
.bbh .bb-links a:hover { background: rgba(255, 255, 255, .05); }
.bbh .bb-cta { background: linear-gradient(180deg, #FFC933, var(--gold)); color: #1A1200 !important; border-radius: 999px; box-shadow: 0 0 0 1px rgba(255, 217, 120, .5) inset, 0 6px 20px -8px rgba(245, 179, 1, .6); }
.bbh .bb-login, .bbh .bb-lang { border-radius: 999px; background: rgba(255, 255, 255, .03); }
.bbh .bb-foot { border-top-color: var(--rim-soft); margin-top: 0; }

.bbh .num { font-family: var(--h-display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.bbh .gold { color: var(--gold); background: linear-gradient(180deg, var(--gold-hi) 10%, var(--gold) 55%, #D99A00); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

.bbh h1, .bbh h2, .bbh h3 { font-family: var(--h-display); color: var(--ivory); margin: 0; }
.bbh .h2 { font-size: clamp(2.1rem, 1.25rem + 3vw, 3.7rem); font-weight: 800; line-height: 1.02; letter-spacing: -.035em; text-wrap: balance; }
html[lang="ar"] .bbh .h2 { letter-spacing: 0; line-height: 1.3; font-weight: 700; }
.bbh .sub { color: var(--smoke); font-size: 1.08rem; margin: 14px 0 0; max-width: 46ch; }

/* buttons */
.bbh .btn { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 1.02rem; position: relative; isolation: isolate; transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), background-color .25s; }
.bbh .btn svg { width: 20px; height: 20px; flex: none; }
.bbh .btn-gold { color: #1A1200; background: linear-gradient(180deg, #FFCD3C 0%, var(--gold) 55%, #E8A400 100%); box-shadow: 0 1px 0 rgba(255, 244, 205, .7) inset, 0 -2px 0 rgba(120, 80, 0, .35) inset, 0 14px 34px -12px rgba(245, 179, 1, .75), 0 0 0 1px rgba(255, 210, 90, .4); }
.bbh .btn-gold:hover { transform: translateY(-2px); box-shadow: 0 1px 0 rgba(255, 244, 205, .7) inset, 0 -2px 0 rgba(120, 80, 0, .35) inset, 0 20px 44px -12px rgba(245, 179, 1, .9), 0 0 0 1px rgba(255, 210, 90, .6); }
.bbh .btn-gold::after { content: ''; position: absolute; inset: 0; border-radius: inherit; z-index: -1; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .55) 50%, transparent 65%) no-repeat; background-size: 250% 100%; background-position: 130% 0; opacity: .0; }
.bbh-on .bbh .btn-gold::after, .bbh-on .btn-gold::after { opacity: 1; animation: bbhSheen 6.5s ease-in-out 2.4s infinite; mix-blend-mode: soft-light; }
@keyframes bbhSheen { 0%, 70% { background-position: 130% 0; } 100% { background-position: -30% 0; } }
.bbh .btn-ghost { color: var(--ivory); background: rgba(255, 255, 255, .035); box-shadow: 0 0 0 1px rgba(255, 236, 190, .14) inset; backdrop-filter: blur(6px); }
.bbh .btn-ghost:hover { background: rgba(255, 255, 255, .06); box-shadow: 0 0 0 1px rgba(245, 179, 1, .55) inset; transform: translateY(-2px); }
.bbh .btn:active { transform: translateY(0) scale(.97); }

/* ===================== HERO ===================== */
.bbh .hero { position: relative; isolation: isolate; padding: clamp(40px, 7vh, 88px) 0 clamp(64px, 9vh, 110px); }
.bbh .hero-bg { position: absolute; inset: -64px 0 0; z-index: -1; pointer-events: none; overflow: hidden; }
.bbh .hero-bg .mesh { position: absolute; inset: 0; background:
    radial-gradient(60% 55% at 72% 38%, rgba(245, 179, 1, .20), transparent 70%),
    radial-gradient(40% 40% at 88% 78%, rgba(52, 214, 159, .10), transparent 70%),
    radial-gradient(45% 50% at 12% 10%, rgba(255, 190, 80, .07), transparent 70%); }
html[dir="rtl"] .bbh .hero-bg .mesh { transform: scaleX(-1); }
.bbh .hero-bg .grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 236, 190, .055) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 236, 190, .055) 1px, transparent 1px); background-size: 72px 72px; background-position: center top; -webkit-mask-image: radial-gradient(70% 60% at 60% 40%, #000 0%, transparent 75%); mask-image: radial-gradient(70% 60% at 60% 40%, #000 0%, transparent 75%); }
.bbh .grain { position: absolute; inset: 0; opacity: .16; mix-blend-mode: overlay; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.bbh .hero-bg .fade { position: absolute; inset: auto 0 0; height: 180px; background: linear-gradient(transparent, var(--onyx)); }

.bbh .hero-in { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .96fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.bbh .pill { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 8px; border-radius: 999px; font-size: .9rem; color: var(--ivory); background: rgba(255, 255, 255, .04); box-shadow: 0 0 0 1px rgba(255, 236, 190, .12) inset; }
html[dir="rtl"] .bbh .pill { padding: 6px 8px 6px 14px; }
.bbh .pill i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, #FFE9A8, var(--gold) 55%, var(--gold-deep)); box-shadow: 0 0 12px rgba(245, 179, 1, .5); }
.bbh .pill i::after { content: ''; width: 8px; height: 8px; border-radius: 50%; box-shadow: 0 0 0 1.5px #5C4300 inset; }
.bbh h1.hero-h { margin-top: 26px; font-size: clamp(2.6rem, .9rem + 4.6vw, 5.2rem); font-weight: 800; line-height: .96; letter-spacing: -.05em; font-variation-settings: 'opsz' 96; }
html[lang="ar"] .bbh h1.hero-h { letter-spacing: 0; line-height: 1.22; font-size: clamp(2.5rem, 1.1rem + 4.6vw, 5.1rem); font-weight: 800; }
.bbh .hero-h .ln { display: block; padding-bottom: .06em; }
.bbh .hero-h .ln > span { display: inline-block; }
.bbh .lead { margin: 24px 0 0; font-size: clamp(1.08rem, 1rem + .35vw, 1.28rem); color: #CFC7B6; max-width: 34ch; line-height: 1.55; }
html[lang="ar"] .bbh .lead { line-height: 1.8; }
.bbh .hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.bbh .hero-stats { display: flex; flex-wrap: wrap; gap: 0; margin-top: 48px; }
.bbh .hero-stats > div { padding-inline: 0 28px; margin-inline-end: 28px; border-inline-end: 1px solid var(--rim-soft); }
.bbh .hero-stats > div:last-child { border: 0; margin: 0; padding: 0; }
.bbh .hero-stats .num { display: block; font-size: clamp(1.5rem, 1.1rem + 1.1vw, 2.2rem); font-weight: 700; color: var(--ivory); line-height: 1.1; }
.bbh .hero-stats span { display: block; color: var(--smoke); font-size: .9rem; margin-top: 4px; }

/* stage: the glass device and the floating pieces */
.bbh .stage { position: relative; isolation: isolate; perspective: 1400px; padding: 40px 0 30px; --px: 0; --py: 0; }
.bbh .stage .halo { position: absolute; inset: 6% -6% 0; z-index: -2; border-radius: 50%; background: radial-gradient(closest-side, rgba(245, 179, 1, .30), rgba(245, 179, 1, .08) 55%, transparent); filter: blur(10px); }
.bbh .device { position: relative; z-index: 1; border-radius: 26px; padding: 10px; background: linear-gradient(160deg, rgba(255, 240, 200, .16), rgba(255, 255, 255, .03) 38%, rgba(255, 255, 255, .02) 70%, rgba(245, 179, 1, .12)); box-shadow: 0 0 0 1px rgba(255, 236, 190, .16) inset, 0 1px 0 rgba(255, 255, 255, .22) inset, 0 50px 120px -40px rgba(0, 0, 0, .9), 0 30px 80px -50px rgba(245, 179, 1, .55); backdrop-filter: blur(14px); transform: rotateY(var(--tilt-y, -7deg)) rotateX(var(--tilt-x, 4deg)); transform-style: preserve-3d; transition: transform .8s var(--ease-out); }
html[dir="rtl"] .bbh .device { --tilt-y: 7deg; }
.bbh .stage:hover .device { --tilt-y: -3deg; --tilt-x: 2deg; }
html[dir="rtl"] .bbh .stage:hover .device { --tilt-y: 3deg; }
.bbh .device::before { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 3; background: linear-gradient(115deg, rgba(255, 255, 255, .13) 0%, rgba(255, 255, 255, 0) 32%); }
.bbh .device::after { content: ''; position: absolute; left: 12%; right: 12%; bottom: -46px; height: 40px; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, .75), transparent); filter: blur(6px); }
.bbh .dev-bar { display: flex; align-items: center; gap: 10px; padding: 6px 8px 12px; }
.bbh .dev-bar .dots { display: flex; gap: 6px; flex: none; }
.bbh .dev-bar .dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 236, 190, .18); }
.bbh .pv-tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; }
.bbh .pv-tabs > :first-child { margin-inline-start: auto; }
.bbh .pv-tabs::-webkit-scrollbar { display: none; }
.bbh .pv-tabs button { flex: none; font: inherit; font-size: .82rem; color: var(--smoke); background: transparent; border: 0; border-radius: 999px; padding: 5px 11px; cursor: pointer; position: relative; overflow: hidden; transition: color .2s, background .2s; }
.bbh .pv-tabs button:hover { color: var(--ivory); }
.bbh .pv-tabs button[aria-selected="true"] { color: #1A1200; background: var(--gold); font-weight: 600; }
.bbh .pv-tabs button i { position: absolute; inset-inline-start: 0; bottom: 0; height: 2px; width: 0; background: rgba(26, 18, 0, .45); }
.bbh .pv-tabs button[aria-selected="true"] i { animation: pvfill var(--pv-ms, 8s) linear forwards; }
.bbh .pv-paused .pv-tabs button[aria-selected="true"] i { animation-play-state: paused; }
@keyframes pvfill { to { width: 100%; } }
.bbh .pv-tabs img.emoji { width: 1.05em; height: 1.05em; vertical-align: -.15em; }
.bbh .device .dc-window { border-radius: 17px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .5); position: relative; }
.bbh .device .dc-window.solo .dc-scroll { height: 470px; max-height: none; overflow: hidden; -webkit-mask-image: linear-gradient(#000 82%, transparent); mask-image: linear-gradient(#000 82%, transparent); }
#heroMsg { transition: opacity .35s, transform .45s var(--ease-out); }
#heroMsg.fade { opacity: 0; transform: translateY(8px); }
.bbh .preview-cap { color: var(--smoke); font-size: .88rem; margin: 22px 0 0; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 1.6em; position: relative; z-index: 2; }
.bbh .pv-live { width: 7px; height: 7px; border-radius: 50%; background: var(--jade); box-shadow: 0 0 0 4px rgba(52, 214, 159, .16); flex: none; }

.bbh .piece { position: absolute; z-index: 2; pointer-events: none; translate: calc(var(--px) * var(--k, 10px)) calc(var(--py) * var(--k, 10px)); transition: translate .9s var(--ease-out); }
.bbh .piece > *, .bbh .piece img, .bbh .piece svg { display: block; width: 100%; height: auto; }
.bbh .piece img { filter: drop-shadow(0 22px 26px rgba(0, 0, 0, .65)); }
.bbh .p-wheel { width: clamp(130px, 15vw, 220px); top: -24px; inset-inline-end: -70px; --k: -18px; z-index: 0; }
.bbh .p-wheel img { border-radius: 50%; box-shadow: 0 0 0 1px rgba(245, 179, 1, .25), 0 30px 60px -20px rgba(0, 0, 0, .9); filter: none; }
.bbh .p-coin { width: clamp(72px, 7.4vw, 112px); bottom: 70px; inset-inline-start: -48px; --k: 22px; }
.bbh .p-coin img { border-radius: 50%; }
.bbh .p-die { width: clamp(58px, 5.8vw, 88px); bottom: 0; inset-inline-end: 6%; --k: 30px; }
.bbh .p-chip { width: 54px; top: 22%; inset-inline-start: -30px; --k: 14px; z-index: 0; }
.bbh-on .p-wheel > div { animation: bbhSpin 80s linear infinite; }
.bbh-on .p-coin > div { animation: bbhBob 6s ease-in-out infinite; }
.bbh-on .p-die > div { animation: bbhBob 7.5s ease-in-out -2s infinite; }
.bbh-on .p-chip > div { animation: bbhBob 9s ease-in-out -4s infinite; }
@keyframes bbhSpin { to { transform: rotate(360deg); } }
@keyframes bbhBob { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-12px) rotate(4deg); } }

/* ===================== SECTIONS ===================== */
.bbh .sec { position: relative; padding: clamp(80px, 10vw, 140px) 0 0; }
.bbh .sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 24px; margin-bottom: clamp(28px, 4vw, 48px); }
.bbh .more { display: inline-flex; align-items: center; gap: 8px; color: var(--gold); text-decoration: none; font-weight: 600; padding: 8px 2px; }
.bbh .more svg { width: 18px; height: 18px; transition: transform .3s var(--ease-out); }
html[dir="rtl"] .bbh .more svg { transform: scaleX(-1); }
.bbh .more:hover svg { transform: translateX(3px); }
html[dir="rtl"] .bbh .more:hover svg { transform: scaleX(-1) translateX(3px); }

/* ---------- bento ---------- */
.bbh .bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(236px, auto); gap: 14px; }
.bbh .tile { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; padding: 24px; border-radius: 22px; text-decoration: none; color: var(--ivory); background: linear-gradient(180deg, #141317, #0E0E11); box-shadow: 0 0 0 1px rgba(255, 236, 190, .075) inset, 0 1px 0 rgba(255, 255, 255, .05) inset; transition: box-shadow .4s var(--ease-out), transform .4s var(--ease-out); }
.bbh .tile::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .4s; background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 0%), rgba(245, 179, 1, .10), transparent 70%); }
.bbh .tile:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px rgba(245, 179, 1, .32) inset, 0 1px 0 rgba(255, 255, 255, .07) inset, 0 30px 60px -36px rgba(245, 179, 1, .4); }
.bbh .tile:hover::before { opacity: 1; }
.bbh .tile h3 { font-size: 1.28rem; font-weight: 700; letter-spacing: -.02em; }
html[lang="ar"] .bbh .tile h3 { letter-spacing: 0; font-weight: 600; font-size: 1.22rem; }
.bbh .tile p { margin: 0; color: var(--smoke); font-size: .95rem; }
.bbh .tile .viz { flex: 1; display: grid; place-items: center; min-height: 120px; margin-bottom: 14px; position: relative; }
.bbh .tile .viz::before { content: ''; position: absolute; width: 150px; height: 110px; border-radius: 50%; background: radial-gradient(closest-side, rgba(245, 179, 1, .09), transparent); z-index: -1; }
.bbh .t-casino .viz::before { width: 80%; height: 80%; background: radial-gradient(closest-side, rgba(245, 179, 1, .16), transparent); }
.bbh .t-casino { grid-column: span 2; grid-row: span 2; background: radial-gradient(90% 70% at 50% 30%, rgba(245, 179, 1, .13), transparent 70%), linear-gradient(180deg, #16130C, #0E0E11); }
.bbh .t-casino .viz { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.bbh .t-casino h3 { font-size: clamp(1.5rem, 1.1rem + 1vw, 2rem); }
.bbh .t-wide { grid-column: span 2; }
.bbh .t-wide { flex-direction: row; align-items: center; gap: 22px; }
.bbh .t-wide .viz { flex: none; width: 150px; margin: 0; }
.bbh .t-wide .txt { flex: 1; }

/* slot reels */
.bbh .reels { display: flex; gap: 10px; padding: 16px; border-radius: 20px; background: linear-gradient(180deg, #1F1A10, #0D0B07); box-shadow: 0 0 0 1px rgba(245, 179, 1, .35) inset, 0 0 0 6px rgba(245, 179, 1, .06), 0 30px 60px -30px rgba(0, 0, 0, .9); position: relative; }
.bbh .reels::after { content: ''; position: absolute; left: 10px; right: 10px; top: 50%; height: 2px; margin-top: -1px; background: linear-gradient(90deg, transparent, rgba(245, 179, 1, .8), transparent); opacity: .7; }
.bbh .reel { width: clamp(64px, 6.4vw, 92px); height: clamp(84px, 8vw, 112px); overflow: hidden; border-radius: 12px; background: linear-gradient(180deg, #E9E2D0, #FFFBF0 40%, #FFFBF0 60%, #D9D0BA); box-shadow: 0 0 0 1px rgba(0, 0, 0, .4) inset, 0 8px 12px -6px rgba(0, 0, 0, .4) inset, 0 -8px 12px -6px rgba(0, 0, 0, .35) inset; }
.bbh .strip { display: flex; flex-direction: column; transform: translateY(calc(-4 * var(--cell))); --cell: clamp(84px, 8vw, 112px); }
.bbh .strip b { height: var(--cell); flex: none; display: grid; place-items: center; font-family: var(--h-display); font-weight: 800; font-size: calc(var(--cell) * .52); line-height: 1; color: #1B1408; }
.bbh .strip b.s7 { color: #C8202E; text-shadow: 0 2px 0 #7B0E17; }
.bbh .strip b.sg { color: var(--gold-deep); }
.bbh .strip b.sj { color: #148A5E; }
.bbh-on .tile.run .strip { animation: bbhReel 7s cubic-bezier(.45, .05, .2, 1) infinite; }
.bbh-on .tile.run .reel:nth-child(2) .strip { animation-delay: .25s; }
.bbh-on .tile.run .reel:nth-child(3) .strip { animation-delay: .5s; }
@keyframes bbhReel { 0%, 12% { transform: translateY(0); } 42%, 100% { transform: translateY(calc(-4 * var(--cell))); } }
.bbh .jackpot { position: static; margin-top: 18px; font-family: var(--h-display); font-weight: 800; font-size: 1.5rem; letter-spacing: -.02em; color: var(--gold); text-shadow: 0 0 24px rgba(245, 179, 1, .6); direction: ltr; }
.bbh-on .tile.run .jackpot { animation: bbhFlash 7s ease infinite .5s; }
@keyframes bbhFlash { 0%, 44% { opacity: 0; transform: scale(.9); } 50%, 88% { opacity: 1; transform: scale(1); } 100% { opacity: 0; } }

/* balance counter */
.bbh .bal { font-family: var(--h-display); font-weight: 700; font-size: 2.1rem; letter-spacing: -.03em; color: var(--ivory); position: relative; direction: ltr; }
.bbh .bal small { font-size: .5em; color: var(--gold); margin-inline-start: 6px; }
.bbh .bal .plus { position: absolute; inset-inline-end: -8px; top: -24px; font-size: .95rem; font-weight: 700; color: var(--jade); }
.bbh-on .tile.run .bal .plus { animation: bbhPlus 3.2s ease-out infinite; }
@keyframes bbhPlus { 0% { opacity: 0; transform: translateY(14px); } 20%, 60% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(-10px); } }

/* XO */
.bbh .xo { width: 112px; height: 112px; }
.bbh .xo .g { stroke: rgba(255, 236, 190, .18); stroke-width: 2; stroke-linecap: round; }
.bbh .xo .x { stroke: var(--gold); stroke-width: 5; stroke-linecap: round; fill: none; }
.bbh .xo .o { stroke: var(--jade); stroke-width: 5; fill: none; }
.bbh .xo .win { stroke: var(--ivory); stroke-width: 3; stroke-linecap: round; opacity: .85; }
.bbh-on .tile.run .xo .m { stroke-dasharray: 60; animation: bbhDraw 9s ease infinite backwards; animation-delay: calc(var(--i) * .45s); }
.bbh-on .tile.run .xo .win { stroke-dasharray: 110; animation: bbhDraw 9s ease infinite 2.4s backwards; }
@keyframes bbhDraw { 0% { stroke-dashoffset: var(--len, 60); opacity: 1; } 7%, 84% { stroke-dashoffset: 0; opacity: 1; } 94%, 100% { stroke-dashoffset: 0; opacity: 0; } }
.bbh .xo .win { --len: 110; }

/* mini wheel */
.bbh .mwheel { width: 132px; height: 132px; position: relative; }
.bbh .mwheel svg { width: 100%; height: 100%; display: block; }
.bbh .mwheel .rot { transform-origin: 50% 50%; }
.bbh-on .tile.run .mwheel .rot { animation: bbhTick 9s cubic-bezier(.3, .0, .2, 1) infinite; }
@keyframes bbhTick { 0% { transform: rotate(0); } 30% { transform: rotate(420deg); } 50% { transform: rotate(420deg); } 80% { transform: rotate(780deg); } 100% { transform: rotate(780deg); } }

/* mining */
.bbh .rigs { display: flex; align-items: flex-end; gap: 8px; height: 92px; }
.bbh .rigs i { width: 16px; border-radius: 6px 6px 3px 3px; background: linear-gradient(180deg, var(--gold), var(--gold-deep)); height: var(--h); box-shadow: 0 0 18px -4px rgba(245, 179, 1, .6); transform-origin: bottom; }
.bbh-on .tile.run .rigs i { animation: bbhRig 2.6s ease-in-out infinite; animation-delay: calc(var(--i) * -.45s); }
@keyframes bbhRig { 50% { transform: scaleY(.55); } }
/* loans ring */
.bbh .ring { width: 104px; height: 104px; }
.bbh .ring .bgc { stroke: rgba(255, 236, 190, .1); }
.bbh .ring .fg { stroke: var(--jade); stroke-linecap: round; stroke-dasharray: 264; stroke-dashoffset: 66; transform: rotate(-90deg); transform-origin: 50% 50%; }
.bbh-on .tile.run .ring .fg { animation: bbhRepay 6s ease-in-out infinite; }
@keyframes bbhRepay { 0% { stroke-dashoffset: 250; } 70%, 100% { stroke-dashoffset: 0; } }
/* podium */
.bbh .pod { display: flex; align-items: flex-end; gap: 8px; height: 100px; }
.bbh .pod i { width: 30px; border-radius: 8px 8px 3px 3px; background: linear-gradient(180deg, #2A261E, #17150F); box-shadow: 0 0 0 1px rgba(255, 236, 190, .12) inset; height: var(--h); transform-origin: bottom; position: relative; }
.bbh .pod i.top { background: linear-gradient(180deg, var(--gold), var(--gold-deep)); box-shadow: 0 0 24px -4px rgba(245, 179, 1, .6); }
.bbh .pod i.top::before { content: ''; position: absolute; left: 50%; top: -18px; width: 18px; height: 12px; margin-left: -9px; background: var(--gold); clip-path: polygon(0 100%, 0 20%, 25% 60%, 50% 0, 75% 60%, 100% 20%, 100% 100%); }
.bbh-on .tile.run .pod i { animation: bbhRise 5s var(--ease-out) infinite; animation-delay: calc(var(--i) * .15s); }
@keyframes bbhRise { 0% { transform: scaleY(.2); } 30%, 85% { transform: scaleY(1); } 100% { transform: scaleY(1); } }
/* toggles */
.bbh .tgls { display: grid; gap: 10px; }
.bbh .tgl { width: 46px; height: 26px; border-radius: 999px; background: var(--gold); position: relative; box-shadow: 0 0 16px -4px rgba(245, 179, 1, .6); }
.bbh .tgl::after { content: ''; position: absolute; top: 3px; inset-inline-end: 3px; width: 20px; height: 20px; border-radius: 50%; background: #1A1200; }
.bbh-on .tile.run .tgl { animation: bbhTglBg 6s ease infinite; animation-delay: calc(var(--i) * .5s); }
.bbh-on .tile.run .tgl::after { animation: bbhTglK 6s ease infinite; animation-delay: calc(var(--i) * .5s); }
@keyframes bbhTglBg { 0%, 20% { background: #2A261E; box-shadow: none; } 30%, 100% { background: var(--gold); } }
@keyframes bbhTglK { 0%, 20% { translate: calc(-20px * var(--dir, 1)) 0; background: #6E6656; } 30%, 100% { translate: 0 0; } }
html[dir="rtl"] .bbh .tgl { --dir: -1; }
.bbh .tgls .row { display: flex; align-items: center; gap: 12px; }
.bbh .tgls .row span { width: 64px; height: 8px; border-radius: 4px; background: rgba(255, 236, 190, .12); }

/* ---------- games rail ---------- */
.bbh .rail-wrap { position: relative; }
.bbh .rail { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: max(16px, (100vw - 1180px) / 2); padding: 16px max(16px, (100vw - 1180px) / 2) 30px; scrollbar-width: none; cursor: grab; overscroll-behavior-x: contain; }
.bbh .rail::-webkit-scrollbar { display: none; }
.bbh .rail.dragging { cursor: grabbing; scroll-snap-type: none; }
.bbh .rail.dragging a { pointer-events: none; }
.bbh .gcard { flex: 0 0 clamp(270px, 30vw, 380px); scroll-snap-align: start; text-decoration: none; color: var(--ivory); border-radius: 22px; position: relative; isolation: isolate; background: #121114; box-shadow: 0 0 0 1px rgba(255, 236, 190, .08) inset; transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out); }
.bbh .gcard .art { aspect-ratio: 3 / 1; border-radius: 22px 22px 0 0; overflow: hidden; background: #1c1b20; }
.bbh .gcard img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); user-select: none; -webkit-user-drag: none; }
.bbh .gcard .body { padding: 16px 20px 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.bbh .gcard h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -.015em; }
html[lang="ar"] .bbh .gcard h3 { letter-spacing: 0; font-weight: 600; }
.bbh .gcard p { margin: 2px 0 0; color: var(--smoke); font-size: .92rem; }
.bbh .gcard .go { width: 38px; height: 38px; flex: none; border-radius: 50%; display: grid; place-items: center; color: var(--gold); box-shadow: 0 0 0 1px rgba(245, 179, 1, .3) inset; transition: background .3s, color .3s; }
.bbh .gcard .go svg { width: 16px; height: 16px; }
html[dir="rtl"] .bbh .gcard .go svg { transform: scaleX(-1); }
.bbh .gcard::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; padding: 1px; background: linear-gradient(160deg, rgba(255, 217, 120, .9), rgba(245, 179, 1, 0) 40%, rgba(245, 179, 1, 0) 70%, rgba(245, 179, 1, .5)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .4s; }
.bbh .gcard:hover, .bbh .gcard:focus-visible { transform: translateY(-6px); box-shadow: 0 0 0 1px rgba(245, 179, 1, .2) inset, 0 40px 70px -40px rgba(245, 179, 1, .45), 0 24px 50px -30px rgba(0, 0, 0, .9); }
.bbh .gcard:hover::after, .bbh .gcard:focus-visible::after { opacity: 1; }
.bbh .gcard:hover img { transform: scale(1.07); }
.bbh .gcard:hover .go { background: var(--gold); color: #1A1200; }
.bbh .rail-nav { display: flex; gap: 8px; }
.bbh .rail-nav button { width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer; color: var(--ivory); background: rgba(255, 255, 255, .04); box-shadow: 0 0 0 1px rgba(255, 236, 190, .14) inset; display: grid; place-items: center; transition: background .25s, box-shadow .25s, opacity .25s; }
.bbh .rail-nav button:hover { box-shadow: 0 0 0 1px var(--gold) inset; color: var(--gold); }
.bbh .rail-nav button:disabled { opacity: .3; cursor: default; }
.bbh .rail-nav svg { width: 18px; height: 18px; }
html[dir="rtl"] .bbh .rail-nav svg { transform: scaleX(-1); }
.bbh .head-end { display: flex; align-items: center; gap: 18px; }

/* ---------- live stage ---------- */
.bbh .table { position: relative; isolation: isolate; border-radius: 36px; padding: clamp(36px, 5vw, 72px) clamp(16px, 4vw, 56px) clamp(32px, 4vw, 56px); overflow: hidden; background: radial-gradient(80% 90% at 50% 0%, rgba(52, 214, 159, .16), transparent 60%), radial-gradient(120% 100% at 50% 100%, #072219, #04140F 70%); box-shadow: 0 0 0 1px rgba(52, 214, 159, .14) inset, 0 0 0 10px rgba(255, 236, 190, .025), 0 60px 120px -60px rgba(0, 0, 0, .9); }
.bbh .table::before { content: ''; position: absolute; inset: 14px; border-radius: 26px; border: 1px dashed rgba(245, 179, 1, .18); pointer-events: none; z-index: -1; }
.bbh .table .grain { opacity: .35; z-index: -1; }
.bbh .table .spot { position: absolute; left: 50%; top: -30%; width: 70%; height: 90%; transform: translateX(-50%); z-index: -1; background: radial-gradient(closest-side, rgba(255, 236, 190, .10), transparent); pointer-events: none; }
.bbh .table-head { text-align: center; margin-bottom: clamp(28px, 4vw, 48px); }
.bbh .table-head .sub { margin-inline: auto; }
.bbh .frames { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 26px); align-items: center; }
.bbh .frame { text-decoration: none; color: var(--ivory); display: block; transition: transform .6s var(--ease-out); }
.bbh .frame:nth-child(2) { transform: translateY(-18px) scale(1.04); }
.bbh .frame:hover { transform: translateY(-8px); }
.bbh .frame:nth-child(2):hover { transform: translateY(-26px) scale(1.04); }
.bbh .msgcard { border-radius: 18px; background: #2B2D31; padding: 14px 14px 16px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .4), 0 1px 0 rgba(255, 255, 255, .06) inset, 0 40px 70px -40px rgba(0, 0, 0, .95); }
.bbh .msghead { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-size: .9rem; }
.bbh .msghead img { width: 30px; height: 30px; border-radius: 50%; }
.bbh .msghead b { color: #F2F3F5; font-weight: 600; }
.bbh .msghead em { font-style: normal; font-size: .66rem; font-weight: 700; background: #5865F2; color: #fff; padding: 1px 5px; border-radius: 4px; }
.bbh .msgmedia { aspect-ratio: 4 / 3; border-radius: 12px; background: #1E1F22; display: grid; place-items: center; overflow: hidden; }
.bbh .msgmedia picture { display: contents; }
.bbh .msgmedia img { width: 100%; height: 100%; object-fit: contain; display: block; }
.bbh .frame figcaption { margin-top: 14px; text-align: center; font-family: var(--h-display); font-weight: 600; font-size: 1.02rem; display: flex; align-items: center; justify-content: center; gap: 8px; }
.bbh .frame figcaption i { width: 7px; height: 7px; border-radius: 50%; background: var(--jade); box-shadow: 0 0 0 4px rgba(52, 214, 159, .16); }
.bbh .frame figure { margin: 0; }

/* ---------- closing ---------- */
.bbh .close { position: relative; isolation: isolate; text-align: center; padding: clamp(110px, 14vw, 190px) 0 clamp(90px, 11vw, 150px); overflow: hidden; }
.bbh .close .dial { position: absolute; left: 50%; top: 50%; width: min(980px, 150vw); aspect-ratio: 1; translate: -50% -50%; z-index: -1; pointer-events: none; opacity: .9; -webkit-mask-image: radial-gradient(closest-side, #000 40%, transparent 100%); mask-image: radial-gradient(closest-side, #000 40%, transparent 100%); }
.bbh .close .dial svg { width: 100%; height: 100%; display: block; }
.bbh-on .close .dial .spin { animation: bbhSpin 140s linear infinite; transform-origin: 50% 50%; }
.bbh-on .close .dial .spin-r { animation: bbhSpin 200s linear infinite reverse; transform-origin: 50% 50%; }
.bbh .close .glow { position: absolute; left: 50%; bottom: -40%; width: 90%; height: 90%; translate: -50% 0; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, rgba(245, 179, 1, .28), transparent); }
.bbh .close .h2 { font-size: clamp(2.4rem, 1.2rem + 4.4vw, 5rem); max-width: 14ch; margin-inline: auto; }
.bbh .close .btn-gold { margin-top: 38px; min-height: 60px; padding: 0 34px; font-size: 1.12rem; }
.bbh .close nav { margin-top: 28px; display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 26px; }
.bbh .close nav a { color: var(--smoke); text-decoration: none; padding: 6px 2px; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; }
.bbh .close nav a:hover { color: var(--ivory); border-color: var(--gold); }

/* reveal (only when motion is on; JS adds .rv-out to elements below the viewport) */
.bbh-on [data-rv] { transition: opacity .9s var(--ease-out), translate .9s var(--ease-out), filter .9s var(--ease-out); transition-delay: calc(var(--d, 0) * 80ms); }
.bbh-on [data-rv].rv-out { opacity: 0; translate: 0 30px; filter: blur(4px); transition-delay: 0ms; transition-duration: .4s; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1080px) {
    .bbh .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bbh .t-casino { grid-row: span 1; min-height: 340px; }
}
@media (max-width: 960px) {
    .bbh .hero-in { grid-template-columns: minmax(0, 1fr); }
    .bbh .stage { max-width: 560px; margin-inline: auto; width: 100%; }
    .bbh .hero { padding-bottom: 40px; }
}
@media (max-width: 760px) {
    .bbh .frames { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(-1 * clamp(16px, 4vw, 56px)); padding: 6px clamp(16px, 4vw, 56px) 4px; scroll-padding-inline: clamp(16px, 4vw, 56px); }
    .bbh .frames::-webkit-scrollbar { display: none; }
    .bbh .frame { flex: 0 0 80%; scroll-snap-align: center; }
    .bbh .frame:nth-child(2), .bbh .frame:nth-child(2):hover, .bbh .frame:hover { transform: none; }
    .bbh .rail-nav { display: none; }
}
@media (max-width: 600px) {
    .bbh .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: auto; gap: 10px; }
    .bbh .t-casino, .bbh .t-wide { grid-column: span 2; }
    .bbh .t-casino { min-height: 300px; }
    .bbh .tile { padding: 16px; border-radius: 18px; }
    .bbh .tile .viz { min-height: 96px; margin-bottom: 10px; transform: scale(.82); }
    .bbh .t-casino .viz { transform: none; }
    .bbh .tile h3, html[lang="ar"] .bbh .tile h3 { font-size: 1.05rem; }
    .bbh .tile p { font-size: .86rem; }
    .bbh .t-wide { gap: 12px; }
    .bbh .t-wide .viz { width: 120px; margin: 0; }
    .bbh .hero-stats { margin-top: 36px; }
    .bbh .hero-stats > div { padding-inline-end: 16px; margin-inline-end: 16px; }
    .bbh .device .dc-window.solo .dc-scroll { height: 400px; }
    .bbh .p-wheel { inset-inline-end: -26px; top: -2px; width: 104px; }
    .bbh .p-coin { inset-inline-start: -14px; width: 64px; bottom: 70px; }
    .bbh .p-chip { display: none; }
    .bbh .device { --tilt-y: 0deg !important; --tilt-x: 0deg; }
    .bbh .btn { min-height: 50px; padding: 0 22px; }
    .bbh .hero-ctas .btn { flex: 1 1 auto; justify-content: center; }
    .bbh .table { border-radius: 26px; }
}
@media (prefers-reduced-motion: reduce) {
    .bbh .device, .bbh .stage:hover .device { transition: none; }
}
/* pre-paint hold for the hero entrance (class added inline in <head>, removed by the motion script, 3s failsafe) */
.bbh-intro .hero-h .ln > span, .bbh-intro [data-hero], .bbh-intro .stage .piece > div { opacity: 0; }
