/* FIX-02: preserve gameplay; remove repeated labels and free the visible area. */
#fun.safeR27ActivityMode #activityArea .kidActivityTop{display:none!important}
#fun.safeR27ActivityMode #activityArea>.activitypanel>.head>div>small{display:none!important}
#fun.safeR27ActivityMode #activityArea>.activitypanel>.head{padding:2px 5px!important;min-height:0!important}
#fun.safeR27ActivityMode #activityArea>.activitypanel>.note{display:none!important}
#fun.safeR27ActivityMode #activityArea>.activitypanel .bigcenter{max-width:100%!important;overflow-wrap:anywhere!important;white-space:normal!important;direction:ltr!important;font-size:clamp(23px,6.4vw,45px)!important;line-height:1.15!important}
#fun.safeR27ActivityMode #activityArea>.activitypanel .ab-mini{max-height:33dvh!important;overflow:auto!important}
#fun.safeR27ActivityMode #activityArea>.activitypanel .mazeControls{display:none!important}
#fun.safeR27ActivityMode #numMazeBoard{touch-action:none!important;cursor:pointer}
#fun.safeR27ActivityMode #activityArea #actFeedback:not(:empty){position:fixed!important;top:max(62px,env(safe-area-inset-top,0px) + 40px)!important;left:5vw!important;right:5vw!important;z-index:5001!important;width:90vw!important;max-width:560px!important;margin:0 auto!important;padding:10px!important;border-radius:13px!important;background:#edf9f0!important;color:#144d3b!important;box-shadow:0 4px 24px #163c3336!important;text-align:center!important;font-weight:800!important;pointer-events:none!important}
#fun.safeR27ActivityMode #activityArea:has(#saFix02NumPad){padding-bottom:calc(234px + env(safe-area-inset-bottom,0px))!important}
body:has(#fun:not(.hidden) #saFix02NumPad) #safeR10Bottom{display:none!important}
#fun.safeR27ActivityMode #saFix02NumPad{position:fixed!important;left:0;right:0;bottom:0;z-index:4900!important;height:calc(220px + env(safe-area-inset-bottom,0px))!important;display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;padding:7px 9px calc(9px + env(safe-area-inset-bottom,0px));background:#e7f3ea;border-top:1px solid #b9d4c5;box-shadow:0 -8px 22px #183d3028;direction:ltr}
#saFix02NumPad button{background:white!important;color:#173b30!important;border:1px solid #cadbd0!important;border-radius:12px!important;padding:0!important;min-height:0!important;font-weight:850!important;font-size:clamp(19px,4.3vh,26px)!important;touch-action:manipulation}
#saFix02NumPad button[data-key="✓"]{background:#0c7259!important;color:white!important}
#saFix02NumPad button[data-key="مسح"],#saFix02NumPad button[data-key="⌫"]{background:#fcece8!important}
#fun .saFix02ColorPicker{display:flex!important;align-items:center;gap:6px;border-radius:10px;border:1px solid #b3c6b9;padding:3px 8px;font-size:12px;white-space:nowrap}
#fun .saFix02ColorPicker input{width:46px;height:34px;padding:1px!important;border:0;cursor:pointer}
#fun .saFix02Eraser{background:#fff!important;color:#184636!important;border:1px solid #bdcfc3!important;border-radius:10px!important;padding:5px 12px!important}
#r56MazePage .r56Head small,#r56MazePage .r56Head p,#r56MazePage .r56Hint,#r56ArenaPage .r56Head small,#r56ArenaPage .r56Head p{display:none!important}
#r56MazePage .r56Head,#r56ArenaPage .r56Head{align-items:center!important;margin-bottom:6px!important;min-height:0!important}
#r56MazeCanvas{touch-action:none!important}
#r46DinoPage .r46GameHead small{display:none!important}
body[data-safe-r10-role="trainer"] #home .hero>.card:first-child .safeR25Eyebrow,
body[data-safe-r10-role="trainer"] #home .hero>.card:first-child .safeR25Sub{display:none!important}
@media(max-width:720px){
#r56MazePage,#r56ArenaPage{padding:6px!important}
#r56MazePage .r56MazeToolbar{gap:5px!important;margin:3px 0 6px!important}
#r56MazePage .r56MazeCanvasWrap{max-width:min(100%,calc(100dvh - 245px))!important}
#fun.safeR27ActivityMode .canvasPaint{touch-action:none!important}
}
@media(max-height:570px){#fun.safeR27ActivityMode #saFix02NumPad{height:calc(162px + env(safe-area-inset-bottom,0px))!important}#fun.safeR27ActivityMode #activityArea:has(#saFix02NumPad){padding-bottom:174px!important}}

/* Full internal keypad for repetition typing, generated from trainer's phrase. */
body:has(#fun:not(.hidden) #saFix02TypingPad) #safeR10Bottom{display:none!important}
#fun.safeR27ActivityMode #activityArea:has(#saFix02TypingPad){padding-bottom:calc(235px + env(safe-area-inset-bottom,0px))!important}
#fun.safeR27ActivityMode #saFix02TypingPad{position:fixed;left:0;right:0;bottom:0;z-index:4900;max-height:45dvh;height:calc(224px + env(safe-area-inset-bottom,0px));overflow-y:auto;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px;padding:7px 9px calc(9px + env(safe-area-inset-bottom,0px));background:#e8f3ec;border-top:1px solid #b3d6c3;box-shadow:0 -6px 20px #193f3026;direction:rtl}
#fun #saFix02TypingPad button{min-width:0;min-height:38px!important;padding:2px!important;font-size:clamp(15px,3.5vh,21px);font-weight:800;background:white;border-radius:9px;border:1px solid #c8dfd1;touch-action:manipulation}
#fun #saFix02TypingPad button:last-child{background:#ffede9}
#fun.safeR27ActivityMode #typingArea{max-height:19dvh!important;min-height:72px!important}
@media(max-height:550px){#fun.safeR27ActivityMode #saFix02TypingPad{height:140px!important;max-height:45dvh}#fun.safeR27ActivityMode #activityArea:has(#saFix02TypingPad){padding-bottom:150px!important}}

#fun.safeR27ActivityMode #activityArea .activitypanel:has(#typingArea)>.note{display:block!important;max-height:12dvh;overflow:auto;padding:5px!important;font-size:12px!important;margin:3px 0!important}
