/* Moonbell Bingo, livelier (owner request 2026-10-06, from the bingo inspiration videos and the BINGO UI kit):
   a moonlit hall behind the game, a rail of glossy called balls, bright cards with coloured BINGO headers, solid
   glossy daubs that bounce in, a BINGO! bar under each card, GO! and BINGO! splashes. Presentation only. */
.bingo-page{--b:#ef3b3b;--i:#2f8cf0;--n:#e64bc4;--g:#ff9a1f;--o:#2fc45a;
 background:#1a1060!important}
.bingo-page .cards-zone{position:relative}

/* ball rail */
.ball-rail{display:flex;align-items:center;gap:10px;min-height:96px;padding:8px 12px;margin:0 0 12px;border-radius:999px;
 background:linear-gradient(#2a1846,#1a0f2e);border:2px solid #e2b56577;box-shadow:inset 0 3px 10px #0008,0 6px 16px #0006;overflow:hidden}
.rail-ball{--c:var(--b);position:relative;flex:0 0 auto;width:62px;height:62px;border-radius:50%;display:grid;place-items:center;
 background:radial-gradient(circle at 34% 28%,#fff9 0 8%,#fff0 22%),radial-gradient(circle,color-mix(in srgb,var(--c) 70%,#fff) 0,var(--c) 55%,color-mix(in srgb,var(--c) 60%,#000) 100%);
 box-shadow:0 5px 10px #0008,inset 0 -4px 8px #0005;animation:rail-in .45s cubic-bezier(.2,.8,.3,1.3) both}
.rail-ball:before{content:'';position:absolute;inset:18%;border-radius:50%;background:radial-gradient(circle at 40% 35%,#fff,#f3f0f6);box-shadow:inset 0 -2px 4px #0003}
.rail-ball i,.rail-ball b{position:relative;font-style:normal;line-height:1;color:#241334;text-align:center}
.rail-ball i{position:absolute;top:21%;font:900 .62rem/1 'Roboto Slab',Georgia,serif;color:var(--c)}
.rail-ball b{font:900 1.3rem/1 'Roboto Slab',Georgia,serif;margin-top:8%}
.rail-ball.newest{width:84px;height:84px;margin-right:8px;transform:none;animation:rail-drop .7s cubic-bezier(.2,.9,.3,1.25) both;box-shadow:0 0 0 4px #ffe38a,0 0 26px #ffd34d,0 8px 14px #0009}
.rail-ball.newest b{font-size:1.85rem}.rail-ball.newest i{font-size:.8rem}
.col-B{--c:var(--b)}.col-I{--c:var(--i)}.col-N{--c:var(--n)}.col-G{--c:var(--g)}.col-O{--c:var(--o)}
@keyframes rail-in{from{transform:translateX(-60px);opacity:0}}
@keyframes rail-drop{0%{transform:translateY(-120px) scale(.6) rotate(-200deg);opacity:0}70%{transform:translateY(6px) scale(1.06)}100%{transform:none}}

/* cards: bright white grid, coloured letter headers, bold numbers */
.bingo-page .bingo-card{background:linear-gradient(#ffffff,#eef3ff)!important;border:3px solid #ffd77a!important;border-radius:16px!important;padding:8px 8px 0!important;
 box-shadow:0 0 0 2px #7a4a12,0 12px 26px #000a,0 0 30px #ffc85a33!important;color:#16152b!important}
.bingo-page .bingo-card.active{box-shadow:0 0 0 2px #7a4a12,0 0 0 6px #ffd77a55,0 14px 30px #000b,0 0 40px #ffc85a66!important}
.bingo-page .bingo-card header strong{font-family:'Roboto Slab',Georgia,serif;color:#5a2d6a}
.bingo-page .card-grid{gap:3px!important;background:#c9d4f2;border-radius:10px;padding:3px}
.bingo-page .card-grid .letter{display:grid;place-items:center;height:auto;min-height:30px;border-radius:7px 7px 3px 3px;color:#fff!important;
 font:900 1.25rem/1 'Roboto Slab',Georgia,serif!important;text-shadow:0 2px 0 #0004;box-shadow:inset 0 -4px 0 #0003,inset 0 3px 0 #fff4}
.bingo-page .card-grid .letter:nth-child(1){background:var(--b)}.bingo-page .card-grid .letter:nth-child(2){background:var(--i)}
.bingo-page .card-grid .letter:nth-child(3){background:var(--n)}.bingo-page .card-grid .letter:nth-child(4){background:var(--g)}.bingo-page .card-grid .letter:nth-child(5){background:var(--o)}
.bingo-page .card-grid button{position:relative;isolation:isolate;background:#fff!important;border:0!important;border-radius:6px!important;color:#16152b!important;
 font:800 clamp(1.15rem,2.1vw,1.9rem)/1 'Roboto Slab',Georgia,serif!important;box-shadow:none!important;transition:transform .12s}
.bingo-page .card-grid button.can-daub:not(.daubed){color:#c2185b!important;background:#fff7d6!important;box-shadow:inset 0 0 0 2px #ffcf5a!important}
.bingo-page .card-grid button.pattern-target:not(.daubed){background:#f6efff!important}
.bingo-page .card-grid button:not(:disabled):hover{transform:scale(1.05)}
/* the daub: a solid glossy dot in the square's column colour that bounces in; the number stays readable on top */
.bingo-page .card-grid button.daubed::before{content:'';position:absolute;inset:8%;z-index:-1;border-radius:50%;
 background:radial-gradient(circle at 35% 30%,#fff8 0 10%,#fff0 26%),radial-gradient(circle,var(--dc,#2f8cf0) 0,color-mix(in srgb,var(--dc,#2f8cf0) 70%,#000) 100%);
 box-shadow:0 3px 6px #0005;animation:daub-in .32s cubic-bezier(.2,.9,.3,1.5) both}
.bingo-page .card-grid button.daubed{color:#fff!important;text-shadow:0 2px 3px #0008}
.bingo-page .card-grid button:nth-child(5n+6){--dc:var(--b)}.bingo-page .card-grid button:nth-child(5n+7){--dc:var(--i)}.bingo-page .card-grid button:nth-child(5n+8){--dc:var(--n)}
.bingo-page .card-grid button:nth-child(5n+9){--dc:var(--g)}.bingo-page .card-grid button:nth-child(5n+10){--dc:var(--o)}
.bingo-page .card-grid button.free-square{color:#ffe38a!important;font-size:1.5rem!important}
.bingo-page .card-grid button.free-square::before{--dc:#7a3cc8}
.bingo-page .card-grid button.winning{animation:win-pulse .6s ease-in-out infinite alternate}
@keyframes daub-in{0%{transform:scale(0)}70%{transform:scale(1.15)}100%{transform:scale(1)}}
@keyframes win-pulse{to{box-shadow:0 0 0 3px #ffe38a,0 0 18px #ffd34d!important;transform:scale(1.04)}}

/* BINGO! bar under each card */
.card-bingo{display:block;width:calc(100% + 16px);margin:8px -8px 0;padding:10px 6px;border:0;border-radius:0 0 13px 13px;cursor:pointer;
 background:linear-gradient(#3a7cff,#1c48c8);color:#fff;font:900 clamp(1.1rem,2vw,1.6rem)/1 'Roboto Slab',Georgia,serif;letter-spacing:.06em;
 text-shadow:0 2px 0 #0b2a7a;box-shadow:inset 0 3px 0 #fff5,inset 0 -4px 0 #0003}
.card-bingo:disabled{filter:saturate(.6) brightness(.85);cursor:default}
.card-bingo.ready:not(:disabled){background:linear-gradient(#ffd34d,#f08a10);color:#4a1e00;text-shadow:0 1px 0 #fff8;animation:bar-ready .7s ease-in-out infinite alternate}
@keyframes bar-ready{to{box-shadow:inset 0 3px 0 #fff8,0 0 22px #ffc23a}}

/* GO! and BINGO! splashes */
.bingo-splash{position:absolute;left:50%;top:42%;z-index:30;pointer-events:none;transform:translate(-50%,-50%);
 font:900 clamp(4rem,11vw,9rem)/1 'Roboto Slab',Georgia,serif;letter-spacing:.02em;-webkit-text-stroke:5px #6a1a00;paint-order:stroke fill;
 color:#ffd23a;text-shadow:0 6px 0 #a83a00,0 12px 26px #000a,0 0 40px #ffb02a;animation:splash 1.3s cubic-bezier(.2,.9,.3,1.3) both}
.bingo-splash.win{color:#fff2a0;font-size:clamp(4.4rem,13vw,10rem);animation-duration:2.4s;background:radial-gradient(circle,#ffd34d55,#0000 60%);padding:40px 60px;border-radius:50%}
@keyframes splash{0%{transform:translate(-50%,-50%) scale(.2) rotate(-12deg);opacity:0}25%{transform:translate(-50%,-50%) scale(1.15) rotate(3deg);opacity:1}40%{transform:translate(-50%,-50%) scale(1)}80%{opacity:1}100%{transform:translate(-50%,-60%) scale(1.05);opacity:0}}

/* the called-numbers board lights up like marquee bulbs */
.bingo-page #number-board [data-number].called{background:radial-gradient(circle,#ffe9a0,#f0b030)!important;color:#3a1a00!important;box-shadow:0 0 8px #ffc23a88}
.bingo-page #number-board [data-number].latest{animation:bulb .8s ease-in-out infinite alternate}
@keyframes bulb{to{box-shadow:0 0 16px #fff2a0,0 0 4px #fff}}

@media (max-width:700px){
 .ball-rail{min-height:70px;gap:6px;padding:6px 8px}
 .rail-ball{width:44px;height:44px}.rail-ball b{font-size:.95rem}.rail-ball i{font-size:.5rem}
 .rail-ball.newest{width:62px;height:62px;margin-right:4px}.rail-ball.newest b{font-size:1.35rem}
 .bingo-page .card-grid .letter{min-height:26px;font-size:1.05rem!important}
}
@media (prefers-reduced-motion:reduce){.rail-ball,.rail-ball.newest,.bingo-splash,.bingo-page .card-grid button.daubed::before,.bingo-page .card-grid button.winning,.card-bingo.ready{animation:none!important}}
body.bingo-flat :is(.rail-ball,.bingo-splash,.card-bingo.ready){animation:none!important}
/* the rail replaces the latest-call box and chips; the per-card bars replace the big claim button (both stay for screen readers) */
.bingo-page .call-display,.bingo-page #recent-balls,.bingo-page #claim,.bingo-page #claim-help{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.bingo-page .bingo-cards{max-width:640px;margin:0 auto}
.bingo-page .bingo-cards:has(.bingo-card:nth-child(2)){max-width:none}
.bingo-page .cards-zone{overflow-x:clip}
.bingo-splash{max-width:100vw;font-size:clamp(3rem,16vw,9rem)}

/* ---------------------------------------------------------------- Bingo UI refresh (owner request 2026-10-06), styled after the
   BINGO UI kit and the inspiration videos: a turning sunburst of light over a starry night, candy-glossy buttons and
   bright coloured panels. Presentation only. */
.bingo-page{background:#1a1060!important}
@property --sun{syntax:'<angle>';inherits:false;initial-value:0deg}
.bingo-page::before{content:'';position:fixed;inset:0;z-index:-2;pointer-events:none;
 background:repeating-conic-gradient(from var(--sun) at 50% 42%,#3d2bd055 0deg 9deg,#7a3cd022 9deg 18deg);animation:sunburst 90s linear infinite}
.bingo-page::after{content:'';position:fixed;inset:0;z-index:-1;pointer-events:none;
 background:radial-gradient(ellipse 60% 55% at 50% 42%,#6a4cff66,#0000 70%),
  radial-gradient(1.6px 1.6px at 12% 18%,#fff,#0000),radial-gradient(1.4px 1.4px at 28% 72%,#fff,#0000),radial-gradient(2px 2px at 44% 12%,#fff,#0000),
  radial-gradient(1.4px 1.4px at 62% 84%,#fff,#0000),radial-gradient(2px 2px at 78% 26%,#fff,#0000),radial-gradient(1.6px 1.6px at 90% 64%,#fff,#0000),
  radial-gradient(1.4px 1.4px at 6% 52%,#fff,#0000),radial-gradient(1.8px 1.8px at 54% 46%,#fff9,#0000),radial-gradient(1.4px 1.4px at 36% 38%,#fff,#0000),
  radial-gradient(ellipse 120% 90% at 50% 120%,#ff4fb855,#0000 60%),linear-gradient(#120a4ad9,#1d0e5ccc 50%,#2a0c4fdd);animation:twinkle 4s ease-in-out infinite alternate}
@keyframes sunburst{to{--sun:360deg}}
@keyframes twinkle{to{opacity:.85}}

/* candy-glossy buttons */
.bingo-page :is(#game-help,#game-settings,#friends,.game-utilities button,#new-game,.waiting button,dialog button,.power-bar button,.mini-cards button){
 --c1:#4f7dff;--c2:#2a3fd8;--edge:#18208a;
 font:800 .95rem/1.1 'Roboto Slab',Georgia,serif!important;color:#fff!important;text-shadow:0 2px 0 #0005;letter-spacing:.01em;
 background:linear-gradient(#fff5 0 0) top/100% 46% no-repeat,linear-gradient(var(--c1),var(--c2))!important;
 border:0!important;border-radius:999px!important;padding:.62em 1.2em!important;min-height:44px;
 box-shadow:inset 0 2px 0 #fff8,inset 0 -3px 0 #0003,0 4px 0 var(--edge),0 7px 12px #0006!important;transition:transform .1s,filter .15s}
.bingo-page :is(#game-help,#game-settings,#friends,.game-utilities button,#new-game,.waiting button,dialog button,.power-bar button):hover:not(:disabled){filter:brightness(1.12);transform:translateY(-1px)}
.bingo-page :is(#game-help,#game-settings,#friends,.game-utilities button,#new-game,.waiting button,dialog button,.power-bar button):active:not(:disabled){transform:translateY(3px);box-shadow:inset 0 2px 0 #fff8,0 1px 0 var(--edge),0 3px 6px #0006!important}
.bingo-page :is(.primary,#setup-go,#next-round,#start-room){--c1:#ffd84a;--c2:#ff9a1f;--edge:#a8520a;color:#4a1e00!important;text-shadow:0 1px 0 #fff8}
.bingo-page #game-friends,.bingo-page [id*=friends]{--c1:#ff5fc8;--c2:#d0289a;--edge:#7a1460}
.bingo-page .power-bar button[data-power=free]{--c1:#3fe0c0;--c2:#13a88c;--edge:#0a6152}
.bingo-page .power-bar button[data-power=extra]{--c1:#7cf05a;--c2:#2fb02a;--edge:#1a6a16}
.bingo-page .power-bar button[data-power=double]{--c1:#ffd84a;--c2:#ff9a1f;--edge:#a8520a;color:#4a1e00!important;text-shadow:none}
.bingo-page .power-bar button:disabled{filter:saturate(.35) brightness(.7)}
.bingo-page .power-bar button b{display:inline-grid;place-items:center;min-width:1.6em;height:1.6em;margin-left:.35em;border-radius:50%;background:#fff;color:#2a1a60;font-size:.8rem;text-shadow:none}
.bingo-page .game-bar{background:linear-gradient(#2b1d8cee,#1c1266ee)!important;border-bottom:3px solid #6f5cff!important;box-shadow:0 4px 18px #0007}
.bingo-page .public-quick-link{color:#ffe38a!important}

/* panels: bright tops, deep bodies, a soft glow */
.bingo-page :is(.round-ribbon,.number-panel,.roster-box,.hall-note,.claim-bar,.card-tools){
 background:linear-gradient(#3a2aa8f0,#241a78f0)!important;border:2px solid #8f7dff!important;border-radius:18px!important;
 box-shadow:inset 0 2px 0 #fff3,0 8px 22px #0007,0 0 24px #6a4cff44!important;color:#fff}
.bingo-page .round-ribbon{border-color:#ffd84a!important;background:linear-gradient(90deg,#ff4fb8ee,#7a3cd0ee 45%,#3a2aa8ee)!important}
.bingo-page .round-ribbon :is(strong,b,#pattern-name){color:#fff;text-shadow:0 2px 0 #0006}
.bingo-page #round-number{color:#ffe38a!important;letter-spacing:.12em}
.bingo-page .stars-total b{color:#ffe38a;text-shadow:0 0 12px #ffd84a}
.bingo-page .card-tools{padding:6px 14px!important}
.bingo-page .card-tools strong{color:#ffe38a;font-family:'Roboto Slab',Georgia,serif}
.bingo-page .caller-bubble{background:#fff!important;color:#2a1a60!important;border:3px solid #ffd84a!important;border-radius:18px!important;font-weight:700}
.bingo-page .number-panel summary{color:#ffe38a;font-family:'Roboto Slab',Georgia,serif}
.bingo-page #number-board [data-number]{background:#1b1366;border-radius:7px;color:#b9b0ff}
.bingo-page #number-board .letters span,.bingo-page #number-board>span{color:#fff}
.bingo-page .ball-rail{background:linear-gradient(#2b1d8c,#170f5a)!important;border:3px solid #ffd84a!important;box-shadow:inset 0 4px 12px #0009,0 6px 18px #0007,0 0 22px #ffd84a44!important}
.bingo-page #charge-meter{color:#7cf05a;text-shadow:0 0 8px #7cf05a88}
/* dialogs: a pink kit header over a cream body */
.bingo-page dialog{background:#fff7e6!important;color:#2a1a60!important;border:4px solid #ffd84a!important;border-radius:24px!important;padding:0 24px 24px!important;box-shadow:0 20px 50px #000a!important;overflow:hidden}
.bingo-page dialog>:first-child,.bingo-page dialog form>:first-child{margin:0 -24px 16px!important;padding:16px 24px!important;background:linear-gradient(#ff6fcf,#d0289a);color:#fff!important;text-shadow:0 2px 0 #0004;font-family:'Roboto Slab',Georgia,serif}
.bingo-page dialog :is(h2,h3,label,p){color:inherit}
.bingo-page dialog :is(input,select){background:#fff!important;color:#2a1a60!important;border:2px solid #b9a8ff!important;border-radius:12px!important}
@media (prefers-reduced-motion:reduce){.bingo-page::before,.bingo-page::after{animation:none}}
body.bingo-flat::before,body.bingo-flat::after{animation:none}
[data-theme=light] .bingo-page,.bingo-page[data-theme=light]{background:#4a3ad0!important}

.bingo-page .caller-bubble{position:relative;z-index:2}
.bingo-page .bingo-cards{padding-bottom:96px}
@media (max-width:700px){
 .bingo-page :is(#game-help,#game-settings,#friends){font-size:.74rem!important;padding:.45em .8em!important;min-height:38px;line-height:1.05}
 .bingo-page .game-bar h1{font-size:1rem}
 .bingo-page .power-bar{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
 .bingo-page .power-bar button{font-size:.72rem!important;padding:.5em .4em!important}
 .bingo-page .bingo-cards{padding-bottom:110px}
}
.bingo-page .bingo-cage-stage{height:250px!important;max-width:300px!important;width:100%!important}
@media (max-width:700px){.bingo-page .bingo-cage-stage{height:170px!important;width:190px!important}}
@media (max-width:700px){.bingo-page .caller-bubble{max-width:calc(100vw - 32px);white-space:normal;overflow-wrap:anywhere;font-size:.85rem}}
@media (max-width:700px){.bingo-page .caller-panel{min-width:0}.bingo-page .caller-bubble{grid-column:1/-1!important;max-width:100%!important;min-width:0;justify-self:stretch;text-align:center;left:0!important;right:auto!important;margin:6px 0!important;top:0!important}}
