/* Small artwork, full 44px touch area. Beside the class controls, never on the map. */
#game #rebirthSkillDock.rebirth-tray{position:absolute;display:flex;gap:4px;top:auto!important;bottom:126px;left:50%!important;right:auto!important;transform:translateX(-50%)!important;width:max-content;max-width:calc(100% - 16px)!important;z-index:8;padding:3px;border:1px solid #805b9c88;border-radius:9px;background:#081a27ad;pointer-events:auto}
#game #rebirthSkillDock.rebirth-tray[hidden]{display:none}
#game #rebirthSkillDock.rebirth-tray button{position:relative;width:44px;min-width:44px;height:44px;min-height:44px;padding:2px;margin:0;border:1px solid var(--rb,#aa9aca);border-radius:7px;background:#132538;color:var(--rb,#d7bef3);overflow:hidden;flex:none}
.rebirth-mini-icon{display:block;width:30px;height:30px;margin:0 auto;color:var(--rb)}.rebirth-mini-icon svg{display:block;width:100%;height:100%}.rebirth-mini-icon svg circle,.rebirth-mini-icon svg text{display:none}
#rebirthSkillDock.rebirth-tray small{position:absolute;left:2px;bottom:0;font-size:8px;color:#e6d1ff;line-height:10px}#rebirthSkillDock.rebirth-tray .rebirth-cd{position:absolute;inset:0;display:grid;place-items:center;font-size:19px;color:#fff;text-shadow:0 1px 3px #000;background:#07131f66}#rebirthSkillDock.rebirth-tray .rebirth-cd:empty{display:none}#game #rebirthSkillDock.rebirth-tray button:disabled{opacity:.48}.rebirth-availability{margin-top:8px;color:#a7f3cf!important}
@media(max-width:900px),(pointer:coarse) and (max-width:1200px),(max-height:600px) and (max-width:1200px){#game #rebirthSkillDock.rebirth-tray{bottom:calc(var(--combat-bottom,12px) + 246px)!important;gap:3px;padding:2px}body:is(.mini-expanded,.menu-open,.chat-open,.keyboard-open) #game #rebirthSkillDock.rebirth-tray{visibility:hidden!important}}
@media(max-width:360px){#game #rebirthSkillDock.rebirth-tray{gap:1px;padding:1px;max-width:calc(100% - 2px)!important}}
@media(orientation:landscape) and (max-height:600px) and (max-width:1200px){#game #rebirthSkillDock.rebirth-tray{bottom:calc(var(--combat-bottom,12px) + 6px)!important;left:46%!important}}

@media(min-width:901px) and (min-height:601px) and (pointer:fine){#game:has(.rebirth-tray:not([hidden])) #worldBossStatus{left:calc(50% + 180px);right:auto;bottom:128px;transform:none;max-width:170px}}

/* Seven thumb targets need two rows between the joystick and class skills on short phones. */
@media(orientation:landscape) and (max-height:600px) and (max-width:1200px){
 body.left-handed #game #rebirthSkillDock.rebirth-tray{left:54%!important}
}
@media(orientation:landscape) and (max-height:600px) and (max-width:1200px) and (max-width:740px){
 #game #rebirthSkillDock.rebirth-tray{display:grid;grid-template-columns:repeat(4,44px);width:max-content;left:calc(50% - 66px)!important}
 body.left-handed #game #rebirthSkillDock.rebirth-tray{left:calc(50% + 66px)!important}
}

.rebirth-painted-icon{display:block;width:100%;height:100%;object-fit:contain;border-radius:6px}.rebirth-icon{width:52px!important;height:52px!important}.rebirth-mini-icon{width:38px;height:38px;margin:0}.rebirth-mini-icon img{width:38px;height:38px}#rebirthSkillDock.rebirth-tray .rebirth-key{position:absolute;right:2px;top:1px;font:700 10px/13px system-ui;background:#071524dd;color:#fff4c8;padding:0 3px;border-radius:3px;z-index:2}#rebirthSkillDock.rebirth-tray small{background:#071524d9;border-radius:2px;padding:0 2px}#game #rebirthSkillDock.rebirth-tray button:disabled{opacity:.8}#rebirthSkillDock.rebirth-tray .rebirth-cd{background:#040c17a0;text-shadow:0 1px 4px #000}
@media(pointer:coarse){#rebirthSkillDock .rebirth-key{display:none}}
