/* An opened game owns a stable viewport. */
body.game-is-open,body:has([data-hide-activity][open]){overflow:hidden}
.page:has(.game-open),.page:has([data-hide-activity][open]){transform:none!important;animation:none!important}
:is(.play-new-card,.classic-game).game-open,[data-hide-activity][open]{position:fixed!important;inset:0!important;z-index:220!important;margin:0!important;padding:max(12px,env(safe-area-inset-top)) 12px max(18px,env(safe-area-inset-bottom))!important;border:0!important;border-radius:0!important;background:var(--theme-surface,#fff9ef)!important;box-shadow:none!important;overflow-y:auto!important;overscroll-behavior:contain;transform:none!important;display:block!important;max-width:none!important}
.game-open #play-stage{max-width:880px;margin:0 auto;min-height:calc(100dvh - 30px)}
.game-open .play-stage-close{position:sticky;top:0;z-index:5;background:var(--theme-surface,#fff9ef);padding:10px 12px;border-radius:10px}
.game-open :is(.word-stage,.legacy-game-stage){min-height:calc(100dvh - 30px);width:min(100%,780px);margin:auto;padding:12px}
.game-is-open .chat-ball{z-index:241}
.match-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:7px;width:min(100%,330px);margin:18px auto}
.match-tile,.match-bonus{aspect-ratio:1;height:auto;min-height:0!important;padding:0;border-radius:12px;font-size:23px;display:grid;place-items:center}
.match-tile svg{width:19px;height:19px}
.match-bonus{background:#f3dfe9;color:#ac587f;border:1px dashed #d2a5bd;font:32px Georgia}
.chess-square:disabled{opacity:1}
.chess-square{transition:none!important;animation:none!important}
.chess-square:active{transform:none!important}
.chat-panel[data-message-style="plain"] .chat-message.text-message,.chat-panel[data-message-style="plain"] .chat-message.text-message.mine,.chat-panel[data-message-style="plain"] .chat-message.text-message.theirs{background:transparent!important;border:0!important;border-radius:0;box-shadow:none!important;padding:6px 8px;color:var(--chat-ink)}
.chat-panel[data-message-style="plain"] .chat-message.text-message.mine{color:var(--chat-accent)}
.chat-panel[data-message-style="plain"] .chat-message.text-message .message-time{color:var(--chat-ink);opacity:.7;font-size:9px}
.chat-panel[data-message-style="plain"] .chat-message.text-message.message-selected{outline:2px solid var(--chat-accent);outline-offset:3px;border-radius:10px}
.chat-back{flex-shrink:0}
.sound-library .sound-library-content{padding:8px 10px 4px}
.sound-library .sound-library-content>.playlist-note{margin:0 0 7px;padding-top:7px;font-size:10px}
.sound-library .sound-library-content .own-track,.sound-library .sound-library-content .own-track.picked{padding:8px 4px;gap:8px;margin:0}
.sound-library .track-play{height:34px;width:34px}
.sound-library .sound-library-content .track-choices button{min-height:26px!important;padding:3px 5px}
.fighter-combos{font-size:11px;line-height:1.7;color:var(--theme-muted,#866779);max-width:650px}
.shadow-tutorial{display:block;width:100%;max-height:65dvh;margin:12px auto;border-radius:14px;background:#251f35}
.fighter-controls>div{flex-wrap:wrap;gap:6px}
.hide-scene-tools{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 16px;background:#eee3ec;font-size:11px;color:#6d506b}
.hide-scene-tools label{display:flex;align-items:center;gap:8px}
.hide-scene-tools select{padding:7px;border-radius:9px;max-width:170px;font-size:11px}
[data-hide-activity][open]>summary{display:none}
[data-hide-activity][open] #yatra-stage{width:min(100%,840px);margin:auto}
.hide-world .yatra-canvas-wrap{height:min(57dvh,560px);background:#20263b}
.hide-world .yatra-control-bar{padding:10px 16px}
.hide-round-info{padding:10px 16px;min-height:40px}
@media(max-width:760px){.game-open :is(.sudoku-stage,.fighter-stage,.word-stage,.arcade-stage){padding:10px;border:0;margin:0 auto}.hide-scene-tools{gap:8px;padding:8px}.hide-scene-tools [data-hide-speed]{font-size:10px;text-align:right}}
