/* Never enter fullscreen on launch, load, or orientation change. */
html[data-r58-playing]{overflow:hidden!important}html[data-r58-playing] #r51-masthead,html[data-r58-playing] footer.site-footer{visibility:hidden!important}
html body :is(#ng-stage,#r27-native-host,#r58-table-stage)[data-r58-full]{position:fixed!important;inset:0!important;box-sizing:border-box!important;width:100%!important;height:100vh!important;height:100dvh!important;margin:0!important;border:0!important;border-radius:0!important;max-height:none!important;max-width:none!important;z-index:2147483647!important;overflow:auto!important;overscroll-behavior:contain;padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left)!important;background:#101e29!important;color:#f7f9fb}
#ng-stage[data-r58-full],#r27-native-host[data-r58-full],#r27-native-host[data-r58-full] .r27n{display:flex!important;flex-direction:column;align-items:stretch}#r27-native-host[data-r58-full] .r27n{flex:1 1 0;min-height:0;width:100%;max-width:none;margin:0;border:0;border-radius:0}#ng-stage[data-r58-full] .ng-playfield,#r27-native-host[data-r58-full] .r27n-screen{flex:1 1 0;position:relative;display:grid!important;place-items:center;min-height:60px!important;min-width:0;container-type:size;overflow:auto;background:#080e16}#ng-stage[data-r58-full] #ng-canvas:not([hidden]),#r27-native-host[data-r58-full] canvas{width:min(100cqw,160cqh)!important;height:auto!important;aspect-ratio:8/5!important;min-height:0!important;max-width:100%!important;max-height:none!important;margin:auto;object-fit:contain}#r27-native-host[data-r58-full] canvas{width:min(100cqw,166.6667cqh)!important;aspect-ratio:5/3!important}#ng-stage[data-r58-full] #ng-board:not([hidden]){align-self:start;width:min(100%,max(260px,91cqh));margin:auto}#ng-stage[data-r58-full] :is(.ng-toolbar,.ng-hud,.ng-controls,.ng-custom-actions){flex:none;min-height:0;padding:4px 10px;gap:6px 12px}#ng-stage[data-r58-full] .ng-toolbar strong{width:auto}#ng-stage[data-r58-full] .ng-choices{max-height:28vh;overflow:auto}#r27-native-host[data-r58-full] .r27n-bar,#r27-native-host[data-r58-full] .r27n-panel,#r27-native-host[data-r58-full] .r27n-pad{padding:4px 10px}#r27-native-host[data-r58-full] .r27n-panel p:not([role=status]){display:none}#r27-native-host .r58-toggle{display:none}#r27-native-host[data-r58-full] .r58-toggle{display:block;align-self:flex-end;margin:2px 8px}
#r58-table-stage[data-r58-full]{align-items:start;align-content:center;justify-content:center;grid-template-columns:minmax(0,1.6fr) minmax(180px,1fr);gap:8px}#r58-table-stage[data-r58-full] .stage,#r58-table-stage[data-r58-full] aside{color:#162c24;max-height:100dvh;overflow:auto}#r58-table-stage[data-r58-full] #board{max-width:min(100%,max(230px,calc(100dvh - 150px)))}@media(max-width:600px) and (orientation:portrait){#r58-table-stage[data-r58-full]{display:block}#r58-table-stage[data-r58-full] aside{max-height:none}}@media(max-height:500px){#ng-stage[data-r58-full] .ng-dpad{display:flex;gap:4px}#ng-stage[data-r58-full] .ng-dpad button{min-width:40px}#ng-stage[data-r58-full] .ng-action-pad{height:42px}#r27-native-host[data-r58-full] :is(.r27n-status,.r27n-bar small){display:none}#r27-native-host[data-r58-full] .r27n-hud div{padding:2px 6px}}
/* Paired colors, excluding board buttons whose colors convey game state. */
html body :is(#ng-start,#ng-restart,#ng-save-score,#ng-expand,#ng-pause,#ng-sound,#ng-resume,#r27-native-full,.r58-toggle,.ng-page .ng-btn,.r27n-actions button,#r57-direct button,#r57-panel button,.r28-games-action,[data-ext27-start],[data-ext27-full],[data-ext27-close],[data-ext27-cinema],.r40 .action,.playlink){background:#184d40!important;background-image:none!important;color:#fff!important;-webkit-text-fill-color:#fff!important;border:1px solid #96baaa!important;font-weight:700;min-height:40px}
html body :is(#ng-start,#ng-restart,#ng-save-score,#ng-expand,#ng-pause,#ng-sound,#ng-resume,#r27-native-full,.r58-toggle,.ng-page .ng-btn,.r27n-actions button,#r57-direct button,#r57-panel button,.r28-games-action,[data-ext27-start],[data-ext27-full],[data-ext27-close],[data-ext27-cinema],.r40 .action,.playlink):is(:hover,:focus-visible){background:#0c332c!important;color:#fff!important}html body main :is(a,button,select):focus-visible{outline:3px solid #ebaf3d!important;outline-offset:-3px}html body #ng-stage .ng-toolbar{background:#172c3c!important;color:#fff!important}html body #ng-stage .ng-toolbar :is(strong,output){color:#fff!important}html body #r57-controls,html body #r57-status{background:#20372d!important;color:#fff!important}html body #r57-title{color:#fff!important}.r33-skip:not(:focus){position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip-path:inset(50%)!important}
