/* ZUMİ 8.4.1 | fullscreen controls and safe-area support */
.zui-fullscreen-entry { display:inline-flex; align-items:center; justify-content:center; gap:5px; flex-shrink:0; height:40px; min-width:42px; padding:0 9px; border:2px solid #fff5c4; border-radius:14px; background:linear-gradient(145deg,#3ec7db,#257cce); color:#fff; font:900 11px/1 system-ui,sans-serif; white-space:nowrap; box-shadow:0 3px 0 #1d6393; touch-action:manipulation; }
.zui-fullscreen-entry:active { transform:translateY(2px);box-shadow:none; }
.zui-fullscreen-entry span { pointer-events:none; }
.zui-game-fullscreen { display:inline-flex; align-items:center; justify-content:center; flex:0 0 auto; cursor:pointer; pointer-events:auto; }
@media(max-width:1000px), (max-height:450px){
 .zui-fullscreen-entry{padding:0 6px;font-size:15px;width:40px;height:38px;}
 .zui-fullscreen-entry span{display:none;}
}
@media(orientation:portrait) and (pointer:coarse), (orientation:portrait) and (max-width:600px){
 .zui-fullscreen-entry{width:40px;height:38px;}
 body.game-playing .zui-game-fullscreen{width:40px;height:40px;}
}
@media(orientation:landscape) and (max-height:390px){
 body.game-playing .zui-game-fullscreen { width:36px; height:36px; font-size:18px; }
 body.game-playing .game-top-right { gap:4px; }
}
/* Install instructions are a child-safe, dismissible overlay with no external links. */
.zui-install-overlay { position:fixed;inset:0;z-index:9999;display:flex;align-items:center;justify-content:center;padding:14px;background:#082141ee;backdrop-filter:blur(9px); }
.zui-install-card { width:min(510px,92vw);max-height:90%;overflow:auto;background:linear-gradient(135deg,#ecfbff,#fff9e1);border:4px solid #ffe29d;border-radius:22px;box-shadow:0 20px 50px #08192e9c;color:#174469;text-align:center;padding:20px; }
.zui-install-icon { font-size:32px; }
.zui-install-card h2 { font:bold clamp(17px,3vw,25px)/1.2 system-ui,sans-serif;margin:5px 0 11px; }
.zui-install-card p { font:600 clamp(12px,2vw,16px)/1.5 system-ui,sans-serif;margin:8px 0; }
.zui-install-card button { margin-top:10px;background:#ffd27c;border:2px solid #edaa3e;padding:12px 28px;border-radius:14px;color:#21466d;font-weight:900;min-height:44px; }
/* CSS-rotated portrait app has its own drawing surface: keep the overlay inside it. */
@media(orientation:portrait) and (pointer:coarse), (orientation:portrait) and (max-width:600px){
 body .zui-install-overlay { position:fixed; inset:auto; top:0;left:var(--z81-vw,100vw); width:var(--z81-vh,100dvh);height:var(--z81-vw,100vw);transform-origin:top left;transform:rotate(90deg); }
 .zui-install-card {max-height:93%;width:min(510px,80%);padding:11px;}
 .zui-install-card p {font-size:11px;line-height:1.25;}
}

@media (display-mode: fullscreen), (display-mode: standalone) {
 .zui-fullscreen-entry, body.game-playing .zui-game-fullscreen {display:none!important;}
}
