/* The Cocos canvas owns the five slot boards; HTML remains accessible fallback. */
.room-polished #gameRoomContent.preparing-scene{visibility:hidden;pointer-events:none}
.room-polished:has(.preparing-scene) #gameRoomStatus{position:absolute;top:35%;left:0;right:0}
.cocos-game-scene{position:absolute;inset:0;z-index:4;width:100%;height:100%;min-width:1px;min-height:1px;border:0;background:transparent;pointer-events:none;opacity:0}
.has-cocos-scene .cocos-game-scene.is-ready{opacity:1}
.has-cocos-scene :is(.slot-symbol,.feature-symbol){visibility:hidden!important;animation:none!important}
.has-cocos-scene :is(.slot-cell,.sweet-cell,.room-olympus-symbol){overflow:visible}
.has-cocos-scene :is(.slot-hero,.sweet-title,.slot-meter,.slot-total,.sweet-cascade-bar,.room-olympus-arena>h1){position:relative;z-index:5}
.room-polished .browser-game-stage>:is(.slot-popup,.feature-popup){position:absolute;inset:35% 8% auto;z-index:8;min-height:100px}
.browser-player .room-polished:is(.room-dog,.room-sugar,.room-bass) .slot-hero{height:clamp(100px,30cqh,205px);padding:26px 12px 0;background:none}
.browser-player .room-polished:is(.room-dog,.room-sugar,.room-bass) .slot-hero h1{max-width:52%;font-size:clamp(21px,6vw,30px);line-height:1.05}
.browser-player .room-polished:is(.room-dog,.room-sugar,.room-bass) .slot-hero::after{display:none}
.browser-player .room-polished.room-dog .dog-board{height:auto;min-height:0;flex:1;display:flex;flex-direction:column;background:#6d9c4b url("../../images/dog/scene-v1.52c3c6c1a8c5.webp") 55% 8%/380% auto;border-radius:16px 16px 4px 4px}
.browser-player .room-polished.room-dog .dog-board>.slot-hero{position:relative;inset:auto;flex:none;width:100%;height:clamp(110px,34cqh,225px)}
.browser-player .room-polished.room-dog .dog-board>.slot-hero{justify-items:start;align-content:center;padding-left:18px}
.browser-player .room-polished.room-dog .dog-board>.slot-frame{position:relative;inset:auto;margin:0 5px 5px;flex:1;border:5px ridge #d4a65b;border-radius:8px;background:#58232b}
.browser-player .room-polished.room-dog .slot-grid{height:100%;aspect-ratio:5/3}
/* Reserve the status area before bonus text appears; its font metrics must not
   move the reels or the Cocos board during a round, including in WebKit. */
.browser-player .room-polished.room-dog .dog-round{flex:0 0 var(--dog-round-height);height:var(--dog-round-height);min-height:var(--dog-round-height);box-sizing:border-box}
.browser-player .room-polished.room-bass .slot-arena{background:linear-gradient(#087bb022,#073b6b66),url("../../images/bass-cocos-background.cd1bc5b12ab6.webp") center/100% 100%}
.browser-player .room-polished.room-olympus{background-image:linear-gradient(#30205733,#25133533),url("../../images/olympus-cocos-background.6d8ca798549a.webp");background-size:100% 100%}
.browser-player .room-polished.room-sweet{background-image:url("../../images/sweet-cocos-background.22565e330214.webp")}
.browser-player .room-polished.room-sweet .sweet-title{width:53%;height:clamp(110px,31cqh,210px);margin:0;padding:10px 0;align-content:center;flex-wrap:wrap;font-size:clamp(18px,6vw,28px)}
.browser-player .room-polished.room-olympus .room-olympus-arena>h1{min-height:clamp(100px,31cqh,210px);max-width:54%;align-content:center}
@media(max-height:650px){.browser-player .room-polished:is(.room-dog,.room-sugar,.room-bass) .slot-hero,.browser-player .room-polished.room-dog .dog-board>.slot-hero,.browser-player .room-polished.room-sweet .sweet-title{height:90px;padding-top:7px}.browser-player .room-polished.room-olympus .room-olympus-arena>h1{min-height:90px}}
/* Reserve the same hero height when fitting the board, including on rotation.
   Older fit rules only reserved the former 42px title and clipped bottom rows. */
.browser-player .room-polished .browser-game-stage{--classic-hero-height:clamp(52px,28cqh,190px)}
.browser-player .room-polished:is(.room-bass,.room-sugar) .room-short-stage>.slot-arena{flex:1;width:100%;height:100%;max-width:100%;gap:0}
.browser-player .room-polished:is(.room-bass,.room-sugar) .room-short-stage .slot-hero{height:var(--classic-hero-height);padding:7px 10px 0}
.browser-player .room-polished:is(.room-bass,.room-sugar) .room-short-stage .slot-frame{flex:none;width:min(calc(100cqw - 18px),calc((100cqh - var(--classic-hero-height) - 86px)*var(--board-ratio)));max-width:100%;margin:auto;box-sizing:border-box}
.browser-player .room-polished:is(.room-bass,.room-sugar) .room-short-stage .slot-meter{height:26px;min-height:26px;padding:3px 8px}
.browser-player .room-polished:is(.room-bass,.room-sugar) .room-short-stage .slot-total{height:34px;min-height:34px;padding:3px 8px}
.browser-player .room-polished.room-sweet .room-short-stage>.sweet-arena{width:100%;height:100%;flex:1;gap:0}
.browser-player .room-polished.room-sweet .room-short-stage .sweet-title{height:var(--classic-hero-height);padding:7px 0}
.browser-player .room-polished.room-sweet .room-short-stage .sweet-frame{width:min(calc(100cqw - 12px),calc((100cqh - var(--classic-hero-height) - 48px)*1.2));max-width:100%;margin:auto}
.browser-player .room-polished.room-sweet .room-short-stage .sweet-cascade-bar{height:26px;min-height:26px;margin-top:4px;padding:4px 8px}
.browser-player .room-polished.room-olympus .room-short-stage .room-olympus-arena>h1{height:var(--classic-hero-height);min-height:var(--classic-hero-height);flex:none}
.browser-player .room-polished.room-olympus .room-short-stage .room-olympus-grid{width:min(calc(100cqw - 16px),calc((100cqh - var(--classic-hero-height) - 26px)*1.17));max-width:100%;margin:auto}
@media(max-height:450px) and (orientation:landscape){
 .browser-player .room-polished .browser-game-stage{--classic-hero-height:clamp(42px,20cqh,90px)}
 .browser-player .room-polished:is(.room-bass,.room-sugar) .room-short-stage .slot-frame{width:min(calc(100cqw - 18px),calc((100cqh - var(--classic-hero-height) - 74px)*var(--board-ratio)))}
}

.room-plinko:has(.plinko-options[open]) .cocos-game-scene{visibility:hidden}

.browser-player .room-polished .browser-game-stage>.scene-game-title{
 position:absolute;z-index:5;pointer-events:none;top:var(--scene-title-y);left:3%;width:43%;margin:0;
 transform:translateY(-50%);font:900 clamp(16px,6cqw,33px)/.96 Georgia,serif;text-align:center;
 text-wrap:balance;letter-spacing:-.035em;color:#ffe298;text-shadow:0 2px #593014,1px 3px #3b2316,0 0 8px #201322;
}
.browser-player .room-sugar .browser-game-stage>.scene-game-title{color:#fff0cb;text-shadow:1px 2px #b91d52,1px 4px #741232,0 0 9px #3f1025}
.browser-player .room-dog .browser-game-stage>.scene-game-title{color:#fff2c6;text-shadow:1px 2px #782b16,2px 4px #522e21,0 0 8px #432214}
