/* Fix85: adjust only the five reviewed areas; avoid cross-page overrides. */
/* Heart Duel: settings are vertically scrollable until the match starts. */
#r46DuelPage.r46GamePage:not(.sa84Playing){
 position:fixed!important;inset:0!important;height:100dvh!important;
 max-height:100dvh!important;min-height:0!important;
 overflow-y:auto!important;overflow-x:hidden!important;
 overscroll-behavior-y:contain!important;-webkit-overflow-scrolling:touch!important;
 touch-action:pan-y!important;display:block!important;
}
#r46DuelPage:not(.sa84Playing)>.r46GameBody,
#r46DuelPage:not(.sa84Playing) .r46DuelBody{
 display:block!important;height:auto!important;max-height:none!important;
 min-height:0!important;overflow:visible!important;flex:none!important;
}
#r46DuelPage:not(.sa84Playing) #r46DuelSetup{
 display:block!important;height:auto!important;max-height:none!important;
 min-height:0!important;overflow:visible!important;flex:none!important;
 touch-action:pan-y!important;padding-bottom:max(75px,env(safe-area-inset-bottom))!important;
}
#r46DuelPage:not(.sa84Playing) #r46DuelStart{
 display:block!important;position:static!important;margin:14px 0 4px!important;
 min-height:48px!important;width:100%!important;touch-action:manipulation!important;
}
/* The match itself is a non-scrolling, full-viewport game. */
#r46DuelPage.sa84Playing{position:fixed!important;inset:0!important;
 height:100dvh!important;max-height:100dvh!important;overflow:hidden!important;
 display:flex!important;flex-direction:column!important;touch-action:manipulation!important}
#r46DuelPage.sa84Playing>.r46GameBody,
#r46DuelPage.sa84Playing .r46DuelBody{
 display:flex!important;flex-direction:column!important;min-height:0!important;
 flex:1 1 auto!important;overflow:hidden!important}
#r46DuelPage.sa84Playing .r46Arena.on{
 display:grid!important;flex:1 1 auto!important;min-height:0!important;
 max-height:100%!important;overflow:hidden!important}
/* Chick runner: never scale/zoom the canvas layer via CSS during movement. */
#r46DinoPage #r46DinoCanvas{
 display:block!important;transform:none!important;animation:none!important;
 width:100%!important;height:100%!important;object-fit:fill!important}
#r46DinoPage .r46DinoCanvasWrap{transform:none!important;overflow:hidden!important}
/* Puzzle: show the published IMAGE TITLE, not the uploader's account. */
#r55PuzzlePage .r55PuzzleCard .sa85PuzzleTitle,
#r55PuzzlePage .r55PuzzleBar .sa85PuzzleTitle{
 display:block!important;font-size:clamp(16px,4.4vw,20px)!important;
 line-height:1.45!important;font-weight:900!important;color:#125742!important;
 overflow-wrap:anywhere!important;white-space:normal!important;max-width:100%!important;
}
#r55PuzzlePage .r55PuzzleCard{align-items:center!important}
#r55PuzzlePage .sa84Uploader{display:none!important}
/* Performance and My Reports: retain proven charts/records, no new headers. */

/* A closed game must never intercept touches on another game. */
#r46DuelPage.r46GamePage.hidden,
#r46DinoPage.r46GamePage.hidden{display:none!important;pointer-events:none!important}
