/* Everything is scoped; no unrelated pages change. */
html.ha-arcade-lobby{overflow:auto!important;height:auto!important}html.ha-arcade-lobby body[data-ha-arcade]{display:block!important;height:auto!important;min-height:100dvh;overflow:auto!important;padding:0!important;background:linear-gradient(145deg,#e6fbff,#c8f2ff 55%,#e9edff)!important;color:#164563!important}html.ha-arcade-lobby body[data-ha-arcade]>:not(#haArcadeLobby):not(#haArcadeDialog):not(#haArcadeNotice):not(#haLanguageOverlay):not(script):not(style):not(link){display:none!important}body[data-ha-arcade] [hidden]{display:none!important}#haArcadeLobby,#haArcadeDialog,#haArcadeToolbar{font:15px/1.6 Tahoma,Arial,sans-serif!important;direction:rtl;box-sizing:border-box;color:#173e5a!important}#haArcadeLobby{max-width:590px;margin:0 auto!important;padding:18px 18px 30px!important;background:transparent!important;border:0!important;box-shadow:none!important}#haArcadeLobby header{display:flex;align-items:center;justify-content:space-between;direction:ltr;margin-bottom:18px}#haArcadeLobby header a,#haArcadeLobby header button{width:42px;height:42px;border-radius:15px;background:white!important;color:#1762a1!important;border:1px solid #c2e9fa;display:grid;place-items:center;text-decoration:none;font-size:24px}#haArcadeLobby header strong{font-size:20px;color:#134f87}#haArcadeLobby h1{font-size:clamp(29px,8vw,43px)!important;color:#125aa2!important;text-align:center;margin:8px 0!important;text-shadow:none!important}#haArcadeLobby>p{text-align:center;color:#4a7088!important;font-size:13px}#haArcadeLobby>img{display:block!important;width:100%!important;height:auto!important;aspect-ratio:600/280;object-fit:cover;border-radius:25px;margin:23px 0!important;box-shadow:0 12px 25px #176da82a}.ha-arcade-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px!important}#haArcadeLobby button{font:700 16px/1.5 Tahoma,sans-serif!important;cursor:pointer;letter-spacing:0!important}#haArcadeLobby .ha-arcade-grid button{border:0!important;min-height:96px;padding:15px 8px!important;border-radius:20px!important;color:#fff!important;background:linear-gradient(135deg,#29bcff,#0872e7)!important;box-shadow:0 5px 0 #0455b4!important}#haArcadeLobby .ha-arcade-ranking{background:linear-gradient(135deg,#ffd858,#ffa21e)!important;color:#653c0b!important;box-shadow:0 5px #d17b0b!important}#haArcadeLobby .ha-arcade-settings{background:linear-gradient(135deg,#51dbb5,#079f7a)!important;box-shadow:0 5px #087f68!important}#haArcadeLobby .ha-arcade-help{background:linear-gradient(135deg,#bd8dff,#7d55e0)!important;box-shadow:0 5px #6040ae!important}#haArcadeLobby .ha-arcade-note{font-size:11px!important;margin-top:26px!important}#haArcadeLobby .ha-arcade-resume{display:block;width:100%;padding:12px;margin-bottom:18px;border-radius:16px;color:#145478;background:white;border:1px solid #98d3e9}#haArcadeDialog{width:min(92vw,540px)!important;max-height:86dvh!important;padding:20px!important;border:1px solid #b5dce9!important;border-radius:24px!important;background:#f3fcff!important;z-index:2147483646}#haArcadeDialog::backdrop{background:#123c5c99}#haArcadeDialog h2{font-size:22px!important;color:#144e79!important}.ha-arcade-dialog-body{clear:both;overflow-wrap:anywhere}.ha-arcade-close{border:0;border-radius:12px;padding:8px 18px;float:left;background:#d7eefe;color:#174f76;font:inherit}#haArcadeDialog .ha-game-polish{display:block!important;margin:0!important;padding:8px!important;box-shadow:none!important;border:0!important;background:transparent!important}#haArcadeDialog .hgp-row{display:flex!important;flex-wrap:wrap;gap:9px}#haArcadeDialog button,#haArcadeDialog select{font:inherit;color:#173e5a;background:white;border:1px solid #a7cddf;border-radius:12px;padding:10px}#haArcadeDialog label{display:block;flex:1 1 160px;color:#173e5a}#haArcadeDialog select{display:block;width:100%}#haArcadeDialog .hgp-note{color:#406e83;line-height:1.9}#haArcadeDialog .hgp-row:first-child a,#haArcadeDialog [data-pause]{display:none!important}.ha-arcade-rank{display:flex;justify-content:space-between;gap:12px;padding:13px 0;border-bottom:1px solid #cfe6ef}.ha-arcade-rank b{overflow-wrap:anywhere}.ha-arcade-rank span{white-space:nowrap;color:#087b5d}#haArcadeToolbar{display:flex;gap:8px;justify-content:center;position:sticky;top:0;padding:8px;background:#eafaffeb;z-index:999999;margin:0 auto;max-width:600px;border-radius:0 0 18px 18px}#haArcadeToolbar button{font:700 13px Tahoma;border:1px solid #99cde7;background:white;color:#155a8a;padding:10px 14px;border-radius:12px;cursor:pointer}#haArcadeNotice{position:fixed;z-index:2147483647;bottom:15px;left:50%;transform:translateX(-50%);max-width:90vw;width:max-content;font:14px Tahoma;background:#123c5c;color:#fff;padding:14px 20px;border-radius:14px}html.ha-arcade-ad body{pointer-events:none!important}html.ha-arcade-ad:after{content:'جارٍ عرض الإعلان…';position:fixed;inset:0;display:grid;place-items:center;background:#103958dd;color:white;z-index:2147483647;font:20px Tahoma}
body[data-ha-arcade]>.ha-game-polish{display:none!important}body[data-ha-arcade="bird-game"] .side,body[data-ha-arcade="snake"] .snake-settings{display:none!important}body[data-ha-arcade="bird-game"] .game-grid{display:block!important;max-width:520px;margin:auto}body[data-ha-arcade="bird-game"] .stage{width:100%!important}body[data-ha-arcade="bird-game"] .top,body[data-ha-arcade="snake"] .top{display:none!important}body[data-ha-arcade="snake"]{padding-top:60px!important}body[data-ha-arcade="snake"] #haArcadeToolbar,body[data-ha-arcade="bird-game"] #haArcadeToolbar,body[data-ha-arcade="war-game"] #haArcadeToolbar{position:fixed;top:0;left:50%;transform:translateX(-50%);width:min(100%,600px)}body[data-ha-arcade="bird-game"],body[data-ha-arcade="war-game"]{padding-top:65px!important}body[data-ha-arcade="war-game"] .top{display:none!important}body[data-ha-arcade="war-game"] .select{background:#e9f9ff!important;color:#164763!important}body[data-ha-arcade="war-game"] .select h2,body[data-ha-arcade="war-game"] .select p{color:#164763!important}body[data-ha-arcade="war-game"] .tankChoice{background:#d7eeff!important;color:#173c69!important;border-color:#72acd7!important}body[data-ha-arcade="war-game"] .tankChoice.active{outline:3px solid #ffbf40}body[data-ha-arcade="penalties"] #haArcadeToolbar{position:fixed;top:0;left:0;width:auto;max-width:100%;background:#173b5ce6;gap:4px}body[data-ha-arcade="penalties"] #haArcadeToolbar button{padding:7px 9px;font-size:11px}body[data-ha-arcade="penalties"] .hud .score{top:62px!important}body[data-ha-arcade="penalties"] #menuScreen{padding-top:65px!important;background:linear-gradient(145deg,#e4fbff,#cbeaff)!important;color:#173e5a!important}body[data-ha-arcade="penalties"] .menuCard{background:#f4fcff!important;border-color:white!important;border-radius:25px!important;color:#173e5a!important}body[data-ha-arcade="penalties"] .menuCard h1,body[data-ha-arcade="penalties"] .menuCard label{color:#174973!important}body[data-ha-arcade="penalties"] .modeBtn{background:#daf1ff!important;color:#154478!important;border-color:#9ed2ed!important}body[data-ha-arcade="penalties"] .modeBtn.active{background:#107de5!important;color:white!important}body[data-ha-arcade="penalties"] .menuAction.primary{background:linear-gradient(#24baff,#0867d6)!important;color:white!important}body[data-ha-arcade="penalties"] #miniHud{top:120px!important}.ha-arcade-back{padding:10px 18px;border:0;border-radius:13px;background:#ccecff;color:#174d7a;font:inherit}
