/* APK GameScreen.drawShortCut places each 48px icon 3px inside R4440000 (54px). */
#game{--hud-slot:min(calc((100vw - 24px)/11.333334),12dvh,72px);--hud-frame:url('./native/apk/p4440000.png')}
#game #menu,#game #emptyShortcuts,#game .actions{display:grid;gap:0;align-items:center;justify-items:center;max-width:none;padding:0}
#game #menu{left:0;right:auto;width:35.294118%;grid-template-columns:repeat(4,minmax(0,1fr));bottom:calc(5px + var(--hud-slot)/6)}
#game #emptyShortcuts{left:35.294118%;right:auto;width:35.294118%;grid-template-columns:repeat(4,minmax(0,1fr));bottom:calc(5px + var(--hud-slot)/6)}
#game .actions{left:auto;right:0;width:29.411764%;grid-template-columns:1fr 1fr 1.333333fr;bottom:5px}
#game #menu .native-button,#game #sideMenu .native-button,#game #emptyShortcuts>button,#game .actions>.potion{width:var(--hud-slot);height:var(--hud-slot);min-width:0;min-height:0;flex:none;margin:0;padding:0;border:0;border-radius:50%;box-shadow:none;background-color:transparent;background-position:center;background-size:100% 100%;background-repeat:no-repeat;aspect-ratio:1}
#game #menu [data-art=menu]{background-image:url('./native/apk/p40000.png')!important}
#game #menu [data-art=system]{background-image:url('./native/apk/p40007.png')!important}
#game #menu [data-art=view]{background-image:url('./native/apk/p40001.png')!important}
#game #menu [data-art=skills]{background-image:url('./native/apk/p40009.png')!important}
#game #sideMenu #shortcutMode{width:var(--hud-slot)!important;height:var(--hud-slot)!important;margin:0!important;background:transparent url('./native/apk/p40004.png') center/100% 100% no-repeat!important}
#game #emptyShortcuts>button,#game .actions>.potion{position:relative;isolation:isolate;overflow:visible;background:transparent;grid-area:auto}
#game #emptyShortcuts>button::after,#game .actions>.potion::after{content:'';position:absolute;inset:0;background:var(--hud-frame) center/100% 100% no-repeat;pointer-events:none;z-index:3}
#game .hud-icon{z-index:0;position:absolute;inset:5.555556%;display:grid;place-items:center;pointer-events:none;border-radius:50%;overflow:hidden}
#game #emptyShortcuts .hud-icon>.native-item-icon,#game #emptyShortcuts .hud-icon>.native-skill-icon,#game .potion .hud-icon>.native-item-icon{position:static;inset:auto;margin:0;transform:none;max-width:none;max-height:none}
#game .actions>#attack{width:calc(var(--hud-slot)*4/3);height:calc(var(--hud-slot)*4/3);min-height:0;grid-area:auto;margin:0;padding:0;border:0;border-radius:50%;box-shadow:none;background:transparent url('/client-recovery/assets/images-by-hash/EB6AB632530209600D69B4FE28CCD0D02D2E559D3F0BA07CF207549E7FA0CF2B.png') center/100% 100% no-repeat;aspect-ratio:1}
#game .actions>#attack[data-action=confirm]{background-image:url('/client-recovery/assets/images-by-hash/C4050EB55CD7EFF1568C0D6E8BF7D53CA0BF3FD49EC26883DCA4B0BB6EB87DB5.png')}
#game .actions>#attack[data-action=attack]{background-image:url('/client-recovery/assets/images-by-hash/182BF88E112631D806C9A842D8F70DD587C81501FC0C4B8098A0CD8D970E5F00.png')}
#game #attack,#game #emptyShortcuts button{touch-action:none}
#game .stack-count,#game .skill-number{z-index:4;line-height:1.1;bottom:1px;pointer-events:none}
#game #emptyShortcuts>button.cooling{background:transparent}
#game #emptyShortcuts .cooldown-sweep{position:absolute;inset:5.555556%;border-radius:50%;z-index:2;pointer-events:none;background:conic-gradient(from 0deg,transparent 0deg var(--cooldown-reveal,0deg),#030805c9 var(--cooldown-reveal,0deg) 360deg)}
#game #emptyShortcuts>button:not(.cooling):not(.cast-pending):not(.no-mana) .cooldown-sweep{display:none}
/* A sent cast has no server deadline yet. Missing MP lasts until the next owner resource update. */
#game #emptyShortcuts>button.cast-pending:not(.cooling) .cooldown-sweep{background:rgba(3,8,5,.62)}
#game #emptyShortcuts>button.no-mana:not(.cooling) .cooldown-sweep{background:rgba(3,8,5,.4)}
#game #emptyShortcuts>button.no-mana .hud-icon{filter:grayscale(1)}
#game #emptyShortcuts .cooldown-number{z-index:5;pointer-events:none;color:#fff;text-shadow:-1px -1px 1px #000,1px 1px 1px #000,0 0 3px #000}
#game #sideMenu{right:4px;bottom:calc(var(--hud-slot)*4/3 + 11px);gap:4px}
@media(orientation:portrait){
  #game{--hud-slot:44px}
  #game #menu{left:4px;width:200px;bottom:8px}
  #game #emptyShortcuts{left:4px;width:calc(var(--hud-slot)*4 + 12px);bottom:calc(66px + var(--hud-slot)/6)}
  #game .actions{right:4px;width:calc(var(--hud-slot)*10/3 + 8px);bottom:66px}
  #game #sideMenu{bottom:calc(66px + var(--hud-slot)*4/3 + 8px)}
}
@media(orientation:portrait) and (max-width:370px){#game{--hud-slot:38px}#game #menu{width:180px}}
