/* Games Randomes: focused fullscreen play + readable desktop quick start, 2026-11-07 */
:is(#ks-game,#sa-game,#sr-game) .rg-how-strip{
 display:flex;align-items:center;gap:9px;margin:0 0 11px;padding:10px 13px;
 border:1px solid #82b4bd;border-left:5px solid #ffe19c;border-radius:11px;
 background:linear-gradient(110deg,#29476a,#192f50);color:#eaf8ff;
 font:800 13px/1.5 system-ui,-apple-system,"Segoe UI",sans-serif;
}
:is(#ks-game,#sa-game,#sr-game) .rg-how-strip strong{color:#ffeab2}
:is(#ks-game,#sa-game,#sr-game) .rg-fs-toolbar,
:is(#ks-game,#sa-game,#sr-game) .rg-fs-drawer,
:is(#ks-game,#sa-game,#sr-game) .rg-fs-shade,
:is(#ks-game,#sa-game,#sr-game) .rg-fs-hint,
:is(#ks-game,#sa-game,#sr-game) .rg-fs-quick{display:none}
:is(#ks-game,#sa-game,#sr-game):fullscreen{
 box-sizing:border-box!important;position:relative!important;
 width:100vw!important;height:100dvh!important;
 max-width:none!important;max-height:none!important;
 margin:0!important;border:0!important;border-radius:0!important;
 padding:7px!important;display:flex!important;flex-direction:column!important;
 gap:4px!important;overflow:hidden!important;
}
:is(#ks-game,#sa-game,#sr-game):fullscreen .rg-how-strip{display:none!important}
:is(#ks-game,#sa-game,#sr-game):fullscreen .rg-fs-toolbar{
 display:flex!important;position:absolute;right:8px;top:6px;z-index:110;
 align-items:center;gap:5px;
}
:is(#ks-game,#sa-game,#sr-game) .rg-fs-tool{
 min-height:39px;min-width:41px;padding:7px 11px;
 border:1px solid #b1d7e4;border-bottom:3px solid #225879;border-radius:10px;
 background:#294f71;color:#fff!important;box-shadow:0 3px 10px #0008;
 font:900 14px/1.1 system-ui;cursor:pointer;touch-action:manipulation;
}
:is(#ks-game,#sa-game,#sr-game) .rg-fs-tool:focus-visible,
:is(#ks-game,#sa-game,#sr-game) .rg-fs-quick button:focus-visible{
 outline:3px solid #fff0ad;outline-offset:2px;
}
:is(#ks-game,#sa-game,#sr-game):fullscreen .rg-fs-shade{
 display:block;position:absolute;inset:0;z-index:118;
 background:#061426a6;
}
:is(#ks-game,#sa-game,#sr-game):fullscreen .rg-fs-shade[hidden]{display:none!important}
:is(#ks-game,#sa-game,#sr-game):fullscreen .rg-fs-drawer{
 display:block;position:absolute;right:8px;top:54px;bottom:8px;z-index:119;
 width:min(370px,calc(100vw - 16px));max-width:calc(100vw - 16px);
 padding:15px;overflow:auto;overscroll-behavior:contain;
 background:linear-gradient(155deg,#34587a,#172a48 80%);
 border:2px solid #98cedf;border-radius:17px;
 box-shadow:0 8px 40px #000b;color:#eaf7ff;
}
:is(#ks-game,#sa-game,#sr-game):fullscreen .rg-fs-drawer[hidden]{display:none!important}
:is(#ks-game,#sa-game,#sr-game) .rg-fs-drawer h3{
 margin:0 0 8px!important;color:#fff1b6!important;font:950 20px/1.25 system-ui!important;
}
:is(#ks-game,#sa-game,#sr-game) .rg-fs-drawer .rg-fs-instructions{
 margin:0 0 13px;padding:0;color:#e2f3ff;font:650 14px/1.55 system-ui;
}
:is(#ks-game,#sa-game,#sr-game) .rg-fs-drawer .rg-fs-menu-close{
 width:100%;margin-bottom:11px;
}
:is(#ks-game,#sa-game,#sr-game):fullscreen .rg-fs-hint{
 display:block;position:absolute;left:50%;bottom:18px;z-index:100;
 transform:translateX(-50%);max-width:min(680px,calc(100% - 30px));
 padding:10px 15px;border:1px solid #c4f2ff;border-radius:12px;
 background:#0c2841e8;color:#f0fcff;text-align:center;
 font:850 14px/1.45 system-ui;box-shadow:0 5px 20px #0009;
 opacity:0;pointer-events:none;transition:opacity .25s;
}
:is(#ks-game,#sa-game,#sr-game):fullscreen .rg-fs-hint.is-visible{opacity:1}
#ks-game:fullscreen .ks-top{flex:0 0 auto;margin:0!important;min-height:35px;padding-right:96px;gap:3px}
#ks-game:fullscreen .ks-brand{display:none!important}
#ks-game:fullscreen .ks-chips{width:100%;justify-content:flex-start;gap:4px}
#ks-game:fullscreen .ks-chip{padding:3px 7px;font-size:10px;line-height:1.15}
#ks-game:fullscreen .ks-chip b{font-size:13px}
#ks-game:fullscreen .ks-layout{display:flex!important;flex:1 1 0!important;min-height:0!important;gap:0!important;justify-content:center;align-items:stretch;width:100%}
#ks-game:fullscreen .ks-board-col{display:flex!important;flex-direction:column;align-items:center;flex:1;min-height:0;min-width:0;width:100%;height:100%}
#ks-game:fullscreen .ks-shell{
 flex:0 0 auto!important;width:var(--rg-fs-w,auto)!important;height:var(--rg-fs-h,auto)!important;
 max-width:100%!important;max-height:100%!important;margin:0 auto!important;
 aspect-ratio:720/710;border-width:2px;border-bottom-width:4px;
}
#ks-game:fullscreen #ks-canvas{display:block;width:100%!important;height:100%!important;max-width:none!important;aspect-ratio:720/710}
#ks-game:fullscreen .ks-danger-wrap,#ks-game:fullscreen .ks-progress,#ks-game:fullscreen .ks-bottom{
 flex:0 0 auto;width:var(--rg-fs-w,100%);max-width:100%!important;margin-left:auto!important;margin-right:auto!important;
}
#ks-game:fullscreen .ks-danger-wrap{margin-top:5px}
#ks-game:fullscreen .ks-progress{margin-top:4px}
#ks-game:fullscreen .ks-bottom{margin-top:4px;font-size:12px;gap:5px}
#ks-game:fullscreen .ks-side{display:flex!important;position:static!important;flex-direction:column;gap:8px;width:100%!important;max-height:none!important;overflow:visible!important}
#ks-game:fullscreen .ks-side>.ks-panel,#ks-game:fullscreen .ks-side>.ks-tip{
 display:block!important;order:initial!important;margin:0!important;
}
#ks-game:fullscreen .ks-panel{padding:10px!important}
#ks-game:fullscreen .ks-control-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
#ks-game:fullscreen .ks-btn{font-size:12px;min-height:40px}
#sa-game:fullscreen .sa-bar{flex:0 0 auto;margin:0!important;min-height:34px;padding-right:96px;gap:3px}
#sa-game:fullscreen .sa-brand{display:none!important}
#sa-game:fullscreen .sa-stats{width:100%;justify-content:flex-start;gap:4px}
#sa-game:fullscreen .sa-pill{padding:3px 7px;font-size:10px;line-height:1.1}
#sa-game:fullscreen .sa-pill b{font-size:13px}
#sa-game:fullscreen .sa-layout{display:flex!important;flex:1 1 0!important;min-height:0!important;gap:0!important;width:100%;justify-content:center;align-items:center}
#sa-game:fullscreen .sa-play-area{display:flex!important;flex:1;flex-direction:column;align-items:center;justify-content:center;width:100%;height:100%;min-width:0;min-height:0}
#sa-game:fullscreen .sa-canvas-shell{
 flex:0 0 auto!important;width:var(--rg-fs-w,auto)!important;height:var(--rg-fs-h,auto)!important;
 max-width:100%!important;max-height:100%!important;margin:0 auto!important;
 aspect-ratio:960/540;border-width:2px;border-bottom-width:4px;
}
#sa-game:fullscreen #sa-canvas{width:100%!important;height:100%!important;max-width:none!important;aspect-ratio:960/540}
#sa-game:fullscreen .sa-status,#sa-game:fullscreen .sa-portrait{display:none!important}
#sa-game:fullscreen .sa-sidebar{display:flex!important;position:static!important;flex-direction:column;gap:8px;width:100%!important;max-height:none!important;overflow:visible!important}
#sa-game:fullscreen .sa-sidebar>.sa-panel,#sa-game:fullscreen .sa-sidebar>.sa-side-tip{
 display:block!important;order:initial!important;margin:0!important;
}
#sa-game:fullscreen .sa-panel{padding:10px!important}
#sa-game:fullscreen .sa-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
#sa-game:fullscreen .sa-btn{font-size:12px;min-height:40px}
#sr-game:fullscreen .sr-title{display:none!important}
#sr-game:fullscreen .sr-stats{
 flex:0 0 auto;display:grid!important;grid-template-columns:repeat(7,minmax(0,1fr))!important;
 gap:4px;margin:0 104px 0 0!important;min-height:37px;
}
#sr-game:fullscreen .sr-stat{padding:3px 4px}
#sr-game:fullscreen .sr-stat span{font-size:10px}
#sr-game:fullscreen .sr-stat b{font-size:12px;padding:1px 0 0}
#sr-game:fullscreen .sr-arena{flex:1 1 0!important;min-height:0!important;height:0!important;max-height:none!important;width:100%}
#sr-game:fullscreen .sr-status,#sr-game:fullscreen .sr-tip{display:none!important}
#sr-game:fullscreen .sr-controls{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;align-content:start;gap:7px;width:100%;max-height:none!important;overflow:visible!important;margin:0!important}
#sr-game:fullscreen .sr-controls .sr-btn{grid-column:span 1!important;min-height:40px!important;padding:6px!important;font-size:12px!important}
#sr-game:fullscreen .sr-controls .sr-btn.main,#sr-game:fullscreen .sr-controls .sr-btn.bomb{grid-column:1/-1!important}
#sr-game:fullscreen .sr-levels{grid-column:1/-1!important}
#sr-game:fullscreen .rg-fs-quick{
 display:flex!important;position:absolute;right:12px;bottom:12px;z-index:103;gap:7px;align-items:center;
}
#sr-game:fullscreen .rg-fs-quick button{
 background:#164a68e8;color:#fff!important;
 border:2px solid #9cdbf1;border-bottom:4px solid #236480;border-radius:12px;
 padding:8px 12px;min-height:44px;font:900 13px/1.15 system-ui;
 cursor:pointer;box-shadow:0 4px 15px #0008;
}
#sr-game:fullscreen .rg-fs-quick button.rg-fs-bomb{background:#8d476bdf;border-color:#f4b8de}
#sr-game:fullscreen .rg-fs-quick button:disabled{opacity:.52;cursor:default}
@media(max-width:720px){
 #ks-game:fullscreen .ks-top,#sa-game:fullscreen .sa-bar{padding-right:94px}
 #ks-game:fullscreen .ks-chip,#sa-game:fullscreen .sa-pill{font-size:9px;padding:2px 5px}
 #ks-game:fullscreen .ks-chip b,#sa-game:fullscreen .sa-pill b{font-size:12px}
 #sr-game:fullscreen .sr-stats{grid-template-columns:repeat(4,minmax(0,1fr))!important;margin-right:96px!important;gap:3px;min-height:0}
 #sr-game:fullscreen .sr-stat:nth-child(3),#sr-game:fullscreen .sr-stat:nth-child(4),#sr-game:fullscreen .sr-stat:nth-child(7){display:none!important}
 #sr-game:fullscreen .sr-stat{padding:3px 2px}
 #sr-game:fullscreen .sr-stat span{font-size:9px}
 #sr-game:fullscreen .sr-stat b{font-size:11px}
}
@media(orientation:landscape) and (max-height:600px){
 :is(#ks-game,#sa-game,#sr-game):fullscreen{padding:4px!important;gap:2px!important}
 :is(#ks-game,#sa-game,#sr-game):fullscreen .rg-fs-toolbar{top:3px;right:5px}
 :is(#ks-game,#sa-game,#sr-game):fullscreen .rg-fs-tool{min-height:32px;min-width:36px;padding:4px 8px}
 :is(#ks-game,#sa-game,#sr-game):fullscreen .rg-fs-drawer{top:39px;bottom:4px}
 :is(#ks-game,#sa-game,#sr-game):fullscreen .rg-fs-hint{bottom:6px;font-size:12px;padding:6px 9px}
 #ks-game:fullscreen .ks-top,#sa-game:fullscreen .sa-bar{min-height:31px}
 #sr-game:fullscreen .sr-stats{min-height:31px}
 #sr-game:fullscreen .rg-fs-quick{bottom:5px;right:5px}
 #sr-game:fullscreen .rg-fs-quick button{min-height:36px;padding:5px 8px;font-size:11px}
}
