/* One fitted mobile viewport, with the XP restore button still available. */
#desktop .window.game-immersive{position:fixed!important;inset:0!important;left:0!important;top:0!important;width:100%!important;max-width:none!important;height:100dvh!important;max-height:none!important;margin:0!important;border:0!important;border-radius:0!important;display:flex;flex-direction:column;overflow:hidden;padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);z-index:100000!important;box-sizing:border-box;background:#29112b}
#desktop .window.game-immersive[hidden]{display:none!important}.game-immersive>.titlebar{flex-shrink:0;min-height:35px!important;margin:0!important;border-radius:0!important}.game-immersive>.titlebar strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px!important}.game-immersive>.titlebar button{min-width:30px;min-height:29px;flex-shrink:0}.game-immersive-open .taskbar,.game-immersive-open .baddie-assistant,.game-immersive-open #startMenu{display:none!important}
.game-immersive.fest-window .fest-view{flex:1;min-height:0;aspect-ratio:auto!important}.game-immersive .fest-menu{flex-shrink:0;padding:4px;gap:4px}.game-immersive .fest-menu button{min-height:30px;padding:4px 7px;font-size:10px}.game-immersive .fest-menu select{max-width:125px;font-size:10px}.game-immersive .fest-menu>span{display:none}.game-immersive .fest-status{font-size:10px;padding:4px 8px;max-height:38px;overflow:hidden}.game-immersive .fest-overlay{padding:6%;overflow:auto;justify-content:center}.game-immersive .fest-overlay img{max-width:440px;width:92%;max-height:20%;object-fit:contain}.game-immersive .fest-overlay p{max-width:440px;font-size:12px;line-height:1.5}.game-immersive .fest-overlay h2{font-size:22px}.game-immersive .fest-overlay button{min-height:44px;flex-shrink:0}
.game-immersive.pinball-window .space-game{flex:1;min-height:0;display:flex;flex-direction:column}.game-immersive.pinball-window .reference-scene{flex:1;min-height:0}.game-immersive.pinball-window .reference-scene canvas{width:100%;height:100%;object-fit:contain}.game-immersive.pinball-window .ball-controls{display:none}
.game-immersive.sweeper-window .sweeper-body{flex:1;min-height:0;display:flex;flex-direction:column}.game-immersive.sweeper-window .sweeper-board-frame{flex:1;min-height:0;max-height:none}.game-immersive.sweeper-window .sweeper-dashboard,.game-immersive.sweeper-window .sweeper-bottom{flex-shrink:0}.game-immersive.spider-window .spider-scroll{flex:1;min-height:0}.game-immersive.spider-window .spider-message{padding:4px 9px;min-height:0}
@media(max-width:700px){.game-immersive.spider-window .spider-table{min-width:0;width:100%;min-height:100%;padding:14px 7px;--spider-card-height:clamp(50px,13.6vw,96px)}.game-immersive.spider-window .spider-columns{gap:3px;min-height:240px;margin-bottom:12px}.game-immersive.spider-window .spider-top{grid-template-columns:66px 1fr 78px;gap:5px;min-height:82px}.game-immersive.spider-window .spider-stock{width:62px;min-width:0;height:75px}.game-immersive.spider-window .spider-stock>.spider-card-back{width:39px;height:56px}.game-immersive.spider-window .spider-stock small{font-size:8px}.game-immersive.spider-window .spider-score-plaque{width:140px;min-height:69px;padding:12px 15px;gap:5px}.game-immersive.spider-window .spider-score-plaque b{font-size:20px}.game-immersive.spider-window .spider-score-plaque small{font-size:7px;letter-spacing:0}.game-immersive.spider-window .spider-completed{gap:2px}.game-immersive.spider-window .spider-finish{height:25px;font-size:9px}.game-immersive.spider-window .spider-menu{flex-wrap:wrap}.game-immersive.spider-window .spider-menu>span{display:none}}
@media(max-height:500px){.game-immersive .fest-status{display:none}.game-immersive .fest-menu{padding:2px 5px;flex-wrap:nowrap}.game-immersive .fest-menu button{min-height:27px}.game-immersive .fest-overlay img{max-height:54px;margin-bottom:5px}.game-immersive .fest-overlay h2{font-size:18px;margin-bottom:5px}.game-immersive .fest-overlay p{font-size:11px;margin-bottom:8px}.game-immersive .fest-overlay button{min-height:34px;padding:6px 16px}}

/* Grow the playing field along with the window, without changing the mine layout. */
.game-immersive.sweeper-window .sweeper-board{grid-template-columns:repeat(var(--sweeper-cols),var(--sweeper-cell-width));grid-template-rows:repeat(var(--sweeper-rows),var(--sweeper-cell-height));width:max-content;height:max-content}
.game-immersive.sweeper-window .sweeper-cell{width:var(--sweeper-cell-width);height:var(--sweeper-cell-height);--tile-x:calc(var(--sweeper-cell-width)/62);--tile-y:calc(var(--sweeper-cell-height)/62);background-size:calc(1093 * var(--tile-x)) calc(1438 * var(--tile-y));background-position:calc(-54 * var(--tile-x)) calc(-400 * var(--tile-y))}
.game-immersive.sweeper-window .sweeper-bomb{width:var(--sweeper-cell);height:var(--sweeper-cell)}
.game-immersive.sweeper-window .sweeper-menu{flex-shrink:0}
@media(max-height:500px){.game-immersive.sweeper-window>.titlebar{height:35px}.game-immersive.sweeper-window .sweeper-menu{min-height:30px;padding:2px 8px}.game-immersive.sweeper-window .sweeper-menu>button{font-size:17px}.game-immersive.sweeper-window .sweeper-dashboard{height:52px;min-height:52px;margin-bottom:5px}.game-immersive.sweeper-window .sweeper-body{padding:5px 12px}.game-immersive.sweeper-window .sweeper-board-frame{border-width:4px}}

.game-immersive.sweeper-window .sweeper-cell.revealed{background-image:none;background-color:#fbd5e7;border:1px solid #c39aac}
.game-immersive.sweeper-window .sweeper-cell[data-number="1"]{color:#0000ee}.game-immersive.sweeper-window .sweeper-cell[data-number="2"]{color:#008000}.game-immersive.sweeper-window .sweeper-cell[data-number="3"]{color:#ee0000}.game-immersive.sweeper-window .sweeper-cell.exploded{background-color:#ff008e}
@media(max-height:500px){.game-immersive.sweeper-window>.titlebar{background:linear-gradient(#ff7bc3,#ff0085 45%,#ca0065);border-bottom:2px solid #ff9bce;padding:3px 7px}.game-immersive.sweeper-window>.titlebar strong{color:white;text-shadow:1px 1px #8f1852}.game-immersive.sweeper-window>.titlebar button{width:30px;height:29px;color:white;border:2px solid #ffd8ed;border-radius:5px;background:linear-gradient(#ff99d2,#e40078);box-shadow:inset 1px 1px white;font-size:18px}.game-immersive.sweeper-window .sweeper-dashboard{background:#edb2d3;border:3px solid;border-color:#a86a91 #fff0fa #fff0fa #a86a91;padding:5px 10px}.game-immersive.sweeper-window .sweeper-led{width:60px;height:35px}.game-immersive.sweeper-window .sweeper-reset{left:calc(50% - 20px);top:3px;width:40px;height:40px;background:linear-gradient(#ffe4f3,#e48abb);border:2px solid;border-color:white #a86a91 #a86a91 white}.game-immersive.sweeper-window .sweeper-reset svg{visibility:visible}}
