/* مشغّل الألعاب: نافذة تملأ الشاشة بالكامل وتناسب الحاسوب والهاتف والسبورة التفاعلية */
html body #gamePlayModal:not(.hidden){position:fixed!important;inset:0!important;width:100%!important;height:100vh!important;height:100dvh!important;max-width:none!important;max-height:none!important;padding:0!important;margin:0!important;display:flex!important;align-items:stretch!important;justify-content:stretch!important;overflow:hidden!important;z-index:4500!important}
html body #gamePlayModal>.modal-overlay{position:absolute!important;inset:0!important}
html body #gamePlayModal .game-play-content{position:relative!important;display:flex!important;flex-direction:column!important;flex:1 1 auto!important;width:100%!important;min-width:0!important;max-width:none!important;height:100%!important;min-height:0!important;max-height:none!important;margin:0!important;box-sizing:border-box!important;border-radius:0!important;border:0!important;overflow:hidden!important;padding:max(6px,env(safe-area-inset-top)) max(10px,env(safe-area-inset-right)) max(10px,env(safe-area-inset-bottom)) max(10px,env(safe-area-inset-left))!important}
html body #gamePlayModal #gamePlayTitle{flex:0 0 auto!important;margin:0 56px 6px!important;padding:0!important;font-size:clamp(.95rem,1.5vw,1.35rem)!important;line-height:1.7!important;padding-block:2px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html body #gamePlayModal .modal-close{position:absolute!important;top:max(6px,env(safe-area-inset-top))!important;right:max(8px,env(safe-area-inset-right))!important;left:auto!important;inset-inline-end:auto!important;float:none!important;margin:0!important;width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;z-index:40!important}
html body #gamePlayModal #gamePlayBody{flex:1 1 auto!important;display:flex!important;flex-direction:column!important;min-width:0!important;min-height:0!important;max-width:100%!important;overflow:hidden!important}
html body #gamePlayModal #gamePlayBody>div:first-child{flex:0 0 auto!important;display:flex!important;align-items:center!important;justify-content:space-between!important;flex-wrap:nowrap!important;gap:8px!important;min-height:0!important;margin:0 0 6px!important}
html body #gamePlayModal #gamePlayBody>div:first-child button{min-height:38px!important;padding:6px 14px!important;white-space:nowrap}
html body #gamePlayModal #gamePlayBody>iframe{flex:1 1 auto!important;display:block!important;width:100%!important;height:auto!important;min-height:0!important;max-height:none!important;border-radius:10px!important}
html:has(#gamePlayModal:not(.hidden)),body:has(#gamePlayModal:not(.hidden)){overflow:hidden!important}
@media(max-height:520px){html body #gamePlayModal #gamePlayTitle{display:none!important}html body #gamePlayModal .game-play-content{padding-top:max(4px,env(safe-area-inset-top))!important}html body #gamePlayModal #gamePlayBody>div:first-child{margin-right:52px!important}}
@media(max-width:600px){html body #gamePlayModal .game-play-content{padding-inline:6px!important}html body #gamePlayModal #gamePlayBody>iframe{border-radius:8px!important}}
@media(min-width:1500px) and (pointer:coarse){html body #gamePlayModal #gamePlayBody>div:first-child button{min-height:52px!important;font-size:1.1rem!important}html body #gamePlayModal .modal-close{width:56px!important;height:56px!important}}
html body #gamePlayModal #gamePlayBody{position:relative!important;left:0!important;right:0!important;inset-inline:0!important;margin:0!important;transform:none!important;width:100%!important;align-self:stretch!important}
html body #gamePlayModal.game-immersive .game-play-content{padding:0!important}
html body #gamePlayModal.game-immersive #gamePlayBody>div:first-child{padding:4px 60px 4px 10px!important}
body:has(#gamePlayModal:not(.hidden)) #pb-bottom-tabs{display:none!important}
html body #gamePlayModal:not(.hidden)~*{z-index:auto}
html body #gamePlayModal.game-immersive>.modal-content,html body #gamePlayModal.game-immersive .game-play-content,html body #gamePlayModal .game-play-content{overflow:hidden!important;overflow-y:hidden!important;scrollbar-width:none!important}
html body #gamePlayModal .game-play-content::-webkit-scrollbar{display:none!important}
html body #gamePlayModal:not(.game-immersive) .game-immersive-menu{display:none!important}
