.mobile-play-bar{display:none}@media (width<=900px){.app-shell:has(.game-page-shell){--fixed-game-viewport:1;--phone-header-height:56px;--phone-ad-space:0px;height:100dvh;min-height:0;padding-bottom:var(--phone-ad-space);flex-direction:column;display:flex;position:fixed;inset:0;overflow:hidden}.app-shell:has(.game-page-shell):has(.works-ad-preview){--phone-ad-space:96px}.app-shell:has(.game-page-shell) .site-header{height:var(--phone-header-height);min-height:var(--phone-header-height);flex-shrink:0}.app-shell:has(.game-page-shell) .site-main{overscroll-behavior:contain;flex:1;min-height:0;padding:0;overflow:auto}.app-shell:has(.game-page-shell) .game-seo-content{display:block}.app-shell:has(.game-page-shell) .game-page-shell{height:calc(100dvh - var(--phone-header-height) - var(--phone-ad-space));min-height:0;padding:0 6px;display:block}.app-shell:has(.game-page-shell) .game-primary{flex-direction:column;height:100%;min-height:0;display:flex}.mobile-play-bar{flex-shrink:0;justify-content:space-between;align-items:center;gap:8px;height:46px;display:flex}.mobile-play-bar button{min-height:44px}.mobile-play-metrics{white-space:nowrap;font-size:12px}.app-shell:has(.game-page-shell) .game-board-frame{overscroll-behavior:contain;flex:1;min-height:0;margin:0;padding:4px 0;overflow:auto}.app-shell:has(.game-page-shell) .game-primary>.game-toolbar{display:none}.app-shell:has(.game-page-shell) .mahjong-sidebar-controls{display:none}.app-shell:has(.game-page-shell) .mobile-controls-open>.game-primary>.game-toolbar{z-index:35;top:calc(var(--phone-header-height) + 52px);left:6px;right:6px;bottom:calc(var(--phone-ad-space) + 6px);background:#162c25;border:1px solid #799d8f;border-radius:8px;padding:14px;display:block;position:fixed;overflow:auto}.app-shell:has(.game-page-shell) .mobile-controls-open .mahjong-sidebar-controls{z-index:35;top:calc(var(--phone-header-height) + 52px);left:6px;right:6px;bottom:calc(var(--phone-ad-space) + 6px);background:#162c25;border:1px solid #799d8f;border-radius:8px;padding:14px;display:block;position:fixed;overflow:auto}.app-shell:has(.game-page-shell) .works-ad-preview{z-index:30;width:100%;height:var(--phone-ad-space);background:#162c25;margin:0;padding:8px;position:fixed;bottom:0;left:0}.app-shell:has(.game-page-shell) .mahjong-play-area{display:block}.app-shell:has(.game-page-shell) .mahjong-board-viewport{overflow:auto}.app-shell:has(.game-page-shell) .minesweeper-play-help{display:none}:is(.app-shell:has(.game-page-shell) .twenty-forty-eight-instructions,.app-shell:has(.game-page-shell) .four-row-instructions){clip-path:inset(50%);width:1px;height:1px;position:absolute;overflow:hidden}.app-shell:has(.game-page-shell) .twenty-forty-eight-board-wrap{width:min(100%,max(160px,calc(var(--game-frame-height) - 116px)));gap:6px}.app-shell:has(.game-page-shell) .four-row-board-wrap{--four-row-board-width:min(calc(var(--game-frame-width) - 4px),max(180px,calc((var(--game-frame-height) - 136px)*1.1667)));width:min(100%,max(308px,var(--four-row-board-width)));gap:6px}.app-shell:has(.game-page-shell) .four-row-column-controls{width:100%}.app-shell:has(.game-page-shell) .four-row-board{justify-self:center;max-width:100%}.app-shell:has(.game-page-shell) .four-row-matchup{min-height:40px}}@media (width>=768px) and (width<=900px){.app-shell:has(.game-page-shell):has(.works-ad-preview){--phone-ad-space:136px}}@media (width<=900px){.app-shell.is-focus-play:has(.game-page-shell){height:100dvh;min-height:0;position:fixed;inset:0;overflow:hidden}.app-shell.is-focus-play:has(.game-page-shell) .site-main{overflow:hidden}.app-shell.is-focus-play:has(.game-page-shell) .game-seo-content{display:none}}@media (width<=900px) and (height<=560px){.app-shell:has(.game-page-shell){height:100dvh;min-height:0;position:fixed;overflow:hidden}.app-shell.is-focus-play:has(.game-page-shell){height:100dvh;min-height:0;position:fixed;overflow:hidden}.app-shell:has(.game-page-shell) .site-main{overflow:auto}.app-shell.is-focus-play:has(.game-page-shell) .site-main{overflow:auto}.app-shell:has(.game-page-shell) .game-page-shell{height:460px}}@media (width<=900px){:is(html:has(.game-page-shell),body:has(.game-page-shell)){overscroll-behavior:none;overflow:hidden}.app-shell:has(.game-page-shell)>.works-ad-preview{position:absolute;bottom:0}.app-shell:has(.game-page-shell) .header-game-button{min-width:44px;display:inline-flex}.app-shell:has(.game-page-shell) .header-game-button span{display:inline}.app-shell:has(.game-page-shell) .header-game-button>svg{display:none}.app-shell:has(.game-page-shell) .focus-play-toggle{min-width:50px;padding-inline:6px}}@media (width<=420px){.app-shell:has(.game-page-shell) .works-brand{width:28px;display:inline-flex}.app-shell:has(.game-page-shell) .works-mark{display:inline-flex}.app-shell:has(.game-page-shell) .brand-copy{display:none}}.mobile-play-result{display:none}@media (width<=359px){.app-shell:has(.game-page-shell){--phone-header-height:108px}.app-shell:has(.game-page-shell) .header-actions{flex-basis:100%;justify-content:flex-end}:is(.app-shell:has(.game-page-shell) .header-command-button,.app-shell:has(.game-page-shell) .header-game-button){min-width:44px;min-height:44px}}@media (width<=900px){.mobile-play-result{color:#f6edd0;background:#253e2e;border:1px solid #8a794e;border-radius:6px;flex-direction:column;flex:none;gap:2px;margin:0;padding:6px 10px;font-size:13px;line-height:1.3;display:flex}.minesweeper-live-status.has-mobile-result{display:none}}.game-page-shell .game-toolbar .minesweeper-play-help{flex-basis:100%;margin-top:0;display:block}@media (width<=900px){:is(html:has(.game-page-shell),body:has(.game-page-shell)){height:100dvh;min-height:0}}.phone-portrait-prompt{display:none}@media (width<=1023px) and (height<=480px) and (orientation:landscape){.phone-portrait-prompt{z-index:9999;text-align:center;touch-action:none;background:#142e26;flex-direction:column;justify-content:center;align-items:center;gap:12px;margin:0;padding:16px;display:flex;position:fixed;inset:0}.phone-portrait-prompt h2{margin:0;font-size:20px;line-height:1.3}.phone-portrait-prompt p{margin:0;font-size:16px;line-height:1.4}}.phone-input-mode{display:none}@media (width<=900px) and (orientation:portrait){.phone-input-mode{flex:none;align-self:center;height:44px;margin-bottom:4px;display:flex}.phone-input-mode button{min-width:76px;min-height:44px}.mobile-controls-open .phone-input-mode{display:none}.phone-input-mode [aria-pressed=true]{background:var(--accent);color:var(--bg)}}.minesweeper-scroll-hint{display:none}@media (width<=900px) and (orientation:portrait){.minesweeper-scroll-hint{color:var(--muted);flex:none;margin:0 0 4px;font-size:12px;line-height:1.35;display:block}.minesweeper-play-area:has(.minesweeper-board[data-difficulty=expert]){flex-direction:column;height:100%;display:flex}.game-board-frame:has(.minesweeper-board[data-difficulty=expert]){overflow:hidden}.minesweeper-play-area:has(.minesweeper-board[data-difficulty=expert]) .minesweeper-board-viewport{flex:1;min-height:0}}
